/* ==========================================================
   CRESCENDO – Gestaltung
   ========================================================== */
:root {
  --era-a: #2a1406; --era-b: #120904;
  --accent: #ff9d4a; --accent2: #ffcf7a; --glow: rgba(255, 140, 50, .35);
  --bg: #0d0a1c;
  --panel: rgba(17, 13, 32, .66);
  --panel-2: rgba(28, 22, 50, .72);
  --panel-3: rgba(40, 32, 70, .55);
  --line: rgba(255, 255, 255, .085);
  --line-2: rgba(255, 255, 255, .16);
  --text: #f4efff;
  --muted: #a9a1c6;
  --dim: #6f6890;
  --gold: #ffd36b; --gold-2: #f3b23a; --gold-3: #b9791c;
  --insp: #8fd6ff; --insp-2: #5aa8ff;
  --good: #79e8a8; --bad: #ff7d8e; --warn: #ffc15e;
  --rare: #4dabff; --epic: #c77dff; --legendary: #ffc94d; --mythic: #ff5fa2; --common: #9fb3c8;
  --radius: 16px; --radius-s: 10px;
  --shadow: 0 10px 40px rgba(0, 0, 0, .45);
  --font-ui: 'Nunito', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-head: 'Cinzel', 'Times New Roman', serif;
  --font-music: 'Noto Music', 'Segoe UI Symbol', 'Apple Symbols', serif;
  --top-h: 54px;
  --nav-h: 0px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); font-family: var(--font-ui); font-size: 15px; line-height: 1.4; -webkit-font-smoothing: antialiased; overflow: hidden; }
body { background: radial-gradient(120% 90% at 30% 20%, var(--era-a), var(--era-b) 60%, #06040d); transition: background 2s; touch-action: manipulation; -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
button:disabled { cursor: default; }
input, select, textarea { font: inherit; color: inherit; }
a { color: var(--accent2); }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; letter-spacing: .02em; margin: 0; }
svg.ic { width: 1em; height: 1em; fill: currentColor; flex: none; display: inline-block; vertical-align: -0.14em; }
.music { font-family: var(--font-music); }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.gold { color: var(--gold); }
.insp { color: var(--insp); }
.good { color: var(--good); }
.bad { color: var(--bad); }
.nowrap { white-space: nowrap; }
.tnum { font-variant-numeric: tabular-nums; }
.hidden { display: none !important; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .12); border-radius: 10px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background-color: rgba(255, 255, 255, .22); }
* { scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.15) transparent; }

#bg, #fx { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }
#bg { z-index: 0; }
#fx { z-index: 60; pointer-events: none; }

#app { position: relative; z-index: 1; height: 100vh; height: 100dvh; display: flex; flex-direction: column; }

/* ---------------- Kopfzeile ---------------- */
#topbar { height: var(--top-h); flex: none; display: flex; align-items: center; gap: 16px; padding: 0 16px; }
.brand { display: flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 900; font-size: 22px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); text-shadow: 0 0 18px rgba(255, 200, 90, .35); transition: transform .15s; }
.brand:active { transform: scale(.96); }
.brand-clef { font-family: var(--font-music); font-size: 30px; line-height: 1; margin-top: -4px; background: linear-gradient(180deg, #fff3c4, var(--gold-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-text { background: linear-gradient(180deg, #fff6d6 10%, var(--gold) 55%, var(--gold-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
#ticker { flex: 1; min-width: 0; height: 32px; border-radius: 999px; background: rgba(0, 0, 0, .25); border: 1px solid var(--line); overflow: hidden; position: relative; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ticker-track { position: absolute; inset: 0; display: flex; align-items: center; }
.ticker-item { white-space: nowrap; color: var(--muted); font-size: 13.5px; font-style: italic; padding-left: 100%; will-change: transform; }
.ticker-item b { color: var(--accent2); font-style: normal; }
.top-actions { display: flex; gap: 6px; }
.icon-btn { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); color: var(--muted); font-size: 19px; transition: background .2s, color .2s, transform .1s; }
.icon-btn:hover { background: rgba(255, 255, 255, .1); color: var(--text); }
.icon-btn:active { transform: scale(.94); }
.icon-btn.off { color: var(--bad); }
.icon-btn.pulse { animation: pulseBtn 1.6s infinite; color: var(--gold); }
@keyframes pulseBtn { 50% { box-shadow: 0 0 0 6px rgba(255, 211, 107, .12); } }

/* ---------------- Layout ---------------- */
#layout { flex: 1; min-height: 0; display: grid; gap: 14px; padding: 0 14px 14px;
  grid-template-columns: clamp(290px, 25vw, 380px) minmax(0, 1fr) clamp(320px, 27vw, 430px);
  grid-template-rows: auto minmax(0, 1fr);
  grid-template-areas: "stage tabs store" "stage content store"; }
