:root {
  --paper: #f8f1e7;
  --paper-deep: #eadfce;
  --ink: #252321;
  --muted: #625d56;
  --red: #e85b48;
  --red-dark: #be3e31;
  --cta: #b93e32;
  --cta-hover: #952f27;
  --yellow: #f3c74f;
  --cat: #f0a158;
  --cat-dark: #cf7138;
  --cream: #ffd38b;
  --white: #fffaf3;
  --line: rgba(37, 35, 33, .14);
  --edge: 16px;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--paper); }
body { min-height: 100vh; margin: 0; overflow-x: hidden; background: var(--paper); color: var(--ink); font-family: Arial, sans-serif; }
button, input { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, a:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; box-shadow: 0 0 0 5px var(--yellow); }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }

.page-shell { width: min(100% - (var(--edge) * 2), 1320px); min-height: 100svh; margin: 0 auto; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; justify-content: space-between; min-height: 70px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-size: 11px; font-weight: 700; line-height: 1.05; letter-spacing: -.01em; text-decoration: none; text-transform: uppercase; }
.brand-mark { display: grid; flex: 0 0 auto; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--red); color: var(--paper); font-size: 18px; }
.brand em, h2 em { color: var(--red); font-family: Georgia, serif; font-style: italic; text-transform: none; }
.topbar-note { display: none; color: var(--muted); font-size: 12px; }

.game-layout { display: flex; flex: 1; align-items: center; justify-content: center; padding: 18px 0 38px; }
.play-column { position: relative; display: flex; width: min(100%, 600px); flex-direction: column; align-items: center; min-width: 0; }
.modal-kicker { margin: 0 0 16px; color: var(--red-dark); font-size: 10px; font-weight: 700; letter-spacing: .115em; line-height: 1.45; text-transform: uppercase; }

