/* HAYSTACK — The Great Pill Hunt. Dark-glass UI over a live 3D world. */
@font-face { font-family: 'Alfa Slab One'; font-weight: 400; font-style: normal; font-display: swap; src: url('./fonts/alfa-slab-one-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-weight: 500; font-style: normal; font-display: swap; src: url('./fonts/jetbrains-mono-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-weight: 700; font-style: normal; font-display: swap; src: url('./fonts/jetbrains-mono-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Space Grotesk'; font-weight: 400; font-style: normal; font-display: swap; src: url('./fonts/space-grotesk-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Space Grotesk'; font-weight: 500; font-style: normal; font-display: swap; src: url('./fonts/space-grotesk-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Space Grotesk'; font-weight: 600; font-style: normal; font-display: swap; src: url('./fonts/space-grotesk-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Space Grotesk'; font-weight: 700; font-style: normal; font-display: swap; src: url('./fonts/space-grotesk-latin-700-normal.woff2') format('woff2'); }

:root {
  --bg: #0b1810; --ink: #f6efd2; --muted: #a8b7a0; --dim: #6f8268;
  --green: #7bd37f; --green2: #3fae5a; --gold: #ffd24a; --gold2: #ff9f1c; --pink: #ff5a7a; --cyan: #5ee0ff;
  --glass: rgba(11, 27, 18, .68); --glass2: rgba(20, 42, 29, .78); --line: rgba(246, 239, 210, .14);
  --display: 'Alfa Slab One', 'Rockwell', 'Georgia', serif;
  --ui: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, .9, .25, 1.15);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--bg); color: var(--ink); font-family: var(--ui); -webkit-font-smoothing: antialiased; user-select: none; -webkit-user-select: none; touch-action: none; overscroll-behavior: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
button:focus-visible, select:focus-visible, input:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
h1, h2, h3, p { margin: 0; }
b { font-weight: 700; }
kbd { font: 700 11px/1 var(--mono); min-width: 22px; height: 22px; padding: 0 6px; display: inline-grid; place-items: center; border-radius: 6px; background: rgba(246, 239, 210, .12); border: 1px solid rgba(246, 239, 210, .28); border-bottom-width: 3px; color: var(--ink); letter-spacing: 0; }

#world { position: fixed; inset: 0; z-index: 0; }
#world canvas { display: block; width: 100%; height: 100%; touch-action: none; outline: none; }
#vignette, #heat, #flash { position: fixed; inset: 0; pointer-events: none; }
#vignette { z-index: 1; background: radial-gradient(ellipse at center, transparent 55%, rgba(4, 12, 7, .55) 100%); }
#heat { z-index: 2; opacity: 0; background: radial-gradient(ellipse at center, transparent 40%, rgba(255, 70, 40, .55) 100%); transition: opacity .3s; mix-blend-mode: screen; }
#flash { z-index: 45; opacity: 0; background: #fff; }

/* ---------------------------------------------------------------- capsule (pill) art */
.capsule { --w: 14px; display: inline-block; width: var(--w); height: calc(var(--w) * 2.4); border-radius: 999px; position: relative; flex: none; vertical-align: middle;
  background: linear-gradient(180deg, var(--c1) 0 50%, var(--c2) 50% 100%); transform: rotate(-40deg);
  box-shadow: inset calc(var(--w) * -.14) 0 calc(var(--w) * .2) rgba(0, 0, 0, .28), inset calc(var(--w) * .12) 0 calc(var(--w) * .16) rgba(255, 255, 255, .35), 0 calc(var(--w) * .2) calc(var(--w) * .5) rgba(0, 0, 0, .35); }
.capsule::before { content: ''; position: absolute; left: 50%; top: 50%; width: 100%; height: 2px; transform: translate(-50%, -50%); background: rgba(0, 0, 0, .18); }
.capsule::after { content: ''; position: absolute; left: 16%; top: 7%; width: 18%; height: 36%; border-radius: 99px; background: rgba(255, 255, 255, .7); filter: blur(.4px); }
.capsule.sm { --w: 11px; } .capsule.big { --w: 34px; } .capsule.huge { --w: 76px; }
.capsule.holo { background: linear-gradient(180deg, #ff6bd6 0 50%, #6bf0ff 50% 100%); animation: holo 3s linear infinite; }
@keyframes holo { to { filter: hue-rotate(360deg) saturate(1.3); } }

/* ---------------------------------------------------------------- loading */
#loading { position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; background: radial-gradient(ellipse at 50% 40%, #1c3a28, #08130c 70%); transition: opacity .5s; }
.load-logo { display: flex; align-items: center; gap: 22px; font: 400 clamp(40px, 8vw, 78px)/1 var(--display); letter-spacing: .02em; }
.load-logo .capsule { --w: 28px; animation: spin-in 1.6s var(--ease) infinite alternate; }
.load-logo i, .logo-text i { font-style: normal; color: var(--gold); }
.load-bar { width: min(380px, 70vw); height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.load-bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--green2), var(--gold)); transition: width .35s ease-out; box-shadow: 0 0 14px rgba(255, 210, 74, .6); }
#load-tip { color: var(--muted); font-size: 14px; max-width: 80vw; text-align: center; min-height: 20px; }
@keyframes spin-in { from { transform: rotate(-40deg) scale(.9); } to { transform: rotate(140deg) scale(1.1); } }

/* ---------------------------------------------------------------- menu */
.screen { position: fixed; inset: 0; z-index: 20; }
#menu { display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(24px, 6vw, 96px) 36px; background: linear-gradient(90deg, rgba(5, 14, 9, .88) 0%, rgba(5, 14, 9, .5) 42%, rgba(5, 14, 9, 0) 72%); animation: fade .6s ease-out; }
@keyframes fade { from { opacity: 0; } }
.menu-col { width: min(440px, 100%); display: flex; flex-direction: column; gap: 14px; }
.eyebrow { display: flex; align-items: center; gap: 8px; font: 700 11px/1 var(--mono); letter-spacing: .22em; color: var(--green); animation: rise .6s .05s both; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(123, 211, 127, .7); animation: ping 1.8s infinite; display: inline-block; }
@keyframes ping { to { box-shadow: 0 0 0 10px rgba(123, 211, 127, 0); } }
.logo { display: flex; align-items: center; gap: 14px; font: 400 clamp(54px, 8.4vw, 104px)/.95 var(--display); letter-spacing: .01em; text-shadow: 0 6px 0 rgba(0, 0, 0, .35), 0 14px 40px rgba(0, 0, 0, .5); animation: rise .6s .12s both; }
.logo .capsule.big { --w: 30px; margin-right: 6px; animation: capfloat 4s ease-in-out infinite; }
.tagline { font-size: clamp(16px, 1.7vw, 20px); color: var(--muted); animation: rise .6s .2s both; }
.tagline em { color: var(--gold); font-style: normal; font-weight: 700; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
.menu-list { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.mbtn { position: relative; display: flex; align-items: center; gap: 10px; padding: 0 18px; height: 52px; border-radius: 14px; text-align: left; background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(10px); font: 600 17px/1 var(--ui); transition: transform .18s var(--ease), background .18s, border-color .18s, box-shadow .18s; animation: rise .5s both; }
.mbtn:nth-child(1) { animation-delay: .28s; } .mbtn:nth-child(2) { animation-delay: .33s; } .mbtn:nth-child(3) { animation-delay: .38s; } .mbtn:nth-child(4) { animation-delay: .43s; } .mbtn:nth-child(5) { animation-delay: .48s; } .mbtn:nth-child(6) { animation-delay: .53s; }
.mbtn span { flex: 1; } .mbtn small { color: var(--muted); font: 500 12px var(--mono); } .mbtn i { font-style: normal; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: rgba(246, 239, 210, .08); color: var(--muted); transition: .18s; }
.mbtn:hover, .mbtn:focus-visible { transform: translateX(8px); background: var(--glass2); border-color: rgba(255, 210, 74, .55); box-shadow: 0 8px 28px rgba(0, 0, 0, .35), 0 0 0 1px rgba(255, 210, 74, .25); outline: 0; }
.mbtn:hover i, .mbtn:focus-visible i { background: var(--gold); color: #2a1d00; transform: rotate(8deg); }
.mbtn.primary { height: 62px; font-size: 20px; color: #1d2a05; border: 0; background: linear-gradient(135deg, #b6f07a, #ffd24a); box-shadow: 0 10px 30px rgba(255, 210, 74, .25), inset 0 -3px 0 rgba(0, 0, 0, .15); }
.mbtn.primary small { color: rgba(29, 42, 5, .7); } .mbtn.primary i { background: rgba(29, 42, 5, .85); color: var(--gold); }
.mbtn.primary:hover, .mbtn.primary:focus-visible { background: linear-gradient(135deg, #c8ff8c, #ffe27a); box-shadow: 0 12px 38px rgba(255, 210, 74, .5); border: 0; }
.menu-foot { display: flex; align-items: center; gap: 6px; color: var(--dim); font-size: 12px; margin-top: 4px; }
.menu-card { width: min(300px, 34vw); padding: 22px 22px 24px; text-align: center; border-radius: 26px; background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(14px); box-shadow: 0 30px 80px rgba(0, 0, 0, .45); display: flex; flex-direction: column; gap: 8px; align-items: center; animation: rise .7s .4s both; transform-origin: center; }
.kicker { font: 700 10.5px/1.2 var(--mono); letter-spacing: .2em; color: var(--green); display: block; }
.capsule-stage { width: 100%; height: 170px; display: grid; place-items: center; border-radius: 18px; background: radial-gradient(circle at 50% 50%, rgba(255, 210, 74, .22), transparent 65%); position: relative; overflow: hidden; }
.capsule-stage::before { content: ''; position: absolute; inset: -40%; background: conic-gradient(from 0deg, transparent, rgba(255, 255, 255, .08), transparent 30%); animation: spin 8s linear infinite; }
.capsule-stage .capsule, .win-pill .capsule { animation: capfloat 3.6s ease-in-out infinite; position: relative; }
@keyframes capfloat { 0%, 100% { transform: rotate(-40deg) translateY(0); } 50% { transform: rotate(-26deg) translateY(-10px); } }
@keyframes spin { to { transform: rotate(360deg); } }
.menu-card strong { font: 400 24px/1.1 var(--display); }
.menu-card p { color: var(--muted); font-size: 14px; line-height: 1.4; }
.menu-prize { margin-top: 6px; display: grid; gap: 2px; } .menu-prize span { font: 700 22px var(--mono); color: var(--gold); } .menu-prize small { font: 700 10px var(--mono); letter-spacing: .2em; color: var(--dim); }
.build { position: absolute; right: 18px; bottom: 44px; color: var(--dim); font: 500 11px var(--mono); }

/* ---------------------------------------------------------------- sheets (levels, vault) */
.sheet { overflow-y: auto; padding: 28px clamp(18px, 5vw, 72px) 70px; background: radial-gradient(ellipse at 50% 0%, rgba(30, 64, 44, .94), rgba(6, 16, 10, .97) 70%); animation: fade .35s ease-out; touch-action: pan-y; }
.sheet-head { display: flex; align-items: flex-end; gap: 22px; margin-bottom: 22px; position: sticky; top: -28px; padding: 14px 0 12px; z-index: 3; background: linear-gradient(180deg, rgba(8, 20, 13, .96) 70%, transparent); }
.sheet-head > div:first-child { flex: 1; } .sheet-head h2 { font: 400 clamp(30px, 4vw, 46px)/1.05 var(--display); margin-top: 4px; }
.sheet-meta { text-align: right; font: 500 12px var(--mono); color: var(--muted); } .sheet-meta b { font: 400 34px var(--display); color: var(--gold); margin-right: 4px; }
.close { width: 42px; height: 42px; border-radius: 50%; font-size: 26px; line-height: 1; display: grid; place-items: center; background: rgba(246, 239, 210, .08); border: 1px solid var(--line); transition: .18s; flex: none; }
.close:hover { background: var(--pink); border-color: transparent; transform: rotate(90deg); }
.sub { font: 400 22px var(--display); margin: 26px 0 12px; display: flex; align-items: baseline; gap: 12px; } .sub small { font: 500 13px var(--mono); color: var(--muted); }
.level-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 16px; }
.level-card { position: relative; overflow: hidden; text-align: left; padding: 0 16px 14px; border-radius: 20px; background: var(--glass2); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; transition: transform .22s var(--ease), border-color .2s, box-shadow .2s; animation: rise .5s both; }
.level-card:nth-child(2) { animation-delay: .04s; } .level-card:nth-child(3) { animation-delay: .08s; } .level-card:nth-child(4) { animation-delay: .12s; } .level-card:nth-child(5) { animation-delay: .16s; } .level-card:nth-child(6) { animation-delay: .2s; } .level-card:nth-child(7) { animation-delay: .24s; } .level-card:nth-child(8) { animation-delay: .28s; } .level-card:nth-child(9) { animation-delay: .32s; }
.level-card:not(.locked):hover { transform: translateY(-6px) scale(1.01); border-color: var(--gold); box-shadow: 0 18px 44px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 210, 74, .4); }
.level-card.current { border-color: var(--green); box-shadow: 0 0 0 1px var(--green); }
.lc-sky { height: 70px; margin: 0 -16px; background: linear-gradient(180deg, var(--s1), var(--s2)); position: relative; }
.lc-sky::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 26px; background: linear-gradient(180deg, transparent, rgba(11, 27, 18, .9)); }
.lc-top { position: absolute; left: 16px; right: 16px; top: 12px; display: flex; justify-content: space-between; align-items: center; }
.lc-top i { font: 700 10px var(--mono); letter-spacing: .18em; font-style: normal; padding: 4px 8px; border-radius: 99px; background: rgba(0, 0, 0, .45); }
.lc-stars b { color: rgba(255, 255, 255, .28); font-size: 17px; text-shadow: 0 1px 4px rgba(0, 0, 0, .5); } .lc-stars b.on { color: var(--gold); }
.level-card h3 { font: 400 22px/1.1 var(--display); margin-top: -2px; } .level-card p { color: var(--muted); font-size: 13.5px; line-height: 1.35; min-height: 36px; }
.lc-meta { display: flex; flex-wrap: wrap; gap: 6px; } .lc-meta span { font: 500 11px var(--mono); padding: 4px 7px; border-radius: 6px; background: rgba(246, 239, 210, .08); color: var(--muted); }
.lc-obj { font-size: 12.5px; color: var(--ink); padding: 8px 10px; border-radius: 10px; background: rgba(123, 211, 127, .1); border: 1px dashed rgba(123, 211, 127, .35); } .lc-obj small { font: 700 9.5px var(--mono); letter-spacing: .16em; color: var(--green); display: block; margin-bottom: 2px; }
.lc-pill { display: flex; align-items: center; gap: 12px; padding-top: 4px; } .lc-pill .capsule { margin: 6px 8px 6px 6px; } .lc-pill b { display: block; font-size: 14px; } .lc-pill small { font: 500 10.5px var(--mono); color: var(--gold); letter-spacing: .06em; }
.level-card.endless { background: linear-gradient(135deg, rgba(60, 24, 80, .8), rgba(18, 38, 70, .8)); }
.level-card.locked { cursor: default; filter: saturate(.4); }
.lc-lock { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: 4px; background: rgba(6, 14, 9, .78); backdrop-filter: blur(3px); } .lc-lock span { font-size: 30px; } .lc-lock b { font: 400 18px var(--display); letter-spacing: .1em; } .lc-lock small { color: var(--muted); font-size: 12px; padding: 0 20px; }
.pill-grid, .find-grid { display: grid; gap: 12px; }
.pill-grid { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); } .find-grid { grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); }
.pill-card, .find-card { position: relative; border-radius: 16px; padding: 14px 12px; text-align: center; background: var(--glass2); border: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; gap: 4px; }
.pill-card b, .find-card b { font-size: 13.5px; } .pill-card small, .find-card small { font: 500 10.5px/1.35 var(--mono); color: var(--muted); }
.pc-art { height: 86px; display: grid; place-items: center; } .pill-card.unknown .pc-art { filter: brightness(0) opacity(.35); }
.pill-card em, .find-card em { position: absolute; top: 8px; right: 10px; font: 700 11px var(--mono); color: var(--gold); font-style: normal; }
.find-card { border-left: 3px solid var(--rc, #888); } .find-card .fi { font-size: 34px; line-height: 1.2; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .4)); }
.find-card.unknown { opacity: .55; } .find-card.unknown .fi { filter: grayscale(1) brightness(.6); }

/* ---------------------------------------------------------------- HUD */
#hud { position: fixed; inset: 0; z-index: 10; pointer-events: none; font-size: 14px; }
#hud button, #hud .touch * { pointer-events: auto; }
.card { background: var(--glass); backdrop-filter: blur(12px) saturate(1.2); -webkit-backdrop-filter: blur(12px) saturate(1.2); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); }
.bar { height: 10px; border-radius: 99px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.bar > i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--green2), var(--green)); transition: width .25s ease-out; }
.bar.thin { height: 6px; }
.hud-loc { position: absolute; left: 16px; top: 16px; width: 308px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; animation: slide-l .6s var(--ease) both; }
@keyframes slide-l { from { opacity: 0; transform: translateX(-30px); } }
.loc-head { display: flex; align-items: center; gap: 10px; } .loc-head .capsule { margin: 0 3px; }
.loc-head b { font: 400 17px var(--display); } .loc-head i { font: 700 10px var(--mono); letter-spacing: .14em; font-style: normal; color: var(--green); padding: 3px 7px; border-radius: 99px; background: rgba(123, 211, 127, .12); }
.live { margin-left: auto; display: flex; align-items: center; gap: 5px; font: 700 9.5px var(--mono); letter-spacing: .16em; color: var(--pink); } .live .live-dot { background: var(--pink); animation-name: ping-p; width: 7px; height: 7px; }
@keyframes ping-p { 0% { box-shadow: 0 0 0 0 rgba(255, 90, 122, .7); } 100% { box-shadow: 0 0 0 9px rgba(255, 90, 122, 0); } }
.balance, .shop-bal { display: flex; align-items: center; gap: 10px; }
.coin { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font: 400 15px var(--display); color: #4a2f00; background: radial-gradient(circle at 35% 30%, #fff1a8, #ffc933 55%, #d98e0b); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .18), 0 3px 10px rgba(255, 190, 40, .4); flex: none; }
.balance b { font: 700 32px/1 var(--mono); letter-spacing: -.02em; color: var(--gold); text-shadow: 0 0 20px rgba(255, 210, 74, .35); }
.hud-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; } .hud-stats > div { background: rgba(246, 239, 210, .06); border-radius: 10px; padding: 7px 9px; }
.hud-stats small, .objective small, .counter small, .farmer small, .pile small, .combo small { display: block; font: 700 9px var(--mono); letter-spacing: .15em; color: var(--dim); }
.hud-stats b { font: 700 14px var(--mono); } #timer.late { color: var(--pink); }
.pile { display: grid; gap: 6px; } .pile-top, .pile-bot { display: flex; justify-content: space-between; align-items: baseline; } .pile-top b { font: 700 13px var(--mono); color: var(--green); } .pile-bot { font: 500 11px var(--mono); color: var(--muted); }
.pile .bar > i { background: linear-gradient(90deg, #d9a441, #ffd24a, #b6f07a); }
.onboard { position: absolute; top: 16px; left: 50%; transform: translate(-50%, -20px); display: none; align-items: center; gap: 12px; padding: 10px 16px; border-radius: 99px; background: rgba(255, 210, 74, .94); color: #2a1d00; font-weight: 600; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); max-width: min(620px, 92vw); opacity: 0; transition: .35s var(--ease); }
.onboard.show { display: flex; opacity: 1; transform: translate(-50%, 0); animation: nudge 2.4s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translate(-50%, 4px); } }
.chip { font: 700 9.5px var(--mono); letter-spacing: .14em; padding: 4px 8px; border-radius: 99px; background: #2a1d00; color: var(--gold); white-space: nowrap; }
#onboard-keys { display: flex; gap: 4px; } #onboard-keys:empty { display: none; } .onboard kbd { background: rgba(42, 29, 0, .1); border-color: rgba(42, 29, 0, .45); color: #2a1d00; }
.objective { position: absolute; right: 16px; top: 16px; width: 270px; padding: 11px 14px; display: grid; gap: 5px; animation: slide-r .6s .1s var(--ease) both; }
@keyframes slide-r { from { opacity: 0; transform: translateX(30px); } }
.objective small { color: var(--green); } .objective b { font-size: 14px; } .objective span { font: 700 11px var(--mono); color: var(--muted); text-align: right; }
.objective .bar > i { background: linear-gradient(90deg, #5ee0ff, #7bd37f); }
.objective.done { border-color: var(--green); box-shadow: 0 0 0 1px var(--green), 0 0 26px rgba(123, 211, 127, .3); } .objective.done span { color: var(--green); }
.news { position: absolute; right: 16px; top: 118px; width: 300px; padding: 12px 14px 12px 20px; opacity: 0; transform: translateX(40px); transition: .45s var(--ease); overflow: hidden; }
.news.show { opacity: 1; transform: none; }
.news-bar { position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--pink); animation: newsbar 1s ease-in-out infinite alternate; } @keyframes newsbar { to { opacity: .45; } }
.news b { font: 700 10px var(--mono); letter-spacing: .18em; color: var(--pink); text-transform: uppercase; } .news p { font-size: 13px; line-height: 1.38; margin-top: 4px; color: var(--ink); }
.rush { position: absolute; top: 74px; left: 50%; transform: translate(-50%, -20px) scale(.9); display: none; align-items: center; gap: 12px; padding: 9px 18px; border-radius: 99px; background: linear-gradient(90deg, #ff9f1c, #ffd24a, #ff9f1c); background-size: 200% 100%; color: #3a1c00; box-shadow: 0 0 30px rgba(255, 170, 30, .6); }
.rush.on { display: flex; animation: rushin .5s var(--ease) both, shimmer 1.4s linear infinite; }
.rush b { font: 400 18px var(--display); letter-spacing: .05em; } .rush span { font: 700 11px var(--mono); letter-spacing: .12em; } .rush em { font: 700 18px var(--mono); font-style: normal; min-width: 30px; text-align: right; }
@keyframes rushin { to { transform: translate(-50%, 0) scale(1); } } @keyframes shimmer { to { background-position: 200% 0; } }
.combo { position: absolute; left: 50%; bottom: 96px; transform: translateX(-50%) scale(.8); width: 180px; display: grid; gap: 5px; text-align: center; opacity: 0; transition: .2s var(--ease); }
.combo.on { opacity: 1; transform: translateX(-50%) scale(1); }
.combo-top { display: flex; align-items: baseline; justify-content: center; gap: 8px; } .combo-top b { font: 400 36px/1 var(--display); color: var(--gold); text-shadow: 0 3px 0 rgba(0, 0, 0, .4), 0 0 24px rgba(255, 210, 74, .5); }
.combo span { font: 700 11px var(--mono); color: var(--muted); } .combo .bar > i { background: linear-gradient(90deg, var(--gold2), var(--gold)); transition: width .1s linear; }
.combo.hot .combo-top b { color: #ff7a3a; animation: shake .25s linear infinite; text-shadow: 0 3px 0 rgba(0, 0, 0, .4), 0 0 28px rgba(255, 110, 40, .8); } @keyframes shake { 25% { transform: translate(1px, -1px) rotate(-1deg); } 75% { transform: translate(-1px, 1px) rotate(1deg); } }
#crosshair { position: absolute; left: 50%; top: 50%; width: 0; height: 0; opacity: .8; transition: opacity .2s; }
#crosshair i { position: absolute; background: #fff; border-radius: 2px; box-shadow: 0 0 4px rgba(0, 0, 0, .8); transition: all .15s; }
#crosshair i:nth-child(1) { width: 2px; height: 7px; left: -1px; top: -16px; } #crosshair i:nth-child(2) { width: 2px; height: 7px; left: -1px; top: 9px; } #crosshair i:nth-child(3) { width: 7px; height: 2px; top: -1px; left: -16px; } #crosshair i:nth-child(4) { width: 7px; height: 2px; top: -1px; left: 9px; }
#crosshair.on { opacity: 1; } #crosshair.on i { background: var(--gold); } #crosshair.on i:nth-child(1) { top: -13px; } #crosshair.on i:nth-child(2) { top: 6px; } #crosshair.on i:nth-child(3) { left: -13px; } #crosshair.on i:nth-child(4) { left: 6px; }
#target-label { position: absolute; left: 50%; top: calc(50% + 32px); transform: translateX(-50%); font: 600 12px var(--mono); padding: 5px 10px; border-radius: 99px; background: rgba(0, 0, 0, .45); color: var(--ink); white-space: nowrap; letter-spacing: .02em; }
#target-label:empty { display: none; }
.scanner { position: absolute; left: 16px; top: 284px; display: none; align-items: center; gap: 12px; padding: 10px 16px 10px 12px; }
.scanner.on { display: flex; animation: slide-l .4s var(--ease) both; } .scan-arrow { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-size: 18px; color: #06210e; background: var(--green); box-shadow: 0 0 20px rgba(123, 211, 127, .5); transition: transform .08s linear; }
.scanner b { font: 700 20px var(--mono); display: block; } .scanner small { font: 600 11px var(--mono); color: var(--muted); letter-spacing: .04em; }
.scanner.hot { border-color: var(--pink); box-shadow: 0 0 26px rgba(255, 90, 122, .55); animation: hotpulse .5s ease-in-out infinite alternate; } .scanner.hot .scan-arrow { background: var(--pink); box-shadow: 0 0 22px var(--pink); } .scanner.hot small { color: var(--pink); }
@keyframes hotpulse { to { transform: scale(1.04); } }
#gain-layer { position: absolute; inset: 0; overflow: hidden; }
.gain { position: absolute; left: 50%; top: 42%; font: 400 30px/1 var(--display); color: var(--ink); text-shadow: 0 3px 0 rgba(0, 0, 0, .45), 0 0 16px rgba(0, 0, 0, .5); animation: gain 1.1s ease-out forwards; display: flex; align-items: baseline; gap: 6px; white-space: nowrap; }
.gain small { font: 700 12px var(--mono); color: var(--gold); } .gain.gold { color: var(--gold); font-size: 42px; text-shadow: 0 3px 0 rgba(0, 0, 0, .45), 0 0 26px rgba(255, 210, 74, .85); } .gain.hot { color: #ffb067; }
@keyframes gain { 0% { opacity: 0; transform: translate(-50%, 10px) scale(.6); } 15% { opacity: 1; transform: translate(-50%, -10px) scale(1.15); } 100% { opacity: 0; transform: translate(-50%, -110px) scale(.9); } }
.banner { position: absolute; left: 50%; top: 22%; transform: translate(-50%, 20px) scale(.85); text-align: center; opacity: 0; pointer-events: none; transition: .45s var(--ease); display: grid; gap: 6px; }
.banner.show { opacity: 1; transform: translate(-50%, 0) scale(1); }
.banner b { font: 400 clamp(32px, 5vw, 58px)/1 var(--display); color: var(--gold); text-shadow: 0 4px 0 rgba(0, 0, 0, .5), 0 0 40px rgba(255, 210, 74, .6); letter-spacing: .03em; } .banner small { font: 600 clamp(13px, 1.5vw, 17px) var(--ui); color: var(--ink); text-shadow: 0 2px 8px rgba(0, 0, 0, .8); }
.banner.rush b { color: #ff9f1c; } .banner.levelup b { color: #b6f07a; text-shadow: 0 4px 0 rgba(0, 0, 0, .5), 0 0 40px rgba(123, 211, 127, .7); }
.bl { position: absolute; left: 16px; bottom: 16px; display: flex; gap: 8px; } .counter { padding: 8px 14px; border-radius: 12px; background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(10px); min-width: 78px; } .counter b { font: 700 18px var(--mono); }
.hintbar { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 99px; background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(10px); white-space: nowrap; }
.hk { display: flex; align-items: center; gap: 7px; padding: 5px 10px 5px 6px; border-radius: 99px; font-weight: 600; font-size: 13px; transition: .15s; } .hk:hover { background: rgba(255, 210, 74, .18); color: var(--gold); }
.sep { width: 1px; height: 20px; background: var(--line); } .ctl { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; padding-right: 4px; }
.farmer { position: absolute; right: 16px; bottom: 16px; width: 268px; padding: 12px 14px; display: grid; gap: 12px; animation: slide-r .6s .2s var(--ease) both; }
.farmer-top { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 4px 10px; } .farmer-top > small { grid-column: 1; } .farmer-top > b { font: 400 20px var(--display); color: var(--green); grid-column: 2; grid-row: 1; justify-self: start; } .farmer-top .bar { grid-column: 1 / 4; } .farmer-top > span { grid-column: 3; grid-row: 1; font: 500 11px var(--mono); color: var(--muted); }
.abilities { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.ability { display: grid; justify-items: center; gap: 4px; position: relative; padding: 0; } .ability b { font-size: 11px; font-weight: 600; } .ability kbd { position: absolute; top: -5px; right: 0; min-width: 18px; height: 18px; font-size: 10px; padding: 0 4px; background: #101f16; }
.ring { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; position: relative; background: radial-gradient(circle at 35% 30%, #3b6f4a, #1c3b28); border: 2px solid var(--green); box-shadow: 0 4px 14px rgba(0, 0, 0, .4); transition: .2s; --p: 0; overflow: hidden; }
.ring::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(rgba(5, 12, 8, .72) calc(var(--p) * 360deg), transparent 0); pointer-events: none; }
.ring .ico { font-style: normal; font-size: 22px; line-height: 1; position: relative; z-index: 1; } .ring .cd { position: absolute; z-index: 2; font: 700 14px var(--mono); font-style: normal; color: #fff; text-shadow: 0 1px 4px #000; }
.ability.cooling .ring { border-color: var(--dim); } .ability:not(.locked):not(.cooling):hover .ring { transform: scale(1.08); border-color: var(--gold); }
.ability.active .ring { border-color: var(--cyan); box-shadow: 0 0 20px rgba(94, 224, 255, .8); animation: hotpulse .5s infinite alternate; }
.ability.locked { opacity: .45; } .ability.locked .ring { border-color: var(--dim); filter: grayscale(1); } .ability.locked .ring::before { content: '🔒'; position: absolute; z-index: 3; font-size: 15px; right: 2px; bottom: 0; }
#ab-rake { cursor: default; }
.look-hint { position: absolute; left: 50%; bottom: 150px; transform: translateX(-50%) translateY(10px); padding: 9px 16px; border-radius: 99px; background: rgba(0, 0, 0, .6); font-weight: 600; font-size: 13px; opacity: 0; transition: .4s; }
.look-hint.show { opacity: 1; transform: translateX(-50%); }

/* ---------------------------------------------------------------- touch */
.touch { display: none; }
body.touch-ui.playing .touch { display: block; }
body.touch-ui .hintbar, body.touch-ui .look-hint, body.touch-ui .farmer .abilities, body.touch-ui .news, body.touch-ui .ctl { display: none !important; }
.joy { position: absolute; left: 22px; bottom: 26px; width: 128px; height: 128px; border-radius: 50%; background: rgba(246, 239, 210, .1); border: 2px solid rgba(246, 239, 210, .28); touch-action: none; display: grid; place-items: center; }
.joy i { width: 54px; height: 54px; border-radius: 50%; background: rgba(246, 239, 210, .55); box-shadow: 0 4px 14px rgba(0, 0, 0, .4); pointer-events: none; }
.t-right { position: absolute; right: 18px; bottom: 26px; display: grid; gap: 12px; justify-items: end; }
.t-main { width: 98px; height: 98px; border-radius: 50%; font-size: 36px; display: grid; place-content: center; text-align: center; background: linear-gradient(135deg, #b6f07a, #ffd24a); color: #1d2a05; box-shadow: 0 10px 30px rgba(0, 0, 0, .45), inset 0 -4px 0 rgba(0, 0, 0, .15); touch-action: none; } .t-main small { font: 700 9px var(--mono); letter-spacing: .12em; }
.t-main:active { transform: scale(.94); }
.t-row { display: flex; gap: 10px; } .t-row button { width: 52px; height: 52px; border-radius: 50%; font-size: 24px; background: var(--glass2); border: 2px solid var(--green); touch-action: none; } .t-row button.locked { opacity: .35; border-color: var(--dim); }
.t-top { position: absolute; right: 18px; top: 150px; display: flex; flex-direction: column; gap: 8px; } .t-top button { padding: 9px 14px; border-radius: 12px; font: 700 12px var(--mono); letter-spacing: .08em; background: var(--glass2); border: 1px solid var(--line); }

/* ---------------------------------------------------------------- modals */
.modal-wrap { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; padding: 20px; background: rgba(4, 11, 7, .62); backdrop-filter: blur(6px); animation: fade .25s ease-out; overflow-y: auto; touch-action: pan-y; }
.modal { position: relative; width: min(520px, 100%); padding: 28px 28px 26px; border-radius: 26px; background: linear-gradient(180deg, rgba(26, 52, 36, .97), rgba(10, 24, 16, .97)); border: 1px solid var(--line); box-shadow: 0 40px 100px rgba(0, 0, 0, .6); display: flex; flex-direction: column; gap: 12px; animation: pop .4s var(--ease); max-height: calc(100vh - 40px); overflow-y: auto; }
@keyframes pop { from { opacity: 0; transform: translateY(24px) scale(.94); } }
.modal h2 { font: 400 clamp(28px, 4vw, 38px)/1.05 var(--display); } .modal p { color: var(--muted); line-height: 1.5; font-size: 15px; }
.modal > .close { position: absolute; top: 16px; right: 16px; }
.modal.narrow { width: min(420px, 100%); }
.pbtn { width: 100%; padding: 14px 18px; border-radius: 14px; font-weight: 700; font-size: 16px; text-align: center; background: rgba(246, 239, 210, .08); border: 1px solid var(--line); transition: transform .16s var(--ease), background .16s; display: flex; align-items: center; justify-content: center; gap: 8px; }
.pbtn:hover { background: rgba(246, 239, 210, .16); transform: translateY(-2px); } .pbtn i { font-style: normal; }
.pbtn.primary { background: linear-gradient(135deg, #b6f07a, #ffd24a); color: #1d2a05; border: 0; box-shadow: 0 8px 24px rgba(255, 210, 74, .25); } .pbtn.primary:hover { background: linear-gradient(135deg, #c8ff8c, #ffe27a); }
.pbtn.ghost { background: transparent; color: var(--muted); } .pbtn.danger { background: rgba(255, 90, 122, .15); color: #ff9db0; border-color: rgba(255, 90, 122, .45); } .pbtn.danger:hover { background: var(--pink); color: #fff; }
.shop-modal { width: min(720px, 100%); }
.shop-modal > header { display: flex; align-items: center; gap: 16px; padding-right: 0; } .shop-modal > header > div:first-child { flex: 1; } .shop-modal h2 { margin-top: 4px; }
.shop-bal { padding: 8px 14px 8px 8px; border-radius: 99px; background: rgba(0, 0, 0, .35); } .shop-bal b { font: 700 20px var(--mono); color: var(--gold); }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; border-radius: 14px; background: rgba(0, 0, 0, .3); } .tabs button { padding: 10px; border-radius: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 8px; transition: .16s; color: var(--muted); } .tabs button.on { background: var(--green); color: #06210e; } .tabs button.on kbd { background: rgba(6, 33, 14, .2); border-color: rgba(6, 33, 14, .5); color: #06210e; }
.shop-list { display: grid; gap: 8px; }
.item { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 16px; background: rgba(246, 239, 210, .05); border: 1px solid var(--line); transition: .18s; animation: rise .4s both; }
.item:nth-child(2) { animation-delay: .04s; } .item:nth-child(3) { animation-delay: .08s; } .item:nth-child(4) { animation-delay: .12s; } .item:nth-child(5) { animation-delay: .16s; }
.item.afford { border-color: rgba(123, 211, 127, .55); background: rgba(123, 211, 127, .08); } .item.maxed { border-color: rgba(255, 210, 74, .5); }
.item-ico { width: 52px; height: 52px; display: grid; place-items: center; font-size: 28px; border-radius: 14px; background: rgba(0, 0, 0, .3); }
.item-body { display: grid; gap: 3px; min-width: 0; } .item-body > b { font-size: 15px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } .item-body em { font: 700 10px var(--mono); font-style: normal; padding: 2px 7px; border-radius: 99px; background: rgba(246, 239, 210, .1); color: var(--muted); letter-spacing: .08em; }
.item-body p { font-size: 12.5px; color: var(--muted); line-height: 1.35; } .item-body small { font-size: 12px; color: var(--muted); } .item-body small b { color: var(--ink); }
.pips { display: flex; gap: 3px; } .pips i { width: 16px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .14); } .pips i.on { background: var(--green); }
.buy { min-width: 128px; padding: 11px 14px; border-radius: 12px; font-weight: 600; font-size: 13px; background: rgba(246, 239, 210, .08); color: var(--muted); border: 1px solid var(--line); display: grid; gap: 2px; text-align: center; transition: .16s; }
.buy b { font: 700 14px var(--mono); }
.item.afford .buy { background: linear-gradient(135deg, #7bd37f, #b6f07a); color: #06210e; border: 0; box-shadow: 0 6px 18px rgba(123, 211, 127, .35); animation: buypulse 1.6s ease-in-out infinite; }
.item.afford .buy:hover { transform: scale(1.05); } .buy:disabled { cursor: default; opacity: .6; } .item.maxed .buy { color: var(--gold); }
@keyframes buypulse { 50% { box-shadow: 0 6px 26px rgba(182, 240, 122, .7); } }
.shop-note { text-align: center; font-size: 13px !important; font-style: italic; }
.settings-modal { width: min(480px, 100%); } .row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--line); font-weight: 600; } .row.end { border: 0; gap: 10px; padding-top: 14px; }
.row input[type=range] { flex: 1; max-width: 220px; accent-color: var(--green); } .row b { width: 36px; text-align: right; font: 700 13px var(--mono); color: var(--gold); } .row input[type=checkbox] { width: 22px; height: 22px; accent-color: var(--green); }
.row select { padding: 8px 10px; border-radius: 10px; background: #0f2418; color: var(--ink); border: 1px solid var(--line); font: inherit; }
.row.end .pbtn { width: auto; flex: 1; padding: 12px; font-size: 14px; }
.help-modal ol { margin: 4px 0 0; padding-left: 22px; display: grid; gap: 10px; color: var(--muted); line-height: 1.45; font-size: 14.5px; } .help-modal li::marker { color: var(--gold); font-weight: 700; } .help-modal li b { color: var(--ink); }
.demo-note { font-size: 12.5px !important; opacity: .8; padding: 10px 12px; border-radius: 10px; background: rgba(246, 239, 210, .05); }
.win-modal { width: min(660px, 100%); text-align: center; align-items: center; overflow-x: hidden; overflow-y: auto; }
.confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; } .confetti i { position: absolute; top: -20px; border-radius: 2px; animation: fall linear infinite; opacity: .95; }
@keyframes fall { to { transform: translateY(110vh) rotate(720deg); } }
.win-pill { height: 150px; display: grid; place-items: center; width: 100%; position: relative; background: radial-gradient(circle, rgba(255, 210, 74, .3), transparent 62%); }
.win-modal h2 { font-size: clamp(30px, 5vw, 44px); } .win-modal h2 em { font-style: normal; color: var(--gold); }
.stars { display: flex; gap: 10px; } .stars i { font-style: normal; font-size: 46px; line-height: 1; color: rgba(255, 255, 255, .15); transition: .4s var(--ease); } .stars i.on { color: var(--gold); text-shadow: 0 0 24px rgba(255, 210, 74, .9); transform: scale(1.25) rotate(-8deg); animation: starpop .6s var(--ease); }
@keyframes starpop { from { transform: scale(.2) rotate(-90deg); opacity: 0; } }
.win-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: 100%; } .win-grid div { padding: 10px 8px; border-radius: 12px; background: rgba(246, 239, 210, .06); border: 1px solid var(--line); display: grid; gap: 2px; }
.win-grid small { font: 700 9.5px var(--mono); letter-spacing: .14em; color: var(--dim); text-transform: uppercase; } .win-grid b { font: 700 20px var(--mono); } .win-grid span { font-size: 11px; color: var(--muted); }
.win-grid .ok { border-color: rgba(123, 211, 127, .45); } .win-grid .ok b { color: var(--green); } .win-grid .miss b { color: var(--pink); }
.win-reward { display: flex; align-items: baseline; justify-content: center; gap: 8px; } .win-reward span { font: 400 54px/1 var(--display); color: var(--gold); text-shadow: 0 4px 0 rgba(0, 0, 0, .4), 0 0 40px rgba(255, 210, 74, .55); } .win-reward small { font: 700 14px var(--mono); letter-spacing: .2em; color: var(--muted); }
.win-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; } .win-actions .primary { grid-column: 1 / 3; font-size: 18px; padding: 16px; }
#confirm { z-index: 60; } #fatal { z-index: 120; background: #08130c; }

/* ---------------------------------------------------------------- toasts & ticker */
#toast-layer { position: fixed; left: 16px; bottom: 84px; z-index: 50; display: flex; flex-direction: column; gap: 8px; width: min(370px, calc(100vw - 32px)); pointer-events: none; }
.toast { padding: 10px 14px; border-radius: 14px; background: var(--glass2); border: 1px solid var(--line); backdrop-filter: blur(12px); font-size: 13.5px; line-height: 1.4; box-shadow: 0 10px 30px rgba(0, 0, 0, .4); animation: toast-in .45s var(--ease); transition: .45s; } .toast small { color: var(--muted); font-size: 12px; font-style: italic; }
.toast.out { opacity: 0; transform: translateX(-24px); } .toast.find { border-color: var(--gold); box-shadow: 0 10px 30px rgba(0, 0, 0, .4), 0 0 24px rgba(255, 210, 74, .25); } .toast.buy { border-color: var(--green); } .toast.hint { border-style: dashed; }
@keyframes toast-in { from { opacity: 0; transform: translateX(-40px) scale(.95); } }
.ticker { position: fixed; left: 0; right: 0; bottom: 0; height: 28px; z-index: 26; overflow: hidden; background: rgba(4, 11, 7, .85); border-top: 1px solid var(--line); display: flex; align-items: center; }
body.playing .ticker { display: none; }
.ticker-track { display: flex; width: max-content; animation: tick 60s linear infinite; } .tk { display: flex; gap: 8px; align-items: baseline; padding: 0 22px; font: 500 12px var(--mono); color: var(--muted); white-space: nowrap; } .tk b { color: var(--ink); } .tk i { font-style: normal; font-weight: 700; } .tk i.up { color: var(--green); } .tk i.dn { color: var(--pink); }
.tk i.up::before { content: '▲ '; font-size: 9px; } .tk i.dn::before { content: '▼ '; font-size: 9px; }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 900px) {
  #menu { flex-direction: column; justify-content: center; padding: 0 22px 40px; background: linear-gradient(180deg, rgba(5, 14, 9, .55), rgba(5, 14, 9, .85)); gap: 14px; }
  .menu-card { display: none; } .menu-col { width: min(420px, 100%); gap: 10px; } .mbtn { height: 46px; } .mbtn.primary { height: 56px; } .menu-foot { display: none; }
  .hud-loc { width: 244px; padding: 10px 12px; gap: 7px; left: 10px; top: 10px; } .loc-head b { font-size: 14px; } .balance b { font-size: 24px; } .coin { width: 24px; height: 24px; font-size: 12px; } .hud-stats > div { padding: 5px 7px; } .hud-stats b { font-size: 12px; } .live { display: none; }
  .objective { right: 10px; top: 10px; width: 190px; padding: 8px 10px; } .objective b { font-size: 12px; } .scanner { left: 10px; top: 218px; }
  .farmer { right: 10px; bottom: auto; top: 96px; width: 190px; padding: 8px 10px; gap: 0; } .farmer-top > b { font-size: 16px; }
  .bl { display: none; } .combo { bottom: 175px; } .onboard { top: auto; bottom: 214px; font-size: 12.5px; padding: 8px 12px; } .onboard.show { animation: none; transform: translate(-50%, 0); }
  #toast-layer { left: 10px; right: 10px; bottom: auto; top: 150px; width: auto; } .toast { font-size: 12.5px; }
  .sheet-head { flex-wrap: wrap; } .win-grid { grid-template-columns: repeat(2, 1fr); } .item { grid-template-columns: auto 1fr; } .item .buy { grid-column: 1 / 3; } .modal { padding: 22px 18px; }
  .t-top { top: 98px; } .banner { top: 18%; }
}
@media (max-height: 640px) and (min-width: 901px) {
  .hud-loc { padding: 10px 14px; gap: 7px; } .scanner { top: 244px; } .news { top: 108px; } .farmer { padding: 9px 12px; gap: 8px; } .ring { width: 40px; height: 40px; } .menu-card .capsule-stage { height: 120px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } .ticker-track { animation: none; } }

/* online layer: chat only while playing; toasts sit above it */
body:not(.playing) .hsc { display: none !important; }
@media(max-height:850px){.menu-col{gap:9px}.logo{font-size:clamp(52px,7vw,82px)}.menu-list{gap:6px;margin-top:3px}.mbtn{height:42px;font-size:15px}.mbtn.primary{height:51px;font-size:18px}#character-host .character-trigger{margin-top:3px;padding:6px 10px}.character-trigger-portrait{flex-basis:45px;height:45px}.menu-foot{font-size:10px}}
@media(max-height:690px){#menu{overflow-y:auto;align-items:flex-start;padding-top:20px;padding-bottom:55px}.menu-card{margin-top:60px}}
#toast-layer { bottom: 150px; }
