/* Jam Room: built on Scroll's "Fight Night" design */
:root {
  --bg: #0b0c10; --panel: #15171d; --panel-2: #1d2029; --panel-3: #242833; --line: #252832; --ink: #f5f2ea; --muted: #9aa0ad;
  --red: #ff4d5e; --blue: #3fa9ff; --gold: #ffc53d; --green: #3ddc97;
  --display: "Anton", "Impact", "Arial Narrow", sans-serif; --body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --cut: polygon(0 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%);
  --cut-s: polygon(0 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%);
  --slant: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }
body {
  margin: 0; color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.5; background: var(--bg); min-height: 100vh;
  background-image: radial-gradient(900px 600px at 0% 0%, rgba(255, 77, 94, 0.16), transparent 60%), radial-gradient(900px 600px at 100% 0%, rgba(63, 169, 255, 0.14), transparent 60%);
  background-attachment: fixed;
}
a { color: var(--ink); }
img, video { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; text-transform: uppercase; line-height: 1; margin: 0; letter-spacing: 0.01em; }
.kicker { margin: 0 0 10px; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.kicker.blue { color: var(--blue); } .kicker.red { color: var(--red); } .kicker.green { color: var(--green); }
.lead { color: #d6d9e0; font-size: 1.1rem; max-width: 36em; }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
.hide { display: none !important; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; font: inherit; font-weight: 800; font-size: 0.8rem;
  letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; clip-path: var(--slant); white-space: nowrap; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, 0.06); color: var(--ink); transition: background .15s, transform .05s; }
.btn:hover { background: rgba(255, 255, 255, 0.12); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-primary { background: var(--red); color: var(--bg); box-shadow: 0 0 30px -6px var(--red); }
.btn-primary:hover { background: #ff6b79; }
.btn-blue { background: var(--blue); color: var(--bg); } .btn-blue:hover { background: #66bbff; }
.btn-gold { background: var(--gold); color: var(--bg); } .btn-gold:hover { background: #ffd36b; }
.btn-green { background: var(--green); color: var(--bg); } .btn-green:hover { background: #6be6b0; }
.btn-ghost { background: rgba(255, 255, 255, 0.06); }
.btn-big { min-height: 56px; padding: 0 30px; font-size: 0.92rem; }
.btn-sm { min-height: 34px; padding: 0 14px; font-size: 0.72rem; }
.btn.on { background: var(--ink); color: var(--bg); }
.btn .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--red); }
.btn-primary .dot { background: var(--bg); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* header */
.top {
  position: sticky; top: 12px; z-index: 20; display: flex; align-items: center; gap: 24px; max-width: 1240px; margin: 12px auto 0; padding: 10px 14px 10px 24px;
  border-radius: 999px; background: rgba(11, 12, 16, 0.82); backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px var(--line);
}
.logo { font-family: var(--display); font-size: 1.7rem; letter-spacing: 0.02em; text-decoration: none; color: var(--ink); text-transform: uppercase; white-space: nowrap; }
.logo b { color: var(--red); font-weight: 400; }
.top nav { display: flex; gap: 4px; flex: 1 1 auto; overflow-x: auto; scrollbar-width: none; }
.top nav a { padding: 8px 12px; border-radius: 999px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: 0.95rem; white-space: nowrap; }
.top nav a:hover { color: var(--ink); background: rgba(255, 255, 255, 0.05); }
main { max-width: 1240px; margin: 0 auto; padding: 0 24px 80px; }
@media (max-width: 700px) { .top { margin: 8px 8px 0; top: 8px; gap: 12px; padding-left: 16px; } .top nav { display: none; } main { padding: 0 16px 60px; } }

/* landing */
.hero { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: 48px; align-items: center; padding: 80px 0 50px; }
.hero h1 { margin: 0 0 20px; font-size: clamp(3rem, 6.4vw, 5.6rem); line-height: 0.95; }
.hero h1 span { color: var(--red); text-shadow: 0 0 40px rgba(255, 77, 94, 0.45); }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; padding-top: 50px; gap: 30px; } }

.frame { padding: 10px; background: linear-gradient(135deg, rgba(255, 77, 94, 0.55), rgba(63, 169, 255, 0.45)); clip-path: var(--cut); box-shadow: 0 40px 90px -30px rgba(255, 77, 94, 0.55); }
.frame > * { clip-path: var(--cut); }

.panel { background: var(--panel); clip-path: var(--cut); padding: 22px; position: relative; }
.panel.p2 { background: var(--panel-2); }
.panel.edge { box-shadow: inset 0 0 0 1px var(--line); }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { padding: 9px 16px; border-radius: 999px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); font-weight: 700; font-size: .92rem; }

.numbers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 30px 0; }
.numbers div { padding: 22px; background: var(--panel); clip-path: var(--cut); display: flex; flex-direction: column; gap: 6px; }
.numbers b { font-family: var(--display); font-weight: 400; font-size: 3.2rem; line-height: 1; color: var(--gold); }
.numbers div:nth-child(2) b { color: var(--blue); } .numbers div:nth-child(3) b { color: var(--red); } .numbers div:nth-child(4) b { color: var(--green); }
.numbers span { color: var(--muted); font-size: 0.95rem; }
@media (max-width: 800px) { .numbers { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.feat { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding: 50px 0; border-top: 1px solid var(--line); }
.feat .panel h3 { font-size: 1.7rem; margin-bottom: 10px; }
.feat .panel p { color: #d6d9e0; margin: 0; }
@media (max-width: 900px) { .feat { grid-template-columns: 1fr; } }
.tick { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.tick li { position: relative; padding-left: 28px; color: #e4e6eb; }
.tick li::before { content: ""; position: absolute; left: 0; top: 0.42em; width: 14px; height: 14px; background: var(--red); clip-path: polygon(0 0, 100% 50%, 0 100%); }

/* forms */
label.f { display: flex; flex-direction: column; gap: 6px; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
input[type=text], input[type=email], input[type=password], input[type=number], select, textarea {
  font: inherit; font-size: 1rem; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 0; padding: 11px 14px; min-height: 44px; width: 100%;
  clip-path: var(--cut-s); letter-spacing: normal; text-transform: none; font-weight: 500;
}
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 36px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); }
.form-grid { display: grid; gap: 14px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.swatches { display: flex; gap: 8px; }
.swatches input { display: none; }
.swatches label { width: 30px; height: 30px; border-radius: 50%; cursor: pointer; box-shadow: inset 0 0 0 2px rgba(0,0,0,.3); }
.swatches input:checked + label { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--ink); }

input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 26px; background: transparent; cursor: pointer; }
input[type=range]::-webkit-slider-runnable-track { height: 6px; background: var(--line); border-radius: 3px; }
input[type=range]::-moz-range-track { height: 6px; background: var(--line); border-radius: 3px; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; margin-top: -6px; background: var(--ink); border-radius: 2px; transform: rotate(45deg); }
input[type=range]::-moz-range-thumb { width: 16px; height: 16px; background: var(--ink); border: 0; border-radius: 2px; transform: rotate(45deg); }
.toggle { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; font-size: 0.92rem; user-select: none; }
.toggle input { appearance: none; width: 40px; height: 22px; border-radius: 11px; background: var(--line); position: relative; cursor: pointer; transition: background .15s; flex: none; margin: 0; }
.toggle input::after { content: ""; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--muted); transition: transform .15s, background .15s; }
.toggle input:checked { background: var(--green); }
.toggle input:checked::after { transform: translateX(18px); background: var(--bg); }

.seg { display: inline-flex; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); padding: 3px; gap: 3px; clip-path: var(--cut-s); }
.seg button { font: inherit; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); background: transparent; border: 0; padding: 8px 12px; cursor: pointer; }
.seg button.on { background: var(--ink); color: var(--bg); }

/* ===================== room ===================== */
.room-head { display: flex; align-items: flex-start; gap: 24px; padding: 30px 0 18px; flex-wrap: wrap; }
.crest { width: 54px; height: 60px; flex: none; }
.room-title { flex: 1 1 320px; min-width: 0; }
.room-title h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.status-row { display: flex; align-items: center; gap: 14px; margin-top: 10px; flex-wrap: wrap; color: #c7cbd4; font-size: .95rem; }
.live-pill { display: inline-flex; align-items: center; gap: 8px; padding: 5px 14px; border-radius: 999px; font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--red); background: rgba(255, 77, 94, 0.14); box-shadow: inset 0 0 0 1px rgba(255, 77, 94, .35); }
.live-pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 10px var(--red); animation: pulse 1.6s infinite; }
.live-pill.rec { color: var(--bg); background: var(--red); }
.live-pill.rec i { background: var(--bg); box-shadow: none; }
.live-pill.off { color: var(--muted); background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px var(--line); }
.live-pill.off i { background: var(--muted); box-shadow: none; animation: none; }
@keyframes pulse { 50% { opacity: .35; } }
.share { display: flex; gap: 0; align-items: stretch; }
.share input { width: 260px; min-height: 46px; font-size: .9rem; color: #c7cbd4; }
@media (max-width: 700px) {
  .share { width: 100%; flex-wrap: wrap; gap: 8px; }
  .share input { flex: 1 1 100%; width: auto; }
  .share .btn { flex: 1 1 0; padding: 0 12px; }
  .room-head { gap: 14px; padding-top: 22px; }
  .crest { width: 40px; height: 44px; }
  .transport .btn-big { min-height: 48px; padding: 0 18px; font-size: .8rem; flex: 1 1 auto; }
  .stand-top > div:last-child { text-align: left !important; }
  .inputs { grid-template-columns: 1fr; }
  .mt-head { top: 70px; }
}

.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; margin-bottom: 20px; }
.tabs button { font: inherit; font-weight: 800; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); background: none; border: 0;
  padding: 14px 18px; cursor: pointer; position: relative; white-space: nowrap; }
