/* snowjolly.click — Light & cool minimal theme */
:root {
  --bg: #ffffff;          /* base light */
  --bg-soft: #f1f5f9;     /* slate-100 */
  --text: #0f172a;        /* slate-900 */
  --muted: #475569;       /* slate-600 */
  --accent: #3b82f6;      /* blue-500 */
  --accent-2: #10b981;    /* emerald-500 */
  --accent-3: #60a5fa;    /* blue-400 */
  --card: #ffffff;        /* white cards */
  --link: #2563eb;        /* blue-600 */
  --bg-light: #f8fafc;    /* slate-50 */
  --bg-dark: #eef2f7;     /* light footer */
  --text-light: #334155;  /* slate-700 */
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background:
    radial-gradient(1000px 520px at 10% -10%, rgba(59,130,246,0.10), transparent),
    radial-gradient(900px 480px at 110% 10%, rgba(16,185,129,0.08), transparent),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.container { width: min(1100px, 92%); margin: 0 auto; }

/* Push Content Down */
main {
  padding-top: 100px;
}

/* Nav */
.header {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, #7ac8ff 0%, #9bf0e1 100%);
  color: #fff;
  border: 1px solid rgba(2, 6, 23, 0.08);
  border-radius: 25px;
  padding: 10px 20px;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.08);
  z-index: 1000;
  width: auto;
  max-width: 90%;
}
.header .nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}
.header .nav a {
  text-decoration: none;
  color: #fff;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 15px;
  transition: background-color 0.3s ease;
  background-color: transparent;
}
.header .nav a:hover {
  background-color: rgba(255,255,255,0.06);
  color: #fff;
}
.header .nav a.active {
  background-color: transparent; /* remove active background */
  color: #fff;                   /* keep header text white */
  box-shadow: none;              /* remove any shadow/highlight */
  font-weight: 600;              /* keep readable weight */
}
/* ensure hover still subtle but not identical to active */
.header .nav a:hover {
  background-color: rgba(8, 55, 77, 0.06);
  color: #ffffff;
}
/* also prevent .nav generic rule from forcing link color change for .active elsewhere */
.nav a.active { color: inherit; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 800; letter-spacing: 0.4px; color: var(--text); text-decoration: none;
}
.brand-avatar {
  width: 28px; height: 28px; border-radius: 6px;
  background: conic-gradient(from 140deg, var(--accent), var(--accent-2), var(--accent-3), var(--accent));
  box-shadow: 0 0 0 2px rgba(255,255,255,0.08) inset;
}
.nav a { color: var(--muted); text-decoration: none; font-weight: 600; }
.nav .links { display: flex; gap: 18px; }
.nav a:hover, .nav a.active { color: var(--link); }

