:root {
  --bg: #0d0b0a;
  --bg2: #16120f;
  --panel: rgba(34, 27, 22, .62);
  --line: rgba(255, 200, 130, .14);
  --line2: rgba(255, 200, 130, .28);
  --text: #f3ebdd;
  --muted: #a99c8a;
  --cream: #efe6d2;
  --gold: #ffb347;
  --gold2: #ffd27a;
  --ember: #ff7a2f;
  --teal: #4fd1c5;
  --violet: #b28dff;
  --good: #5dffa0;
  --bad: #ff6b6b;
  --r: 16px;
  --shadow: 0 18px 50px rgba(0, 0, 0, .45);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0; font: 15px/1.5 Inter, system-ui, sans-serif; color: var(--text);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(255, 140, 50, .10), transparent 60%),
    radial-gradient(900px 600px at -10% 40%, rgba(120, 80, 255, .07), transparent 60%),
    var(--bg);
  min-height: 100vh;
}
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { font-family: 'Bebas Neue', Impact, sans-serif; font-weight: 400; letter-spacing: .02em; margin: 0; }
h2 { font-size: 34px; line-height: 1; }
h3 { font-size: 22px; color: var(--gold2); margin-bottom: 10px; }
.muted { color: var(--muted); margin: 4px 0 0; }
.small { font-size: 13px; }
kbd { background: #2a221c; border: 1px solid var(--line2); border-radius: 5px; padding: 0 6px; font-size: 12px; }
[hidden] { display: none !important; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-bg { position: absolute; inset: 0; background: url(../img/hero.webp) right 40% / cover no-repeat; }
.hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg) 18%, rgba(13, 11, 10, .55) 50%, rgba(13, 11, 10, .1)), linear-gradient(0deg, var(--bg), transparent 45%); }
.topbar { position: relative; display: flex; justify-content: space-between; align-items: center; padding: 10px clamp(16px, 4vw, 48px) 4px; gap: 12px; }
.brand { font-family: 'Bebas Neue', sans-serif; font-size: 28px; letter-spacing: .08em; display: flex; align-items: center; gap: 10px; color: var(--gold2); text-shadow: 0 0 18px rgba(255, 170, 70, .5); }
.pick { width: 22px; height: 26px; background: linear-gradient(160deg, var(--gold2), var(--ember)); clip-path: path('M11 0C4 0 0 4 0 9c0 7 6 13 11 17 5-4 11-10 11-17 0-5-4-9-11-9z'); box-shadow: 0 0 12px var(--gold); }
.top-actions { display: flex; align-items: center; gap: 10px; }
.hero-copy { position: relative; padding: 0 clamp(16px, 4vw, 48px) 14px; max-width: 760px; display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.hero-copy h1 { font-size: clamp(26px, 3vw, 38px); line-height: 1; }
.hero-copy h1 em { font-style: normal; color: var(--gold); text-shadow: 0 0 30px rgba(255, 160, 60, .55); }
.hero-copy p { color: #d6cab6; font-size: 14px; margin: 0; }

.btn { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line2); background: linear-gradient(180deg, #3a2c20, #251b14); border-radius: 999px; padding: 8px 16px; font-weight: 600; transition: .15s; white-space: nowrap; }
.btn:hover { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(255, 179, 71, .12); }
.btn.big { padding: 12px 26px; font-size: 17px; background: linear-gradient(180deg, var(--gold2), var(--ember)); color: #241307; border: 0; box-shadow: 0 8px 24px rgba(255, 122, 47, .35); }
.btn.big:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; }
.btn.round { width: 36px; height: 36px; padding: 0; justify-content: center; font-size: 22px; line-height: 1; }
.btn.icon { width: 40px; height: 40px; padding: 0; justify-content: center; }
.btn.mic.on { background: linear-gradient(180deg, #ff6b4a, #c0301a); border-color: transparent; box-shadow: 0 0 0 4px rgba(255, 80, 50, .2), 0 0 24px rgba(255, 80, 50, .5); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(255, 80, 50, .08), 0 0 30px rgba(255, 80, 50, .6); } }
.linkish { background: none; border: 0; color: var(--gold2); text-decoration: underline; padding: 0 4px; }
.lvl-badge { font-family: 'Bebas Neue'; font-size: 18px; color: #241307; background: var(--gold); border-radius: 8px; padding: 2px 8px; }

.heard { display: none; align-items: center; gap: 8px; border: 1px solid var(--line2); border-radius: 999px; padding: 4px 12px 4px 6px; background: rgba(0, 0, 0, .4); --lvl: 0; }
.heard.show { display: flex; }
.heard .meter { width: 26px; height: 26px; border-radius: 50%; background: conic-gradient(var(--gold) calc(var(--lvl) * 360deg), rgba(255, 255, 255, .08) 0); }
.heard b { font-family: 'Bebas Neue'; font-size: 22px; min-width: 34px; }
.heard.in b { color: var(--good); }
.heard.out b { color: var(--bad); }
.heard.pop b { animation: pop .3s; }
@keyframes pop { 0% { transform: scale(1.5); } }

/* ---------- tabs ---------- */
.tabs { position: sticky; top: 0; z-index: 20; display: flex; gap: 4px; padding: 10px clamp(16px, 4vw, 48px); background: rgba(13, 11, 10, .85); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); overflow-x: auto; }
.tab { border: 0; background: none; padding: 8px 18px; border-radius: 999px; font-weight: 600; color: var(--muted); }
.tab:hover { color: var(--text); }
.tab.on { color: #241307; background: linear-gradient(180deg, var(--gold2), var(--gold)); box-shadow: 0 4px 18px rgba(255, 179, 71, .3); }

main { padding: 22px clamp(16px, 4vw, 48px) 40px; max-width: 1560px; margin: 0 auto; }
.panel { border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; }
.glass { background: var(--panel); backdrop-filter: blur(10px); box-shadow: var(--shadow); }

.controls { display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: flex-start; }
.ctl { display: flex; flex-direction: column; gap: 6px; }
.ctl.wide { flex-basis: 100%; }
.ctl > label, .tuner-side > label, .opt-row > label, .drawer label { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid var(--line2); background: rgba(255, 255, 255, .03); border-radius: 999px; padding: 6px 13px; font-weight: 600; font-size: 14px; transition: .12s; }
.chip:hover { border-color: var(--gold); }
.chip.on { background: var(--gold); color: #241307; border-color: var(--gold); box-shadow: 0 0 16px rgba(255, 179, 71, .35); }
.roots .chip { min-width: 44px; }
.chip.pos { min-width: 36px; padding: 6px 10px; }
.chord-chip { display: inline-flex; flex-direction: column; align-items: center; line-height: 1.1; padding: 6px 14px; }
.chord-chip small { font-size: 11px; color: var(--muted); }
.chord-chip:hover small { color: inherit; }
select { background: #221a14; color: var(--text); border: 1px solid var(--line2); border-radius: 10px; padding: 8px 12px; font: inherit; min-width: 220px; }

.board-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin: 26px 0 12px; flex-wrap: wrap; }
.board-head h2 { font-size: 42px; color: var(--text); text-shadow: 0 2px 20px rgba(255, 170, 70, .25); }
.pos-nav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.count { font-weight: 600; color: var(--muted); min-width: 150px; text-align: center; }

/* ---------- fretboard ---------- */
.fb-host { overflow-x: auto; border-radius: 14px; padding: 4px 0; scrollbar-color: #4a3a2c transparent; }
.fretboard svg { display: block; width: 100%; min-width: 920px; height: auto; filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .6)); }
.fret-nums text { fill: #8f826f; font: 600 13px Inter, sans-serif; }
.fret-nums text.mk { fill: var(--gold2); }
.str-name { fill: #c8bba5; font: 700 13px Inter, sans-serif; }
.muted-x { fill: #ff8b8b; font: 700 18px Inter, sans-serif; pointer-events: none; }
.pos-box { fill: rgba(255, 190, 90, .07); stroke: var(--gold); stroke-width: 2; filter: drop-shadow(0 0 10px rgba(255, 179, 71, .55)); }
.pos-box.inv1 { stroke: var(--teal); fill: rgba(79, 209, 197, .07); filter: drop-shadow(0 0 10px rgba(79, 209, 197, .5)); }
.pos-box.inv2 { stroke: var(--violet); fill: rgba(178, 141, 255, .07); filter: drop-shadow(0 0 10px rgba(178, 141, 255, .5)); }
.hl-string { fill: rgba(255, 179, 71, .18); stroke: var(--gold); stroke-opacity: .6; filter: drop-shadow(0 0 8px var(--gold)); animation: hl 1.6s ease-in-out infinite; }
@keyframes hl { 50% { fill: rgba(255, 179, 71, .3); } }
.string.buzz { animation: buzz .8s ease-out; filter: drop-shadow(0 0 4px #ffe2a8); }
@keyframes buzz { 0%, 100% { transform: translateY(0); } 8% { transform: translateY(-3px); } 16% { transform: translateY(2.8px); } 24% { transform: translateY(-2.4px); } 32% { transform: translateY(2px); } 42% { transform: translateY(-1.5px); } 54% { transform: translateY(1px); } 68% { transform: translateY(-.5px); } }
.play-opts { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 4px 4px 4px 8px; }
.tempo { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--muted); }
.tempo input { width: 120px; accent-color: var(--gold); }
.tempo select { min-width: 0; padding: 5px 8px; font-size: 13px; font-weight: 600; }
.tempo b { color: var(--text); min-width: 62px; font-size: 13px; }
.check-inline { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; }
.check-inline input { accent-color: var(--gold); width: 16px; height: 16px; }
.play-btn.on { background: linear-gradient(180deg, var(--gold2), var(--gold)); color: #241307; }

.note { cursor: pointer; }
.note .dot { fill: var(--c); stroke: rgba(0, 0, 0, .55); stroke-width: 1.5; }
.note.faint .dot { opacity: .55; stroke: rgba(0, 0, 0, .8); stroke-width: 2.5; }
.note.faint:hover .dot { opacity: .8; }
.note.strong .dot { filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .6)); }
.note.strong .dot.root { stroke: #fff4d6; stroke-width: 2.5; }
.note .halo { fill: var(--c); opacity: .22; filter: blur(4px); }
.note .lbl { fill: #1b130b; font: 700 13px Inter, sans-serif; pointer-events: none; }
.note .lbl.small { font-size: 10.5px; }
.note.faint .lbl { fill: #fff; font-size: 9.5px; opacity: .8; }
.note .finger circle { fill: #120d09; stroke: var(--c); stroke-width: 1.5; }
.note .finger text { fill: #fff; font: 700 10px Inter, sans-serif; }
.note.target .halo { opacity: .6; animation: target 1s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes target { 50% { transform: scale(1.5); opacity: .25; } }
.note.done .dot { stroke: #c6ffe0; }
.note.playing .dot { animation: playing .45s ease-out; transform-box: fill-box; transform-origin: center; }
@keyframes playing { 0% { transform: scale(1.45); fill: #fff6dc; filter: drop-shadow(0 0 10px #fff2c8); } 100% { transform: scale(1); } }
.note.upcoming { opacity: .62; }
.note.upcoming .halo { display: none; }
.ripple { fill: none; stroke: var(--c); stroke-width: 4; animation: ripple .9s ease-out forwards; transform-box: fill-box; transform-origin: center; pointer-events: none; }
@keyframes ripple { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(2.6); opacity: 0; stroke-width: 1; } }
.shake { animation: shake .35s; }
@keyframes shake { 20% { transform: translateX(-8px); } 40% { transform: translateX(7px); } 60% { transform: translateX(-5px); } 80% { transform: translateX(3px); } }

.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; margin-top: 18px; }
.degrees { display: flex; flex-wrap: wrap; gap: 8px; }
.deg { display: flex; flex-direction: column; align-items: center; min-width: 54px; padding: 8px 10px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--c) 50%, transparent); background: color-mix(in srgb, var(--c) 12%, transparent); }
.deg b { font-size: 18px; }
.deg span { font-size: 12px; color: var(--c); font-weight: 700; }
.legend { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; color: var(--muted); font-size: 13px; margin: 12px 0 0; }
.legend i { width: 11px; height: 11px; border-radius: 50%; background: var(--c); display: inline-block; margin-right: -8px; }
.box-panel { display: flex; gap: 18px; align-items: flex-start; }
.chordbox { width: 150px; flex: none; }
.cb-line { stroke: #8a7d6a; stroke-width: 1.5; }
.cb-dot { fill: var(--gold); }
.cb-barre { fill: var(--gold); opacity: .9; }
.cb-fn { fill: #241307; font: 700 11px Inter; }
.cb-x { fill: var(--bad); font: 700 13px Inter; }
.cb-o { fill: none; stroke: var(--cream); stroke-width: 2; }
.cb-fret { fill: var(--muted); font: 700 13px Inter; }
.tips p { color: #d5c9b5; margin: 0 0 8px; }
.theory { margin-top: 16px; }
.th-lead { font-size: 17px; color: var(--text); margin: 0 0 6px; max-width: 900px; }
.th-label { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 600; margin: 18px 0 8px; }
.theory p { margin: 0; color: #d5c9b5; }
.stack { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.st-note { font-family: 'Bebas Neue'; font-size: 30px; line-height: 1; min-width: 52px; text-align: center; padding: 8px 10px; border-radius: 12px; color: var(--c); border: 1px solid color-mix(in srgb, var(--c) 55%, transparent); background: color-mix(in srgb, var(--c) 12%, transparent); }
.st-gap { display: flex; flex-direction: column; align-items: center; padding: 0 6px; position: relative; color: var(--muted); }
.st-gap b { color: var(--gold2); font-size: 15px; }
.st-gap small { font-size: 11px; white-space: nowrap; }
.st-gap::after { content: '→'; color: #6f6252; font-size: 16px; line-height: 1; }
.mscale { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; max-width: 760px; }
.ms-slot { border: 1px solid var(--line); border-radius: 12px; padding: 6px 4px; text-align: center; display: flex; flex-direction: column; opacity: .5; }
.ms-slot b { font-size: 18px; }
.ms-slot .ms-deg { font-size: 11px; color: var(--muted); font-weight: 700; }
.ms-slot small { font-size: 11px; color: var(--muted); min-height: 15px; }
.ms-slot.on { opacity: 1; border-color: color-mix(in srgb, var(--c) 60%, transparent); background: color-mix(in srgb, var(--c) 12%, transparent); }
.ms-slot.on small { color: var(--c); font-weight: 700; }
.th-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 24px; }
.rel-chip { display: inline-flex; flex-direction: column; align-items: flex-start; text-align: left; border-radius: 14px; padding: 7px 14px; }
.rel-chip small { font-size: 11px; color: var(--muted); font-weight: 500; }
.rel-chip:hover small { color: var(--text); }

/* ---------- tuner ---------- */
.tuner { display: grid; grid-template-columns: minmax(300px, 1.3fr) minmax(260px, 1fr); gap: 30px; align-items: center; padding: 26px; background:
  radial-gradient(500px 300px at 30% 30%, rgba(255, 170, 70, .1), transparent 70%), var(--panel); }
.gauge { position: relative; }
.gauge svg { width: 100%; }
#tn-ticks line { stroke: #6f6252; stroke-width: 2; }
#tn-ticks line.big { stroke: #bfae95; stroke-width: 3; }
#tn-ticks line.zero { stroke: var(--good); stroke-width: 4; }
#tn-ticks text { fill: #8f826f; font: 600 12px Inter; }
.needle { transform-origin: 200px 200px; transition: transform .12s linear; }
.needle line { stroke: var(--gold2); stroke-width: 4; stroke-linecap: round; filter: drop-shadow(0 0 6px var(--gold)); }
.needle circle { fill: #2a1f17; stroke: var(--gold); stroke-width: 3; }
.tuner.good .needle line { stroke: var(--good); filter: drop-shadow(0 0 10px var(--good)); }
.readout { text-align: center; margin-top: -4px; }
.tn-name b { font-family: 'Bebas Neue'; font-size: 92px; line-height: .9; }
.tn-name sub { font-size: 26px; color: var(--muted); }
.tuner.good .tn-name b { color: var(--good); text-shadow: 0 0 30px rgba(93, 255, 160, .6); }
.tn-meta { display: flex; justify-content: center; gap: 18px; color: var(--muted); font-weight: 600; }
.tn-hint { margin-top: 4px; color: var(--gold2); font-weight: 600; }
.tuner:not(.live) .tn-hint { color: var(--muted); }
.tuner-side { display: flex; flex-direction: column; gap: 10px; }
.strings-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.string-btn { position: relative; border: 1px solid var(--line2); background: #221a14; border-radius: 12px; padding: 8px 0; display: flex; flex-direction: column; align-items: center; }
.string-btn b { font-family: 'Bebas Neue'; font-size: 26px; line-height: 1; }
.string-btn small { color: var(--muted); font-size: 11px; }
.string-btn i { position: absolute; top: -7px; right: -5px; width: 18px; height: 18px; border-radius: 50%; background: var(--good); color: #062; font-style: normal; font-size: 12px; font-weight: 800; display: none; align-items: center; justify-content: center; }
.string-btn.tuned i { display: flex; }
.string-btn.near { border-color: var(--gold); box-shadow: 0 0 16px rgba(255, 179, 71, .4); }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
input[type=range] { accent-color: var(--gold); }

/* ---------- arcade ---------- */
.arcade-menu { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: auto auto; gap: 16px; }
.game-card { text-align: left; border: 1px solid var(--line2); border-radius: 20px; background: linear-gradient(160deg, #2a1f18, #17110d); padding: 22px; display: flex; gap: 16px; align-items: flex-start; transition: .2s; overflow: hidden; position: relative; }
.game-card:hover { transform: translateY(-3px); border-color: var(--gold); box-shadow: 0 16px 40px rgba(0, 0, 0, .5), 0 0 30px rgba(255, 179, 71, .15); }
.game-card h2 { font-size: 36px; }
.game-card p { color: #d0c3ae; margin: 6px 0 12px; }
.game-card .tag { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--gold2); font-weight: 700; }
.game-card.feature { grid-row: span 3; min-height: 380px; flex-direction: column; justify-content: flex-end; background: linear-gradient(0deg, rgba(10, 6, 14, .96) 25%, rgba(10, 6, 14, .2) 70%), var(--img) center / cover; }
.game-card.feature h2 { font-size: 64px; color: var(--gold2); text-shadow: 0 0 30px rgba(255, 160, 60, .6); }
.gc-creeps { position: absolute; top: 24%; left: 0; right: 0; display: flex; justify-content: center; gap: 4%; }
.gc-creeps img { width: 17%; animation: bob 2.4s ease-in-out infinite; filter: drop-shadow(0 0 14px rgba(180, 120, 255, .5)); }
.gc-creeps img:nth-child(2) { animation-delay: -.6s; } .gc-creeps img:nth-child(3) { animation-delay: -1.2s; } .gc-creeps img:nth-child(4) { animation-delay: -1.8s; }
@keyframes bob { 50% { transform: translateY(-12px); } }
.gc-icon { font-size: 44px; width: 70px; height: 70px; flex: none; display: grid; place-items: center; border-radius: 18px; background: rgba(255, 179, 71, .1); border: 1px solid var(--line2); }
.arcade-stage { display: flex; flex-direction: column; gap: 14px; }
.back { align-self: flex-start; }
.tb-wrap { position: relative; aspect-ratio: 1024 / 572; max-height: 74vh; width: 100%; margin: 0 auto; border-radius: 18px; overflow: hidden; border: 1px solid var(--line2); box-shadow: var(--shadow); background: #000; }
.tb-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.tb-hud { position: absolute; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; padding: 12px 18px; font-family: 'Bebas Neue'; pointer-events: none; background: linear-gradient(180deg, rgba(0, 0, 0, .6), transparent); }
.hearts i { font-style: normal; font-size: 28px; color: #4a2a2a; margin-right: 2px; }
.hearts i.on { color: #ff4d6d; text-shadow: 0 0 12px #ff4d6d; }
.hud-mid { display: flex; flex-direction: column; align-items: center; }
.hud-mid .wave { font-size: 26px; letter-spacing: .1em; }
.hud-mid .combo { font-size: 20px; color: var(--gold2); }
.tb-hud .score { font-size: 36px; color: var(--gold2); text-shadow: 0 0 14px rgba(255, 179, 71, .6); }
.tb-banner { position: absolute; left: 0; right: 0; top: 38%; text-align: center; pointer-events: none; opacity: 0; }
.tb-banner b { display: block; font-family: 'Bebas Neue'; font-size: clamp(40px, 7vw, 80px); color: #fff; text-shadow: 0 0 30px var(--ember), 0 4px 0 #000; }
.tb-banner span { font-weight: 600; color: var(--gold2); }
.tb-banner.show { animation: banner 2s ease-out forwards; }
@keyframes banner { 0% { opacity: 0; transform: scale(1.4); } 15% { opacity: 1; transform: scale(1); } 75% { opacity: 1; } 100% { opacity: 0; transform: translateY(-20px); } }
.tb-last { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); font-family: 'Bebas Neue'; font-size: 40px; color: #fff; text-shadow: 0 0 20px var(--gold); pointer-events: none; }
.tb-last.pop { animation: pop .25s; }
.tb-setup { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(560px, 92%); text-align: center; background: rgba(18, 12, 20, .86); display: flex; flex-direction: column; gap: 12px; align-items: center; max-height: 94%; overflow: auto; }
.tb-setup h2 { font-size: 54px; color: var(--gold2); }
.tb-setup p { margin: 0; color: #d6cab6; }
.opt-row { display: flex; flex-direction: column; gap: 6px; align-items: inherit; }
.notepad { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: center; }
.pad-tip { width: 100%; text-align: center; color: var(--muted); font-size: 13px; }
.pad { width: 50px; height: 44px; border-radius: 10px; border: 1px solid var(--line2); background: linear-gradient(180deg, #f2e9d8, #cbbfa9); color: #241307; font-weight: 700; }
.pad.sharp { background: linear-gradient(180deg, #3b2f26, #1d1611); color: var(--cream); }
.pad:active { transform: translateY(2px); }
.game-head { display: flex; flex-wrap: wrap; gap: 16px 26px; align-items: flex-end; justify-content: space-between; }
.game-head h2 { font-size: 40px; color: var(--gold2); }
.climb-src { display: flex; flex-direction: column; }
.climb-status { display: grid; grid-template-columns: 1fr 2fr auto; gap: 16px; align-items: center; font-size: 17px; }
.cs-next b { font-family: 'Bebas Neue'; font-size: 34px; color: var(--gold); margin: 0 4px; }
.cs-bar, .hp-timer { height: 10px; border-radius: 99px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.cs-bar i, .hp-timer i { display: block; height: 100%; background: linear-gradient(90deg, var(--good), var(--gold)); border-radius: 99px; transition: width .2s; }
.cs-nums { display: flex; gap: 16px; font-weight: 600; color: var(--muted); }
.climb-done { grid-column: 1 / -1; display: flex; gap: 18px; align-items: center; flex-wrap: wrap; justify-content: center; padding: 10px; }
.stars { font-size: 40px; color: var(--gold); text-shadow: 0 0 20px var(--gold); letter-spacing: 4px; }
.hunt-prompt { display: grid; grid-template-columns: 1fr auto; gap: 10px 20px; align-items: center; }
.hp-main { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; font-size: 20px; color: #d6cab6; }
.hp-main b { font-family: 'Bebas Neue'; font-size: 76px; line-height: .9; color: var(--gold); text-shadow: 0 0 30px rgba(255, 179, 71, .5); }
.hp-main.idle { font-size: 22px; color: var(--muted); }
.hp-side { display: flex; gap: 14px; }
.streak { text-align: center; border: 1px solid var(--line2); border-radius: 14px; padding: 6px 16px; }
.streak b { display: block; font-family: 'Bebas Neue'; font-size: 34px; line-height: 1; }
.streak span { font-size: 11px; text-transform: uppercase; color: var(--muted); letter-spacing: .1em; }
.hp-timer { grid-column: 1 / -1; }
.hp-timer i { transition: none; }

/* ---------- workshop ---------- */
.level-card { display: flex; gap: 26px; align-items: center; margin-bottom: 20px; }
.lv-ring { width: 110px; height: 110px; flex: none; border-radius: 50%; display: grid; place-items: center; align-content: center; background: radial-gradient(circle, #2a1f17 58%, transparent 60%), conic-gradient(var(--gold), var(--ember), var(--gold)); box-shadow: 0 0 30px rgba(255, 150, 60, .35); }
.lv-ring span { font-size: 11px; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.lv-ring b { font-family: 'Bebas Neue'; font-size: 52px; line-height: .9; color: var(--gold2); }
.lv-body { flex: 1; }
.xpbar { height: 12px; border-radius: 99px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.xpbar i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--ember)); box-shadow: 0 0 14px var(--gold); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; margin-top: 14px; }
.stat b { display: block; font-family: 'Bebas Neue'; font-size: 30px; line-height: 1; }
.stat span { font-size: 12px; color: var(--muted); }
.sec { margin: 26px 0 10px; font-size: 26px; }
.items { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.item { border: 1px solid var(--line2); background: #1d1611; border-radius: 16px; padding: 10px; display: flex; flex-direction: column; gap: 6px; text-align: left; transition: .15s; }
.item b { font-size: 15px; }
.item small { color: var(--muted); font-size: 12px; }
.item.open:hover { border-color: var(--gold); transform: translateY(-2px); }
.item.on { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(255, 179, 71, .35), 0 0 24px rgba(255, 179, 71, .2); }
.item.on small { color: var(--gold2); }
.item.locked { opacity: .55; cursor: default; }
.item.locked .swatch { filter: grayscale(1) brightness(.5) !important; }
.swatch { height: 64px; border-radius: 10px; background: #2a2018 center / cover; display: grid; place-items: center; font-size: 34px; position: relative; overflow: hidden; }
.sw-neon { background: #07080d; box-shadow: inset 0 0 0 2px #39f3ff, inset 0 0 20px #39f3ff; }
.sw-inlay { background: #2b1b12 url(../img/rosewood.webp) center / cover; }
.sw-inlay::after { content: ''; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: radial-gradient(circle at 35% 35%, #fff, #c9d2d6); }
.sw-dots::after { width: 18px; height: 18px; border-radius: 50%; }
.sw-blocks::after { width: 30px; height: 44px; border-radius: 3px; }
.sw-shark::after { width: 30px; height: 46px; clip-path: polygon(0 70%, 100% 0, 100% 100%, 0 100%); }
.sw-stars::after { width: 30px; height: 30px; background: #fff5d6; clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); filter: drop-shadow(0 0 6px #fff); }
.sw-fretwire { background: #2b1b12 url(../img/rosewood.webp) center / cover; }
.sw-fretwire::after { content: ''; position: absolute; inset: 0 auto 0 45%; width: 10px; background: linear-gradient(90deg, #6d7178, #f4f6f8, #7c8188); }
.sw-gold::after { background: linear-gradient(90deg, #7a5a1c, #ffe39a, #8d6a22); }
.sw-badge { background: radial-gradient(circle, rgba(255, 179, 71, .25), transparent 70%), #221a14; }
.reset-row { margin-top: 30px; }

/* ---------- drawer, toasts ---------- */
.drawer { position: fixed; inset: 0; z-index: 50; background: rgba(0, 0, 0, .5); opacity: 0; pointer-events: none; transition: .2s; }
.drawer.open { opacity: 1; pointer-events: auto; }
.drawer-panel { position: absolute; right: 0; top: 0; bottom: 0; width: min(360px, 92vw); padding: 22px; display: flex; flex-direction: column; gap: 10px; background: #1a1410; border-left: 1px solid var(--line2); transform: translateX(100%); transition: .25s; }
.drawer.open .drawer-panel { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; }
.drawer .check { display: flex; gap: 10px; align-items: center; text-transform: none; letter-spacing: 0; font-size: 15px; color: var(--text); font-weight: 500; }
.drawer .check input { accent-color: var(--gold); width: 18px; height: 18px; }
.toasts { position: fixed; right: 16px; bottom: 16px; z-index: 60; display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.toast { display: flex; gap: 12px; align-items: center; background: #221a14; border: 1px solid var(--line2); border-radius: 16px; padding: 12px 16px; box-shadow: var(--shadow); animation: tin .35s ease-out; max-width: 360px; }
.toast.unlock { border-color: var(--gold); box-shadow: var(--shadow), 0 0 30px rgba(255, 179, 71, .3); }
.toast.out { opacity: 0; transform: translateX(40px); transition: .5s; }
.toast b { display: block; }
.toast span { color: var(--muted); font-size: 13px; }
.t-ic { font-size: 28px; }
@keyframes tin { from { opacity: 0; transform: translateY(20px) scale(.95); } }
.foot { text-align: center; color: #6f6252; font-size: 13px; padding: 30px 16px 40px; }

@media (max-width: 860px) {
  .tuner { grid-template-columns: 1fr; }
  .arcade-menu { grid-template-columns: 1fr; }
  .game-card.feature { grid-row: auto; min-height: 340px; }
  .climb-status { grid-template-columns: 1fr; }
  .hero-copy p { display: none; }
  .board-head h2 { font-size: 34px; }
  .top-actions .lvl-badge { display: none; }
  .tb-setup h2 { font-size: 38px; }
  .tb-setup { padding: 12px; gap: 8px; }
  .tb-wrap { aspect-ratio: 4 / 5; max-height: none; }
  .box-panel { flex-direction: column; }
}
@media (max-width: 520px) {
  .brand { font-size: 22px; }
  .btn.mic span { display: none; }
  .tb-setup p { font-size: 13px; }
}

/* ---------- jam ---------- */
.jam { margin-top: 16px; display: flex; flex-direction: column; gap: 14px; }
.jam-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.jam-head h3 { margin: 0; font-size: 28px; }
.jam-ctl { display: flex; flex-wrap: wrap; gap: 12px 22px; align-items: center; }
.jam-ctl select { min-width: 0; padding: 5px 8px; font-size: 13px; }
.jam-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; max-width: 720px; }
.bar { border: 1px solid var(--line2); border-radius: 12px; padding: 8px 10px; display: flex; justify-content: space-between; align-items: baseline; background: rgba(255, 255, 255, .02); transition: .15s; }
.bar small { color: var(--muted); font-weight: 700; }
.bar b { font-family: 'Bebas Neue'; font-size: 24px; letter-spacing: .02em; }
.bar.n5 b { color: var(--teal); }
.bar.n7 b { color: var(--violet); }
.bar.on { background: linear-gradient(180deg, var(--gold2), var(--gold)); border-color: transparent; box-shadow: 0 0 22px rgba(255, 179, 71, .45); transform: scale(1.04); }
.bar.on b, .bar.on small { color: #241307; }
.beats { display: flex; gap: 8px; }
.beat { width: 12px; height: 12px; border-radius: 50%; background: rgba(255, 255, 255, .1); transition: background .05s; }
.beat.on { background: var(--gold); box-shadow: 0 0 10px var(--gold); }
.note .ct-ring { fill: none; stroke: #fff4d6; stroke-width: 2.5; stroke-dasharray: 3 2.5; filter: drop-shadow(0 0 4px #ffd27a); animation: ctspin 6s linear infinite; transform-box: fill-box; transform-origin: center; }
@keyframes ctspin { to { transform: rotate(360deg); } }

/* what's that chord */
.note.ghost .dot { opacity: 0; }
.note.ghost .lbl { opacity: 0; fill: #fff; font-size: 10px; }
.note.ghost:hover .dot { opacity: .35; fill: #ffd27a; }
.note.ghost:hover .lbl { opacity: 1; }
.deg.absent { opacity: .4; border-style: dashed; }
.iv-chip { display: flex; flex-direction: column; align-items: center; padding: 6px 12px; border-radius: 12px; border: 1px solid var(--line2); background: rgba(255, 255, 255, .03); }
.iv-chip b { font-family: 'Bebas Neue'; font-size: 24px; line-height: 1; }
.iv-chip small { font-size: 11px; color: var(--muted); }

/* note and chord names need lower case (Am, Eb), so they use Inter instead of the all-caps display font */
#ch-title, .st-note, .bar b, .hp-main b, .cs-next b, .iv-chip b, .tb-last, .string-btn b, .tn-name b, .heard b, .deg b, .ms-slot b {
  font-family: Inter, system-ui, sans-serif; font-weight: 800; letter-spacing: -.02em;
}
#ch-title { font-size: 38px; }
.st-note, .iv-chip b { font-size: 22px; }
.bar b { font-size: 19px; }
.hp-main b { font-size: 60px; }
.cs-next b { font-size: 26px; }
.tn-name b { font-size: 80px; }
.string-btn b { font-size: 20px; }
.heard b { font-size: 17px; }
.tb-last { font-size: 32px; }

.jam-video { aspect-ratio: 16 / 9; flex: 0 0 clamp(300px, 25vw, 360px); border-radius: 14px; overflow: hidden; border: 1px solid var(--line2); background: #000; }
.jam-video iframe { width: 100%; height: 100%; border: 0; display: block; }
.jam-body { display: flex; flex-direction: column; gap: 14px; }
.jam a { color: var(--gold2); }
.src-in { max-width: 100%; min-width: 260px; }

/* showdown */
.game-card.western { background: linear-gradient(90deg, rgba(20, 10, 4, .92) 30%, rgba(20, 10, 4, .35)), var(--img) center 40% / cover; min-height: 150px; }
.game-card.western h2 { color: #ffd27a; }
.gc-outlaws { position: absolute; right: 8px; bottom: 0; display: flex; gap: 0; pointer-events: none; }
.gc-outlaws img { height: 120px; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .6)); }
.gc-outlaws img + img { margin-left: -24px; }
.game-card.western .gc-body { max-width: 62%; position: relative; }
.hearts i.star { color: #4a3a2a; }
.hearts i.star.on { color: #ffd23f; text-shadow: 0 0 12px #ffb000; }
.tb-setup.poster { background: #ead7ae; color: #3a220e; border: 6px double #5a3a1c; }
.tb-setup.poster h2 { color: #5a2a10; font-size: 60px; }
.tb-setup.poster p, .tb-setup.poster .opt-row > label { color: #4a2e14; }
.tb-setup.poster .chip { color: #3a220e; border-color: #8a6a44; }
.tb-setup.poster .chip.on { color: #241307; }
@media (max-width: 860px) { .tb-wrap.sd-wrap { aspect-ratio: 1024 / 572; } .game-card.feature { grid-row: auto; } .gc-outlaws img { height: 90px; } }

/* ---------- lick library ---------- */
.licks { margin-top: 16px; display: flex; flex-direction: column; gap: 14px; }
.lk-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.lk-head h3 { margin: 0; font-size: 28px; }
.lk-count { font-size: 13px; font-weight: 700; color: var(--gold2); border: 1px solid var(--line2); border-radius: 999px; padding: 4px 12px; }
.lk-body { display: block; margin-top: 14px; }
.lk-card { text-align: left; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); border-radius: 12px; padding: 8px 12px; display: flex; flex-direction: column; gap: 2px; transition: .12s; }
.lk-card b { font-size: 14px; }
.lk-card:hover { border-color: var(--gold); }
.lk-card.on { border-color: var(--gold); background: rgba(255, 179, 71, .14); box-shadow: 0 0 16px rgba(255, 179, 71, .2); }
.lk-card.learned b::after { content: ' ✓'; color: var(--good); }
.lk-meta { display: flex; gap: 10px; font-size: 12px; color: var(--muted); align-items: center; flex-wrap: wrap; }
.lk-meta em { font-style: normal; }
.lk-meta em.ok { color: var(--good); }
.lk-meta .lvl { font-style: normal; letter-spacing: 1px; color: var(--gold); font-size: 10px; }
.lk-detail { min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.lk-detail.empty { justify-content: center; }
.lk-title { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.lk-title h4 { margin: 0; font: 800 20px Inter, sans-serif; }
.lk-tip { margin: 0; color: var(--cream); font-size: 14px; max-width: 70ch; }
.lk-ctl { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }
.lk-ctl .btn.on { background: linear-gradient(180deg, var(--gold2), var(--gold)); color: #241307; }
.lk-key { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; color: var(--muted); }
.lk-key b { color: var(--gold2); }
.tab-host { overflow-x: auto; background: #f4ecdc; border-radius: 12px; padding: 4px 6px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .2); }
.tab-svg { display: block; }
.tab-line { stroke: #8b7d68; stroke-width: 1; }
.tab-bar { stroke: #4a3d2c; stroke-width: 1.4; }
.tab-bar.end { stroke-width: 3; }
.tab-tab { font: 800 13px Inter, sans-serif; fill: #6b5b45; text-anchor: middle; }
.tab-count { font: 600 11px Inter, sans-serif; fill: #8b7d68; text-anchor: middle; }
.tab-count.and { fill: #b4a68f; font-size: 10px; }
.tab-bg { fill: #f4ecdc; }
.tab-num { font: 800 13px Inter, sans-serif; fill: #241a10; text-anchor: middle; }
.tab-rest { font-size: 22px; fill: #4a3d2c; text-anchor: middle; }
.tab-arc, .tab-bend, .tab-vib { fill: none; stroke: #3b2e20; stroke-width: 1.4; }
.tab-slide { stroke: #3b2e20; stroke-width: 1.6; }
.tab-head { fill: none; stroke: #3b2e20; stroke-width: 1.6; stroke-linejoin: round; }
.tab-tech { font: 700 9.5px Inter, sans-serif; fill: #6b5b45; text-anchor: middle; }
.tab-bendlbl { font: 700 10.5px Inter, sans-serif; fill: #b04a12; text-anchor: middle; }
.tab-ev.now .tab-num { fill: #c2410c; }
.tab-ev.now .tab-bg { fill: #ffd9a8; }
.tab-ev.past .tab-num { fill: #2f8a55; }
.tab-cursor { fill: rgba(255, 140, 40, .16); stroke: rgba(255, 120, 30, .45); transition: x .05s linear; }
.lick-box { stroke: var(--teal); fill: rgba(79, 209, 197, .06); filter: drop-shadow(0 0 10px rgba(79, 209, 197, .45)); }
.note.bend-target .dot { fill: none !important; stroke: var(--c); stroke-width: 2.5; stroke-dasharray: 4 3; opacity: .9; }
.note.bend-target .lbl { fill: var(--c); }
.lick-layer { pointer-events: none; }
.lk-str { fill: none; stroke: #ffe9b0; stroke-width: 2.6; filter: drop-shadow(0 0 4px rgba(255, 220, 140, .8)); transition: opacity .1s; }
.lk-puck { fill: #fff6dc; stroke: #ff9a3c; stroke-width: 3; }
.lk-halo { fill: rgba(255, 170, 60, .28); filter: blur(4px); }
.lk-name { font: 800 11.5px Inter, sans-serif; fill: #3a1d05; }
.lk-tech { font: 800 13px Inter, sans-serif; fill: #ffd27a; paint-order: stroke; stroke: rgba(0, 0, 0, .75); stroke-width: 3.5px; animation: lkTech .9s ease-out forwards; }
@keyframes lkTech { from { opacity: 0; transform: translateY(6px); } 15% { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(-10px); } }
.lk-target { fill: rgba(93, 255, 160, .12); stroke: var(--good); stroke-width: 3; animation: lkPulse 1s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes lkPulse { 50% { transform: scale(1.18); opacity: .6; } }

/* ---------- chord listener ---------- */
.ce-bars { display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; height: 120px; align-items: end; }
.ce-bar { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 4px; }
.ce-bar i { display: block; width: 100%; max-width: 34px; height: calc(var(--v, 0) * 92px + 2px); border-radius: 6px 6px 2px 2px; background: rgba(236, 228, 212, .25); transition: height .08s; }
.ce-bar.tone i { background: linear-gradient(180deg, #ffd27a, #ffb347); box-shadow: 0 0 14px rgba(255, 179, 71, .35); }
.ce-bar span { font-size: 12px; font-weight: 600; color: var(--muted); }
.ce-bar.tone span { color: var(--gold); }
.ce-bar.bass span { text-decoration: underline; text-underline-offset: 3px; }
.ce-ctl { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 12px; }
.ce-ctl .btn.rec { background: #ff5d5d; color: #fff; border-color: #ff5d5d; animation: pulse 1.2s infinite; }
.ce-chart { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-left: 2px solid var(--line2); min-height: 64px; margin-bottom: 10px; }
.ce-chart > .muted { grid-column: 1 / -1; padding: 18px 14px; }
.ce-cell { position: relative; background: rgba(255, 255, 255, .03); border: 0; border-right: 2px solid var(--line2); border-bottom: 1px solid var(--line2); padding: 22px 12px 14px; text-align: left; color: var(--cream); cursor: pointer; }
.ce-cell b { font-size: 24px; font-weight: 700; word-spacing: 12px; }
.ce-cell small { position: absolute; top: 5px; left: 8px; font-size: 11px; color: var(--muted); }
.ce-cell:hover, .ce-cell.fixing { background: rgba(255, 179, 71, .12); }
.ce-cell.now, .ce-seq.now { background: rgba(125, 255, 176, .18); }
.ce-chart.free { display: flex; flex-wrap: wrap; gap: 8px; border: 0; }
.ce-seq { font-weight: 700; font-size: 22px; padding: 6px 14px; border-radius: 10px; background: rgba(255, 255, 255, .05); }
.ce-seq + .ce-seq::before { content: '→'; margin: 0 10px 0 -4px; color: var(--muted); font-family: Inter, sans-serif; font-size: 16px; }
.ce-fix { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 8px; }
@media (max-width: 760px) { .ce-chart { grid-template-columns: repeat(2, 1fr); } .ce-bars { gap: 3px; height: 96px; } }
/* chord symbols need lower case (Am, Cmaj7), which Bebas Neue can't show */
#ch-title { font-family: Inter, sans-serif; font-weight: 800; font-size: 38px; letter-spacing: -.01em; }
@media (max-width: 760px) { #ch-title { font-size: 30px; } }

/* ---------- slim sticky header (tabs + mini jam live in it) ---------- */
.hero { position: sticky; top: 0; z-index: 30; background: rgba(13, 11, 10, .9); backdrop-filter: blur(12px); }
.hero-bg { opacity: .5; }
.topbar { padding: 8px clamp(16px, 4vw, 48px); }
.brand { font-size: 24px; flex: none; }
.topbar .tabs { position: static; flex: 1; min-width: 0; background: none; border: 0; padding: 0; backdrop-filter: none; margin-left: 14px; }
.minijam { display: flex; align-items: center; gap: 8px; padding: 4px 6px 4px 4px; border: 1px solid var(--line2); border-radius: 999px; background: rgba(20, 15, 11, .75); }
.minijam[hidden] { display: none; }
.minijam .mj-play { width: 34px; height: 34px; padding: 0; justify-content: center; border-radius: 50%; }
.minijam .mj-play.on { background: linear-gradient(180deg, var(--gold2), var(--ember)); color: #241307; border: 0; }
.minijam .mj-info { border: 0; background: none; color: var(--text); font-size: 13px; text-align: left; line-height: 1.15; padding: 0 2px; cursor: pointer; }
.minijam .mj-info small { display: block; color: var(--muted); font-size: 11px; }
.minijam .mj-chord { font-weight: 800; color: var(--gold2); font-size: 16px; min-width: 38px; text-align: center; }
.minijam .mj-tempo { display: flex; align-items: center; gap: 2px; font-size: 12px; color: var(--muted); }
.minijam .mj-tempo button { border: 0; background: rgba(255, 255, 255, .06); color: var(--text); width: 22px; height: 22px; border-radius: 50%; padding: 0; line-height: 1; }

/* ---------- pinned neck ---------- */
.neck-dock.pinned { position: sticky; top: var(--hdr, 56px); z-index: 15; background: linear-gradient(180deg, var(--bg) 88%, rgba(13, 11, 10, 0)); padding-bottom: 10px; margin: 0 -8px; padding-left: 8px; padding-right: 8px; }
.neck-dock.pinned .board-head { margin-top: 10px; }
.neck-dock.pinned .board-head h2 { font-size: 32px; }
.neck-dock.pinned .board-head p { font-size: 13px; }
.pin-btn.on { border-color: var(--gold); color: var(--gold2); }
@media (max-height: 640px), (max-width: 760px) { .neck-dock.pinned { position: static; } .pin-btn { display: none; } }

@media (max-width: 1180px) { .minijam .mj-info small, .minijam .mj-tempo { display: none; } .brand { font-size: 20px; } .topbar .tabs { margin-left: 6px; } .tab { padding: 8px 12px; } }
@media (max-width: 900px) {
  .topbar { flex-wrap: wrap; row-gap: 6px; }
  .topbar .tabs { order: 5; flex-basis: 100%; margin: 0 -4px; }
  .minijam .mj-info { display: none; }
}
.view .panel { scroll-margin-top: calc(var(--hdr, 56px) + var(--dock, 0px) + 12px); }

/* ---------- lick picker (drop-down) ---------- */
.lk-pick { position: relative; display: flex; align-items: center; gap: 8px; margin-top: 12px; max-width: 620px; }
.lk-current { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; text-align: left; border: 1px solid var(--line2); background: rgba(255, 255, 255, .04); border-radius: 14px; padding: 9px 14px; color: var(--text); transition: .12s; }
.lk-current:hover:not(:disabled), .lk-pick.open .lk-current { border-color: var(--gold); }
.lk-current.on { border-color: var(--gold); background: rgba(255, 179, 71, .12); box-shadow: 0 0 16px rgba(255, 179, 71, .18); }
.lk-cur-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.lk-cur-body b { font-size: 16px; }
.lk-caret { color: var(--gold2); font-size: 16px; transition: transform .15s; }
.lk-group { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; padding: 6px 6px 2px; }
.lk-none { border: 0; background: none; color: var(--muted); font-size: 13px; text-align: left; padding: 8px 6px 4px; text-decoration: underline; }
.lk-current.learned b::after, .lk-current .lk-cur-body b:only-child::after { content: none; }
/* root chips sit to the right of the other scale controls when there is room */
.ctl-root .chips.roots { flex-wrap: wrap; }
@media (max-width: 760px) { .lk-pick .btn.round { display: none; } .lk-overlay { padding: 10px; align-items: flex-end; } .lk-pop { max-height: 85vh; } .lk-grid { grid-template-columns: 1fr 1fr; } }
#view-scales .controls { column-gap: 20px; }
.ctl-root .roots { gap: 5px; }
.ctl-root .roots .chip { min-width: 40px; padding: 6px 9px; }

/* jam: band grid and YouTube player side by side */
.jam-stage { display: flex; gap: 18px; align-items: flex-start; }
.jam-band { flex: 1 1 auto; min-width: 0; max-width: 720px; display: flex; flex-direction: column; gap: 10px; }
.jam-band.idle .jam-grid, .jam-band.idle .beats { opacity: .3; filter: grayscale(1); pointer-events: none; }
.band-off { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; font-size: 13px; color: var(--muted); }
@media (max-width: 860px) { .jam-stage { flex-direction: column; } .jam-video { flex: none; width: 100%; max-width: 480px; } .jam-band { max-width: none; width: 100%; } }

/* lick chooser pop-out */
.lk-overlay { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 24px 16px; background: rgba(8, 6, 5, .6); backdrop-filter: blur(4px); animation: lkFade .15s ease-out; }
.lk-overlay[hidden] { display: none; }
@keyframes lkFade { from { opacity: 0; } }
.lk-pop { width: min(980px, 100%); max-height: min(720px, 100%); overflow-y: auto; padding: 18px 20px 20px; border: 1px solid var(--line2); border-radius: 18px; background: linear-gradient(180deg, #2a1f17, #1a130f); box-shadow: 0 30px 80px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 179, 71, .08); animation: lkPop .18s ease-out; }
@keyframes lkPop { from { transform: translateY(12px) scale(.98); opacity: 0; } }
.lk-pop-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 4px; }
.lk-pop-head h3 { margin: 0; font-size: 30px; }
.lk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; }
.lk-grid .lk-card { min-height: 58px; }
.lk-pop .lk-group { padding: 14px 2px 8px; }
.lk-pop .lk-none { margin-top: 10px; }
.lk-caret { font-size: 18px; }
body.lk-popped { overflow: hidden; }