.tabs button:hover { color: var(--ink); }
.tabs button.on { color: var(--ink); }
.tabs button.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--red); }
.tabs .badge { display: inline-block; min-width: 18px; padding: 0 5px; margin-left: 6px; border-radius: 9px; background: var(--red); color: var(--bg); font-size: .68rem; line-height: 18px; text-align: center; }

.room-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
@media (max-width: 1000px) { .room-grid { grid-template-columns: 1fr; } }

.players { display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 14px; margin-bottom: 20px; }
.pcard { --pc: var(--red); position: relative; background: var(--panel); clip-path: var(--cut); padding: 3px; }
.pcard::before { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, var(--pc), transparent 55%); opacity: .55; }
.pcard-in { position: relative; background: var(--panel); clip-path: var(--cut); padding: 16px 14px 14px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; height: 100%; }
.pcard.talking .pcard-in { box-shadow: inset 0 0 0 1px var(--pc), inset 0 0 40px -18px var(--pc); }
.pcard .vid { width: 100%; aspect-ratio: 4/3; background: #000; clip-path: var(--cut-s); overflow: hidden; position: relative; margin-bottom: 8px; }
.pcard .vid video { width: 100%; height: 100%; object-fit: cover; }
.pcard .vid.mirror video { transform: scaleX(-1); }
.avatar-wrap { position: relative; margin: 4px 0 12px; }
.avatar { width: 76px; height: 76px; border-radius: 50%; background: var(--pc); display: grid; place-items: center; font-family: var(--display); font-size: 2.2rem; color: var(--bg);
  box-shadow: 0 0 0 3px rgba(255,255,255,.08), 0 0 30px -4px var(--pc); transition: box-shadow .08s; }
.avatar-wrap .inst { position: absolute; right: -6px; bottom: -8px; width: 34px; height: 34px; border-radius: 50%; background: var(--bg); display: grid; place-items: center;
  box-shadow: inset 0 0 0 2px var(--line); color: var(--pc); }
.avatar-wrap .inst svg { width: 18px; height: 18px; }
.pcard .vid + .avatar-wrap { display: none; }
.pname { font-family: var(--display); font-size: 1.5rem; text-transform: uppercase; color: var(--ink); line-height: 1.05; margin-top: 2px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pcard.me .pname { color: var(--pc); }
.pinst { color: #c7cbd4; font-size: .9rem; }
.ptags { display: flex; gap: 5px; flex-wrap: wrap; justify-content: center; min-height: 20px; margin: 6px 0 4px; }
.tag { font-size: .62rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: 2px 7px; border-radius: 3px; background: rgba(255,255,255,.07); color: var(--muted); }
.tag.ready { background: rgba(61, 220, 151, .16); color: var(--green); }
.tag.muted-t { background: rgba(255, 77, 94, .16); color: var(--red); }
.tag.rec { background: var(--red); color: var(--bg); }
.tag.up { background: rgba(63, 169, 255, .16); color: var(--blue); }
.meters { width: 100%; display: flex; flex-direction: column; gap: 4px; margin-top: 6px; }
.meter { height: 6px; width: 100%; background: var(--panel-3); border-radius: 3px; overflow: hidden; position: relative; }
.meter b { position: absolute; inset: 0 auto 0 0; width: 0%; background: var(--pc); border-radius: 3px; transition: width .06s linear; }
.meter.clip b { background: var(--gold); }
.meter-label { display: flex; justify-content: space-between; font-size: .66rem; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; font-weight: 700; }
.plat { font-size: .82rem; color: var(--muted); margin-top: 6px; }
.plat b { color: var(--ink); font-weight: 700; }
.plat.bad b { color: var(--red); } .plat.ok b { color: var(--gold); } .plat.good b { color: var(--green); }
.pcard.empty { opacity: .45; }
.pcard.empty .avatar { background: var(--panel-3); box-shadow: inset 0 0 0 2px var(--line); color: var(--muted); }

/* stand / transport */
.stand { margin-bottom: 20px; }
.stand-top { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: flex-start; }
.stand h2 { font-size: clamp(2rem, 4vw, 2.8rem); }
.clock { font-family: var(--display); font-size: 2.8rem; line-height: 1; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.clock.rec { color: var(--red); text-shadow: 0 0 30px rgba(255,77,94,.5); }
.transport { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.tempo { display: flex; gap: 16px; flex-wrap: wrap; align-items: flex-end; padding-top: 18px; }
.tempo .bpm { display: flex; align-items: center; gap: 0; }
.tempo .bpm input { width: 80px; text-align: center; font-family: var(--display); font-size: 1.4rem; padding: 6px; }
.tempo .bpm .btn { min-height: 44px; padding: 0 12px; }
.beats { display: flex; gap: 6px; align-items: center; height: 44px; }
.beats i { width: 16px; height: 16px; background: var(--panel-3); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); transition: background .05s; }
.beats i.on { background: var(--gold); }
.beats i.first.on { background: var(--red); }
.countdown { position: fixed; inset: 0; display: grid; place-items: center; pointer-events: none; z-index: 60; }
.countdown span { font-family: var(--display); font-size: min(40vw, 380px); line-height: 1; color: var(--red); text-shadow: 0 0 80px rgba(255,77,94,.7); animation: pop .4s ease-out; }
@keyframes pop { from { transform: scale(1.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; background: rgba(255, 197, 61, .08); box-shadow: inset 3px 0 0 var(--gold); margin-bottom: 16px; font-size: .92rem; color: #e4e6eb; }
.notice.red { background: rgba(255, 77, 94, .08); box-shadow: inset 3px 0 0 var(--red); }
.notice.blue { background: rgba(63, 169, 255, .08); box-shadow: inset 3px 0 0 var(--blue); }
.notice b { color: var(--ink); }
.notice .x { margin-left: auto; background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 1.2rem; line-height: 1; }

/* chat */
.chat { display: flex; flex-direction: column; height: 560px; }
.chat .kicker { color: var(--blue); }
.chat-log { flex: 1; overflow-y: auto; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); padding: 12px; display: flex; flex-direction: column; gap: 10px; clip-path: var(--cut-s); }
.chat-log .empty { color: var(--muted); text-align: center; margin: auto; font-size: .9rem; }
.msg { font-size: .92rem; line-height: 1.4; }
.msg b { font-weight: 800; margin-right: 6px; }
.msg.sys { color: var(--muted); font-size: .82rem; font-style: italic; }
.chat-form { display: flex; gap: 8px; margin-top: 12px; }
.chat-form input { border-radius: 999px; clip-path: none; }
@media (max-width: 1000px) { .chat { height: 380px; } }

/* mixer */
.mixer { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.strip { --pc: var(--blue); background: var(--panel); clip-path: var(--cut); padding: 18px; display: flex; flex-direction: column; gap: 14px; box-shadow: inset 0 3px 0 var(--pc); }
.strip h3 { font-size: 1.5rem; color: var(--pc); display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.strip h3 small { font-family: var(--body); font-size: .78rem; color: var(--muted); text-transform: none; font-weight: 600; letter-spacing: 0; }
.ctl { display: flex; flex-direction: column; gap: 2px; }
.ctl .lbl { display: flex; justify-content: space-between; font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.ctl .lbl output { color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.strip .btns { display: flex; gap: 6px; }
.strip .btns .btn { flex: 1; }
.btn.m-on { background: var(--red); color: var(--bg); }
.btn.s-on { background: var(--gold); color: var(--bg); }
.netstats { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; font-size: .78rem; color: var(--muted); padding-top: 10px; border-top: 1px solid var(--line); }
.netstats b { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.sub-tracks { display: flex; flex-direction: column; gap: 10px; }
.sub-track { background: var(--bg); padding: 10px 12px; box-shadow: inset 0 0 0 1px var(--line); clip-path: var(--cut-s); }
.sub-track .nm { font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 4px; display: flex; justify-content: space-between; }

/* inputs */
.inputs { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 16px; }
.input-card { --pc: var(--red); background: var(--panel); clip-path: var(--cut); padding: 22px; display: flex; flex-direction: column; gap: 16px; }
.input-card.b { --pc: var(--blue); }
.input-card h3 { font-size: 1.8rem; display: flex; align-items: center; gap: 12px; }
.input-card h3 .letter { width: 40px; height: 40px; display: grid; place-items: center; background: var(--pc); color: var(--bg); clip-path: var(--cut-s); font-size: 1.5rem; }
.input-card.off > :not(.ihead) { opacity: .35; pointer-events: none; }
.ihead { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.big-meter { height: 14px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); position: relative; overflow: hidden; clip-path: var(--cut-s); }
.big-meter b { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, var(--green) 0 70%, var(--gold) 70% 88%, var(--red) 88%); background-size: 100vw 100%; width: 0%; }
.big-meter u { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--ink); left: 0; text-decoration: none; }
.mode-help { font-size: .84rem; color: var(--muted); margin-top: 6px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 500px) { .two { grid-template-columns: 1fr; } }
.section-h { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin: 30px 0 14px; flex-wrap: wrap; }
.section-h h2 { font-size: 2rem; }

/* takes */
.take-list { display: flex; flex-direction: column; gap: 12px; }
.take-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px; align-items: center; background: var(--panel); clip-path: var(--cut); padding: 16px 20px; text-decoration: none; }
.take-row:hover { background: var(--panel-2); }
.take-row .num { font-family: var(--display); font-size: 2.2rem; color: var(--gold); width: 64px; text-align: center; }
.take-row h3 { font-size: 1.5rem; }
.take-row .meta { color: var(--muted); font-size: .88rem; margin-top: 4px; }
.take-row .who { display: flex; gap: 4px; }
.take-row .who i { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-family: var(--display); font-size: .9rem; color: var(--bg); }
.stars { color: var(--gold); letter-spacing: 2px; }
.stars button { background: none; border: 0; cursor: pointer; font-size: 1.4rem; color: var(--line); padding: 0 1px; }
.stars button.on { color: var(--gold); }

.mt { display: flex; flex-direction: column; gap: 8px; }
.mt-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 18px; background: var(--panel-2); clip-path: var(--cut-s); position: sticky; top: 82px; z-index: 5; }
.mt-head .clock { font-size: 2rem; margin-right: auto; }
.lane { --pc: var(--blue); display: grid; grid-template-columns: 250px minmax(0, 1fr); background: var(--panel); clip-path: var(--cut-s); min-height: 96px; }
.lane-ctl { padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; border-right: 1px solid var(--line); box-shadow: inset 3px 0 0 var(--pc); }
.lane-ctl .nm { font-family: var(--display); font-size: 1.25rem; text-transform: uppercase; color: var(--pc); line-height: 1.05; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lane-ctl .sub { font-size: .76rem; color: var(--muted); }
.lane-ctl .row { gap: 6px; flex-wrap: nowrap; }
.lane-ctl .row .btn { padding: 0 10px; min-height: 28px; font-size: .66rem; }
.lane-ctl input[type=range] { height: 18px; }
.lane-wave { position: relative; cursor: pointer; overflow: hidden; }
.lane-wave canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.playhead { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--ink); box-shadow: 0 0 10px var(--ink); pointer-events: none; z-index: 2; }
.ruler { display: grid; grid-template-columns: 250px minmax(0, 1fr); height: 26px; }
.ruler canvas { width: 100%; height: 26px; display: block; }
@media (max-width: 700px) { .lane, .ruler { grid-template-columns: 150px minmax(0,1fr); } .lane-ctl .row.extra { display: none; } }
.progress { height: 4px; background: var(--line); }
.progress b { display: block; height: 100%; width: 0; background: var(--red); }

/* modal */
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; background: rgba(5, 6, 9, .78); backdrop-filter: blur(6px); }
.modal .panel { width: min(520px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: 30px; box-shadow: inset 0 0 0 1px var(--line); }
.modal h2 { font-size: 2.6rem; margin-bottom: 8px; }
.inst-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.inst-pick input { display: none; }
.inst-pick label { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); cursor: pointer;
  font-size: .78rem; font-weight: 700; clip-path: var(--cut-s); color: var(--muted); }
.inst-pick label svg { width: 24px; height: 24px; }
.inst-pick input:checked + label { box-shadow: inset 0 0 0 2px var(--red); color: var(--ink); background: rgba(255,77,94,.08); }
.inst-pick input:checked + label svg { color: var(--red); }

.toast-wrap { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 70; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { background: var(--ink); color: var(--bg); padding: 10px 18px; font-weight: 700; font-size: .9rem; clip-path: var(--slant); animation: pop .25s; }
.toast.red { background: var(--red); }

/* admin */
.admin-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 26px 0 20px; }
table.t { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.t th { text-align: left; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); }
table.t td { padding: 12px; border-bottom: 1px solid var(--line); }
.table-wrap { overflow-x: auto; }
pre.changelog { white-space: pre-wrap; font-family: var(--body); color: #d6d9e0; font-size: .92rem; }
footer.foot { max-width: 1240px; margin: 0 auto; padding: 30px 24px 40px; color: var(--muted); font-size: .85rem; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
footer.foot .logo { font-size: 1.2rem; }
@media (max-width: 700px) {
  .pcard.empty ~ .pcard.empty { display: none; }
  .pcard.empty .avatar-wrap { display: none; }
  .players { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pcard .pname { font-size: 1.2rem; }
  .avatar { width: 60px; height: 60px; font-size: 1.8rem; }
}
