:root {
  --bg: #f6f4ff;
  --surface: #ffffff;
  --ink: #2a2446;
  --muted: #8c86a6;
  --line: #e7e3f4;
  --brand: #7c5cff;
  --brand-d: #5a3ee0;
  --good: #34c76a;
  --good-d: #22a052;
  --good-bg: #dcf8e6;
  --bad: #ff5a6e;
  --bad-d: #d83a50;
  --bad-bg: #ffe3e7;
  --gold: #ffc53d;
  --gold-d: #e09a00;
  --u: #7c5cff;
  --ud: #5a3ee0;
  --radius: 18px;
  --piano-h: 190px;
  --font: 'Nunito', 'Segoe UI Rounded', 'Segoe UI', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 700;
  overflow: hidden;
  user-select: none;
  -webkit-font-smoothing: antialiased;
}
button { font-family: inherit; cursor: pointer; }
kbd {
  font-family: inherit; font-size: 11px; font-weight: 800;
  background: #fff; border: 1px solid var(--line); border-bottom-width: 3px;
  border-radius: 6px; padding: 0 5px; margin: 0 1px; color: var(--ink);
}
.muted { color: var(--muted); }
.small { font-size: 13px; }
.hidden { display: none !important; }

#app { height: 100%; }
.screen { display: none; height: 100%; }
.screen.active { display: grid; animation: screenIn .35s ease; }
@keyframes screenIn { from { opacity: 0; transform: translateY(8px); } }

