/* =========================================================================
   24 — Official game site. Dark "premium game portal" chrome so the bright
   toy-world art pops (Roblox-style layout, Allura Studios brand).
   ========================================================================= */

:root {
  --navy-900: #060d1f;
  --navy-850: #081328;
  --navy-800: #0a1428;
  --navy-700: #0f1d3d;
  --navy-600: #14285a;
  --navy-500: #1c3a72;
  --navy-panel: #101f42;
  --navy-panel-2: #142a58;

  --gold: #f5b933;
  --gold-2: #ffd15c;
  --gold-deep: #d18f1c;

  --sky: #3ec6f0;
  --sky-2: #7fe0ff;

  --red: #e8433f;
  --teal: #2fb0a0;
  --blue: #2f80e0;
  --orange: #f2922f;
  --green: #57c24a;
  --purple: #9b74e8;
  --pink: #ef6bb0;

  --ink: #ffffff;
  --muted: #a6b4d8;
  --muted-2: #6d7ca8;
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);

  --shadow-lg: 0 30px 60px rgba(0, 0, 0, 0.45);
  --shadow-md: 0 14px 34px rgba(0, 0, 0, 0.35);

  --font-display: "Fredoka", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, sans-serif;

  --maxw: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 700px at 18% -8%, #1a2f63 0%, rgba(26, 47, 99, 0) 55%),
    radial-gradient(1000px 620px at 92% 4%, #12325f 0%, rgba(18, 50, 95, 0) 52%),
    linear-gradient(180deg, #0a1631 0%, var(--navy-800) 34%, var(--navy-900) 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap { width: min(100% - 40px, var(--maxw)); margin-inline: auto; }
.display { font-family: var(--font-display); font-weight: 700; line-height: 1.02; letter-spacing: -0.01em; }
.eyebrow {
  font-family: var(--font-display); font-weight: 600; font-size: 13px;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--sky-2);
}
.muted { color: var(--muted); }

/* ---- gold text + gradient helpers ---- */
.text-gold {
  background: linear-gradient(180deg, #ffe08a 0%, var(--gold) 46%, var(--gold-deep) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ============================ NAV ============================ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0; transition: background 0.3s ease, backdrop-filter 0.3s ease, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.solid {
  background: rgba(8, 16, 36, 0.82); backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; width: min(100% - 40px, var(--maxw)); }
.brand { display: flex; align-items: center; gap: 11px; }
.brand__badge {
  width: 40px; height: 40px; display: grid; place-items: center;
  filter: drop-shadow(0 4px 10px rgba(245, 185, 51, 0.35));
}
.brand__badge img { width: 40px; height: 40px; object-fit: contain; }
.brand__name { font-family: var(--font-display); font-weight: 700; font-size: 25px; letter-spacing: 0.02em; }
.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links a { font-weight: 700; font-size: 15px; color: var(--muted); transition: color 0.2s; }
.nav__links a:hover { color: var(--ink); }
.nav__cta { display: flex; align-items: center; gap: 12px; }

/* ============================ BUTTONS ============================ */
.btn {
  font-family: var(--font-display); font-weight: 600; font-size: 16px;
  display: inline-flex; align-items: center; gap: 9px; cursor: pointer;
  padding: 13px 22px; border-radius: 15px; border: 0; transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn--gold {
  color: #3a2500;
  background: linear-gradient(180deg, var(--gold-2) 0%, var(--gold) 52%, var(--gold-deep) 100%);
  box-shadow: 0 8px 0 #a9720f, 0 16px 26px rgba(245, 185, 51, 0.32);
}
.btn--gold:hover { filter: brightness(1.05); transform: translateY(-2px); box-shadow: 0 10px 0 #a9720f, 0 20px 32px rgba(245, 185, 51, 0.42); }
.btn--gold:active { transform: translateY(4px); box-shadow: 0 4px 0 #a9720f, 0 8px 16px rgba(245, 185, 51, 0.3); }
.btn--sky {
  color: #04263a;
  background: linear-gradient(180deg, var(--sky-2) 0%, var(--sky) 60%, #1f9cc6 100%);
  box-shadow: 0 8px 0 #15789c, 0 16px 26px rgba(62, 198, 240, 0.3);
}
.btn--sky:hover { filter: brightness(1.05); transform: translateY(-2px); }
.btn--sky:active { transform: translateY(4px); box-shadow: 0 4px 0 #15789c; }
.btn--ghost {
  color: var(--ink); background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid var(--line-2); box-shadow: none;
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.11); transform: translateY(-2px); }
.btn--sm { padding: 9px 16px; font-size: 14px; border-radius: 12px; }
.btn[disabled], .btn.is-soon { cursor: default; filter: grayscale(0.3) opacity(0.72); }
.btn.is-soon:hover { transform: none; }

/* pill / chips */
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-display); font-weight: 600; font-size: 13px;
  padding: 7px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line-2); color: var(--muted);
}
.chip {
  display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-display);
  font-weight: 600; font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 5px 11px; border-radius: 999px;
}
.chip--easy { color: #bff5b2; background: rgba(87, 194, 74, 0.16); border: 1px solid rgba(87, 194, 74, 0.4); }
.chip--medium { color: #ffe0a3; background: rgba(242, 146, 47, 0.16); border: 1px solid rgba(242, 146, 47, 0.42); }
.chip--hard { color: #ffb3b0; background: rgba(232, 67, 63, 0.16); border: 1px solid rgba(232, 67, 63, 0.42); }

/* ============================ SECTIONS ============================ */
section { position: relative; }
.section { padding: 92px 0; }
.section__head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.section__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(30px, 5vw, 46px); margin: 12px 0 10px; }
.section__sub { color: var(--muted); font-size: 17px; font-weight: 600; }

/* ============================ HERO ============================ */
.hero { position: relative; padding: 150px 0 70px; overflow: hidden; }
.hero__bubbles { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.bubble { position: absolute; bottom: -60px; border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, rgba(255,255,255,0.5), rgba(127,224,255,0.12) 60%, transparent 72%);
  box-shadow: inset 0 0 14px rgba(127,224,255,0.25); animation: floatUp linear infinite; }
@keyframes floatUp { 0% { transform: translateY(0) translateX(0); opacity: 0; }
  10% { opacity: 0.8; } 90% { opacity: 0.5; } 100% { transform: translateY(-115vh) translateX(30px); opacity: 0; } }

.hero__grid {
  position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: 40px; align-items: center;
}
.hero__eyebrow { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 18px; }
.hero__eyebrow img { width: 22px; height: 22px; }
.hero__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(76px, 15vw, 150px); line-height: 0.86; margin: 0; }
.hero__title small { display: block; font-size: clamp(22px, 3.4vw, 34px); letter-spacing: 0.02em; margin-top: 8px; color: var(--ink); }
.hero__tag { font-family: var(--font-display); font-weight: 600; font-size: clamp(20px, 3vw, 27px); margin: 20px 0 14px; }
.hero__desc { color: var(--muted); font-size: 17px; font-weight: 600; max-width: 500px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 18px; }
.hero__stats { display: flex; flex-wrap: wrap; gap: 10px; }
.stat-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; border-radius: 13px;
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); font-weight: 700; font-size: 14px;
}
.stat-pill b { font-family: var(--font-display); color: var(--gold-2); font-size: 16px; }
.hero__store { display: flex; align-items: center; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.hero__store span { font-weight: 700; font-size: 13px; color: var(--muted-2); }
.badge-soon {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 11px;
  border: 1px dashed var(--line-2); color: var(--muted); font-family: var(--font-display);
  font-weight: 600; font-size: 13px; background: rgba(255,255,255,0.03);
}

/* hero right — phone preview + floating art */
.preview { position: relative; display: grid; place-items: center; min-height: 540px; }
.preview__glow { position: absolute; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(245,185,51,0.28), rgba(62,198,240,0.12) 45%, transparent 68%);
  filter: blur(8px); animation: pulse 5s ease-in-out infinite; }
@keyframes pulse { 0%,100%{ transform: scale(1); opacity: 0.85; } 50%{ transform: scale(1.08); opacity: 1; } }
.phone {
  position: relative; z-index: 3; width: 262px; aspect-ratio: 9 / 19; border-radius: 34px;
  padding: 9px; background: linear-gradient(160deg, #223257, #0e1a35);
  box-shadow: var(--shadow-lg), inset 0 0 0 2px rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.1);
}
.phone__screen { width: 100%; height: 100%; border-radius: 26px; overflow: hidden; background: #071324; position: relative; }
.phone__screen video, .phone__screen img { width: 100%; height: 100%; object-fit: cover; }
.phone__notch { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 74px; height: 7px; border-radius: 99px; background: rgba(0,0,0,0.55); z-index: 4; }

.float { position: absolute; z-index: 4; filter: drop-shadow(0 14px 22px rgba(0,0,0,0.45)); will-change: transform; }
.float img { width: 100%; height: auto; }
.float--card1 { width: 92px; top: 6%; left: 2%; animation: bob 4.6s ease-in-out infinite; }
.float--card2 { width: 82px; bottom: 9%; left: -3%; animation: bob 5.4s ease-in-out infinite 0.5s; }
.float--card3 { width: 86px; top: 3%; right: 1%; animation: bob 5s ease-in-out infinite 0.2s; }
.float--medal { width: 116px; bottom: 2%; right: 2%; animation: bob 6s ease-in-out infinite 0.8s; }
.float--coin { width: 54px; }
.float--coinA { top: 40%; left: -6%; animation: bob 4.2s ease-in-out infinite 0.3s; }
.float--coinB { bottom: 34%; right: -5%; animation: bob 4.8s ease-in-out infinite 0.6s; }
@keyframes bob { 0%,100%{ transform: translateY(0) rotate(var(--r,0deg)); } 50%{ transform: translateY(-16px) rotate(var(--r,0deg)); } }

/* ============================ HOW TO PLAY ============================ */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step {
  background: linear-gradient(180deg, var(--navy-panel) 0%, var(--navy-800) 100%);
  border: 1px solid var(--line); border-radius: 22px; padding: 30px 26px; text-align: center;
  position: relative; overflow: hidden;
}
.step__n { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--gold-2);
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 6px;
  background: rgba(245,185,51,0.14); border: 1px solid rgba(245,185,51,0.4); }
.step__art { height: 118px; display: flex; align-items: center; justify-content: center; gap: 8px; margin: 6px 0 16px; }
.step__art img { height: 100%; width: auto; filter: drop-shadow(0 10px 16px rgba(0,0,0,0.4)); }
.step__art .card-mini { height: 96px; }
.step__art .coin-mini { height: 60px; }
.step h3 { font-family: var(--font-display); font-weight: 600; font-size: 20px; margin: 0 0 8px; }
.step p { color: var(--muted); font-weight: 600; font-size: 15px; margin: 0; }

/* ============================ WORLDS ============================ */
.worlds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.world {
  border-radius: 24px; overflow: hidden; position: relative; border: 1px solid var(--line-2);
  background: var(--navy-panel); box-shadow: var(--shadow-md); transition: transform 0.25s ease, box-shadow 0.25s;
}
.world:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.world__media { position: relative; aspect-ratio: 3 / 4; overflow: hidden; }
.world__media video, .world__media img { width: 100%; height: 100%; object-fit: cover; }
.world__media::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(6,13,31,0.55) 78%, var(--navy-panel) 100%); }
.world__chip { position: absolute; top: 14px; left: 14px; z-index: 2; }
.world__num { position: absolute; top: 14px; right: 14px; z-index: 2; font-family: var(--font-display);
  font-weight: 600; font-size: 12px; padding: 5px 11px; border-radius: 999px; background: rgba(6,13,31,0.6);
  border: 1px solid var(--line-2); color: var(--ink); backdrop-filter: blur(4px); }
