/* Ultimate Spelling Battle — honey-meadow site. One deliberate look (warm day sections, a night arena). */
:root {
  --honey: #ffb31a;
  --honey-deep: #e8890c;
  --amber: #c96a00;
  --cream: #fff8e7;
  --cream-2: #fff0c9;
  --navy: #1b2150;
  --navy-2: #2b3480;
  --ink: #2a2440;
  --ink-soft: #5d5670;
  --meadow: #5bbf4a;
  --night: #1a0f3a;
  --night-2: #2c1760;
  --white: #fff;
  --radius: 22px;
  --shadow: 0 18px 40px -18px rgba(90, 50, 0, .45);
  --display: "Baloo 2", "Trebuchet MS", system-ui, sans-serif;
  --body: "Nunito", "Segoe UI", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font: 500 17px/1.6 var(--body); overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.05; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(34px, 5.2vw, 64px); font-weight: 800; letter-spacing: -.01em; }
p { margin: 0; }
.lede { font-size: clamp(17px, 1.5vw, 20px); color: var(--ink-soft); max-width: 34em; margin-top: 16px; }
.eyebrow {
  font: 800 13px/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--honey-deep);
  margin-bottom: 14px; display: inline-flex; align-items: center; gap: 8px;
}
.eyebrow::before { content: ""; width: 14px; height: 16px; background: currentColor; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.eyebrow.gold { color: var(--honey); }
section { position: relative; }
:focus-visible { outline: 3px solid var(--navy-2); outline-offset: 3px; border-radius: 8px; }

/* ---------- scroll honey bar + nav ---------- */
.scroll-honey { position: fixed; inset: 0 0 auto 0; height: 5px; z-index: 60; background: rgba(255,255,255,.25); }
.scroll-honey i { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, #ffd65a, var(--honey), var(--honey-deep)); box-shadow: 0 0 12px var(--honey); }

.nav {
  position: fixed; z-index: 50; top: calc(12px + env(safe-area-inset-top, 0px)); left: var(--gutter); right: var(--gutter);
  display: flex; align-items: center; gap: 16px; padding: 8px 8px 8px 10px;
  background: rgba(255, 250, 235, .72); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border: 1px solid rgba(255,255,255,.7); border-radius: 999px; box-shadow: 0 10px 30px -16px rgba(60,30,0,.5);
  transition: transform .4s ease;
}
.nav.hide { transform: translateY(calc(-100% - 30px)); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 800 18px/1 var(--display); color: var(--navy); min-width: 0; }
.brand img { border-radius: 11px; flex: none; }
.brand span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a { text-decoration: none; font-weight: 800; font-size: 15px; color: var(--ink); padding: 8px 14px; border-radius: 999px; }
.nav-links a:hover { background: rgba(255,179,26,.25); }
.nav-cta {
  text-decoration: none; font: 800 15px/1 var(--body); color: var(--navy); background: var(--honey);
  padding: 12px 18px; border-radius: 999px; box-shadow: inset 0 -3px 0 var(--honey-deep); white-space: nowrap; margin-left: auto;
}
.nav-links + .nav-cta { margin-left: 0; }
@media (max-width: 860px) { .nav-links { display: none; } }
@media (max-width: 420px) { .brand span { font-size: 15px; } }

/* ---------- the flying bee ---------- */
.bee-fly {
  position: fixed; left: 0; top: 0; z-index: 40; width: var(--bw); height: var(--bh);
  --bw: 440px; --bh: 600px; pointer-events: none; will-change: transform; transform-origin: 0 0;
  transition: opacity .5s ease;
}
.bee-fly model-viewer {
  width: 100%; height: 100%; background: transparent; --poster-color: transparent; --progress-bar-color: transparent;
  filter: drop-shadow(0 24px 22px rgba(80, 40, 0, .28));
}
.bee-fly.interactive { pointer-events: auto; cursor: grab; }
.bee-fly.interactive:active { cursor: grabbing; }
.bee-fly.gone { opacity: 0; }
.bee-bubble {
  position: fixed; z-index: 41; left: 0; top: 0; transform: translate(-50%, -100%); max-width: 240px; width: max-content;
  background: #fff; color: var(--navy); font: 800 15px/1.3 var(--body); padding: 10px 14px; border-radius: 16px;
  box-shadow: 0 10px 24px -10px rgba(40,20,0,.5); text-align: center; pointer-events: none;
  animation: bubble-in .35s cubic-bezier(.2,1.6,.4,1) both;
}
.bee-bubble::after { content: ""; position: absolute; left: 50%; bottom: -8px; margin-left: -8px; border: 8px solid transparent; border-bottom: 0; border-top-color: #fff; }
@keyframes bubble-in { from { opacity: 0; scale: .7; } }
.bee-slot { position: relative; pointer-events: none; }

/* ---------- hero ---------- */
.hero { min-height: max(720px, 100svh); overflow: hidden; isolation: isolate; display: flex; align-items: center; }
.hero-sky { position: absolute; inset: -6% -3% -6% -3%; z-index: -3; }
.hero-sky img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2;
  background: linear-gradient(90deg, rgba(40,20,70,.38) 0%, rgba(40,20,70,.12) 45%, transparent 70%),
              linear-gradient(0deg, rgba(255,248,231,1) 0%, rgba(255,248,231,0) 22%); }
.pollen { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.hero-inner { position: relative; z-index: 3; width: 100%; max-width: 1320px; margin: 0 auto; padding: 120px var(--gutter) 150px; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 24px; }
.hero-copy { color: #fff; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 15px; letter-spacing: .02em;
  background: rgba(27,33,80,.55); backdrop-filter: blur(6px); padding: 8px 16px; border-radius: 999px; }
.kicker .dot { width: 9px; height: 9px; border-radius: 50%; background: #7dff8a; box-shadow: 0 0 0 4px rgba(125,255,138,.25); }
.title { margin: 20px 0 14px; display: grid; gap: 2px; line-height: .92; }
/* The game logo (store/brand/, 2026-10-09) replaces the typed title */
.title-logo { display: block; width: min(640px, 100%); height: auto; filter: drop-shadow(0 14px 22px rgba(20, 10, 60, .35)); }
.brand-logo { display: block; height: 34px; width: auto; }
@media (max-width: 420px) { .brand-logo { height: 28px; } }
.t-small { font: 800 clamp(18px, 2vw, 28px)/1 var(--body); letter-spacing: .42em; text-transform: uppercase; color: #fff3c4;
  text-shadow: 0 2px 10px rgba(40,10,60,.6); padding-left: .1em; }
.t-big { font: 800 clamp(50px, 7.6vw, 116px)/.92 var(--display); letter-spacing: -.01em; color: #fff;
  text-shadow: 0 4px 0 #b3570b, 0 7px 0 #7a3a06, 0 18px 30px rgba(50,15,60,.55); }
.t-line { display: inline-block; }
.t-gold { color: #ffc93c; }
.t-big .ch { display: inline-block; }
/* The tagline in the logo's own letters (gold, navy outline), centred under the lettering like the app's Home and splash.
   The hero uses the lettering alone: the 3D Bumble already flies beside it. cqw = 1 % of the logo's width.
   The outline and the fill are two copies of the text (::before / ::after). */
.logo-block { width: min(560px, 100%); container-type: inline-size; margin: 20px 0 0; }
.logo-block .title { margin: 0; }
.logo-block .title-logo { width: 100%; }
.tagline { position: relative; margin: .6cqw 3cqw 0; text-align: center; white-space: nowrap;
  font: 800 5.1cqw/1.25 var(--display); letter-spacing: .01em; color: transparent; }
.tagline::before, .tagline::after { content: attr(data-text); position: absolute; inset: 0; }
.tagline::before { color: #1b2a78; -webkit-text-stroke: .8cqw #1b2a78; filter: drop-shadow(0 .6cqw .8cqw rgba(20, 10, 60, .45)); }
.tagline::after { background: linear-gradient(180deg, #fff27a 15%, #ffd21f 55%, #f59e0b 95%); -webkit-background-clip: text; background-clip: text; }
.tagline::before { color: #1b2a78; -webkit-text-stroke: .65cqw #1b2a78; filter: drop-shadow(0 .5cqw .6cqw rgba(20, 10, 60, .45)); }
.tagline::after { background: linear-gradient(180deg, #fff27a 15%, #ffd21f 55%, #f59e0b 95%); -webkit-background-clip: text; background-clip: text; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.store {
  display: inline-flex; align-items: center; gap: 12px; text-decoration: none; padding: 11px 22px 11px 16px; border-radius: 16px;
  background: #111; color: #fff; border: 1.5px solid rgba(255,255,255,.35); box-shadow: 0 14px 28px -14px rgba(0,0,0,.8);
  transition: transform .2s ease, box-shadow .2s ease;
}
.store:hover { transform: translateY(-3px); box-shadow: 0 20px 34px -14px rgba(0,0,0,.8); }
.store svg { width: 30px; height: 30px; flex: none; }
.store span { display: grid; font: 800 21px/1.05 var(--display); }
.store small { font: 700 11px/1.2 var(--body); letter-spacing: .06em; text-transform: uppercase; opacity: .85; }
.try-link { display: inline-block; margin-top: 22px; font-weight: 800; color: #fff; text-underline-offset: 4px; text-shadow: 0 1px 8px rgba(0,0,0,.4); }
.hero-slot { height: min(620px, 70vh); }
.hero-flowers { position: absolute; left: 0; bottom: -7vw; width: 100%; height: auto; max-width: none; z-index: 2; pointer-events: none; }
@media (max-width: 760px) {
  .hero { align-items: flex-start; }
  .hero-inner { grid-template-columns: 1fr; padding-top: 104px; padding-bottom: 120px; gap: 0; }
  .hero-slot { height: 330px; order: -1; margin-bottom: -40px; }
  .hero-flowers { width: 160%; left: -30%; bottom: -30px; }
  .hero::before { background: linear-gradient(180deg, rgba(40,20,70,.15) 0%, rgba(40,20,70,.45) 55%, rgba(255,248,231,1) 100%); }
}

/* ---------- numbers ---------- */
.drip { position: absolute; left: 0; top: -13vw; width: 100%; max-width: none; height: auto; pointer-events: none; z-index: 3; }
.numbers { background: var(--cream); overflow: hidden; padding: clamp(110px, 20vw, 300px) var(--gutter) 60px; }
.num-list { list-style: none; margin: 0 auto; padding: 0; max-width: 1160px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.num-list li { text-align: center; padding: 22px 10px; }
.num-list b { display: block; font: 800 clamp(44px, 6vw, 80px)/1 var(--display); color: var(--navy); font-variant-numeric: tabular-nums; }
.num-list span { display: block; margin-top: 6px; font-weight: 800; color: var(--ink-soft); }
@media (max-width: 760px) { .num-list { grid-template-columns: 1fr 1fr; } }

/* ---------- journey ---------- */
.journey { background: #f4f6df; overflow: hidden; }
.journey-pin { position: relative; }
.journey-pin::before { content: ""; position: absolute; z-index: 1; left: 0; top: 0; bottom: 0; width: calc(min(400px, 32vw) + 60px); background: linear-gradient(90deg, #f4f6df 78%, rgba(244,246,223,0)); pointer-events: none; }
.journey-pin { min-height: 100svh;  padding: 110px 0 60px; display: grid; grid-template-columns: minmax(300px, 400px) 1fr; grid-template-rows: auto 1fr; align-items: center; column-gap: 20px; }
.journey-head { grid-column: 1; grid-row: 1; padding-left: var(--gutter); position: relative; z-index: 2; }
.journey-slot { grid-column: 1; grid-row: 2; height: 370px; align-self: start; }
.worlds { grid-column: 2; grid-row: 1 / span 2; display: flex; gap: 26px; will-change: transform; }
.world {
  flex: none; width: clamp(260px, 26vw, 360px); background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  border: 4px solid var(--c); transform: rotate(var(--r, 0deg));
}
.world:nth-child(odd) { --r: -1.5deg; } .world:nth-child(even) { --r: 1.5deg; margin-top: 40px; }
.world-art { aspect-ratio: 4 / 5; overflow: hidden; background: var(--c); }
.world-art img { width: 100%; height: 118%; object-fit: cover; will-change: transform; }
.world-body { padding: 16px 18px 20px; }
.world h3 { font-size: 28px; color: var(--navy); margin-top: 8px; }
.world p { color: var(--ink-soft); font-weight: 700; }
.pill { display: inline-block; font: 800 12px/1 var(--body); letter-spacing: .05em; text-transform: uppercase; padding: 7px 10px; border-radius: 999px; background: color-mix(in srgb, var(--c) 25%, #fff); color: var(--navy); }
.level-meter { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-top: 26px; font-weight: 800; color: var(--ink-soft); }
.level-meter b { font: 800 44px/1 var(--display); color: var(--honey-deep); min-width: 2.4ch; font-variant-numeric: tabular-nums; }
.meter { flex-basis: 100%; height: 12px; border-radius: 999px; background: rgba(27,33,80,.1); overflow: hidden; margin-top: 8px; }
.meter i { display: block; height: 100%; width: 100%; transform: scaleX(.004); transform-origin: 0 50%; background: repeating-linear-gradient(-45deg, var(--honey) 0 10px, #ffc94d 10px 20px); }
@media (max-width: 860px) {
  .journey-pin::before { display: none; }
  .journey-pin { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto; padding-top: 96px; row-gap: 18px; }
  .journey-head { padding-right: var(--gutter); }
  .journey-slot { grid-row: 2; height: 240px; margin: -10px 0 -20px; }
  .worlds { grid-column: 1; grid-row: 3; padding-left: var(--gutter); }
  .world { width: 240px; } .world:nth-child(even) { margin-top: 24px; }
  .world-art { aspect-ratio: 1; }
  .level-meter { margin-top: 12px; } .level-meter b { font-size: 34px; }
}

/* ---------- demo ---------- */
.demo { background: radial-gradient(1200px 600px at 80% 20%, #fff3cc 0%, transparent 60%), #e9f7d8; padding: 110px var(--gutter) 120px; }
.demo-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: center; }
.demo-steps { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 10px; counter-reset: s; }
.demo-steps li { counter-increment: s; display: flex; align-items: center; gap: 12px; font-weight: 800; color: var(--ink-soft); transition: color .3s; }
.demo-steps li::before { content: counter(s); width: 34px; height: 36px; display: grid; place-items: center; background: #fff; color: var(--ink-soft);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); font-family: var(--display); transition: background .3s, color .3s; }
.demo-steps li.on { color: var(--navy); } .demo-steps li.on::before { background: var(--honey); color: var(--navy); }
.demo-steps li.done::before { content: "✓"; background: var(--meadow); color: #fff; }
.quiz-wrap { position: relative; }
.demo-side { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.demo-side .demo-steps { flex: 1; }
.demo-slot { flex: none; width: 230px; height: 280px; }
.quiz {
  position: relative; background: #fff; border-radius: 28px; padding: 22px clamp(18px, 3vw, 30px) 28px; box-shadow: 0 30px 60px -30px rgba(40,80,0,.5), 0 0 0 6px #fff, 0 0 0 10px var(--honey);
  min-height: 390px;
}
.quiz-top { display: flex; justify-content: space-between; align-items: center; font-weight: 800; color: var(--ink-soft); }
.q-score { display: inline-flex; align-items: center; gap: 6px; background: var(--cream-2); padding: 5px 12px 5px 8px; border-radius: 999px; color: var(--navy); font-variant-numeric: tabular-nums; }
.timer { height: 8px; border-radius: 999px; background: #f1ecdf; margin: 12px 0 18px; overflow: hidden; }
.timer i { display: block; height: 100%; width: 100%; transform-origin: 0 50%; background: linear-gradient(90deg, var(--meadow), #b8e05a); }
.timer i.low { background: linear-gradient(90deg, #ff6b4a, #ffa04a); }
.q-kicker { font: 800 13px/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--honey-deep); }
.q-clue { font: 700 clamp(21px, 2.3vw, 27px)/1.3 var(--display); color: var(--navy); margin: 10px 0 18px; min-height: 2.6em; }
.options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.options button, .letters button, .say-btn, .q-actions button, .q-actions a {
  font: 800 20px/1.1 var(--display); border: 0; cursor: pointer; color: var(--navy);
}
.options button {
  background: var(--cream); border-radius: 16px; padding: 16px 12px 16px 48px; text-align: left; position: relative;
  box-shadow: inset 0 -4px 0 #eadcb5; transition: transform .15s ease, background .2s;
}
.options button::before { content: attr(data-l); position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 26px; height: 28px; display: grid; place-items: center;
  font: 800 14px/1 var(--body); background: var(--honey); color: var(--navy); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.options button:hover:not(:disabled) { transform: translateY(-2px); background: #fff1c4; }
.options button:disabled { cursor: default; }
.options button.right { background: #d9f7c9; box-shadow: inset 0 -4px 0 #8fd46e; }
.options button.right::before { background: var(--meadow); content: "✓"; color: #fff; }
.options button.wrong { background: #ffe0d6; box-shadow: inset 0 -4px 0 #f3a48d; animation: shake .4s; }
.options button.wrong::before { background: #ff7a59; content: "✗"; color: #fff; }
.options button.dim { opacity: .5; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.say-row { display: flex; gap: 10px; flex-wrap: wrap; margin: 4px 0 16px; }
.say-btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 999px; background: var(--navy); color: #fff; font-size: 17px; }
.say-btn.alt { background: var(--cream-2); color: var(--navy); }
.say-btn.pulse { animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 10px rgba(43,52,128,.15); } }
.slots { display: flex; gap: 6px; flex-wrap: wrap; margin: 4px 0 16px; }
.slots span { width: 40px; height: 48px; border-radius: 10px; border: 2.5px dashed #e3cf9a; display: grid; place-items: center; font: 800 24px/1 var(--display); color: var(--navy); background: #fffcf2; }
.slots span.filled { border-style: solid; border-color: var(--honey); background: #fff4cf; animation: pop .25s cubic-bezier(.2,1.8,.4,1); }
.slots.right span { border-color: var(--meadow); background: #d9f7c9; }
.slots.wrong { animation: shake .4s; } .slots.wrong span { border-color: #ff7a59; background: #ffe0d6; }
@keyframes pop { from { transform: scale(.6); } }
.letters { display: flex; flex-wrap: wrap; gap: 8px; }
.letters button { width: 48px; height: 52px; border-radius: 12px; background: linear-gradient(160deg, #fff4c2, #ffd262 50%, #f5a712); box-shadow: inset 0 -4px 0 rgba(160,80,0,.4); font-size: 24px; color: #5a2d00; transition: transform .15s, opacity .2s; }
.letters button:hover:not(:disabled) { transform: translateY(-3px); }
.letters button:disabled { opacity: .2; transform: scale(.9); cursor: default; }
.letters .back { width: auto; padding: 0 16px; background: #eee6d4; color: var(--ink-soft); font-size: 18px; box-shadow: inset 0 -4px 0 #d6cbb2; }
.q-feedback { margin-top: 16px; font-weight: 800; min-height: 1.6em; color: var(--ink-soft); }
.q-feedback.good { color: #2f8f1e; } .q-feedback.bad { color: #c2421f; }
.q-feedback .def { display: block; font-weight: 600; color: var(--ink-soft); }
.q-result { text-align: center; padding-top: 6px; }
.q-result h3 { font-size: clamp(30px, 3.4vw, 40px); color: var(--navy); }
.stars { display: flex; justify-content: center; gap: 8px; margin: 12px 0 6px; }
.stars i { width: 54px; height: 54px; background: #eee3c4; clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.stars i.on { background: linear-gradient(160deg, #fff27a, var(--honey) 60%, var(--honey-deep)); animation: pop .5s cubic-bezier(.2,1.8,.4,1) both; }
.stars i.on:nth-child(2) { animation-delay: .15s; } .stars i.on:nth-child(3) { animation-delay: .3s; }
.q-result p { color: var(--ink-soft); font-weight: 700; max-width: 26em; margin: 8px auto 0; }
.q-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 20px; }
.q-actions a, .q-actions button { text-decoration: none; padding: 14px 20px; border-radius: 16px; font-size: 18px; }
.q-actions .primary { background: var(--honey); box-shadow: inset 0 -4px 0 var(--honey-deep); }
.q-actions .dark { background: #111; color: #fff; }
.q-actions .ghost { background: var(--cream); }
.confetti { position: fixed; z-index: 70; pointer-events: none; width: 22px; height: 24px; left: 0; top: 0;
  background: url(/assets/honeycomb.webp) center / contain no-repeat; will-change: transform, opacity; }
@media (max-width: 860px) {
  .demo-grid { grid-template-columns: 1fr; }
  .demo-slot { width: 150px; height: 200px; }
}
@media (max-width: 440px) {
  .options { grid-template-columns: 1fr; }
  .slots span { width: 34px; height: 42px; font-size: 20px; }
  .letters button { width: 42px; height: 48px; }
}

/* ---------- battle (night) ---------- */
.battle { background: var(--night); color: #fff; overflow: hidden; isolation: isolate; padding: clamp(140px, 22vw, 320px) var(--gutter) 110px; }
.battle-bg { position: absolute; inset: -10% 0; z-index: -2; }
.battle-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 70%; }
.battle-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(26,15,58,.4) 0%, rgba(26,15,58,.72) 40%, rgba(26,15,58,.96) 72%, #1a0f3a 100%); }
.battle-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1.1fr .9fr; gap: 30px 50px; align-items: center; }
.battle .lede { color: #d9d1f5; }
.modes-row { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.modes-row li { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); border-radius: 16px; padding: 10px 16px; display: grid; }
.modes-row b { font: 800 19px/1.1 var(--display); color: var(--honey); }
.modes-row span { font-size: 14px; font-weight: 700; color: #cfc6ef; }
.fineprint { font-size: 14px; color: #b9aee0; margin-top: 16px; }
.versus { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; }
.vs-card { background: rgba(255,255,255,.1); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.22); border-radius: 22px; padding: 18px 14px; text-align: center; display: grid; justify-items: center; gap: 4px; }
.vs-card .avatar { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; font: 800 28px/1 var(--display); background: linear-gradient(160deg, #ffe07a, var(--honey-deep)); color: var(--navy); }
.vs-card.them .avatar { background: linear-gradient(160deg, #b9a6ff, #6a4bdc); color: #fff; }
.vs-card b { font-size: 17px; }
.vs-card .score { font: 800 34px/1 var(--display); color: var(--honey); font-variant-numeric: tabular-nums; }
.vs-card .bar { width: 100%; height: 8px; border-radius: 999px; background: rgba(255,255,255,.15); overflow: hidden; }
.vs-card .bar i { display: block; height: 100%; width: 100%; transform: scaleX(0); transform-origin: 0 50%; background: var(--honey); }
.vs-card.them .bar i { background: #9c86ff; }
.vs-mid { font: 800 34px/1 var(--display); color: #fff; text-align: center; text-shadow: 0 0 20px rgba(255,179,26,.8); }
.vs-mid small { display: block; font: 700 11px/1.3 var(--body); letter-spacing: .08em; text-transform: uppercase; color: #b9aee0; margin-top: 6px; }
.leagues { grid-column: 1 / -1; margin-top: 30px; }
.leagues-title { font-weight: 800; color: #cfc6ef; margin-bottom: 14px; }
.leagues ol { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; position: relative; }
.leagues li { display: grid; justify-items: center; gap: 4px; text-align: center; }
.leagues li img { width: 72px; height: 72px; object-fit: contain; filter: drop-shadow(0 8px 14px rgba(0,0,0,.45)); transition: transform .25s cubic-bezier(.2,1.6,.4,1); }
.leagues li:hover img { transform: translateY(-6px) scale(1.08); }
.leagues li b { font: 800 17px/1.1 var(--display); color: var(--m); }
.leagues li span { font-size: 13px; font-weight: 700; color: #b9aee0; }
.battle-slot { position: absolute; right: -2%; top: -190px; width: 300px; height: 380px; }
.battle-inner { position: relative; }
@media (max-width: 860px) {
  .battle-inner { grid-template-columns: 1fr; }
  .battle-slot { width: 200px; height: 250px; top: -200px; right: -10px; }
  .leagues ol { grid-template-columns: repeat(3, 1fr); row-gap: 18px; }
  .vs-card .score { font-size: 26px; }
}

/* ---------- global battle ---------- */
.world-battle { background: linear-gradient(180deg, #fbe9ff 0%, var(--cream) 100%); padding: 110px var(--gutter); overflow: hidden; }
.gb-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: center; }
.globe-wrap { position: relative; }
.globe-wrap::before { content: ""; position: absolute; inset: 8%; border-radius: 50%; background: radial-gradient(circle, rgba(255,200,60,.55), transparent 65%); filter: blur(10px); }
.globe { position: relative; width: 100%; max-width: 520px; height: auto; aspect-ratio: 1; object-fit: contain; margin: 0 auto; }
.gb-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 26px; }
.gb-card { background: #fff; border-radius: 18px; padding: 16px; box-shadow: var(--shadow); border-top: 5px solid var(--honey); }
.gb-card b { display: block; font: 800 24px/1.1 var(--display); color: var(--navy); }
.gb-card span { font-size: 14px; font-weight: 700; color: var(--ink-soft); }
.gb-copy { position: relative; }
.gb-slot { position: absolute; right: -30px; top: -250px; width: 240px; height: 290px; }
@media (max-width: 860px) {
  .gb-grid { grid-template-columns: 1fr; }
  .globe { max-width: 340px; }
  .gb-cards { grid-template-columns: 1fr; }
  .gb-slot { display: none; }
}

/* ---------- wardrobe ---------- */
.wardrobe { background: radial-gradient(900px 500px at 25% 50%, #ffe6f1 0%, transparent 70%), var(--cream); padding: 110px var(--gutter); }
.wd-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.wd-stage { position: relative; height: min(620px, 78vh); }
.spotlight { position: absolute; inset: auto 10% 4% 10%; height: 70px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255,179,26,.55), transparent); }
.wd-slot { position: absolute; inset: 0 0 40px 0; }
.wd-hint { position: absolute; left: 0; right: 0; bottom: 0; text-align: center; font-weight: 800; color: var(--ink-soft); font-size: 14px; }
.swatches { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 24px; }
.swatches button {
  display: grid; justify-items: center; gap: 2px; padding: 10px 6px 12px; border-radius: 18px; background: #fff; border: 3px solid transparent;
  cursor: pointer; font: 800 14px/1.2 var(--body); color: var(--navy); box-shadow: 0 10px 20px -14px rgba(80,40,0,.5); transition: transform .2s, border-color .2s;
}
.swatches button:hover { transform: translateY(-3px); }
.swatches button[aria-checked="true"] { border-color: var(--honey); background: #fff8df; }
.swatches img { width: 76px; height: 76px; object-fit: contain; }
.swatches em { font-style: normal; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; background: #eee; color: #555; }
.r-common { background: #e3ecf5 !important; color: #3f5a7a !important; }
.r-rare { background: #dcecff !important; color: #1f5fbf !important; }
.r-epic { background: #efdfff !important; color: #7a2fc2 !important; }
.r-legendary { background: #ffeac4 !important; color: #a35b00 !important; }
.r-mythic { background: linear-gradient(90deg, #ffd6f0, #d6e8ff) !important; color: #6b1f8a !important; }
@media (max-width: 860px) {
  .wd-grid { grid-template-columns: 1fr; }
  .wd-stage { height: 360px; order: -1; margin-bottom: -10px; }
}
@media (max-width: 420px) { .swatches img { width: 60px; height: 60px; } }

/* ---------- modes ---------- */
.modes { background: linear-gradient(180deg, var(--cream) 0%, #fff3d0 100%); padding: 100px var(--gutter); }
.modes-head { max-width: 1200px; margin: 0 auto 36px; }
.mode-grid { list-style: none; padding: 0; margin: 0 auto; max-width: 1200px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.mode-grid li { background: #fff; border-radius: 22px; padding: 18px; display: grid; grid-template-columns: 64px 1fr; grid-template-rows: auto 1fr; column-gap: 14px; align-items: center;
  box-shadow: 0 12px 26px -18px rgba(80,40,0,.55); transition: transform .25s cubic-bezier(.2,1.6,.4,1); }
.mode-grid li:hover { transform: translateY(-4px) rotate(-1deg); }
.mode-grid img { grid-row: 1 / span 2; width: 64px; height: 64px; object-fit: contain; }
.mode-grid b { font: 800 19px/1.1 var(--display); color: var(--navy); align-self: end; }
.mode-grid span { font-size: 14px; font-weight: 700; color: var(--ink-soft); line-height: 1.35; align-self: start; }
@media (max-width: 1000px) { .mode-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .mode-grid { grid-template-columns: 1fr; } }

/* ---------- families ---------- */
.families { background: #fff3d0; padding: 40px var(--gutter) 110px; }
.fam-grid { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; align-items: center; background: #fff; border-radius: 32px; padding: clamp(22px, 4vw, 48px); box-shadow: var(--shadow); }
.fam-grid h2 { font-size: clamp(30px, 3.8vw, 48px); color: var(--navy); }
.safe-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 14px; }
.safe-list li { padding-left: 40px; position: relative; color: var(--ink-soft); font-weight: 600; }
.safe-list li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 28px; height: 30px; display: grid; place-items: center; background: var(--meadow); color: #fff; font-weight: 800;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.safe-list b { color: var(--navy); }
.fam-bee { max-width: 380px; margin: 0 auto; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; }
@media (max-width: 760px) { .fam-grid { grid-template-columns: 1fr; } .fam-bee { max-width: 240px; } }

/* ---------- CTA ---------- */
.cta { background: linear-gradient(180deg, var(--navy) 0%, #11163a 100%); color: #fff; padding: clamp(130px, 21vw, 310px) var(--gutter) 90px; overflow: hidden; }
.cta-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: .8fr 1.2fr; gap: 30px; align-items: center; }
.cta-bee { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; max-width: 420px; margin: 0 auto; filter: drop-shadow(0 30px 40px rgba(0,0,0,.5)); }
.cta .lede { color: #cfd4ff; }
.cta .store { background: #000; }
@media (max-width: 760px) { .cta-inner { grid-template-columns: 1fr; text-align: center; } .cta .stores { justify-content: center; } .cta .lede { margin-inline: auto; } .cta-bee { max-width: 260px; } }

/* ---------- footer ---------- */
.foot { background: #0b0e27; color: #b8bde6; padding: 44px var(--gutter) calc(40px + env(safe-area-inset-bottom, 0px)); }
.foot-inner { max-width: 1100px; margin: 0 auto; display: grid; gap: 24px; }
.foot-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.foot-brand { display: flex; align-items: center; gap: 14px; }
.foot-brand img { border-radius: 12px; }
.foot-brand b { display: block; color: #fff; font: 800 20px/1.1 var(--display); }
.foot-brand span { font-size: 14px; }
.foot-maker { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #b8bde6; font-size: 13px; font-weight: 700; }
.foot-maker img { width: 110px; transition: transform .25s cubic-bezier(.2,1.6,.4,1); }
.foot-maker:hover img { transform: scale(1.05) rotate(-2deg); }
.foot-links { display: flex; flex-wrap: wrap; gap: 10px 22px; border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px; }
.foot-links a { font-weight: 700; text-underline-offset: 3px; }
.copy { font-size: 13px; opacity: .8; }

/* ---------- legal pages (privacy, terms, delete account) ---------- */
.legal-page { background: var(--cream); }
.legal-hero { position: relative; overflow: hidden; padding: 120px var(--gutter) 70px;
  background: radial-gradient(700px 360px at 85% 30%, rgba(255,255,255,.55), transparent 70%), linear-gradient(160deg, #ffd95a 0%, var(--honey) 55%, var(--honey-deep) 100%); }
.legal-hero::before { content: ""; position: absolute; inset: 0; opacity: .14; pointer-events: none;
  background: url(/assets/honeycomb.webp) 0 0 / 64px auto repeat; }
.legal-hero-inner { position: relative; max-width: 980px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.legal-hero .eyebrow { color: var(--navy); }
.legal-hero h1 { font-size: clamp(36px, 5.4vw, 64px); font-weight: 800; color: var(--navy); }
.legal-meta { margin-top: 10px; font-weight: 700; color: rgba(27,33,80,.75); }
.legal-bee { width: clamp(120px, 18vw, 200px); flex: none; filter: drop-shadow(0 16px 20px rgba(90,40,0,.35)); transform: rotate(6deg); }
.legal { padding: 0 var(--gutter) 90px; }
.legal-card { max-width: 980px; margin: -34px auto 0; position: relative; background: #fff; border-radius: 28px;
  padding: clamp(22px, 4vw, 52px); box-shadow: var(--shadow); line-height: 1.7; }
.legal-card > * { max-width: 72ch; }
.legal-card h2 { font-size: clamp(22px, 2.4vw, 28px); color: var(--navy); margin: 34px 0 10px; display: flex; align-items: center; gap: 10px; }
.legal-card h2::before { content: ""; flex: none; width: 16px; height: 18px; background: var(--honey);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.legal-card h2:first-child { margin-top: 0; }
.legal-card p, .legal-card li { color: var(--ink); }
.legal-card p + p { margin-top: 12px; }
.legal-card ul, .legal-card ol { padding-left: 1.3em; display: grid; gap: 6px; }
.legal-card li::marker { color: var(--honey-deep); font-weight: 800; }
.legal-card a { color: var(--navy-2); font-weight: 700; text-underline-offset: 3px; }
.table-wrap { max-width: 100%; overflow-x: auto; margin-top: 8px; border-radius: 16px; border: 1px solid #efe4c4; }
.legal-card table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 15px; }
.legal-card th, .legal-card td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid #f3ead1; }
.legal-card th { background: var(--cream-2); color: var(--navy); font-family: var(--display); font-size: 16px; }
.legal-card tr:last-child td { border-bottom: 0; }
.legal-steps { background: var(--cream); border-radius: 20px; padding: 16px 22px; border: 2px dashed #f0d58a; }
.legal-card a.button { display: inline-block; margin-top: 4px; text-decoration: none; background: var(--honey); color: var(--navy);
  font: 800 17px/1 var(--body); padding: 14px 20px; border-radius: 16px; box-shadow: inset 0 -4px 0 var(--honey-deep); }
.nav-links a[aria-current="page"] { background: rgba(255,179,26,.35); }

/* ---------- support page ---------- */
.legal-card > .help-grid, .legal-card > .support-form { max-width: none; }
.help-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 12px; margin-top: 6px; }
.help-item { background: var(--cream); border-radius: 18px; padding: 14px 16px; display: grid; align-content: start; gap: 4px; line-height: 1.5; }
.help-item b:first-child { color: var(--navy); font-family: var(--display); font-size: 17px; }
.help-links { margin-top: 14px; }
.support-form { display: grid; gap: 14px; margin-top: 14px; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 14px; }
.field { display: grid; gap: 6px; font-weight: 800; color: var(--navy); }
.field i { font-style: normal; font-weight: 700; color: var(--ink-soft); }
.field input, .field select, .field textarea { font: 600 16px/1.4 var(--body); color: var(--ink); background: #fff; width: 100%;
  border: 2px solid #efe0b6; border-radius: 14px; padding: 11px 13px; }
.field textarea { resize: vertical; min-height: 150px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--honey); box-shadow: 0 0 0 4px rgba(255,179,26,.25); }
.field [aria-invalid=true] { border-color: #d6455d; }
.field-error { color: #c0334b; font-weight: 700; }
.field-count { justify-self: end; color: var(--ink-soft); font-weight: 700; font-variant-numeric: tabular-nums; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { font-size: 14px; color: var(--ink-soft); }
.support-form .send { justify-self: start; border: 0; cursor: pointer; background: var(--honey); color: var(--navy);
  font: 800 17px/1 var(--body); padding: 15px 24px; border-radius: 16px; box-shadow: inset 0 -4px 0 var(--honey-deep); }
.support-form .send:disabled { opacity: .7; cursor: default; }
.form-status { border-radius: 16px; padding: 14px 16px; font-weight: 700; line-height: 1.5; }
.form-status.ok { background: #e6f6e0; color: #23572a; }
.form-status.fail { background: #fde8ea; color: #8a2232; }
.copy-btn { margin-left: 8px; border: 2px solid #efe0b6; background: #fff; color: var(--navy); font: 800 13px/1 var(--body);
  padding: 7px 11px; border-radius: 999px; cursor: pointer; }
@media (max-width: 600px) { .legal-bee { display: none; } .legal-hero { padding-top: 104px; } }

/* ---------- motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
.human-check:empty { display: none; }
