@font-face { font-family: 'Inter'; src: url(../assets/fonts/Inter.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url(../assets/fonts/Poppins-Medium.woff2) format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url(../assets/fonts/Poppins-SemiBold.woff2) format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url(../assets/fonts/Poppins-Bold.woff2) format('woff2'); font-weight: 700; font-display: swap; }
:root { --bg: #f6f1e7; --card: #fffdf8; --line: #e6dccb; --ink: #2a2530; --mut: #6d6470; --accent: #ffb547; --accink: #33200a; --teal: #177a78; --star: #8a5cd6; --dan: #c23b3b; --gold: #a86a00; --well: #eee5d6; --shadow: 0 18px 60px rgba(10, 6, 24, .4); --sat: env(safe-area-inset-top, 0px); --sab: env(safe-area-inset-bottom, 0px); --sal: env(safe-area-inset-left, 0px); --sar: env(safe-area-inset-right, 0px); color-scheme: light; }
[data-theme=dark] { --bg: #1a1626; --card: #251f35; --line: #3a3250; --ink: #f6f0ff; --mut: #b0a5c4; --accent: #ffb547; --accink: #33200a; --teal: #7de8e0; --star: #cda8ff; --dan: #ff8080; --gold: #ffd37a; --well: #15111f; color-scheme: dark; }
* { box-sizing: border-box; margin: 0; }
html, body { height: 100%; overflow: hidden; background: #07060c; color: var(--ink); font: 400 15px/1.45 Inter, system-ui, sans-serif; -webkit-tap-highlight-color: transparent; overscroll-behavior: none; user-select: none; -webkit-user-select: none; }
h1, h2, h3, .btn, .depth, .pill b { font-family: Poppins, system-ui, sans-serif; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; touch-action: manipulation; }
button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
#cv { position: fixed; inset: 0; width: 100%; height: 100%; touch-action: none; outline: none; }
.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.btn { min-height: 44px; padding: 8px 16px; border-radius: 14px; background: var(--well); border: 1px solid var(--line); font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; transition: filter .16s, background .16s; }
.btn:hover:not(:disabled) { filter: brightness(1.07); }
.btn:disabled { opacity: .5; cursor: default; }
.btn.pri { background: var(--accent); border-color: transparent; color: var(--accink); }
.btn.acc { background: var(--teal); border-color: transparent; color: var(--card); }
.btn.acc .cost, .btn.pri .cost { color: inherit; }
.btn.dan { color: var(--dan); }
.btn.big { min-height: 52px; padding: 10px 36px; font-size: 17px; }
kbd { font: 600 11px Inter, sans-serif; padding: 1px 6px; border-radius: 6px; background: rgba(0, 0, 0, .16); }
#hud { position: fixed; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s; color: #fff; }
.live #hud { opacity: 1; }
#hud button { pointer-events: auto; }
body:not(.live) #hud button { pointer-events: none; visibility: hidden; }
.hl { position: absolute; left: calc(16px + var(--sal)); top: calc(16px + var(--sat)); display: grid; gap: 6px; width: 210px; }
.bar { display: flex; align-items: center; gap: 8px; background: rgba(12, 9, 24, .62); border-radius: 12px; padding: 5px 10px 5px 8px; }
.bar .tr { position: relative; flex: 1; height: 18px; border-radius: 9px; background: rgba(255, 255, 255, .13); overflow: hidden; }
.bar i { position: absolute; inset: 0 auto 0 0; border-radius: 9px; transition: width .15s linear; }
.bar b { position: relative; display: block; text-align: center; font: 600 12px/18px Inter, sans-serif; font-variant-numeric: tabular-nums; text-shadow: 0 1px 3px #000, 0 0 2px #000; }
.fuel i { background: #f0a12e; } .fuel .ic { color: #ffc45e; } .hull i { background: #39a884; } .hull .ic { color: #6fe0bb; } .cargo i { background: #7a6fe0; } .cargo .ic { color: #b3abff; }
.bar.low { animation: low .8s infinite alternate; }
@keyframes low { to { background: rgba(190, 40, 40, .8); } }
.hc { position: absolute; left: 50%; top: calc(14px + var(--sat)); transform: translateX(-50%); text-align: center; text-shadow: 0 2px 8px rgba(0, 0, 0, .7); }
.depth { font-size: 28px; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pname { font-size: 13px; font-weight: 500; opacity: .9; }
.hr { position: absolute; right: calc(16px + var(--sar)); top: calc(16px + var(--sat)); display: flex; gap: 8px; align-items: center; }
#hud .pill { background: rgba(12, 9, 24, .62); color: #fff; border: 0; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 0 12px; height: 38px; border-radius: 19px; background: var(--card); border: 1px solid var(--line); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pill b { font-weight: 600; font-size: 15px; }
#hud .mon .ic { color: #ffd04f; } #hud .dst .ic { color: #d3b3ff; } .ph .pill:nth-of-type(1) .ic { color: var(--gold); } .ph .pill:nth-of-type(2) .ic { color: var(--star); }
.ib { width: 44px; height: 44px; border-radius: 14px; background: rgba(12, 9, 24, .62); display: grid; place-items: center; }
.items { position: absolute; left: 50%; bottom: calc(16px + var(--sab)); transform: translateX(-50%); display: flex; gap: 10px; }
.item { position: relative; width: 58px; height: 58px; border-radius: 18px; background: rgba(12, 9, 24, .68); display: grid; place-items: center; transition: background .16s; }
.item:hover { background: rgba(50, 40, 80, .85); }
.item .ic { width: 26px; height: 26px; }
.item b { position: absolute; right: 6px; bottom: 4px; font: 700 12px Inter, sans-serif; }
.item kbd { position: absolute; left: 5px; top: 5px; background: rgba(255, 255, 255, .16); font-size: 10px; padding: 0 5px; }
.item.none { opacity: .45; }
.item[data-k=fuel] .ic { color: #ffc45e; } .item[data-k=repair] .ic { color: #6fe0bb; } .item[data-k=bomb] .ic { color: #ff9d8a; } .item[data-k=recall] .ic { color: #9fd8ff; }
.ctx { position: absolute; left: 50%; bottom: calc(92px + var(--sab)); transform: translateX(-50%) translateY(10px); opacity: 0; visibility: hidden; transition: .2s; }
.ctx.on { opacity: 1; visibility: visible; transform: translateX(-50%); }
.ctx .btn { min-height: 50px; padding: 8px 22px; font-size: 16px; box-shadow: 0 6px 24px rgba(0, 0, 0, .35); }
.gauge { position: absolute; right: calc(22px + var(--sar)); top: 90px; bottom: 100px; width: 6px; border-radius: 3px; background: rgba(255, 255, 255, .2); }
.gl i { position: absolute; left: -3px; width: 12px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .5); } .gl i.lit { background: #7de8e0; } .gl i.wr { background: #ffb638; height: 8px; border-radius: 4px; }
.gm { position: absolute; left: -5px; width: 16px; height: 16px; margin-top: -8px; border-radius: 50%; background: #fff; border: 4px solid #e0693f; transition: top .2s linear; }
.bossbar { position: absolute; left: 50%; top: calc(76px + var(--sat)); width: min(520px, 70vw); transform: translateX(-50%); text-align: center; font: 600 15px Poppins, sans-serif; display: none; text-shadow: 0 2px 6px #000; }
.bossbar.on { display: block; } .bossbar .tr { height: 14px; margin-top: 4px; border-radius: 7px; background: rgba(12, 9, 24, .75); padding: 3px; } .bossbar i { display: block; height: 8px; border-radius: 4px; background: linear-gradient(90deg, #ff5a6a, #ffae5a); }
#hint { position: absolute; left: 50%; top: calc(130px + var(--sat)); transform: translateX(-50%) translateY(-8px); background: rgba(12, 9, 24, .82); padding: 10px 20px; border-radius: 18px; font-weight: 500; text-align: center; width: max-content; max-width: min(460px, calc(100vw - 72px)); text-wrap: balance; opacity: 0; transition: .25s; }
#hint.on { opacity: 1; transform: translateX(-50%); }
#joy { position: fixed; width: 120px; height: 120px; margin: -60px 0 0 -60px; border-radius: 50%; background: rgba(255, 255, 255, .08); border: 2px solid rgba(255, 255, 255, .22); pointer-events: none; opacity: 0; transition: opacity .15s; }
#joy.on { opacity: 1; } #joy i { position: absolute; left: 34px; top: 34px; width: 48px; height: 48px; border-radius: 50%; background: rgba(255, 255, 255, .4); }
#receipt { position: fixed; left: 50%; top: 24%; transform: translate(-50%, 16px) scale(.96); background: var(--bg); border-radius: 24px; padding: 20px 32px; text-align: center; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transition: .25s; pointer-events: none; max-width: calc(100vw - 32px); }
#receipt.on { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.rl { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 10px 0; } .rl span { display: flex; align-items: center; gap: 4px; font-weight: 600; } .rl img { width: 30px; height: 30px; }
.rt { display: flex; gap: 8px; align-items: center; justify-content: center; font: 700 28px Poppins, sans-serif; color: var(--gold); font-variant-numeric: tabular-nums; } .rt .ic { width: 28px; height: 28px; }
#toasts { position: fixed; right: calc(48px + var(--sar)); bottom: calc(24px + var(--sab)); display: grid; gap: 10px; pointer-events: none; z-index: 30; justify-items: end; }
.toast { display: flex; gap: 12px; align-items: center; background: var(--card); color: var(--ink); border: 1px solid var(--line); padding: 12px 18px 12px 14px; border-radius: 18px; box-shadow: 0 8px 30px rgba(0, 0, 0, .3); max-width: 320px; animation: tin .3s; transition: .3s; }
.toast .ic { width: 26px; height: 26px; color: var(--star); } .toast img { width: 36px; height: 36px; } .toast b, .toast span { display: block; } .toast span { font-size: 13px; color: var(--mut); } .toast.out { opacity: 0; transform: translateY(8px); }
@keyframes tin { from { opacity: 0; transform: translateY(14px); } }
#panel, #dlg { position: fixed; inset: 0; background: rgba(8, 5, 20, .6); display: none; place-items: center; z-index: 10; padding: calc(20px + var(--sat)) calc(20px + var(--sar)) calc(20px + var(--sab)) calc(20px + var(--sal)); }
#dlg { z-index: 20; } #panel.on, #dlg.on { display: grid; }
.sheet { width: min(1120px, 100%); height: min(800px, 100%); background: var(--bg); border-radius: 28px; box-shadow: var(--shadow); display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; grid-template-columns: minmax(0, 1fr); overflow: hidden; }
.ph { display: flex; align-items: center; gap: 10px; padding: 20px 28px 12px; } .ph h1 { font-size: 26px; font-weight: 700; margin-right: auto; white-space: nowrap; }
.tabs { display: flex; gap: 6px; padding: 4px 24px 14px; border-bottom: 1px solid var(--line); }
.tab { position: relative; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 14px; font-weight: 500; color: var(--mut); transition: background .16s; } .tab:hover { background: var(--well); } .tab.on { background: var(--ink); color: var(--bg); }
.tab em { position: absolute; top: 6px; right: 6px; width: 9px; height: 9px; border-radius: 50%; background: #f0702e; }
.pb { overflow-y: auto; padding: 22px 28px 28px; outline: none; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.pb h2 { font-size: 19px; font-weight: 600; margin: 30px 0 14px; } .pb h2:first-child { margin-top: 0; } .pb h2 small, .pb h3 small { font: 500 13px Inter, sans-serif; color: var(--mut); white-space: nowrap; }
.pf { display: flex; align-items: center; gap: 20px; padding: 14px 28px; border-top: 1px solid var(--line); background: var(--card); } .starts { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; color: var(--mut); font-size: 14px; } .starts > span { white-space: nowrap; } .chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { min-height: 40px; padding: 0 14px; border-radius: 20px; background: var(--well); border: 2px solid transparent; color: var(--ink); font-weight: 500; white-space: nowrap; } .chip.on { border-color: var(--teal); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 14px; } .grid.tight { grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 10px; } .list { display: grid; gap: 12px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 16px; } .card h3 { font-size: 16px; font-weight: 600; } .card p { font-size: 13.5px; color: var(--mut); }
.ico { width: 48px; height: 48px; border-radius: 15px; background: var(--well); display: grid; place-items: center; color: var(--teal); flex: none; } .ico .ic { width: 26px; height: 26px; } .ico img { width: 38px; height: 38px; } .ico.st { color: var(--star); } .tx { min-width: 0; flex: 1; }
.cost { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--gold); white-space: nowrap; } .cost.st { color: var(--star); } .cost .ic { width: 18px; height: 18px; }
.up { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 12px 14px; align-items: center; } .up .tx { grid-column: 2 / 4; } .up .pips { grid-column: 1 / 3; } .up .vals { grid-column: 1 / 3; grid-row: 3; } .up .btn { grid-column: 3; grid-row: 2 / 4; min-width: 112px; }
.pips { display: flex; gap: 5px; align-items: center; } .pips i { width: 22px; height: 8px; border-radius: 4px; background: var(--well); border: 1px solid var(--line); } .pips i.on { background: var(--teal); border-color: transparent; } .pips small { color: var(--mut); margin-left: 6px; white-space: nowrap; }
.vals { display: flex; gap: 4px 10px; flex-wrap: wrap; font-size: 13.5px; color: var(--mut); font-variant-numeric: tabular-nums; } .vals b { color: var(--teal); }
.sup, .con, .rel { display: flex; align-items: center; gap: 14px; } .sup .btn { min-width: 84px; } .rel { padding: 12px; } .rel.off { opacity: .62; } .con.done { border-color: var(--teal); box-shadow: inset 0 0 0 1px var(--teal); } .con .btn { min-width: 130px; }
.rew { display: grid; gap: 2px; justify-items: end; } .prog { height: 8px; border-radius: 4px; background: var(--well); margin: 7px 0 4px; overflow: hidden; } .prog i { display: block; height: 100%; border-radius: 4px; background: var(--teal); }
.planet { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; } .planet .tx { flex: 1 1 160px; } .planet small { color: var(--mut); } .planet .row { width: 100%; } .planet.lock { opacity: .65; } .row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.orb { width: 76px; height: 76px; border-radius: 50%; background: radial-gradient(circle at 32% 28%, var(--a), var(--b) 45%, var(--c)); display: grid; place-items: center; color: #fff; flex: none; } .orb.star { background: radial-gradient(circle at 35% 30%, #fff2a8, #c07bff 55%, #3b1d6f); } .orb .ic { width: 28px; height: 28px; }
.tag { min-height: 44px; display: inline-flex; align-items: center; color: var(--teal); font-weight: 600; }
.note { color: var(--mut); margin: 0 0 16px; max-width: 70ch; } .grid + .note { margin: 16px 0 0; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 10px; } .cell { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 12px 6px; display: grid; gap: 3px; justify-items: center; text-align: center; align-content: start; font-size: 13px; } .cell img { width: 46px; height: 46px; } .cell b { font-weight: 600; } .cell.off img { filter: brightness(0); opacity: .2; }
blockquote { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--star); border-radius: 14px; padding: 14px 18px; font-style: italic; }
.sets { display: grid; padding: 6px 20px; } .set { display: flex; justify-content: space-between; align-items: center; gap: 10px 16px; flex-wrap: wrap; padding: 13px 0; border-bottom: 1px solid var(--line); font-weight: 500; } .set:last-child { border: 0; } .seg { display: flex; background: var(--well); border-radius: 14px; padding: 4px; } .seg button { min-height: 40px; padding: 0 14px; border-radius: 11px; font-weight: 500; color: var(--mut); white-space: nowrap; } .seg .on { background: var(--card); color: var(--ink); box-shadow: 0 1px 5px rgba(0, 0, 0, .18); } input[type=range] { width: 190px; height: 32px; accent-color: var(--teal); }
.about { display: flex; gap: 18px; align-items: center; } .about > img { width: 72px; } .sig { display: flex; align-items: center; gap: 6px; margin-top: 4px; } .sig img { width: 20px; border-radius: 5px; }
#dlg .card { width: min(440px, 100%); max-height: 100%; overflow-y: auto; background: var(--bg); padding: 28px; text-align: center; display: grid; justify-items: center; gap: 12px; border-radius: 26px; box-shadow: var(--shadow); animation: tin .25s; } #dlg h2 { font-size: 24px; } #dlg p { font-size: 15px; text-wrap: balance; margin: 0; } #dlg canvas { width: 130px; height: 130px; } #dlg .row { justify-content: center; margin-top: 8px; } #dlg .btn { min-width: 120px; } .loot { display: flex; gap: 20px; font-size: 18px; } textarea { width: 100%; height: 110px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); color: var(--ink); padding: 12px; resize: none; user-select: text; -webkit-user-select: text; font: 13px monospace; }
#title { position: fixed; inset: 0; z-index: 15; display: grid; place-items: center; background: radial-gradient(circle at 50% 42%, rgba(8, 10, 30, .55), rgba(8, 6, 20, .88)); color: #fff; transition: opacity .5s, visibility .5s; } #title.off { opacity: 0; visibility: hidden; }
.tc { text-align: center; display: grid; justify-items: center; gap: 6px; padding-bottom: 40px; } .tc canvas { width: min(180px, 30vh); height: min(180px, 30vh); animation: bob 3s infinite ease-in-out; } .tc h1 { font-size: clamp(44px, 9vw, 84px); line-height: 1.1; font-weight: 600; letter-spacing: -.02em; } .tc h1 b { color: #ffb547; } .tc .sub { font-size: 18px; opacity: .9; margin-bottom: 20px; } @keyframes bob { 50% { transform: translateY(-10px); } }
.tn { position: absolute; bottom: calc(22px + var(--sab)); display: flex; gap: 8px; align-items: center; font-size: 13px; opacity: .85; } .tn img { width: 24px; border-radius: 6px; }
#hud .kys .ic { color: #ffd04f; }
#tut { position: fixed; left: 50%; top: calc(96px + var(--sat)); transform: translateX(-50%); z-index: 5; display: none; align-items: center; gap: 16px; background: var(--bg); border-radius: 22px; padding: 14px 18px 14px 14px; box-shadow: var(--shadow); width: max-content; max-width: min(620px, calc(100vw - 72px)); pointer-events: none; animation: fin .3s; }
.live #tut.on { display: flex; } #tut canvas { width: 60px; height: 60px; border-radius: 18px; background: var(--well); flex: none; } #tut small { color: var(--mut); font-weight: 600; } #tut b { display: block; font: 600 17px Poppins, sans-serif; } #tut p { font-size: 14.5px; color: var(--mut); } .tt { flex: 1; min-width: 200px; } #tut .sk { pointer-events: auto; padding: 6px 14px; } .ks { display: flex; gap: 6px; } .kc { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: var(--card); border: 1px solid var(--line); border-bottom-width: 4px; font: 700 16px Inter, sans-serif; animation: press 1.2s infinite; }
@keyframes fin { from { opacity: 0; } }
@keyframes press { 50% { transform: translateY(3px); border-bottom-width: 1px; } }
#hud:has(~ #tut.on) #hint { top: calc(250px + var(--sat)); } [data-tut=base] .ctx .btn, [data-tut=buy] .up .btn.acc { animation: pulse 1s infinite alternate; } @keyframes pulse { to { box-shadow: 0 0 0 6px rgba(125, 232, 224, .45); } }
.note.tutn { margin-bottom: 14px; background: var(--card); border: 2px solid var(--teal); border-radius: 16px; padding: 12px 16px; max-width: none; } .tutn b { color: var(--ink); } .note.more { margin-top: 24px; } .note.mk { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink); } .mk img { width: 34px; }
.sup.done { border-color: var(--teal); box-shadow: inset 0 0 0 1px var(--teal); } .sup.lock { opacity: .65; } .sup small { color: var(--mut); } .pt { cursor: pointer; } .pt.on { border-color: var(--teal); box-shadow: inset 0 0 0 1px var(--teal); } .pt img { width: 60px; height: 60px; } .pt:disabled { opacity: .55; }
.lines { list-style: none; padding: 0; display: grid; gap: 12px; text-align: left; width: 100%; } .lines li { display: flex; gap: 12px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; } .lines .ic { color: var(--teal); width: 24px; height: 24px; }
.chs { display: grid; gap: 10px; width: 100%; } .ch { display: flex; gap: 14px; align-items: center; text-align: left; padding: 10px 14px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); transition: border-color .16s; } .ch:hover:not(:disabled) { border-color: var(--teal); } .ch:disabled { opacity: .5; } .ch b, .ch small { display: block; } .ch small { color: var(--mut); font-size: 13.5px; } [hidden] { display: none !important; }
@media (max-width: 1080px) { .tab:not(.on) span { display: none; } }
@media (pointer: coarse) { kbd, .item kbd { display: none; } }
@media (max-width: 700px) {
  .hl { width: 132px; left: calc(10px + var(--sal)); top: calc(10px + var(--sat)); gap: 4px; } .bar { padding: 3px 7px 3px 6px; gap: 6px; } .bar .ic { width: 16px; height: 16px; } .bar .tr { height: 16px; } .bar b { line-height: 16px; font-size: 11px; }
  .hr { right: calc(10px + var(--sar)); top: calc(10px + var(--sat)); display: grid; grid-template-columns: auto auto; justify-items: end; gap: 5px; } .hr .ib { grid-column: 2; grid-row: 1 / 3; } #hud .pill { height: 30px; padding: 0 9px; } .pill b { font-size: 13px; } .pill .ic { width: 16px; height: 16px; }
  .hc { top: calc(94px + var(--sat)); left: calc(16px + var(--sal)); transform: none; text-align: left; } .depth { font-size: 24px; } #hint { top: calc(156px + var(--sat)); } .bossbar { top: calc(96px + var(--sat)); width: 52vw; } .gauge { right: calc(12px + var(--sar)); bottom: 170px; top: 100px; }
  .hr .kys { grid-column: 1; } .hr .ib { grid-row: 1 / 3; }
  #panel { padding: 0; } .sheet { height: 100%; border-radius: 0; grid-template-rows: auto minmax(0, 1fr) auto auto; padding: var(--sat) var(--sar) var(--sab) var(--sal); } .ph { padding: 12px 16px; border-bottom: 1px solid var(--line); gap: 6px; } .ph h1 { font-size: 20px; } .ph .pill { height: 32px; padding: 0 9px; } .tabs { order: 5; justify-content: space-around; padding: 6px 8px; border-top: 1px solid var(--line); border-bottom: 0; gap: 2px; background: var(--card); } .tab { flex: 1; padding: 0; min-width: 44px; } .tab span { display: none; } .tab .ic { width: 22px; height: 22px; } .pb { padding: 16px; } .pf { padding: 10px 16px; gap: 10px; } .pf .btn { margin-left: auto; min-height: 48px; padding: 8px 26px; } .starts > span { display: none; } .pf:has(.chips) { flex-direction: column; align-items: stretch; } .pf:has(.chips) .btn { margin: 0; } .chips { justify-content: center; width: 100%; gap: 6px; } .chip { padding: 0 10px; min-height: 44px; font-size: 14px; }
  .starts:empty { display: none; } .pf:has(.starts:empty) .btn { width: 100%; }
  .con { flex-wrap: wrap; } .con .btn { width: 100%; } #toasts { left: 16px; right: 16px; bottom: auto; top: calc(150px + var(--sat)); justify-items: center; }
  #tut { top: auto; bottom: calc(160px + var(--sab)); max-width: calc(100vw - 24px); width: calc(100vw - 24px); gap: 10px; padding: 10px; } #tut canvas { width: 44px; height: 44px; } .tt { min-width: 0; } #tut b { font-size: 15px; } #tut p { font-size: 13.5px; } .ks { display: none; } #hud:has(~ #tut.on) #hint { top: calc(176px + var(--sat)); }
  .items { gap: 6px; } .item { width: min(54px, 14.5vw); height: 54px; border-radius: 16px; }
  .tab { min-width: 36px; }
  .seg { flex-wrap: wrap; } input[type=range] { width: 150px; }
}
@media (max-height: 480px) { #tut { left: 12px; top: auto; bottom: 12px; transform: none; max-width: 264px; padding: 8px 12px; gap: 8px; flex-wrap: wrap; } #tut canvas, .ks { display: none !important; } .tt { min-width: 0; } #tut p { font-size: 13px; } .pf:has(.chips) { flex-direction: row; }  .items { left: auto; right: calc(44px + var(--sar)); transform: none; display: grid; grid-template-columns: 52px 52px; gap: 8px; } .item { width: 52px; height: 52px; } .ctx { bottom: calc(14px + var(--sab)); } #hint { top: 70px; } .gauge { top: 72px; bottom: 16px; } #receipt { top: 12%; } .tc { grid-template-columns: auto; padding-bottom: 20px; } .tc canvas { height: 22vh; width: 22vh; } .tc h1 { font-size: 40px; } .tc .sub { margin-bottom: 6px; } .tn { bottom: 6px; } #panel { padding: 0; } .sheet { border-radius: 0; height: 100%; } .ph { padding: 8px 16px 4px; } .tabs { padding: 2px 12px 6px; } .pf { padding: 6px 16px; } .pf .btn.big { min-height: 44px; } #toasts { bottom: auto; top: 70px; right: 16px; } .bossbar { top: 58px; } #dlg .card { padding: 18px; } #dlg canvas { width: 70px; height: 70px; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; } }
@media (max-width: 700px) and (min-height: 481px) { #tut { bottom: calc(88px + var(--sab)); } [data-tut=drive] #tut, [data-tut=down] #tut, [data-tut=home] #tut, [data-tut=base] #tut { bottom: calc(156px + var(--sab)); } }
@media (max-width: 480px) { #tut canvas { display: none; } #tut { padding: 10px 14px; } .sup { flex-wrap: wrap; } .sup .tx { flex: 1 1 60%; } .sup > .btn { width: 100%; justify-content: center; } }
.stc b { font-size: 17px; } .stc small { color: var(--mut); text-align: center; }
#ring { position: fixed; z-index: 4; display: none; border-radius: 18px; border: 2px solid #7de8e0; box-shadow: 0 0 0 200vmax rgba(8, 5, 18, .62); } #ring.on { display: block; }
#tut.tour { top: 50%; bottom: auto; left: 50%; transform: translate(-50%, -50%); display: none; flex-wrap: wrap; width: min(440px, calc(100vw - 24px)); max-width: none; padding: 18px; gap: 14px; pointer-events: auto; }
.live #tut.tour.on { display: flex; } #tut.tour canvas, #tut.tour .ks, #tut.tour .prog { display: none; } #tut.tour .tt { flex: 1 1 100%; } #tut.tour .lines { gap: 8px; margin-top: 10px; } #tut.tour .lines li { padding: 8px 12px; font-size: 14.5px; } #tut.tour .lines img { width: 36px; height: 36px; flex: none; border-radius: 10px; background: #3d3040; } #tut.tour .btn { flex: 1; justify-content: center; padding: 10px 14px; }
[data-tut] #tut.tour { top: 50%; bottom: auto; }
@media (max-height: 480px) { #tut.tour { width: 400px; padding: 10px 14px; gap: 8px; } #tut.tour .lines { gap: 4px; margin-top: 4px; } #tut.tour .lines li { padding: 3px 10px; font-size: 13px; } #tut.tour .lines img { width: 26px; height: 26px; } #tut.tour .btn { padding: 6px 12px; } }
#tut .lines .ln { display: block; font: 600 14px Poppins, sans-serif; }
@media (max-height: 480px) and (min-width: 640px) { [data-tut=bars] #tut.tour { left: 64%; } [data-tut=top] #tut.tour { left: 40%; } }
