/* Hoppado: neon arena. Shared presentation only; gameplay stays in app.js. */
@font-face {
  font-family: 'Hoppado Display';
  src: url('/assets/hoppado-display.woff') format('woff');
  font-weight: 900;
  font-style: italic;
  font-display: swap;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  color-scheme: dark;
  --bg: #0c1022;
  --surface: #171c34;
  --surface-2: #252c4a;
  --text: #f9faff;
  --text-dim: #bdc6df;
  --accent: #d7ff45;
  --accent-text: #11170b;
  --violet: #8060ff;
  --cyan: #69e4ff;
  --ok: #c9ff50;
  --bad: #ff8093;
  --border: #343c60;
  --gap: 20px;
  --radius: 18px;
  --display: 'Hoppado Display', Impact, 'Arial Narrow', sans-serif;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
}
html { height: 100%; background: var(--bg); }
body {
  min-height: 100vh; height: 100dvh; overflow: hidden;
  display: flex; flex-direction: column;
  background: radial-gradient(ellipse at 80% 0, #221c48 0, transparent 50%), var(--bg);
  color: var(--text);
  font: 400 1rem/1.5 -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-underline-offset: 4px; }
img { display: block; max-width: 100%; }
button, a, select, input { touch-action: manipulation; }
button:focus-visible, a:focus-visible, select:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 3px solid var(--cyan); outline-offset: 4px;
}
button:disabled { cursor: default; }
.skip-link { position: fixed; z-index: 100; top: -100px; left: 16px; background: var(--accent); color: var(--accent-text); padding: 14px 20px; border-radius: 8px; font-weight: 700; }
.skip-link:focus { top: 12px; }
.topbar {
  width: 100%; max-width: 1600px; margin: 0 auto; flex: 0 0 auto;
  display: flex; align-items: center; gap: 28px; min-height: 86px;
  padding: calc(var(--safe-top) + 14px) max(28px, var(--safe-right)) 14px max(28px, var(--safe-left));
}
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; white-space: nowrap; font: italic 900 2.3rem/.95 var(--display); letter-spacing: .02em; }
.brand__mark { display: grid; place-items: center; width: 42px; height: 42px; background: var(--accent); color: var(--bg); border-radius: 10px 4px 10px 4px; box-shadow: 3px 3px 0 #748d20; transform: rotate(-7deg); font-size: 2.1rem; }
.brand__dot { color: var(--accent); }
.topbar__tag { color: #b6bfd9; border-left: 1px solid var(--border); padding-left: 26px; font-size: .75rem; letter-spacing: .14em; font-weight: 800; }
.topbar__actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.nav-link { display: inline-flex; gap: 9px; justify-content: center; align-items: center; min-height: 44px; padding: 10px 17px; border-radius: 10px; text-decoration: none; font-weight: 700; font-size: .875rem; background: #171c34; border: 1px solid var(--border); }
.nav-link:hover { background: var(--surface-2); }
.nav-link--pack { color: var(--accent); border-color: #586835; background: #1f2825; }
.screen { width: 100%; max-width: 1600px; margin: 0 auto; padding: 0 max(28px, var(--safe-right)) 8px max(28px, var(--safe-left)); flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 20px; }
.screen__header { display: flex; flex-direction: column; gap: 4px; flex: 0 0 auto; }
.screen__header:empty, .screen__footer:empty { display: none; }
.screen__body { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--border) transparent; display: flex; flex-direction: column; gap: 20px; }
.screen__footer { display: flex; flex-direction: column; gap: 12px; flex: 0 0 auto; }
.legal { flex: 0 0 auto; display: flex; flex-wrap: wrap; gap: 4px 20px; align-items: center; justify-content: center; color: var(--text-dim); padding: 8px 20px calc(var(--safe-bottom) + 9px); font-size: .75rem; }
.legal a { color: var(--text-dim); padding: 4px 0; text-decoration: none; }
.legal a:hover { color: var(--accent); text-decoration: underline; }
.legal span { padding-left: 18px; border-left: 1px solid var(--border); font-size: .75rem; }
.eyebrow { color: var(--text-dim); font-size: .875rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.title { font: italic 900 clamp(2rem, 3vw, 3.3rem)/1.05 var(--display); text-transform: uppercase; }
.body-text { color: var(--text-dim); font-size: 1rem; line-height: 1.6; }
.notice { color: var(--text-dim); font-size: .875rem; line-height: 1.6; }
.notice:empty { display: none; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.section-heading h2 { font: italic 900 1.45rem/1.1 var(--display); letter-spacing: .03em; }
.section-heading > span { color: var(--text-dim); font-size: .75rem; font-weight: 700; letter-spacing: .025em; }
/* Lobby */
.lobby { flex: 1; min-height: min-content; display: grid; grid-template-columns: minmax(0, 1fr) 285px; grid-template-rows: minmax(360px, 1fr) auto; gap: 20px; }
.hero { position: relative; isolation: isolate; overflow: hidden; border: 1px solid #48538c; border-radius: 22px; background: #070d24; min-height: 370px; }
.hero__art { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: contain; object-position: right center; }
.hero::after { content: ''; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, #070d24ee 0%, #070d24ba 30%, #070d2430 56%, transparent 72%); }
.hero__content { position: relative; width: 67%; padding: clamp(22px, 3.3vw, 50px); min-height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.hero__badge { display: inline-block; color: #eef0ff; background: #403b777d; border: 1px solid #68639a; border-radius: 5px; padding: 7px 10px; margin-bottom: 18px; font-size: .75rem; letter-spacing: .065em; }
.hero__title { font: italic 900 clamp(3.1rem, 5.7vw, 6rem)/.94 var(--display); letter-spacing: -.005em; color: #fff; white-space: nowrap; text-shadow: 0 3px 0 #070d2440; margin-bottom: 18px; }
.hero__title em { font-style: inherit; color: var(--accent); }
.hero__pitch { color: #c5d0ea; font-size: 1rem; line-height: 1.6; margin-bottom: 24px; }
.hero__play { min-width: 245px; max-width: 100%; }
.hero__next { font-size: .875rem; color: #d5def1; margin-top: 13px; font-weight: 600; }
.hero__next span { color: #a5aece; margin: 0 5px; }
.hero__stamp { position: absolute; top: 22px; right: 24px; font: italic 900 2.8rem/.85 var(--display); color: #e5ff98; transform: rotate(9deg); text-shadow: 2px 2px 0 #172238; opacity: .85; }
.player-panel { display: flex; flex-direction: column; gap: 21px; padding: 23px; border: 1px solid var(--border); border-radius: 20px; background: linear-gradient(150deg, #242244, #151b31 65%); }
.player-progress__star { color: var(--accent) !important; font-size: 1.7rem !important; }
.player-progress__score { display: flex; align-items: baseline; gap: 8px; line-height: 1; margin: 16px 0; }
.player-progress__score strong { font: italic 900 3.8rem/1 var(--display); color: #fff; }
.player-progress__score > span { color: var(--text-dim); font-size: .875rem; font-weight: 700; }
.progress-track { width: 100%; height: 8px; background: #0a1025; border-radius: 3px; overflow: hidden; border: 1px solid #39415e; }
.progress-track span { display: block; height: 100%; background: var(--accent); }
.player-progress__caption { color: var(--text-dim); font-size: .75rem; margin-top: 9px; }
.how-to { display: flex; justify-content: space-between; gap: 8px; padding: 12px 0; border-block: 1px solid var(--border); font-size: .875rem; }
.how-to span { display: flex; flex-direction: column; gap: 3px; }
.how-to b { color: #ac97ff; font: italic 900 1.15rem/1.2 var(--display); }
.hint-setting { margin-top: auto; }
.hint-setting label { display: block; color: #f1f4ff; font-size: .875rem; font-weight: 750; line-height: 1.5; margin-bottom: 8px; }
.hint-setting label span { display: block; color: var(--text-dim); font-weight: 400; font-size: .75rem; }
.hint-setting .notice { font-size: .75rem; margin-top: 8px; }
.hint-setting select, input[type='email'], input[type='text'] { width: 100%; min-height: 48px; padding: 10px 12px; color: var(--text); background: #10162b; border: 1px solid #505a80; border-radius: 9px; font-size: 1rem; }
.hint-setting select { cursor: pointer; padding-right: 6px; }
.offer { font-size: .875rem; color: var(--text-dim); border-top: 1px solid var(--border); padding-top: 15px; line-height: 1.7; }
.offer > p { color: var(--accent); font-weight: 800; }
.offer a { text-decoration: none; }
.offer strong { color: #fff; }
.offer a:hover { text-decoration: underline; }
.level-dock { grid-column: 1 / -1; min-width: 0; padding-bottom: 3px; }
.level-dock .section-heading { margin-bottom: 12px; }
.levels { list-style: none; display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 12px; padding: 4px 2px 7px; }
.level { width: 100%; position: relative; display: flex; flex-direction: column; justify-content: center; align-items: center; min-height: 132px; padding: 11px 5px 9px; color: #fff; background: linear-gradient(145deg, #252b4c, #151a32); border: 1px solid #454e7c; border-bottom: 4px solid #070b1a; border-radius: 14px; box-shadow: 0 2px 0 #000; transition: transform 140ms ease, border-color 140ms ease; }
.level::before { content: ''; position: absolute; height: 3px; top: 0; left: 18%; right: 18%; border-radius: 0 0 4px 4px; background: #9f82ff; }
.level:nth-child(2n) { background: #1f2a43; }
.level--next { border-color: var(--accent); background: linear-gradient(145deg, #3c4930, #1e2e31); box-shadow: 0 3px 0 #728a21; }
.level--next::before { background: var(--accent); }
.level__number { font-size: .75rem; color: #c2cae5; letter-spacing: .07em; font-weight: 800; }
.level__icon { font-size: 2.35rem; line-height: 1.3; margin: 4px 0 2px; filter: drop-shadow(0 4px 3px #0007); }
.level__title { font-size: .875rem; font-weight: 750; line-height: 1.15; text-align: center; }
.level__stars { min-height: 15px; color: var(--accent); font-size: .75rem; letter-spacing: 2px; margin-top: 4px; }
.level--locked { background: #141b2e; border-color: #303b55; }
.level--locked::before { background: #586487; }
.level--locked .level__icon { opacity: .65; }
.level__lock { position: absolute; right: 8px; top: 8px; font-size: .75rem; background: #0c1022e6; border-radius: 4px; padding: 1px 3px; }
/* Shared controls */
.tap { min-height: 64px; padding: 13px 24px; display: flex; align-items: center; justify-content: center; gap: 13px; border-radius: 12px; border: 1px solid #455173; border-bottom: 5px solid #080d20; background: #252e4c; color: #f9faff; text-decoration: none; font-weight: 800; font-size: 1.1rem; line-height: 1.2; transition: transform 130ms ease, filter 130ms ease; }
.tap--primary { border: 1px solid #e3ff8b; border-bottom: 6px solid #819729; background: var(--accent); color: var(--accent-text); font: italic 900 1.85rem/1.1 var(--display); letter-spacing: .025em; box-shadow: 0 3px 0 #0007; }
.tap--primary > span { font: 700 1.15rem/1 system-ui, sans-serif; }
.tap--small { min-height: 48px; font-size: 1rem; border-bottom-width: 3px; padding: 10px 16px; }
.row { display: flex; gap: 12px; }
.row > * { flex: 1; min-width: 0; }
@media (hover: hover) {
  .tap:not(:disabled):hover, .level:hover { transform: translateY(-3px); filter: brightness(1.09); }
  .tile:not(:disabled):hover { transform: translateY(-4px); border-color: var(--accent); }
}
.tap:not(:disabled):active, .level:active, .tile:not(:disabled):active { transform: translateY(2px); }
/* Gameplay */
.screen[data-screen='play'], .screen[data-screen='done'] { max-width: 1200px; }
.screen[data-screen='play'] .screen__header { flex-direction: row; justify-content: space-between; align-items: center; padding: 3px 0; }
.screen[data-screen='play'] .title { font-size: 1.6rem; color: #f3f5ff; }
.screen[data-screen='play'] .eyebrow { font-size: .875rem; }
.screen[data-screen='play'] .screen__body {
  display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); grid-template-rows: auto minmax(250px, 1fr) auto;
  gap: 24px 36px; align-items: center; padding: 28px 40px 16px; border: 1px solid #424e7c; border-radius: 24px;
  background: linear-gradient(#0b1125a6, #0b1125b8), url('/assets/arena-stage.webp') center / cover;
}
.progress { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: 8px; }
.progress__dot { display: block; flex: 1; max-width: 70px; height: 9px; border-radius: 3px; background: #343c59; border: 1px solid #7682a0; transition: background 180ms ease; }
.progress__dot--ok { background: var(--accent); border-color: #e7ff9b; box-shadow: 0 0 10px #d7ff4533; }
.progress__dot--bad { background: var(--bad); border-color: #ffc9d2; }
.word { text-align: center; min-width: 0; }
.word__en { font-size: clamp(2.6rem, 5vw, 4.5rem); letter-spacing: -.035em; line-height: 1.1; font-weight: 850; overflow-wrap: anywhere; }
.word__hint { min-height: 40px; margin: 14px 0 22px; color: #c6d6f4; font-size: 1.3rem; line-height: 1.4; }
.word__speak { min-height: 58px; border: 1px solid #a69be8; border-bottom: 4px solid #33256c; border-radius: 12px; padding: 12px 22px; background: #6650c8; color: #fff; font-weight: 750; font-size: 1rem; }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; width: 100%; max-width: 500px; justify-self: center; }
.tile { position: relative; width: 100%; aspect-ratio: 1.2; min-height: 125px; display: grid; place-items: center; background: linear-gradient(145deg, #fff, #dae4f2); color: #142036; border: 3px solid #d3daea; border-bottom: 8px solid #8394b9; border-radius: 22px; box-shadow: 0 7px 0 #05081570, inset 0 2px 0 #fff; transition: transform 140ms ease, background 140ms ease; }
.tile__number { position: absolute; top: 10px; left: 12px; font-size: .75rem; font-weight: 850; color: #495e80; letter-spacing: .08em; }
.tile__art { font-size: clamp(3.6rem, 6.5vw, 5.5rem); line-height: 1; filter: drop-shadow(0 5px 3px #13264225); user-select: none; }
.tile--ok { background: #e2ff9b; border-color: #c3fa3c; border-bottom-color: #739c20; box-shadow: 0 0 0 3px #caff4950; }
.tile--bad { background: #ffb6c2; border-color: #ff8093; border-bottom-color: #b7495d; }
.feedback { grid-column: 1 / -1; min-height: 32px; text-align: center; font-size: 1.35rem; font-weight: 800; }
.screen[data-screen='play'] .screen__footer { width: min(100%, 340px); align-self: center; }
/* Results, family and account */
.screen[data-screen='done'] .screen__header { text-align: center; }
.screen[data-screen='done'] .screen__body { justify-content: center; align-items: center; background: radial-gradient(ellipse at center, #30235866, transparent 70%); }
.result { width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 12px; padding: 10px 20px 22px; }
.result__art { width: clamp(145px, 28vh, 250px); height: auto; aspect-ratio: 1; object-fit: contain; border-radius: 30px; mix-blend-mode: screen; }
.result__stars { color: var(--accent); font-size: clamp(2rem, 5vw, 3rem); letter-spacing: .14em; text-shadow: 0 5px 0 #586818; line-height: 1.2; }
.result__score { font: italic 900 clamp(2.1rem, 4vw, 3.5rem)/1.05 var(--display); text-transform: uppercase; }
.result .body-text { color: var(--text); font-size: 1.2rem; }
.screen[data-screen='done'] .screen__footer { width: min(100%, 620px); align-self: center; }
.screen[data-screen='unlock'], .screen[data-screen='account'], .screen[data-screen='success'] { max-width: 820px; padding-top: 10px; }
.screen[data-screen='unlock'] .screen__header, .screen[data-screen='account'] .screen__header, .screen[data-screen='success'] .screen__header { border-left: 4px solid var(--accent); padding-left: 18px; }
.card { position: relative; padding: 26px 28px; border: 1px solid #424c73; border-bottom: 4px solid #070b1e; border-radius: 20px; background: linear-gradient(135deg, #282440, #151d35); }
.card h2 { margin-bottom: 14px; color: #fff; font: italic 900 1.75rem/1.1 var(--display); }
.card ul { padding-left: 20px; color: var(--text-dim); display: flex; flex-direction: column; gap: 10px; }
.card li { padding-left: 4px; }
.card li::marker { color: var(--accent); }
.card p + p { margin-top: 12px; }
.card a { color: var(--accent); }
.price { color: var(--accent); font: italic 900 3.2rem/1.05 var(--display); padding: 9px 0 20px; }
.family-card { overflow: hidden; padding-right: 170px; }
.family-card__art { position: absolute; right: -24px; top: 10px; width: 210px; height: 210px; object-fit: contain; mix-blend-mode: screen; pointer-events: none; }
input[type='email'], input[type='text'] { margin: 7px 0 13px; }
[data-testid='google-button'] { margin-top: 18px; min-height: 44px; }
#account-email, [data-testid='account-email'] { overflow-wrap: anywhere; }
.doc { width: min(100%, 780px); background: #141a2e; border: 1px solid var(--border); border-radius: 20px; }
.doc h1 { font-family: var(--display); font-style: italic; font-size: 2.8rem !important; line-height: 1.1; color: #fff; }
.doc .eyebrow { margin-bottom: 10px; }
.doc h2 { color: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.hidden { display: none !important; }
/* Compact laptops */
@media (min-width: 901px) and (max-height: 850px) {
  .topbar { min-height: 72px; padding-block: 12px; }
  .lobby { grid-template-rows: minmax(325px, 1fr) auto; gap: 16px; }
  .hero { min-height: 325px; }
  .hero__content { padding: 28px; }
  .hero__badge { margin-bottom: 15px; }
  .hero__title { font-size: clamp(3.2rem, 5.3vw, 5.1rem); margin-bottom: 14px; }
  .hero__pitch { margin-bottom: 18px; }
  .player-panel { padding: 20px; gap: 14px; }
  .player-progress__score { margin: 10px 0; }
  .player-progress__score strong { font-size: 3rem; }
  .how-to { padding-block: 9px; }
  .level { min-height: 118px; }
  .level__icon { font-size: 2rem; }
  .level-dock .section-heading { margin-bottom: 8px; }
  .screen { gap: 16px; }
  .screen[data-screen='play'] .screen__body { padding: 20px 32px 10px; gap: 18px 32px; }
  .tile { max-height: 200px; }
}
/* Tablet and phone */
@media (max-width: 1100px) {
  .lobby { grid-template-columns: minmax(0, 1fr) 255px; gap: 16px; }
  .player-panel { padding: 18px; }
  .hero__content { padding: 25px; width: 76%; }
  .hero__title { font-size: clamp(3.1rem, 5.8vw, 4.7rem); }
  .levels { gap: 8px; }
  .level__title { font-size: .8rem; }
  .level__lock { right: 4px; top: 28px; }
}
@media (max-width: 900px) {
  .topbar { min-height: 70px; padding: calc(var(--safe-top) + 12px) 18px 12px; gap: 15px; }
  .topbar__tag { display: none; }
  .brand { font-size: 2.1rem; }
  .screen { padding-inline: 18px; gap: 16px; }
  .lobby { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(340px, 1fr) auto auto; gap: 16px; }
  .hero { min-height: 340px; }
  .hero__title { font-size: clamp(3.4rem, 9vw, 5.2rem); }
  .hero__content { width: 65%; padding: 30px; }
  .hero__stamp { font-size: 2.3rem; }
  .player-panel { grid-row: 3; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 15px 22px; padding: 18px 20px; }
  .player-progress__score { margin: 8px 0; }
  .player-progress__score strong { font-size: 2.5rem; }
  .player-progress__caption { margin-top: 6px; }
  .player-panel .how-to { display: none; }
  .hint-setting { margin: 0; }
  .hint-setting label span, .hint-setting .notice { display: none; }
  .offer { grid-column: 1 / -1; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 2px 14px; padding-top: 10px; }
  .level-dock { grid-row: 2; }
  .levels { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 10px; scrollbar-width: thin; scrollbar-color: #5b678d transparent; }
  .levels li { flex: 0 0 104px; scroll-snap-align: start; }
  .level { min-height: 120px; }
  .level__title { font-size: .875rem; }
  .level__lock { right: 7px; top: 8px; }
  .screen[data-screen='play'] .screen__body { padding: 24px; gap: 22px; }
  .tile { min-height: 110px; }
  .word__en { font-size: 3rem; }
}
@media (max-width: 600px) {
  :root { --gap: 14px; }
  .topbar { min-height: 62px; padding: calc(var(--safe-top) + 10px) 14px 10px; gap: 10px; }
  .brand { font-size: 1.9rem; gap: 9px; }
  .brand__mark { width: 33px; height: 34px; font-size: 1.7rem; border-radius: 8px 3px; }
  .nav-link { min-height: 42px; font-size: .875rem; padding: 8px 11px; background: transparent; }
  .nav-link--pack { display: none; }
  .screen { padding: 0 12px 5px; gap: 12px; }
  .lobby { gap: 13px; grid-template-rows: minmax(345px, 1fr) auto auto; }
  .hero { border-radius: 17px; min-height: 345px; }
  .hero__art { width: 155%; max-width: none; left: auto; right: -20%; object-fit: cover; object-position: 66% 30%; }
  .hero::after { background: linear-gradient(0deg, #070d24fa 0, #070d24d9 19%, #070d2440 67%), linear-gradient(90deg, #070d24c9, transparent 75%); }
  .hero__content { padding: 19px 19px 17px; width: 100%; justify-content: flex-end; align-items: flex-start; }
  .hero__badge { font-size: .75rem; margin-bottom: auto; padding: 6px 8px; }
  .hero__title { font-size: clamp(2.7rem, 11vw, 3.7rem); margin: 33px 0 10px; }
  .hero__pitch { font-size: .875rem; line-height: 1.4; margin-bottom: 16px; }
  .hero__pitch br { display: none; }
  .hero__play { width: 100%; min-height: 60px; }
  .hero__next { font-size: .75rem; margin-top: 10px; align-self: center; }
  .hero__stamp { display: none; }
  .player-panel { border-radius: 15px; padding: 14px; gap: 12px 15px; }
  .section-heading h2 { font-size: 1.25rem; }
  .section-heading > span { font-size: .75rem; letter-spacing: 0; }
  .player-progress .section-heading h2 { font-size: 1.1rem; }
  .player-progress__star { display: none; }
  .player-progress__score strong { font-size: 2.25rem; }
  .player-progress__score > span { font-size: .75rem; }
  .player-progress__caption { font-size: .75rem; }
  .hint-setting label { font-size: .875rem; margin-bottom: 8px; line-height: 1.3; }
  .hint-setting select { min-height: 44px; padding-left: 9px; font-size: 1rem; }
  .offer { font-size: .75rem; padding-top: 9px; }
  .levels li { flex-basis: 95px; }
  .level { min-height: 115px; padding: 8px 4px 6px; border-radius: 12px; }
  .level__icon { font-size: 2rem; }
  .level-dock .section-heading { margin: 0 2px 6px; }
  .level-dock .section-heading > span { font-size: .75rem; }
  .level__title { font-size: .875rem; }
  .legal { gap: 0 14px; font-size: .75rem; padding: 5px 12px calc(var(--safe-bottom) + 6px); }
  .legal span { font-size: .75rem; padding-left: 0; border: 0; }
  .legal a { padding-block: 3px; }
  .screen[data-screen='play'] .screen__header { padding: 4px; gap: 8px; }
  .screen[data-screen='play'] .title { font-size: 1.3rem; white-space: nowrap; }
  .screen[data-screen='play'] .eyebrow { font-size: .75rem; letter-spacing: .03em; }
  .screen[data-screen='play'] .screen__body { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto minmax(0, 1fr) auto; gap: 15px; padding: 18px 16px 8px; border-radius: 18px; }
  .progress { gap: 5px; }
  .progress__dot { height: 7px; }
  .word__en { font-size: clamp(2.5rem, 10vw, 3.5rem); }
  .word__hint { margin: 5px 0 10px; min-height: 26px; font-size: 1.1rem; }
  .word__speak { min-height: 44px; padding: 8px 18px; border-bottom-width: 3px; }
  .tiles { gap: 13px; max-width: 360px; align-self: center; }
  .tile { min-height: 105px; max-height: 160px; aspect-ratio: 1.22; border-radius: 17px; border-bottom-width: 6px; }
  .tile__art { font-size: clamp(3.3rem, 15vw, 4.4rem); }
  .tile__number { top: 6px; left: 8px; }
  .feedback { min-height: 27px; font-size: 1.15rem; }
  .screen[data-screen='play'] .screen__footer { width: 100%; }
  .screen__footer .tap--primary { font-size: 1.5rem; min-height: 58px; }
  .screen[data-screen='done'] .screen__header { padding-top: 6px; }
  .result { gap: 12px; padding: 6px 8px 15px; }
  .result__art { width: clamp(150px, 26vh, 220px); }
  .screen[data-screen='unlock'], .screen[data-screen='account'], .screen[data-screen='success'] { padding-top: 4px; }
  .title { font-size: 2.5rem; }
  .card { padding: 22px 20px; border-radius: 17px; }
  .family-card { padding: 22px 20px; }
  .family-card__art { width: 135px; height: 135px; right: -12px; top: -4px; }
  .family-card .eyebrow { font-size: .75rem; max-width: 65%; }
  .price { font-size: 2.75rem; padding: 12px 0 24px; }
  .card ul { font-size: 1rem; }
}
@media (max-width: 360px) {
  .brand { font-size: 1.6rem; }
  .brand__mark { width: 29px; height: 30px; }
  .nav-link { padding-inline: 8px; }
  .level-dock .section-heading > span { max-width: 140px; text-align: right; }
  .player-panel { grid-template-columns: 1fr; }
  .player-progress { display: none; }
  .hero__title { font-size: 2.6rem; }
  .tap { padding-inline: 14px; }
  .tile { min-height: 94px; }
}
@media (max-height: 690px) and (max-width: 600px) {
  .screen[data-screen='play'] .screen__body { grid-template-rows: auto auto auto auto; gap: 10px; padding: 12px; }
  .word__en { font-size: 2.3rem; }
  .word__hint { margin-block: 3px 7px; }
  .tile { min-height: 92px; aspect-ratio: 1.45; }
  .tile__art { font-size: 3.1rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