.score-card { position: absolute; z-index: 4; top: 6px; right: 0; display: grid; grid-template-columns: auto auto; align-items: end; gap: 0 6px; min-width: 96px; padding: 9px 12px 10px; border: 1px solid var(--line); border-radius: 7px; background: rgba(255, 250, 243, .88); box-shadow: 3px 3px 0 rgba(37, 35, 33, .06); transform: rotate(1.5deg); backdrop-filter: blur(5px); }
.score-label { grid-column: 1 / -1; }
.score-label, .score-unit { color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.score-number { color: var(--red); font-family: Georgia, serif; font-size: 27px; line-height: .85; }

.cat-stage { position: relative; width: min(100% + 8px, 470px); margin: 10px -4px 0; isolation: isolate; }
.cat-stage::after { position: absolute; z-index: -1; right: 14%; bottom: 7%; left: 14%; height: 18px; border-radius: 50%; background: rgba(37, 35, 33, .11); content: ''; filter: blur(11px); }
.cat { position: relative; z-index: 1; display: block; width: 100%; height: auto; overflow: visible; transform-origin: center bottom; animation: cat-float 4s ease-in-out infinite; }
.cat path, .cat ellipse { vector-effect: non-scaling-stroke; }
.body, .paw, .head-shape, .belly-torso, .belly-paw { fill: var(--cat); stroke: var(--ink); stroke-linecap: round; stroke-linejoin: round; stroke-width: 4; }
.body-shadow { fill: var(--cat-dark); opacity: .25; }
.chest, .muzzle { fill: var(--cream); }
.ear-inner { fill: var(--red); opacity: .72; }
.eyes, .nose { fill: var(--ink); stroke: var(--ink); stroke-linecap: round; stroke-linejoin: round; }
.blush { fill: var(--red); opacity: 0; transition: opacity .3s ease; }
.mouth { fill: none; stroke: var(--ink); stroke-linecap: round; stroke-width: 3; }
.happy-mouth { display: none; fill: none; stroke: var(--ink); stroke-linecap: round; stroke-width: 3; }
.whiskers { fill: none; stroke: var(--ink); stroke-linecap: round; stroke-width: 2; }
.belly-mark { fill: none; stroke: var(--cat-dark); stroke-linecap: round; stroke-width: 3; }
.front-tail { fill: none; stroke: var(--cat); stroke-linecap: round; stroke-linejoin: round; stroke-width: 19; transform-origin: 277px 226px; animation: tail-wag 2.5s ease-in-out infinite; }
.front-head { transform-origin: 179px 143px; animation: head-breathe 3.2s ease-in-out infinite; }
.eyes { transform-origin: center; animation: blink 5s infinite; }

.cat-belly { display: none; }
.belly-tail { fill: none; stroke: var(--cat); stroke-linecap: round; stroke-width: 19; filter: drop-shadow(0 3px 0 var(--ink)); transform-origin: 268px 232px; animation: belly-tail-swish 2.7s ease-in-out infinite; }
.belly-patch { fill: var(--cream); }
.belly-arm { fill: none; stroke: var(--cat); stroke-linecap: round; stroke-width: 19; }
.belly-eyes, .belly-toes, .belly-scratch-lines { fill: none; stroke: var(--ink); stroke-linecap: round; stroke-width: 3; }
.belly-toes, .belly-scratch-lines { stroke: var(--cat-dark); opacity: .62; }
.belly-blush { fill: var(--red); opacity: .45; }
.belly-head { transform-origin: 179px 145px; animation: head-breathe 3.2s ease-in-out infinite; }

.is-belly .cat-front { display: none; }
.is-belly .cat-belly { display: block; transform-origin: center bottom; animation: belly-reveal .55s cubic-bezier(.2, .8, .2, 1) both; }
.is-belly .cat { filter: saturate(1.03); }
.is-victory .cat { filter: saturate(1.15); animation: victory-float 1.6s ease-in-out infinite; }
.is-victory .spark { color: var(--red); animation-duration: 1.2s; }
.mood-curious .blush { opacity: .28; }
.mood-curious .front-tail { animation-duration: 1.8s; }
.mood-curious .front-head { animation: curious-look 3.1s ease-in-out infinite; }
.mood-pleased .blush { opacity: .58; }
.mood-pleased .mouth { display: none; }
.mood-pleased .happy-mouth { display: block; }
.mood-pleased .front-tail { animation-duration: 1.35s; }
.is-belly.is-reacting .belly-scratch-lines { transform-origin: 180px 229px; animation: scratch-lines .52s ease; }
.is-belly.reaction-1 .belly-head { animation: pleased-stretch .56s ease; }
.is-belly.reaction-1 .raised-paw.left { transform-origin: 137px 198px; animation: paw-wave-left .56s ease; }
.is-belly.reaction-1 .raised-paw.right { transform-origin: 223px 198px; animation: paw-wave-right .56s ease; }
.is-belly.reaction-2 .hind-right { transform-origin: center; animation: hind-kick .56s ease; }
.is-belly.reaction-2 .belly-tail { animation: quick-tail .56s ease; }
.is-belly.reaction-3 .belly-body { transform-origin: 180px 236px; animation: belly-roll .58s cubic-bezier(.2,.8,.25,1); }
.is-belly.reaction-3 .belly-tail { animation: quick-tail .58s ease; }
.is-belly.reaction-combo .belly-patch { transform-origin: 180px 216px; animation: belly-rub .52s ease; }

.spark { position: absolute; z-index: 2; color: var(--yellow); font-size: 23px; line-height: 1; animation: twinkle 2.8s ease-in-out infinite; }
.spark-one { top: 29%; left: 5%; }
.spark-two { top: 45%; right: 5%; font-size: 17px; animation-delay: .8s; }
.spark-three { top: 16%; right: 24%; font-size: 28px; animation-delay: 1.4s; }
.thought-bubble { position: absolute; z-index: 3; top: 10%; left: 0; max-width: 190px; padding: 12px 14px; border: 1px solid var(--ink); border-radius: 5px 5px 5px 0; background: var(--white); box-shadow: 3px 3px 0 rgba(37, 35, 33, .07); font-family: Georgia, serif; font-size: 16px; line-height: 1.2; opacity: 0; pointer-events: none; transform: rotate(-3deg) translateY(5px) scale(.97); visibility: hidden; transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s; }
.thought-bubble::after { position: absolute; bottom: -7px; left: -1px; width: 11px; height: 11px; border-bottom: 1px solid var(--ink); border-left: 1px solid var(--ink); background: var(--white); content: ''; transform: skewY(-35deg); }
.thought-bubble.is-visible { opacity: 1; transform: rotate(-3deg) translateY(0) scale(1); visibility: visible; transition-delay: 0s; }
.thought-bubble.is-speaking { animation: speech-pop .42s cubic-bezier(.2,.85,.28,1); }
.interaction-hint { min-height: 18px; margin: -2px 10px 12px; color: var(--muted); font-size: 12px; font-weight: 500; line-height: 1.4; text-align: center; }
.quick-progress { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; width: min(100%, 294px); margin: 0 0 14px; color: var(--muted); font-size: 11px; }
.quick-track { position: relative; display: block; height: 6px; border-radius: 8px; background: var(--paper-deep); }
.quick-track i { position: absolute; z-index: 1; inset: 0 auto 0 0; width: 0; border-radius: inherit; background: var(--red); transition: width .38s cubic-bezier(.22, 1, .36, 1); }
.quick-track b { position: relative; z-index: 2; float: left; width: 20%; height: 100%; border-right: 1px solid rgba(37,35,33,.22); }
.quick-track b:last-child { border-right: 0; }
.quick-progress strong { min-width: 44px; color: var(--ink); font-size: 11px; text-align: right; }

.primary-button, .secondary-button { min-height: 52px; border: 0; border-radius: 5px; font-weight: 700; transition: transform .16s ease, background .16s ease, box-shadow .16s ease; }
.primary-button:hover:not(:disabled) { background: var(--cta-hover); transform: translate(-1px, -1px); }
.primary-button:active:not(:disabled), .secondary-button:active:not(:disabled) { box-shadow: 1px 1px 0 rgba(37, 35, 33, .12); transform: translate(2px, 2px); }
.primary-button:disabled { cursor: wait; opacity: .55; }
.cat-action { position: absolute; z-index: 6; top: 14%; left: 24%; width: 52%; height: 49%; padding: 0; border: 0; border-radius: 46%; background: transparent; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.cat-action::before { position: absolute; inset: 8%; border-radius: 50%; background: rgba(255, 211, 139, .13); content: ''; opacity: 0; transform: scale(.82); transition: opacity .16s ease, transform .16s ease; }
.cat-action::after { position: absolute; inset: 28%; border: 2px solid rgba(190, 62, 49, .7); border-radius: 50%; content: ''; opacity: 0; transform: scale(.55); }
.cat-action:hover:not(:disabled)::before, .cat-action:focus-visible::before { opacity: 1; transform: scale(1); }
.cat-action.is-tapped::after { animation: touch-ring .52s ease-out; }
.cat-action:active:not(:disabled) { transform: scale(.97); }
.cat-action:disabled { cursor: default; }
.is-belly .cat-action { top: 54%; left: 35%; width: 30%; height: 29%; border-radius: 50%; }
.is-completed-action .cat-action { top: 13%; left: 22%; width: 56%; height: 70%; }
.action-prompt { display: flex; align-items: center; gap: 9px; width: min(100%, 294px); min-height: 42px; padding: 10px 13px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,250,243,.78); color: var(--ink); font-size: 12px; font-weight: 700; text-align: left; touch-action: manipulation; transition: border-color .16s ease, background .16s ease, transform .16s ease; }
.action-prompt:hover:not(:disabled) { border-color: var(--ink); background: var(--white); transform: translateY(-1px); }
.action-prompt:active:not(:disabled) { transform: translateY(1px) scale(.99); }
.action-prompt:disabled { cursor: default; opacity: .58; }
.prompt-mark { color: var(--red); font-size: 10px; line-height: 1; animation: prompt-pulse 1.8s ease-in-out infinite; }
.button-count { margin-left: auto; color: var(--muted); font-size: 10px; }

.tap-effects { position: absolute; z-index: 5; inset: 0; overflow: visible; pointer-events: none; }
.tap-particle { --tx: 0px; --ty: -52px; position: absolute; top: 42%; left: 50%; color: var(--red); font-size: 17px; font-weight: 700; opacity: 0; animation: particle-pop .72s cubic-bezier(.16, .75, .36, 1) forwards; }
.is-belly .tap-particle { top: 67%; }
.tap-particle.is-crumb { color: var(--yellow); font-size: 13px; }

.is-reacting:not(.is-belly) .cat { animation: tap-bounce .48s cubic-bezier(.2, .75, .3, 1); }
.reaction-1 .front-head { animation: head-tilt-left .48s ease; }
.reaction-2 .front-head { animation: head-tilt-right .48s ease; }
.reaction-2 .front-tail { animation: quick-tail .48s ease; }
.reaction-3:not(.is-belly) .cat { animation: happy-hop .52s cubic-bezier(.18, .8, .3, 1); }

.overlay { position: fixed; z-index: 20; inset: 0; display: grid; place-items: center; overflow-y: auto; overscroll-behavior: contain; padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); background: rgba(37, 35, 33, .42); opacity: 1; backdrop-filter: blur(7px); transition: opacity .22s ease; }
.overlay.hidden { pointer-events: none; opacity: 0; }
.modal-card { width: min(100%, 490px); max-height: calc(100svh - 32px); overflow-y: auto; padding: 27px 21px; border: 1px solid var(--ink); border-radius: 8px; background: var(--paper); box-shadow: 8px 8px 0 rgba(37, 35, 33, .14); transform: translateY(0) scale(1); transition: transform .22s ease; }
.modal-card:focus { outline: none; }
.finish-card { position: relative; }
.modal-close { position: absolute; z-index: 2; top: 12px; right: 12px; display: grid; place-items: center; width: 38px; height: 38px; padding: 0 0 3px; border: 1px solid var(--line); border-radius: 50%; background: var(--white); color: var(--ink); font-family: Arial, sans-serif; font-size: 25px; line-height: 1; }
.modal-close:hover { border-color: var(--ink); background: var(--paper-deep); }
.hidden .modal-card { transform: translateY(12px) scale(.985); }
.modal-card h2 { margin: 0 0 15px; font-family: Georgia, serif; font-size: clamp(38px, 12vw, 57px); letter-spacing: -.06em; line-height: .9; }
.modal-card p { margin: 0 0 22px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.primary-button, .secondary-button { width: 100%; padding: 14px 16px; background: var(--cta); box-shadow: 4px 4px 0 rgba(37, 35, 33, .1); color: var(--white); text-align: left; touch-action: manipulation; }
.primary-button span { float: right; font-size: 20px; line-height: 13px; }
.variety-copy { margin-bottom: 18px !important; }
.flavor-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin: 0 0 16px; }
.flavor-card { min-width: 0; min-height: 132px; padding: 10px 7px 11px; border: 1px solid var(--line); border-radius: 7px; background: var(--white); color: var(--ink); text-align: center; transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease; touch-action: manipulation; }
.flavor-card:hover:not(:disabled), .flavor-card:focus-visible { border-color: var(--ink); box-shadow: 3px 3px 0 rgba(37,35,33,.1); transform: translateY(-2px); }
.flavor-card:active:not(:disabled) { box-shadow: none; transform: translateY(1px); }
.flavor-card strong, .flavor-card small { display: block; overflow: hidden; text-overflow: ellipsis; }
.flavor-card strong { margin-top: 8px; font-family: Georgia, serif; font-size: 13px; }
.flavor-card small { margin-top: 2px; color: var(--muted); font-size: 10px; }
.flavor-pack { --pack: var(--red); display: grid; place-items: center; width: 54px; height: 70px; margin: 0 auto; border: 2px solid var(--ink); border-radius: 4px 4px 9px 9px; background: var(--pack); box-shadow: inset 0 8px rgba(255,255,255,.2); transform: rotate(-2deg); }
.flavor-card:nth-child(2) .flavor-pack { transform: rotate(2deg); }
.flavor-card:nth-child(3) .flavor-pack { transform: rotate(-1deg); }
.flavor-pack.chicken { --pack: var(--yellow); }
.flavor-pack.beef { --pack: var(--cat-dark); }
.flavor-pack svg { width: 35px; fill: none; stroke: var(--ink); stroke-linecap: round; stroke-linejoin: round; stroke-width: 2.3; }

