/* WICK: the original rhythm game's menus, trench edition (owner 10-18: not the same UI as the runner game): one big level panel in the
   level's own colour with arrows, a round PLAY button, chunky outlined type, bevelled buttons with a dark outline, a live strip of
   fixed slots. Green = up / clears, red = wicks / deaths, GOLD ONLY FOR MONEY. Type: Rammetto One + Space Grotesk + Atkinson
   Hyperlegible Mono. */
@font-face { font-family: 'Rammetto One'; src: url(/fonts/rammetto.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: 'Space Grotesk'; src: url(/fonts/grotesk.woff2) format('woff2'); font-weight: 300 700; font-display: swap; }
@font-face { font-family: 'Atkinson Hyperlegible Mono'; src: url(/fonts/mono.woff2) format('woff2'); font-weight: 200 800; font-display: swap; }
:root {
  --ink: #05070a; --plate: #0a1012; --plate2: #0e171a; --line: #143b38; --line2: #1d5650; --text: #e8fff4; --muted: #86a8a0; --dim: #5a7570;
  --green: #21f08a; --green-d: #0b7a45; --red: #ff3355; --gold: #ffc83d; --gold-d: #a8740c; --violet: #b26bff; --cyan: #3ad7ff;
  --f-d: 'Rammetto One', 'Arial Black', sans-serif; --f-t: 'Space Grotesk', system-ui, sans-serif; --f-m: 'Atkinson Hyperlegible Mono', ui-monospace, Menlo, monospace;
  --lc: #21f08a; --edge: #05070a;
  --ol: 0 3px 0 var(--edge), 2px 2px 0 var(--edge), -2px 2px 0 var(--edge), 2px -2px 0 var(--edge), -2px -2px 0 var(--edge), 0 0 22px rgba(0, 0, 0, 0.55);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; background: var(--ink); color: var(--text); font: 400 15px/1.45 var(--f-t); overflow: hidden; -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
kbd { font: 700 11px/1 var(--f-m); padding: 3px 6px; border-radius: 5px; border: 1px solid currentColor; opacity: 0.75; margin-left: 8px; vertical-align: 1px; }
.is-hidden { display: none !important; }
#game { position: fixed; inset: 0; display: block; touch-action: none; }
#app { position: fixed; inset: 0; pointer-events: none; }
#app > * { pointer-events: auto; }
#app > .hud { pointer-events: none; }

/* ---- top bar */
.top { position: absolute; left: 0; right: 0; top: 0; height: 58px; display: flex; align-items: center; gap: 18px; padding: 0 22px; background: linear-gradient(#05070a 55%, rgba(5, 7, 10, 0)); }
body.in-game .top { display: none; }
.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.mark { width: 30px; height: 30px; border-radius: 7px; background: linear-gradient(#bdfcdc, var(--green) 25%, var(--green-d)); box-shadow: 0 0 14px rgba(33, 240, 138, 0.55); display: flex; align-items: center; justify-content: center; gap: 5px; padding-bottom: 3px; }
.mark i { width: 6px; height: 6px; background: #fff; box-shadow: inset -2px -2px 0 #05070a; }
.mark-img { width: 32px; height: 32px; border-radius: 8px; }
.word { font: 400 24px/1 var(--f-d); letter-spacing: 0.01em; white-space: nowrap; }
.nav { display: flex; gap: 16px; margin-left: 8px; }
.nav a { font: 500 14px/1 var(--f-t); color: var(--muted); }
.nav a:hover { color: var(--text); }
.nav-x svg { width: 16px; height: 16px; vertical-align: -3px; }
.ca-pill { position: relative; margin-left: auto; display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 5px 0 12px; border-radius: 8px; background: var(--plate); border: 1px solid var(--line); max-width: 560px; min-width: 0; }
.ca-pill.is-live { border-color: var(--gold); }
.ca-lab { font: 700 11px/1 var(--f-m); letter-spacing: 0.06em; color: var(--muted); white-space: nowrap; }
.ca-addr { display: flex; align-items: center; gap: 8px; min-width: 0; height: 28px; padding: 0 4px 0 2px; font: 700 13px/1 var(--f-m); color: var(--text); cursor: copy; user-select: text; -webkit-user-select: text; }
.ca-addr:disabled { cursor: default; color: var(--dim); font: 500 12.5px/1 var(--f-t); padding-right: 8px; }
.ca-addr > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ca-copy { flex: none; font: 700 11px/1 var(--f-m); font-style: normal; padding: 6px 10px; border-radius: 6px; background: var(--gold); color: #1a1204; min-width: 54px; text-align: center; }
.ca-link { flex: none; font: 700 11px/1 var(--f-m); padding: 7px 9px; border-radius: 6px; background: var(--plate2); color: var(--text); white-space: nowrap; }
.ca-link:hover { background: var(--line); }
.live { display: flex; align-items: center; gap: 6px; font: 700 12px/1 var(--f-m); color: var(--muted); white-space: nowrap; min-width: 108px; justify-content: flex-end; }
.live i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }
.live b { color: var(--text); min-width: 2ch; text-align: right; }

/* ---- the title: the level select */
.title { position: absolute; inset: 0; }
body:not(.on-title) .title { display: none; }
.stats { position: absolute; left: 50%; top: 66px; transform: translateX(-50%); display: flex; gap: 8px; }
.st { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px 0 8px; border-radius: 17px; background: rgba(5, 9, 11, 0.86); border: 2px solid var(--edge); box-shadow: 0 0 0 1px rgba(255, 200, 61, 0.28); white-space: nowrap; }
.st em { font: 700 10px/1 var(--f-m); font-style: normal; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.st b { font: 700 14px/1 var(--f-m); color: var(--gold); min-width: 8.5ch; text-align: right; }
.st-i { width: 18px; height: 18px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.25); }
.st-i.coin { background: radial-gradient(circle at 40% 35%, #fff3c4, var(--gold) 45%, var(--gold-d)); }
.st-i.up { background: none; box-shadow: none; clip-path: polygon(50% 0, 100% 55%, 68% 55%, 68% 100%, 32% 100%, 32% 55%, 0 55%); background-color: var(--green); border-radius: 0; }
.st-i.ok { background: var(--green); clip-path: polygon(14% 52%, 38% 76%, 86% 22%, 98% 34%, 38% 96%, 2% 64%); border-radius: 0; box-shadow: none; }
.st-i.fire { background: linear-gradient(#ffd23d, #ff6a2b); clip-path: polygon(50% 0, 78% 34%, 92% 64%, 78% 92%, 50% 100%, 22% 92%, 8% 64%, 24% 40%, 36% 52%); border-radius: 0; box-shadow: none; }
.tag { position: absolute; left: 0; right: 0; top: 112px; text-align: center; font: 400 22px/1.2 var(--f-d); color: #fff; text-shadow: var(--ol); letter-spacing: 0.01em; }
.sel { position: absolute; left: 50%; top: 158px; transform: translateX(-50%); display: flex; align-items: center; gap: 18px; }
.lvp { position: relative; width: 600px; padding: 16px 22px 14px; border-radius: 24px; background: linear-gradient(rgba(6, 11, 14, 0.9), rgba(6, 11, 14, 0.82)); border: 3px solid var(--edge); box-shadow: 0 0 0 3px var(--lc), 0 0 46px color-mix(in srgb, var(--lc) 40%, transparent), inset 0 0 0 1px rgba(255, 255, 255, 0.05); display: grid; gap: 6px; }
.lvp-top { display: flex; align-items: center; gap: 10px; height: 36px; }
.lvp-face { width: 36px; height: 36px; flex: none; }
.lvp-k { font: 700 12px/1 var(--f-m); letter-spacing: 0.14em; color: var(--lc); }
.lvp-w { margin-left: auto; font: 700 12px/1 var(--f-m); color: var(--muted); letter-spacing: 0.06em; }
.lvp-n { font: 400 46px/1.05 var(--f-d); color: #fff; text-shadow: var(--ol); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; height: 54px; }
.lvp-chart { width: 100%; height: 86px; display: block; overflow: visible; }
.lvp-chart polyline { fill: none; stroke: var(--lc); stroke-width: 2.2; vector-effect: non-scaling-stroke; stroke-linejoin: round; filter: drop-shadow(0 0 6px var(--lc)); }
.lvp-chart polygon { fill: color-mix(in srgb, var(--lc) 14%, transparent); }
.lvp-coin { text-align: center; font: 700 12px/1.2 var(--f-m); color: var(--muted); height: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lvp-pay { display: flex; justify-content: center; align-items: baseline; gap: 10px; margin-top: 2px; }
.lvp-pay em { font: 700 11px/1 var(--f-m); font-style: normal; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.lvp-pay b { font: 700 22px/1 var(--f-m); color: var(--gold); text-shadow: 0 0 18px rgba(255, 200, 61, 0.35); min-width: 11ch; }
.bars { display: grid; gap: 7px; margin-top: 6px; }
.bar-row { display: grid; grid-template-columns: 86px 1fr 48px; align-items: center; gap: 10px; }
.bar-row span { font: 700 11px/1 var(--f-m); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.bar-row b { font: 400 14px/1 var(--f-d); text-align: right; color: #fff; text-shadow: var(--ol); }
.pb { height: 16px; border-radius: 8px; background: #03080a; border: 2px solid var(--edge); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12); overflow: hidden; }
.pb i { display: block; height: 100%; width: 0; background: linear-gradient(#8dffc7, var(--green) 50%, #0d9a52); }
.prac-row .pb i { background: linear-gradient(#b8f6ff, var(--cyan) 50%, #1279a0); }
.lvp-today { text-align: center; font: 700 11px/1.2 var(--f-m); color: var(--dim); height: 14px; }
.arw { width: 60px; height: 84px; position: relative; filter: drop-shadow(0 4px 0 var(--edge)) drop-shadow(0 0 10px rgba(33, 240, 138, 0.35)); }
.arw i { position: absolute; inset: 0; background: linear-gradient(#a8ffd2, var(--green) 45%, #0d9a52); clip-path: polygon(100% 0, 0 50%, 100% 100%, 82% 50%); }
.arw.r i { clip-path: polygon(0 0, 100% 50%, 0 100%, 18% 50%); }
.arw:hover i { background: linear-gradient(#e2fff0, #5dffb0 45%, var(--green)); }
.arw:active { transform: translateY(2px); }
.dots { position: absolute; left: 50%; top: 556px; transform: translateX(-50%); display: flex; gap: 10px; }
.dots button { width: 12px; height: 12px; border-radius: 50%; background: rgba(255, 255, 255, 0.22); border: 2px solid var(--edge); }
.dots button[aria-selected="true"] { background: #fff; box-shadow: 0 0 10px rgba(255, 255, 255, 0.6); }
.playrow { position: absolute; left: 50%; top: 584px; transform: translateX(-50%); width: 620px; display: grid; justify-items: center; gap: 12px; }
.btns { display: flex; align-items: center; gap: 30px; }
.playb { position: relative; width: 118px; height: 118px; border-radius: 50%; background: radial-gradient(circle at 50% 30%, #d4ffe8 0, #5dffb0 26%, var(--green) 52%, #0b8a48 100%); border: 6px solid var(--edge); box-shadow: 0 0 0 4px var(--lc), 0 0 46px color-mix(in srgb, var(--lc) 55%, transparent), inset 0 -10px 0 rgba(0, 0, 0, 0.22); animation: beat 0.94s ease-in-out infinite; }
.playb > i { position: absolute; left: 50%; top: 50%; width: 46px; height: 52px; transform: translate(-36%, -50%); background: #fff; clip-path: polygon(0 0, 100% 50%, 0 100%); filter: drop-shadow(0 3px 0 rgba(0, 0, 0, 0.35)); }
.playb kbd { position: absolute; left: 50%; bottom: -30px; transform: translateX(-50%); margin: 0; color: var(--muted); }
.playb:active { transform: scale(0.97); }
@keyframes beat { 0%, 100% { transform: scale(1); } 12% { transform: scale(1.045); } }
.playb:active { animation: none; }
.rb { display: grid; justify-items: center; gap: 6px; }
.rb > i, .rb > canvas { width: 70px; height: 70px; border-radius: 50%; border: 4px solid var(--edge); box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.14), inset 0 -6px 0 rgba(0, 0, 0, 0.25); display: block; }
.rb > canvas { background: radial-gradient(circle at 50% 35%, #2c3a44, #0b1216); padding: 6px; }
.rb > span { font: 400 12px/1 var(--f-d); color: #fff; text-shadow: var(--ol); }
.rb:hover > i, .rb:hover > canvas { box-shadow: 0 0 0 2px var(--lc), inset 0 -6px 0 rgba(0, 0, 0, 0.25); }
.ic-diamond { position: relative; background: radial-gradient(circle at 50% 35%, #2c3a44, #0b1216); }
.ic-diamond::after { content: ''; position: absolute; left: 50%; top: 50%; width: 24px; height: 24px; transform: translate(-50%, -50%) rotate(45deg); background: linear-gradient(135deg, #b6ffd8, var(--green)); border: 3px solid var(--edge); border-radius: 3px; }
.ic-menu { position: relative; background: radial-gradient(circle at 50% 35%, #2c3a44, #0b1216); }
.ic-menu::after { content: ''; position: absolute; left: 50%; top: 50%; width: 28px; height: 4px; transform: translate(-50%, -50%); background: #fff; box-shadow: 0 -9px 0 #fff, 0 9px 0 #fff; border-radius: 2px; }
.who { display: grid; grid-template-columns: 200px 1fr; gap: 10px; width: 100%; margin-top: 18px; }
.who .fld input { background: rgba(5, 9, 11, 0.92); border: 2px solid var(--edge); box-shadow: 0 0 0 1px var(--line2); }
.who .fld input:focus { box-shadow: 0 0 0 2px var(--lc); }
.fld { display: grid; gap: 5px; min-width: 0; }
.fld span { font: 700 10.5px/1 var(--f-m); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); text-shadow: 0 1px 4px #000; }
.fld input { width: 100%; min-width: 0; box-sizing: border-box; height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: #070c0d; font: 500 15px/1 var(--f-t); outline: none; }
.fld input:focus { border-color: var(--green); }
#f-addr { font: 700 12.5px/1 var(--f-m); }
.pc-msg { min-height: 18px; font-size: 13px; color: var(--red); text-align: center; text-shadow: 0 1px 6px #000; }
.pc-msg.ok { color: var(--green); }
.lnk { font: 500 13px/1 var(--f-t); color: var(--muted); padding: 4px 2px; text-shadow: 0 1px 6px #000; }
.lnk:hover { color: var(--text); }
.go { height: 52px; border-radius: 14px; background: linear-gradient(#a8ffd2, var(--green) 40%, #0d9a52); color: #03240f; border: 3px solid var(--edge); font: 400 20px/1 var(--f-d); letter-spacing: 0.02em; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 22px rgba(33, 240, 138, 0.3), inset 0 -4px 0 rgba(0, 0, 0, 0.22); }
.go kbd { color: #03240f; border-color: rgba(2, 35, 19, 0.5); }
.go:active { transform: translateY(1px); }

/* the live strip: what people are doing right now, in fixed slots */
.tick { position: absolute; left: 0; right: 0; bottom: 0; height: 56px; display: flex; align-items: center; gap: 12px; padding: 0 16px; background: linear-gradient(rgba(5, 7, 10, 0), rgba(5, 7, 10, 0.94) 38%); }
.tick-h { flex: none; display: flex; align-items: center; gap: 7px; font: 400 13px/1 var(--f-d); color: #fff; text-shadow: var(--ol); }
.tick-h i { width: 9px; height: 9px; border-radius: 50%; background: var(--red); box-shadow: 0 0 10px var(--red); }
.tick-rows { list-style: none; flex: 1; min-width: 0; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; }
.tick-rows li { height: 36px; min-width: 0; padding: 4px 10px; border-radius: 10px; background: rgba(8, 14, 16, 0.92); border: 2px solid var(--edge); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.07); display: grid; grid-template-rows: 1fr 1fr; align-content: center; }
.tick-rows li:empty, .tick-rows li.none { visibility: hidden; }
.tick-rows .nm { font: 600 12.5px/1.1 var(--f-t); color: var(--text); text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tick-rows .lv2 { display: flex; gap: 6px; align-items: center; font: 700 10px/1.1 var(--f-m); color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap; overflow: hidden; }
.tick-rows .lv2 > span:first-child { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.tick-rows .lv2 b { flex: none; margin-left: auto; font-weight: 700; color: var(--text); }
.tick-rows li.s-dead .lv2 b { color: var(--red); }
.tick-rows li.s-clear { box-shadow: 0 0 0 1px var(--green); }
.tick-rows li.s-clear .lv2 b { color: var(--green); }
.tick-rows li.s-prac .lv2 b { color: var(--cyan); }
.tick-rows .mini { width: 26px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.12); overflow: hidden; flex: none; }
.tick-rows .mini i { display: block; height: 100%; background: var(--green); }
.trophy { flex: none; display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 12px; background: linear-gradient(#ffe8a1, var(--gold) 45%, #d69516); border: 3px solid var(--edge); color: #2a1a00; font: 400 14px/1 var(--f-d); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.2); }
.trophy i { width: 16px; height: 16px; background: #2a1a00; clip-path: polygon(10% 0, 90% 0, 90% 30%, 70% 55%, 58% 60%, 58% 80%, 76% 80%, 76% 100%, 24% 100%, 24% 80%, 42% 80%, 42% 60%, 30% 55%, 10% 30%); }
.boards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 22px; text-align: left; margin-top: 12px; font: 700 12px/1.45 var(--f-m); }
.boards h3 { font: 400 13px/1 var(--f-d); color: #fff; text-shadow: var(--ol); margin-bottom: 8px; }
.boards .row { display: flex; justify-content: space-between; gap: 8px; }
.boards .row span:first-child { font-family: var(--f-t); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.boards .g { color: var(--gold); }
.today { width: min(640px, calc(100vw - 24px)) !important; }
.kit .icons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 14px; }
.kit .icons button { display: grid; justify-items: center; gap: 6px; padding: 10px 6px 8px; border-radius: 14px; border: 2px solid var(--edge); background: rgba(255, 255, 255, 0.04); box-shadow: 0 0 0 1px var(--line); position: relative; }
.kit .icons button canvas { width: 56px; height: 56px; display: block; }
.kit .icons button b { font: 400 12px/1 var(--f-d); color: #fff; }
.kit .icons button small { font: 700 9.5px/1.2 var(--f-m); color: var(--muted); min-height: 2.4em; }
.kit .icons button[aria-checked="true"] { box-shadow: 0 0 0 2px var(--green), 0 0 18px rgba(33, 240, 138, 0.35); }
.kit .icons button.locked canvas { opacity: 0.25; }
.kit-sub { margin-top: 12px; font-size: 13px; color: var(--muted); }

/* ---- in the level */
.hud { position: absolute; inset: 0; }
.hud-l { position: absolute; left: 18px; top: 14px; display: grid; gap: 3px; text-shadow: 0 1px 6px #000; }
.hud-l b { font: 400 16px/1 var(--f-d); text-shadow: var(--ol); }
.hud-l span { font: 700 11.5px/1.2 var(--f-m); color: var(--muted); }
.hud-r { position: absolute; right: 16px; top: 12px; display: flex; gap: 10px; align-items: center; pointer-events: auto; }
.chip { display: flex; align-items: baseline; gap: 8px; height: 38px; padding: 0 14px; border-radius: 19px; background: rgba(5, 9, 11, 0.88); border: 2px solid var(--edge); box-shadow: 0 0 0 1px rgba(255, 200, 61, 0.45); align-items: center; }
.chip em { font: 700 10px/1 var(--f-m); font-style: normal; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.chip b { font: 700 14px/1 var(--f-m); color: var(--gold); min-width: 12ch; text-align: right; }
.chip.warn { box-shadow: 0 0 0 1px rgba(255, 51, 85, 0.7); }
.chip.warn b { color: var(--red); max-width: 22ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pause { width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(#a8ffd2, var(--green) 45%, #0d9a52); border: 3px solid var(--edge); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.25); display: flex; align-items: center; justify-content: center; gap: 5px; }
.pause i { width: 5px; height: 15px; border-radius: 1px; background: #fff; box-shadow: 0 1px 0 rgba(0, 0, 0, 0.35); }
.prac { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); display: flex; gap: 12px; align-items: center; padding: 9px 14px; border-radius: 10px; background: var(--plate); border: 1px solid var(--line2); pointer-events: auto; white-space: nowrap; }
.prac b { font: 400 13px/1 var(--f-d); color: var(--green); }
.prac span { font-size: 13px; color: var(--muted); }
.prac kbd { margin-left: 2px; }

/* ---- sheets */
.sheet { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(480px, calc(100vw - 24px)); background: linear-gradient(rgba(8, 13, 16, 0.97), rgba(6, 10, 12, 0.97)); border: 3px solid var(--edge); border-radius: 24px; padding: 22px 22px 18px; text-align: center; box-shadow: 0 0 0 3px var(--lc), 0 24px 80px rgba(0, 0, 0, 0.75); }
.sheet .s-btns { display: flex; gap: 10px; margin-top: 16px; }
.sheet .s-btns > * { flex: 1; }
.sheet .s-btns .go { font-size: 18px; white-space: nowrap; padding: 0 10px; }
.sheet .s-btns.col { flex-direction: column; }
.ghost { height: 52px; border-radius: 14px; border: 3px solid var(--edge); background: linear-gradient(#2c3a44, #121a20); box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1); font: 400 15px/1 var(--f-d); color: #fff; }
.ghost:hover { border-color: var(--green); }
.paid .p-k { font: 400 30px/1.1 var(--f-d); color: #fff; text-shadow: var(--ol); }
.paid.done .p-k { color: #fff; }
.p-amt { margin-top: 10px; font: 700 46px/1 var(--f-m); color: #fff3c4; }
.p-sub { margin-top: 8px; color: var(--muted); font-size: 14px; }
.steps { list-style: none; display: flex; justify-content: center; gap: 8px; margin-top: 16px; }
.steps li { font: 700 11px/1 var(--f-m); padding: 7px 10px; border-radius: 6px; border: 1px solid var(--line); color: var(--dim); }
.steps li.on { border-color: var(--gold); color: var(--gold); }
.steps li.done { border-color: var(--green); color: var(--green); }
.p-tx { margin-top: 12px; min-height: 18px; font-size: 13px; }
.p-tx a { color: var(--cyan); }
.sheet .m-h { font: 400 26px/1.1 var(--f-d); color: #fff; text-shadow: var(--ol); margin-bottom: 4px; }
.m-bars { display: grid; gap: 8px; margin: 14px 0 6px; text-align: left; }
.m-btns { display: flex; align-items: center; justify-content: center; gap: 26px; margin-top: 14px; }
.menu { width: min(500px, calc(100vw - 24px)); }
.playb.sm { width: 92px; height: 92px; border-width: 5px; animation: none; }
.playb.sm > i { width: 34px; height: 40px; }
.playb.sm kbd { bottom: -26px; }
.sliders { display: grid; gap: 10px; margin-top: 18px; text-align: left; font-size: 13.5px; color: var(--muted); }
.sliders label { display: grid; grid-template-columns: 110px 1fr 60px; align-items: center; gap: 10px; }
.sliders label.chk { display: flex; gap: 8px; }
.sliders b { font: 700 11px/1 var(--f-m); color: var(--text); text-align: right; }
.sliders input[type=range] { accent-color: var(--green); }
.acct .a-sub { color: var(--muted); font-size: 13.5px; margin: 6px 0 12px; }
.acct .fld { text-align: left; margin-top: 8px; }
.toast { position: absolute; left: 50%; top: 74px; transform: translateX(-50%); padding: 10px 16px; border-radius: 10px; background: var(--plate); border: 1px solid var(--line2); font-size: 14px; white-space: nowrap; }
.net { position: absolute; left: 50%; bottom: 70px; transform: translateX(-50%); padding: 8px 14px; border-radius: 8px; background: var(--plate); border: 1px solid var(--red); color: var(--red); font: 700 12px/1 var(--f-m); }

/* ---- smaller screens */
@media (max-height: 860px) {
  .tag { top: 106px; font-size: 19px; } .sel { top: 144px; } .lvp { padding: 12px 20px 12px; gap: 4px; } .lvp-n { font-size: 38px; height: 46px; } .lvp-chart { height: 64px; }
  .dots { top: 494px; } .playrow { top: 516px; gap: 8px; } .playb { width: 100px; height: 100px; } .playb > i { width: 40px; height: 46px; } .rb > i, .rb > canvas { width: 60px; height: 60px; }
  .who { margin-top: 14px; }
}
@media (max-height: 800px) { .playb kbd { display: none; } .tag { top: 102px; font-size: 18px; } .sel { top: 136px; } .lvp-chart { height: 50px; } .lvp-n { font-size: 34px; height: 42px; } .dots { top: 452px; } .playrow { top: 468px; gap: 6px; } .playb { width: 92px; height: 92px; } .who { margin-top: 12px; } }
@media (max-height: 700px) { .lvp-chart { height: 40px; } .lvp-today { display: none; } .dots { top: 410px; } .playrow { top: 424px; } .tag { display: none; } .sel { top: 106px; } }
@media (max-width: 1240px) { .tick-rows { grid-template-columns: repeat(6, minmax(0, 1fr)); } .tick-rows li:nth-child(n+7) { display: none; } }
@media (max-width: 860px), (max-height: 560px) {
  html, body { overflow: auto; }
  .top { height: 50px; gap: 10px; padding: 0 10px; } .nav { display: none; } .ca-pill { max-width: none; flex: 1; margin-left: 4px; } .ca-lab { display: none; } .live span { display: none; } .live { min-width: 40px; }
  .word { font-size: 16px; } .top { gap: 8px; } .ca-pill { padding-left: 9px; } .ca-addr { gap: 6px; } .ca-copy { min-width: 0; padding: 6px 8px; }
  .ca-link { display: none; } .ca-pill.is-live .ca-addr > span { font-size: 0; } .ca-pill.is-live .ca-addr > span::after { content: attr(data-short); font-size: 12.5px; }
  .stats { top: 56px; gap: 6px; width: calc(100vw - 20px); justify-content: center; } .st { height: 30px; padding: 0 9px 0 6px; } .st em { display: none; } .st b { font-size: 12px; min-width: 0; } .st:nth-child(n+3) { display: none; }
  .tag { display: none; }
  .sel { top: 96px; gap: 0; width: calc(100vw - 16px); justify-content: center; } .lvp { width: 100%; padding: 10px 14px 10px; border-radius: 18px; } .lvp-n { font-size: 28px; height: 34px; } .lvp-chart { height: 54px; } .lvp-pay b { font-size: 18px; } .bar-row { grid-template-columns: 64px 1fr 40px; gap: 8px; } .bar-row span { font-size: 9.5px; letter-spacing: 0.04em; white-space: nowrap; }
  .arw { position: absolute; top: 40%; width: 34px; height: 50px; z-index: 2; } .arw.l { left: -4px; } .arw.r { right: -4px; }
  .dots { top: auto; bottom: 344px; } .playrow { top: auto; bottom: 64px; width: calc(100vw - 20px); } .btns { gap: 18px; } .playb { width: 92px; height: 92px; } .rb > i, .rb > canvas { width: 56px; height: 56px; }
  .who { grid-template-columns: 1fr; gap: 6px; margin-top: 10px; } .playb kbd { display: none; }
  .tick { height: 52px; padding: 0 8px; gap: 8px; } .tick-h { display: none; } .tick-rows { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; } .tick-rows li:nth-child(n+3) { display: none; } .trophy { padding: 0 10px; height: 34px; font-size: 12px; }
  .boards { grid-template-columns: 1fr; }
  .hud-l { display: none; } .chip em { display: none; } .chip b { min-width: 0; font-size: 12.5px; } .chip { height: 32px; padding: 0 9px; } .pause { height: 32px; width: 36px; } .hud-r { top: 10px; right: 10px; gap: 6px; }
  .sheet { top: 38%; padding: 16px 14px 14px; } .p-amt { font-size: 34px; } .paid .p-k { font-size: 24px; }
  .prac span { display: none; }
}
@media (max-width: 374px) { .live { display: none; } }
@media (max-height: 560px) and (orientation: landscape) { .sel, .dots, .stats { display: none; } .playrow { bottom: 60px; } }
