:root {
  color-scheme: light;
  --sky: #c5eaff;
  --paper: #ffffff;
  --blue: #1856b9;
  --ink: #123867;
  --accent: #71bbf0;
  --muted: #446181;
  --line: 3px solid var(--blue);
  font-family: Outfit, system-ui, sans-serif;
  font-synthesis: none;
  font-size: 16px;
  color: var(--ink);
  background: var(--sky);
}
* { box-sizing: border-box; }
html { min-height: 100%; overscroll-behavior: none; }
body {
  margin: 0;
  min-width: 280px;
  min-height: 100svh;
  min-height: 100dvh;
  background: radial-gradient(ellipse at 38% 35%, #ffffff 0, transparent 65%), var(--sky);
}
button, a { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; }
button, a { -webkit-user-select: none; user-select: none; }
button:disabled { cursor: default; opacity: .5; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--ink); outline-offset: 5px; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
button svg { flex: none; width: 23px; height: 23px; }
button:active:not(:disabled) { transform: translateY(2px); }
.paper-grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: .18;
  background: radial-gradient(var(--blue) 1.3px, transparent 1.5px) 0 0 / 10px 10px;
  mask-image: linear-gradient(125deg, #000, transparent 30%, transparent 73%, #000);
}
.app-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1320px;
  margin: auto;
  padding: env(safe-area-inset-top, 0px) 40px env(safe-area-inset-bottom, 0px);
  min-height: 100svh;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: 86px 1fr 38px;
}
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.studio { display: block; flex: none; border-radius: 8px; }
.studio img { width: 135px; height: auto; }
.top-tools { display: flex; align-items: center; gap: 12px; }
.icon-button {
  width: 44px; height: 44px; min-width: 44px;
  border: 2px solid var(--blue); border-radius: 13px;
  background: var(--paper); color: var(--blue);
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 3px 3px 0 var(--blue);
  transition: transform .12s, background .12s;
}
.icon-button svg { width: 21px; height: 21px; }
.icon-button[aria-pressed="false"]#sound-button { background: #ffe7e2; }
.mini-brand { display: none; width: 124px; padding: 0; background: transparent; }
.mini-brand img { width: 100%; max-height: 75px; object-fit: contain; }
.footer { display: flex; justify-content: center; align-items: center; color: var(--muted); font-size: 12px; font-weight: 500; text-align: center; }
#app { display: flex; align-items: center; justify-content: center; padding: 24px 0 36px; min-width: 0; outline: none; }
#app > section { width: 100%; min-width: 0; }
.home-screen { display: grid; grid-template-columns: 1.35fr 1fr; align-items: center; gap: 54px; max-width: 1180px; }
.home-identity { text-align: center; min-width: 0; position: relative; }
.game-logo { width: 110%; margin: 0 -5%; line-height: 0; }
.game-logo img { width: 100%; height: auto; }
.edition-label {
  display: inline-block; position: relative;
  margin-top: 3px; padding: 7px 17px;
  font-size: 14px; letter-spacing: .08em; font-weight: 800;
  color: var(--paper); background: var(--blue);
  border: 2px solid var(--paper); box-shadow: 3px 3px 0 var(--accent);
  transform: rotate(-3deg);
}
.home-play { display: flex; flex-direction: column; align-items: stretch; gap: 20px; width: 100%; max-width: 445px; }
.player-meta { display: flex; justify-content: center; gap: 12px; font-size: 14px; font-weight: 600; }
.player-meta > span { padding: 6px 12px; background: var(--paper); border: 2px solid var(--blue); border-radius: 8px; box-shadow: 2px 2px 0 var(--blue); }
.player-meta > span:first-child { transform: rotate(-3deg); }
.player-meta > span:last-child { transform: rotate(2deg); }
.intro-card, .result-card {
  width: 100%; padding: 28px 24px;
  background: var(--paper); border: var(--line); border-radius: 20px 12px 22px 12px;
  box-shadow: 6px 6px 0 var(--blue); transform: rotate(-1.3deg);
}
.example { display: flex; align-items: center; gap: 18px; }
.example-letter {
  display: flex; align-items: center; justify-content: center; flex: none;
  width: 61px; height: 72px; color: var(--sky);
  font: italic 900 64px/1 'Barlow Condensed', Impact, sans-serif;
  transform: rotate(-4deg);
}
.example > div { display: flex; flex-direction: column; gap: 6px; }
.eyebrow { font-size: 12px; letter-spacing: .08em; font-weight: 700; }
.example strong { font-size: 25px; font-weight: 800; line-height: 1.1; letter-spacing: -.035em; }
.example-answer { color: var(--muted); font-size: 15px; }
.rule-divider { height: 2px; background: #123de02b; margin: 21px 0 17px; }
.intro-card > p { font-size: 16px; line-height: 1.5; letter-spacing: -.015em; }
.intro-card > p strong { font-weight: 700; }
.button {
  display: flex; align-items: center; justify-content: center; gap: 13px;
  width: 100%; min-height: 60px; padding: 15px 22px;
  border: 3px solid var(--blue); border-radius: 13px;
  font-size: 18px; font-weight: 700; line-height: 1.3; text-decoration: none;
  box-shadow: 4px 4px 0 var(--blue);
  transition: transform .12s, box-shadow .12s, background .12s;
}
.button-primary { background: var(--blue); color: var(--paper); border-color: var(--ink); box-shadow: 5px 5px 0 var(--accent); }
.button-primary svg { stroke-width: 2.8; }
.play-button { color: var(--sky); justify-content: space-between; min-height: 72px; font-size: 25px; transform: rotate(1deg); }
.button:active:not(:disabled) { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--blue); }
.button-primary:active:not(:disabled) { box-shadow: 1px 1px 0 var(--accent); }
.button-outline, .button-light { background: var(--paper); color: var(--blue); }
.button-outline { min-height: 52px; font-size: 16px; border-width: 2px; box-shadow: 3px 3px 0 var(--blue); }
.text-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px; background: transparent; font-size: 16px; font-weight: 600; line-height: 1.35; }
.how-to { align-self: center; }
.question-mark { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border: 2px solid currentColor; border-radius: 50%; font-size: 14px; font-weight: 800; }
.home-footnote { text-align: center; color: var(--muted); font-size: 14px; margin-top: -15px; }
.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; }
body:not([data-screen="home"]) .studio { display: none; }
body:not([data-screen="home"]) .mini-brand { display: block; }
body:not([data-screen="home"]) .footer { visibility: hidden; }
.round-screen { max-width: 530px; display: flex; flex-direction: column; align-items: center; gap: 23px; }
.round-bar { display: flex; width: 100%; justify-content: space-between; align-items: center; gap: 12px; font-size: 14px; font-weight: 700; }
.round-bar > span:first-child, .round-label { color: var(--paper); background: var(--blue); padding: 7px 12px; border-radius: 5px; transform: rotate(-2deg); }
.secret-badge { display: inline-flex; align-items: center; gap: 6px; border: 2px solid var(--blue); background: var(--paper); padding: 6px 10px; border-radius: 8px; font-size: 14px; }
.secret-badge svg { width: 14px; height: 14px; }
.challenge-card {
  position: relative; width: 100%; text-align: center; isolation: isolate;
  padding: 26px 24px 19px; background: var(--paper);
  border: var(--line); border-radius: 22px 13px 25px 13px;
  box-shadow: 7px 7px 0 var(--blue), 12px 12px 0 var(--accent);
  transform: rotate(-1.4deg);
}
.challenge-theme { font-size: clamp(26px,5.7vw,33px); font-weight: 800; line-height: 1.15; letter-spacing: -.025em; text-wrap: balance; }
.challenge-rule { display: block; font-size: 14px; color: var(--muted); margin-top: 12px; }
.letter-stage { position: relative; isolation: isolate; display: flex; justify-content: center; align-items: center; }
.letter-stage::before {
  content: ''; position: absolute; z-index: -1; inset: 9% 10% 0;
  background: radial-gradient(var(--blue) 1.7px, transparent 1.9px) 0 0 / 9px 9px;
  opacity: .14; mask-image: radial-gradient(ellipse, #000 20%, transparent 69%);
}
.challenge-letter {
  display: flex; align-items: center; justify-content: center; position: relative;
  color: var(--sky); -webkit-text-stroke: 5px var(--blue); paint-order: stroke fill;
  font: italic 900 clamp(174px,29vh,228px)/1 'Barlow Condensed', Impact, sans-serif;
  padding: 9px 0 14px;
}
.pass-copy { text-align: center; margin-top: 6px; }
.pass-copy h2 { font: italic 900 40px/1 'Barlow Condensed', Impact, sans-serif; letter-spacing: -.02em; text-transform: uppercase; }
.pass-copy p { font-size: 16px; line-height: 1.45; color: var(--muted); margin-top: 10px; }
.pause-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 9px 20px; border: 2px solid var(--blue); border-radius: 10px; background: var(--paper); color: var(--blue); font-size: 15px; font-weight: 600; box-shadow: 2px 2px 0 var(--blue); }
.pause-button svg { width: 16px; height: 16px; }
.countdown-screen { max-width: 560px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.countdown-screen > .eyebrow { color: var(--paper); background: var(--blue); font-size: 14px; padding: 7px 13px; border-radius: 5px; transform: rotate(-3deg); }
.countdown-copy { max-width: 390px; font-size: 22px; font-weight: 700; text-wrap: balance; }
.countdown-stage { height: 290px; }
.impact-art { position: absolute; z-index: -1; width: 112%; max-width: none; height: 125%; object-fit: contain; pointer-events: none; }
.countdown-number { display: flex; align-items: center; justify-content: center; color: var(--sky); font: italic 900 250px/1 'Barlow Condensed', Impact, sans-serif; }
.countdown-hint { font-size: 16px; line-height: 1.5; color: var(--muted); }
.pause-screen { max-width: 460px; display: flex; align-items: center; flex-direction: column; text-align: center; gap: 22px; }
.pause-art { position: relative; width: 135px; transform: rotate(-6deg); }
.pause-art > img { width: 100%; }
.pause-symbol { position: absolute; right: -10px; bottom: 8px; display: flex; align-items: center; justify-content: center; width: 45px; height: 45px; color: var(--paper); background: var(--blue); border: 3px solid var(--paper); box-shadow: 3px 3px 0 var(--accent); border-radius: 10px; transform: rotate(12deg); }
.pause-symbol svg { width: 23px; height: 23px; }
.display-title { font: italic 900 70px/.95 'Barlow Condensed', Impact, sans-serif; text-transform: uppercase; letter-spacing: -.015em; text-shadow: 3px 3px 0 var(--paper), 5px 5px 0 var(--accent); }
.pause-screen > p { font-size: 17px; line-height: 1.5; max-width: 350px; }
.pause-screen .button { margin-top: 5px; }
.small-copy { font-size: 14px !important; color: var(--muted); line-height: 1.45; }
.result-screen { max-width: 520px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; position: relative; }
.round-label { font-size: 14px; font-weight: 700; letter-spacing: .04em; }
.result-card { padding: 24px; transform: rotate(1deg); }
.result-card h2 { font-size: 25px; font-weight: 800; line-height: 1.2; margin-bottom: 9px; letter-spacing: -.025em; }
.result-card > p { font-size: 18px; line-height: 1.45; }
.result-card .small-copy { margin-top: 12px; }
.result-actions { width: 100%; display: flex; flex-direction: column; gap: 15px; margin-top: 8px; }
.result-screen > .small-copy { max-width: 400px; }
body[data-screen="ended"] { background: radial-gradient(ellipse at 50% 30%, #315dea 0, transparent 65%), var(--blue); }
body[data-screen="ended"] .paper-grain { background-image: radial-gradient(#06166e 1.6px, transparent 1.8px); opacity: .7; }
body[data-screen="ended"] .round-label { background: var(--sky); color: var(--ink); }
body[data-screen="ended"] .result-card { box-shadow: 6px 6px 0 var(--accent); border-color: var(--paper); }
body[data-screen="ended"] .result-actions .button-primary { background: var(--sky); color: var(--ink); border-color: var(--paper); box-shadow: 5px 5px 0 var(--accent); }
body[data-screen="ended"] .result-actions .button-outline { border-color: var(--paper); color: var(--paper); background: transparent; box-shadow: 3px 3px 0 #071968; }
body[data-screen="ended"] .result-screen > .small-copy { color: var(--paper); }
body[data-screen="ended"] button:focus-visible { outline-color: var(--sky); }
.celebration { position: absolute; inset: -15px -20px 0; pointer-events: none; overflow: hidden; z-index: -1; }
.confetti { position: absolute; left: var(--x); top: var(--y); width: var(--w,8px); height: 22px; background: var(--c); clip-path: polygon(45% 0,100% 0,65% 42%,100% 42%,0 100%,28% 53%,0 53%); transform: rotate(var(--r)); animation: confetti 1.2s ease-out both; }
.confetti:nth-child(3n) { height: 13px; clip-path: polygon(0 0,100% 28%,35% 100%); }
.victory-sticker { display: inline-block; color: var(--paper); background: var(--accent); border: 2px solid var(--paper); box-shadow: 3px 3px 0 var(--blue); padding: 7px 20px; transform: rotate(-4deg); font: italic 800 24px/1 'Barlow Condensed', Impact, sans-serif; }
.victory-stage { height: 210px; }
.victory-screen .display-title { font-size: clamp(65px,15vw,88px); color: var(--sky); -webkit-text-stroke: 3px var(--blue); paint-order: stroke fill; text-shadow: 4px 4px 0 var(--blue), 7px 7px 0 var(--accent); transform: rotate(-5deg); }
dialog { color: var(--ink); background: var(--paper); border: var(--line); border-radius: 20px 12px 20px 12px; box-shadow: 7px 7px 0 var(--blue); width: min(470px,calc(100% - 36px)); max-height: calc(100dvh - 42px); padding: 26px; overflow: auto; overscroll-behavior: contain; }
dialog::backdrop { background: #061c79ad; backdrop-filter: blur(5px); }
.dialog-top { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 24px; }
.dialog-top h2 { font: italic 900 36px/1 'Barlow Condensed', Impact, sans-serif; letter-spacing: -.015em; }
.dialog-top .icon-button { box-shadow: 2px 2px 0 var(--accent); }
.rules-list { list-style: none; counter-reset: rules; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 20px; }
.rules-list li { display: flex; gap: 14px; align-items: flex-start; font-size: 16px; line-height: 1.4; counter-increment: rules; }
.rules-list li::before { content: counter(rules); display: flex; align-items: center; justify-content: center; flex: none; width: 29px; height: 33px; border: 2px solid var(--blue); box-shadow: 2px 2px 0 var(--accent); border-radius: 6px; background: var(--sky); color: var(--blue); font: 900 26px/1 'Barlow Condensed', Impact, sans-serif; transform: rotate(-5deg); }
.rules-list strong { display: block; font-weight: 700; margin-bottom: 4px; }
.rules-list p { font-size: 16px; line-height: 1.4; color: var(--muted); }
.rule-note { margin: 23px 0; padding: 16px; background: #e7f5ff; border-left: 4px solid var(--blue); border-radius: 3px 12px 12px 3px; font-size: 14px; line-height: 1.5; }
.dialog-copy { margin-bottom: 20px; font-size: 16px; line-height: 1.55; }
.menu-list { display: flex; flex-direction: column; gap: 12px; }
.menu-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 57px; padding: 15px; background: #edf7ff; border: 2px solid var(--blue); border-radius: 10px; box-shadow: 2px 2px 0 var(--blue); color: var(--ink); font-size: 16px; font-weight: 600; text-align: left; text-decoration: none; }
.menu-row svg { width: 20px; height: 20px; flex: none; }
.menu-separator { height: 2px; background: #123de029; margin: 11px 0; }
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; font-size: 16px; min-height: 60px; }
.toggle { display: inline-flex; align-items: center; justify-content: flex-start; flex: none; min-width: 54px; width: 54px; height: 34px; border: 2px solid var(--blue); background: #e2e7f4; border-radius: 8px; padding: 4px; }
.toggle::before { content: ''; display: block; width: 22px; height: 22px; background: var(--blue); border-radius: 4px; }
.toggle[aria-checked="true"] { background: var(--sky); justify-content: flex-end; }
.dialog-actions { display: flex; flex-direction: column; gap: 14px; margin-top: 23px; }
.timer-settings { border: 0; padding: 0; margin: 0; min-width: 0; }
.timer-settings legend { font-size: 18px; font-weight: 700; padding: 0; margin-bottom: 8px; }
.settings-intro { color: var(--muted); font-size: 16px; line-height: 1.4; margin-bottom: 18px; }
.duration-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.duration-fields label { display: flex; flex-direction: column; gap: 8px; min-width: 0; font-size: 15px; font-weight: 600; }
.duration-entry { display: flex; align-items: center; gap: 5px; min-width: 0; border: 2px solid var(--blue); box-shadow: 3px 3px 0 var(--blue); border-radius: 9px; padding: 9px 13px; background: #e7f5ff; }
.duration-entry:focus-within { outline: 3px solid var(--accent); outline-offset: 3px; }
.duration-entry input { font: 700 28px/1.4 Outfit,system-ui,sans-serif; min-width: 0; width: 100%; padding: 0; background: transparent; color: var(--ink); border: 0; outline: none; }
.duration-entry input[aria-invalid="true"] { color: #b72020; }
.duration-entry > span { font-size: 17px; flex: none; }
.settings-help { font-size: 14px; color: var(--muted); line-height: 1.45; margin-top: 12px; }
.settings-error { font-size: 14px; color: #b72020; font-weight: 600; line-height: 1.45; margin-top: 12px; }
#toast { position: fixed; z-index: 100; left: 50%; bottom: max(20px,env(safe-area-inset-bottom,0px)); transform: translate(-50%,20px); max-width: calc(100% - 32px); width: max-content; padding: 13px 19px; color: var(--paper); background: var(--ink); border: 2px solid var(--paper); box-shadow: 4px 4px 0 var(--accent); border-radius: 10px; font-size: 15px; text-align: center; opacity: 0; pointer-events: none; transition: opacity .2s,transform .2s; }
#toast.visible { opacity: 1; transform: translate(-50%,0); }
.noscript { position: fixed; bottom: 0; width: 100%; padding: 16px; background: var(--ink); color: var(--paper); text-align: center; }
@keyframes boom-letter-pop {
  0% { opacity: 0; transform: translateY(.15em) rotate(calc(var(--tilt) - 12deg)) scale(.35); }
  34% { opacity: 1; transform: translateY(-.035em) rotate(calc(var(--tilt) + 5deg)) scale(1.12); }
  65% { opacity: 1; transform: rotate(var(--tilt)) scale(.96); }
  100% { opacity: 1; transform: rotate(var(--tilt)) scale(1); }
}



@keyframes wobble { 0%,100% { transform: rotate(-7deg); } 50% { transform: rotate(3deg); } }
@keyframes confetti { from { opacity: 0; transform: translateY(-20px) rotate(0); } 25% { opacity: 1; } to { opacity: .8; transform: translateY(15px) rotate(var(--r)); } }
@media (hover:hover) {
  .icon-button:hover, .pause-button:hover { background: #ddf3ff; }
  .button-primary:hover { background: #082dcc; }
  .play-button:hover { transform: rotate(0); }
  .button-outline:hover, .button-light:hover { background: #e7f5ff; }
  .text-button:hover { text-decoration: underline; text-underline-offset: 4px; }
  .menu-row:hover { background: #e7f5ff; }
  body[data-screen="ended"] .result-actions .button-primary:hover { background: #ddf3ff; }
  body[data-screen="ended"] .result-actions .button-outline:hover { background: #ffffff1a; }
}
@media (max-width: 860px) {
  .app-shell { padding-left: 24px; padding-right: 24px; grid-template-rows: 72px 1fr 28px; }
  #app { padding: 13px 0 24px; }
  .home-screen { grid-template-columns: 1fr; max-width: 440px; gap: 23px; }
  .game-logo { width: 112%; margin: 0 -6%; }
  .game-logo img { max-height: 270px; object-fit: contain; }
  .edition-label { margin-top: -1px; padding: 5px 13px; font-size: 12px; }
  .home-play { gap: 16px; max-width: none; }
  .intro-card { padding: 21px; }
  .play-button { min-height: 65px; font-size: 23px; }
  .studio img { width: 122px; }
  .mini-brand { width: 107px; }
  .mini-brand img { max-height: 66px; }
}
@media (max-width: 480px) {
  .app-shell { padding-left: 22px; padding-right: 22px; grid-template-rows: 67px 1fr 26px; }
  .top-tools { gap: 8px; }
  .studio img { width: 111px; }
  .icon-button { width: 41px; min-width: 41px; height: 44px; border-radius: 11px; }
  .icon-button svg { width: 20px; height: 20px; }
  .home-screen { gap: 19px; }
  .game-logo img { max-height: 228px; }
  .intro-card { padding: 19px 17px; box-shadow: 4px 4px 0 var(--blue); }
  .example { gap: 14px; }
  .example-letter { width: 50px; height: 59px; font-size: 54px; }
  .example strong { font-size: 23px; }
  .example-answer { font-size: 14px; }
  .example .eyebrow { font-size: 12px; letter-spacing: 0; }
  .rule-divider { margin: 15px 0 12px; }
  .player-meta { gap: 10px; }
  .player-meta > span { padding: 5px 10px; }
  .home-play { gap: 14px; }
  .home-footnote { margin-top: -11px; font-size: 13px; }
  .round-screen { gap: 20px; }
  .challenge-card { padding: 22px 15px 15px; }
  .challenge-theme { font-size: 27px; }
  .challenge-letter { font-size: min(27vh,207px); }
  .pass-copy { margin-top: 12px; }
  .pass-copy h2 { font-size: 33px; }
  .pass-copy p { font-size: 16px; margin-top: 8px; }
  .secret-badge { font-size: 13px; }
  .button { padding: 15px 18px; min-height: 57px; font-size: 18px; }
  .play-button { font-size: 22px; min-height: 63px; }
  .button-outline { font-size: 16px; min-height: 51px; }
  .result-screen { gap: 17px; }
  .result-card { padding: 23px 18px; }
  .result-card h2 { font-size: 23px; }
  .result-card > p { font-size: 17px; }
  .result-actions { gap: 14px; margin-top: 6px; }
  .victory-stage { height: 188px; }
  .victory-screen .display-title { font-size: 69px; }
  .countdown-stage { height: 250px; }
  .countdown-number { font-size: 222px; }
  .countdown-copy { font-size: 21px; }
  dialog { padding: 22px; }
  .dialog-top h2 { font-size: 33px; }
}
@media (max-height: 740px) and (max-width: 860px) {
  .app-shell { grid-template-rows: 63px 1fr 23px; }
  #app { padding-top: 8px; padding-bottom: 18px; }
  .home-screen { gap: 14px; }
  .game-logo img { max-height: 171px; }
  .edition-label { font-size: 12px; padding: 4px 10px; margin-top: -5px; }
  .home-play { gap: 10px; }
  .intro-card { padding: 14px 16px; }
  .example .eyebrow { display: none; }
  .example > div { gap: 5px; }
  .example-letter { width: 46px; height: 52px; font-size: 49px; }
  .example strong { font-size: 22px; }
  .rule-divider { margin: 11px 0 8px; }
  .intro-card > p { font-size: 16px; line-height: 1.4; }
  .play-button { min-height: 57px; padding-top: 12px; padding-bottom: 12px; }
  .home-footnote { margin-top: -8px; }
  .round-screen { gap: 17px; }
  .challenge-card { padding-top: 19px; padding-bottom: 12px; }
  .challenge-letter { font-size: min(25vh,177px); }
  .challenge-theme { font-size: 25px; }
  .challenge-rule { margin-top: 10px; }
  .pass-copy h2 { font-size: 32px; }
  .pass-copy p { font-size: 15px; }
  .countdown-stage { height: 217px; }
  .countdown-number { font-size: 192px; }
  .countdown-screen { gap: 16px; }
  .result-screen { gap: 14px; }
  .result-card { padding: 18px; }
  .result-card h2 { font-size: 22px; }
  .result-card > p { font-size: 16px; }
  .result-card .small-copy { margin-top: 9px; }
  .result-actions .button { min-height: 53px; padding-top: 12px; padding-bottom: 12px; }
  .victory-stage { height: 159px; }
  .victory-screen .display-title { font-size: 61px; }
  .pause-screen { gap: 18px; }
  .pause-art { width: 105px; }
  .display-title { font-size: 61px; }
}
@media (max-width: 350px) {
  .app-shell { padding-left: 16px; padding-right: 16px; }
  .studio img { width: 92px; }
  .top-tools { gap: 6px; }
  .icon-button { width: 39px; min-width: 39px; }
  .mini-brand { width: 88px; }
  .example { gap: 11px; }
  .example strong { font-size: 21px; }
  .intro-card { padding-left: 12px; padding-right: 12px; }
  .pass-copy h2 { font-size: 29px; }
  .challenge-theme { font-size: 24px; }
  .secret-badge { font-size: 12px; padding-left: 7px; padding-right: 7px; }
  .round-bar { font-size: 13px; gap: 8px; }
  .round-bar > span:first-child { padding-left: 9px; padding-right: 9px; }
  .duration-fields { gap: 12px; }
  .duration-entry { padding: 8px 10px; }
  .duration-entry input { font-size: 25px; }
  dialog { padding: 18px; }
}
@media (orientation: landscape) and (max-height: 550px) {
  .app-shell { grid-template-rows: 59px 1fr 24px; padding-left: 30px; padding-right: 30px; }
  #app { padding: 12px 0 20px; }
  .mini-brand img { max-height: 56px; }
  .home-screen { grid-template-columns: 1fr 1fr; max-width: 930px; gap: 32px; }
  .game-logo img { max-height: 230px; }
  .home-play { gap: 10px; }
  .intro-card { padding: 13px 15px; }
  .intro-card .eyebrow { display: none; }
  .rule-divider { margin: 10px 0 8px; }
  .example-letter { width: 42px; height: 48px; font-size: 45px; }
  .example strong { font-size: 21px; }
  .play-button { min-height: 53px; font-size: 21px; }
  .home-footnote { display: none; }
  .round-screen { display: grid; grid-template-columns: 1fr 1fr; max-width: 830px; gap: 14px 38px; }
  .round-bar { grid-column: 1/-1; }
  .challenge-card { grid-column: 1; grid-row: 2/4; padding: 15px; }
  .challenge-theme { font-size: 24px; }
  .challenge-rule { margin-top: 8px; }
  .challenge-letter { font-size: 132px; line-height: 1; }
  .pass-copy { grid-column: 2; align-self: end; margin: 0; }
  .pass-copy h2 { font-size: 32px; }
  .pass-copy p { font-size: 15px; }
  .round-screen .pause-button { grid-column: 2; justify-self: center; align-self: start; }
  .countdown-screen { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 30px; max-width: 790px; }
  .countdown-screen > .eyebrow { grid-column: 1; justify-self: center; }
  .countdown-copy { grid-column: 2; grid-row: 1/3; align-self: end; }
  .countdown-stage { grid-column: 1; grid-row: 2/5; height: 185px; }
  .countdown-number { font-size: 170px; }
  .countdown-hint { grid-column: 2; grid-row: 3; font-size: 15px; }
  .countdown-screen .pause-button { grid-column: 2; justify-self: center; }
  .result-screen { display: grid; grid-template-columns: 1fr 1.2fr; max-width: 870px; gap: 15px 33px; }
  .result-screen > .round-label { grid-column: 1; grid-row: 1; justify-self: center; align-self: end; }
  .result-card { grid-column: 2; grid-row: 1/3; padding: 16px; }
  .result-card h2 { font-size: 22px; }
  .result-card > p { font-size: 16px; }
  .result-actions { grid-column: 2; grid-row: 3; gap: 12px; margin: 0; }
  .result-actions .button { min-height: 46px; padding: 10px 14px; }
  .result-screen > .small-copy { grid-column: 1; grid-row: 3; }
  .victory-stage { grid-column: 1; grid-row: 2/4; height: 195px; }
  .victory-screen .display-title { font-size: 62px; }
  .victory-sticker { grid-column: 1; grid-row: 1; justify-self: center; font-size: 20px; }
  .pause-screen { display: grid; grid-template-columns: 1fr 1.2fr; gap: 15px 30px; max-width: 770px; }
  .pause-art { grid-column: 1; justify-self: center; width: 90px; }
  .pause-screen .display-title { grid-column: 1; grid-row: 2; font-size: 54px; }
  .pause-screen > p { grid-column: 2; grid-row: 1/3; align-self: center; }
  .pause-screen > .small-copy { grid-column: 1; grid-row: 3/5; }
  .pause-screen .button { grid-column: 2; grid-row: 3; margin: 0; }
  .pause-screen .text-button { grid-column: 2; grid-row: 4; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
