:root {
  --bg: #07111b;
  --bg-soft: #0b1724;
  --panel: rgba(10, 23, 36, .76);
  --line: rgba(255,255,255,.10);
  --text: #f8fbff;
  --muted: #93a5b7;
  --lime: #c9ff43;
  --cyan: #55e8ff;
  --orange: #ff8a3d;
  --red: #ff5e6c;
  --green: #71f7a5;
  --shadow: 0 24px 80px rgba(0,0,0,.34);
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body {
  margin: 0;
  min-height: 100svh;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 10%, rgba(85,232,255,.08), transparent 34%),
    radial-gradient(circle at 88% 18%, rgba(201,255,67,.08), transparent 32%),
    linear-gradient(160deg, #07111b 0%, #081622 45%, #061019 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
button, input { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }

.bg-orb { position: fixed; width: 48vw; height: 48vw; border-radius: 50%; filter: blur(100px); opacity: .14; pointer-events: none; }
.orb-a { background: var(--cyan); top: -20vw; left: -15vw; }
.orb-b { background: var(--lime); right: -22vw; bottom: -22vw; }
.noise { position: fixed; inset: 0; opacity: .025; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.86' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.9'/%3E%3C/svg%3E"); }

.app-shell { width: min(1180px, 100%); min-height: 100svh; margin: 0 auto; padding: 18px clamp(16px, 4vw, 36px) 34px; position: relative; z-index: 1; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 62px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: inherit; text-decoration: none; }
.brand-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 13px; font-size: 20px; background: linear-gradient(135deg, rgba(201,255,67,.18), rgba(85,232,255,.14)); border: 1px solid var(--line); }
.brand strong { display: block; font-size: 18px; letter-spacing: -.02em; }
.brand small { display: block; color: var(--muted); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; margin-top: 2px; }

.mode-switch { display: flex; gap: 5px; padding: 5px; border-radius: 14px; background: rgba(255,255,255,.045); border: 1px solid var(--line); }
.mode-btn { border: 0; padding: 9px 12px; border-radius: 10px; color: var(--muted); background: transparent; cursor: pointer; font-weight: 800; font-size: 12px; }
.mode-btn.active { color: #07111b; background: var(--lime); box-shadow: 0 8px 20px rgba(201,255,67,.18); }

.screen { display: none; min-height: calc(100svh - 100px); animation: screenIn .35s ease both; }
.screen.active { display: flex; }
@keyframes screenIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.hero-grid { flex: 1; display: grid; grid-template-columns: 1.06fr .94fr; gap: 70px; align-items: center; padding: clamp(44px, 8vh, 86px) 0 46px; }
.eyebrow { color: var(--lime); font-size: 11px; letter-spacing: .18em; font-weight: 900; text-transform: uppercase; }
.hero-copy h1 { margin: 14px 0 18px; font-size: clamp(54px, 7vw, 92px); line-height: .92; letter-spacing: -.068em; max-width: 760px; }
.hero-copy h1 span, .result-card h2 span { background: linear-gradient(90deg, var(--lime), var(--cyan)); -webkit-background-clip: text; color: transparent; }
.hero-copy p { color: #b5c2cf; font-size: clamp(16px, 1.8vw, 19px); line-height: 1.65; max-width: 650px; }
.hero-copy p b { color: var(--text); }
.hero-actions { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.btn { border: 1px solid var(--line); min-height: 48px; border-radius: 15px; padding: 0 18px; font-weight: 900; cursor: pointer; transition: transform .15s ease, opacity .15s ease, border-color .15s ease; }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.primary { color: #07111b; border-color: transparent; background: linear-gradient(135deg, var(--lime), #a9ff42); box-shadow: 0 12px 32px rgba(201,255,67,.17); }
.btn.primary span { margin-left: 8px; }
.btn.secondary { color: var(--text); background: rgba(255,255,255,.045); }
.btn.secondary:hover { border-color: rgba(255,255,255,.22); }
.btn.full { width: 100%; }
.btn.big { min-height: 56px; padding: 0 24px; }

.mini-stats { display: flex; gap: 34px; margin-top: 40px; }
.mini-stats div { display: flex; flex-direction: column; gap: 2px; }
.mini-stats strong { font-size: 24px; }
.mini-stats span { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }

.hero-preview { position: relative; min-height: 520px; display: grid; place-items: center; }
.preview-glow { position: absolute; width: 320px; height: 320px; border-radius: 50%; background: var(--lime); filter: blur(90px); opacity: .11; }
.preview-card { position: absolute; width: min(360px, 78vw); aspect-ratio: .73; border-radius: 30px; border: 1px solid rgba(255,255,255,.18); box-shadow: var(--shadow); }
.preview-card.back-one { transform: rotate(-8deg) translate(-38px, 8px); background: #163451; opacity: .55; display: grid; place-items: center; font-size: 80px; }
.preview-card.back-two { transform: rotate(7deg) translate(40px, 5px); background: #1f453e; opacity: .75; display: grid; place-items: center; font-size: 80px; }
.main-preview { position: relative; overflow: hidden; padding: 22px; background: linear-gradient(155deg, #f4ffae 0%, #c9ff43 52%, #73f5b2 100%); color: #07111b; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.preview-top { position: absolute; top: 20px; left: 20px; right: 20px; display: flex; justify-content: space-between; font-size: 10px; font-weight: 900; letter-spacing: .15em; }
.preview-emoji { font-size: 112px; filter: drop-shadow(0 10px 16px rgba(0,0,0,.12)); }
.preview-name { font-size: 50px; font-weight: 1000; letter-spacing: -.05em; }
.preview-hint { margin-top: 10px; font-size: 13px; font-weight: 700; opacity: .66; }
.preview-label { position: absolute; z-index: 4; padding: 9px 13px; border-radius: 999px; font-weight: 900; font-size: 11px; backdrop-filter: blur(16px); border: 1px solid var(--line); background: rgba(7,17,27,.74); }
.preview-label.correct { right: 0; top: 29%; color: var(--lime); }
.preview-label.pass { left: 4px; bottom: 23%; color: var(--orange); }

.glass { background: linear-gradient(145deg, rgba(15,30,45,.86), rgba(6,18,29,.76)); backdrop-filter: blur(24px); border: 1px solid var(--line); box-shadow: var(--shadow); }
#setupScreen { align-items: center; justify-content: center; padding: 30px 0; }
.setup-card { width: min(920px, 100%); border-radius: 28px; padding: clamp(20px, 4vw, 34px); }
.back-btn { color: var(--muted); background: transparent; border: 0; cursor: pointer; font-weight: 800; padding: 4px 0 20px; }
.setup-head { display: flex; gap: 16px; align-items: flex-start; }
.setup-icon { width: 54px; height: 54px; flex: 0 0 54px; display: grid; place-items: center; font-size: 26px; border-radius: 16px; background: rgba(201,255,67,.1); border: 1px solid rgba(201,255,67,.18); }
.setup-head h2, .result-card h2 { margin: 5px 0 6px; font-size: clamp(30px, 5vw, 46px); letter-spacing: -.05em; }
.setup-head p { color: var(--muted); margin: 0; }
.setup-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 28px; }
.setup-block { min-height: 190px; padding: 18px; border-radius: 20px; background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.075); }
.setup-block p { color: var(--muted); font-size: 13px; line-height: 1.55; }
.block-title { display: flex; align-items: center; gap: 9px; font-weight: 900; font-size: 14px; }
.block-title > span { width: 25px; height: 25px; border-radius: 8px; display: grid; place-items: center; background: rgba(201,255,67,.12); color: var(--lime); }
.status-chip { margin-top: 10px; display: inline-flex; gap: 8px; align-items: center; color: var(--muted); font-size: 12px; }
.status-chip i { width: 8px; height: 8px; border-radius: 50%; background: #677483; }
.status-chip.live i { background: var(--green); box-shadow: 0 0 12px rgba(113,247,165,.7); }
.status-chip.warn i { background: var(--orange); }
.sensor-readout { margin-top: 11px; display: flex; align-items: baseline; justify-content: space-between; color: var(--muted); font-size: 12px; }
.sensor-readout strong { color: var(--cyan); font-size: 22px; }
.duration-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 26px; }
.duration-btn { height: 46px; border-radius: 13px; border: 1px solid var(--line); background: rgba(255,255,255,.035); color: var(--muted); font-weight: 900; cursor: pointer; }
.duration-btn.active { background: var(--lime); color: #07111b; border-color: transparent; }
.range-head { margin-top: 24px; display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.range-head strong { color: var(--text); }
input[type="range"] { width: 100%; accent-color: var(--lime); margin-top: 14px; }
.switch-row { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; color: var(--muted); font-size: 12px; }
.toggle { width: 44px; height: 24px; position: relative; }
.toggle input { opacity: 0; position: absolute; }
.toggle span { position: absolute; inset: 0; border-radius: 99px; background: #293744; cursor: pointer; transition: .2s; }
.toggle span::after { content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%; top: 3px; left: 3px; background: #fff; transition: .2s; }
.toggle input:checked + span { background: var(--lime); }
.toggle input:checked + span::after { transform: translateX(20px); background: #07111b; }
.setup-actions { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 24px; }
.setup-actions p { color: var(--muted); font-size: 12px; margin: 0; }
.key-pair { display: grid; grid-template-columns: 42px 1fr 42px 1fr; gap: 8px; align-items: center; margin-top: 24px; color: var(--muted); font-size: 12px; }
kbd { min-width: 38px; height: 38px; display: inline-grid; place-items: center; border-radius: 10px; color: var(--text); background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.13); box-shadow: inset 0 -3px 0 rgba(0,0,0,.18); }

#countdownScreen { align-items: center; justify-content: center; text-align: center; }
.countdown-sub { font-size: 12px; color: var(--muted); font-weight: 900; letter-spacing: .25em; }
.countdown-number { font-size: min(46vw, 290px); font-weight: 1000; line-height: .9; letter-spacing: -.08em; background: linear-gradient(160deg, var(--lime), var(--cyan)); -webkit-background-clip: text; color: transparent; filter: drop-shadow(0 25px 60px rgba(201,255,67,.14)); }
.countdown-hint { margin-top: 16px; color: #b9c6d2; font-weight: 800; }

.game-screen { position: relative; flex-direction: column; align-items: center; justify-content: center; min-height: calc(100svh - 86px); padding: 12px 0 20px; }
.game-topbar { width: min(720px, 100%); display: grid; grid-template-columns: 1fr 110px 1fr; align-items: center; margin-bottom: 16px; }
.score-pill, .pass-pill { display: inline-flex; align-items: center; gap: 10px; justify-self: start; padding: 9px 14px; min-width: 120px; border-radius: 15px; background: rgba(255,255,255,.045); border: 1px solid var(--line); }
.pass-pill { justify-self: end; }
.score-pill > span { color: var(--green); font-size: 19px; }
.pass-pill > span { color: var(--orange); font-size: 19px; }
.score-pill small, .pass-pill small { display: block; color: var(--muted); font-size: 8px; letter-spacing: .16em; }
.score-pill strong, .pass-pill strong { display: block; font-size: 20px; line-height: 1; margin-top: 3px; }
.timer-wrap { width: 86px; height: 86px; justify-self: center; position: relative; }
.timer-ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.timer-ring circle { fill: none; stroke-width: 7; }
.timer-track { stroke: rgba(255,255,255,.08); }
.timer-progress { stroke: var(--lime); stroke-linecap: round; stroke-dasharray: 276.46; stroke-dashoffset: 0; transition: stroke-dashoffset .2s linear, stroke .2s; }
.timer-text { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.timer-text strong { font-size: 25px; line-height: .9; }
.timer-text small { color: var(--muted); font-size: 8px; letter-spacing: .1em; }

.animal-card { width: min(620px, calc(100vw - 32px)); height: min(58svh, 520px); min-height: 390px; position: relative; overflow: hidden; border-radius: clamp(24px, 4vw, 38px); background: linear-gradient(145deg, #ecff88 0%, #c9ff43 52%, #78f0aa 100%); color: #07111b; box-shadow: 0 30px 100px rgba(0,0,0,.42), 0 0 0 1px rgba(255,255,255,.16); display: flex; flex-direction: column; align-items: center; justify-content: center; transform-origin: center; }
.card-noise { position: absolute; inset: 0; opacity: .06; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.card-top { position: absolute; top: 22px; left: 24px; right: 24px; display: flex; justify-content: space-between; font-size: 10px; font-weight: 1000; letter-spacing: .18em; opacity: .66; }
.animal-emoji { font-size: clamp(86px, 18vw, 150px); line-height: 1; filter: drop-shadow(0 14px 18px rgba(0,0,0,.12)); transform: translateZ(0); }
.animal-name { margin-top: 10px; font-size: clamp(44px, 10vw, 82px); font-weight: 1000; letter-spacing: -.065em; line-height: .95; text-align: center; padding: 0 22px; }
.animal-hint { margin-top: 14px; max-width: 72%; text-align: center; font-size: clamp(12px, 2.4vw, 15px); font-weight: 800; opacity: .62; }
.card-footer { position: absolute; bottom: 20px; left: 22px; right: 22px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; font-size: 10px; font-weight: 1000; letter-spacing: .1em; opacity: .54; }
.card-footer span:last-child { text-align: right; }
.card-footer span:nth-child(2) { opacity: .55; }
.animal-card.next-right { animation: cardCorrect .36s cubic-bezier(.2,.8,.2,1); }
.animal-card.next-left { animation: cardPass .36s cubic-bezier(.2,.8,.2,1); }
@keyframes cardCorrect { 0% { transform: rotate(0) translateY(0); opacity: 1; } 45% { transform: rotate(7deg) translate(38px, 44px) scale(.97); opacity: .1; } 46% { transform: rotate(-4deg) translate(-34px,-20px) scale(.97); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes cardPass { 0% { transform: rotate(0) translateY(0); opacity: 1; } 45% { transform: rotate(-7deg) translate(-38px, -34px) scale(.97); opacity: .1; } 46% { transform: rotate(4deg) translate(34px,20px) scale(.97); opacity: 0; } 100% { transform: none; opacity: 1; } }
.action-flash { position: absolute; inset: 50% auto auto 50%; transform: translate(-50%,-50%); pointer-events: none; z-index: 8; padding: 13px 18px; border-radius: 999px; font-size: 14px; font-weight: 1000; opacity: 0; }
.action-flash.show-correct { animation: flashPop .6s ease; background: rgba(7,17,27,.9); color: var(--lime); }
.action-flash.show-pass { animation: flashPop .6s ease; background: rgba(7,17,27,.9); color: var(--orange); }
@keyframes flashPop { 0% { opacity: 0; transform: translate(-50%,-30%) scale(.7); } 25%,65% { opacity: 1; transform: translate(-50%,-50%) scale(1); } 100% { opacity: 0; transform: translate(-50%,-60%) scale(.92); } }
.game-bottom { margin-top: 12px; color: var(--muted); font-size: 11px; font-weight: 800; display: flex; gap: 7px; align-items: center; }
.neutral-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
.neutral-dot.ready { background: var(--green); box-shadow: 0 0 10px rgba(113,247,165,.6); }
.pause-btn { position: fixed; right: max(18px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); width: 48px; height: 48px; border-radius: 16px; border: 1px solid var(--line); color: var(--text); background: rgba(7,17,27,.78); backdrop-filter: blur(18px); cursor: pointer; font-weight: 900; }

#resultScreen { align-items: center; justify-content: center; padding: 28px 0; }
.result-card { width: min(760px, 100%); border-radius: 30px; padding: clamp(24px, 5vw, 42px); text-align: center; }
.result-emoji { font-size: 58px; margin-bottom: 12px; }
.result-card > p { color: var(--muted); }
.result-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-top: 24px; }
.result-stats div { padding: 16px 10px; border-radius: 18px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.07); }
.result-stats small { display: block; color: var(--muted); font-size: 9px; letter-spacing: .13em; }
.result-stats strong { display: block; margin-top: 5px; font-size: 30px; }
.round-list { margin: 22px 0; max-height: 230px; overflow: auto; border-radius: 18px; border: 1px solid rgba(255,255,255,.07); }
.round-row { display: grid; grid-template-columns: 40px 1fr auto; gap: 10px; align-items: center; padding: 11px 14px; text-align: left; background: rgba(255,255,255,.025); border-bottom: 1px solid rgba(255,255,255,.055); }
.round-row:last-child { border-bottom: 0; }
.round-row .emoji { font-size: 24px; }
.round-row strong { font-size: 13px; }
.round-row small { color: var(--muted); font-size: 10px; }
.round-row .tag { padding: 5px 8px; border-radius: 999px; font-size: 9px; font-weight: 900; }
.tag.correct { color: #07111b; background: var(--green); }
.tag.pass { color: #07111b; background: var(--orange); }
.result-actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }

.how-dialog { width: min(620px, calc(100vw - 26px)); color: var(--text); border: 1px solid var(--line); border-radius: 28px; padding: 28px; background: rgba(7,17,27,.96); box-shadow: var(--shadow); backdrop-filter: blur(24px); }
.how-dialog::backdrop { background: rgba(0,0,0,.65); backdrop-filter: blur(8px); }
.dialog-close { position: absolute; right: 16px; top: 14px; border: 0; color: var(--muted); background: transparent; font-size: 30px; cursor: pointer; }
.dialog-icon { font-size: 44px; }
.how-dialog h2 { margin: 6px 0 18px; font-size: 32px; letter-spacing: -.04em; }
.how-steps { display: grid; gap: 10px; margin-bottom: 20px; }
.how-steps > div { display: grid; grid-template-columns: 38px 1fr; gap: 11px; align-items: start; padding: 12px; border-radius: 16px; background: rgba(255,255,255,.035); }
.how-steps b { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; background: rgba(201,255,67,.12); color: var(--lime); }
.how-steps span { color: var(--muted); font-size: 12px; line-height: 1.5; }
.how-steps strong { display: block; color: var(--text); font-size: 13px; margin-bottom: 2px; }

.pause-overlay { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; background: rgba(2,8,13,.7); backdrop-filter: blur(16px); padding: 18px; }
.pause-overlay[hidden] { display: none !important; }
.pause-card { width: min(360px, 100%); border-radius: 24px; padding: 26px; text-align: center; }
.pause-icon { font-size: 42px; }
.pause-card h2 { font-size: 30px; margin: 8px 0 4px; }
.pause-card p { color: var(--muted); }
.pause-card .btn + .btn { margin-top: 8px; }

.toast { position: fixed; left: 50%; bottom: max(22px, env(safe-area-inset-bottom)); transform: translate(-50%, 20px); z-index: 90; max-width: calc(100vw - 30px); padding: 11px 15px; border-radius: 999px; color: var(--text); background: rgba(7,17,27,.94); border: 1px solid var(--line); font-size: 12px; font-weight: 800; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: .2s ease; }
.toast.show { opacity: 1; transform: translate(-50%,0); }
.confetti-canvas { position: fixed; inset: 0; z-index: 80; pointer-events: none; width: 100%; height: 100%; }

.laptop-only { display: none !important; }
body[data-mode="laptop"] .phone-only { display: none !important; }
body[data-mode="laptop"] .laptop-only { display: flex !important; }
body[data-mode="laptop"] .block-title .laptop-only { display: grid !important; }
body[data-mode="laptop"] .countdown-hint.laptop-only { display: block !important; }
body[data-mode="laptop"] .card-footer.laptop-only { display: grid !important; }
body[data-mode="laptop"] .game-bottom.laptop-only { display: block !important; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 26px; padding-top: 44px; }
  .hero-copy { text-align: center; }
  .hero-copy p { margin-left: auto; margin-right: auto; }
  .hero-actions, .mini-stats { justify-content: center; }
  .hero-preview { min-height: 490px; }
  .setup-grid { grid-template-columns: 1fr; }
  .setup-actions { flex-direction: column; align-items: stretch; text-align: center; }
}

@media (max-width: 560px) {
  .app-shell { padding: 12px 12px 22px; }
  .topbar { min-height: 54px; }
  .brand small { display: none; }
  .brand-icon { width: 34px; height: 34px; }
  .mode-btn { padding: 8px 9px; font-size: 11px; }
  .hero-grid { padding-top: 34px; }
  .hero-copy h1 { font-size: clamp(50px, 16vw, 72px); }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .mini-stats { gap: 22px; }
  .mini-stats strong { font-size: 21px; }
  .hero-preview { min-height: 420px; }
  .preview-card { width: min(290px, 77vw); }
  .preview-label.correct { right: 4px; }
  .preview-emoji { font-size: 92px; }
  .preview-name { font-size: 42px; }
  .setup-head { align-items: center; }
  .setup-icon { width: 46px; height: 46px; flex-basis: 46px; }
  .setup-card { border-radius: 22px; }
  .setup-block { min-height: 0; }
  .game-topbar { grid-template-columns: 1fr 84px 1fr; margin-bottom: 10px; }
  .timer-wrap { width: 72px; height: 72px; }
  .score-pill, .pass-pill { min-width: 0; padding: 8px 10px; gap: 7px; }
  .score-pill small, .pass-pill small { font-size: 7px; }
  .animal-card { min-height: 390px; height: min(62svh, 500px); }
  .animal-hint { max-width: 82%; }
  .result-stats strong { font-size: 26px; }
}

@media (orientation: landscape) and (max-height: 650px) {
  .topbar { min-height: 46px; }
  .game-screen { min-height: calc(100svh - 58px); padding-top: 0; }
  .game-topbar { position: absolute; z-index: 7; top: 2px; width: min(820px, 96%); pointer-events: none; }
  .animal-card { width: min(70vw, 700px); height: calc(100svh - 84px); min-height: 300px; }
  .animal-emoji { font-size: min(21vh, 115px); }
  .animal-name { font-size: min(13vh, 70px); }
  .animal-hint { margin-top: 7px; }
  .game-bottom { display: none !important; }
}

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