@font-face { font-family: 'Mr Dafoe'; src: url('../fonts/mr-dafoe.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Bowlby One SC'; src: url('../fonts/bowlby-one-sc.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Switzer'; src: url('../fonts/switzer-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Switzer'; src: url('../fonts/switzer-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Switzer'; src: url('../fonts/switzer-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }

:root {
  --tolex: #0b0b0c;
  --tolex-2: #141416;
  --cream: #f2f2f0;
  --cream-2: #ffffff;
  --ink: #0b0b0c;
  --ink-2: #9a9aa0;
  --muted: #9a9aa0;
  --valve: #ff6a1f;
  --valve-deep: #b8410f;
  --ember: #ffb347;
  --brass: #c9a24a;
  --oxblood: #ff6a1f;
  --grille: #18181b;
  --poster: #c64e1c;
  --display: 'Bowlby One SC', 'Arial Black', sans-serif;
  --script: 'Mr Dafoe', 'Brush Script MT', cursive;
  --text: 'Switzer', system-ui, sans-serif;
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --weave: repeating-linear-gradient(45deg, rgba(0,0,0,.34) 0 1px, transparent 1px 4px), repeating-linear-gradient(-45deg, rgba(255,255,255,.06) 0 1px, transparent 1px 4px);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { overflow-x: clip; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--cream);
  font: 400 17px/1.55 var(--text);
  background-color: var(--tolex);
  background-image: var(--noise), radial-gradient(1200px 700px at 50% -10%, #1c1c20, transparent 70%);
}
img, svg { max-width: 100%; }
a { color: var(--ember); }
button { font: inherit; color: inherit; }
kbd {
  display: inline-block;
  min-width: 1.7em;
  padding: 0 .4em;
  border-radius: 5px;
  border: 1px solid #46464c;
  border-bottom-width: 3px;
  background: #222226;
  color: var(--cream);
  font: 500 .82em/1.6 var(--text);
  text-align: center;
}
.script { font-family: var(--script); font-weight: 400; }
.small { font-size: 14px; color: var(--muted); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--valve); color: var(--ink); padding: 8px 12px; border-radius: 6px; z-index: 100; }
.skip:focus { left: 8px; }
main:focus, main:focus-visible { outline: none; }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; }

/* ---- header ---- */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 24px 8px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--cream); }
.brand .script { font-size: 34px; line-height: 1; transform: translateY(3px) rotate(-3deg); }
.nav { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.nav a {
  color: #c9c9cd;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  padding: 6px 12px;
  border-radius: 999px;
}
.nav a:hover { color: var(--cream-2); background: rgba(255,255,255,.05); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--cream); }

/* ---- home: the amp ---- */
.screen { max-width: 1180px; margin: 0 auto; padding: 18px 24px 56px; }
.amp {
  max-width: 980px;
  margin: 18px auto 0;
  border-radius: 22px;
  padding: 16px;
  background-color: #141416;
  background-image: var(--noise), linear-gradient(#1d1d20, #0e0e10);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.07), inset 0 -2px 0 rgba(0,0,0,.5);
  border: 1px solid #050506;
}
.amp-top { padding: 4px 4px 16px; }
.panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 22px;
  border-radius: 10px;
  color: var(--cream);
  background-color: #18181b;
  background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.022) 0 1px, transparent 1px 3px), linear-gradient(#232327, #141417);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.09), inset 0 -2px 0 rgba(0,0,0,.6), 0 2px 0 #050506;
}
.panel-knobs { display: flex; gap: clamp(14px, 3vw, 36px); }
.knob-wrap { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.knob {
  width: 84px;
  height: 84px;
  padding: 0;
  border: 0;
  background: none;
  cursor: grab;
  touch-action: none;
  border-radius: 50%;
}
.knob:active { cursor: grabbing; }
.knob svg { display: block; width: 100%; height: 100%; }
.knob .cap { transition: transform .18s cubic-bezier(.3,1.4,.6,1); transform-origin: 42px 42px; }
.knob-label { font-weight: 700; font-size: 13px; color: var(--ink-2); }
.panel-right { display: flex; align-items: center; gap: 20px; }
.readout {
  font: 400 15px/1 var(--display);
  color: var(--valve);
  text-shadow: 0 0 10px rgba(255,106,31,.45);
  background: #0b0b0c;
  border-radius: 6px;
  padding: 9px 12px 8px;
  box-shadow: inset 0 2px 4px rgba(0,0,0,.8), 0 0 0 1px #2a2a2e;
  white-space: nowrap;
}
.readout .dot { margin: 0 6px; color: var(--ink-2); }
.power { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.jewel {
  width: 26px; height: 26px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff1d0, #ff5a1a 45%, #8a1a06 80%);
  box-shadow: 0 0 0 4px #a4a4aa, 0 0 0 5px #2a2a2e, 0 0 18px 4px rgba(255,90,26,.55);
  animation: glow 2.6s ease-in-out infinite;
}
.power-label { font-weight: 700; font-size: 13px; color: var(--ink-2); }
@keyframes glow { 50% { box-shadow: 0 0 0 4px #a4a4aa, 0 0 0 5px #2a2a2e, 0 0 28px 8px rgba(255,90,26,.7); } }

.grille {
  position: relative;
  min-height: clamp(250px, 36vw, 400px);
  border-radius: 12px;
  display: grid;
  place-items: center;
  background-color: var(--grille);
  background-image: var(--weave), radial-gradient(120% 90% at 50% 40%, rgba(255,255,255,.07), rgba(0,0,0,.5));
  box-shadow: inset 0 0 0 3px #bdbdc2, inset 0 0 0 6px #050506, inset 0 12px 40px rgba(0,0,0,.55);
  overflow: hidden;
}
.plate { text-align: center; padding: 20px; transform: rotate(-3deg); }
.logo {
  margin: 0;
  font-size: clamp(84px, 15vw, 186px);
  line-height: .9;
  color: #f7f7f5;
  text-shadow: 0 2px 0 #77777d, 0 5px 0 #000, 0 0 46px rgba(255,106,31,.42);
  letter-spacing: .01em;
}
.plate-sub {
  margin: 12px 0 0;
  font-weight: 500;
  color: #e4e4e8;
  text-shadow: 0 1px 2px rgba(0,0,0,.7);
}

.cta-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin: 34px 0 10px; }
.cta-note { text-align: center; color: var(--muted); font-size: 15px; margin: 0 0 56px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 12px 24px 10px;
  border-radius: 12px;
  border: 0;
  font: 400 18px/1 var(--display);
  text-decoration: none;
  cursor: pointer;
  transition: transform .08s, box-shadow .08s, filter .15s;
}
.btn:active { transform: translateY(3px); }
.btn-valve { background: var(--valve); color: #2a1206; box-shadow: 0 4px 0 var(--valve-deep), 0 14px 30px -10px rgba(255,106,31,.6); }
.btn-valve:active { box-shadow: 0 1px 0 var(--valve-deep); }
.btn-valve:hover { filter: brightness(1.06); }
.btn-cream { background: transparent; color: var(--cream); box-shadow: inset 0 0 0 2px rgba(242,242,240,.8); }
.btn-cream:hover { background: rgba(255,255,255,.06); }
.btn-cream:active { box-shadow: inset 0 0 0 2px rgba(242,242,240,.8); }
.btn-ghost { background: transparent; color: var(--cream); box-shadow: inset 0 0 0 2px #4a4a50; }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.btn-big { width: 100%; min-height: 62px; font-size: 22px; }
.link-btn { background: none; border: 0; padding: 6px 0; color: var(--ember); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: 15px; }

/* posters */
.posters { list-style: none; margin: 0 auto 64px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; max-width: 1060px; }
.poster {
  position: relative;
  padding: 22px 22px 26px;
  border-radius: 6px;
  color: #fbeed5;
  background-color: var(--poster);
  background-image: radial-gradient(rgba(70,20,4,.35) 1.3px, transparent 1.6px), linear-gradient(160deg, #d55a24, #a83c12);
  background-size: 7px 7px, auto;
  box-shadow: 0 18px 30px -16px rgba(0,0,0,.7);
}
.poster:nth-child(1) { transform: rotate(-1.2deg); }
.poster:nth-child(2) { transform: rotate(.8deg) translateY(10px); }
.poster:nth-child(3) { transform: rotate(-.5deg); }
.poster-n { display: block; font-size: 58px; line-height: .8; color: #ffffff; margin-bottom: 6px; }
.poster h2 { font: 400 26px/1.05 var(--display); margin: 0 0 10px; color: #1f0d05; }
.poster p { margin: 0; font-weight: 500; color: #ffffff; }

/* duo and leaderboard */
.extras { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; max-width: 1000px; margin: 0 auto 40px; }
.extra {
  display: block;
  padding: 22px 24px;
  border-radius: 16px;
  text-decoration: none;
  color: var(--cream);
  background-color: #141416;
  background-image: var(--noise), linear-gradient(#1b1b1e, #111113);
  box-shadow: inset 0 0 0 1px #2a2a2e;
  transition: transform .15s, box-shadow .15s;
}
.extra:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px #46464c, 0 16px 30px -18px #000; }
.extra-k { display: block; font-size: 30px; line-height: 1; color: var(--ember); }
.extra h2 { font: 400 28px/1.1 var(--display); margin: 4px 0 8px; color: var(--cream-2); }
.extra p { margin: 0; color: #c9c9cd; }

/* bring your own */
.byo {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  gap: 34px;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
  padding: 34px;
  border-radius: 18px;
  background: linear-gradient(#161618, #101012);
  box-shadow: inset 0 0 0 1px #2a2a2e;
}
.byo h2 { font: 400 clamp(28px, 4vw, 40px)/1.05 var(--display); margin: 0 0 14px; color: var(--cream-2); }
.byo p { color: #c9c9cd; margin: 0 0 14px; max-width: 54ch; }
.byo .btn { margin-top: 8px; }
.cab {
  aspect-ratio: 1 / 1.15;
  border-radius: 14px;
  padding: 16px;
  display: grid;
  gap: 14px;
  background-color: #141416;
  background-image: var(--noise);
  box-shadow: 0 20px 40px -18px #000, inset 0 0 0 2px #2a2a2e;
  position: relative;
}
.cab::before {
  content: '';
  position: absolute;
  inset: 12px;
  border-radius: 8px;
  background-color: var(--grille);
  background-image: var(--weave);
  box-shadow: inset 0 0 0 3px #bdbdc2, inset 0 0 0 5px #050506;
}
.cab-cone {
  position: relative;
  z-index: 1;
  margin: auto;
  width: 72%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, #0b0b0c 0 9%, #2e2e33 10% 14%, #0b0b0c 15% 38%, transparent 39%), radial-gradient(circle, rgba(0,0,0,.45), rgba(0,0,0,.1) 70%, transparent 71%);
  mix-blend-mode: multiply;
  animation: thump 1.25s ease-in-out infinite;
}
.cab-cone + .cab-cone { animation-delay: .1s; }
@keyframes thump { 0%, 100% { transform: scale(1); } 8% { transform: scale(1.035); } 20% { transform: scale(1); } }

/* ---- setlist ---- */
.tabs { display: flex; gap: 10px; margin: 6px 0 22px; flex-wrap: wrap; }
.tab {
  border: 0;
  cursor: pointer;
  padding: 11px 18px 9px;
  border-radius: 10px;
  font: 400 16px/1 var(--display);
  background: #1c1c1f;
  color: #b9b9be;
  box-shadow: 0 3px 0 #000;
}
.tab[aria-selected="true"] { background: var(--cream); color: var(--ink); box-shadow: 0 3px 0 #8c8c92; }
.setlist-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 30px; align-items: start; }
.paper {
  position: relative;
  color: var(--cream);
  padding: 30px 28px 26px;
  border-radius: 3px;
  background-color: #141416;
  background-image: repeating-linear-gradient(transparent 0 37px, rgba(255,255,255,.045) 37px 38px), var(--noise);
  background-blend-mode: normal, soft-light;
  box-shadow: inset 0 0 0 1px #26262a, 0 24px 40px -18px rgba(0,0,0,.8);
  box-shadow: 0 24px 40px -18px rgba(0,0,0,.8);
  transform: rotate(-.6deg);
}
.tape {
  position: absolute;
  top: -12px;
  width: 92px;
  height: 28px;
  background: rgba(120,120,126,.55);
  box-shadow: 0 1px 2px rgba(0,0,0,.25);
}
.tape-l { left: 18px; transform: rotate(-6deg); }
.tape-r { right: 18px; transform: rotate(5deg); }
.paper-head { font: 400 46px/1 var(--script); margin: 0 0 10px; color: var(--oxblood); }
.songs { list-style: none; margin: 0; padding: 0; }
.song {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 8px 10px;
  margin: 0;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--cream);
  text-align: left;
  cursor: pointer;
  position: relative;
}
.song:hover { background: rgba(255,106,31,.07); }
.song[aria-pressed="true"]::before {
  content: '';
  position: absolute;
  left: 40px; right: 6px; top: 50%;
  height: 58%;
  transform: translateY(-46%) rotate(-.7deg);
  background: rgba(255,106,31,.26);
  border-radius: 4px 14px 6px 12px;
  z-index: 0;
}
.song > * { position: relative; z-index: 1; }
.song-n { font: 400 30px/1 var(--script); color: var(--ink-2); text-align: right; }
.song-title { display: block; font: 400 34px/1.05 var(--script); color: #f7f7f5; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.song-meta { display: block; font-size: 13px; font-weight: 500; color: var(--ink-2); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.song-stars { display: flex; gap: 2px; }
.mini-pick { width: 12px; height: 13px; }
.empty { color: var(--ink-2); font-weight: 500; margin: 16px 4px 4px; }

.drop {
  display: grid;
  gap: 4px;
  justify-items: center;
  text-align: center;
  padding: 28px 18px;
  margin-bottom: 18px;
  border-radius: 12px;
  border: 2px dashed #46464c;
  background: rgba(255,255,255,.03);
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.drop:hover, .drop.over { background: rgba(255,106,31,.08); border-color: var(--valve); }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop:focus-within { outline: 2px solid var(--valve-deep); outline-offset: 3px; }
.drop-title { font: 400 22px/1.1 var(--display); color: var(--cream); }
.drop-sub { font-size: 15px; color: var(--ink-2); }
.drop-note { font-size: 13px; font-weight: 700; color: var(--oxblood); margin-top: 6px; }
.analysing { margin: 0 0 18px; }
.analysing p { margin: 0 0 8px; font-weight: 700; color: var(--cream); }
.bar { height: 10px; border-radius: 99px; background: rgba(255,255,255,.1); overflow: hidden; }
.bar span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--valve-deep), var(--valve), var(--ember)); transition: width .15s; }

.rig { position: sticky; top: 18px; }
.rig-panel {
  padding: 24px;
  border-radius: 16px;
  background-color: #141416;
  background-image: var(--noise), linear-gradient(#1b1b1e, #111113);
  box-shadow: inset 0 0 0 1px #2a2a2e, 0 24px 40px -20px #000;
}
.rig-style { margin: 0; font-weight: 700; font-size: 14px; color: var(--ember); }
.rig-title { margin: 4px 0 6px; font: 400 clamp(26px, 3vw, 34px)/1.05 var(--display); color: var(--cream-2); overflow-wrap: anywhere; }
.rig-meta { margin: 0 0 10px; color: var(--muted); font-size: 15px; }
.rig-blurb { margin: 0 0 18px; color: #c9c9cd; }
.switches { border: 0; padding: 0; margin: 0 0 18px; }
.switches legend { font-weight: 700; font-size: 14px; color: var(--muted); margin-bottom: 8px; padding: 0; }
.switch-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.pedal {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 10px 4px 9px;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  background: linear-gradient(#26262a, #18181b);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 3px 0 #0c0806;
  color: #b9b9be;
  font-weight: 700;
  font-size: 14px;
}
.pedal .led { width: 10px; height: 10px; border-radius: 50%; background: #3b1a10; box-shadow: inset 0 1px 2px rgba(0,0,0,.6); }
.pedal[aria-checked="true"] { color: var(--cream-2); background: linear-gradient(#323237, #202024); }
.pedal[aria-checked="true"] .led { background: #ff5a1a; box-shadow: 0 0 10px 2px rgba(255,90,26,.7); }
.bests { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 0 0 20px; }
.bests div { background: rgba(255,255,255,.04); border-radius: 8px; padding: 8px 8px 7px; min-width: 0; }
.bests dt { font-size: 12px; font-weight: 700; color: var(--muted); }
.bests dd { margin: 2px 0 0; font: 400 15px/1.2 var(--display); color: var(--cream-2); overflow: hidden; text-overflow: ellipsis; }
.bests dd.none { font: 500 14px/1.2 var(--text); color: #66666c; }
.rig .link-btn { display: block; margin: 14px auto 0; }

/* ---- sheets: how + settings ---- */
.sheet {
  color: var(--cream);
  max-width: 1020px;
  margin: 10px auto 0;
  padding: clamp(22px, 4vw, 40px);
  border-radius: 14px;
  background-color: #141416;
  background-image: var(--noise), linear-gradient(#1a1a1d, #111113);
  box-shadow: inset 0 0 0 1px #26262a, 0 30px 50px -24px #000;
}
.sheet-title { font: 400 clamp(54px, 9vw, 86px)/.9 var(--script); color: var(--oxblood); margin: 0 0 18px; transform: rotate(-2deg); transform-origin: left; }
.sheet h2 { font: 400 22px/1.1 var(--display); margin: 0 0 10px; color: var(--cream); }
.sheet p { margin: 0 0 12px; color: #c9c9cd; }
.sheet .small { color: var(--ink-2); }
.sheet a { color: var(--valve); }
.how-grid, .set-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 40px; }
.rules { margin: 0; padding-left: 18px; color: #c9c9cd; }
.rules li { margin-bottom: 6px; }
.keys { display: flex; gap: 8px; margin: 6px 0 12px; flex-wrap: wrap; }
.keycap {
  display: grid;
  justify-items: center;
  gap: 4px;
  min-width: 56px;
  padding: 8px 8px 6px;
  border-radius: 10px;
  background: #222226;
  color: var(--cream);
  font: 400 18px/1 var(--display);
  box-shadow: 0 3px 0 #000, inset 0 0 0 1px #34343a;
}
.keycap i { width: 16px; height: 16px; border-radius: 50%; display: block; }
.binds { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 6px; }
.bind { min-width: 70px; border: 0; cursor: pointer; }
.bind.listening { background: var(--valve); color: #2a1206; }
.offset { display: flex; align-items: center; gap: 14px; margin: 6px 0 12px; }
.offset input { flex: 1; width: 0; min-width: 0; accent-color: var(--valve); }
.offset output { font: 400 18px/1 var(--display); min-width: 80px; text-align: right; }
.calib { font-weight: 700; color: var(--oxblood); min-height: 1.5em; margin-top: 10px; }
.check { display: flex; gap: 10px; align-items: center; margin: 8px 0; font-weight: 500; }
.check input { width: 20px; height: 20px; accent-color: var(--valve); }
.range { display: grid; grid-template-columns: 90px minmax(0, 1fr); align-items: center; gap: 10px; margin: 10px 0; font-weight: 500; }
.range input { width: 100%; accent-color: var(--valve); }

.foot { max-width: 1180px; margin: 0 auto; padding: 10px 24px 40px; color: #77777d; font-size: 14px; text-align: center; }
.foot .script { font-size: 22px; color: var(--cream); }
.noscript { text-align: center; padding: 40px; }

/* ---- stage ---- */
body.playing { overflow: hidden; }
.stage {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: radial-gradient(120% 80% at 50% 0%, #1c1c20 0%, #0a0a0b 60%, #050506 100%);
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}
.necks { position: absolute; inset: 0; display: flex; }
.neck { position: relative; flex: 1 1 0; min-width: 0; height: 100%; display: block; }
.stage[data-mode="duo"] .neck + .neck { box-shadow: -1px 0 0 rgba(255,235,200,.08); }
.hud { position: absolute; inset: 0; pointer-events: none; }
.hud button { pointer-events: auto; }
.hud-top { position: absolute; left: 0; right: 0; top: 0; display: flex; justify-content: space-between; align-items: flex-start; padding: 14px 18px; gap: 12px; }
.nowplaying { display: grid; min-width: 0; }
.np-title { font: 400 18px/1.1 var(--display); color: var(--cream-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.np-sub { font-size: 13px; color: var(--muted); font-weight: 500; }
.hud-btn {
  width: 44px; height: 44px; border-radius: 12px; border: 0; cursor: pointer;
  background: rgba(28,28,31,.85); color: var(--cream); font: 400 15px/1 var(--display);
  box-shadow: inset 0 0 0 1px #3a3a3f;
}
.progress { position: absolute; left: 18px; right: 18px; top: 66px; height: 3px; background: rgba(255,255,255,.08); border-radius: 3px; }
.progress span { display: block; height: 100%; width: 0; background: var(--ember); border-radius: inherit; }

.pl { position: absolute; top: 90px; display: grid; gap: 10px; justify-items: start; }
.pl[data-pl="0"] { left: 22px; }
.pl[data-pl="1"] { right: 22px; justify-items: end; }
.pl[data-pl="1"] .mult-row { flex-direction: row-reverse; }
.pl[data-pl="1"] .streak { text-align: right; }
.pl-tag { display: none; font: 400 15px/1 var(--display); color: var(--ember); }
.stage[data-mode="duo"] .pl-tag { display: block; }
.pl .burn { margin-top: 4px; }
.joint { display: none; }
.stage[data-mode="duo"] .joint {
  display: grid;
  justify-items: center;
  position: absolute;
  left: 50%;
  top: 10px;
  transform: translateX(-50%);
}
.joint small { font: 500 12px/1.2 var(--text); color: var(--muted); }
.joint span { font: 400 30px/1 var(--display); color: var(--cream-2); font-variant-numeric: tabular-nums; text-shadow: 0 3px 0 #000; }
.stage[data-mode="duo"] .nowplaying { max-width: calc(50% - 110px); }
.score { font: 400 44px/1 var(--display); color: var(--cream-2); font-variant-numeric: tabular-nums; text-shadow: 0 3px 0 #000; }
.mult-row { display: flex; align-items: center; gap: 14px; }
.valve {
  --g: 0;
  width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center;
  font: 400 21px/1 var(--display);
  color: #1d0c03;
  background: radial-gradient(circle at 50% 45%, #fff3d2, var(--ember) 40%, var(--valve-deep) 75%);
  box-shadow: 0 0 0 3px #3a3a3f, 0 0 calc(var(--g) * 26px) calc(var(--g) * 6px) rgba(255,120,30,.7);
  filter: saturate(calc(.4 + var(--g) * .6)) brightness(calc(.65 + var(--g) * .35));
  transition: box-shadow .2s, filter .2s;
}
.valve.burning { animation: flick .18s steps(2) infinite; }
@keyframes flick { 50% { filter: brightness(1.25) saturate(1.2); } }
.streak { display: grid; font: 400 26px/1 var(--display); color: var(--cream); font-variant-numeric: tabular-nums; }
.streak small { font: 500 12px/1.4 var(--text); color: var(--muted); }

.gauge { position: absolute; right: 22px; top: 90px; width: 132px; display: grid; justify-items: center; }
.stage[data-mode="duo"] .gauge { right: auto; left: 50%; top: 76px; transform: translateX(-50%); }
.gauge svg { width: 132px; height: auto; }
.gauge line { transform-origin: 60px 64px; transition: transform .25s cubic-bezier(.3,1.3,.6,1); }
.gauge-label { font: 500 12px/1 var(--text); color: var(--muted); margin-top: -4px; }
.burn {
  display: grid; justify-items: center; gap: 6px;
  padding: 10px 12px 8px;
  border-radius: 12px;
  border: 0;
  cursor: pointer;
  background: rgba(28,28,31,.85);
  box-shadow: inset 0 0 0 1px #3a3a3f;
}
.tubes { display: flex; gap: 6px; }
.tubes i {
  width: 16px; height: 34px;
  border-radius: 8px 8px 4px 4px;
  background: linear-gradient(#2a2a2e, #18181b);
  box-shadow: inset 0 0 0 1px #46464c;
}
.tubes i.on { background: linear-gradient(#fff2c8, var(--ember) 45%, var(--valve)); box-shadow: 0 0 12px rgba(255,140,40,.6); }
.burn-label { font: 400 13px/1 var(--display); color: var(--muted); }
.burn.ready { animation: ready 1s ease-in-out infinite; }
.burn.ready .burn-label { color: var(--ember); }
.burn.lit .burn-label { color: #fff2c8; }
@keyframes ready { 50% { box-shadow: inset 0 0 0 1px #3a3a3f, 0 0 24px 4px rgba(255,120,30,.5); } }

.countdown {
  position: absolute; left: 50%; top: 40%;
  transform: translate(-50%, -50%);
  font-size: clamp(90px, 18vw, 180px);
  color: #f6e6c2;
  text-shadow: 0 6px 0 #3a2616, 0 0 40px rgba(255,120,30,.5);
  pointer-events: none;
}
.toast {
  position: absolute; left: 50%; top: 24%;
  transform: translateX(-50%);
  font: 400 clamp(22px, 3.4vw, 34px)/1 var(--display);
  color: var(--ember);
  text-shadow: 0 3px 0 #000;
  opacity: 0;
  transition: opacity .25s;
  pointer-events: none;
  white-space: nowrap;
}
.toast.show { opacity: 1; }

.overlay {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  padding: 20px;
  background: rgba(8,5,4,.72);
  backdrop-filter: blur(3px);
  z-index: 5;
}
.card {
  position: relative;
  width: min(520px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 30px;
  border-radius: 16px;
  color: var(--cream);
  background-color: #141416;
  background-image: var(--noise), linear-gradient(#1c1c1f, #111113);
  box-shadow: inset 0 0 0 1px #2a2a2e, 0 30px 60px -20px #000;
  text-align: center;
}
.card h2 { font: 400 30px/1.1 var(--display); margin: 4px 0 16px; }
.card .big { font: 400 clamp(64px, 12vw, 92px)/.9 var(--script); color: var(--oxblood); margin: 6px 0 12px; }
.card-kicker { margin: 0; font-weight: 700; color: var(--valve); }
.card-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 18px; }
.card .btn-ghost { color: var(--cream); box-shadow: inset 0 0 0 2px #4a4a50; }
.card .bar { margin: 6px 0 10px; }
.card-results, .card-fail {
  color: #fbeed5;
  background-color: var(--poster);
  background-image: radial-gradient(rgba(70,20,4,.32) 1.3px, transparent 1.6px), linear-gradient(160deg, #d55a24, #a83c12);
  background-size: 7px 7px, auto;
  background-blend-mode: normal;
}
.card-results .card-kicker, .card-fail .card-kicker { color: #ffffff; }
.card-results .big, .card-fail .big { color: #ffffff; text-shadow: 0 3px 0 #5a1c06; }
.card-fail p { color: #ffffff; }
.card-results .btn-ghost, .card-fail .btn-ghost { color: #ffffff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.7); }
.card-results .btn-valve, .card-fail .btn-valve { background: #0b0b0c; color: #ffffff; box-shadow: 0 4px 0 #000; }
.res-stars { display: flex; justify-content: center; gap: 6px; margin: 0 0 6px; }
.res-stars svg { width: 34px; height: 38px; }
.res-score { font: 400 46px/1 var(--display); color: #1f0d05; margin: 4px 0 16px; font-variant-numeric: tabular-nums; }
.res-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; }
.res-stats div { background: rgba(40,10,0,.22); border-radius: 10px; padding: 8px 6px; }
.res-stats dt { font-size: 12px; font-weight: 700; color: rgba(255,255,255,.85); }
.res-stats dd { margin: 2px 0 0; font: 400 20px/1.1 var(--display); color: #ffffff; }
.stamp {
  position: absolute; right: 10px; top: 10px;
  font: 400 15px/1 var(--display);
  color: #ffffff;
  padding: 12px 10px;
  border: 3px solid #ffffff;
  border-radius: 50%;
  width: 74px; height: 74px;
  display: grid; place-items: center;
  text-align: center;
  transform: rotate(14deg);
  opacity: .9;
}

/* ---- results: stamp and posting ---- */
.card-results .card-kicker { margin: 0 84px 18px; }
.card-results .big { font-size: clamp(50px, 9vw, 72px); margin-top: 14px; }
.post { margin: 18px 0 0; padding: 14px; border-radius: 12px; background: rgba(40,10,0,.22); }
.post-names { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 10px; }
.post label { display: grid; gap: 4px; text-align: left; font-size: 12px; font-weight: 700; color: #ffffff; }
.post input {
  width: 100%;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 9px;
  border: 0;
  background: #ffffff;
  color: var(--ink);
  font: 500 16px/1.2 var(--text);
}
.post input:focus-visible { outline: 2px solid #0b0b0c; outline-offset: 2px; }
.post .btn { width: 100%; min-height: 46px; font-size: 16px; }
.post-msg { margin: 10px 0 0; min-height: 1.2em; font-weight: 500; color: #ffffff; }
.post-msg a { color: #ffffff; font-weight: 700; }

/* ---- setlist: players ---- */
.switch-row.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.switch-row.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.p2 { padding: 14px 14px 2px; margin: 0 0 18px; border-radius: 12px; background: rgba(255,255,255,.035); box-shadow: inset 0 0 0 1px #2a2a2e; }
.duo-note { margin: -6px 0 14px; font-size: 14px; color: var(--muted); }
.bests { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.bind-who { margin: 10px 0 4px; font-weight: 700; font-size: 14px; color: var(--ink-2); }

/* ---- leaderboard ---- */
.board-intro { max-width: 70ch; }
.board-controls { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 16px; align-items: end; margin: 18px 0 20px; }
.board-song { display: grid; gap: 6px; font-weight: 700; font-size: 14px; color: var(--ink-2); }
.board-song select {
  width: 100%;
  padding: 11px 12px;
  border-radius: 10px;
  border: 0;
  background: #222226;
  color: var(--cream);
  font: 400 16px/1.2 var(--display);
  box-shadow: 0 3px 0 #000, inset 0 0 0 1px #34343a;
}
.board .pedal { color: #b9b9be; }
.board-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.board-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto 70px 110px;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(255,255,255,.04);
}
.board-row:nth-child(-n+3) { background: rgba(255,106,31,.1); }
.board-row.mine { box-shadow: inset 0 0 0 2px var(--valve); }
.b-rank { font: 400 34px/1 var(--script); color: var(--oxblood); text-align: center; }
.b-name { display: grid; font-weight: 700; color: var(--cream); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.b-name small { font-weight: 500; font-size: 13px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; }
.b-stars { display: flex; gap: 2px; color: var(--valve); }
.b-acc { font-weight: 500; color: var(--ink-2); text-align: right; font-variant-numeric: tabular-nums; }
.b-score { font: 400 20px/1 var(--display); color: var(--cream); text-align: right; font-variant-numeric: tabular-nums; }
.board-note { margin-top: 14px; }

/* ---- responsive ---- */
@media (max-width: 900px) {
  .extras { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
  .posters { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
  .poster:nth-child(n) { transform: rotate(-.6deg); }
  .poster:nth-child(2) { transform: rotate(.6deg); }
  .byo { grid-template-columns: minmax(0, 1fr); }
  .byo-art { max-width: 260px; }
  .setlist-grid { grid-template-columns: minmax(0, 1fr); }
  .rig { position: static; }
  .how-grid, .set-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .board-controls { grid-template-columns: minmax(0, 1fr); }
  .switch-row.five { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .board-row { grid-template-columns: 34px minmax(0, 1fr) 84px; gap: 8px; padding: 9px 10px; }
  .b-stars, .b-acc { display: none; }
  .b-rank { font-size: 28px; }
  .b-score { font-size: 17px; }
  .bests { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .card-results .card-kicker { margin: 0 70px 14px 0; text-align: left; }
  body { font-size: 16px; }
  .top { flex-direction: column; align-items: flex-start; padding: 14px 16px 4px; gap: 8px; }
  .nav { justify-content: flex-start; gap: 2px; }
  .nav a { padding: 6px 10px; font-size: 14px; }
  .screen { padding: 12px 16px 44px; }
  .amp { padding: 10px; border-radius: 16px; }
  .panel { flex-direction: column; align-items: stretch; padding: 14px; }
  .panel-knobs { justify-content: space-around; }
  .knob { width: 70px; height: 70px; }
  .panel-right { justify-content: space-between; }
  .readout { font-size: 13px; }
  .plate { padding: 16px 8px; }
  .byo { padding: 22px; }
  .paper { padding: 26px 14px 20px; }
  .song { grid-template-columns: 28px minmax(0, 1fr) auto; gap: 8px; padding: 8px 6px; }
  .song-title { font-size: 29px; }
  .song-n { font-size: 25px; }
  .song[aria-pressed="true"]::before { left: 30px; }
  .rig-panel { padding: 18px; }
  .hud-top { padding: 10px 12px; }
  .progress { top: 58px; left: 12px; right: 12px; }
  .pl { top: 72px; gap: 6px; }
  .pl[data-pl="0"] { left: 12px; }
  .pl[data-pl="1"] { right: 12px; }
  .score { font-size: 28px; }
  .valve { width: 46px; height: 46px; font-size: 16px; }
  .streak { font-size: 20px; }
  .gauge { right: 12px; top: 72px; }
  .stage[data-mode="duo"] .gauge { top: 64px; }
  .joint span { font-size: 22px; }
  .gauge, .gauge svg { width: 92px; }
  .tubes i { width: 12px; height: 26px; }
  .card { padding: 22px 18px; }
  .res-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .res-score { font-size: 38px; }
  .stamp { width: 66px; height: 66px; font-size: 12px; right: 10px; top: 10px; }
}
@media (max-width: 380px) {
  .song-title { font-size: 25px; }
  .mini-pick { width: 9px; height: 10px; }
  .song-stars { gap: 1px; }
  .knob { width: 60px; height: 60px; }
  .readout .dot { margin: 0 3px; }
  .switch-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-height: 520px) and (orientation: landscape) {
  .np-title { font-size: 15px; }
  .valve { width: 44px; height: 44px; font-size: 15px; }
  .streak { font-size: 19px; }
  .pl { gap: 5px; }
  .burn { padding: 6px 8px 5px; gap: 4px; }
  .tubes i { width: 11px; height: 24px; }
  .joint span { font-size: 22px; }
  .toast { top: 38%; font-size: 20px; }
  .pl, .gauge { top: 60px; }
  .stage[data-mode="duo"] .gauge { top: 56px; }
  .score { font-size: 26px; }
  .gauge, .gauge svg { width: 84px; }
  .progress { top: 52px; }
}
@media (prefers-reduced-motion: reduce) {
  .jewel, .cab-cone, .burn.ready, .valve.burning { animation: none; }
}
