@font-face{font-family:'Fredoka';font-style:normal;font-weight:500;font-display:swap;src:url(/fonts/fredoka-latin-500-normal.woff2) format('woff2')}
@font-face{font-family:'Fredoka';font-style:normal;font-weight:600;font-display:swap;src:url(/fonts/fredoka-latin-600-normal.woff2) format('woff2')}
@font-face{font-family:'Fredoka';font-style:normal;font-weight:700;font-display:swap;src:url(/fonts/fredoka-latin-700-normal.woff2) format('woff2')}
@font-face{font-family:'Nunito';font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/nunito-latin-400-normal.woff2) format('woff2')}
@font-face{font-family:'Nunito';font-style:normal;font-weight:600;font-display:swap;src:url(/fonts/nunito-latin-600-normal.woff2) format('woff2')}
@font-face{font-family:'Nunito';font-style:normal;font-weight:700;font-display:swap;src:url(/fonts/nunito-latin-700-normal.woff2) format('woff2')}
@font-face{font-family:'Nunito';font-style:normal;font-weight:800;font-display:swap;src:url(/fonts/nunito-latin-800-normal.woff2) format('woff2')}
@font-face{font-family:'Nunito';font-style:italic;font-weight:400;font-display:swap;src:url(/fonts/nunito-latin-400-italic.woff2) format('woff2')}
/* Layout: the island map IS the home screen (full-bleed hero with a floating HUD and an expedition card docked under it);
   everything else is quiet paper. The exam shell is a separate, calm, white test-day surface. */
:root {
  --bg: #f1f5fa; --surface: #ffffff; --surface-2: #f6f8fc; --fg: #1f2a44; --muted: #627089; --line: #dde5f0;
  --accent: #f0862b; --accent-deep: #c4651a; --accent-soft: #ffeeda; --accent-ink: #ffffff;
  --sea: #2d9fc4; --sea-soft: #e3f4fa; --leaf: #5fae55; --gold: #ffd54a; --gold-deep: #e0a800; --gold-soft: #fff6d8;
  --good: #2fa37a; --good-soft: #e1f5ec; --bad: #e2554f; --bad-soft: #fde7e6;
  --exam: #2f7bd9; --exam-soft: #e8f0fb; --exam-bar: #ffffff;
  --pet-bg: #eef5ff; --shadow: 0 12px 32px rgba(31,42,68,.12); --shadow-sm: 0 2px 8px rgba(31,42,68,.08);
  --display: "Fredoka", "Nunito", system-ui, sans-serif; --body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #0f1623; --surface: #182136; --surface-2: #1f2a43; --fg: #edf2ff; --muted: #9fb0cc; --line: #2b3a58;
  --accent: #ff9a45; --accent-deep: #b9611a; --accent-soft: #3a2712; --accent-ink: #1b1208;
  --sea: #5ec3e3; --sea-soft: #15283a; --leaf: #78c76e; --gold: #ffc247; --gold-deep: #c99400; --gold-soft: #3a2f12;
  --good: #4cc695; --good-soft: #15362b; --bad: #ff7a73; --bad-soft: #3d1c1b;
  --exam: #5aa0ff; --exam-soft: #1a2a46; --exam-bar: #182136; --pet-bg: #223052;
  --shadow: 0 12px 32px rgba(0,0,0,.4); --shadow-sm: 0 2px 8px rgba(0,0,0,.3); color-scheme: dark; } }
:root[data-theme="dark"] {
  --bg: #0f1623; --surface: #182136; --surface-2: #1f2a43; --fg: #edf2ff; --muted: #9fb0cc; --line: #2b3a58;
  --accent: #ff9a45; --accent-deep: #b9611a; --accent-soft: #3a2712; --accent-ink: #1b1208;
  --sea: #5ec3e3; --sea-soft: #15283a; --leaf: #78c76e; --gold: #ffc247; --gold-deep: #c99400; --gold-soft: #3a2f12;
  --good: #4cc695; --good-soft: #15362b; --bad: #ff7a73; --bad-soft: #3d1c1b;
  --exam: #5aa0ff; --exam-soft: #1a2a46; --exam-bar: #182136; --pet-bg: #223052;
  --shadow: 0 12px 32px rgba(0,0,0,.4); --shadow-sm: 0 2px 8px rgba(0,0,0,.3); color-scheme: dark; }

* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--body); font-size: 17px; line-height: 1.5; -webkit-text-size-adjust: 100%; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { font-family: var(--display); line-height: 1.1; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(1.9rem, 4.5vw, 2.7rem); font-weight: 700; }
h2 { font-size: 1.5rem; font-weight: 600; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.kicker { font-family: var(--display); font-weight: 600; color: var(--muted); font-size: .95rem; }
:focus-visible { outline: 3px solid var(--exam); outline-offset: 2px; border-radius: 8px; }
[hidden] { display: none !important; }

/* Shell */
#app { min-height: 100%; display: flex; flex-direction: column; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding-inline: 16px; padding-block: 14px 110px; }
.topbar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); }
.topbar .in { max-width: 1120px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 12px; }
.brand { display: flex; align-items: center; gap: 8px; font-family: var(--display); font-weight: 700; font-size: 1.35rem; letter-spacing: .01em; }
.brand svg { width: 40px; height: 40px; }
.chips { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; align-items: center; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow-sm); font-weight: 800; font-size: .92rem; font-variant-numeric: tabular-nums; }
.chip.gold { background: var(--gold-soft); } .chip.fire { background: var(--accent-soft); } .chip.spark { background: var(--exam-soft); }
.chip .pet-mini { width: 28px; height: 28px; border-radius: 50%; overflow: hidden; margin-left: -4px; }
.chip .pet-mini svg { width: 100%; height: 100%; }