form > label:not(.consent) { display: block; margin: 13px 0 5px; color: var(--muted); font-size: 12px; font-weight: 700; }
input[type="text"], input[type="email"] { display: block; width: 100%; min-height: 48px; padding: 12px; border: 1px solid var(--line); border-radius: 4px; outline: none; background: var(--white); color: var(--ink); font-size: 16px; }
input:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(232,91,72,.13); }
input:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; box-shadow: 0 0 0 5px var(--yellow); }
.consent { display: flex; align-items: flex-start; gap: 10px; margin: 18px 0 20px; color: var(--muted); font-size: 12px; line-height: 1.4; }
.consent input { flex: 0 0 auto; width: 18px; height: 18px; margin: 0; accent-color: var(--red); }
.victory-cat { display: block; width: 124px; height: 92px; margin: 4px 0 13px; overflow: visible; filter: drop-shadow(4px 5px 0 rgba(37,35,33,.09)); animation: victory-nod 1.8s ease-in-out infinite; }
.victory-eyes, .victory-smile, .victory-rays { fill: none; stroke: var(--ink); stroke-linecap: round; stroke-width: 4; }
.victory-rays { stroke: var(--yellow); stroke-width: 6; }
.victory-blush { fill: var(--red); opacity: .55; }
.victory-crown { fill: var(--yellow); stroke: var(--ink); stroke-linejoin: round; stroke-width: 3; transform-origin: 180px 65px; animation: crown-wiggle 2.4s ease-in-out infinite; }
.code-card { text-align: center; }
.code-card .modal-kicker { margin-bottom: 15px; }
.code-card h2 { margin-bottom: 25px; }
.promo-code { padding: 18px 10px; border: 1px dashed var(--red); border-radius: 5px; background: rgba(243,199,79,.2); color: var(--red-dark); font-family: Georgia, serif; font-size: clamp(25px, 10vw, 32px); letter-spacing: .07em; }
.code-countdown { min-height: 40px; margin: 14px 0 12px !important; color: var(--red-dark) !important; font-size: 12px !important; font-weight: 700; }
.form-status { min-height: 18px; margin: -8px 0 12px !important; color: var(--red-dark) !important; font-size: 12px !important; font-weight: 700; }
.consent a { color: var(--red-dark); }
.secondary-button { margin-top: 3px; border: 1px solid var(--ink); background: transparent; box-shadow: none; color: var(--ink); text-align: center; }
.secondary-button:hover { background: var(--paper-deep); }
.primary-button:disabled, .secondary-button:disabled { cursor: wait; opacity: .55; }
.restart-button { margin-top: 12px; }