.world__body { padding: 20px 22px 24px; position: relative; z-index: 2; margin-top: -46px; }
.world__body h3 { font-family: var(--font-display); font-weight: 700; font-size: 24px; margin: 0 0 8px; }
.world__body p { color: var(--muted); font-weight: 600; font-size: 15px; margin: 0; }

/* ============================ BOSSES / CURSES ============================ */
.bosses-bg { background:
    radial-gradient(900px 500px at 50% 0%, rgba(155,116,232,0.16), transparent 60%); }
.curses { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.curse {
  display: flex; gap: 16px; align-items: flex-start; padding: 20px;
  background: linear-gradient(180deg, rgba(28,20,52,0.7), rgba(16,12,34,0.7));
  border: 1px solid rgba(155,116,232,0.24); border-radius: 18px; transition: transform 0.2s, border-color 0.2s, box-shadow .2s;
}
.curse:hover { transform: translateY(-5px); border-color: rgba(155,116,232,0.55); box-shadow: 0 16px 30px rgba(20,10,40,0.5); }
.curse__icon { flex: 0 0 auto; width: 60px; height: 60px; display: grid; place-items: center;
  background: rgba(0,0,0,0.28); border-radius: 14px; border: 1px solid rgba(255,255,255,0.08); }
.curse__icon img { width: 46px; height: 46px; object-fit: contain; filter: drop-shadow(0 4px 8px rgba(0,0,0,0.5)); }
.curse h4 { font-family: var(--font-display); font-weight: 600; font-size: 17px; margin: 2px 0 5px; }
.curse p { color: var(--muted); font-weight: 600; font-size: 13.5px; margin: 0; line-height: 1.45; }

/* ============================ FEATURES ============================ */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.feature { display: flex; gap: 15px; align-items: center; padding: 20px 22px;
  background: rgba(255,255,255,0.035); border: 1px solid var(--line); border-radius: 16px; transition: background .2s, transform .2s; }
.feature:hover { background: rgba(255,255,255,0.06); transform: translateY(-3px); }
.feature__icon { flex: 0 0 auto; width: 52px; height: 52px; display: grid; place-items: center; }
.feature__icon img { max-height: 44px; width: auto; filter: drop-shadow(0 6px 10px rgba(0,0,0,0.4)); }
.feature__icon .emoji { font-size: 30px; }
.feature b { font-family: var(--font-display); font-weight: 600; font-size: 17px; display: block; margin-bottom: 3px; }
.feature span { color: var(--muted); font-weight: 600; font-size: 14px; }

/* ============================ TRAILER / STUDIO ============================ */
.studio { position: relative; overflow: hidden; }
.studio__bg { position: absolute; inset: 0; z-index: 0; opacity: 0.16; }
.studio__bg img { width: 100%; height: 100%; object-fit: cover; }
.studio__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--navy-900) 0%, rgba(6,13,31,0.4) 40%, var(--navy-900) 100%); }
.studio__inner { position: relative; z-index: 2; text-align: center; max-width: 640px; margin: 0 auto; }
.studio h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(28px, 4.4vw, 42px); margin: 14px 0 16px; }
.studio p { color: var(--muted); font-weight: 600; font-size: 16.5px; max-width: 540px; margin: 0 auto; }
.studio .pill { margin-top: 22px; }