/* --- HERO (attractive, moved from inline) --- */
.hero {
  /* Use site background (inherit body layers) instead of solid white */
  background: transparent;
  padding: clamp(40px,6vw,88px) 0;
  position: relative;
  overflow: hidden;
}
.hero .hero-decor{
  position: absolute;
  right: -80px;
  top: -60px;
  width: 420px;
  height: 420px;
  /* background:
    radial-gradient(circle at 30% 30%, rgba(122,200,255,0.20), transparent 35%),
    radial-gradient(circle at 70% 70%, rgba(156,240,225,0.14), transparent 30%); */
  filter: blur(24px);
  transform: rotate(18deg);
  pointer-events: none;
  z-index: 0;
}
.hero .container.inner {
  display: grid;
  grid-template-columns: 1fr 480px; /* increased visual column for a slightly larger image */
  gap: 32px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-badge { display:flex; align-items:center; gap:12px; margin-bottom:12px; }
.hero-badge-img { width:64px; height:64px; border-radius:12px; box-shadow:0 10px 30px rgba(15,45,80,0.06); display:block; }
.hero-badge .site-name { font-size:1.35rem; font-weight:800; color:var(--link); letter-spacing:0.01em; }
.hero-title { font-size: clamp(2.1rem,4vw,2.8rem); line-height: 1.02; margin:0 0 12px; color:#0f3660; font-weight:800; }
.hero-sub { color:var(--muted); font-size:1.08rem; max-width:66ch; margin:0 0 20px; line-height:1.65; }
.hero-ctas { display:flex; gap:12px; flex-wrap:wrap; margin-bottom:6px; }
.btn-play {
  background: linear-gradient(90deg,#2176ae 0%, #4ecdc4 100%);
  color:#fff;
  border:0;
  padding:1rem 1.8em;
  border-radius:14px;
  font-weight:800;
  box-shadow:0 14px 34px rgba(34,68,110,0.08);
  text-decoration:none;
  font-size:1.03rem;
}
.btn-soft { background:transparent; border:1px solid rgba(15,45,80,0.08); padding:0.65em 1.1em; border-radius:10px; text-decoration:none; color:inherit; }
.hero-flag { display:flex; gap:12px; margin-top:12px; align-items:center; flex-wrap:wrap; }
.pill { background:#fff; padding:10px 14px; border-radius:999px; box-shadow:0 8px 24px rgba(15,45,80,0.04); font-weight:800; color:#0b4f7a; }
.hero-visual img {
  width: 100%;
  max-width: 480px;
  border-radius: 16px;
  box-shadow: none;
  display: block;
}

/* responsive */
@media (max-width:900px){
  .hero .container.inner { grid-template-columns: 1fr; }
  .hero .hero-decor { display:none; }
  .hero-visual { margin-top:18px; }
}
/* ensure hero buttons inherit site btn styles where needed */
.btn { display:inline-flex; align-items:center; justify-content:center; }

/* --- end hero --- */

/* Optional images */
.media-frame { border: 1px dashed rgba(2,6,23,0.12); border-radius: 14px; padding: 10px; display: grid; place-items: center; min-height: 160px; background: var(--bg-soft); }
.media-frame img { max-width: 100%; height: auto; border-radius: 10px; }
.media-note { color: var(--muted); font-size: 12px; margin-top: 8px; text-align: center; }

/* Features */
.features { padding: 28px 0 10px; }
.features-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.feature {
  background: var(--card); border: 1px solid rgba(2,6,23,0.06);
  border-radius: 12px; padding: 16px; display: grid; grid-template-columns: 36px 1fr; gap: 12px;
}
.feature .ico { width: 36px; height: 36px; border-radius: 8px; display: grid; place-items: center; background: rgba(59,130,246,0.16); color: var(--text); }
.feature h3 { margin: 0; font-size: 16px; }
.feature p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }

/* Fix feature card paragraph stacking */
.features-grid,
.feature {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  justify-content: center;
  gap: 24px;
}

.feature {
  flex: 1 1 220px;
  min-width: 220px;
  max-width: 320px;
  background: #f7fcff;
  border-radius: 1em;
  padding: 1.2em;
  box-shadow: 0 2px 8px rgba(122,200,255,0.08);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 18px;
}

.feature h3,
.feature p {
  width: 100%;
  text-align: left;
  word-break: normal;
  white-space: normal;
  margin: 0 0 0.5em 0;
}

.feature p {
  font-size: 1em;
  color: #234;
  line-height: 1.5;
  margin-bottom: 0;
}

/* Feature Cards Hover Effect */
.features-grid .feature {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.features-grid .feature:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

/* Padding for Feature Game Cards */
.features-grid .feature {
  padding-top: 20px;
}

/* Game embeds */
.games { padding: 22px 0 36px; }
.game-embed { display: grid; gap: 16px; }
.game-frame {
  width: 100%;
  max-width: 900px;
  aspect-ratio: 16 / 9;
  background: #000;
  border: 1px solid rgba(2,6,23,0.08);
  border-radius: 12px;
  overflow: hidden;
  margin: 0 auto; /* Center align */
}
.game-frame iframe { width: 100%; height: 100%; border: 0; background: #000; display: block; }

/* Increase Spacing Between Game Screen and Feature Cards */
.game-embed + .features-grid {
  margin-top: 40px;
}

/* Content pages */
.section { padding: 36px 0; }
.section h2 {
  font-size: 2rem;
}
.section p, .section li { color: var(--muted); }

/* Footer */
footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 24px;
  padding: 30px;
  background: var(--bg-dark);
  color: var(--text);
  border-top: 1px solid rgba(2, 6, 23, 0.08);
  font-size: 16px;
  margin-top: auto;
  text-align: center;
}
footer a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  margin: 0 8px;
}
footer a:hover {
  text-decoration: underline;
}
footer p {
  margin: 0;
  font-size: 15px;
  text-align: center;
}
.footer .disclaimer,
.footer .cols {
  text-align: center;
  margin: 30px 0;
}
.footer nav.links {
  margin-bottom: 30px;
}

/* Footer styling */
.footer {
  background: linear-gradient(90deg, #7ac8ff 0%, #9bf0e1 100%);
  color: #fff;
  padding: 32px 0 18px 0;
  font-family: 'Segoe UI', 'Roboto', 'Arial', sans-serif;
  box-shadow: 0 -2px 14px rgba(0, 0, 0, 0.08);
}
.footer .brandline {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 18px;
}
.footer .brand {
  font-size: 1.2em;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer .links a {
  color: #fff;
  text-decoration: underline;
  margin-right: 16px;
  font-weight: 600; /* Slightly bolder */
  opacity: 0.85;
}
.footer .links a:hover {
  opacity: 1;
  text-decoration: none;
}
.footer .disclaimer,
.footer .cols,
.footer small {
  color: #eafaff;
  font-size: 1em;
  font-weight: 600; /* Slightly bolder */
  opacity: 0.95;
}
.footer .grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

/* Optional: Center footer elements vertically */
.footer .container > * {
  margin-bottom: 10px;
}

/* Scroll-Up Button */
.scroll-up-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 50%;
  box-shadow: 0 6px 18px rgba(2, 6, 23, 0.12);
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 20px;
  z-index: 1000;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.scroll-up-btn:hover {
  background: var(--accent-2);
}
.scroll-up-btn.hidden {
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}

/* Modal */
.modal-backdrop { position: fixed; inset: 0; background:var(--accent-3); display: none; align-items: center; justify-content: center; z-index: 1000; }
.modal { width: min(560px, 92%); background: #ffffff; border: 1px solid rgba(2,6,23,0.08); border-radius: 14px; padding: 18px; }
.modal h3 { margin: 0 0 6px; }
.modal p { margin: 6px 0 12px; color: var(--muted); }
.modal .actions { display: flex; gap: 10px; justify-content: flex-end; }

/* Contact Form */
.contact-form {
  display: grid;
  gap: 16px;
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
  background: linear-gradient(135deg, rgba(224, 242, 254, 0.9), rgba(219, 234, 254, 0.9));
  border: 1px solid rgba(2, 6, 23, 0.06);
  border-radius: 12px;
}
.contact-form label {
  font-weight: 600;
  color: var(--text);
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid rgba(2, 6, 23, 0.12);
  border-radius: 8px;
  background: #ffffff;
  color: var(--text);
  font-size: 14px;
}
.contact-form textarea { min-height: 120px; }
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.25);
}
.contact-form button {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #0b0a1a;
  font-weight: 800;
  border: none;
  border-radius: 10px;
  padding: 10px 16px;
  cursor: pointer;
  text-align: center;
}
.contact-form button:hover {
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
}

/* Contact Form Input Fields */
.contact-form input:required { background-color: #fff; }

/* Alternate Section Backgrounds */
/* Sections alternate lightly */
.section:nth-of-type(odd),
#featured-game { background-color: var(--bg-light); }
.section:nth-of-type(even) { background-color: #ffffff; }

/* Section Styling */
.section {
  padding: 40px 20px;
  text-align: center;
}

/* Headings */
.section h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--text);
}

/* Paragraphs */
.section p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 20px;
  color: var(--text-light);
}

/* Buttons */
.section .btn {
  display: inline-block;
  margin: 10px auto;
  padding: 10px 20px;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
}
.section .btn:hover {
  background: var(--accent-2);
}

/* Featured Game Heading */
#featured-game h2 {
  font-size: 2rem;
  text-align: center;
}

/* Game Name Heading */
#featured-game h3 {
  text-align: center;
}

/* Disclaimer and About Section Headings */
#disclaimer h2,
#about h2 {
  font-size: 2rem;
  text-align: center;
}

