/* Lobby, tactile character feedback, and a viewport-sized play surface. */
.training-choice { padding-top: 34px; }
.training-choice .section-heading h2 { font-size: clamp(23px,5.6vw,34px); }
.level-card { position: relative; display: grid; grid-template-columns: 46px 1fr 74px; gap: 10px; align-items: center; padding: 18px 16px; border: 1px solid rgba(182,242,50,.25); border-radius: 25px; background: radial-gradient(circle at 100% 0,rgba(182,242,50,.12),transparent 45%),linear-gradient(135deg,#2d1a43,#1a1225); box-shadow: var(--shadow-clay); }
.level-number { align-self: start; display: grid; place-items: center; height: 45px; border-radius: 15px; background: var(--lime); color: #251537; font: 700 24px var(--font-display); box-shadow: 0 5px 0 #557f15; }
.level-details .kicker { font-size: 8px; letter-spacing: .06em; }
.level-details h3 { margin: 4px 0 6px; font: 700 23px/1 var(--font-display); letter-spacing: -.025em; }
.level-details p { margin: 0 0 8px; color: #dfd6e9; font-size: 13px; line-height: 1.4; }
.level-goal { display: block; color: #b3a5c2; font-size: 10px; line-height: 1.4; font-weight: 800; }
.level-example { display: block; width: 82px; }
.companion-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; padding: 22px 4px 12px; }
.companion-heading strong { font-size: 14px; }.companion-heading > span { color: var(--muted); font-size: 11px; }
.companion-picker { display: grid; grid-template-columns: repeat(3,1fr); gap: 9px; }
.companion-picker button { position: relative; display: grid; justify-items: center; padding: 11px 4px 14px; border: 1px solid var(--line); border-radius: 23px; background: linear-gradient(145deg,#251833,#16101e); transition: border-color .2s, background .2s, box-shadow .2s; }
.companion-picker button[aria-pressed="true"] { border-color: var(--lime); background: radial-gradient(circle at 50% 20%,rgba(182,242,50,.17),transparent 65%),#20172b; box-shadow: inset 0 0 0 1px rgba(182,242,50,.12),0 8px 25px rgba(0,0,0,.25); }
.companion-picker button[aria-pressed="true"]::after { content: "✓"; position: absolute; right: 9px; top: 9px; width: 19px; height: 19px; border-radius: 50%; background: var(--lime); color: #251537; font-size: 12px; font-weight: 900; }
.companion-picker button:hover { border-color: #c793ff; }
.companion-picker .character-sprite { width: min(100%,110px); }
.companion-picker [data-companion-art] { display: block; width: min(100%,110px); aspect-ratio: 1; }
.personal-companions { grid-template-columns: repeat(2,minmax(0,1fr)); }
.personal-companions [data-companion-art] { width: min(100%,190px); }
.personal-companions button { align-content: start; padding: 12px 8px 18px; background: radial-gradient(ellipse at 50% 30%,#3b2451,transparent 70%),linear-gradient(145deg,#251833,#16101e); }
.personal-companions small { font-size: 11px; text-align: center; line-height: 1.4; }
.companion-picker button:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }
.companion-picker strong { margin-top: 7px; font: 700 20px var(--font-display); }.companion-picker small { margin-top: 2px; color: var(--muted); font-size: 10px; }
.play-toolbar, .round-track, .play-hint { display: none; }
.play-rule { display: flex; align-items: center; gap: 8px; min-height: 59px; margin: 9px 0 12px; padding: 4px 13px 5px 4px; border: 1px solid rgba(182,242,50,.17); border-radius: 17px; background: rgba(182,242,50,.045); }
.rule-example { display: block; flex: 0 0 54px; width: 54px; }.play-rule small { display: block; color: var(--lime); font-size: 8px; font-weight: 900; text-transform: uppercase; letter-spacing: .12em; }.play-rule strong { display: block; color: #f8f2ff; font-size: 12px; line-height: 1.3; }
.arena { grid-template-columns: repeat(3,minmax(0,1fr)); grid-template-rows: repeat(3,minmax(0,1fr)); padding: 17px 9px 9px; gap: 10px 2px; touch-action: none; overscroll-behavior: none; }
.arena[data-columns="4"] { grid-template-columns: repeat(4,minmax(0,1fr)); }.arena[data-rows="2"] { grid-template-rows: repeat(2,minmax(0,1fr)); }
.hole { min-height: 44px; min-width: 44px; touch-action: none; border-radius: 17px; overflow: visible; }
.hole { --rim-left:9%;--rim-width:82%;--rim-bottom:6%;--rim-height:20%; }
.hole::after { left:var(--rim-left);bottom:var(--rim-bottom);width:var(--rim-width);height:var(--rim-height);border-radius:50%;background:radial-gradient(ellipse,#030106 30%,#160d21 75%,#362047);box-shadow:0 4px 8px rgba(0,0,0,.7); }
.hole-rim { position:absolute;left:var(--rim-left);right:auto;bottom:var(--rim-bottom);width:var(--rim-width);height:var(--rim-height);border:2px solid #65427e;border-radius:50%;box-shadow:0 0 10px #8b55ac20;transition:box-shadow .16s,border-color .16s; }
.hole.active .hole-rim { border-color: rgba(191,145,233,.8); box-shadow: 0 0 13px rgba(160,93,205,.34),inset 0 0 10px rgba(158,93,203,.25); }
.hole.active .hole-rim::after { content: ""; position: absolute; left: 14%; right: 14%; bottom: -9px; height: 3px; border-radius: 3px; background: #c39beb; transform-origin: left; animation: target-clock var(--target-duration) linear forwards; }
.critter-slot { position: absolute; inset: 0; display: grid; place-items: end center; pointer-events: none; z-index: 2; overflow: hidden; border-radius: 17px; }
.critter { position: relative; display: block; width: min(113px,100%); height: auto; aspect-ratio: 1; opacity: 1; transform: none; pointer-events: none; transition: none; }
.hole.active .critter { opacity: 1; transform: none; animation: critter-enter 260ms cubic-bezier(.18,.75,.3,1.1) both; }
.hole.caught .critter { animation: critter-caught 400ms ease-in both; opacity: 1; transform: none; }
.hole.caught.bad-hit .critter { animation: mouse-victory 660ms ease-in both; }
.hole.escaping .critter { animation: critter-escape 200ms ease-in both; }
.hole[data-type="mouse"]::before { content:"";position:absolute;z-index:3;left:var(--rim-left);bottom:var(--rim-bottom);width:var(--rim-width);height:var(--rim-height);border:2px solid #65427e;border-radius:50%;clip-path:inset(50% 0 0);pointer-events:none; }
.hole.active[data-type="mouse"]::before { border-color:#bf91e9; }
.hole.active .critter .rig-shadow { opacity: 0; }
.firefly::after { top: 43%; }.firefly::before { width: 30px; height: 38px; }
.hit-effects { position: absolute; inset: 0; z-index: 9; pointer-events: none; }
.catch-burst { position: absolute; inset: 0; color: var(--lime); --burst-color: var(--lime); }.catch-burst.is-gold { --burst-color: #ffce5a; }.catch-burst.is-bad { --burst-color: #ff668a; }
.catch-ring { position: absolute; left: 50%; top: 48%; width: 65px; height: 65px; margin: -32px 0 0 -32px; border: 3px solid var(--burst-color); border-radius: 50%; animation: catch-ring 480ms ease-out both; }
.paw-stamp { position: absolute; left: 50%; top: 45%; width: 46px; height: 46px; margin: -23px 0 0 -23px; color: var(--burst-color); filter: drop-shadow(0 0 7px var(--burst-color)); animation: paw-stamp 390ms ease-out both; }.paw-stamp svg { width: 100%; fill: currentColor; }
.catch-spark { position: absolute; width: 7px; height: 7px; top: 48%; left: 50%; border-radius: 3px; background: var(--burst-color); animation: catch-spark 480ms ease-out both; }
.pop-score { top: 25%; font-size: 21px; animation: pop-score 720ms ease-out both; }
.mouse-taunt { position: absolute; top: 9%; left: 5%; right: 5%; color: #d8ff8c; text-align: center; font: 700 16px var(--font-display); text-shadow: 0 2px 5px #070809; animation: mouse-taunt 700ms ease-out both; }
.plague-spore { position: absolute; z-index: 2; left: 62%; top: 48%; width: 22px; height: 22px; border-radius: 50%; background: radial-gradient(circle,#bded54,rgba(124,188,30,.4) 50%,transparent 72%); animation: plague-spore 660ms var(--spore-delay) ease-out both; }
.combo-celebration { position: absolute; z-index: 10; left: 15%; right: 15%; top: 8px; padding: 9px; color: var(--lime); background: rgba(17,10,25,.92); border: 1px solid rgba(182,242,50,.35); border-radius: 99px; opacity: 0; text-align: center; font: 700 16px var(--font-display); pointer-events: none; }

html.game-locked { overflow: hidden; overscroll-behavior: none; scroll-behavior: auto; }
body.is-playing { position: fixed; width: 100%; height: 100%; overflow: hidden; overscroll-behavior: none; }
body.is-playing .topbar,body.is-playing .hero-card,body.is-playing .insights,body.is-playing .bottom-nav,body.is-playing .training-choice { visibility: hidden; }
body.is-playing .game-section { position: fixed; z-index: 30; inset: 0; height: var(--play-height,100dvh); width: 100%; padding: max(8px,env(safe-area-inset-top),var(--tg-content-safe-area-inset-top,0px)) 12px max(10px,env(safe-area-inset-bottom),var(--tg-content-safe-area-inset-bottom,0px)); display: flex; flex-direction: column; gap: 9px; background: radial-gradient(ellipse at 50% 0,#362045,transparent 65%),#0f0918; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; overscroll-behavior: none; }
body.is-playing .game-section > .section-heading { display: none; }
body.is-playing .play-toolbar { display: flex; align-items: center; gap: 7px; width: min(100%,700px); margin: 0 auto; flex: 0 0 63px; }
.play-companion { display: block; width: 64px; flex: 0 0 64px; }
.play-title { flex: 1; min-width: 0; }.play-title strong { display: block; font: 700 20px/1 var(--font-display); letter-spacing: -.025em; }.play-title small { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; line-height: 1.3; }
body.is-playing .game-panel { position: relative; display: flex; flex-direction: column; flex: 1; min-height: 0; width: min(100%,700px); margin: 0 auto; padding: 12px 9px 11px; border-radius: 25px; overflow: hidden; }
body.is-playing .stat-row { flex: 0 0 43px; margin-bottom: 1px; }
body.is-playing .arena-wrap { flex: 1; min-height: 0; border-radius: 21px; }
body.is-playing .play-rule { flex-shrink: 0; margin: 9px 0; }
body.is-playing .round-track { position: absolute; display: block; top: 0; left: 0; right: 0; height: 3px; background: #372243; }.round-track i { display: block; height: 100%; background: linear-gradient(90deg,#b6f232,#ecffb7); transform-origin: left; transition: transform .1s linear; }
body.is-playing .combo-meter { flex: 0 0 30px; padding-top: 10px; }
body.is-playing .play-hint { display: block; margin: 7px 3px 0; color: #b9aaca; text-align: center; font-size: 10px; line-height: 1.35; }
.combo-track i { width: 100%; transform: scaleX(0); transform-origin: left; transition: transform .2s ease-out; }
.countdown-layer { font-size: clamp(64px,20vw,110px); }

.modal { max-height: min(92dvh,850px); overflow-y: auto; overscroll-behavior: contain; }
.modal[open] { animation: modal-enter 240ms cubic-bezier(.2,.8,.3,1) both; }
.modal-note { margin: 0 0 18px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.result-modal { padding-top: 19px; }.result-modal .modal-close { z-index: 5; }.result-modal h2 { margin: 5px 0 10px; }
.result-cat { position: relative; z-index: 1; display: block; width: 99px; margin: -2px auto 5px; }
.result-message { margin: 0 auto 18px; max-width: 340px; color: #cfbfdc; font-size: 13px; line-height: 1.45; }
.result-score { margin: 0 0 17px; }.result-score strong { font-size: 64px; }
.result-stats { margin-bottom: 14px; }.result-stats div { padding: 10px; }.result-stats strong { font-size: 20px; }
.result-progress { position: relative; margin: 0 0 15px; padding: 10px 12px; border-radius: 14px; color: var(--lime); background: rgba(182,242,50,.07); font-size: 12px; line-height: 1.4; font-weight: 800; }
.result-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; padding-bottom: 4px; }.result-actions .text-button { flex: 1; margin-top: 0; min-height: 46px; }.result-actions .text-button:first-child { color: var(--ink); border: 1px solid var(--line); border-radius: 13px; }
.result-confetti { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }.result-confetti i { position: absolute; top: -12px; left: var(--x); width: 6px; height: 10px; border-radius: 2px; background: var(--color); animation: confetti 1600ms var(--delay) ease-out both; }
.pause-modal { text-align: center; }.pause-cat { display: block; width: 130px; margin: 0 auto 8px; }.pause-modal h2 { margin: 7px 0 12px; }.pause-modal .primary-button { width: 100%; }
.levels-list { display: grid; gap: 7px; }.level-option { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 9px; min-height: 65px; padding: 10px; border: 1px solid var(--line); border-radius: 15px; text-align: left; background: rgba(255,255,255,.035); }.level-option[aria-pressed="true"] { border-color: var(--lime); }.level-option > span { color: var(--lime); font: 700 19px var(--font-display); }.level-option div strong { display: block; font-size: 14px; }.level-option small { display: block; margin-top: 3px; color: #b8a9c6; font-size: 10px; line-height: 1.3; }.level-option b { color: var(--lime); font-size: 9px; }.level-option:disabled { opacity: .55; cursor: default; }.level-option:disabled > span,.level-option:disabled b { color: var(--muted); }
.pet-room { position: relative; height: 210px; overflow: hidden; border: 1px solid rgba(182,242,50,.13); border-radius: 23px; background: radial-gradient(ellipse at 50% 80%,#41314e,#151020 70%); }.pet-room::before { content: ""; position: absolute; inset: 48% -10% 0; background: repeating-linear-gradient(0deg,transparent 0 27px,rgba(255,255,255,.04) 28px 29px),repeating-linear-gradient(90deg,transparent 0 33px,rgba(255,255,255,.04) 34px 35px); transform: perspective(160px) rotateX(24deg); }.pet-runner { position: absolute; width: 122px; height: 122px; left: calc(50% - 61px); top: 43px; }.pet-room-caption { position: absolute; bottom: 12px; width: 100%; color: var(--muted); text-align: center; font-size: 10px; }
.direction-controls { display: flex; justify-content: center; gap: 9px; margin: 12px 0 16px; }.direction-controls button { width: 46px; height: 44px; border: 1px solid var(--line); border-radius: 13px; color: var(--lime); background: #2b1d3b; font-size: 24px; }.direction-controls button:hover { border-color: var(--lime); }
.toast { z-index: 60; }
.bottom-nav { grid-template-columns: repeat(4,1fr); gap: 4px; }
.result-ranking { margin: 0 0 18px; font-size: 11px; line-height: 1.4; color: var(--muted); }
.ranking-retry { margin: 0 0 16px; }
[hidden] { display: none !important; }

/* Native-app shell: chrome never scrolls; each page owns its content. */
html { height: 100%; overflow: hidden; overscroll-behavior: none; scroll-behavior: auto; touch-action: pan-y; }
body { position: fixed; inset: 0; height: var(--app-height,100dvh); min-height: 0; overflow: hidden; overscroll-behavior: none; touch-action: pan-y; }
.app-shell { display: flex; flex-direction: column; height: 100%; width: min(100%,820px); padding: 0; overflow: hidden; }
.topbar { flex: 0 0 auto; margin: 0; padding: max(12px,env(safe-area-inset-top),var(--tg-content-safe-area-inset-top,0px)) 18px 12px; background: rgba(16,9,25,.96); border-bottom: 1px solid rgba(255,255,255,.05); }
.screen-content { flex: 1; min-height: 0; overflow: hidden; }
.screen-content > [data-screen]:focus-visible { outline: 2px solid var(--lime); outline-offset: -3px; }
.screen-content > [data-screen] { height: 100%; min-height: 0; max-width: none; margin: 0; padding: 16px 18px 24px; overflow-x: hidden; overflow-y: auto; overscroll-behavior: none; touch-action: pan-y; scrollbar-width: thin; scrollbar-color: #544064 transparent; scroll-behavior: auto; scroll-padding: 16px; }
.screen-content > .hunt-page { display: flex; flex-direction: column; gap: 16px; }
.hunt-page .hero-card { flex: 1 0 340px; min-height: 340px; padding: 22px 20px 72px; border-radius: 28px; }
.hunt-page .hero-copy h1 { font-size: clamp(40px,11vw,58px); margin: 12px 0; }
.hunt-page .hero-copy > p { max-width: 290px; font-size: 14px; margin-bottom: 14px; }
.hunt-page .hero-meta { display: none; }
.hunt-page .hero-art { width: min(92%,460px); right: -23%; bottom: -10%; }
.hunt-page .hero-progress { padding: 10px 12px; bottom: 14px; left: 14px; right: 14px; }
.hunt-page .training-choice { flex: 0 0 auto; padding: 0; }
.hunt-page .section-heading { margin-bottom: 12px; align-items: center; }
.hunt-page .section-heading .kicker { display: none; }
.hunt-page .section-heading h2 { margin: 0; font-size: 22px; }
.hunt-page .level-card { padding: 14px 12px; border-radius: 21px; }
.hunt-page .level-goal { font-size: 12px; }
.screen-content > .page-card { border: 0; border-radius: 0; background: none; box-shadow: none; }
.profile-page .companion-picker { margin-bottom: 24px; }
.bottom-nav { position: relative; flex: 0 0 auto; inset: auto; width: 100%; transform: none; min-height: 78px; padding: 8px 12px max(8px,env(safe-area-inset-bottom),var(--tg-content-safe-area-inset-bottom,0px)); border-width: 1px 0 0; border-radius: 0; background: #140d1e; box-shadow: 0 -10px 30px rgba(0,0,0,.18); backdrop-filter: none; }
.nav-item { min-height: 58px; font-size: 11px; }
input, select, textarea, .ranking-filter select { font-size: 16px; }
.modal { touch-action: pan-y; overscroll-behavior: none; }
body.is-playing [data-screen] { visibility: hidden; }
@media (min-width:680px) {
  .app-shell { padding: 0; }
  .screen-content > [data-screen] { padding: 22px 28px 28px; }
  .screen-content > .hunt-page { display: flex; flex-direction: column; }
  .hunt-page .hero-card { min-height: 360px; padding: 28px 24px 76px; }
  .hunt-page .hero-art { width: min(88%,650px); right: -8%; bottom: -12%; }
  .hunt-page .level-card { grid-template-columns: 44px minmax(0,1fr) 90px; padding: 18px; }
  .hunt-page .level-example { width: 90px; }
  .hunt-page .level-number { height: 44px; font-size: 25px; }
  .hunt-page .level-details h3 { font-size: 26px; }
  .bottom-nav { left: auto; right: auto; width: 100%; transform: none; }
}
@media (max-height:670px) and (max-width:679px) {
  .topbar { padding-block: max(8px,env(safe-area-inset-top)); }
  .screen-content > [data-screen] { padding: 12px 14px 16px; }
  .screen-content > .hunt-page { gap: 12px; }
  .hunt-page .hero-card { flex-basis: 260px; min-height: 260px; padding: 18px 16px 65px; }
  .hunt-page .hero-copy h1 { font-size: 40px; margin: 10px 0; }
  .hunt-page .eyebrow { padding: 6px 9px; font-size: 9px; }
  .hunt-page .hero-copy > p { font-size: 13px; max-width: 270px; margin-bottom: 12px; }
  .hunt-page .hero-copy > p { display: none; }
  .hunt-page .hero-meta { display: none; }
  .hunt-page .hero-art { width: 84%; bottom: -17%; right: -17%; }
  .hunt-page .section-heading h2 { font-size: 20px; }
  .bottom-nav { min-height: 70px; }
  .nav-item { min-height: 50px; }
}
.ranking-modal { text-align: left; }
.ranking-modal h2 { margin: 8px 0 12px; }
.ranking-period { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-bottom: 16px; }
.ranking-period button { min-height: 46px; border: 1px solid var(--line); border-radius: 14px; background: #24182f; font-weight: 800; font-size: 13px; }
.ranking-period button[aria-pressed="true"] { border-color: var(--lime); color: var(--lime); background: #2b3021; }
.ranking-filter { display: grid; gap: 6px; color: #cfbfdc; font-size: 12px; font-weight: 800; }
.ranking-filter select { width: 100%; min-height: 46px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 13px; color: var(--ink); background: #24182f; font: inherit; font-size: 16px; }
.ranking-caption { display: flex; align-items: center; justify-content: space-between; margin: 12px 0 4px; color: var(--muted); font-size: 12px; }
.ranking-caption .text-button { margin: 0; font-size: 12px; }
.ranking-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ranking-row { display: grid; grid-template-columns: 32px 1fr auto; gap: 9px; align-items: center; padding: 14px 12px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.03); }
.ranking-row.is-you { border-color: rgba(182,242,50,.6); background: rgba(182,242,50,.06); }
.ranking-place { color: #e4c19a; text-align: center; font: 700 20px var(--font-display); }
.ranking-row div { min-width: 0; }.ranking-row strong { display: block; overflow-wrap: anywhere; font-size: 14px; }.ranking-row small { display: block; margin-top: 4px; font-size: 10px; color: var(--muted); }.ranking-row b { color: var(--lime); font: 700 25px var(--font-display); }
.ranking-state { padding: 25px 18px; border-radius: 17px; border: 1px dashed var(--line); color: #d3c4df; text-align: center; font-size: 13px; line-height: 1.5; }
.ranking-me { padding: 12px; border-radius: 13px; color: var(--lime); background: rgba(182,242,50,.07); font-weight: 800; font-size: 13px; }
.ranking-membership { margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--line); }.ranking-membership p { color: #cbbbd8; font-size: 12px; line-height: 1.5; }.ranking-membership .secondary-button { width: 100%; min-height: 48px; }.ranking-membership .text-button { margin-top: 0; }
.ranking-footnote { color: var(--muted); font-size: 10px; line-height: 1.55; margin: 16px 0 0; }
.page-card { max-width: 700px; margin: 28px auto 0; padding: 24px 20px; border: 1px solid var(--line); border-radius: 28px; background: linear-gradient(145deg,#261937,#171021); box-shadow: var(--shadow-clay); }
.page-card h2 { font: 700 clamp(29px,7vw,40px)/1.1 var(--font-display); letter-spacing: -.03em; margin: 9px 0 18px; }
.insights { max-width: 800px; margin: 0 auto; padding-top: 16px; }
.trail-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }.trail-summary > div { display: grid; gap: 4px; padding: 18px; border: 1px solid var(--line); border-radius: 20px; background: #20162d; }.trail-summary small { color: var(--muted); }.trail-summary strong { font:700 29px var(--font-display); color: var(--lime); }
.cloud-status { font-size: 11px; color: var(--muted); line-height: 1.5; margin: 18px 0; }
.trail-history-title { margin: 26px 0 14px; font: 700 24px var(--font-display); }
.trail-history { display: grid; gap: 10px; padding: 0; list-style: none; }.trail-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px; background: #20162d; border: 1px solid var(--line); border-radius: 17px; }.trail-row strong,.trail-row small { display: block; }.trail-row strong { font-size: 14px; }.trail-row small { margin-top: 5px; color: var(--muted); font-size: 10px; }.trail-row b { color: var(--lime); font: 700 27px var(--font-display); }

@keyframes target-clock { to { transform: scaleX(0); } }
@keyframes critter-enter { 0% { opacity: 1; transform: translateY(84%) scale(.88,.94); filter: brightness(.2) saturate(.6); } 45% { filter: brightness(.7); } 76% { transform: translateY(-2%) scale(.99,1.02); filter: brightness(1); } 100% { transform: none; filter: none; } }
@keyframes critter-caught { 0% { transform: none; } 23% { transform: translateY(-9%) rotate(-6deg); } 100% { opacity: 0; transform: translateY(70%) scale(.72) rotate(10deg); filter: brightness(.35); } }
@keyframes mouse-victory { 0%,65% { opacity: 1; transform: none; } 100% { opacity: 1; transform: translateY(86%) scale(.88); filter: brightness(.18); } }
@keyframes mouse-taunt { 0% { opacity: 0; transform: translateY(8px) scale(.7); } 22%,65% { opacity: 1; transform: translateY(0) scale(1); } 100% { opacity: 0; transform: translateY(-15px); } }
@keyframes plague-spore { 0% { opacity: 0; transform: translate(0,0) scale(.25); } 20% { opacity: .8; } 100% { opacity: 0; transform: translate(var(--spore-x),-44px) scale(2); } }
@keyframes critter-escape { 0% { opacity: 1; filter: brightness(1); } 100% { opacity: 1; transform: translateY(86%) scale(.9,.95); filter: brightness(.15); } }
@keyframes catch-ring { 0% { transform: scale(.2); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }
@keyframes paw-stamp { 0% { transform: rotate(-20deg) scale(.3); opacity: 0; } 30% { transform: rotate(-8deg) scale(1.15); opacity: 1; } 100% { transform: rotate(8deg) scale(.9); opacity: 0; } }
@keyframes catch-spark { 0% { transform: rotate(var(--angle)) translateX(8px) scale(.8); opacity: 1; } 100% { transform: rotate(var(--angle)) translateX(var(--distance)) scale(.15); opacity: 0; } }
@keyframes modal-enter { from { opacity: 0; transform: translateY(16px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes confetti { 0% { opacity: 0; transform: translateY(0) rotate(0); } 10% { opacity: 1; } 100% { opacity: 0; transform: translateY(310px) rotate(var(--turn)); } }

@media (min-width:680px) { .level-card { grid-template-columns: 64px 1fr 140px; padding: 24px; }.level-number { height: 64px; font-size: 35px; }.level-example { width: 120px; }.level-details h3 { font-size: 32px; }.level-details p { font-size: 16px; }.level-details .kicker { font-size: 11px; }.companion-picker .character-sprite { width: 140px; }.companion-picker strong { font-size: 23px; }.companion-picker small { font-size: 12px; }.game-panel .critter { width: min(132px,100%); } }
@media (max-width:420px) { .topbar { gap: 8px; }.level-copy small { display: none; }.profile-chip { padding-right: 7px; } }
@media (max-width:380px) { .topbar { gap: 7px; }.topbar-actions { gap: 6px; }.level-card { grid-template-columns: 37px 1fr 60px; padding: 15px 10px; gap: 8px; }.level-number { height: 37px; font-size: 21px; }.level-details h3 { font-size: 21px; }.level-example { width: 65px; }.play-title strong { font-size: 17px; }.play-companion { width: 54px; flex-basis: 54px; }.modal { padding-inline: 17px; } }
@media (max-height:670px) { body.is-playing .play-toolbar { flex-basis: 48px; }.play-companion { width: 49px; flex-basis: 49px; }body.is-playing .game-section { gap: 6px; padding-top: max(5px,env(safe-area-inset-top),var(--tg-content-safe-area-inset-top,0px)); }body.is-playing .play-rule { min-height: 47px; margin: 6px 0; }.rule-example { width: 42px; flex-basis: 42px; }body.is-playing .play-hint { display: none; }.result-cat { width: 68px; }.result-modal .result-message { margin-bottom: 12px; font-size: 12px; }.result-score strong { font-size: 47px; }.result-modal h2 { font-size: 27px; } }
@media (max-height:480px) { body.is-playing .game-section { padding-inline: max(9px,env(safe-area-inset-left)); }body.is-playing .play-toolbar { flex-basis: 42px; }.play-title strong { font-size: 17px; }.play-title small { font-size: 9px; }body.is-playing .game-panel { padding: 8px; }body.is-playing .stat-row { flex-basis: 34px; }.stat-icon { display: none; }.stat-pill strong { font-size: 19px; }.timer-pill { min-height: 32px; }body.is-playing .play-rule { min-height: 34px; margin: 6px 0; }.rule-example { width: 35px; flex-basis: 35px; }.play-rule strong { font-size: 11px; }body.is-playing .combo-meter { flex-basis: 23px; padding-top: 7px; }.arena { padding: 5px 10px; gap: 3px; }.game-panel .critter { width: min(88px,100%); } }
@media (prefers-reduced-motion:reduce) { *,*::before,*::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }.hole.active .critter { opacity: 1; transform: none; }.result-confetti { display: none; } }