@keyframes cat-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes head-breathe { 0%,100% { transform: rotate(0) scale(1); } 50% { transform: rotate(-1deg) scale(1.01,.99); } }
@keyframes curious-look { 0%,100% { transform: rotate(-3deg) translateY(0); } 50% { transform: rotate(-5deg) translateY(-2px); } }
@keyframes blink { 0%,44%,47%,100% { transform: scaleY(1); } 45%,46% { transform: scaleY(.08); } }
@keyframes tail-wag { 0%,100% { transform: rotate(-2deg); } 50% { transform: rotate(7deg); } }
@keyframes quick-tail { 0%,100% { transform: rotate(-3deg); } 40% { transform: rotate(14deg); } 70% { transform: rotate(-9deg); } }
@keyframes twinkle { 0%,100% { opacity: .25; transform: scale(.8) rotate(0); } 50% { opacity: 1; transform: scale(1.15) rotate(15deg); } }
@keyframes tap-bounce { 0%,100% { transform: translateY(0) scale(1); } 42% { transform: translateY(-9px) scale(1.02,.98); } }
@keyframes happy-hop { 0%,100% { transform: translateY(0) rotate(0); } 36% { transform: translateY(-12px) rotate(-2deg); } 68% { transform: translateY(-4px) rotate(2deg); } }
@keyframes head-tilt-left { 0%,100% { transform: rotate(0); } 50% { transform: rotate(-6deg); } }
@keyframes head-tilt-right { 0%,100% { transform: rotate(0); } 50% { transform: rotate(6deg); } }
@keyframes touch-ring { 0% { opacity: .85; transform: scale(.55); } 100% { opacity: 0; transform: scale(2.15); } }
@keyframes prompt-pulse { 0%,100% { opacity: .45; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.15); } }
@keyframes particle-pop { 0% { opacity: 0; transform: translate(0,0) scale(.4) rotate(0); } 20% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--tx),var(--ty)) scale(1.15) rotate(18deg); } }
@keyframes victory-nod { 0%,100% { transform: rotate(-2deg) translateY(0); } 50% { transform: rotate(2deg) translateY(-3px); } }
@keyframes victory-float { 0%,100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-8px) rotate(1deg); } }
@keyframes belly-reveal { 0% { opacity: 0; transform: translateY(9px) scale(.94); } 70% { opacity: 1; transform: translateY(-3px) scale(1.015); } 100% { transform: translateY(0) scale(1); } }
@keyframes belly-tail-swish { 0%,100% { transform: rotate(-3deg); } 50% { transform: rotate(8deg); } }
@keyframes belly-rub { 0%,100% { transform: scale(1); } 45% { transform: scale(1.06,.96); } }
@keyframes scratch-lines { 0%,100% { opacity: .55; transform: translateX(0); } 35% { opacity: 1; transform: translateX(-5px); } 70% { opacity: 1; transform: translateX(5px); } }
@keyframes paw-wave-left { 0%,100% { transform: rotate(0); } 50% { transform: rotate(-8deg); } }
@keyframes paw-wave-right { 0%,100% { transform: rotate(0); } 50% { transform: rotate(8deg); } }
@keyframes pleased-stretch { 0%,100% { transform: translateY(0) scale(1); } 45% { transform: translateY(-3px) scale(1.015,.985); } }
@keyframes hind-kick { 0%,100% { transform: translate(0,0) rotate(0); } 42% { transform: translate(7px,-5px) rotate(11deg); } 72% { transform: translate(2px,-1px) rotate(4deg); } }
@keyframes belly-roll { 0%,100% { transform: rotate(0) translateY(0); } 45% { transform: rotate(-3deg) translateY(-3px); } 72% { transform: rotate(1.5deg) translateY(-1px); } }
@keyframes crown-wiggle { 0%,70%,100% { transform: rotate(0); } 80% { transform: rotate(-5deg); } 90% { transform: rotate(5deg); } }
@keyframes speech-pop { 0% { opacity: .25; transform: rotate(-3deg) translateY(5px) scale(.96); } 100% { opacity: 1; transform: rotate(-3deg) translateY(0) scale(1); } }