/* Gradient Font Color for Section Headings */
.section h2, #home h1, #featured-game h2 {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Home Section Padding */
#home {
  padding-top: 100px;
}

/* Home Section Button Hover Effect */
#home .btn {
  transition: background-color 0.3s ease, transform 0.2s ease;
}
#home .btn:hover {
  background-color: var(--accent-2);
  transform: scale(1.05);
}

/* Sticky Footer */
main {
  flex: 1;
}

/* --- Legal pages styling --- */
.legal-card {
  background: linear-gradient(90deg, #eafaff 0%, #f7fcff 100%);
  box-shadow: 0 2px 16px rgba(122,200,255,0.10);
  border-radius: 1.2em;
  padding: 2em 2.5em;
  margin: 2em auto;
  max-width: 700px;
  text-align: left;
  font-family: 'Segoe UI', 'Roboto', 'Arial', sans-serif;
  color: #234;
}
.legal-card h1 {
  color: #7ac8ff;
  font-size: 2.2em;
  margin-bottom: 0.7em;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.legal-card h2 {
  color: #4ecdc4;
  font-size: 1.3em;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
  font-weight: 600;
}
.legal-card ul {
  list-style: disc inside;
  margin: 1em 0 1em 0;
  padding: 0;
}
.legal-card li {
  margin-bottom: 0.7em;
  font-size: 1.08em;
}
.legal-card p {
  font-size: 1.08em;
  margin-bottom: 1.2em;
}
.legal-card strong {
  color: #2b7a78;
}

/* Responsive tweaks */
@media (min-width: 760px) {
  .hero .inner { grid-template-columns: 1.1fr 0.9fr; }
  .features-grid { grid-template-columns: repeat(3, 1fr); }
  .footer .grid { grid-template-columns: 2fr 1fr; }
}

/* Responsive Header Adjustments */
@media (max-width: 768px) {
  .header {
    top: 10px;
    padding: 8px 16px;
    border-radius: 20px;
  }
  .header .nav {
    flex-direction: column;
    gap: 10px;
  }
  .header .nav a {
    font-size: 14px;
    padding: 5px 8px;
  }
}

@media (max-width: 480px) {
  .header {
    top: 5px;
    padding: 6px 12px;
    border-radius: 15px;
  }
  .header .nav {
    flex-direction: column;
    gap: 8px;
  }
  .header .nav a {
    font-size: 12px;
    padding: 4px 6px;
  }
}

/* Responsive feature cards */
.features-grid {
  display: flex;
  flex-direction: row;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
}

.feature {
  flex: 1 1 220px;
  min-width: 220px;
  max-width: 320px;
  background: #f7fcff;
  border-radius: 1em;
  padding: 1.2em;
  box-shadow: 0 2px 8px rgba(122,200,255,0.08);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 18px;
}

/* Stack cards vertically on small screens */
@media (max-width: 800px) {
  .features-grid {
    flex-direction: column;
    gap: 18px;
    align-items: center;
  }
  .feature {
    max-width: 95vw;
    width: 100%;
    margin-bottom: 0;
  }
}

/* Remove dark-only overrides for body/header/footer */

/* Game-frame must be positioned for overlay */
.game-frame { position: relative; overflow: hidden; }

.game-frame iframe {
  width: 100%;
  border: 0;
  display: block;
  opacity: 0;
  visibility: hidden;
  transition: opacity .28s ease, visibility 0s linear .28s;
  background: transparent;
}

/* when JS sets .visible, iframe fades in */
.game-frame iframe.visible {
  opacity: 1;
  visibility: visible;
  transition: opacity .28s ease;
}

/* overlay contains only the loading icon, no opaque background */
.game-frame .loading-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent; /* fully transparent so no screen fill */
  z-index: 30;
  transition: opacity .28s ease, visibility .28s;
  opacity: 1;
  visibility: visible;
  pointer-events: none;
}
.game-frame .loading-overlay.hidden {
  opacity: 0;
  visibility: hidden;
}

/* loading image styling */
.game-frame .loading-overlay img {
  width: 96px;
  height: 96px;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(15,45,80,0.08);
  background: white;
  padding: 8px;
}

/* smaller screens */
@media (max-width:420px) {
  .game-frame .loading-overlay img { width: 72px; height: 72px; }
}

/* Utilities */
.mb-10 { margin-bottom: 10px; }
.mb-16 { margin-bottom: 16px; }
.mt-0 { margin-top: 0; }
.m-0 { margin: 0; }
.text-left { text-align: left; }
.minh-120 { min-height: 120px; }
.grid-1 { display: grid; grid-template-columns: 1fr; gap: 20px; }