/* ============================ CTA BANNER ============================ */
.cta-banner { text-align: center; padding: 76px 0; }
.cta-banner__box {
  border-radius: 28px; padding: 54px 30px; position: relative; overflow: hidden;
  background: linear-gradient(135deg, #16295a 0%, #0f1d3d 100%); border: 1px solid var(--line-2);
  box-shadow: var(--shadow-lg);
}
.cta-banner h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(28px, 4.5vw, 46px); margin: 0 0 14px; }
.cta-banner p { color: var(--muted); font-weight: 600; font-size: 17px; margin: 0 auto 26px; max-width: 460px; }

/* ============================ FOOTER ============================ */
.footer { border-top: 1px solid var(--line); padding: 52px 0 40px; margin-top: 20px; }
.footer__grid { display: flex; justify-content: space-between; align-items: flex-start; gap: 30px; flex-wrap: wrap; }
.footer__brand { max-width: 300px; }
.footer__brand .brand { margin-bottom: 12px; }
.footer__brand p { color: var(--muted-2); font-weight: 600; font-size: 14px; margin: 0; }
.footer__cols { display: flex; gap: 60px; flex-wrap: wrap; }
.footer__col h5 { font-family: var(--font-display); font-weight: 600; font-size: 13px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted-2); margin: 0 0 14px; }
.footer__col a { display: block; color: var(--muted); font-weight: 700; font-size: 15px; margin-bottom: 10px; transition: color .2s; }
.footer__col a:hover { color: var(--ink); }
.footer__bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; color: var(--muted-2); font-weight: 600; font-size: 13px; }