@media (min-width: 560px) {
  :root { --edge: 24px; }
  .topbar { min-height: 82px; }
  .topbar-note { display: inline; }
  .cat-stage { width: min(100%, 520px); }
  .thought-bubble { max-width: 200px; }
  .score-card { top: 2px; right: 3%; min-width: 114px; padding: 11px 14px; }
  .score-number { font-size: 30px; }
  .score-label, .score-unit { font-size: 10px; }
  .modal-card { padding: 36px; }
}

@media (min-width: 860px) {
  :root { --edge: 40px; }
  .topbar { min-height: 94px; padding: 18px 0; }
  .game-layout { padding: clamp(26px, 5vh, 54px) 0 42px; }
  .cat-stage { width: min(100%, 570px); margin-top: 8px; }
  .interaction-hint { margin-top: -7px; font-size: 13px; }
  .score-card { top: -10px; right: 1%; }
}

@media (min-width: 580px) and (max-height: 560px) and (orientation: landscape) {
  .topbar { min-height: 58px; padding: 7px 0; }
  .topbar-note { font-size: 11px; }
  .game-layout { padding: 6px 8px calc(12px + env(safe-area-inset-bottom)); }
  .play-column { display: grid; grid-template-columns: minmax(320px, 1fr) 260px; grid-template-rows: repeat(3, auto); column-gap: 22px; width: min(100%, 680px); }
  .cat-stage { grid-column: 1; grid-row: 1 / span 3; width: min(100%, 288px); margin: 0 auto; }
  .score-card { top: -2px; right: -2%; min-width: 92px; padding: 8px 10px; }
  .score-number { font-size: 25px; }
  .thought-bubble { top: 7%; max-width: 128px; padding: 8px 10px; font-size: 11px; }
  .interaction-hint { grid-column: 2; grid-row: 1; align-self: end; min-height: 0; margin: 0 0 12px; font-size: 11px; text-align: left; }
  .quick-progress { grid-column: 2; grid-row: 2; width: 100%; margin-bottom: 12px; }
  .action-prompt { grid-column: 2; grid-row: 3; align-self: start; width: 100%; min-height: 38px; padding: 8px 12px; }
  .overlay { place-items: start center; }
  .modal-card { width: min(100%, 720px); max-height: none; margin: 8px 0; padding: 24px; }
  .finish-card { display: grid; grid-template-columns: .9fr 1.1fr; gap: 0 28px; align-items: start; }
  .finish-card .modal-kicker { grid-column: 1; grid-row: 1; }
  .finish-card h2 { grid-column: 1; grid-row: 2; font-size: 40px; }
  .finish-card .victory-cat { grid-column: 1; grid-row: 3; }
  .finish-card > p { grid-column: 1; grid-row: 4; margin-bottom: 0; }
  .finish-card form { display: grid; grid-column: 2; grid-row: 1 / span 4; grid-template-columns: 1fr 1fr; gap: 0 8px; align-self: center; }
  .finish-card form > label:not(.consent), .finish-card form > input, .finish-card .consent { grid-column: 1 / -1; }
  .finish-card .primary-button { grid-column: 1; grid-row: 6; padding-inline: 12px; font-size: 12px; }
  .finish-card .restart-button { grid-column: 2; grid-row: 6; margin-top: 0; padding-inline: 12px; font-size: 12px; }
  .variety-card { display: grid; grid-template-columns: .9fr 1.1fr; gap: 0 24px; align-items: center; }
  .variety-card .modal-kicker { grid-column: 1; grid-row: 1; align-self: end; }
  .variety-card h2 { grid-column: 1; grid-row: 2; align-self: start; font-size: 36px; }
  .variety-card .variety-copy { grid-column: 1; grid-row: 3 / 5; align-self: start; margin-bottom: 0 !important; }
  .variety-card .flavor-grid { grid-column: 2; grid-row: 1 / 4; width: 100%; margin: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
