:root { --bg:#05090f; --panel:#09101a; --panel-hi:#102634; --line:#267680; --line-dim:#17414a; --primary:#60e8d4; --primary-dim:#2c7470;
  --amber:#ffb840; --text:#d0dee8; --muted:#687c8c; --danger:#ff5c5c; --ok:#7cf098;
  --mono:"JetBrains Mono","Cascadia Mono","Fira Code","DejaVu Sans Mono","SF Mono",Menlo,Consolas,"Liberation Mono",monospace; }
[hidden] { display:none !important; }
* { box-sizing:border-box; -webkit-tap-highlight-color:transparent; }
html { background:var(--bg); } 
body { margin:0; min-height:100vh; color:var(--text); font:13px/1.55 var(--mono); }
a { color:var(--primary); text-decoration:none; border-bottom:1px dotted var(--primary-dim); }
a:hover { color:#fff; border-bottom-color:#fff; }
::selection { background:var(--primary-dim); color:#fff; }
:focus-visible { outline:2px solid var(--amber); outline-offset:2px; }

.sky { position:fixed; inset:0; z-index:0; pointer-events:none;
  background:radial-gradient(ellipse 80% 55% at 50% 118%, rgba(38,140,150,.45), transparent 70%),
             radial-gradient(ellipse 60% 40% at 85% 10%, rgba(60,40,120,.22), transparent 70%),
             linear-gradient(#03060b 0%, #06101a 55%, #0a2530 100%); }
.stars, .stars2 { position:absolute; left:0; top:0; width:1px; height:1px; }
.stars { animation:twinkle 5s ease-in-out infinite; } .stars2 { animation:twinkle 7s ease-in-out infinite reverse; }
@keyframes twinkle { 50% { opacity:.35; } }
.ridge { position:absolute; left:0; right:0; bottom:0; height:22vh; opacity:.9;
  background:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 200' preserveAspectRatio='none'><path d='M0 200V120l60-18 70 26 80-44 70 30 90-60 70 40 90-28 80 36 110-70 90 52 80-24 100 42 110-56 90 38 80-20 60 20 40-8v120z' fill='%2308131c'/><path d='M0 200v-60l90 20 100-34 90 30 110-40 120 34 100-26 110 32 120-30 90 24 110-22 70 12v90z' fill='%23050b12'/></svg>") center bottom/100% 100% no-repeat; }

#app { position:relative; z-index:1; min-height:100vh; display:flex; flex-direction:column; }
.bar { display:flex; align-items:center; gap:12px; padding:8px 14px; border-bottom:1px solid var(--line-dim); background:linear-gradient(rgba(9,16,26,.92),rgba(9,16,26,.72)); backdrop-filter:blur(4px); flex-wrap:wrap; }
.brand { display:flex; align-items:center; gap:10px; border:0; color:inherit; }
.brand svg { width:44px; height:32px; image-rendering:pixelated; filter:drop-shadow(0 0 6px rgba(96,232,212,.45)); }
.brand h1 { margin:0; font-size:15px; letter-spacing:.32em; font-weight:800; background:linear-gradient(90deg,#96ffeb,#3296eb); -webkit-background-clip:text; background-clip:text; color:transparent; }
.brand small { display:block; color:var(--muted); letter-spacing:.22em; font-size:9.5px; }
.tools { margin-left:auto; display:flex; flex-wrap:wrap; gap:6px; }
.btn { appearance:none; font:inherit; font-size:11px; letter-spacing:.12em; text-transform:uppercase; color:var(--muted); background:var(--panel); border:1px solid var(--line-dim); padding:6px 10px; border-radius:2px; cursor:pointer; transition:.12s; white-space:nowrap; display:inline-block; }
.btn:hover, .btn:focus-visible { color:var(--primary); border-color:var(--line); background:var(--panel-hi); box-shadow:0 0 10px rgba(96,232,212,.18); }
.btn.on { color:var(--primary); border-color:var(--primary-dim); }
.btn.hot { color:var(--amber); border-color:rgba(255,184,64,.45); }
.btn.big { padding:10px 18px; font-size:12px; }

main.stage { flex:1; width:100%; max-width:1040px; margin:0 auto; padding:18px 14px 24px; }
.bezel { position:relative; background:var(--panel); border:1px solid var(--line); box-shadow:0 0 0 1px #02050a,0 0 40px rgba(38,118,128,.28),inset 0 0 30px rgba(0,0,0,.6); }
.bezel .c { position:absolute; width:14px; height:14px; border:0 solid var(--primary); pointer-events:none; }
.c.tl { left:-3px; top:-3px; border-width:2px 0 0 2px; } .c.tr { right:-3px; top:-3px; border-width:2px 2px 0 0; }
.c.bl { left:-3px; bottom:-3px; border-width:0 0 2px 2px; } .c.br { right:-3px; bottom:-3px; border-width:0 2px 2px 0; }
.titlebar { display:flex; gap:10px; padding:4px 10px; font-size:10.5px; letter-spacing:.2em; color:var(--muted); border-bottom:1px solid var(--line-dim); background:rgba(5,9,15,.7); }
.titlebar .name { color:var(--primary-dim); } .titlebar .sp { flex:1; }
.chip { color:var(--amber); display:inline-flex; align-items:center; gap:6px; }
.chip::before { content:""; width:7px; height:7px; border-radius:50%; background:currentColor; box-shadow:0 0 8px currentColor; }
.chip.ok { color:var(--ok); }
.body { padding:22px 24px 26px; }
.body h2 { margin:26px 0 8px; font-size:13px; letter-spacing:.3em; color:var(--primary); }
.body > h2:first-child { margin-top:0; }
.body h3 { margin:16px 0 4px; font-size:11px; letter-spacing:.22em; color:var(--amber); }
.body p, .body li { max-width:72ch; margin:6px 0; }
.lead { font-size:15px; color:#fff; max-width:60ch !important; }
.muted { color:var(--muted); } .good { color:var(--ok); } .warn { color:var(--amber); } .bad { color:var(--danger); }
kbd, code { font:inherit; font-size:12px; color:var(--amber); border:1px solid var(--line-dim); padding:0 5px; background:var(--bg); }
.row { display:flex; flex-wrap:wrap; gap:8px; margin-top:16px; }
.kv { display:grid; grid-template-columns:auto 1fr; gap:3px 18px; margin:8px 0; } .kv > :nth-child(odd) { color:var(--muted); }
table { border-collapse:collapse; width:100%; margin:8px 0; font-size:12px; }
th, td { text-align:left; padding:5px 12px 5px 0; border-bottom:1px solid var(--line-dim); vertical-align:top; }
th { color:var(--muted); font-weight:400; letter-spacing:.12em; }
.scroll { overflow-x:auto; }
.card { border:3px double var(--line); background:var(--panel); padding:14px 18px; margin:14px 0; box-shadow:0 0 30px rgba(38,118,128,.2); }
.card > :first-child { margin-top:0; } .card > :last-child { margin-bottom:0; }
footer.foot { padding:8px 14px 12px; font-size:11px; color:var(--muted); border-top:1px solid var(--line-dim); background:rgba(5,9,15,.72); display:flex; flex-wrap:wrap; justify-content:space-between; gap:4px 18px; }
footer.foot a { color:var(--amber); border-bottom-color:rgba(255,184,64,.4); font-weight:700; }

/* save forge */
fieldset { border:1px solid var(--line-dim); margin:14px 0; padding:10px 14px 14px; min-width:0; }
legend { color:var(--amber); letter-spacing:.22em; font-size:11px; padding:0 6px; }
.chips { display:flex; flex-wrap:wrap; gap:5px; margin-top:6px; }
.chips label { position:relative; cursor:pointer; }
.chips input { position:absolute; opacity:0; inset:0; cursor:pointer; }
.chips span { display:block; padding:3px 8px; font-size:11px; letter-spacing:.06em; border:1px solid var(--line-dim); color:var(--muted); background:var(--bg); }
.chips input:checked + span { color:#05090f; background:var(--primary); border-color:var(--primary); }
.chips input:focus-visible + span { outline:2px solid var(--amber); outline-offset:1px; }
.grp { display:flex; gap:6px; margin-bottom:4px; flex-wrap:wrap; align-items:center; }
.grp .btn { padding:3px 8px; font-size:10px; }
.fields { display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); gap:12px; }
label.f { display:block; color:var(--muted); font-size:11px; letter-spacing:.1em; }
input[type=number] { display:block; width:100%; margin-top:4px; font:inherit; color:var(--text); background:var(--bg); border:1px solid var(--line-dim); padding:6px 8px; }
input[type=number]:focus { border-color:var(--primary); outline:none; }
#sum { position:sticky; bottom:0; margin:14px -24px -26px; padding:12px 24px; background:var(--panel-hi); border-top:1px solid var(--line); display:flex; flex-wrap:wrap; gap:10px 18px; align-items:center; }
#sum .btn { margin-left:auto; }

.soon { border-left:2px solid var(--line); padding:2px 0 2px 16px; margin:18px 0; }
.soon h3 { margin:0 0 2px; color:var(--primary); font-size:13px; letter-spacing:.14em; }
.err404 { font-size:clamp(48px,14vw,120px); line-height:1; font-weight:800; margin:0; background:linear-gradient(#96ffeb,#3296eb); -webkit-background-clip:text; background-clip:text; color:transparent; }

@media (max-width:760px) { .brand small { display:none; } .tools { margin-left:0; width:100%; } .btn { padding:5px 7px; font-size:10px; letter-spacing:.06em; } .body { padding:16px 14px 20px; } #sum { margin:14px -14px -20px; padding:10px 14px; } }
@media (prefers-reduced-motion:reduce) { .stars,.stars2 }

/* additions */
.find { display:block; width:100%; max-width:420px; margin:10px 0; font:inherit; color:var(--text); background:var(--bg); border:1px solid var(--line-dim); padding:7px 10px; }
.find:focus { border-color:var(--primary); outline:none; }
.copy { font:inherit; font-size:10px; color:var(--muted); background:var(--bg); border:1px solid var(--line-dim); padding:1px 6px; margin-left:8px; cursor:pointer; }
.copy:hover, .copy:focus-visible { color:var(--primary); border-color:var(--line); }
.items { display:grid; grid-template-columns:repeat(auto-fill,minmax(250px,1fr)); gap:10px; margin-top:10px; }
.item { border:1px solid var(--line-dim); background:var(--bg); padding:8px 12px; }
.item b { color:var(--primary); letter-spacing:.08em; } .item p { margin:3px 0; font-size:12px; color:var(--text); }
.item .how { color:var(--muted); font-size:11px; } .item .how.cheat { color:var(--amber); }
.filters { display:flex; flex-wrap:wrap; gap:6px; margin:8px 0; }
.fields select { display:block; width:100%; margin-top:4px; font:inherit; color:var(--text); background:var(--bg); border:1px solid var(--line-dim); padding:6px 8px; }
.drop { border:1px dashed var(--line); padding:12px 14px; margin:12px 0; }
.drop input { font:inherit; color:var(--muted); }

:root { --k-tank:#60e8d4; --k-ammo:#ffb840; --k-map:#7cf098; --k-theme:#b48cff; --k-feature:#ff8fb0; }
.item { border-left:3px solid var(--kc,var(--line-dim)); }
.item[data-k=tank], .kb[data-k=tank] { --kc:var(--k-tank); } .item[data-k=ammo], .kb[data-k=ammo] { --kc:var(--k-ammo); }
.item[data-k=map], .kb[data-k=map] { --kc:var(--k-map); } .item[data-k=theme], .kb[data-k=theme] { --kc:var(--k-theme); } .item[data-k=feature], .kb[data-k=feature] { --kc:var(--k-feature); }
.item .type { display:inline-block; float:right; margin-left:8px; font-size:10px; letter-spacing:.14em; color:var(--kc); border:1px solid var(--kc); padding:0 6px; }
.item b { color:var(--text); }
.kb { border-left:3px solid var(--kc,var(--line-dim)); }

/* 404 */
.miss { display:block; width:100%; height:auto; margin:6px 0 0; }
.miss .ridge1 { fill:#08131c; stroke:var(--line); stroke-width:1.5; } .miss .path { fill:none; stroke:var(--primary-dim); stroke-width:1.5; stroke-dasharray:3 7; }
.miss .shell { fill:#fff; offset-path:path("M118 110 Q 330 -80 640 70"); offset-distance:0%; animation:fly 3.2s cubic-bezier(.3,.1,.7,.9) infinite; }
@keyframes fly { 0% { offset-distance:0%; opacity:1; } 88% { opacity:1; } 100% { offset-distance:100%; opacity:0; } }
.miss text { font:10px var(--mono); fill:var(--muted); letter-spacing:.2em; }
.where td:first-child { white-space:nowrap; }
@media (prefers-reduced-motion:reduce) { .miss .shell { animation:none; offset-distance:46%; } }
/* catalog previews */
.item.has-shot { cursor:zoom-in; } .item.has-shot:hover, .item.has-shot:focus-visible { background:var(--panel-hi); border-color:var(--line); }
.item .shot { display:block; margin-top:6px; font-size:10px; letter-spacing:.14em; color:var(--primary-dim); }
#peek { position:fixed; z-index:50; pointer-events:none; border:1px solid var(--line); background:var(--bg); padding:4px; box-shadow:0 0 30px rgba(0,0,0,.7),0 0 18px rgba(38,118,128,.4); }
#peek img { display:block; width:320px; max-width:60vw; height:auto; }
dialog#lb { border:3px double var(--line); background:var(--panel); color:var(--text); padding:0; width:min(96vw,980px); max-height:94vh; font:inherit; overflow:auto; }
dialog#lb::backdrop { background:rgba(2,5,10,.82); }
dialog#trailer { border:3px double var(--line); background:#000; color:var(--text); padding:0; width:min(96vw,1100px); max-height:94vh; font:inherit; }
dialog#trailer::backdrop { background:rgba(2,5,10,.88); }
dialog#trailer video { display:block; width:100%; height:auto; max-height:84vh; background:#000; }
dialog#trailer .row { justify-content:flex-end; padding:6px; margin:0; }
#lb header { display:flex; align-items:center; gap:10px; padding:8px 12px; border-bottom:1px solid var(--line-dim); flex-wrap:wrap; }
#lb header b { color:var(--primary); letter-spacing:.14em; } #lb header .sp { flex:1; }
#lb img { display:block; width:100%; height:auto; background:#000; }
#lb p { margin:0; padding:8px 12px 12px; color:var(--muted); }
.soon ul { margin:6px 0 0; padding-left:18px; max-width:72ch; } .soon li { margin:2px 0; }
.clip { margin:14px 0 10px; position:relative; border:1px solid var(--line); box-shadow:0 0 24px rgba(38,118,128,.25); background:#000; aspect-ratio:1200/630; overflow:hidden; }
.clip .cover { display:block; width:100%; height:100%; object-fit:cover; }
.clip video { position:absolute; inset:0; width:100%; height:100%; object-fit:contain; background:#000; }
.gallery { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr)); gap:12px; margin-top:8px; }
.gallery figure { margin:0; border:1px solid var(--line-dim); background:var(--bg); }
.gallery a { display:block; border:0; aspect-ratio:16/9; background:#000; overflow:hidden; }
.gallery img { display:block; width:100%; height:100%; object-fit:contain; transition:transform .2s; }
.gallery a:hover img, .gallery a:focus-visible img { transform:scale(1.03); }
.gallery figcaption { padding:6px 10px; font-size:11px; color:var(--muted); border-top:1px solid var(--line-dim); }
@media (prefers-reduced-motion:reduce) { .gallery img { transition:none; } }

.tier { font-size:9.5px; letter-spacing:.14em; padding:0 5px; border:1px solid currentColor; vertical-align:middle; }
.tier.mast { color:#ffce64; } .tier.prem { color:#ff468c; }

.two { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr)); gap:14px; margin:8px 0; }
.two .card { margin:0; } .two h3 { margin-top:0; }
a.linkcard { display:block; border-bottom:0; color:var(--text); } a.linkcard:hover { background:var(--panel-hi); border-color:var(--line); }
a.linkcard b { color:var(--primary); font-size:14px; letter-spacing:.1em; }
.body ol { max-width:72ch; padding-left:22px; } .body ol li { margin:6px 0; }

/* workshop */
.ws { display:grid; grid-template-columns:minmax(280px,400px) 1fr; gap:18px; margin:10px 0; align-items:start; }
@media (max-width:820px) { .ws { grid-template-columns:1fr; } }
.ws-left label.f { margin:10px 0; } .ws-left input[type=text], .ws-left select { display:block; width:100%; margin-top:4px; font:inherit; color:var(--text); background:var(--bg); border:1px solid var(--line-dim); padding:6px 8px; }
.ws-left input[type=range] { width:100%; margin-top:8px; accent-color:var(--primary); }
.pv { border:1px solid var(--line); background:#000; line-height:0; box-shadow:0 0 24px rgba(38,118,128,.25); } .pv canvas, .part canvas { image-rendering:pixelated; max-width:100%; height:auto !important; }
.chk { display:block; margin:8px 0; color:var(--muted); cursor:pointer; } .chk input { accent-color:var(--primary); }
.parts { display:grid; grid-template-columns:repeat(auto-fill,minmax(112px,1fr)); gap:8px; max-height:460px; overflow:auto; padding:2px; }
.part { font:inherit; text-align:center; color:var(--text); background:var(--bg); border:1px solid var(--line-dim); padding:6px 4px 8px; cursor:pointer; display:flex; flex-direction:column; align-items:center; gap:4px; }
.part:hover, .part:focus-visible { border-color:var(--line); background:var(--panel-hi); } .part.on { border-color:var(--primary); box-shadow:0 0 10px rgba(96,232,212,.3); }
.pn { font-size:11px; letter-spacing:.08em; } .ptag { font-size:9.5px; letter-spacing:.08em; padding:0 5px; border:1px solid currentColor; }
.ptag.free { color:var(--ok); } .ptag.earn { color:var(--amber); } .ptag.prem { color:#ff468c; }
#sheet td:nth-child(3) { color:var(--muted); }

.item .thumb { display:block; width:100%; height:112px; object-fit:contain; background:#000; image-rendering:pixelated; border:1px solid var(--line-dim); margin-bottom:8px; }
.item.has-shot .shot { display:none; }

/* jukebox ------------------------------------------------------------------------------------------------------------ */
:root { --np-a:#60e8d4; --disc-spin:5.3s; }
body[data-page=jukebox] #app { padding-bottom:96px; }
.deck { display:grid; grid-template-columns:minmax(220px,300px) 1fr; grid-template-areas:"table np" "viz viz" "eq eq"; gap:16px 22px; margin:14px 0 6px;
  padding:16px; border:1px solid var(--line); background:radial-gradient(ellipse 70% 90% at 15% 30%, color-mix(in srgb, var(--np-a) 16%, transparent), transparent 70%), #060c14;
  box-shadow:inset 0 0 40px rgba(0,0,0,.6), 0 0 26px rgba(38,118,128,.22); transition:background .6s; overflow:hidden; }
.tt-table { grid-area:table; position:relative; aspect-ratio:1.28; }
.sleeve { position:absolute; left:0; top:0; width:72%; aspect-ratio:1; z-index:2; box-shadow:6px 8px 18px rgba(0,0,0,.65); border:1px solid rgba(255,255,255,.08); background:#000; }
.sleeve img { display:block; width:100%; height:100%; image-rendering:pixelated; }
.platter { position:absolute; right:0; top:4%; width:68%; aspect-ratio:1; border-radius:50%; background:#0b0f16; box-shadow:0 0 0 3px #141c27, 0 8px 22px rgba(0,0,0,.7); z-index:1;
  transform:translateX(-22%); transition:transform .7s cubic-bezier(.2,.8,.2,1); }
body.playing .platter { transform:translateX(0); }
.platter img { position:absolute; inset:3%; width:94%; height:94%; border-radius:50%; image-rendering:pixelated; animation:spin var(--disc-spin) linear infinite; animation-play-state:paused; }
body.playing .platter img { animation-play-state:running; }
.platter .spindle { position:absolute; left:50%; top:50%; width:6%; height:6%; margin:-3% 0 0 -3%; border-radius:50%; background:#c9d4dc; box-shadow:0 0 4px #000; }
@keyframes spin { to { transform:rotate(360deg); } }
.arm { position:absolute; right:0; top:-2%; width:10%; height:72%; z-index:3; transform-origin:50% 6%; transform:rotate(-4deg); transition:transform .8s ease; pointer-events:none; }
body.playing .arm { transform:rotate(24deg); }
.arm::before { content:""; position:absolute; left:20%; top:0; width:60%; aspect-ratio:1; border-radius:50%; background:#9fb0bc; box-shadow:0 0 0 3px #2b3843; }
.arm i { position:absolute; left:45%; top:8%; width:10%; height:86%; background:linear-gradient(#c9d4dc,#8b9aa6); border-radius:2px; }
.arm i::after { content:""; position:absolute; left:-80%; bottom:-6%; width:260%; height:12%; background:#d9e3ea; border-radius:2px; }
.np { grid-area:np; min-width:0; align-self:center; }
.np-kicker { font-size:10.5px; letter-spacing:.24em; color:var(--np-a); }
.np h3 { margin:4px 0 6px !important; font-size:clamp(16px,2.6vw,24px) !important; letter-spacing:.08em !important; color:#fff !important; line-height:1.2; }
.np-tags { display:flex; flex-wrap:wrap; gap:5px; margin:8px 0; }
.np-tags span { font-size:10px; letter-spacing:.12em; padding:1px 7px; border:1px solid var(--line-dim); color:var(--text); background:rgba(5,9,15,.6); }
.np-where { font-size:11.5px; color:var(--muted); } .np-where b { color:var(--amber); font-weight:400; letter-spacing:.14em; font-size:10px; margin-right:6px; }
.viz { grid-area:viz; }
#viz { display:block; width:100%; height:180px; image-rendering:pixelated; border:1px solid var(--line-dim); background:#04080d; }
.viz-axis { display:flex; justify-content:space-between; font-size:10px; color:var(--muted); letter-spacing:.14em; margin-top:3px; }
.eq { grid-area:eq; display:flex; flex-wrap:wrap; gap:10px 22px; align-items:center; }
.eq label { display:flex; align-items:center; gap:8px; font-size:10.5px; letter-spacing:.16em; color:var(--muted); }
.eq input[type=range] { width:110px; accent-color:var(--amber); } .eq b { min-width:4.2em; color:var(--text); font-weight:400; }
.jb-tools { display:flex; flex-wrap:wrap; gap:6px 16px; align-items:flex-end; }
.jb-tools .find { margin:6px 0; flex:1 1 260px; }
.jb-tools label.f select { display:block; margin-top:4px; font:inherit; color:var(--text); background:var(--bg); border:1px solid var(--line-dim); padding:6px 8px; }
.jb-tools .chk { margin:0 0 8px; }
.kb[data-g=menu] { --kc:#b48cff; } .kb[data-g=battle] { --kc:#7cf098; } .kb[data-g=tbos] { --kc:#ffce64; } .kb[data-g=mission] { --kc:#60e8d4; }
.kb[data-g=ticket] { --kc:#ff468c; } .kb[data-g=martyr] { --kc:#ffd27a; } .kb[data-g=story] { --kc:#9fd0ff; }
.tracks { list-style:none; margin:8px 0; padding:0; border-top:1px solid var(--line-dim); }
.trk { max-width:none !important; margin:0 !important; display:grid; grid-template-columns:48px 3em minmax(0,1fr) auto 6.5em 3.5em 18px; gap:12px; align-items:center; padding:6px 8px; border-bottom:1px solid var(--line-dim); cursor:pointer; }
.trk:hover, .trk:focus-visible { background:var(--panel-hi); outline:none; }
.trk img { width:48px; height:48px; image-rendering:pixelated; background:#000; }
.trk .tn { color:var(--muted); font-size:11px; } .trk .tt { min-width:0; } .trk .tt b { color:var(--text); letter-spacing:.06em; font-weight:600; }
.trk .tt .muted { display:block; font-size:11px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.trk .tg { font-size:10px; letter-spacing:.1em; padding:0 6px; border:1px solid currentColor; white-space:nowrap; color:var(--muted); }
.trk .tg[data-g=menu] { color:#b48cff; } .trk .tg[data-g=battle] { color:#7cf098; } .trk .tg[data-g=tbos] { color:#ffce64; } .trk .tg[data-g=mission] { color:#60e8d4; }
.trk .tg[data-g=ticket] { color:#ff468c; } .trk .tg[data-g=martyr] { color:#ffd27a; } .trk .tg[data-g=story] { color:#9fd0ff; }
.trk .tb, .trk .tl { color:var(--muted); font-size:11.5px; text-align:right; }
.hw { white-space:nowrap; font-size:9px; letter-spacing:.12em; color:var(--amber); border:1px solid rgba(255,184,64,.5); padding:0 4px; vertical-align:middle; }
.trk.on { background:linear-gradient(90deg, color-mix(in srgb, var(--np-a) 18%, transparent), transparent 70%); box-shadow:inset 3px 0 0 var(--np-a); }
.trk.on .tt b { color:#fff; }
.eqm { display:flex; gap:2px; align-items:flex-end; height:14px; visibility:hidden; } .eqm i { width:4px; height:100%; background:var(--np-a); transform:scaleY(.3); transform-origin:50% 100%; will-change:transform; }
.trk.on .eqm { visibility:visible; } body.playing .trk.on .eqm i { animation:bounce .9s ease-in-out infinite; } .eqm i:nth-child(2) { animation-delay:-.3s !important; } .eqm i:nth-child(3) { animation-delay:-.6s !important; }
@keyframes bounce { 0%, 100% { transform:scaleY(.25); } 50% { transform:scaleY(1); } }   /* transform, not height: no re-layout of the list each frame */
.playbar { position:fixed; left:0; right:0; bottom:0; z-index:40; display:grid; grid-template-columns:44px minmax(120px,1fr) auto minmax(180px,1.4fr) auto; gap:8px 16px; align-items:center;
  padding:8px 16px calc(8px + env(safe-area-inset-bottom)); background:rgba(7,13,21,.94); border-top:1px solid var(--line); backdrop-filter:blur(6px); box-shadow:0 -6px 24px rgba(0,0,0,.45); }
.playbar img { width:44px; height:44px; image-rendering:pixelated; background:#000; border:1px solid var(--line-dim); }
.pb-meta { min-width:0; display:flex; flex-direction:column; } .pb-meta b { color:#fff; font-size:12.5px; letter-spacing:.06em; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; } .pb-meta span { font-size:11px; }
.pb-ctl { display:flex; gap:6px; align-items:center; }
.pbtn { appearance:none; font:inherit; font-size:15px; line-height:1; color:var(--text); background:var(--panel); border:1px solid var(--line-dim); border-radius:50%; width:36px; height:36px; cursor:pointer; display:grid; place-items:center; }
.pbtn:hover, .pbtn:focus-visible { color:var(--primary); border-color:var(--line); }
.pbtn.big { width:46px; height:46px; font-size:17px; color:#05090f; background:var(--primary); border-color:var(--primary); box-shadow:0 0 14px rgba(96,232,212,.35); }
.pbtn.on { color:var(--amber); border-color:rgba(255,184,64,.5); } .pbtn sup { font-size:8px; }
.pb-seek { display:flex; align-items:center; gap:8px; font-size:11px; color:var(--muted); } .pb-seek input { flex:1; min-width:60px; accent-color:var(--primary); }
.pb-vol { display:flex; align-items:center; gap:6px; } .pb-vol input { width:90px; accent-color:var(--primary); }
.pb-msg { position:absolute; left:50%; bottom:calc(100% + 8px); transform:translate(-50%,6px); opacity:0; transition:.25s; pointer-events:none; background:var(--panel-hi); border:1px solid var(--line); padding:6px 12px; font-size:12px; white-space:nowrap; max-width:92vw; overflow:hidden; text-overflow:ellipsis; }
.pb-msg.show { opacity:1; transform:translate(-50%,0); }
@media (max-width:820px) {
  .deck { grid-template-columns:1fr; grid-template-areas:"table" "np" "viz" "eq"; } .tt-table { max-width:340px; width:100%; margin:0 auto; }
  .trk { grid-template-columns:40px minmax(0,1fr) auto 3.2em; gap:8px; } .trk img { width:40px; height:40px; } .trk .tn, .trk .tb, .trk .eqm { display:none; }
  .playbar { grid-template-columns:40px minmax(0,1fr) auto; padding-left:12px; padding-right:12px; } .playbar img { width:40px; height:40px; } .pb-seek { grid-column:1 / -1; order:5; } .pb-vol { display:none; }
  .pbtn { width:34px; height:34px; } .pbtn.big { width:42px; height:42px; } #mode, #shuf { display:none; }
  body[data-page=jukebox] #app { padding-bottom:124px; }
}
@media (max-width:420px) { .trk .tg { display:none; } .trk { grid-template-columns:40px minmax(0,1fr) 3.2em; } }
@media (prefers-reduced-motion:reduce) { .platter img, body.playing .trk.on .eqm i { animation:none; } .platter, .arm { transition:none; } }
/* catalog additions */
.item[data-k=paint], .kb[data-k=paint] { --kc:#ffd27a; } .item[data-k=boss], .kb[data-k=boss] { --kc:#ff5c5c; } .item[data-k=workshop], .kb[data-k=workshop] { --kc:#9fd0ff; }
.tier.leg { color:#ffd27a; background:linear-gradient(90deg, rgba(176,120,255,.25), rgba(255,214,90,.25)); } .tier.anim { color:#ffd27a; border-style:dashed; }
.item .fx { color:var(--muted); font-size:11px; }
video.thumb { display:block; width:100%; height:112px; object-fit:contain; background:#000; image-rendering:pixelated; border:1px solid var(--line-dim); margin-bottom:8px; }
#lb video { display:block; width:100%; height:auto; background:#000; image-rendering:pixelated; }
/* save forge additions */
.drop.over { border-color:var(--primary); background:var(--panel-hi); }
#inspect ul { margin:4px 0 0; padding-left:18px; } #inspect li { margin:2px 0; font-size:12px; }
fieldset .chk { margin:8px 0; color:var(--text); }

/* DS page ------------------------------------------------------------------------------------------------------------- */
.ds-hero { display:grid; grid-template-columns:1fr minmax(260px,380px); gap:24px; align-items:center; }
.ds-copy h2 { font-size:clamp(16px,2.6vw,22px) !important; background:linear-gradient(90deg,#96ffeb,#3296eb); -webkit-background-clip:text; background-clip:text; color:transparent !important; }
.ds-device { margin:0; container-type:inline-size; }
/* A Nintendo DS Lite drawn to its real measurements: halves 133 x 73.9 mm, 3-inch screens 61 x 45.7 mm, 20.4 mm apart.
   1 cqw = 1.33 mm. The clip (ds/ds-fire.*) has the same gap, so one video lines up with both screen windows. */
.nds { --s1:#2d343d; --s2:#161a20; --s3:#0b0d10; position:relative; width:100cqw; height:111.87cqw; }
.nds-half { position:absolute; left:0; width:100cqw; height:55.56cqw; background:linear-gradient(180deg,var(--s1),var(--s2) 46%,var(--s3));
  box-shadow:inset 0 .35cqw 0 rgba(255,255,255,.14), inset 0 -.5cqw 1cqw rgba(0,0,0,.45), 0 1.5cqw 3cqw rgba(0,0,0,.55); }
.nds-top { top:0; border-radius:6cqw 6cqw 2.4cqw 2.4cqw; }
.nds-bot { top:56.31cqw; border-radius:2.4cqw 2.4cqw 6.5cqw 6.5cqw; }
.nds-panel { position:absolute; inset:2.6cqw 2.6cqw 3.2cqw; border-radius:4cqw 4cqw 1.6cqw 1.6cqw; background:linear-gradient(170deg,#11151a,#050608 60%,#0a0c0f);
  box-shadow:inset 0 0 0 .25cqw rgba(255,255,255,.05), inset 0 .3cqw .6cqw rgba(255,255,255,.06); }
.nds-spk { position:absolute; top:24.5cqw; width:6cqw; height:7.5cqw; background:radial-gradient(circle,#000 0 .45cqw,rgba(70,80,92,.35) .5cqw,transparent .75cqw) 0 0/2cqw 2.5cqw; }
.nds-spk.l { left:11cqw; } .nds-spk.r { right:11cqw; }
.nds-lcd { position:absolute; left:26.07cqw; width:47.86cqw; height:36.4cqw; background:#000; border-radius:.6cqw; box-shadow:0 0 0 .3cqw #1c2128, inset 0 0 0 .2cqw #000; }
.nds-lcd.t { top:10.3cqw; } .nds-lcd.b { top:8.81cqw; box-shadow:0 0 0 .45cqw #232931, 0 .5cqw 0 .45cqw #07090b, inset 0 0 0 .2cqw #000; }
.nds-video { position:absolute; z-index:2; left:27.07cqw; top:11.3cqw; width:45.86cqw; height:89.21cqw; object-fit:fill; image-rendering:pixelated; background:transparent;
  -webkit-mask:linear-gradient(#000 0 0) top/100% 38.554% no-repeat, linear-gradient(#000 0 0) bottom/100% 38.554% no-repeat;
          mask:linear-gradient(#000 0 0) top/100% 38.554% no-repeat, linear-gradient(#000 0 0) bottom/100% 38.554% no-repeat; }
.nds-glare { position:absolute; z-index:3; left:27.07cqw; width:45.86cqw; height:34.4cqw; pointer-events:none;
  background:linear-gradient(118deg,rgba(255,255,255,.10),rgba(255,255,255,.03) 28%,transparent 42%,transparent 70%,rgba(255,255,255,.04)); }
.nds-glare.t { top:11.3cqw; } .nds-glare.b { top:66.12cqw; opacity:.6; }
.nds-hinge { position:absolute; z-index:1; left:8cqw; width:84cqw; top:53.9cqw; height:4.6cqw; border-radius:2.3cqw;
  background:linear-gradient(180deg,#3c444f,#1d232a 40%,#0f1216 75%,#262c34); box-shadow:inset 0 .25cqw 0 rgba(255,255,255,.18), 0 .4cqw .8cqw rgba(0,0,0,.6); }
.nds-mic { position:absolute; left:50%; top:50%; width:1cqw; height:1cqw; margin:-.5cqw; border-radius:50%; background:#000; box-shadow:0 0 0 .2cqw #2a3038; }
.nds-leds { position:absolute; right:5cqw; top:50%; transform:translateY(-50%); display:flex; gap:1.2cqw; }
.nds-leds i { width:1.1cqw; height:1.1cqw; border-radius:50%; background:#20262d; box-shadow:inset 0 0 .2cqw #000; }
.nds-leds i.pw { background:#59e6ff; box-shadow:0 0 1cqw #59e6ff, inset 0 0 .2cqw rgba(255,255,255,.6); }
.nds-sh { position:absolute; top:-.9cqw; width:17cqw; height:2.4cqw; background:linear-gradient(#3a424c,#1a1f25); }
.nds-sh.l { left:3.5cqw; border-radius:4cqw 1cqw 0 0; } .nds-sh.r { right:3.5cqw; border-radius:1cqw 4cqw 0 0; }
.nds-dpad { position:absolute; left:6.3cqw; top:20.6cqw; width:13.2cqw; height:13.2cqw; }
.nds-dpad::before, .nds-dpad::after { content:""; position:absolute; border-radius:.9cqw; background:linear-gradient(160deg,#2f3741,#14181d 70%); box-shadow:0 .45cqw 0 #050607, inset 0 .2cqw 0 rgba(255,255,255,.12); }
.nds-dpad::before { left:4.4cqw; top:0; width:4.4cqw; height:13.2cqw; } .nds-dpad::after { left:0; top:4.4cqw; width:13.2cqw; height:4.4cqw; }
.nds-dpad i { position:absolute; z-index:1; left:4.9cqw; top:4.9cqw; width:3.4cqw; height:3.4cqw; border-radius:50%; background:radial-gradient(circle at 50% 60%,#0e1114,#262d35); }
.nds-face { position:absolute; right:5.6cqw; top:18.4cqw; width:16cqw; height:16cqw; }
.nds-face b { position:absolute; width:5.1cqw; height:5.1cqw; border-radius:50%; display:grid; place-items:center; font:700 2.3cqw/1 system-ui,sans-serif; color:#aab4be;
  background:radial-gradient(circle at 38% 30%,#46505b,#1c2228 70%); box-shadow:0 .5cqw 0 #050607, inset 0 .2cqw 0 rgba(255,255,255,.18); }
.nds-face .x { left:5.45cqw; top:0; } .nds-face .y { left:0; top:5.45cqw; } .nds-face .a { right:0; top:5.45cqw; } .nds-face .b { left:5.45cqw; bottom:0; }
.nds-ss { position:absolute; right:7.4cqw; top:37.8cqw; display:flex; flex-direction:column; gap:1.6cqw; }
.nds-ss i { display:flex; align-items:center; gap:1cqw; font:700 1.45cqw/1 system-ui,sans-serif; font-style:normal; letter-spacing:.14em; color:#78838f; }
.nds-ss u { width:2.6cqw; height:2.6cqw; border-radius:50%; background:radial-gradient(circle at 38% 30%,#46505b,#1c2228 70%); box-shadow:0 .35cqw 0 #050607; }
.ds-device figcaption { margin-top:8px; font-size:11px; color:var(--muted); text-align:center; }
.ds-feats { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr)); gap:12px; } .ds-feats .card { margin:0; } .ds-feats h3 { margin-top:0; }
.ds-gallery { display:grid; grid-template-columns:repeat(auto-fill,minmax(150px,1fr)); gap:12px; }
.ds-gallery figure { margin:0; border:1px solid var(--line-dim); background:#000; cursor:zoom-in; }
.ds-gallery img { display:block; width:100%; height:auto; image-rendering:pixelated; }
.ds-gallery figcaption { padding:5px 8px; font-size:11px; color:var(--muted); background:var(--bg); border-top:1px solid var(--line-dim); }
dialog#ds-lb { border:3px double var(--line); background:#000; padding:0; max-height:94vh; }
dialog#ds-lb::backdrop { background:rgba(2,5,10,.85); } #ds-lb img { display:block; height:min(86vh,768px); width:auto; image-rendering:pixelated; } #ds-lb .btn { position:absolute; right:6px; top:6px; }
.ds-cmp td:first-child { color:var(--muted); white-space:nowrap; } .ds-cmp td:nth-child(3) { color:var(--text); }
.ds-release { display:flex; gap:16px; align-items:flex-start; } .ds-release img { width:64px; height:64px; image-rendering:pixelated; border:1px solid var(--line-dim); flex:none; }
.hash { word-break:break-all; font-size:11.5px; }
@media (max-width:760px) { .ds-hero { grid-template-columns:1fr; } .ds-device { width:100%; max-width:360px; margin:0 auto; } .ds-release { flex-direction:column; } }
/* about: Martyr's Blessing */
figure.blessing { margin:12px 0; max-width:520px; border:1px solid rgba(255,214,90,.45); background:#000; box-shadow:0 0 30px rgba(255,206,100,.18), 0 0 60px rgba(176,120,255,.12); }
figure.blessing video { display:block; width:100%; height:auto; image-rendering:pixelated; }
figure.blessing figcaption { padding:6px 10px; font-size:11px; color:var(--muted); border-top:1px solid rgba(255,214,90,.3); background:var(--bg); }
.body blockquote { margin:10px 0; padding:6px 14px; border-left:2px solid #ffd27a; color:#ffe7b0; max-width:68ch; font-style:italic; }

/* narrow screens: long values and long button labels wrap instead of pushing the page sideways */
.kv > * { min-width:0; overflow-wrap:anywhere; }
@media (max-width:760px) { .btn.big { white-space:normal; max-width:100%; text-align:center; } }

.eq-note { font-size:11px; margin:6px 0 0; }

/* home: Steam fund */
.fund h2 { margin-top:0; }
.fund-bar { height:14px; border:1px solid var(--line); background:var(--bg); margin:12px 0 6px; overflow:hidden; }
.fund-bar > i { display:block; height:100%; background:repeating-linear-gradient(90deg, var(--amber) 0 10px, #e09a20 10px 12px); box-shadow:0 0 12px rgba(255,184,64,.45); transition:width .6s; }
.fund-num { margin:0 0 10px; }