/* ============================ LEGAL PAGES ============================ */
.legal { padding: 140px 0 90px; }
.legal__inner { max-width: 760px; margin: 0 auto; }
.legal h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(34px, 6vw, 52px); margin: 0 0 6px; }
.legal .updated { color: var(--muted-2); font-weight: 700; font-size: 14px; margin-bottom: 40px; }
.legal section { margin-bottom: 34px; }
.legal h2 { font-family: var(--font-display); font-weight: 600; font-size: 24px; margin: 0 0 12px; }
.legal p, .legal li { color: var(--muted); font-weight: 600; font-size: 16px; line-height: 1.7; }
.legal ul { padding-left: 22px; margin: 10px 0; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--sky-2); font-weight: 700; }
.legal a:hover { text-decoration: underline; }
.back-link { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 30px; color: var(--muted); font-weight: 700; }
.back-link:hover { color: var(--ink); }

/* ============================ REVEAL ANIMATION ============================ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1); }
.reveal.in { opacity: 1; transform: none; }

/* ============================ RESPONSIVE ============================ */
@media (max-width: 940px) {
  .hero__grid { grid-template-columns: 1fr; gap: 20px; text-align: center; }
  .hero__eyebrow, .hero__cta, .hero__stats, .hero__store { justify-content: center; }
  .hero__desc { margin-inline: auto; }
  .preview { min-height: 480px; margin-top: 10px; }
  .steps, .worlds { grid-template-columns: 1fr; }
  .curses { grid-template-columns: 1fr 1fr; }
  .nav__links { display: none; }
}
@media (max-width: 620px) {
  .section { padding: 66px 0; }
  .curses, .features { grid-template-columns: 1fr; }
  .hero { padding-top: 120px; }
  .footer__grid { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