.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; justify-content: center; padding: 0 10px calc(10px + env(safe-area-inset-bottom, 0px)); pointer-events: none; }
.tabbar .dock { pointer-events: auto; display: flex; gap: 2px; background: var(--surface); border-radius: 22px; box-shadow: var(--shadow); padding: 6px; width: 100%; max-width: 560px; }
.tabbar button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 7px 4px; border: 0; background: none; border-radius: 16px; color: var(--muted); font-size: .72rem; font-weight: 800; }
.tabbar button .ico { font-size: 1.35rem; line-height: 1.2; }
.tabbar button.on { color: var(--accent-deep); background: var(--accent-soft); }
:root[data-theme="dark"] .tabbar button.on { color: var(--accent); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tabbar button.on { color: var(--accent); } }

/* Cards & buttons */
.card { background: var(--surface); border-radius: 22px; padding: 20px; box-shadow: var(--shadow-sm); }
.card.flat { box-shadow: none; border: 1px solid var(--line); }
.card.pad-lg { padding: 26px; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 760px) { .g2, .g3 { grid-template-columns: 1fr; } }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 16px; border: 0; font-family: var(--display); font-weight: 600; font-size: 1.05rem; letter-spacing: .01em; background: var(--surface-2); color: var(--fg); box-shadow: 0 4px 0 var(--line); transition: transform .06s ease, box-shadow .06s ease; text-decoration: none; min-height: 48px; }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--line); }
.btn.primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 4px 0 var(--accent-deep); }
.btn.primary:active { box-shadow: 0 1px 0 var(--accent-deep); }
.btn.exam { background: var(--exam); color: #fff; box-shadow: 0 4px 0 #1f5aa6; }
.btn.exam:active { box-shadow: 0 1px 0 #1f5aa6; }
.btn.gold { background: var(--gold); color: #4a3200; box-shadow: 0 4px 0 var(--gold-deep); }
.btn.ghost { background: var(--surface); box-shadow: inset 0 0 0 2px var(--line); }
.btn.ghost:active { transform: none; }
.btn.lg { padding: 16px 28px; font-size: 1.2rem; border-radius: 20px; }
.btn.sm { padding: 8px 14px; min-height: 38px; font-size: .95rem; border-radius: 12px; box-shadow: 0 3px 0 var(--line); }
.btn.sm.primary { box-shadow: 0 3px 0 var(--accent-deep); }
.btn.sm.exam { box-shadow: 0 3px 0 #1f5aa6; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn.block { width: 100%; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: .8rem; font-weight: 800; background: var(--surface-2); }
.pill.good { background: var(--good-soft); color: var(--good); }
.pill.bad { background: var(--bad-soft); color: var(--bad); }
.pill.warn { background: var(--gold-soft); color: #7a5200; }
.pill.exam { background: var(--exam-soft); color: var(--exam); }
:root[data-theme="dark"] .pill.warn { color: var(--gold); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pill.warn { color: var(--gold); } }
label.field { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: .95rem; }
input[type=text], input[type=password], input[type=number], input[type=email], select, textarea { padding: 12px 14px; border-radius: 14px; border: 2px solid var(--line); background: var(--surface); min-height: 48px; width: 100%; }
input:focus, select:focus, textarea:focus { border-color: var(--exam); outline: none; }
textarea { min-height: 120px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .85rem; }
.notice { padding: 12px 14px; border-radius: 14px; background: var(--surface-2); font-size: .95rem; }
.notice.good { background: var(--good-soft); } .notice.bad { background: var(--bad-soft); } .notice.gold { background: var(--gold-soft); }
.divider { height: 1px; background: var(--line); }

/* Difficulty slider */
.tune { display: grid; gap: 8px; }
.tune input[type=range] { width: 100%; accent-color: var(--accent); height: 36px; }
.tune .labels { display: flex; justify-content: space-between; font-size: .8rem; font-weight: 800; color: var(--muted); }
.tune .now { font-family: var(--display); font-weight: 600; font-size: 1.05rem; }

/* Welcome */
.welcome-hero { position: relative; border-radius: 28px; overflow: hidden; background: #2d9fc4; color: #fff; box-shadow: var(--shadow); min-height: 360px; aspect-ratio: 2 / 1; display: flex; align-items: flex-end; }
.welcome-hero .island { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.welcome-hero .copy { position: relative; padding: 28px 28px 24px; max-width: 560px; }
.welcome-hero h1 { font-size: clamp(2.4rem, 6vw, 4rem); color: #fff; text-shadow: 0 3px 0 rgba(0,0,0,.18); }
.welcome-hero p { color: #fff; font-size: 1.1rem; max-width: 46ch; text-shadow: 0 1px 2px rgba(0,0,0,.25); }
.welcome-hero .scrim { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,60,90,.72) 0%, rgba(20,60,90,.35) 55%, rgba(20,60,90,0) 100%); }
.profile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.profile { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 12px 14px; border-radius: 22px; background: var(--surface); box-shadow: var(--shadow-sm); border: 3px solid transparent; font-weight: 800; font-family: var(--display); font-size: 1.05rem; }
.profile:hover, .profile.sel { border-color: var(--accent); }
.profile svg { width: 100px; height: 100px; }
.profile .g { font-family: var(--body); font-size: .78rem; color: var(--muted); font-weight: 700; }
.emoji-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 320px; }
.emoji-grid button { font-size: 2rem; padding: 12px; border-radius: 16px; border: 2px solid var(--line); background: var(--surface); }
.emoji-grid button.sel { border-color: var(--accent); background: var(--accent-soft); }
.pwslots { display: flex; gap: 8px; font-size: 1.8rem; min-height: 48px; }
.pwslots span { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 12px; background: var(--surface-2); border: 2px dashed var(--line); }

/* Island home */
.map-hero { position: relative; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow); background: #2d9fc4; }
.map-scroll { overflow-x: auto; overflow-y: hidden; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.map-scroll::-webkit-scrollbar { display: none; }
.map-scroll .island { display: block; width: 100%; height: auto; min-width: 100%; }
@media (max-width: 760px) { .map-scroll .island { width: 900px; } }
.map-hud { position: absolute; top: 14px; left: 14px; right: 14px; display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; pointer-events: none; }
.map-hud > * { pointer-events: auto; }
.map-title { background: rgba(255,255,255,.92); color: #1f2a44; border-radius: 18px; padding: 10px 16px; box-shadow: var(--shadow-sm); max-width: 320px; }
.map-title h1 { font-size: 1.5rem; color: #1f2a44; }
.map-title .small { color: #627089; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 600px) { .map-title { padding: 8px 12px; max-width: 70vw; } .map-title h1 { font-size: 1.15rem; } .map-title .small { font-size: .78rem; } .brand span { display: none; } .chip { padding: 4px 9px; font-size: .82rem; } .topbar .in { padding: 8px 12px; gap: 8px; } }
.map-node { cursor: pointer; }
.map-node.current .pulse { animation: pulse 1.8s ease-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes pulse { 0% { transform: scale(.9); opacity: .6 } 100% { transform: scale(1.35); opacity: 0 } }
.map-pet { animation: bob 2.2s ease-in-out infinite; transform-box: fill-box; transform-origin: center bottom; }
@keyframes bob { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-9px) } }
.cloud { animation: drift 60s linear infinite; }
.cloud.c2 { animation-duration: 85s; animation-delay: -30s; } .cloud.c3 { animation-duration: 70s; animation-delay: -50s; }
@keyframes drift { from { transform: translateX(-120px) } to { transform: translateX(1300px) } }
.sea-waves { animation: waves 6s linear infinite; }
@keyframes waves { from { transform: translateX(0) } to { transform: translateX(80px) } }
@media (prefers-reduced-motion: reduce) { .cloud, .sea-waves, .map-pet, .map-node .pulse, .hq-pet-body, .hq-spark, .confetti i { animation: none !important; } }
.expedition { margin: -34px 16px 0; position: relative; z-index: 2; }
@media (max-width: 760px) { .expedition { margin: -22px 8px 0; } }
.expedition .card { border: 3px solid var(--gold); }
.quest-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .quest-cols { grid-template-columns: 1fr; } }
.quest-col { display: flex; flex-direction: column; gap: 8px; }
.progressbar { height: 14px; border-radius: 999px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.progressbar > i { display: block; height: 100%; background: var(--accent); border-radius: 999px; transition: width .4s ease; }
.progressbar.exam > i { background: var(--exam); }
.progressbar.gold > i { background: var(--gold); }
.mode-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 640px) { .mode-row { grid-template-columns: 1fr; } }
.mode-btn { display: flex; align-items: center; gap: 12px; text-align: left; padding: 12px 14px; border-radius: 18px; border: 0; background: var(--surface-2); width: 100%; box-shadow: 0 3px 0 var(--line); }
.mode-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--line); }
.mode-btn .ico { font-size: 1.4rem; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 14px; background: var(--surface); flex: none; }
.mode-btn b { display: block; font-family: var(--display); font-weight: 600; font-size: 1rem; }
.mode-btn span.small { display: block; line-height: 1.3; }
.bubble { position: relative; background: var(--surface); border-radius: 20px; padding: 14px 18px; font-size: 1.05rem; box-shadow: var(--shadow-sm); }
.bubble::after { content: ""; position: absolute; left: 30px; bottom: -10px; width: 20px; height: 20px; background: var(--surface); transform: rotate(45deg); }
.mascot-row { display: flex; gap: 14px; align-items: flex-end; }
.mascot-row svg { flex: none; width: 110px; height: 110px; }
.pet-stage { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.pet-stage .hq-pet { width: min(100%, 280px); height: auto; filter: drop-shadow(0 14px 20px rgba(27,37,64,.16)); }
.hq-pet.cheer .hq-pet-body { animation: hop 1.1s ease-in-out infinite; transform-origin: 100px 180px; }
.hq-pet.happy .hq-pet-body { animation: breathe 3.2s ease-in-out infinite; transform-origin: 100px 180px; }
.hq-spark { animation: twinkle 1.8s ease-in-out infinite; transform-origin: 100px 142px; }
@keyframes hop { 0%,100% { transform: translateY(0) } 40% { transform: translateY(-14px) scale(1.02,.98) } 60% { transform: translateY(-10px) } }
@keyframes breathe { 0%,100% { transform: scaleY(1) } 50% { transform: scaleY(1.025) } }
@keyframes twinkle { 0%,100% { transform: scale(1); opacity: 1 } 50% { transform: scale(1.25); opacity: .85 } }

/* Story chapters */
.chapters { display: grid; gap: 12px; }
.chapter { display: grid; grid-template-columns: 60px 1fr; gap: 14px; align-items: start; padding: 14px; border-radius: 20px; background: var(--surface); box-shadow: var(--shadow-sm); }
.chapter.locked { opacity: .6; }
.chapter.current { outline: 3px solid var(--accent); }
.chapter .n { width: 60px; height: 60px; border-radius: 18px; background: var(--accent-soft); display: grid; place-items: center; font-size: 1.7rem; }

/* Exam shell (test-day surface) */
.exam-shell { min-height: 100%; display: flex; flex-direction: column; background: var(--exam-soft); font-family: var(--body); }
.exam-top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; background: var(--exam-bar); border-bottom: 1px solid var(--line); }
.exam-top .in { max-width: 1180px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 14px; }
.exam-top .title { font-weight: 800; display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.exam-top .title .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--exam); }
.exam-top .prog { flex: 1; display: flex; align-items: center; gap: 10px; min-width: 0; }
.exam-top .prog .progressbar { flex: 1; height: 10px; }
.exam-top .count { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; font-size: .9rem; }
.exam-body { flex: 1; width: 100%; max-width: 1180px; margin: 0 auto; padding: 16px 16px 120px; display: grid; gap: 16px; grid-template-columns: 1fr; }
.exam-body.split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 860px) { .exam-body.split { grid-template-columns: 1fr; } }
.pane { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 24px; min-width: 0; }
.pane.passage { max-height: calc(100vh - 220px); overflow: auto; }
@media (max-width: 860px) { .pane.passage { max-height: none; } .pane.passage.collapsed .ptext { display: none; } }
.ptext { font-size: 1.05rem; line-height: 1.75; max-width: 68ch; }
.ptext p { margin: 0 0 1em; position: relative; padding-left: 2.2em; }
.ptext p .pn, .ptext .stanza .pn { position: absolute; left: 0; top: .15em; font-size: .78rem; font-weight: 800; color: var(--muted); background: var(--surface-2); border-radius: 6px; padding: 1px 6px; }
.ptext p.nonum { padding-left: 0; }
.ptext .stanza { margin: 0 0 1.1em; padding-left: 2.2em; position: relative; white-space: pre-line; }
.ptext h3.ph { font-family: var(--body); font-size: 1.05rem; margin: 1em 0 .5em; }
.ptitle { font-family: var(--display); font-size: 1.6rem; font-weight: 600; margin-bottom: 4px; }
.g1 .ptext { font-size: 1.3rem; line-height: 1.9; }
.g1 .stem { font-size: 1.35rem; }
.g1 .choice { font-size: 1.25rem; padding: 16px 18px; }
.stimulus { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-bottom: 14px; white-space: pre-line; font-size: 1.05rem; }
.stem { font-size: 1.12rem; font-weight: 700; margin-bottom: 16px; white-space: pre-line; }
table.dt { border-collapse: collapse; margin: 6px 0 14px; font-variant-numeric: tabular-nums; }
table.dt th, table.dt td { border: 1px solid var(--line); padding: 6px 12px; text-align: left; }
table.dt th { background: var(--surface-2); }
.tablewrap { overflow-x: auto; }
.choices { display: flex; flex-direction: column; gap: 10px; }
.choice { display: flex; align-items: center; gap: 14px; text-align: left; width: 100%; padding: 14px 16px; border-radius: 14px; border: 2px solid var(--line); background: var(--surface); font-size: 1.05rem; line-height: 1.4; }
.choice:hover { border-color: var(--exam); }
.choice .mark { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; font-weight: 800; font-size: .85rem; }
.choice.ms .mark { border-radius: 8px; }
.choice.sel { border-color: var(--exam); background: var(--exam-soft); }
.choice.sel .mark { background: var(--exam); border-color: var(--exam); color: #fff; }
.choice.right { border-color: var(--good); background: var(--good-soft); }
.choice.right .mark { background: var(--good); border-color: var(--good); color: #fff; }
.choice.wrong { border-color: var(--bad); background: var(--bad-soft); }
.choice.wrong .mark { background: var(--bad); border-color: var(--bad); color: #fff; }
.choice:disabled { cursor: default; }
.choice .txt { flex: 1; min-width: 0; }
.numeric { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.numeric input { max-width: 220px; font-size: 1.3rem; font-weight: 800; text-align: center; font-variant-numeric: tabular-nums; }
.numeric .unit { font-weight: 800; }
.keypad { display: grid; grid-template-columns: repeat(4, 56px); gap: 8px; margin-top: 10px; }
.keypad button { height: 48px; border-radius: 10px; border: 2px solid var(--line); background: var(--surface-2); font-weight: 800; font-size: 1.1rem; }
.spk { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--line); background: var(--surface); font-size: 1rem; flex: none; margin-left: 8px; vertical-align: middle; }
.spk:hover { border-color: var(--exam); }
.buckets { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-top: 12px; }
.bucket { min-height: 110px; border: 2px dashed var(--line); border-radius: 12px; padding: 10px; background: var(--surface-2); }
.bucket.over { border-color: var(--exam); background: var(--exam-soft); }
.bucket h4 { margin: 0 0 8px; font-size: .85rem; color: var(--muted); }
.cards { display: flex; flex-wrap: wrap; gap: 8px; min-height: 44px; }
.dcard { padding: 8px 12px; border-radius: 10px; border: 2px solid var(--line); background: var(--surface); font-weight: 700; cursor: grab; text-align: left; }
.dcard.sel { border-color: var(--exam); background: var(--exam-soft); }
.dcard.right { border-color: var(--good); background: var(--good-soft); }
.dcard.wrong { border-color: var(--bad); background: var(--bad-soft); }
.tray { padding: 10px; border-radius: 12px; background: var(--surface-2); border: 2px solid var(--line); }
.orderlist { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.orow { display: flex; align-items: center; gap: 10px; }
.orow .num { width: 30px; height: 30px; border-radius: 50%; background: var(--surface-2); border: 2px solid var(--line); display: grid; place-items: center; font-weight: 800; font-size: .85rem; flex: none; }
.orow .dcard { flex: 1; }
.orow .mv { display: flex; flex-direction: column; gap: 4px; }
.orow .mv button { width: 34px; height: 24px; border-radius: 6px; border: 1px solid var(--line); background: var(--surface); font-size: .7rem; }
.exam-foot { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; background: var(--exam-bar); border-top: 1px solid var(--line); padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); }
.exam-foot .in { max-width: 1180px; margin: 0 auto; display: flex; align-items: center; gap: 12px; }
.exam-foot .spacer { flex: 1; }
.feedback { border-radius: 16px; padding: 18px; border: 2px solid var(--good); background: var(--good-soft); margin-top: 16px; }
.feedback.bad { border-color: var(--bad); background: var(--bad-soft); }
.feedback h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.feedback .mascot-mini { display: flex; gap: 12px; align-items: flex-start; }
.feedback .mascot-mini svg { flex: none; width: 64px; height: 64px; }
.feedback details { margin-top: 10px; }
.feedback summary { cursor: pointer; font-weight: 800; }
.tip { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); margin-top: 10px; }
.tip .ico { font-size: 1.3rem; }
.ptabs { display: none; gap: 8px; margin-bottom: 12px; }
.m-only { display: none; }
@media (max-width: 860px) { .ptabs { display: flex; } .m-hidden { display: none; } .m-only { display: inline-flex; } .m-hide { display: none; } }
.ptabs button { flex: 1; padding: 10px; border-radius: 10px; border: 2px solid var(--line); background: var(--surface); font-weight: 800; }
.ptabs button.on { border-color: var(--exam); background: var(--exam-soft); color: var(--exam); }

/* Results */
.score-ring { width: 150px; height: 150px; }
.skillrow { display: grid; grid-template-columns: 1fr auto; gap: 8px 14px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.skillrow:last-child { border-bottom: 0; }
.bar { height: 10px; border-radius: 999px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; min-width: 120px; }
.bar > i { display: block; height: 100%; border-radius: 999px; }
.lvl-good > i { background: var(--good); } .lvl-mid > i { background: var(--gold); } .lvl-low > i { background: var(--bad); } .lvl-none > i { background: var(--line); }

/* Shop & pet */
.shop-tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.shop-tabs button { white-space: nowrap; padding: 8px 16px; border-radius: 999px; border: 0; background: var(--surface); box-shadow: var(--shadow-sm); font-family: var(--display); font-weight: 600; }
.shop-tabs button.on { background: var(--accent); color: var(--accent-ink); }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.shop-item { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 10px; border-radius: 20px; border: 3px solid transparent; background: var(--surface); box-shadow: var(--shadow-sm); text-align: center; }
.shop-item.owned { border-color: var(--good); }
.shop-item.equipped { border-color: var(--accent); background: var(--accent-soft); }
.shop-item .nm { font-weight: 800; font-size: .92rem; }
.shop-item .pr { font-weight: 800; color: var(--muted); font-size: .85rem; }
.shop-item[aria-disabled="true"] { opacity: .55; }
.slot-tabs { display: flex; gap: 6px; flex-wrap: wrap; }

/* Progress / dashboard */
.kpi { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; }
.kpi .card { padding: 14px; }
.kpi .v { font-family: var(--display); font-size: 1.9rem; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.kpi .l { font-size: .8rem; color: var(--muted); font-weight: 700; margin-top: 4px; }
.sessions { display: flex; align-items: flex-end; gap: 6px; height: 120px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.sessions .b { flex: 1; max-width: 32px; border-radius: 6px 6px 0 0; background: var(--exam); min-height: 3px; position: relative; }
.sessions .b.m { background: var(--good); }
.sessions .b span { position: absolute; top: -20px; left: 50%; transform: translateX(-50%); font-size: .7rem; font-weight: 800; color: var(--muted); }
table.plain { width: 100%; border-collapse: collapse; font-size: .95rem; }
table.plain th, table.plain td { padding: 8px 10px; text-align: left; border-bottom: 1px solid var(--line); }
table.plain th { font-size: .8rem; color: var(--muted); font-weight: 800; }
.badge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.badge { text-align: center; padding: 12px 8px; border-radius: 16px; background: var(--surface-2); }
.badge .ico { font-size: 1.8rem; }
.badge.locked { opacity: .4; filter: grayscale(1); }
.badge .nm { font-size: .8rem; font-weight: 800; }

/* Modal & toast */
.modal-bg { position: fixed; inset: 0; background: rgba(10,16,32,.55); display: grid; place-items: center; z-index: 50; padding: 16px; }
.modal { background: var(--surface); border-radius: 26px; padding: 26px; max-width: 520px; width: 100%; box-shadow: var(--shadow); max-height: 92vh; overflow: auto; }
.toast { position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--fg); color: var(--bg); padding: 10px 18px; border-radius: 999px; font-weight: 800; z-index: 60; box-shadow: var(--shadow); white-space: nowrap; max-width: 92vw; overflow: hidden; text-overflow: ellipsis; }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 55; overflow: hidden; }
.confetti i { position: absolute; top: -10px; width: 10px; height: 14px; border-radius: 2px; animation: fall 1.8s linear forwards; }
@keyframes fall { to { transform: translateY(110vh) rotate(540deg); opacity: .2; } }
.reward-art { display: flex; justify-content: center; }
.reward-art svg { width: 140px; height: 140px; }

/* Standalone site additions: email, contact, links */
label.check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; font-weight: 600; color: var(--muted); }
label.check input { width: 22px; height: 22px; margin-top: 1px; flex: none; accent-color: var(--accent); }
.linkbtn { background: none; border: 0; padding: 0; color: var(--exam); font: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
textarea.msgbox { font-family: var(--body); font-size: 1rem; min-height: 140px; resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
/* Phones: the welcome hero's 2:1 ratio plus its 360px minimum height forced a 720px-wide
   page, so phones rendered the whole site zoomed out. Let the height lead on narrow screens. */
@media (max-width: 760px) { .welcome-hero { aspect-ratio: auto; min-height: 440px; } }

/* Characters and brand (characters.js) */
.hq-spark { transform-box: fill-box; transform-origin: center; }
.hq-mascot, .hq-pet { overflow: visible; }
.welcome-hero .hero-logo { position: absolute; top: 18px; right: 18px; width: 132px; height: 132px; border-radius: 30px; transform: rotate(5deg); box-shadow: 0 10px 24px rgba(10,30,50,.28), 0 0 0 4px #fff; z-index: 2; }
.welcome-hero .hero-mascot { position: absolute; right: 150px; bottom: -8px; width: 280px; z-index: 1; pointer-events: none; filter: drop-shadow(0 14px 18px rgba(10,30,50,.25)); }
.welcome-hero .hero-mascot svg { width: 100%; height: auto; display: block; }
.welcome-hero .copy { z-index: 2; }
@media (max-width: 980px) { .welcome-hero .hero-mascot { right: 18px; width: 220px; } }
@media (max-width: 760px) {
  .welcome-hero .hero-logo { width: 84px; height: 84px; border-radius: 20px; top: 14px; right: 14px; }
  .welcome-hero .hero-mascot { left: 8px; right: auto; top: 6px; bottom: auto; width: 150px; }
  .welcome-hero .copy { padding-top: 158px; }
}
.starter-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.profile.starter .g { font-size: .74rem; }
.profile.starter { padding: 14px 10px 16px; background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%); }
.profile.starter svg { width: 100%; height: auto; max-width: 150px; aspect-ratio: 1 / 1; }
.profile.starter.sel { box-shadow: 0 0 0 4px var(--accent-soft), var(--shadow-sm); }
@media (max-width: 600px) { .starter-grid { gap: 8px; grid-template-columns: repeat(3, minmax(0, 1fr)); } .profile.starter { padding: 10px 4px 12px; } .profile.starter svg { width: 100%; height: auto; } .profile.starter .g { display: none; } }
.made-by { display: flex; gap: 14px; align-items: center; margin-top: 28px; padding: 14px 16px; border-radius: 20px; background: var(--surface); box-shadow: var(--shadow-sm); }
.made-by img { width: 56px; height: 56px; border-radius: 14px; flex: none; }
.made-by div { display: flex; flex-direction: column; gap: 2px; }

/* v2: accounts and the free plan */
.notice.lock { background: var(--surface-2, #eef3f8); border-left: 4px solid var(--gold, #f2a600); }
.notice.lock a { font-weight: 800; }
.profile.locked { opacity: .55; filter: grayscale(.6); }
.is-locked .tune input[type=range], .is-locked select { opacity: .5; }
.welcome-doors .card { justify-content: space-between; }
.welcome-doors h2 { margin: 0; }
.plan.family { border: 2px solid var(--gold, #f2a600); }
.credits p { margin: 0; }
/* Math figures inside the exam (js/figures.js draws the SVG; these rules size and frame it) */
.item-fig { display: flex; flex-direction: column; align-items: center; margin: 0 0 6px; min-width: 0; }
.pane .hqfig { width: 100%; max-width: 100%; min-width: 0; margin: 4px auto 12px; }
.pane .hqfig svg { max-width: min(100%, 520px); max-height: 440px; margin: 0 auto; }
.pane .hqfig-row { min-width: 0; }
.pane .hqfig-row > .cell { min-width: 0; flex-basis: 104px; }
.pane .hqfig-row > .cell svg { max-height: 200px; }
.exam-body.math .pane { padding: 20px; }
@media (max-width: 480px) { .exam-body.math .pane { padding: 14px 12px; } .exam-body.math .stem { font-size: 1.06rem; } }
/* picture choices */
.choices.pics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.choices.pics.wide { grid-template-columns: minmax(0, 1fr); }
.choice.pic { flex-direction: column; align-items: stretch; gap: 6px; padding: 10px 10px 8px; min-width: 0; }
.choice.pic .pic-head { display: flex; align-items: center; gap: 8px; min-width: 0; }
.choice.pic .pic-head .txt { flex: 1; min-width: 0; font-weight: 700; }
.choice.pic .spk { margin-left: auto; width: 34px; height: 34px; }
.choice.pic .pic-fig { display: flex; justify-content: center; align-items: center; min-width: 0; min-height: 64px; }
.choice.pic .hqfig { margin: 0; width: 100%; }
.choice.pic .hqfig svg { max-height: 170px; max-width: 100%; }
.choices.pics.wide .choice.pic .hqfig svg { max-height: 260px; max-width: min(100%, 460px); }
.choice.pic .hqfig figcaption { font-size: .82rem; }
.g1 .choice.pic { padding: 12px 12px 10px; }
@media (max-width: 380px) { .choices.pics:not(.wide) { gap: 8px; } .choice.pic { padding: 8px 8px 6px; } .choice.pic .mark { width: 26px; height: 26px; } }
/* tap-a-point inputs (number line, grid) */
.inp-fig { display: flex; justify-content: center; min-width: 0; margin: 6px 0 4px; }
.inp-fig .hqfig { margin: 0 auto; }
.inp-fig.numberline .hqfig svg { max-width: min(100%, 620px); }
.inp-fig.coord .hqfig svg { max-width: min(100%, 480px); max-height: none; }
.inp-fig [data-act] { outline: none; }
.inp-fig [data-act]:focus-visible .hqf-hov { opacity: 1; stroke: var(--exam); stroke-width: 2; }
.picked { text-align: center; font-weight: 700; margin: 2px 0 6px; font-variant-numeric: tabular-nums; }
.picked.none { color: var(--muted); font-weight: 600; font-size: .95rem; }
.picked b { font-family: var(--display); font-size: 1.15rem; color: var(--exam); }
/* match tables (sort with layout: table) */
.mtable-wrap { overflow-x: auto; margin: 8px 0 4px; -webkit-overflow-scrolling: touch; }
table.mtable { width: 100%; border-collapse: separate; border-spacing: 0; border: 2px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface); table-layout: auto; }
table.mtable th, table.mtable td { border-bottom: 1px solid var(--line); padding: 6px 6px; text-align: center; vertical-align: middle; }
table.mtable tbody tr:last-child > * { border-bottom: 0; }
table.mtable thead th { background: var(--surface-2); font-size: .9rem; font-weight: 800; line-height: 1.2; overflow-wrap: break-word; hyphens: auto; min-width: 56px; }
table.mtable .rowh { text-align: left; font-weight: 700; padding: 8px 10px; min-width: 88px; }
table.mtable tbody .rowh { background: var(--surface); }
table.mtable .rowh .rtxt { display: block; overflow-wrap: break-word; }
table.mtable .rowh .card-fig { display: block; }
table.mtable .rowh .hqfig { margin: 0 0 2px; align-items: flex-start; }
table.mtable .rowh .hqfig svg { max-width: 120px; max-height: 96px; margin: 0; }
table.mtable .rstat { display: block; font-size: .82rem; font-weight: 800; margin-top: 2px; }
table.mtable tr.right .rstat { color: var(--good); } table.mtable tr.wrong .rstat { color: var(--bad); }
table.mtable tr.right > * { background: var(--good-soft) !important; } table.mtable tr.wrong > * { background: var(--bad-soft) !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mpick { width: 46px; height: 46px; border-radius: 50%; border: 0; background: none; display: inline-grid; place-items: center; padding: 0; }
.mpick .dot { width: 28px; height: 28px; border-radius: 50%; border: 2.5px solid var(--muted); background: var(--surface); transition: transform .08s ease; }
.mpick:hover:not(:disabled) .dot { border-color: var(--exam); }
.mpick.on .dot { border-color: var(--exam); background: var(--exam); box-shadow: inset 0 0 0 5px var(--surface); }
.mpick.right .dot { border-color: var(--good); background: var(--good); box-shadow: inset 0 0 0 5px var(--surface); }
.mpick.wrong .dot { border-color: var(--bad); background: var(--bad); box-shadow: inset 0 0 0 5px var(--surface); }
.mpick.key .dot { border: 3px dashed var(--good); }
.mpick:disabled { cursor: default; }
@media (max-width: 480px) { table.mtable thead th { font-size: .8rem; padding: 6px 3px; min-width: 48px; } table.mtable .rowh { padding: 6px 8px; min-width: 76px; } table.mtable td { padding: 4px 2px; } .mpick { width: 44px; height: 44px; } }
/* cards that carry a picture (sort / order cardFigures) */
.dcard { min-width: 0; max-width: 100%; }
.dcard.has-fig { display: inline-flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 10px; text-align: center; min-width: 108px; max-width: 200px; }
.dcard .card-fig { display: flex; justify-content: center; width: 100%; pointer-events: none; }
.dcard .card-fig .hqfig { margin: 0; }
.dcard .card-fig .hqfig svg { max-width: 100%; max-height: 104px; width: auto; min-width: 72px; }
.dcard.has-fig .ctxt { font-size: .92rem; }
.bucket .dcard.has-fig { max-width: 100%; }
.orow .dcard.has-fig { flex-direction: row; justify-content: flex-start; max-width: none; text-align: left; gap: 12px; }
.orow .dcard.has-fig .card-fig { width: auto; flex: 0 1 180px; min-width: 0; }
.orow .dcard.has-fig .card-fig .hqfig svg { max-height: 96px; }

/* Town stops (one map hop per completed daily expedition) */
.camp-sign { display: inline-flex; margin-top: 8px; padding: 6px 12px; border-radius: 999px; background: color-mix(in srgb, var(--surface) 88%, transparent); color: var(--fg); font-weight: 800; font-size: .9rem; box-shadow: var(--shadow-sm); }
.town-card { border: 2px solid color-mix(in srgb, var(--good) 45%, transparent); }
.town-hero { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.town-art { flex: 0 1 220px; width: 100%; max-width: 260px; margin: 0 auto; }
.town-svg { width: 100%; height: auto; display: block; }
.town-games { margin-top: 16px; }
.town-sprint { margin-top: 16px; }
#townwrap.playing .town-sprint { display: none; }
.town-extras { margin-top: 16px; gap: 14px; }
#townwrap.playing .town-hero, #townwrap.playing .town-extras { display: none; }
#townwrap.playing .town-games { margin-top: 0; }
.town-games .hqd-root { scroll-margin-top: 96px; }
/* Boss Hop spin-off link (tile + map chip) */
.bosshop { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 22px; text-decoration: none; color: #fff;
  background: linear-gradient(120deg, #3b2a8f 0%, #2f7bd9 55%, #2d9fc4 100%); box-shadow: 0 5px 0 #23206b, var(--shadow-sm); transition: transform .08s ease, box-shadow .08s ease; }
.bosshop:hover { transform: translateY(-1px); }
.bosshop:active { transform: translateY(3px); box-shadow: 0 2px 0 #23206b; }
.bosshop .bh-art { width: 76px; height: 76px; border-radius: 18px; overflow: hidden; background: rgba(255,255,255,.18); display: grid; place-items: center; }
.bosshop .bh-art svg { width: 84px; height: 84px; }
.bosshop .bh-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.bosshop .bh-kicker { font-size: .74rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #ffe08a; }
.bosshop b { font-family: var(--display); font-size: 1.45rem; font-weight: 700; line-height: 1.05; }
.bosshop .bh-copy > span:last-child { font-size: .92rem; opacity: .92; }
.bosshop .bh-go { font-family: var(--display); font-weight: 700; background: #ffd54a; color: #3a2a00; padding: 9px 14px; border-radius: 14px; box-shadow: 0 3px 0 #c99400; white-space: nowrap; }
@media (max-width: 420px) { .bosshop { grid-template-columns: auto minmax(0, 1fr); } .bosshop .bh-go { grid-column: 1 / -1; text-align: center; } }
.bh-chip { order: 2; align-self: flex-start; display: inline-flex; padding: 7px 12px; border-radius: 999px; background: #3b2a8f; color: #fff; font-weight: 800; font-size: .85rem; text-decoration: none; box-shadow: 0 3px 0 #23206b; white-space: nowrap; }
.town-extras .bosshop { margin-top: 2px; }
@media (max-width: 600px) { .bh-chip { display: none; } }

/* device roster: "Who's playing?" for kids who signed in on this device (2.1.1) */
.roster-tile { display: flex; flex-direction: column; gap: 6px; }
.roster-tile .profile { width: 100%; }
.profile.add { justify-content: center; border: 3px dashed var(--line, rgba(0,0,0,.18)); background: transparent; box-shadow: none; min-height: 150px; }
.profile.add .plus { font-size: 2.6rem; line-height: 1; color: var(--accent); }
.bosshop[aria-busy="true"], .bh-chip[aria-busy="true"] { opacity: .6; pointer-events: none; }

/* 2.1.2: clocks stay big enough to read the numbers, wherever they sit */
.pane .hqfig-clock svg { width: 100%; max-width: 240px; min-width: 150px; }
.choice.pic .hqfig-clock svg { min-width: 120px; max-height: 190px; }
table.mtable .rowh .hqfig-clock svg { max-width: 150px; max-height: 150px; min-width: 120px; }
.dcard .card-fig .hqfig-clock svg { max-height: 150px; min-width: 120px; }
.orow .dcard.has-fig .card-fig .hqfig-clock svg { max-height: 140px; }
.hqfig-row > .cell .hqfig-clock svg, .hqfig-row > .cell svg[aria-label*="clock"] { min-width: 110px; }
.loot-coins { font-family: var(--display); font-size: 2.4rem; font-weight: 800; margin: 0; color: var(--accent-deep, #c4651a); }
.loot-notes { margin: 0; padding-left: 18px; text-align: left; color: var(--muted); }
.choice.pic .hqfig-clock svg { width: 100%; max-width: none !important; min-width: 0; max-height: 220px; }

/* 2.3.0: World Expedition scenes (upscaled BidaZoo world art) */
.welcome-hero img.island { object-fit: cover; object-position: 50% 40%; }
.town-art { flex: 0 1 340px; max-width: 380px; }
.town-scene { position: relative; border-radius: 18px; overflow: hidden; aspect-ratio: 16 / 10; box-shadow: var(--shadow-sm); }
.town-scene .scene { width: 100%; height: 100%; object-fit: cover; display: block; }
.town-scene .town-click { position: absolute; right: 6px; bottom: 2px; width: 84px; height: 84px; filter: drop-shadow(0 6px 8px rgba(0,0,0,.3)); }
.town-scene .town-click svg { width: 100%; height: 100%; }
.exp-scene { position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 21 / 8; margin: -4px -4px 4px; }
.exp-scene .scene { width: 100%; height: 100%; object-fit: cover; display: block; }
.exp-scene span { position: absolute; left: 10px; bottom: 8px; background: rgba(15,25,40,.62); color: #fff; font-weight: 800; font-size: .85rem; padding: 4px 10px; border-radius: 999px; }
