@font-face { font-family: Inter; font-style: normal; font-weight: 300 800; font-display: swap; src: url(fonts/inter-normal-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Inter; font-style: normal; font-weight: 300 800; font-display: swap; src: url(fonts/inter-normal-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C4, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Saira; font-style: italic; font-weight: 100 900; font-stretch: 50% 125%; font-display: swap; src: url(fonts/saira-italic-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Saira; font-style: normal; font-weight: 100 900; font-stretch: 50% 125%; font-display: swap; src: url(fonts/saira-normal-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --ice: #eaf2ff; --dim: #93a3c0; --dim2: #5d6c88; --mint: #46ffb0; --mint2: #3cf0a8; --red: #ff4d6d; --gold: #ffc84a; --sand: #d8c393;
  --glass: rgba(10, 16, 30, 0.58); --edge: rgba(190, 215, 255, 0.14);
  --disp: Saira, 'Arial Narrow', system-ui, sans-serif; --body: Inter, system-ui, sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #050810; color: var(--ice); font-family: var(--body); -webkit-font-smoothing: antialiased; user-select: none; -webkit-user-select: none; }
#gl { position: fixed; inset: 0; width: 100vw; height: 100vh; display: block; }
#ui { position: fixed; inset: 0; pointer-events: none; }
#ui > * { pointer-events: auto; }
#hud { position: absolute; inset: 0; pointer-events: none; }
#hud[hidden], [hidden] { display: none !important; }
button { font-family: inherit; color: inherit; cursor: pointer; }
kbd { font-family: var(--body); font-size: 10px; font-weight: 600; padding: 1px 5px; border: 1px solid rgba(255, 255, 255, 0.25); border-bottom-width: 2px; border-radius: 4px; opacity: 0.75; }

.hud-top { position: absolute; left: 0; right: 0; top: 0; display: flex; align-items: center; gap: 18px; padding: 14px 22px; background: linear-gradient(180deg, rgba(4, 7, 14, 0.75), rgba(4, 7, 14, 0)); pointer-events: auto; }
.hud-lv span { display: block; font-family: var(--disp); font-weight: 600; font-stretch: 120%; font-size: 11px; letter-spacing: 0.24em; color: var(--dim); text-transform: uppercase; }
.hud-lv b { font-family: var(--disp); font-weight: 800; font-style: italic; font-stretch: 115%; font-size: 24px; letter-spacing: 0.02em; }
.hud-eq { margin-left: auto; text-align: right; }
.hud-eq span { display: block; font-family: var(--disp); font-weight: 600; font-stretch: 120%; font-size: 10px; letter-spacing: 0.24em; color: var(--dim); }
.hud-eq b { font-family: var(--disp); font-weight: 800; font-style: italic; font-stretch: 105%; font-size: 30px; font-variant-numeric: tabular-nums; line-height: 1; }
.hud-eq em { display: block; font-style: normal; font-family: var(--disp); font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; }
.up { color: var(--mint); } .dn { color: var(--red); }
.hud-time { position: relative; width: 52px; height: 52px; }
.hud-time svg { width: 52px; height: 52px; transform: rotate(-90deg); }
.hud-time .trk { fill: none; stroke: rgba(255, 255, 255, 0.1); stroke-width: 3; }
.hud-time .arc { fill: none; stroke: var(--ice); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 119.4; transition: stroke 0.3s; }
.hud-time.late .arc { stroke: var(--red); }
.hud-time b { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--disp); font-weight: 800; font-size: 18px; font-variant-numeric: tabular-nums; }
.hud-goal { display: flex; gap: 6px; align-items: center; font-family: var(--disp); font-weight: 700; font-size: 12px; color: var(--dim); }
.hud-goal i { display: inline-flex; align-items: center; gap: 3px; font-style: normal; padding: 3px 8px; border: 1px solid var(--edge); border-radius: 999px; }
.hud-goal i.ok { color: var(--gold); border-color: rgba(255, 200, 74, 0.5); box-shadow: 0 0 14px rgba(255, 200, 74, 0.25); }
.hud-pause { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--edge); background: var(--glass); font-family: var(--disp); font-weight: 800; backdrop-filter: blur(10px); }

.combo { position: absolute; left: 50%; top: 84px; transform: translateX(-50%); font-family: var(--disp); font-weight: 900; font-style: italic; font-stretch: 118%; font-size: 30px; color: var(--gold); text-shadow: 0 0 24px rgba(255, 200, 74, 0.6); opacity: 0; transition: opacity 0.3s; pointer-events: none; }
.combo.on { opacity: 1; animation: pop 0.35s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes pop { from { transform: translateX(-50%) scale(1.5); } }

#newsBox { position: absolute; left: 50%; top: 124px; transform: translateX(-50%); width: min(560px, 92vw); display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.news { display: flex; gap: 12px; align-items: center; padding: 11px 16px; background: rgba(8, 14, 28, 0.82); border: 1px solid var(--edge); border-left: 3px solid var(--gold); border-radius: 12px; backdrop-filter: blur(12px); animation: newsIn 0.45s cubic-bezier(.2, .9, .2, 1); box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.9); }
.news .ic { font-family: var(--disp); font-weight: 900; font-size: 11px; letter-spacing: 0.14em; color: #1a1205; background: var(--gold); padding: 3px 7px; border-radius: 5px; }
.news p { margin: 0; font-size: 14.5px; font-weight: 500; }
.news.out { animation: newsOut 0.4s forwards; }
@keyframes newsIn { from { opacity: 0; transform: translateY(-14px) scale(0.98); } }
@keyframes newsOut { to { opacity: 0; transform: translateY(-10px); } }

#tags { position: absolute; inset: 0; pointer-events: none; }
.tag { position: absolute; right: 12px; transform: translateY(-50%); font-family: var(--disp); font-weight: 700; font-size: 12.5px; padding: 3px 9px; border-radius: 6px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tag.price { background: var(--ice); color: #08101e; box-shadow: 0 0 18px rgba(234, 242, 255, 0.45); }
.tag.entry { background: rgba(255, 211, 107, 0.92); color: #201400; }
.tag.liq { background: rgba(255, 77, 109, 0.9); color: #fff; }
.tag.piv { background: rgba(216, 195, 147, 0.25); color: var(--sand); border: 1px solid rgba(216, 195, 147, 0.5); }

.pos { position: absolute; left: 22px; top: 96px; width: 250px; padding: 14px 16px; background: var(--glass); border: 1px solid var(--edge); border-radius: 16px; backdrop-filter: blur(14px); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9); pointer-events: none; }
.pos .hd { display: flex; justify-content: space-between; align-items: baseline; font-family: var(--disp); font-weight: 800; font-style: italic; font-size: 18px; letter-spacing: 0.04em; }
.pos .hd small { font-style: normal; font-size: 12px; color: var(--dim); letter-spacing: 0.1em; }
.pos .pnl { font-family: var(--disp); font-weight: 900; font-style: italic; font-size: 34px; line-height: 1.05; margin: 6px 0 2px; font-variant-numeric: tabular-nums; }
.pos .row { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--dim); margin-top: 4px; font-variant-numeric: tabular-nums; }
.pos .row b { color: var(--ice); font-weight: 600; }
.pos .danger { height: 5px; border-radius: 4px; background: rgba(255, 255, 255, 0.08); margin-top: 10px; overflow: hidden; }
.pos .danger i { display: block; height: 100%; background: linear-gradient(90deg, var(--mint), var(--gold), var(--red)); border-radius: 4px; transition: width 0.15s; }

.hud-bot { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px 22px calc(18px + env(safe-area-inset-bottom)); display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; background: linear-gradient(0deg, rgba(4, 7, 14, 0.85), rgba(4, 7, 14, 0)); pointer-events: auto; }
.items { display: flex; gap: 8px; }
.item { position: relative; width: 58px; height: 58px; border-radius: 14px; border: 1px solid var(--edge); background: var(--glass); backdrop-filter: blur(10px); display: grid; place-items: center; transition: transform 0.12s, border-color 0.15s; }
.item svg { width: 28px; height: 28px; stroke: var(--ice); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.item b { position: absolute; right: 4px; bottom: 3px; font-family: var(--disp); font-weight: 800; font-size: 12px; }
.item kbd { position: absolute; left: 4px; top: 3px; font-size: 9px; padding: 0 4px; }
.item:disabled { opacity: 0.3; }
.item.act { border-color: var(--gold); box-shadow: 0 0 22px rgba(255, 200, 74, 0.4); }
.item:hover:not(:disabled) { transform: translateY(-2px); border-color: rgba(255, 255, 255, 0.4); }
.trade { display: flex; align-items: flex-end; gap: 12px; }
.tb { border: 0; border-radius: 18px; padding: 0 22px; height: 82px; min-width: 150px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 2px; transition: transform 0.08s, filter 0.15s, box-shadow 0.2s; }
.tb b { font-family: var(--disp); font-weight: 900; font-style: italic; font-stretch: 118%; font-size: 26px; letter-spacing: 0.04em; }
.tb span { font-size: 11.5px; font-weight: 600; opacity: 0.8; }
.tb:active { transform: scale(0.96); }
.tb.long { background: linear-gradient(160deg, #5dffbe, #12b877); color: #02170c; box-shadow: 0 16px 40px -14px rgba(70, 255, 176, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.5); }
.tb.short { background: linear-gradient(160deg, #ff8a9d, #d12846); color: #200005; box-shadow: 0 16px 40px -14px rgba(255, 77, 109, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.45); }
.tb.close { height: 46px; min-width: 210px; background: var(--glass); color: var(--ice); border: 1px solid var(--edge); backdrop-filter: blur(10px); }
.tb.close b { font-size: 17px; }
.tb.close:not(:disabled) { border-color: rgba(255, 211, 107, 0.7); box-shadow: 0 0 22px rgba(255, 211, 107, 0.25); }
.tb:disabled { opacity: 0.35; filter: grayscale(0.5); }
.tb.held { filter: brightness(1.15); outline: 2px solid rgba(255, 255, 255, 0.8); outline-offset: 3px; }
.mid { display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
.levs { display: flex; gap: 6px; justify-content: center; }
.levs button { min-width: 44px; height: 30px; padding: 0 8px; border-radius: 9px; border: 1px solid var(--edge); background: var(--glass); font-family: var(--disp); font-weight: 800; font-size: 13px; backdrop-filter: blur(10px); }
.levs button.on { background: var(--ice); color: #08101e; }
.levs button:disabled { opacity: 0.25; }

.sepp { position: absolute; left: 22px; bottom: 130px; max-width: 360px; display: flex; gap: 12px; align-items: center; padding: 10px 16px 10px 10px; background: rgba(8, 14, 28, 0.82); border: 1px solid var(--edge); border-radius: 18px; backdrop-filter: blur(12px); animation: newsIn 0.4s cubic-bezier(.2, .9, .2, 1); pointer-events: none; }
.sepp p { margin: 0; font-size: 14.5px; font-weight: 500; line-height: 1.35; }
.emb { flex: 0 0 46px; width: 46px; height: 46px; border-radius: 50%; background: radial-gradient(circle at 50% 35%, #26324d, #0c1220); border: 1.5px solid var(--gold); box-shadow: 0 0 16px rgba(255, 200, 74, 0.35); position: relative; overflow: hidden; }
.emb::after { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 46 46' fill='none' stroke='%23ffc84a' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20 Q23 14 34 20'/%3E%3Cpath d='M15 20 Q15 11 23 10 Q31 11 31 20'/%3E%3Cpath d='M30 13 Q36 6 37 3'/%3E%3Cpath d='M15 23 Q14 31 18 35 Q23 39 28 35 Q32 31 31 23'/%3E%3Cpath d='M18 29 Q23 26 28 29'/%3E%3Ccircle cx='19.5' cy='25' r='0.8' fill='%23ffc84a'/%3E%3Ccircle cx='26.5' cy='25' r='0.8' fill='%23ffc84a'/%3E%3Cpath d='M17 33 Q23 41 29 33'/%3E%3C/svg%3E") center/100% no-repeat; }

#screen { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; overflow: auto; }
#screen:empty { display: none; }
#screen:has(.map, .brief, .shop, .achs, .res, .pause, .tut) { background: radial-gradient(120% 90% at 50% 40%, rgba(5, 8, 16, 0.55), rgba(5, 8, 16, 0.88)); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.scr { width: min(1100px, 100%); animation: scrIn 0.5s cubic-bezier(.2, .9, .2, 1); }
@keyframes scrIn { from { opacity: 0; transform: translateY(16px); } }
.logo { text-align: center; }
.logo .t { font-family: var(--disp); font-weight: 300; font-stretch: 125%; letter-spacing: 0.62em; font-size: clamp(14px, 2.4vw, 24px); color: var(--ice); padding-left: 0.62em; opacity: 0.9; }
.logo .s { font-family: var(--disp); font-weight: 900; font-style: italic; font-stretch: 112%; font-size: clamp(78px, 15vw, 190px); line-height: 0.82; letter-spacing: -0.01em; background: linear-gradient(180deg, #ffffff 0%, #d6e8ff 46%, #7fb6ff 54%, #46ffb0 100%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 20px 40px rgba(70, 255, 176, 0.25)); }
.logo .mark { display: inline-block; width: 0.42em; height: 0.62em; margin-left: 0.05em; vertical-align: 0.02em; background: linear-gradient(180deg, #8affd2, #12b877); border-radius: 0.05em; box-shadow: 0 0 30px rgba(70, 255, 176, 0.7); position: relative; }
.logo .mark::before { content: ''; position: absolute; left: 50%; width: 0.05em; top: -0.12em; bottom: -0.12em; transform: translateX(-50%); background: #8affd2; }
.logo .tag2 { margin-top: 18px; font-size: clamp(14px, 1.8vw, 18px); color: var(--dim); letter-spacing: 0.04em; }
.title-menu { margin: 46px auto 0; display: flex; flex-direction: column; gap: 12px; width: min(380px, 90vw); }
.btn { font-family: var(--disp); font-weight: 800; font-style: italic; font-stretch: 112%; font-size: 18px; letter-spacing: 0.06em; padding: 16px 22px; border-radius: 14px; border: 1px solid var(--edge); background: var(--glass); backdrop-filter: blur(12px); transition: transform 0.12s, border-color 0.15s, background 0.15s, box-shadow 0.2s; text-transform: uppercase; }
.btn:hover, .btn:focus-visible { transform: translateY(-2px); border-color: rgba(255, 255, 255, 0.45); outline: 0; }
.btn.pri { background: linear-gradient(120deg, #46ffb0, #22c48a); color: #02170c; border: 0; box-shadow: 0 18px 46px -16px rgba(70, 255, 176, 0.8); }
.btn.gold { background: linear-gradient(120deg, #ffd977, #f0a72a); color: #241500; border: 0; box-shadow: 0 18px 46px -16px rgba(255, 200, 74, 0.7); }
.btn.sm { font-size: 13px; padding: 10px 14px; border-radius: 11px; }
.press { margin-top: 26px; text-align: center; font-family: var(--disp); font-weight: 600; font-stretch: 120%; letter-spacing: 0.32em; font-size: 12px; color: var(--dim); animation: blink 1.8s ease-in-out infinite; }
@keyframes blink { 50% { opacity: 0.3; } }
.top { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.top h2 { margin: 0; flex: 1; font-family: var(--disp); font-weight: 900; font-style: italic; font-stretch: 115%; font-size: 34px; letter-spacing: 0.01em; }
.chip { font-family: var(--disp); font-weight: 800; font-size: 15px; padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(255, 200, 74, 0.45); color: var(--gold); background: rgba(255, 200, 74, 0.08); font-variant-numeric: tabular-nums; }
.chip.st { color: var(--ice); border-color: var(--edge); background: var(--glass); }
.map { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.loc { position: relative; text-align: left; padding: 20px; min-height: 196px; border-radius: 20px; border: 1px solid var(--edge); background: linear-gradient(160deg, rgba(20, 30, 54, 0.75), rgba(8, 12, 24, 0.75)); backdrop-filter: blur(14px); overflow: hidden; transition: transform 0.18s cubic-bezier(.2, .8, .2, 1), border-color 0.18s, box-shadow 0.2s; display: flex; flex-direction: column; gap: 6px; }
.loc::before { content: ''; position: absolute; inset: auto -20% -40% -20%; height: 70%; background: radial-gradient(60% 60% at 50% 100%, var(--c, #46ffb0), transparent 70%); opacity: 0.22; transition: opacity 0.3s; }
.loc:hover:not(:disabled), .loc:focus-visible { transform: translateY(-4px); border-color: rgba(255, 255, 255, 0.5); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9); outline: 0; }
.loc:hover::before { opacity: 0.4; }
.loc .n { font-family: var(--disp); font-weight: 600; font-size: 12px; letter-spacing: 0.24em; color: var(--dim); }
.loc h3 { margin: 0; font-family: var(--disp); font-weight: 900; font-style: italic; font-stretch: 112%; font-size: 26px; line-height: 1; }
.loc .pl { color: var(--dim); font-size: 13px; }
.loc .cn { margin-top: auto; display: flex; justify-content: space-between; align-items: center; position: relative; }
.loc .cn b { font-family: var(--disp); font-weight: 800; font-size: 16px; }
.loc .cn small { color: var(--dim); font-size: 12px; }
.stars { display: flex; gap: 3px; }
.stars svg { width: 18px; height: 18px; fill: rgba(255, 255, 255, 0.12); }
.stars svg.on { fill: var(--gold); filter: drop-shadow(0 0 6px rgba(255, 200, 74, 0.7)); }
.loc:disabled { opacity: 0.45; cursor: not-allowed; }
.loc .lock { position: absolute; right: 16px; top: 16px; font-size: 12px; color: var(--dim); }
.vol { display: flex; gap: 2px; }
.vol i { width: 4px; height: 12px; border-radius: 2px; background: rgba(255, 255, 255, 0.12); }
.vol i.on { background: var(--red); }
.row2 { display: flex; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.brief { max-width: 640px; margin: 0 auto; text-align: center; }
.brief .n { font-family: var(--disp); font-weight: 600; letter-spacing: 0.3em; font-size: 13px; color: var(--dim); }
.brief h2 { font-family: var(--disp); font-weight: 900; font-style: italic; font-stretch: 112%; font-size: clamp(44px, 7vw, 76px); margin: 6px 0; line-height: 0.95; }
.brief p { color: var(--dim); font-size: 16px; line-height: 1.6; }
.goals { display: flex; justify-content: center; gap: 12px; margin: 20px 0 26px; }
.goals div { padding: 12px 18px; border: 1px solid var(--edge); border-radius: 14px; background: var(--glass); backdrop-filter: blur(10px); }
.goals svg { width: 16px; height: 16px; fill: var(--gold); vertical-align: -2px; }
.goals b { font-family: var(--disp); font-weight: 800; font-size: 18px; margin-left: 4px; }
.keys { margin-top: 22px; font-size: 12.5px; color: var(--dim2); line-height: 2; }
.res { text-align: center; max-width: 720px; margin: 0 auto; }
.res .big { font-family: var(--disp); font-weight: 900; font-style: italic; font-stretch: 110%; font-size: clamp(64px, 12vw, 130px); line-height: 0.9; font-variant-numeric: tabular-nums; }
.res .lbl { font-family: var(--disp); font-weight: 600; letter-spacing: 0.3em; font-size: 13px; color: var(--dim); }
.res .stars { justify-content: center; margin: 18px 0; gap: 10px; }
.res .stars svg { width: 54px; height: 54px; transform: scale(0.6); opacity: 0.5; transition: transform 0.4s cubic-bezier(.2, 1.8, .4, 1), opacity 0.3s; }
.res .stars svg.on { transform: scale(1); opacity: 1; }
.res .stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 18px 0; }
.res .stats div { padding: 12px; border: 1px solid var(--edge); border-radius: 14px; background: var(--glass); backdrop-filter: blur(10px); }
.res .stats span { display: block; font-size: 11px; letter-spacing: 0.14em; color: var(--dim); text-transform: uppercase; }
.res .stats b { font-family: var(--disp); font-weight: 800; font-size: 20px; font-variant-numeric: tabular-nums; }
.loot { display: inline-flex; align-items: center; gap: 12px; margin: 6px 0 18px; padding: 12px 18px; border-radius: 16px; border: 1px solid rgba(255, 200, 74, 0.5); background: rgba(255, 200, 74, 0.08); animation: scrIn 0.6s 0.6s both; }
.loot svg { width: 28px; height: 28px; stroke: var(--gold); fill: none; stroke-width: 1.6; }
.btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.shop { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.shop h3 { font-family: var(--disp); font-weight: 800; font-style: italic; font-size: 20px; margin: 0 0 12px; letter-spacing: 0.04em; }
.si { display: flex; align-items: center; gap: 14px; padding: 14px; border: 1px solid var(--edge); border-radius: 16px; background: var(--glass); backdrop-filter: blur(12px); margin-bottom: 10px; }
.si .ico { flex: 0 0 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.05); }
.si .ico svg { width: 26px; height: 26px; stroke: var(--ice); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.si .tx { flex: 1; }
.si .tx b { font-family: var(--disp); font-weight: 800; font-size: 16px; }
.si .tx p { margin: 2px 0 0; color: var(--dim); font-size: 12.5px; line-height: 1.4; }
.si .lv { font-size: 12px; color: var(--mint); margin-top: 3px; }
.achs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.ach { padding: 14px; border: 1px solid var(--edge); border-radius: 16px; background: var(--glass); backdrop-filter: blur(12px); opacity: 0.45; }
.ach.on { opacity: 1; border-color: rgba(255, 200, 74, 0.5); }
.ach b { font-family: var(--disp); font-weight: 800; font-size: 16px; }
.ach p { margin: 4px 0 0; font-size: 12.5px; color: var(--dim); }
#toasts { position: absolute; right: 22px; top: 90px; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.toast { display: flex; gap: 12px; align-items: center; padding: 12px 16px; border-radius: 14px; background: rgba(8, 14, 28, 0.9); border: 1px solid rgba(255, 200, 74, 0.55); backdrop-filter: blur(12px); animation: toastIn 0.5s cubic-bezier(.2, 1.4, .4, 1); box-shadow: 0 0 30px rgba(255, 200, 74, 0.2); }
.toast svg { width: 30px; height: 30px; fill: var(--gold); }
.toast b { display: block; font-family: var(--disp); font-weight: 800; font-size: 15px; }
.toast span { font-size: 12px; color: var(--dim); }
@keyframes toastIn { from { opacity: 0; transform: translateX(30px); } }
.pause { text-align: center; }
.pause h2 { font-family: var(--disp); font-weight: 900; font-style: italic; font-size: 60px; margin: 0 0 20px; }
.daily-best { color: var(--gold); font-family: var(--disp); font-weight: 700; margin-top: 4px; font-size: 14px; }
.tut { max-width: 620px; margin: 0 auto; }
.tut ol { padding-left: 20px; line-height: 1.75; color: var(--ice); font-size: 15px; }
.tut li b { color: var(--mint); }

@media (max-width: 900px) {
  .map { grid-template-columns: 1fr 1fr; }
  .shop, .achs { grid-template-columns: 1fr; }
  .res .stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .hud-top { padding: 10px 12px; gap: 10px; flex-wrap: wrap; }
  .hud-goal { display: none; }
  .hud-eq b { font-size: 22px; }
  .hud-lv b { font-size: 18px; }
  .pos { left: 10px; top: 76px; width: 200px; padding: 10px 12px; }
  .pos .pnl { font-size: 24px; }
  .hud-bot { flex-direction: column; align-items: stretch; padding: 10px 10px calc(10px + env(safe-area-inset-bottom)); gap: 10px; }
  .items { justify-content: center; }
  .item { width: 48px; height: 48px; }
  .trade { gap: 8px; }
  .tb { min-width: 0; flex: 1; height: 70px; padding: 0 8px; }
  .tb b { font-size: 20px; }
  .tb.close { min-width: 0; }
  .mid { flex: 1.2; }
  .levs button { min-width: 0; flex: 1; padding: 0 4px; font-size: 12px; }
  .sepp { left: 10px; right: 10px; bottom: 210px; max-width: none; }
  .map { grid-template-columns: 1fr; }
  .tag { font-size: 11px; }
  kbd { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

.count { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%) scale(0.6); font-family: var(--disp); font-weight: 900; font-style: italic; font-stretch: 118%; font-size: clamp(90px, 16vw, 200px); color: var(--ice); text-shadow: 0 0 60px rgba(150, 200, 255, 0.6); opacity: 0; pointer-events: none; }
.count.on { animation: countIn 0.9s cubic-bezier(.2, .9, .2, 1) forwards; }
.count.go { color: var(--mint); text-shadow: 0 0 80px rgba(70, 255, 176, 0.8); }
@keyframes countIn { 0% { opacity: 0; transform: translate(-50%, -50%) scale(1.6); } 25% { opacity: 1; transform: translate(-50%, -50%) scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -50%) scale(0.85); } }
.floater { position: absolute; transform: translate(-50%, -50%); font-family: var(--disp); font-weight: 900; font-style: italic; font-size: 34px; pointer-events: none; text-shadow: 0 0 24px currentColor; animation: floatUp 1.8s cubic-bezier(.2, .8, .2, 1) forwards; font-variant-numeric: tabular-nums; }
@keyframes floatUp { 0% { opacity: 0; transform: translate(-50%, -30%) scale(0.6); } 15% { opacity: 1; transform: translate(-50%, -60%) scale(1.15); } 100% { opacity: 0; transform: translate(-50%, -260%) scale(1); } }