/* ---------- Buttons ---------- */
.btn {
  --c: var(--brand); --cd: var(--brand-d);
  border: 0; border-radius: 16px; padding: 13px 26px;
  background: var(--c); color: #fff;
  font-weight: 900; font-size: 15px; letter-spacing: .06em; text-transform: uppercase;
  box-shadow: 0 5px 0 var(--cd);
  transition: transform .08s, box-shadow .08s, filter .15s;
}
.btn:hover { filter: brightness(1.07); }
.btn:active { transform: translateY(5px); box-shadow: 0 0 0 var(--cd); }
.btn-big { --c: var(--good); --cd: var(--good-d); padding: 16px 40px; font-size: 17px; }
.btn-light { --c: #fff; --cd: rgba(0,0,0,.18); color: var(--u); width: 100%; }
.btn-ghost { --c: #fff; --cd: var(--line); color: var(--muted); border: 2px solid var(--line); }
.btn-ghost.danger { color: var(--bad); }
.row-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }

.icon-btn {
  border: 0; background: none; font-size: 24px; color: var(--muted);
  width: 44px; height: 44px; border-radius: 12px; transition: background .15s, transform .1s;
}
.icon-btn:hover { background: var(--line); }
.icon-btn:active { transform: scale(.92); }

/* ---------- Startseite ---------- */
#screen-home { grid-template-columns: 240px 1fr 330px; }
.sidebar {
  border-right: 2px solid var(--line); padding: 22px 16px; background: var(--surface);
  display: flex; flex-direction: column; gap: 26px;
}
.brand { display: flex; align-items: center; gap: 8px; padding: 0 8px; }
.brand-mascot { width: 46px; height: 52px; display: block; }
.brand-mascot .mascot { width: 100%; height: 100%; }
.brand-name { font-size: 27px; font-weight: 900; color: var(--brand); letter-spacing: -.02em; }
.brand-name b { color: var(--ink); }
nav { display: flex; flex-direction: column; gap: 6px; }
.nav-btn {
  display: flex; align-items: center; gap: 14px; border: 2px solid transparent; background: none;
  padding: 10px 14px; border-radius: 14px; font-size: 15px; font-weight: 800; color: var(--muted);
  text-transform: uppercase; letter-spacing: .05em; text-align: left;
}
.nav-btn span { font-size: 24px; }
.nav-btn em { font-style: normal; }
.nav-btn:hover { background: var(--bg); }
.nav-btn.active { background: #efeaff; border-color: #cfc2ff; color: var(--brand); }

.path-main { overflow-y: auto; overflow-x: hidden; scroll-behavior: smooth; }
.path { max-width: 600px; margin: 0 auto; padding: 26px 20px 80px; }

.unit { margin-bottom: 26px; }
.unit-banner {
  position: sticky; top: 12px; z-index: 5;
  display: flex; justify-content: space-between; align-items: center;
  background: var(--u); color: #fff; border-radius: var(--radius);
  padding: 16px 22px; box-shadow: 0 5px 0 var(--ud);
}
.unit-kicker { font-size: 13px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; opacity: .85; }
.unit-banner h2 { margin: 2px 0 2px; font-size: 23px; font-weight: 900; }
.unit-banner p { margin: 0; font-size: 15px; opacity: .92; }
.unit-icon {
  font-size: 30px; width: 58px; height: 58px; display: grid; place-items: center;
  background: rgba(255,255,255,.2); border-radius: 16px; flex: none;
}

.nodes { position: relative; display: flex; flex-direction: column; align-items: center; gap: 34px; padding: 64px 0 20px; }
.node-wrap {
  position: relative; transform: translateX(var(--x));
  display: flex; flex-direction: column; align-items: center;
  animation: nodeIn .45s backwards cubic-bezier(.3,1.5,.6,1); animation-delay: var(--d);
}
.node-wrap:has(.pop) { z-index: 30; }
@keyframes nodeIn { from { opacity: 0; transform: translateX(var(--x)) scale(.5); } }
.node {
  position: relative; width: 74px; height: 66px; border-radius: 50%; border: 0;
  background: var(--u); box-shadow: 0 8px 0 var(--ud);
  color: #fff; font-size: 30px; font-weight: 900;
  transition: transform .1s, box-shadow .1s, filter .15s;
}
.node:hover { filter: brightness(1.08); }
.node:active { transform: translateY(8px); box-shadow: 0 0 0 var(--ud); }
.node-face { position: relative; z-index: 1; display: block; line-height: 1; }
.node.done { background: var(--gold); box-shadow: 0 8px 0 var(--gold-d); }
.node.locked { background: #e3e0ee; box-shadow: 0 8px 0 #c8c3da; color: #aaa4c0; font-size: 24px; }
.node.boss { width: 86px; height: 76px; font-size: 34px; }
.node.locked.boss { font-size: 32px; filter: grayscale(1); opacity: .8; }
.node.current .ring {
  position: absolute; inset: -12px -12px -20px; border-radius: 50%;
  border: 6px solid var(--u); opacity: .25; animation: ring 1.6s infinite ease-out;
}
@keyframes ring { 0% { transform: scale(.9); opacity: .45; } 100% { transform: scale(1.25); opacity: 0; } }
.node.current { animation: nodeBob 2s infinite ease-in-out; }
@keyframes nodeBob { 50% { transform: translateY(-4px); } }
.start-bubble {
  position: absolute; bottom: calc(100% + 12px); z-index: 2;
  background: #fff; color: var(--u); border: 2px solid var(--line);
  font-weight: 900; font-size: 15px; letter-spacing: .08em;
  padding: 8px 16px; border-radius: 12px; white-space: nowrap;
  animation: bubbleBounce 1.2s infinite ease-in-out;
}
.start-bubble::after {
  content: ''; position: absolute; left: 50%; top: 100%; transform: translateX(-50%);
  border: 9px solid transparent; border-top-color: #fff;
}
@keyframes bubbleBounce { 50% { transform: translateY(-6px); } }
.node-stars { margin-top: 12px; color: var(--gold); font-size: 15px; letter-spacing: 2px; text-shadow: 0 1px 0 var(--gold-d); }
.node-stars i { font-style: normal; color: #ddd8ea; text-shadow: none; }

.pop {
  position: absolute; top: calc(100% + 16px); z-index: 20; width: 300px;
  background: var(--u); color: #fff; border-radius: var(--radius); padding: 18px;
  box-shadow: 0 12px 30px rgba(40,20,90,.25);
  animation: popIn .25s cubic-bezier(.3,1.6,.6,1);
}
.pop::before {
  content: ''; position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%);
  border: 11px solid transparent; border-bottom-color: var(--u);
}
.pop.locked { background: #f1eff7; color: var(--muted); border: 2px solid var(--line); }
.pop.locked::before { border-bottom-color: #f1eff7; }
.pop h3 { margin: 0 0 4px; font-size: 19px; font-weight: 900; }
.pop p { margin: 0 0 8px; font-size: 15px; opacity: .95; }
.pop-meta { font-size: 13px; opacity: .85; margin-bottom: 14px; }
.pop-lock { font-size: 14px; }
@keyframes popIn { from { opacity: 0; transform: translateY(-8px) scale(.9); } }

.path-mascot { position: absolute; top: 90px; width: 120px; pointer-events: none; opacity: .95; }
.path-mascot.right { right: 0; }
.path-mascot.left { left: 0; transform: scaleX(-1); }
.path-end { text-align: center; font-size: 56px; padding: 20px; }
.path-end p { font-size: 16px; color: var(--muted); margin: 6px 0 0; }

.rightbar { padding: 22px 22px; display: flex; flex-direction: column; gap: 16px; overflow-y: auto; }
.stat-row { display: flex; justify-content: space-between; gap: 8px; }
.stat { display: flex; align-items: center; gap: 6px; font-size: 18px; padding: 8px 10px; border-radius: 12px; }
.stat:hover { background: var(--surface); }
.stat-ico { font-size: 22px; }
.panel { background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius); padding: 18px; }
.panel p { margin: 4px 0; font-size: 15px; }
.goal { display: flex; gap: 16px; align-items: center; }
.goal-ring { width: 68px; height: 68px; transform: rotate(-90deg); flex: none; }
.goal-ring circle { fill: none; stroke-width: 9; stroke-linecap: round; }
.goal-ring .track { stroke: var(--line); }
.goal-ring .val { stroke: var(--gold); transition: stroke-dasharray .8s; }
.goal b { font-size: 17px; }
.goal-done { color: var(--good-d); font-size: 14px; }
.goal .muted { font-size: 14px; }
.mini-bar { height: 12px; background: var(--line); border-radius: 99px; margin-top: 10px; overflow: hidden; }
.mini-bar div { height: 100%; background: var(--brand); border-radius: 99px; }
.midi-head { display: flex; align-items: center; gap: 10px; font-size: 16px; }
.dot { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.dot.ok { background: var(--good); box-shadow: 0 0 0 4px var(--good-bg); animation: pulse 2s infinite; }
.dot.warn { background: var(--gold); box-shadow: 0 0 0 4px #fff2cc; }
.dot.bad { background: var(--bad); box-shadow: 0 0 0 4px var(--bad-bg); }
.dot.wait { background: var(--muted); }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px var(--good-bg); } }
.midi > p { color: var(--muted); font-size: 14px; }
.last-note {
  margin: 12px 0; height: 76px; border-radius: 14px; background: var(--bg);
  border: 2px dashed var(--line); display: grid; place-items: center; color: var(--muted); font-size: 14px;
}
.last-note .ln { font-size: 40px; color: var(--brand); font-weight: 900; }
.last-note .ln small { font-size: 16px; color: var(--muted); margin-left: 2px; }
.last-note.hit { animation: hit .35s cubic-bezier(.3,1.8,.6,1); border-color: var(--brand); border-style: solid; }
@keyframes hit { from { transform: scale(.85); } }

/* ---------- Lektion ---------- */
#screen-lesson { grid-template-rows: auto 1fr auto; position: relative; }
.lesson-top {
  display: flex; align-items: center; gap: 16px;
  max-width: 1040px; width: 100%; margin: 0 auto; padding: 22px 24px 6px;
}
.progress { flex: 1; height: 18px; background: var(--line); border-radius: 99px; overflow: hidden; }
#prog-fill {
  height: 100%; width: 3%; border-radius: 99px; position: relative;
  background: var(--good); transition: width .5s cubic-bezier(.3,1.4,.6,1);
}
#prog-fill::after {
  content: ''; position: absolute; left: 10px; right: 10px; top: 4px; height: 5px;
  background: rgba(255,255,255,.35); border-radius: 99px;
}
.piano-toggle.off { opacity: .4; filter: grayscale(1); }
.hearts { display: flex; gap: 3px; font-size: 25px; min-width: 80px; justify-content: flex-end; }
.heart { color: var(--bad); text-shadow: 0 2px 0 var(--bad-d); display: inline-block; }
.heart.empty { color: #ddd9ea; text-shadow: none; }
.heart.breaking { animation: heartBreak .6s; }
@keyframes heartBreak {
  0% { color: var(--bad); transform: scale(1); }
  30% { transform: scale(1.6) rotate(-12deg); color: var(--bad); }
  100% { transform: scale(1); }
}

.lesson-body {
  max-width: 820px; width: 100%; margin: 0 auto; padding: 4px 24px 12px;
  display: flex; flex-direction: column; justify-content: center; gap: 12px; min-height: 0;
}
.lesson-tag { font-size: 13px; font-weight: 900; color: var(--u); text-transform: uppercase; letter-spacing: .08em; }
.prompt-row { display: flex; align-items: center; gap: 16px; }
#prompt-title { margin: 0; font-size: 30px; font-weight: 900; }
.combo {
  margin-left: auto; padding: 6px 14px; border-radius: 99px; font-size: 15px; font-weight: 900;
  background: #fff1d6; color: #e07a00; opacity: 0; transform: scale(.5);
}
.combo.show { animation: comboIn .5s cubic-bezier(.3,1.8,.6,1) forwards; }
@keyframes comboIn { to { opacity: 1; transform: scale(1); } }

.stage { display: flex; align-items: flex-end; gap: 12px; height: 110px; }
.lesson-mascot { width: 92px; height: 106px; flex: none; }
.lesson-mascot .mascot { width: 100%; height: 100%; }
.bubble {
  position: relative; margin-bottom: 34px;
  background: #fff; border: 2px solid var(--line); border-radius: 16px;
  padding: 12px 18px; font-size: 17px; max-width: 520px;
}
.bubble::before {
  content: ''; position: absolute; left: -12px; bottom: 14px;
  border: 7px solid transparent; border-right: 12px solid var(--line);
}
.bubble::after {
  content: ''; position: absolute; left: -8px; bottom: 15px;
  border: 6px solid transparent; border-right: 10px solid #fff;
}
.bubble b { color: var(--u); }
.bubble.bpop { animation: bubblePop .35s cubic-bezier(.3,1.7,.6,1); transform-origin: left bottom; }
@keyframes bubblePop { from { transform: scale(.6); opacity: 0; } }

.card {
  position: relative; background: var(--surface); border: 2px solid var(--line); border-radius: 24px;
  box-shadow: 0 6px 0 var(--line); padding: 16px 20px; min-height: 230px;
  display: flex; flex-direction: column; justify-content: center; align-items: center; overflow: hidden;
}
#card-content { width: 100%; display: flex; flex-direction: column; align-items: center; }
.card.enter { animation: cardIn .45s cubic-bezier(.3,1.5,.6,1); }
@keyframes cardIn { from { opacity: 0; transform: translateX(60px) scale(.96); } }
.card.shake { animation: shake .45s; border-color: var(--bad); }
@keyframes shake {
  20% { transform: translateX(-12px); } 40% { transform: translateX(10px); }
  60% { transform: translateX(-6px); } 80% { transform: translateX(4px); }
}
.card.solved { border-color: var(--good); box-shadow: 0 6px 0 var(--good); animation: solved .5s cubic-bezier(.3,1.8,.6,1); }
@keyframes solved { 40% { transform: scale(1.04); } }
.card.solved .big-name { color: var(--good-d); }

.staff-svg { height: 240px; width: auto; max-width: 100%; overflow: visible; }
.staff-svg.grand { height: 330px; }
.staff-svg .sl { stroke: #4a4466; stroke-width: 1.4; }
.staff-svg .sl.thick { stroke-width: 4; }
.staff-svg .ledger { stroke: #4a4466; stroke-width: 1.6; }
.staff-svg .clef { fill: #2a2446; font-family: 'Segoe UI Symbol', 'Noto Music', 'Bravura Text', serif; }
.staff-svg .acc { fill: #2a2446; font-family: 'Segoe UI Symbol', 'Noto Music', serif; }
.staff-svg .head { fill: #2a2446; }
.staff-svg .hole { fill: #fff; }
.staff-svg .nlabel { fill: var(--u); font-size: 15px; font-weight: 900; font-family: var(--font); }
.staff-svg .col-hl { fill: color-mix(in srgb, var(--u) 12%, transparent); }
.staff-svg .col .nh { transform-box: fill-box; }
.staff-svg .col.current .head { fill: var(--ink); }
.staff-svg .col.pending .head, .staff-svg .col.pending .acc { fill: #b9b4cc; }
.staff-svg .col.pending .ledger { stroke: #b9b4cc; }
.staff-svg .col.done .head, .staff-svg .col.done .acc { fill: var(--good); }
.staff-svg .col.done .nlabel { fill: var(--good-d); }
.card.enter .staff-svg .col { animation: noteIn .45s backwards cubic-bezier(.3,1.7,.6,1); animation-delay: calc(var(--i) * 45ms + 120ms); }
@keyframes noteIn { from { opacity: 0; transform: translateY(-14px); } }
.card.solved .staff-svg .head, .card.solved .staff-svg .acc { fill: var(--good); }
.card.solved .staff-svg .ledger { stroke: var(--good); }

.big-name { font-size: 96px; font-weight: 900; color: var(--u); line-height: 1.05; }
.big-name.chord { font-size: 68px; }
.big-sub { color: var(--muted); font-size: 17px; margin-top: 4px; text-align: center; }
.card.enter .big-name { animation: nameIn .5s cubic-bezier(.3,1.8,.6,1); }
@keyframes nameIn { from { transform: scale(.4); opacity: 0; } }

.timer { position: absolute; left: 0; right: 0; bottom: 0; height: 8px; background: var(--line); }
#timer-fill { height: 100%; background: var(--u); transform-origin: left; }
.timer.urgent #timer-fill { background: var(--bad); animation: urgent .4s infinite alternate; }
@keyframes urgent { to { opacity: .55; } }

/* Klaviatur */
.piano-wrap {
  background: linear-gradient(#3a3356, #26213b); padding: 14px 18px 18px;
  transition: transform .35s cubic-bezier(.3,1.2,.6,1), opacity .25s;
}
#screen-lesson.no-piano .piano-wrap { display: none; }
.piano { position: relative; display: flex; height: var(--piano-h); max-width: 1180px; margin: 0 auto; }
.key { position: relative; cursor: pointer; transition: background .06s, transform .06s; }
.key.white {
  flex: 1; background: #fff; margin: 0 1.5px; border-radius: 0 0 9px 9px;
  box-shadow: inset 0 -7px 0 #dcd8e8; display: flex; align-items: flex-end; justify-content: center;
}
.key.black {
  position: absolute; top: 0; height: 62%; z-index: 2; background: #1c1830;
  border-radius: 0 0 7px 7px; box-shadow: inset 0 -6px 0 #000, 0 3px 4px rgba(0,0,0,.35);
}
.klabel { display: none; padding-bottom: 14px; font-size: 14px; color: var(--muted); font-weight: 900; }
.klabel small { font-size: 10px; margin-left: 1px; }
.piano.labels .klabel { display: block; }
.key.is-c .klabel { color: var(--ink); }
.key.white.down { background: #ece8fa; box-shadow: inset 0 -2px 0 #cfc8e6; transform: translateY(2px); }
.key.black.down { background: #3b3460; box-shadow: inset 0 -2px 0 #000; }
.key.hint.white { background: color-mix(in srgb, var(--u) 22%, #fff); box-shadow: inset 0 -7px 0 var(--u); }
.key.hint.black { background: var(--u); box-shadow: inset 0 -6px 0 var(--ud); }
.key.hint::before {
  content: ''; position: absolute; left: 50%; top: 18%; width: 14px; height: 14px; margin-left: -7px;
  border-radius: 50%; background: var(--u); animation: hintDot 1s infinite;
}
.key.hint.black::before { background: #fff; top: 55%; }
@keyframes hintDot { 50% { transform: scale(1.4); opacity: .6; } }
.key.good.white, .key.good.black { background: var(--good) !important; box-shadow: inset 0 -6px 0 var(--good-d) !important; }
.key.bad.white, .key.bad.black { background: var(--bad) !important; box-shadow: inset 0 -6px 0 var(--bad-d) !important; animation: keyShake .3s; }
@keyframes keyShake { 30% { transform: translateX(-3px); } 70% { transform: translateX(3px); } }

/* Feedback */
.fb-slot { height: 74px; display: flex; justify-content: center; align-items: flex-start; flex: none; }
.feedback {
  display: flex; align-items: center; gap: 14px; min-width: 340px; max-width: 680px;
  padding: 12px 22px 12px 12px; border-radius: 18px; font-size: 16px;
  transform: translateY(16px) scale(.9); opacity: 0; pointer-events: none;
  transition: transform .3s cubic-bezier(.3,1.6,.6,1), opacity .2s;
}
.feedback.show { transform: none; opacity: 1; }
.feedback.good { background: var(--good-bg); color: var(--good-d); box-shadow: 0 5px 0 #b5ecc8; }
.feedback.bad { background: var(--bad-bg); color: var(--bad-d); box-shadow: 0 5px 0 #ffc4cc; }
.fb-icon {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  color: #fff; font-size: 22px; font-weight: 900; flex: none;
}
.good .fb-icon { background: var(--good); }
.bad .fb-icon { background: var(--bad); }
.fb-text > b { display: block; font-size: 20px; font-weight: 900; }
.fb-text span { font-size: 15px; }

/* Effekte */
.burst {
  position: fixed; z-index: 50; pointer-events: none; color: var(--c); font-size: 22px; font-weight: 900;
  animation: burst .85s cubic-bezier(.2,.8,.3,1) forwards;
}
@keyframes burst {
  from { transform: translate(-50%, -50%) scale(.3); opacity: 1; }
  to { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(1.1) rotate(160deg); opacity: 0; }
}
.float-text {
  position: fixed; z-index: 50; transform: translateX(-50%); font-weight: 900; font-size: 22px; color: var(--gold-d);
  animation: floatUp 1.2s forwards; pointer-events: none;
}
@keyframes floatUp { to { transform: translate(-50%, -60px); opacity: 0; } }
#confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 100; }

/* Maskottchen */
.mascot { overflow: visible; }
.mascot .m-shadow { fill: rgba(42,36,70,.12); }
.mascot .m-head { fill: var(--u); }
.mascot .m-stem, .mascot .m-flag { fill: var(--ud); }
.mascot .m-shine { fill: rgba(255,255,255,.35); }
.mascot .m-eye { fill: #fff; }
.mascot .m-pupil { fill: #1d1838; }
.mascot .m-glint { fill: #fff; }
.mascot .m-cheek { fill: #ff8fb4; opacity: .7; }
.mascot .m-mouth { fill: none; stroke: #1d1838; stroke-width: 4; stroke-linecap: round; }
.mascot .m-frown { display: none; }
.mascot .m-body { transform-origin: 56px 140px; }
.mascot .m-eyes { transform-origin: 54px 100px; animation: blink 4.5s infinite; }
.mascot .m-flag { transform-origin: 86px 20px; animation: flag 2.4s infinite ease-in-out; }
@keyframes blink { 0%, 94%, 100% { transform: scaleY(1); } 97% { transform: scaleY(.1); } }
@keyframes flag { 50% { transform: rotate(8deg); } }
.mascot.mini .m-shadow { display: none; }
.mascot.idle .m-body { animation: idle 3s infinite ease-in-out; }
@keyframes idle { 50% { transform: translateY(-5px) rotate(-2deg); } }
.mascot.happy .m-body { animation: jump .6s cubic-bezier(.3,1.6,.6,1); }
@keyframes jump { 40% { transform: translateY(-22px) scale(1.05, .95) rotate(-6deg); } 70% { transform: translateY(0) scale(1.08, .9); } }
.mascot.sad .m-smile { display: none; }
.mascot.sad .m-frown { display: block; }
.mascot.sad .m-body { animation: sad .7s forwards; }
@keyframes sad { 30% { transform: translateX(-5px); } 60% { transform: translateX(5px); } 100% { transform: translateY(4px) rotate(4deg); } }
.mascot.dance .m-body { animation: dance .8s infinite ease-in-out; }
@keyframes dance {
  0%, 100% { transform: rotate(-8deg) translateY(0); }
  25% { transform: rotate(0) translateY(-16px); }
  50% { transform: rotate(8deg) translateY(0); }
  75% { transform: rotate(0) translateY(-16px); }
}

/* Ergebnis */
.center-screen { place-items: center; overflow-y: auto; }
.result { text-align: center; padding: 30px; max-width: 760px; }
.result-mascot { width: 170px; height: 196px; margin: 0 auto; }
.result-mascot .mascot { width: 100%; height: 100%; }
.result-title { font-size: 38px; font-weight: 900; color: var(--gold-d); margin: 8px 0; animation: titleIn .6s cubic-bezier(.3,1.7,.6,1); }
.result-title.bad { color: var(--bad-d); }
.result-sub { font-size: 18px; color: var(--muted); }
@keyframes titleIn { from { transform: scale(.4); opacity: 0; } }
.stars-big { font-size: 64px; letter-spacing: 8px; margin: 4px 0 16px; }
.sb { color: #e2deee; display: inline-block; }
.sb.on { color: var(--gold); text-shadow: 0 4px 0 var(--gold-d); animation: starIn .55s backwards cubic-bezier(.3,1.9,.6,1); animation-delay: calc(.5s + var(--i) * .28s); }
@keyframes starIn { from { transform: scale(0) rotate(-120deg); } }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 8px 0 18px; }
.tile { border-radius: 16px; border: 2px solid var(--c); overflow: hidden; background: #fff; animation: tileIn .5s backwards cubic-bezier(.3,1.5,.6,1); }
.tile:nth-child(2) { animation-delay: .1s; } .tile:nth-child(3) { animation-delay: .2s; } .tile:nth-child(4) { animation-delay: .3s; }
@keyframes tileIn { from { transform: translateY(20px); opacity: 0; } }
.tile-h { background: var(--c); color: #fff; font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; padding: 5px; }
.tile-v { font-size: 26px; font-weight: 900; padding: 10px 6px; color: var(--c); }
.tile.gold { --c: #f2a900; } .tile.green { --c: var(--good); } .tile.blue { --c: #3b82f6; } .tile.pink { --c: #ec4899; }
.badges { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-bottom: 20px; }
.badge-pill { background: #fff1d6; color: #c26a00; padding: 8px 18px; border-radius: 99px; font-size: 16px; animation: tileIn .5s .6s backwards; }

/* Modal & Einstellungen */
.modal { position: fixed; inset: 0; z-index: 60; background: rgba(30,24,60,.45); display: grid; place-items: center; animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.modal-card {
  background: #fff; border-radius: 24px; padding: 26px 30px; width: min(560px, 92vw); max-height: 88vh; overflow-y: auto;
  text-align: center; animation: popIn .3s cubic-bezier(.3,1.6,.6,1);
}
.modal-card h2 { margin: 4px 0 8px; font-size: 26px; font-weight: 900; }
.modal-card p { color: var(--muted); font-size: 16px; }
.modal-mascot { width: 90px; height: 104px; margin: 0 auto; }
.modal-mascot .mascot { width: 100%; height: 100%; }
.settings { text-align: left; }
.settings h4 { margin: 18px 0 6px; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.setting { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 2px solid var(--bg); cursor: pointer; position: relative; }
.setting b { display: block; font-size: 16px; }
.setting span { font-size: 13px; color: var(--muted); font-weight: 700; }
.setting input[type=checkbox] { position: absolute; opacity: 0; pointer-events: none; }
.switch { flex: none; width: 50px; height: 30px; background: var(--line); border-radius: 99px; position: relative; transition: background .2s; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 2px 3px rgba(0,0,0,.2); transition: transform .25s cubic-bezier(.3,1.6,.6,1); }
.setting input:checked + .switch { background: var(--good); }
.setting input:checked + .switch::after { transform: translateX(20px); }
.setting select { font-family: inherit; font-weight: 800; font-size: 14px; padding: 7px 10px; border-radius: 10px; border: 2px solid var(--line); background: #fff; color: var(--ink); max-width: 200px; }
.danger-zone { margin-top: 18px; text-align: center; }

.toast {
  position: fixed; left: 50%; top: 80px; z-index: 70; transform: translate(-50%, -20px);
  background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 12px; font-size: 15px; opacity: 0; pointer-events: none;
}
.toast.show { animation: toast 1.8s; }
@keyframes toast { 10%, 80% { opacity: 1; transform: translate(-50%, 0); } }

/* Kleinere Fenster */
@media (max-width: 1180px) {
  #screen-home { grid-template-columns: 88px 1fr 300px; }
  .brand-name, .nav-btn em { display: none; }
  .nav-btn { justify-content: center; }
}
@media (max-width: 880px) {
  #screen-home { grid-template-columns: 72px 1fr; }
  .rightbar { display: none; }
}
@media (max-height: 760px) {
  :root { --piano-h: 140px; }
  .stage { height: 90px; }
  .lesson-mascot { width: 72px; height: 84px; }
  .card { min-height: 190px; }
  .staff-svg { height: 180px; }
  .staff-svg.grand { height: 260px; }
}

/* ===================== Lieder ===================== */
.songs-lib { max-width: 860px; margin: 0 auto; padding: 30px 26px 80px; animation: screenIn .35s ease; }
.songs-loading { color: var(--muted); padding: 40px; text-align: center; }
.songs-head h1 { margin: 0; font-size: 34px; font-weight: 900; }
.songs-head p { margin: 4px 0 0; color: var(--muted); font-size: 16px; }
.import-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 22px 0 8px; }
.import-btn {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left;
  background: #fff; border: 2px solid var(--line); border-radius: var(--radius); padding: 16px;
  box-shadow: 0 5px 0 var(--line); color: var(--ink); transition: transform .1s, box-shadow .1s, border-color .15s;
}
.import-btn span { font-size: 28px; margin-bottom: 6px; }
.import-btn b { font-size: 15px; font-weight: 900; }
.import-btn em { font-style: normal; font-size: 13px; color: var(--muted); }
.import-btn:hover:not(:disabled) { border-color: var(--brand); }
.import-btn:active:not(:disabled) { transform: translateY(5px); box-shadow: 0 0 0 var(--line); }
.import-btn:disabled { opacity: .45; cursor: not-allowed; }
.songs-sub { margin: 28px 0 12px; font-size: 14px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.song-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.song-card {
  position: relative; display: flex; gap: 14px; align-items: center; text-align: left;
  background: #fff; border: 2px solid var(--line); border-radius: var(--radius); padding: 12px;
  box-shadow: 0 5px 0 var(--line); color: var(--ink); animation: tileIn .4s backwards;
  transition: transform .1s, box-shadow .1s, border-color .15s;
}
.song-card:hover { border-color: hsl(var(--h) 70% 65%); }
.song-card:active { transform: translateY(5px); box-shadow: 0 0 0 var(--line); }
.song-art {
  width: 58px; height: 58px; border-radius: 14px; flex: none; display: grid; place-items: center;
  background: linear-gradient(135deg, hsl(var(--h) 80% 65%), hsl(calc(var(--h) + 40) 75% 55%));
  color: #fff; font-size: 28px; box-shadow: 0 4px 0 hsl(var(--h) 60% 45%);
}
.song-info { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.song-info b { font-size: 16px; font-weight: 900; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.song-info > span { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.song-meta { display: flex; gap: 10px; align-items: center; font-size: 12px; }
.lvl { color: var(--brand); letter-spacing: 1px; }
.lvl i, .song-stars i { font-style: normal; color: #e2deee; }
.song-stars { color: var(--gold); font-size: 14px; }
.song-del { position: absolute; top: 6px; right: 8px; font-size: 15px; opacity: 0; transition: opacity .15s; padding: 4px; }
.song-card:hover .song-del { opacity: .6; }
.song-del:hover { opacity: 1 !important; }

.text-input {
  width: 100%; font-family: inherit; font-size: 16px; font-weight: 700; color: var(--ink);
  border: 2px solid var(--line); border-radius: 14px; padding: 12px 14px; background: var(--bg); outline: none; user-select: text;
}
.text-input:focus { border-color: var(--brand); background: #fff; }
.field { display: block; text-align: left; margin: 12px 0; }
.field > span { display: block; font-size: 13px; font-weight: 900; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; }
.pv-stats { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 4px; }
.pv-stats span { background: var(--bg); border-radius: 99px; padding: 6px 12px; font-size: 14px; }
.imp-bar { height: 16px; background: var(--line); border-radius: 99px; overflow: hidden; margin: 16px 0 8px; }
#imp-prog { height: 100%; width: 4%; background: var(--brand); border-radius: 99px; transition: width .6s; background-image: linear-gradient(45deg, rgba(255,255,255,.2) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.2) 50%, rgba(255,255,255,.2) 75%, transparent 75%); background-size: 24px 24px; animation: stripes 1s linear infinite; }
@keyframes stripes { to { background-position: 24px 0; } }
.modal-mascot.thinking .mascot { animation: think 1.4s infinite ease-in-out; }
@keyframes think { 50% { transform: rotate(-6deg) translateY(-4px); } }
.badge-pill.tip { background: #eef2ff; color: #4f46e5; font-size: 14px; }

.seg { display: inline-flex; background: var(--bg); border: 2px solid var(--line); border-radius: 12px; padding: 2px; }
.seg button { border: 0; background: none; font-weight: 800; font-size: 13px; color: var(--muted); padding: 6px 10px; border-radius: 9px; white-space: nowrap; }
.seg button.on { background: #fff; color: var(--brand); box-shadow: 0 2px 0 var(--line); }
.modal .seg { display: flex; }
.modal .seg button { flex: 1; font-size: 14px; padding: 9px; }

/* Player */
#screen-player { grid-template-rows: auto auto 1fr auto; background: #fff; }
.player-top { display: flex; align-items: center; gap: 14px; padding: 12px 18px; border-bottom: 2px solid var(--line); flex-wrap: wrap; }
.pl-title { display: flex; flex-direction: column; min-width: 160px; flex: 1; }
.pl-title b { font-size: 19px; font-weight: 900; }
.pl-title span { font-size: 13px; color: var(--muted); }
.pl-controls { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pl-speed { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); }
.pl-speed input { width: 110px; accent-color: var(--brand); }
.pl-speed span { min-width: 40px; color: var(--ink); }
.pl-seekrow { display: flex; align-items: center; gap: 14px; padding: 8px 18px; }
.pl-seek { flex: 1; height: 10px; background: var(--line); border-radius: 99px; cursor: pointer; overflow: hidden; }
#pl-seek-fill { height: 100%; width: 0; background: var(--brand); border-radius: 99px; }
#pl-time { font-size: 13px; color: var(--muted); min-width: 84px; }
.pl-score { display: flex; gap: 10px; font-size: 15px; min-width: 120px; justify-content: flex-end; }
.pl-combo { color: #e07a00; animation: hit .3s; }
.pl-stage { position: relative; min-height: 0; overflow: hidden; }
#song-canvas { position: absolute; inset: 0; display: block; }
.pl-count {
  position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none;
  font-size: 140px; font-weight: 900; color: #fff; text-shadow: 0 6px 0 rgba(0,0,0,.25); opacity: 0;
}
.view-sheet .pl-count { color: var(--brand); text-shadow: none; }
.pl-count.show { animation: countPop .6s ease-out; }
@keyframes countPop { 0% { opacity: 0; transform: scale(1.8); } 30% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(.8); } }
.pl-paused {
  position: absolute; left: 50%; top: 40%; transform: translate(-50%, -50%) scale(.9); opacity: 0; pointer-events: none;
  background: var(--ink); color: #fff; padding: 14px 22px; border-radius: 16px; font-size: 17px; transition: .2s;
}
.pl-paused.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.song-piano-wrap { padding-top: 0; }
#song-piano { max-width: none; height: 150px; }
.key.auto.white { background: #c9f1ec; box-shadow: inset 0 -5px 0 #11b5a4; }
.key.auto.black { background: #11b5a4; }
@media (max-width: 1180px) { .import-row { grid-template-columns: repeat(2, 1fr); } }

/* YouTube-Dialog mit Zeitbereich */
.yt-row { display: flex; gap: 10px; margin-top: 8px; }
.yt-row .btn { padding: 0 18px; flex: none; }
.yt-status { min-height: 24px; margin: 10px 0 0; font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 8px; justify-content: center; }
.yt-err { color: var(--bad-d); }
.spin { width: 16px; height: 16px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--brand); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.yt-info { text-align: left; animation: tileIn .35s; }
.yt-video { display: flex; gap: 14px; align-items: center; background: var(--bg); border-radius: 16px; padding: 10px; }
.yt-video img { width: 120px; height: 68px; object-fit: cover; border-radius: 10px; flex: none; }
.yt-video b { display: block; font-size: 15px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.yt-video span { font-size: 13px; color: var(--muted); }
.range { position: relative; height: 36px; margin: 2px 4px 0; }
.range-track { position: absolute; left: 0; right: 0; top: 50%; height: 10px; margin-top: -5px; background: var(--line); border-radius: 99px; }
.range-fill { position: absolute; top: 0; bottom: 0; background: var(--brand); border-radius: 99px; }
.range input[type=range] {
  position: absolute; inset: 0; width: 100%; margin: 0; background: none; pointer-events: none;
  -webkit-appearance: none; appearance: none; height: 36px;
}
.range input[type=range]::-webkit-slider-runnable-track { background: none; height: 36px; }
.range input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; pointer-events: auto; cursor: grab; margin-top: 4px;
  width: 28px; height: 28px; border-radius: 50%; background: #fff;
  border: 4px solid var(--brand); box-shadow: 0 3px 0 var(--brand-d);
  transition: transform .1s;
}
.range input[type=range]:active::-webkit-slider-thumb { cursor: grabbing; transform: scale(1.12); }
.range input[type=range]:focus-visible::-webkit-slider-thumb { outline: 3px solid color-mix(in srgb, var(--brand) 35%, transparent); }
.range-labels { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; font-size: 14px; color: var(--muted); }
.range-labels label { display: flex; align-items: center; gap: 6px; }
.time-input {
  width: 70px; text-align: center; font-family: inherit; font-weight: 800; font-size: 15px; color: var(--ink);
  border: 2px solid var(--line); border-radius: 10px; padding: 6px; background: #fff; outline: none; user-select: text;
}
.time-input:focus { border-color: var(--brand); }
.range-len { text-align: center; font-size: 13px; }
.range-len b { color: var(--ink); }
.yt-prev { margin-top: 12px; padding: 9px 16px; font-size: 13px; }
.yt-embed iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 14px; margin-top: 10px; }
.btn:disabled { opacity: .45; cursor: not-allowed; filter: grayscale(.4); }

/* YouTube-Dialog mit Zeitbereich */
.yt-row { display: flex; gap: 10px; margin-top: 8px; }
.yt-row .btn { padding: 0 18px; flex: none; }
.yt-status { min-height: 24px; margin: 10px 0 0; font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 8px; justify-content: center; }
.yt-err { color: var(--bad-d); }
.spin { width: 16px; height: 16px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--brand); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.yt-info { text-align: left; animation: tileIn .35s; }
.yt-video { display: flex; gap: 14px; align-items: center; background: var(--bg); border-radius: 16px; padding: 10px; }
.yt-video img { width: 120px; height: 68px; object-fit: cover; border-radius: 10px; flex: none; }
.yt-video b { font-size: 15px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.yt-video span { font-size: 13px; color: var(--muted); }
.range { position: relative; height: 36px; margin: 2px 4px 0; }
.range-track { position: absolute; left: 0; right: 0; top: 50%; height: 10px; margin-top: -5px; background: var(--line); border-radius: 99px; }
.range-fill { position: absolute; top: 0; bottom: 0; background: var(--brand); border-radius: 99px; }
.range input[type=range] {
  position: absolute; inset: 0; width: 100%; margin: 0; background: none; pointer-events: none;
  -webkit-appearance: none; appearance: none; height: 36px;
}
.range input[type=range]::-webkit-slider-runnable-track { background: none; height: 36px; }
.range input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; pointer-events: auto; cursor: grab; margin-top: 4px;
  width: 28px; height: 28px; border-radius: 50%; background: #fff;
  border: 4px solid var(--brand); box-shadow: 0 3px 0 var(--brand-d); transition: transform .1s;
}
.range input[type=range]:active::-webkit-slider-thumb { cursor: grabbing; transform: scale(1.12); }
.range input[type=range]:focus-visible::-webkit-slider-thumb { outline: 3px solid color-mix(in srgb, var(--brand) 35%, transparent); }
.range-labels { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; font-size: 14px; color: var(--muted); }
.range-labels label { display: flex; align-items: center; gap: 6px; }
.time-input {
  width: 70px; text-align: center; font-family: inherit; font-weight: 800; font-size: 15px; color: var(--ink);
  border: 2px solid var(--line); border-radius: 10px; padding: 6px; background: #fff; outline: none; user-select: text;
}
.time-input:focus { border-color: var(--brand); }
.range-len { text-align: center; font-size: 13px; }
.range-len b { color: var(--ink); }
.yt-prev { margin-top: 12px; padding: 9px 16px; font-size: 13px; }
.yt-embed iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 14px; margin-top: 10px; }
.btn:disabled { opacity: .45; cursor: not-allowed; filter: grayscale(.4); }

/* ===================== Klang: Lautstärke & Instrumente ===================== */
.vol-wrap { position: relative; display: inline-flex; }
.vol-pop {
  position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%); z-index: 40;
  display: flex; align-items: center; gap: 10px; background: #fff; border: 2px solid var(--line);
  border-radius: 14px; padding: 10px 14px; box-shadow: 0 10px 24px rgba(40,20,90,.18); animation: popIn .2s;
}
.vol-wrap.up .vol-pop { top: auto; bottom: calc(100% + 8px); left: 0; transform: none; }
.vol-pop input { width: 150px; accent-color: var(--brand); }
.vol-pop span { min-width: 28px; font-size: 14px; text-align: right; }
.side-vol { margin-top: auto; display: flex; align-items: center; gap: 6px; padding: 0 6px; color: var(--muted); font-size: 14px; text-transform: uppercase; letter-spacing: .05em; }
.side-vol em { font-style: normal; font-weight: 800; }
@media (max-width: 1180px) { .side-vol em { display: none; } .side-vol { justify-content: center; } }

.vol-setting input[type=range] { flex: 1; max-width: 220px; accent-color: var(--brand); }
.vol-setting .vol-val { width: 32px; text-align: right; font-size: 14px; color: var(--muted); }
.vol-setting > div { flex: 1; }
.setting.col { flex-direction: column; align-items: stretch; cursor: default; }
.inst-list { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.inst {
  position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 12px;
  border: 2px solid var(--line); border-radius: 14px; cursor: pointer; transition: border-color .15s, background .15s;
}
.inst:hover { border-color: #cfc2ff; }
.inst.on { border-color: var(--brand); background: #f3efff; }
.inst.on::after { content: '✓'; position: absolute; right: 14px; color: var(--brand); font-weight: 900; }
.inst.loading::after { content: ''; width: 14px; height: 14px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--brand); animation: spin .8s linear infinite; }
.inst-ico { font-size: 22px; width: 32px; text-align: center; }
.inst b { display: block; font-size: 15px; }
.inst span { font-size: 12px; color: var(--muted); }
.inst-del { margin-left: auto; margin-right: 22px; border: 0; background: none; font-size: 15px; opacity: .5; }
.inst-del:hover { opacity: 1; }
.inst-status { min-height: 18px; font-size: 13px; color: var(--brand); margin-top: 6px; }
.inst-add { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 6px; }
.inst-add span { width: 100%; font-size: 13px; color: var(--muted); }
.inst-add .btn { padding: 9px 14px; font-size: 13px; }
.preset-list { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; text-align: left; }
.preset-btn { border: 2px solid var(--line); background: #fff; border-radius: 12px; padding: 12px; font-weight: 800; font-size: 15px; text-align: left; color: var(--ink); }
.preset-btn:hover { border-color: var(--brand); }

.seg-label { align-self: center; font-size: 12px; font-weight: 800; color: var(--muted); padding: 0 6px 0 8px; white-space: nowrap; }
#screen-player:not(.one-hand) .seg-other { opacity: .45; }

.ai-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 4px 0 0; font-size: 14px; color: var(--muted); }
.seg button:disabled { opacity: .4; cursor: not-allowed; }

/* ===================== Konto / Anmeldung ===================== */
.side-account { margin-top: auto; display: flex; flex-direction: column; gap: 6px; padding: 0 6px; }
.side-account:empty { display: none; }
.side-account + .side-vol { margin-top: 0; }
.acc-user { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink); padding: 0 6px; }
.acc-user em { font-style: normal; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-btn { border: 2px solid var(--line); background: #fff; border-radius: 12px; padding: 8px 12px; font-weight: 800; font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 8px; justify-content: center; }
.acc-btn:hover { border-color: var(--brand); color: var(--brand); }
.acc-btn em { font-style: normal; text-transform: uppercase; letter-spacing: .05em; }
@media (max-width: 1180px) { .acc-user em, .acc-btn em { display: none; } .acc-btn#acc-out { font-size: 0; } .acc-btn#acc-out::before { content: '⎋'; font-size: 16px; } }
.login-err { display: block; min-height: 18px; font-size: 14px; color: var(--bad-d); margin-top: 6px; text-align: left; }
.login-err.ok { color: var(--good-d); }
.import-btn.locked { border-style: dashed; }
.import-btn.locked em { color: var(--brand); font-weight: 800; }
.acc-box { border: 2px solid var(--line); border-radius: 14px; padding: 10px 12px; margin: 8px 0; }
.acc-box summary { cursor: pointer; font-weight: 800; }
.acc-box .text-input { margin: 8px 0 0; padding: 9px 12px; font-size: 15px; }
.acc-box .btn { margin-top: 10px; padding: 9px 14px; font-size: 13px; }
.user-list { margin: 8px 0; display: flex; flex-direction: column; gap: 4px; }
.user-row { display: flex; align-items: center; justify-content: space-between; padding: 6px 8px; background: var(--bg); border-radius: 10px; font-size: 14px; }
.user-row small { color: var(--brand); font-weight: 800; margin-left: 6px; }
.user-row .inst-del { margin: 0; }
.user-add { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; align-items: center; }
.user-add .text-input { margin: 0; }
.nu-admin { display: flex; align-items: center; gap: 6px; font-size: 14px; }
.legacy-banner { display: flex; align-items: center; gap: 16px; justify-content: space-between; background: #fff7e0; border: 2px solid #ffe2a3; border-radius: var(--radius); padding: 14px 18px; margin-top: 18px; }
.legacy-banner b { display: block; font-size: 16px; }
.legacy-banner span { font-size: 14px; color: #8a6400; }
.legacy-banner .btn { flex: none; padding: 11px 16px; font-size: 13px; }

/* Mikrofon */
.mic-meter { height: 8px; background: var(--line); border-radius: 99px; overflow: hidden; margin-top: 8px; }
.mic-meter.big { height: 12px; margin: 10px 0 6px; }
.mic-meter > div { height: 100%; width: 0; background: linear-gradient(90deg, var(--good), var(--gold) 70%, var(--bad)); border-radius: 99px; transition: width .06s linear; }
.mic-notes { font-size: 20px; font-weight: 900; color: var(--brand); min-height: 28px; letter-spacing: .03em; }