#stage { grid-area: stage; min-height: 0; }
#tabs { grid-area: tabs; }
#content { grid-area: content; min-height: 0; overflow-y: auto; overflow-x: hidden; }
#store { grid-area: store; min-height: 0; display: flex; flex-direction: column; }
.panel { background: linear-gradient(180deg, rgba(24, 18, 44, .86), rgba(14, 10, 28, .9)); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.store-tab-btn { display: none !important; }

/* ---------------- Bühne ---------------- */
#stage { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 6px 0 0; position: relative; }
.counter { text-align: center; width: 100%; padding: 4px 8px 0; }
.notes-row { font-family: var(--font-head); font-weight: 900; font-size: clamp(28px, 2.9vw, 40px); line-height: 1.05; color: #fff; text-shadow: 0 2px 20px var(--glow), 0 0 2px rgba(0, 0, 0, .6); font-variant-numeric: tabular-nums; min-height: 1.05em; white-space: nowrap; }
.notes-unit { font-family: var(--font-head); font-size: 13px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--accent2); margin-top: 2px; white-space: nowrap; }
.nps-row { font-size: 15px; font-weight: 700; margin-top: 4px; font-variant-numeric: tabular-nums; }
.nps-row .boosted { color: var(--gold); }
.curr-row { display: flex; justify-content: center; gap: 8px; margin-top: 8px; flex-wrap: wrap; min-height: 28px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px 4px 8px; border-radius: 999px; background: rgba(0, 0, 0, .28); border: 1px solid var(--line); font-weight: 800; font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.chip .ic { font-size: 16px; }
.chip.insp { color: var(--insp); border-color: rgba(143, 214, 255, .25); }
.chip.rec { color: var(--gold); border-color: rgba(255, 211, 107, .25); }
.chip.roy { color: #ffb4e6; border-color: rgba(255, 180, 230, .22); }
.chip.pop { animation: chipPop .45s; }
@keyframes chipPop { 40% { transform: scale(1.18); } }

.record-wrap { position: relative; width: min(100%, 360px); aspect-ratio: 1; display: grid; place-items: center; margin: 6px 0 0; flex: none; }
#viz { position: absolute; inset: -8%; width: 116%; height: 116%; pointer-events: none; }
.beat-ring { position: absolute; width: 74%; height: 74%; border-radius: 50%; border: 2px solid var(--accent); opacity: 0; pointer-events: none; }
.beat-ring.hit { animation: beatRing .55s ease-out; }
@keyframes beatRing { 0% { opacity: .55; transform: scale(1); } 100% { opacity: 0; transform: scale(1.32); } }
.record { position: relative; width: 70%; height: 70%; border-radius: 50%; display: grid; place-items: center; transition: transform .09s cubic-bezier(.3, 1.6, .5, 1); will-change: transform; touch-action: manipulation; outline: none; }
.record:focus-visible { box-shadow: 0 0 0 3px var(--accent); }
.record-grooves, .record-sheen, .record-label { position: absolute; border-radius: 50%; pointer-events: none; }
.record-grooves { inset: 0; background:
  radial-gradient(circle, transparent 0 31%, rgba(255,255,255,.04) 31.5% 32%, transparent 32.5%),
  repeating-radial-gradient(circle, #121016 0 1.3px, #1c1a22 1.6px 2.6px, #0f0d13 2.9px 3.6px),
  #111;
  box-shadow: 0 0 0 2px rgba(255,255,255,.04), 0 18px 50px rgba(0,0,0,.7), 0 0 60px var(--glow), inset 0 0 30px rgba(0,0,0,.8); }
.record-sheen { inset: 0; background: conic-gradient(from 20deg, transparent 0 8%, rgba(255,255,255,.12) 12%, transparent 18% 50%, rgba(255,255,255,.09) 62%, transparent 68%); mix-blend-mode: screen; }
.record-label { width: 36%; height: 36%; display: grid; place-items: center; background: radial-gradient(circle at 50% 50%, #111 0 6%, transparent 6.5%), radial-gradient(circle at 35% 30%, var(--accent2), var(--accent) 60%, color-mix(in srgb, var(--accent) 60%, #000)); box-shadow: inset 0 0 0 3px rgba(0,0,0,.2), inset 0 0 18px rgba(0,0,0,.35); }
.record-clef { font-family: var(--font-music); font-size: 3.2em; line-height: 1; color: rgba(20, 10, 0, .78); margin-top: -.08em; text-shadow: 0 1px 0 rgba(255,255,255,.25); }
.record-label-text { position: absolute; bottom: 14%; font-family: var(--font-head); font-size: .56em; font-weight: 700; letter-spacing: .08em; color: rgba(20, 10, 0, .72); text-transform: uppercase; max-width: 80%; text-align: center; white-space: nowrap; overflow: hidden; }
.record-spin { position: absolute; inset: 0; border-radius: 50%; display: grid; place-items: center; will-change: transform; }
.record-spin .record-label { position: relative; }
.record.press { transform: scale(.955); }
/* Skins */
.record.skin-shellac .record-grooves { background: radial-gradient(circle, transparent 0 31%, rgba(255,255,255,.03) 31.5% 32%, transparent 32.5%), repeating-radial-gradient(circle, #2a1a10 0 1.6px, #3a2616 2px 3.2px), #2a1a10; }
.record.skin-color .record-grooves { background: repeating-radial-gradient(circle, color-mix(in srgb, var(--accent) 55%, transparent) 0 1.4px, color-mix(in srgb, var(--accent) 35%, transparent) 1.7px 3px), radial-gradient(circle, color-mix(in srgb, var(--accent) 50%, #000), #000); opacity: .95; }
.record.skin-picture .record-grooves { background: radial-gradient(1px 1px at 20% 30%, #fff, transparent), radial-gradient(1px 1px at 70% 60%, #fff, transparent), radial-gradient(1.5px 1.5px at 40% 80%, #fff, transparent), radial-gradient(1px 1px at 85% 25%, #fff, transparent), radial-gradient(1px 1px at 55% 15%, #fff, transparent), repeating-radial-gradient(circle, rgba(255,255,255,.05) 0 1px, transparent 1.5px 3px), radial-gradient(circle at 60% 40%, #3b2a8a, #1a1040 50%, #05030f); }
.record.skin-gold .record-grooves { background: repeating-radial-gradient(circle, #b8841f 0 1.3px, #f7d56b 1.6px 2.6px, #d8a53a 2.9px 3.6px), #d4a73c; box-shadow: 0 0 0 2px rgba(255,230,150,.3), 0 18px 50px rgba(0,0,0,.7), 0 0 80px rgba(255,200,80,.5), inset 0 0 30px rgba(120,70,0,.6); }
.record.skin-gold .record-label { background: radial-gradient(circle, #111 0 6%, transparent 6.5%), radial-gradient(circle at 35% 30%, #fff, #ffe9a6 50%, #d9a93c); }
.record.skin-cosmic .record-grooves { background: repeating-radial-gradient(circle, rgba(255,255,255,.06) 0 1px, transparent 1.4px 3px), conic-gradient(from 0deg, #2b0f5e, #7d3cff, #0e4b9a, #00c2ff, #7d3cff, #ff4fd8, #2b0f5e); box-shadow: 0 0 0 2px rgba(255,255,255,.1), 0 18px 50px rgba(0,0,0,.7), 0 0 90px rgba(170,120,255,.55), inset 0 0 40px rgba(0,0,0,.7); }
.click-hint { position: absolute; bottom: -2%; font-family: var(--font-head); font-weight: 700; color: var(--gold); letter-spacing: .1em; pointer-events: none; animation: hintBob 1.4s ease-in-out infinite; text-shadow: 0 0 12px rgba(255, 200, 80, .6); }
@keyframes hintBob { 50% { transform: translateY(-6px); } }

.groove-panel { width: min(100%, 340px); padding: 8px 14px 10px; border-radius: 14px; background: rgba(0,0,0,.22); border: 1px solid var(--line); transition: opacity .6s; }
.groove-panel.locked { opacity: 0; pointer-events: none; }
.groove-head { display: flex; align-items: baseline; gap: 8px; font-size: 13px; }
.groove-title { font-family: var(--font-head); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.groove-mult { font-weight: 900; color: var(--accent2); font-variant-numeric: tabular-nums; }
.tempo { color: var(--dim); font-weight: 800; font-size: 12px; font-variant-numeric: tabular-nums; }
.tempo .music { font-size: 14px; }
.combo { margin-left: auto; font-weight: 900; color: var(--gold); font-variant-numeric: tabular-nums; }
.groove-bar { position: relative; height: 10px; margin-top: 6px; border-radius: 99px; background: rgba(255,255,255,.07); overflow: hidden; }
.groove-fill { position: absolute; inset: 0 auto 0 0; width: 0%; border-radius: 99px; background: linear-gradient(90deg, var(--accent), var(--accent2), #fff); box-shadow: 0 0 14px var(--glow); transition: width .12s linear; }
.groove-beats { position: absolute; inset: 0; display: flex; justify-content: space-around; pointer-events: none; }
.groove-beats i { width: 2px; background: rgba(0,0,0,.35); }
.judge-text { height: 18px; margin-top: 4px; text-align: center; font-weight: 900; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; opacity: 0; }
.judge-text.show { animation: judgePop .5s ease-out; }
.judge-text.perfect { color: var(--gold); } .judge-text.good { color: var(--good); } .judge-text.miss { color: var(--bad); }
@keyframes judgePop { 0% { opacity: 0; transform: scale(.7); } 25% { opacity: 1; transform: scale(1.08); } 100% { opacity: 0; transform: translateY(-4px); } }

.buffs { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; width: 100%; padding: 0 8px; }
.buff { position: relative; display: flex; align-items: center; gap: 6px; padding: 4px 10px 4px 5px; border-radius: 999px; background: rgba(0,0,0,.35); border: 1px solid rgba(255,211,107,.35); font-size: 12.5px; font-weight: 800; overflow: hidden; animation: buffIn .4s; }
.buff .bi { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--gold), var(--gold-2)); color: #3a2400; font-size: 13px; }
.buff .bt { color: var(--muted); font-variant-numeric: tabular-nums; font-weight: 700; }
.buff .bp { position: absolute; left: 0; bottom: 0; height: 2px; background: var(--gold); }
.buff.dyn { border-color: rgba(143, 214, 255, .3); }
.buff.dyn .bi { background: linear-gradient(135deg, var(--insp), var(--insp-2)); color: #03203a; }
@keyframes buffIn { from { transform: scale(.6); opacity: 0; } }

.stage-info { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; width: 100%; padding: 4px 8px 10px; margin-top: auto; }
.stage-info:empty { display: none; }
.si-ens { display: flex; align-items: center; gap: 6px; padding: 5px 10px 5px 6px; border-radius: 999px; background: rgba(0,0,0,.28); border: 1px solid rgba(255,211,107,.22); cursor: pointer; }
.si-ens .si-p { width: 30px; height: 30px; border-radius: 50%; overflow: hidden; border: 2px solid rgba(255,211,107,.7); margin-left: -10px; background: #1a1428; display: grid; place-items: center; color: var(--gold); font-size: 16px; }
.si-ens .si-p:first-of-type { margin-left: 0; }
.si-ens .si-p img { width: 100%; height: 100%; object-fit: cover; filter: sepia(.2); }
.si-ens .si-l { font-size: 12px; font-weight: 800; color: var(--muted); margin-left: 4px; }
.si-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; background: rgba(0,0,0,.28); border: 1px solid var(--line); font-size: 12px; font-weight: 800; color: var(--muted); cursor: pointer; }
.si-chip b { color: var(--accent2); }

/* ---------------- Reiter ---------------- */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; padding: 2px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { position: relative; display: flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 12px; font-weight: 800; font-size: 14px; color: var(--muted); background: rgba(0,0,0,.22); border: 1px solid var(--line); white-space: nowrap; transition: color .2s, background .2s, border-color .2s, transform .1s; }
.tab .ic { font-size: 17px; }
.tab:hover { color: var(--text); background: rgba(255,255,255,.06); }
.tab:active { transform: scale(.97); }
.tab.active { color: var(--text); background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.04)); border-color: color-mix(in srgb, var(--accent) 60%, transparent); box-shadow: 0 0 20px -6px var(--glow); }
.tab.active .ic { color: var(--accent2); }
.tab .badge { position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--bad); color: #fff; font-size: 10.5px; font-weight: 900; display: grid; place-items: center; box-shadow: 0 2px 6px rgba(0,0,0,.4); }
.tab .badge.new { background: linear-gradient(135deg, var(--gold), var(--gold-2)); color: #3a2400; }
.tab.fresh { animation: tabFresh 1s ease-out 3; }
@keyframes tabFresh { 50% { box-shadow: 0 0 0 4px rgba(255,211,107,.35); } }

/* ---------------- Inhaltsbereich ---------------- */
.content { padding: 18px 20px 26px; }
.sec-title { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; flex-wrap: wrap; }
.sec-title h2 { font-size: 21px; color: var(--text); }
.sec-title .ic { font-size: 24px; color: var(--accent2); }
.sec-title .spacer { flex: 1; }
.sec-sub { color: var(--muted); margin: -6px 0 16px; font-size: 14px; }
.h3 { font-family: var(--font-head); font-size: 15px; letter-spacing: .06em; color: var(--accent2); margin: 18px 0 10px; display: flex; align-items: center; gap: 8px; }
.h3 .count { font-family: var(--font-ui); color: var(--muted); font-size: 13px; letter-spacing: 0; margin-left: auto; font-weight: 700; }
.card { background: var(--panel-2); border: 1px solid var(--line); border-radius: 14px; padding: 14px; position: relative; }
.card.glow { border-color: color-mix(in srgb, var(--accent) 45%, transparent); box-shadow: 0 0 30px -12px var(--glow); }
.grid { display: grid; gap: 12px; }
.grid.two { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid.three { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.row { display: flex; align-items: center; gap: 10px; }
.row.wrap { flex-wrap: wrap; }
.spacer { flex: 1; }
.subtabs { display: flex; gap: 6px; margin-bottom: 16px; flex-wrap: wrap; }
.subtab { padding: 7px 14px; border-radius: 10px; font-weight: 800; font-size: 13.5px; color: var(--muted); background: rgba(0,0,0,.2); border: 1px solid var(--line); }
.subtab.active { color: #1e1400; background: linear-gradient(180deg, var(--accent2), var(--accent)); border-color: transparent; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 9px 16px; border-radius: 11px; font-weight: 800; font-size: 14px; color: var(--text); background: rgba(255,255,255,.07); border: 1px solid var(--line-2); transition: background .15s, transform .08s, opacity .2s, box-shadow .2s; white-space: nowrap; }
.btn:hover:not(:disabled) { background: rgba(255,255,255,.13); }
.btn:active:not(:disabled) { transform: scale(.96); }
.btn:disabled { opacity: .42; }
.btn.primary { color: #2a1a00; background: linear-gradient(180deg, #ffe39a, var(--gold) 45%, var(--gold-2)); border-color: rgba(255,255,255,.35); box-shadow: 0 4px 18px -4px rgba(255, 190, 70, .55); }
.btn.primary:hover:not(:disabled) { background: linear-gradient(180deg, #fff0bf, #ffdc7e 45%, #f7bd48); }
.btn.insp { color: #032237; background: linear-gradient(180deg, #c9ecff, var(--insp) 50%, var(--insp-2)); border-color: rgba(255,255,255,.35); }
.btn.danger { color: #fff; background: linear-gradient(180deg, #ff8d9a, #e04257); border-color: rgba(255,255,255,.2); }
.btn.small { padding: 6px 11px; font-size: 13px; border-radius: 9px; }
.btn.tiny { padding: 3px 8px; font-size: 12px; border-radius: 7px; }
.btn.block { width: 100%; }
.btn .ic { font-size: 1.1em; }

.progress { height: 8px; border-radius: 99px; background: rgba(255,255,255,.08); overflow: hidden; }
.progress > i { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--accent), var(--accent2)); transition: width .3s; }
.progress.gold > i { background: linear-gradient(90deg, var(--gold-2), var(--gold)); }
.progress.insp > i { background: linear-gradient(90deg, var(--insp-2), var(--insp)); }
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 99px; font-size: 11.5px; font-weight: 800; background: rgba(255,255,255,.08); color: var(--muted); border: 1px solid var(--line); white-space: nowrap; }
.tag.gold { color: var(--gold); border-color: rgba(255,211,107,.3); }
.tag.insp { color: var(--insp); border-color: rgba(143,214,255,.3); }
.tag.good { color: var(--good); border-color: rgba(121,232,168,.3); }
.kv { display: grid; grid-template-columns: 1fr auto; gap: 6px 14px; font-size: 14px; }
.kv > :nth-child(odd) { color: var(--muted); }
.kv > :nth-child(even) { text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; }
.empty { color: var(--muted); text-align: center; padding: 30px 10px; font-style: italic; }
.lore { color: #d7d0ee; font-size: 14px; line-height: 1.55; }
.fx-text { color: var(--good); font-weight: 800; font-size: 13.5px; }
.flavor { color: var(--muted); font-style: italic; font-size: 13px; }
.ico-box { width: 52px; height: 52px; flex: none; border-radius: 13px; display: grid; place-items: center; font-size: 30px; color: #fff; background: linear-gradient(145deg, color-mix(in srgb, var(--c, var(--accent)) 75%, #fff 5%), color-mix(in srgb, var(--c, var(--accent)) 40%, #000)); box-shadow: inset 0 1px 0 rgba(255,255,255,.3), inset 0 -2px 6px rgba(0,0,0,.35), 0 4px 12px rgba(0,0,0,.35); }
.ico-box .ic { filter: drop-shadow(0 2px 2px rgba(0,0,0,.4)); }
.ico-box.sm { width: 40px; height: 40px; font-size: 23px; border-radius: 10px; }
.ico-box.lg { width: 76px; height: 76px; font-size: 46px; border-radius: 18px; }
.ico-box.locked { --c: #3a3552; color: rgba(255,255,255,.25); }

/* ---------------- Laden / Instrumente ---------------- */
.store-head { display: flex; align-items: center; gap: 10px; padding: 14px 14px 10px; border-bottom: 1px solid var(--line); }
.store-head h2 { font-size: 18px; flex: 1; }
.seg { display: flex; background: rgba(0,0,0,.3); border: 1px solid var(--line); border-radius: 10px; padding: 2px; }
.seg button { padding: 5px 10px; border-radius: 8px; font-weight: 800; font-size: 12.5px; color: var(--muted); min-width: 36px; }
.seg button.active { background: linear-gradient(180deg, var(--accent2), var(--accent)); color: #1e1400; }
.store-scroll { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: 10px 10px 16px; }
.upgrades-box { margin-bottom: 10px; }
.upgrades-box:empty { display: none; }
.upg-head { display: flex; align-items: center; gap: 8px; margin: 2px 4px 8px; }
.upg-head h3 { font-size: 13.5px; letter-spacing: .08em; color: var(--muted); flex: 1; text-transform: uppercase; }
.upg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(50px, 1fr)); gap: 6px; }
.upg { position: relative; aspect-ratio: 1; border-radius: 11px; display: grid; place-items: center; font-size: 26px; color: #fff; background: linear-gradient(145deg, color-mix(in srgb, var(--c) 70%, #fff 4%), color-mix(in srgb, var(--c) 35%, #000)); border: 1px solid rgba(255,255,255,.14); box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 3px 8px rgba(0,0,0,.35); transition: transform .1s, filter .2s, opacity .2s; overflow: hidden; }
.upg:hover { transform: translateY(-2px); }
.upg:active { transform: scale(.94); }
.upg.no { filter: grayscale(.75) brightness(.62); }
.upg .tier { position: absolute; right: 3px; bottom: 1px; font-family: var(--font-head); font-size: 10px; font-weight: 900; color: rgba(255,255,255,.85); text-shadow: 0 1px 2px #000; }
.upg .ic2 { position: absolute; left: 3px; top: 3px; font-size: 13px; opacity: .8; }
.upg.can::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 2px var(--gold); animation: canGlow 2s infinite; }
@keyframes canGlow { 50% { box-shadow: inset 0 0 0 2px rgba(255,211,107,.35); } }
.upg-more { grid-column: 1 / -1; font-size: 12.5px; }
.upg.fresh { animation: upgFresh 1.2s ease-out 2; }
@keyframes upgFresh { 0% { transform: scale(.6); box-shadow: 0 0 0 0 rgba(255,211,107,.9); } 40% { transform: scale(1.08); box-shadow: 0 0 0 8px rgba(255,211,107,0); } 100% { transform: scale(1); } }
.upg.upg-plus { --c: #4a3f72; font-family: var(--font-ui); font-weight: 900; font-size: 15px; color: var(--text); }

.b-row { position: relative; display: flex; align-items: center; gap: 11px; padding: 8px 10px 8px 8px; margin-bottom: 6px; border-radius: 14px; background: linear-gradient(90deg, rgba(255,255,255,.055), rgba(255,255,255,.02)); border: 1px solid var(--line); transition: background .15s, transform .08s, opacity .25s, border-color .2s; overflow: hidden; width: 100%; text-align: left; }
.b-row:hover { background: linear-gradient(90deg, rgba(255,255,255,.1), rgba(255,255,255,.035)); }
.b-row:active { transform: scale(.985); }
.b-row.no { opacity: .55; }
.b-row.no .b-cost { color: var(--bad); }
.b-row.can { border-color: color-mix(in srgb, var(--accent) 35%, transparent); }
.b-row.mystery { opacity: .5; cursor: default; }
.b-row.bought { animation: rowFlash .45s ease-out; }
@keyframes rowFlash { 0% { box-shadow: inset 0 0 0 2px var(--c), 0 0 24px -4px var(--c); } 100% { box-shadow: inset 0 0 0 0 transparent; } }
.b-row.bought .b-count { animation: countPop .35s; }
@keyframes countPop { 40% { transform: scale(1.25); color: #fff; } }
.b-row.mystery .ico-box { filter: brightness(0) opacity(.5); }
.b-main { flex: 1; min-width: 0; }
.b-name { font-family: var(--font-head); font-weight: 700; font-size: 15px; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.b-sub { display: flex; align-items: center; gap: 10px; margin-top: 3px; font-size: 13px; }
.b-cost { font-weight: 900; color: var(--good); font-variant-numeric: tabular-nums; display: flex; align-items: center; gap: 3px; }
.b-prod { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.b-count { font-family: var(--font-head); font-weight: 900; font-size: 26px; color: rgba(255,255,255,.2); min-width: 40px; text-align: right; font-variant-numeric: tabular-nums; }
.b-row.can .b-count { color: rgba(255,255,255,.34); }
.b-share { position: absolute; left: 0; bottom: 0; height: 2px; background: var(--c, var(--accent)); opacity: .7; }
.b-info { width: 28px; height: 28px; border-radius: 8px; display: none; place-items: center; color: var(--muted); font-size: 16px; background: rgba(255,255,255,.05); }
.b-bulk { font-size: 11px; color: var(--muted); font-weight: 700; }
.note-ic { font-family: var(--font-music); font-weight: 400; }

/* ---------------- Tooltip ---------------- */
#tooltip { position: fixed; z-index: 90; max-width: 340px; pointer-events: none; opacity: 0; transform: translateY(4px); transition: opacity .12s, transform .12s; background: rgba(14, 10, 28, .96); border: 1px solid var(--line-2); border-radius: 13px; padding: 12px 14px; box-shadow: 0 16px 50px rgba(0,0,0,.6); font-size: 13.5px; }
#tooltip.show { opacity: 1; transform: none; }
.tt-head { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.tt-title { font-family: var(--font-head); font-weight: 700; font-size: 16px; line-height: 1.2; }
.tt-sub { color: var(--muted); font-size: 12px; }
.tt-body { color: #dcd4f4; }
.tt-body p { margin: 6px 0 0; }
.tt-cost { margin-top: 8px; font-weight: 900; display: flex; gap: 6px; align-items: center; }
.tt-sep { height: 1px; background: var(--line); margin: 8px 0; }

/* ---------------- Toasts ---------------- */
#toasts { position: fixed; z-index: 80; left: 50%; transform: translateX(-50%); bottom: 18px; display: flex; flex-direction: column-reverse; gap: 8px; width: min(380px, calc(100vw - 32px)); pointer-events: none; }
.toast { pointer-events: auto; display: flex; gap: 12px; align-items: center; padding: 11px 14px; border-radius: 14px; background: rgba(20, 15, 38, .95); border: 1px solid var(--line-2); box-shadow: 0 12px 36px rgba(0,0,0,.5); animation: toastIn .45s cubic-bezier(.2, 1.4, .4, 1); cursor: pointer; }
.toast.out { animation: toastOut .35s forwards; }
.toast .t-ic { width: 42px; height: 42px; flex: none; border-radius: 12px; display: grid; place-items: center; font-size: 24px; background: linear-gradient(135deg, var(--gold), var(--gold-2)); color: #3a2400; overflow: hidden; }
.toast .t-ic img { width: 100%; height: 100%; object-fit: cover; }
.toast .t-title { font-family: var(--font-head); font-weight: 700; font-size: 14.5px; }
.toast .t-kicker { font-size: 10.5px; text-transform: uppercase; letter-spacing: .14em; color: var(--gold); font-weight: 900; }
.toast .t-text { color: var(--muted); font-size: 13px; }
.toast.insp .t-ic { background: linear-gradient(135deg, var(--insp), var(--insp-2)); color: #032237; }
.toast.era .t-ic { background: linear-gradient(135deg, var(--accent2), var(--accent)); }
.toast.relic .t-ic { background: linear-gradient(135deg, var(--rc, var(--rare)), color-mix(in srgb, var(--rc, var(--rare)) 50%, #000)); color: #fff; }
.toast.info .t-ic { background: rgba(255,255,255,.1); color: var(--text); }
@keyframes toastIn { from { opacity: 0; transform: translateY(30px) scale(.92); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(20px) scale(.96); } }

/* ---------------- Modals ---------------- */
#modalRoot { position: fixed; inset: 0; z-index: 100; display: none; }
#modalRoot.open { display: block; }
.modal-back { position: absolute; inset: 0; background: rgba(5, 3, 12, .72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fadeIn .25s; }
.modal { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(560px, calc(100vw - 28px)); max-height: calc(100dvh - 40px); overflow: auto; background: linear-gradient(180deg, rgba(34, 27, 60, .98), rgba(18, 14, 34, .98)); border: 1px solid var(--line-2); border-radius: 20px; box-shadow: 0 30px 80px rgba(0,0,0,.7), 0 0 60px -20px var(--glow); padding: 22px 22px 20px; animation: modalIn .35s cubic-bezier(.2, 1.3, .4, 1); }
.modal.wide { width: min(760px, calc(100vw - 28px)); }
.modal h2 { font-size: 22px; margin-bottom: 6px; color: var(--gold); }
.modal .m-close { position: absolute; right: 12px; top: 12px; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: var(--muted); font-size: 18px; background: rgba(255,255,255,.06); }
.modal .m-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; flex-wrap: wrap; }
.modal .m-hero { display: flex; gap: 16px; align-items: center; margin-bottom: 12px; }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes modalIn { from { opacity: 0; transform: translate(-50%, -46%) scale(.94); } }
.big-number { font-family: var(--font-head); font-size: 30px; font-weight: 900; color: var(--gold); text-shadow: 0 0 20px rgba(255,200,80,.35); }

/* ---------------- Goldene Noten ---------------- */
#goldLayer { position: fixed; inset: 0; z-index: 55; pointer-events: none; }
.golden { position: absolute; width: 88px; height: 88px; margin: -44px 0 0 -44px; pointer-events: auto; border-radius: 50%; display: grid; place-items: center; animation: goldIn .6s cubic-bezier(.2, 1.5, .4, 1), goldBob 2.4s ease-in-out infinite .6s; }
.golden::before { content: ''; position: absolute; inset: -22px; border-radius: 50%; background: radial-gradient(circle, rgba(255,230,140,.75), rgba(255,190,60,.18) 48%, transparent 70%); animation: goldPulse 1.2s ease-in-out infinite; }
.golden::after { content: ''; position: absolute; inset: -34px; border-radius: 50%; background: repeating-conic-gradient(from 0deg, rgba(255,225,130,.34) 0deg 7deg, transparent 7deg 30deg); mask-image: radial-gradient(circle, #000 25%, transparent 70%); -webkit-mask-image: radial-gradient(circle, #000 25%, transparent 70%); animation: goldRays 7s linear infinite; pointer-events: none; }
.golden.mini::after { display: none; }
@keyframes goldRays { to { transform: rotate(360deg); } }
.golden .gn { position: relative; z-index: 1; font-family: var(--font-music); font-size: 62px; line-height: 1; background: linear-gradient(160deg, #fffbe6, #ffd76a 40%, #e39a1b 80%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 8px rgba(255,200,60,.8)) drop-shadow(0 3px 3px rgba(80,40,0,.6)); transform: rotate(-8deg); }
.golden.mini { width: 44px; height: 44px; margin: -22px 0 0 -22px; animation: goldIn .3s, rainFall 3.2s linear forwards; }
.golden.mini .gn { font-size: 32px; }
.golden.mini::before { inset: -8px; }
.golden.leaving { animation: goldOut .5s forwards; }
@keyframes goldIn { from { transform: scale(0) rotate(-90deg); opacity: 0; } }
@keyframes goldBob { 50% { transform: translateY(-10px) rotate(5deg); } }
@keyframes goldPulse { 50% { transform: scale(1.18); opacity: .7; } }
@keyframes goldOut { to { transform: scale(0); opacity: 0; } }
@keyframes rainFall { to { transform: translateY(55vh) rotate(40deg); } }

/* ---------------- Boot ---------------- */
#bootScreen { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, #241840, #07050f 70%); transition: opacity .8s; }
body:not(.booting) #bootScreen { opacity: 0; pointer-events: none; }
.boot-inner { text-align: center; }
.boot-clef { font-family: var(--font-music); font-size: 90px; color: var(--gold); animation: bootClef 1.8s ease-in-out infinite; }
.boot-title { font-family: var(--font-head); font-size: 34px; font-weight: 900; letter-spacing: .2em; color: var(--gold); text-transform: uppercase; }
.boot-sub { color: var(--muted); margin-top: 6px; font-style: italic; }
@keyframes bootClef { 50% { transform: translateY(-10px) rotate(4deg); } }

/* ---------------- Übersicht ---------------- */
.era-card { display: flex; gap: 16px; align-items: center; padding: 16px; border-radius: 16px; background: linear-gradient(120deg, color-mix(in srgb, var(--accent) 22%, transparent), rgba(0,0,0,.15)); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); }
.era-card .era-name { font-family: var(--font-head); font-size: 24px; font-weight: 900; color: var(--accent2); }
.era-card .era-years { color: var(--muted); font-size: 13px; }
.era-track { display: flex; gap: 4px; margin-top: 12px; }
.era-track i { flex: 1; height: 6px; border-radius: 4px; background: rgba(255,255,255,.08); }
.era-track i.on { background: linear-gradient(90deg, var(--accent), var(--accent2)); }
.era-track i.cur { box-shadow: 0 0 10px var(--accent); }
.goal { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; background: rgba(0,0,0,.18); border: 1px solid var(--line); }
.goal .g-text { flex: 1; min-width: 0; font-size: 13.5px; }
.goal .g-title { font-weight: 800; }
.bar-list { display: flex; flex-direction: column; gap: 7px; }
.bar-item { display: grid; grid-template-columns: 26px 1fr auto; gap: 8px; align-items: center; font-size: 13px; }
.bar-item .ic { font-size: 20px; color: var(--accent2); }
.bar-item .bl { position: relative; height: 20px; border-radius: 6px; background: rgba(255,255,255,.05); overflow: hidden; }
.bar-item .bl > i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, color-mix(in srgb, var(--c) 80%, transparent), color-mix(in srgb, var(--c) 40%, transparent)); border-radius: 6px; }
.bar-item .bl > span { position: relative; padding-left: 8px; line-height: 20px; font-weight: 700; white-space: nowrap; }
.bar-item .bv { font-weight: 800; color: var(--muted); font-variant-numeric: tabular-nums; min-width: 48px; text-align: right; }
.mult-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.mult { display: flex; justify-content: space-between; gap: 8px; padding: 8px 10px; border-radius: 10px; background: rgba(0,0,0,.18); border: 1px solid var(--line); font-size: 13px; }
.mult b { color: var(--gold); font-variant-numeric: tabular-nums; }

/* ---------------- Harmonielehre ---------------- */
.circle-wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 20px; align-items: start; }
.circle-wrap > :first-child { max-width: 460px; width: 100%; justify-self: center; }
.circle-svg { width: 100%; height: auto; display: block; }
.cnode { cursor: pointer; transition: transform .15s; transform-box: fill-box; transform-origin: center; }
.cnode:hover { transform: scale(1.08); }
.cnode circle.bg { fill: rgba(30, 24, 55, .95); stroke: rgba(255,255,255,.14); stroke-width: 1.5; transition: fill .3s, stroke .3s; }
.cnode text { fill: var(--muted); font-family: var(--font-ui); font-weight: 800; text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.cnode.avail circle.bg { stroke: var(--insp); stroke-width: 2.5; filter: drop-shadow(0 0 6px rgba(143,214,255,.6)); }
.cnode.avail text { fill: var(--text); }
.cnode.owned circle.bg { fill: url(#goldGrad); stroke: #fff3c4; }
.cnode.owned text { fill: #3a2400; }
.cnode.sel circle.bg { stroke: #fff; stroke-width: 3; }
.cnode.locked { opacity: .45; }
.circle-detail { position: sticky; top: 0; }
.mode-card { display: flex; flex-direction: column; gap: 8px; }
.mode-card.active { border-color: var(--gold); box-shadow: 0 0 26px -10px rgba(255,211,107,.6); }
.mode-name { font-family: var(--font-head); font-size: 18px; font-weight: 900; }
.scale-dots { display: flex; gap: 4px; align-items: flex-end; height: 34px; }
.scale-dots i { width: 14px; border-radius: 4px 4px 2px 2px; background: linear-gradient(180deg, var(--accent2), var(--accent)); opacity: .85; }
.rhythm-track { display: flex; flex-direction: column; gap: 10px; position: relative; }
.rhythm-step { display: flex; gap: 12px; align-items: center; }
.rhythm-step .rs-dot { width: 42px; height: 42px; flex: none; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-music); font-size: 22px; background: rgba(255,255,255,.07); border: 2px solid var(--line-2); }
.rhythm-step.owned .rs-dot { background: linear-gradient(135deg, var(--gold), var(--gold-2)); color: #3a2400; border-color: #fff3c4; }
.rhythm-step.avail .rs-dot { border-color: var(--insp); box-shadow: 0 0 10px rgba(143,214,255,.5); }

/* ---------------- Legenden ---------------- */
.ensemble { display: flex; gap: 12px; flex-wrap: wrap; padding: 14px; border-radius: 16px; background: linear-gradient(120deg, rgba(255,211,107,.1), rgba(0,0,0,.18)); border: 1px solid rgba(255,211,107,.25); margin-bottom: 16px; align-items: center; }
.ens-slot { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; border: 2px dashed rgba(255,255,255,.22); color: var(--dim); font-size: 26px; overflow: hidden; position: relative; flex: none; }
.ens-slot.filled { border: 2px solid var(--gold); box-shadow: 0 0 16px -2px rgba(255,211,107,.5); cursor: pointer; }
.ens-slot img, .portrait img { width: 100%; height: 100%; object-fit: cover; }
.ens-slot .ens-icon { font-size: 30px; color: var(--gold); }
.legend-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.legend { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 16px; background: var(--panel-2); border: 1px solid var(--line); position: relative; transition: border-color .2s, transform .15s; }
.legend.in-ens { border-color: rgba(255,211,107,.6); box-shadow: 0 0 30px -14px rgba(255,211,107,.7); }
.legend.locked { opacity: .75; }
.legend-top { display: flex; gap: 12px; align-items: center; cursor: pointer; }
.portrait { width: 64px; height: 80px; flex: none; border-radius: 12px; overflow: hidden; position: relative; background: #1a1428; box-shadow: 0 0 0 2px rgba(255, 211, 107, .55), 0 0 0 4px rgba(0,0,0,.4), 0 6px 16px rgba(0,0,0,.5); }
.portrait img { filter: sepia(.25) saturate(.9) contrast(1.05); }
.portrait::after { content: ''; position: absolute; inset: 0; box-shadow: inset 0 0 18px rgba(0,0,0,.55); border-radius: inherit; }
.portrait.icon { display: grid; place-items: center; font-size: 38px; color: #fff; background: linear-gradient(145deg, var(--c, #7d4dff), color-mix(in srgb, var(--c, #7d4dff) 35%, #000)); }
.portrait.lock { box-shadow: 0 0 0 2px rgba(255,255,255,.15), 0 6px 16px rgba(0,0,0,.5); }
.portrait.lock img { filter: brightness(0) opacity(.55); }
.portrait.lock .qm { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-head); font-size: 30px; font-weight: 900; color: rgba(255,255,255,.35); z-index: 1; }
.portrait.lg { width: 110px; height: 138px; border-radius: 16px; }
.lg-name { font-family: var(--font-head); font-weight: 900; font-size: 15.5px; line-height: 1.15; }
.lg-dates { color: var(--muted); font-size: 12px; }
.lg-level { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; }
.lg-fx { font-size: 13px; }
.lg-fx .lbl { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; font-weight: 800; }
.lg-actions { display: flex; gap: 6px; margin-top: auto; }
.filter-row { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }

/* ---------------- Konzerte ---------------- */
.venue { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 14px; background: var(--panel-2); border: 1px solid var(--line); }
.venue.active { border-color: rgba(143,214,255,.4); }
.venue.done { border-color: var(--gold); box-shadow: 0 0 24px -10px rgba(255,211,107,.8); }
.venue.locked { opacity: .5; }
.venue .v-main { flex: 1; min-width: 0; }
.venue .v-name { font-family: var(--font-head); font-weight: 700; font-size: 15.5px; }
.venue .v-meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 5px; }
.venue .v-desc { color: var(--muted); font-size: 12.5px; margin-top: 3px; }
.venue .progress { margin-top: 8px; }

/* ---------------- Sammlung ---------------- */
.relic-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 10px; }
.relic { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px 10px; border-radius: 14px; background: var(--panel-2); border: 1px solid var(--line); text-align: center; cursor: pointer; transition: transform .12s; }
.relic:hover { transform: translateY(-2px); }
.relic .r-ic { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; font-size: 32px; color: #fff; background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--rc) 85%, #fff 10%), color-mix(in srgb, var(--rc) 40%, #000)); box-shadow: 0 0 18px -4px var(--rc), inset 0 1px 0 rgba(255,255,255,.35); }
.relic.lock .r-ic { background: #221c36; box-shadow: none; color: rgba(255,255,255,.18); }
.relic .r-name { font-size: 11.5px; font-weight: 800; line-height: 1.2; min-height: 2.4em; }
.relic.lock .r-name { color: var(--dim); }
.stars { color: var(--gold); font-size: 11px; letter-spacing: 1px; }
.stars .off { color: rgba(255,255,255,.15); }

/* ---------------- Auszeichnungen ---------------- */
.ach-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(50px, 1fr)); gap: 7px; }
.ach { aspect-ratio: 1; border-radius: 12px; display: grid; place-items: center; font-size: 25px; background: rgba(255,255,255,.04); border: 1px solid var(--line); color: rgba(255,255,255,.14); cursor: pointer; transition: transform .1s; }
.ach:hover { transform: scale(1.06); }
.ach.on { color: #3a2400; background: linear-gradient(145deg, #fff0bf, var(--gold) 45%, var(--gold-2)); border-color: rgba(255,255,255,.4); box-shadow: 0 3px 10px -2px rgba(255,190,70,.45); }
.ach.secret:not(.on) { color: rgba(255,255,255,.1); }
.ach.secret:not(.on)::after { content: '?'; position: absolute; font-family: var(--font-head); font-weight: 900; font-size: 18px; color: rgba(255,255,255,.25); }
.ach { position: relative; }

/* ---------------- Lexikon ---------------- */
.lex-wrap { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 16px; }
.lex-cats { display: flex; flex-direction: column; gap: 6px; }
.lex-cat { display: flex; flex-direction: column; gap: 5px; padding: 9px 11px; border-radius: 11px; background: rgba(0,0,0,.18); border: 1px solid var(--line); text-align: left; }
.lex-cat.active { border-color: var(--accent); background: rgba(255,255,255,.07); }
.lex-cat .row { font-weight: 800; font-size: 14px; }
.lex-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; }
.lex-item { display: flex; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line); text-align: left; }
.lex-item.lock { opacity: .45; }
.lex-item .li-name { font-weight: 800; font-size: 13.5px; line-height: 1.2; }
.lex-item .li-sub { color: var(--muted); font-size: 11.5px; }

/* ---------------- Klavier ---------------- */
.piano { position: relative; display: flex; height: 190px; user-select: none; touch-action: none; margin: 10px 0 14px; border-radius: 12px; overflow: hidden; background: #0b0814; padding: 6px 6px 8px; box-shadow: inset 0 4px 12px rgba(0,0,0,.6), 0 10px 30px rgba(0,0,0,.4); }
.pkey { position: relative; flex: 1; border-radius: 0 0 8px 8px; margin: 0 1px; background: linear-gradient(180deg, #f2eee4, #fffdf8 70%, #ddd6c6); box-shadow: inset 0 -6px 0 #cfc6b2, 0 2px 4px rgba(0,0,0,.4); display: flex; align-items: flex-end; justify-content: center; padding-bottom: 12px; font-size: 11px; font-weight: 800; color: #8a8072; transition: background .05s; }
.pkey.down { background: linear-gradient(180deg, #ffe9a6, #ffd36b); box-shadow: inset 0 -2px 0 #d9a93c; }
.pkey.black { position: absolute; top: 6px; width: calc((100% - 12px) / var(--whites) * .62); height: 60%; margin: 0; z-index: 2; border-radius: 0 0 6px 6px; background: linear-gradient(180deg, #2a2536, #0c0a12); box-shadow: inset 0 -5px 0 #000, 0 3px 5px rgba(0,0,0,.6); color: #9a90b0; padding-bottom: 8px; font-size: 9.5px; }
.pkey.black.down { background: linear-gradient(180deg, #7a5a14, #c99a2c); }
.piano-notes { min-height: 44px; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; padding: 8px 12px; border-radius: 12px; background: rgba(0,0,0,.25); border: 1px solid var(--line); font-weight: 800; }
.piano-notes span { padding: 2px 8px; border-radius: 7px; background: rgba(255,255,255,.07); animation: noteIn .25s; }
@keyframes noteIn { from { transform: translateY(6px); opacity: 0; } }
.melody-item { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line); }
.melody-item.found { border-color: rgba(255,211,107,.4); }

/* ---------------- Ruhm ---------------- */
.fame-hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 16px; }
.fame-stat { padding: 14px; border-radius: 14px; background: rgba(0,0,0,.22); border: 1px solid var(--line); text-align: center; }
.fame-stat .fs-val { font-family: var(--font-head); font-weight: 900; font-size: 26px; }
.fame-stat .fs-lbl { color: var(--muted); font-size: 12.5px; }
.dacapo-card { padding: 18px; border-radius: 18px; background: radial-gradient(120% 140% at 0% 0%, rgba(255,211,107,.18), rgba(0,0,0,.2) 60%); border: 1px solid rgba(255,211,107,.35); display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.dacapo-card .dc-sign { font-family: var(--font-music); font-size: 64px; color: var(--gold); line-height: 1; }
.hall-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.hall-item { display: flex; gap: 10px; align-items: flex-start; padding: 11px; border-radius: 13px; background: var(--panel-2); border: 1px solid var(--line); text-align: left; }
.hall-item.owned { border-color: rgba(255,211,107,.45); background: linear-gradient(120deg, rgba(255,211,107,.12), var(--panel-2)); }
.hall-item.locked { opacity: .45; }
.hall-item .hi-name { font-weight: 900; font-size: 14px; }
.hall-item .hi-text { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.genre-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-top: 10px; }
.genre-opt { padding: 10px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(0,0,0,.2); text-align: left; }
.genre-opt.sel { border-color: var(--gold); background: rgba(255,211,107,.12); box-shadow: 0 0 18px -6px rgba(255,211,107,.6); }
.genre-opt .go-name { font-weight: 900; display: flex; gap: 6px; align-items: center; }
.genre-opt .go-text { font-size: 11.5px; color: var(--muted); margin-top: 4px; }

/* ---------------- Einstellungen ---------------- */
.settings-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); }
.set-group { display: flex; flex-direction: column; gap: 12px; }
.set-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.set-row label { flex: 1; min-width: 120px; font-weight: 700; }
.set-row .hint { flex-basis: 100%; color: var(--muted); font-size: 12.5px; margin-top: -8px; }
input[type=range] { -webkit-appearance: none; appearance: none; width: min(190px, 42%); height: 6px; border-radius: 6px; background: rgba(255,255,255,.12); outline: none; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: linear-gradient(180deg, #fff3c4, var(--gold)); border: 2px solid rgba(0,0,0,.3); cursor: pointer; }
input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--gold); border: 2px solid rgba(0,0,0,.3); cursor: pointer; }
select, textarea, input[type=text] { background: rgba(0,0,0,.35); border: 1px solid var(--line-2); border-radius: 10px; padding: 8px 10px; color: var(--text); outline: none; }
select option { background: #1b1530; }
textarea { width: 100%; min-height: 110px; resize: vertical; font-family: ui-monospace, monospace; font-size: 12px; user-select: text; -webkit-user-select: text; }
.toggle { position: relative; width: 46px; height: 26px; border-radius: 99px; background: rgba(255,255,255,.14); transition: background .2s; flex: none; }
.toggle::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 2px 4px rgba(0,0,0,.4); }
.toggle.on { background: linear-gradient(90deg, var(--gold-2), var(--gold)); }
.toggle.on::after { transform: translateX(20px); }
.credits { font-size: 12.5px; color: var(--muted); line-height: 1.6; }

/* ---------------- Responsiv ---------------- */
@media (max-width: 1199px) {
  #layout { grid-template-columns: clamp(280px, 32vw, 360px) minmax(0, 1fr); grid-template-areas: "stage tabs" "stage content"; }
  #store { grid-area: content; display: none; }
  body.tab-store #store { display: flex; }
  body.tab-store #content { display: none; }
  .store-tab-btn { display: flex !important; }
}
@media (max-width: 860px) {
  .circle-wrap { grid-template-columns: 1fr; }
  .lex-wrap { grid-template-columns: 1fr; }
  .lex-cats { flex-direction: row; overflow-x: auto; padding-bottom: 4px; }
  .lex-cat { min-width: 150px; }
}
@media (max-width: 759px) {
  :root { --top-h: 46px; --nav-h: 62px; }
  html, body { font-size: 14.5px; }
  #topbar { gap: 8px; padding: 0 10px; }
  .brand { font-size: 17px; }
  .brand-text { display: none; }
  .brand-clef { font-size: 28px; }
  #ticker { height: 28px; }
  .ticker-item { font-size: 12.5px; }
  .icon-btn { width: 34px; height: 34px; font-size: 17px; }
  #layout { display: flex; flex-direction: column; padding: 0; gap: 0; }
  #stage { flex: none; height: var(--stage-h, 42dvh); min-height: 250px; padding: 0 10px 6px; display: grid; grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr) auto; justify-items: center; gap: 2px; }
  .counter { padding: 0; }
  .notes-row { font-size: 23px; }
  .notes-unit { font-size: 10.5px; margin-top: 0; }
  .nps-row { font-size: 13px; margin-top: 1px; }
  .curr-row { margin-top: 4px; min-height: 0; gap: 6px; }
  .chip { font-size: 12.5px; padding: 2px 9px 2px 6px; }
  .record-wrap { width: auto; height: 100%; max-width: 100%; min-height: 0; margin: 0; }
  .groove-panel { padding: 5px 12px 4px; width: min(100%, 360px); }
  .judge-text { height: 14px; font-size: 11.5px; margin-top: 2px; }
  .stage-info { display: none; }
  #buffs { position: absolute; top: 96px; left: 6px; right: 6px; flex-direction: column; align-items: flex-start; pointer-events: none; z-index: 5; }
  .buff { font-size: 11px; padding: 3px 8px 3px 4px; }
  .buff .bi { width: 18px; height: 18px; font-size: 11px; }
  #content, #store { flex: 1; min-height: 0; border-radius: 20px 20px 0 0; border-bottom: 0; margin: 0; padding-bottom: calc(var(--nav-h) + var(--safe-b) + 16px); }
  #store { padding-bottom: 0; }
  #store .store-scroll { padding-bottom: calc(var(--nav-h) + var(--safe-b) + 16px); }
  .content { padding: 14px 12px; }
  #tabs { position: fixed; z-index: 50; left: 0; right: 0; bottom: 0; height: calc(var(--nav-h) + var(--safe-b)); padding: 5px 6px calc(5px + var(--safe-b)); gap: 2px; flex-wrap: nowrap; overflow-x: auto; background: rgba(12, 9, 24, .97); border-top: 1px solid var(--line); }
  .tab { flex: 1 0 auto; min-width: 64px; flex-direction: column; gap: 2px; padding: 5px 6px; font-size: 10.5px; border-radius: 12px; background: transparent; border-color: transparent; }
  .tab .ic { font-size: 22px; }
  .tab.active { background: rgba(255,255,255,.08); box-shadow: none; }
  .tab .badge { top: 1px; right: 6px; }
  .b-info { display: grid; }
  .sec-title h2 { font-size: 18px; }
  .legend-grid { grid-template-columns: repeat(auto-fill, minmax(100%, 1fr)); }
  #toasts { right: 8px; left: 8px; width: auto; top: calc(var(--top-h) + 4px); bottom: auto; transform: none; flex-direction: column; }
  @keyframes toastIn { from { opacity: 0; transform: translateY(-24px) scale(.94); } }
  .toast { padding: 8px 10px; }
  .toast .t-ic { width: 36px; height: 36px; font-size: 20px; }
  .modal { padding: 18px 16px 16px; }
  .circle-detail { position: static; }
  .piano { height: 160px; }
  .golden { width: 64px; height: 64px; margin: -32px 0 0 -32px; }
  .golden .gn { font-size: 46px; }
}
@media (max-width: 759px) and (max-height: 640px) {
  #stage { height: 46dvh; }
}
@media (hover: none) {
  .upg:hover, .relic:hover, .ach:hover, .cnode:hover { transform: none; }
}
body.reduce-motion *, body.reduce-motion *::before, body.reduce-motion *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
