:root {
  color-scheme: light;
  --yellow: #ffdf16;
  --paper: #fffdf4;
  --blue: #123de0;
  --ink: #102779;
  --red: #ff3b37;
  --muted: #415484;
  --line: 3px solid var(--blue);
  font-family: Outfit, system-ui, sans-serif;
  font-synthesis: none;
  font-size: 16px;
  color: var(--ink);
  background: var(--yellow);
}
* { 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%, #fff495 0, transparent 65%), var(--yellow);
}
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(--red);
  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(--yellow);
  font: italic 900 64px/1 Outfit, system-ui, sans-serif;
  transform: rotate(-4deg);
}
.glyph-art { position: relative; display: inline-block; flex: none; height: 1em; width: auto; aspect-ratio: var(--glyph-ratio); overflow: hidden; vertical-align: middle; }
.glyph-art > .glyph-sheet { position: absolute; max-width: none; height: auto; pointer-events: none; }
.glyph-fallback { display: none; }
.glyph-failed > .glyph-sheet { display: none; }
.glyph-failed > .glyph-fallback { display: flex; align-items: center; justify-content: center; height: 100%; width: 100%; color: var(--yellow); -webkit-text-stroke: 3px var(--blue); paint-order: stroke fill; text-shadow: 4px 4px 0 var(--red); font-family: Outfit, system-ui, sans-serif; }
.example-letter .glyph-art { height: 100%; max-width: 100%; }
.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(--red); }
.button-primary svg { stroke-width: 2.8; }
.play-button { color: var(--yellow); 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(--red); }
.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(--red);
  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(--yellow); -webkit-text-stroke: 5px var(--blue); paint-order: stroke fill;
  font: italic 900 clamp(174px,29vh,228px)/1 Outfit, system-ui, sans-serif;
  padding: 9px 0 14px;
}
.card-bomb { position: absolute; right: -29px; bottom: -22px; width: 124px; height: auto; z-index: 3; pointer-events: none; animation: wobble 1.8s ease-in-out infinite; }
.pass-copy { text-align: center; margin-top: 6px; }
.pass-copy h2 { font: italic 900 40px/1 Outfit, system-ui, 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, .boom-stage, .victory-stage { position: relative; isolation: isolate; display: flex; align-items: center; justify-content: center; width: 100%; }
.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(--yellow); font: italic 900 250px/1 Outfit, system-ui, 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(--red); border-radius: 10px; transform: rotate(12deg); }
.pause-symbol svg { width: 23px; height: 23px; }
.display-title { font: italic 900 70px/.95 Outfit, system-ui, sans-serif; text-transform: uppercase; letter-spacing: -.015em; text-shadow: 3px 3px 0 var(--paper), 5px 5px 0 var(--red); }
.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; }
.boom-stage { height: 208px; margin: 3px 0; }
.boom-title, .detonation-word { color: var(--yellow); -webkit-text-stroke: 3px var(--blue); paint-order: stroke fill; text-shadow: 5px 5px 0 var(--blue), 9px 9px 0 var(--red); font: italic 900 clamp(106px,25vw,146px)/1 Outfit, system-ui, sans-serif; letter-spacing: -.015em; }
.boom-glyphs { display: flex; align-items: center; justify-content: center; isolation: isolate; }
.boom-letter { display: flex; position: relative; flex: none; height: .75em; margin: 0 -.072em; transform: rotate(var(--tilt,0deg)); }
.boom-letter .glyph-art { height: 100%; }
.boom-letter-b { --tilt: -9deg; z-index: 1; }
.boom-letter-o { --tilt: -3deg; height: .95em; z-index: 3; }
.boom-letter-u { --tilt: 4deg; height: .95em; z-index: 2; }
.boom-letter-m { --tilt: 10deg; z-index: 1; }
.boom-bang { font-size: .70em; margin: .10em 0 0 .035em; transform: rotate(10deg); }
.boom-title { position: relative; transform: rotate(-8deg); white-space: nowrap; }
.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="exploded"] { background: radial-gradient(ellipse at 50% 30%, #315dea 0, transparent 65%), var(--blue); }
body[data-screen="exploded"] .paper-grain { background-image: radial-gradient(#06166e 1.6px, transparent 1.8px); opacity: .7; }
body[data-screen="exploded"] .round-label { background: var(--yellow); color: var(--ink); }
body[data-screen="exploded"] .result-card { box-shadow: 6px 6px 0 var(--red); border-color: var(--paper); }
body[data-screen="exploded"] .result-actions .button-primary { background: var(--yellow); color: var(--ink); border-color: var(--paper); box-shadow: 5px 5px 0 var(--red); }
body[data-screen="exploded"] .result-actions .button-outline { border-color: var(--paper); color: var(--paper); background: transparent; box-shadow: 3px 3px 0 #071968; }
body[data-screen="exploded"] .result-screen > .small-copy { color: var(--paper); }
body[data-screen="exploded"] button:focus-visible { outline-color: var(--yellow); }
.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(--red); border: 2px solid var(--paper); box-shadow: 3px 3px 0 var(--blue); padding: 7px 20px; transform: rotate(-4deg); font: italic 800 24px/1 Outfit, system-ui, sans-serif; }
.victory-stage { height: 210px; }
.victory-screen .display-title { font-size: clamp(65px,15vw,88px); color: var(--yellow); -webkit-text-stroke: 3px var(--blue); paint-order: stroke fill; text-shadow: 4px 4px 0 var(--blue), 7px 7px 0 var(--red); 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 Outfit, system-ui, sans-serif; letter-spacing: -.015em; }
.dialog-top .icon-button { box-shadow: 2px 2px 0 var(--red); }
.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(--red); border-radius: 6px; background: var(--yellow); color: var(--blue); font: 900 26px/1 Outfit, system-ui, 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: #fff2a4; 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: #eef1ff; 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(--yellow); 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: #fff1a0; }
.duration-entry:focus-within { outline: 3px solid var(--red); 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(--red); 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; }
.detonation-overlay { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; overflow: hidden; overflow: clip; pointer-events: none; contain: paint; isolation: isolate; }
.detonation-burst { position: absolute; width: min(1100px,130vw); max-width: none; animation: detonation-cloud 1.1s both; }
.detonation-word { flex: none; display: block; position: relative; white-space: nowrap; font-size: var(--boom-size,120px); transform-origin: center; will-change: transform; animation: detonation-flight 1.1s both; }
.detonation-word .boom-letter { animation: boom-letter-pop .65s cubic-bezier(.2,.75,.25,1) both; animation-delay: calc(var(--beat) * 35ms); }
.detonation-word .boom-bang { animation: boom-letter-pop .65s 140ms both; --tilt: 10deg; }
@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); }
}
body[data-detonating="true"] .boom-stage { visibility: hidden; }
body[data-detonating="true"] .result-card, body[data-detonating="true"] .result-actions, body[data-detonating="true"] .result-screen > .small-copy, body[data-detonating="true"] .result-screen > .round-label { animation: detonation-reveal 1.1s both; }
@keyframes detonation-flight {
  0% { opacity: 0; transform: translate(0,0) rotate(-14deg) scale(.12); animation-timing-function: cubic-bezier(.12,.7,.2,1); }
  12% { opacity: 1; transform: translate(0,0) rotate(-10deg) scale(1.5); animation-timing-function: cubic-bezier(.3,0,.1,1); }
  27% { opacity: 1; transform: translate(0,0) rotate(-4deg) scale(6.5); animation-timing-function: ease-out; }
  36% { opacity: 1; transform: translate(0,0) rotate(-3deg) scale(6.5); animation-timing-function: cubic-bezier(.45,0,.22,1); }
  72% { opacity: 1; transform: translate(var(--landing-x),var(--landing-y)) rotate(-9deg) scale(.8); animation-timing-function: ease-out; }
  87% { opacity: 1; transform: translate(var(--landing-x),var(--landing-y)) rotate(-7deg) scale(1.12); animation-timing-function: ease-in-out; }
  100% { opacity: 1; transform: translate(var(--landing-x),var(--landing-y)) rotate(-8deg) scale(1); }
}
@keyframes detonation-cloud { 0% { opacity: 0; transform: scale(.15) rotate(-8deg); } 22% { opacity: 1; transform: scale(1.7) rotate(2deg); } 62% { opacity: .85; } 100% { opacity: 0; transform: scale(2.2); } }
@keyframes detonation-reveal { 0%,62% { opacity: 0; transform: translateY(12px); } 100% { opacity: 1; transform: translateY(0); } }
@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: #fff19b; }
  .button-primary:hover { background: #082dcc; }
  .play-button:hover { transform: rotate(0); }
  .button-outline:hover, .button-light:hover { background: #fff0a2; }
  .text-button:hover { text-decoration: underline; text-underline-offset: 4px; }
  .menu-row:hover { background: #fff0a2; }
  body[data-screen="exploded"] .result-actions .button-primary:hover { background: #fff080; }
  body[data-screen="exploded"] .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); }
  .card-bomb { width: 104px; right: -18px; bottom: -22px; }
  .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; }
  .boom-stage { height: 180px; }
  .boom-title { font-size: 112px; }
  .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; }
  .card-bomb { width: 95px; }
  .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; }
  .boom-stage { height: 155px; }
  .boom-title { font-size: 106px; }
  .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; }
  .boom-title { font-size: 99px; }
  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; }
  .card-bomb { width: 81px; }
  .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; }
  .boom-stage { grid-column: 1; grid-row: 2; height: 145px; }
  .boom-title { font-size: 105px; }
  .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; }
  .detonation-overlay { display: none; }
}
