:root {
  --bg: #08060f;
  --panel: #101416;
  --line: #222a2d;
  --text: #f1e9d6;
  --muted: #8b958f;
  --red: #ff2d9a;
  --red-dark: #b0107a;
  --green: #3ad7ff;
  --gold: #ffd23f;
  --cream: #f1e4c3;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background:
    radial-gradient(ellipse 55% 45% at 50% -5%, rgba(255,45,154,.26), transparent 70%),
    conic-gradient(from 165deg at 12% -12%, transparent 0deg, rgba(58,215,255,.13) 10deg, transparent 20deg, transparent 360deg),
    conic-gradient(from 175deg at 88% -12%, transparent 0deg, rgba(255,45,154,.13) 10deg, transparent 20deg, transparent 360deg),
    conic-gradient(from 178deg at 32% -12%, transparent 0deg, rgba(255,231,176,.07) 6deg, transparent 12deg, transparent 360deg),
    conic-gradient(from 172deg at 68% -12%, transparent 0deg, rgba(255,231,176,.07) 6deg, transparent 12deg, transparent 360deg),
    radial-gradient(ellipse 70% 35% at 50% 108%, rgba(120,60,255,.32), transparent 70%),
    linear-gradient(#0d0a26, #070516 55%, #030209);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  overflow: hidden;
  -webkit-user-select: none; user-select: none;
}
/* Publikum und Bühnenlicht im Hintergrund */
body::before {
  content: ""; position: fixed; left: 0; right: 0; bottom: 0; height: 26vh; pointer-events: none; z-index: 0;
  background:
    radial-gradient(circle at 50% 30%, #04030a 0 8px, transparent 8.5px) 0 0 / 23px 30px repeat-x,
    radial-gradient(circle at 50% 30%, #06040e 0 9px, transparent 9.5px) 11px 14px / 27px 34px repeat-x,
    radial-gradient(circle at 50% 30%, #08061a 0 10px, transparent 10.5px) 5px 34px / 31px 38px repeat-x,
    linear-gradient(transparent 0, #04030a 70%);
  opacity: .95;
}
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(circle, rgba(255,255,255,.55) 0 1px, transparent 1.5px) 0 0 / 97px 61px,
    radial-gradient(circle, rgba(58,215,255,.45) 0 1.2px, transparent 2px) 30px 20px / 143px 89px,
    radial-gradient(circle, rgba(255,45,154,.45) 0 1.2px, transparent 2px) 70px 40px / 171px 113px;
  mask-image: linear-gradient(transparent 55%, #000 75%, transparent 95%); -webkit-mask-image: linear-gradient(transparent 55%, #000 75%, transparent 95%);
  opacity: .5;
}
.app { display: flex; flex-direction: column; height: 100dvh; }

/* ---------- Seitenleisten ---------- */
.brand { display: flex; align-items: center; gap: 12px; padding: 2px 4px 4px; }
.logo {
  font-family: "Bebas Neue", Impact, sans-serif; font-size: 64px; line-height: .85; letter-spacing: 1px; color: #fff;
  text-shadow: 0 0 6px var(--red), 0 0 16px var(--red), 0 0 34px var(--red-dark);
  animation: neon 6s infinite;
}
@keyframes neon { 0%, 18%, 22%, 62%, 64%, 100% { opacity: 1; } 20%, 63% { opacity: .55; } }
.brand-sub { font-family: "Bebas Neue", Impact, sans-serif; font-size: 22px; line-height: .95; letter-spacing: 3px; color: #3ad7ff; text-shadow: 0 0 10px rgba(58,215,255,.7); }
.hud-item { display: flex; flex-direction: column; min-width: 48px; }
.hud-item label, .chalk label, .mission-list small { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 1.4px; color: var(--muted); }
.hud-item span { font-family: "Bebas Neue", Impact, sans-serif; font-size: 30px; line-height: 1; letter-spacing: 1px; font-variant-numeric: tabular-nums; }
.hud-item.score span { font-size: 46px; color: var(--gold); text-shadow: 0 0 18px rgba(255,197,49,.5); }
.hud-row { display: flex; gap: 28px; margin-top: 6px; }

.chalk {
  display: flex; gap: 14px; align-items: center; justify-content: space-between; padding: 10px 16px; border-radius: 8px;
  background: radial-gradient(ellipse at 30% 30%, #2c3530, #171c19); border: 7px solid #5a3a20;
  box-shadow: inset 0 0 22px rgba(0,0,0,.75), 0 10px 26px rgba(0,0,0,.6), 0 0 0 1px #2a1708;
}
.chalk-player { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.chalk-player.opp { align-items: flex-end; opacity: .9; }
.chalk-player label { font-family: "Bebas Neue", Impact, sans-serif; font-size: 15px; letter-spacing: 1.5px; color: #f4f1e8; }
.chalk-row { display: flex; align-items: baseline; gap: 8px; }
.chalk-player.opp .chalk-row { flex-direction: row-reverse; }
.chalk-player small { font-size: 10px; color: rgba(241,233,214,.55); min-height: 12px; }
.chalk-sets { display: flex; flex-direction: column; align-items: center; }
.chalk label { color: rgba(241,233,214,.55); }
.chalk span { font-family: "Permanent Marker", cursive; font-size: 16px; line-height: 1.1; color: #f4f1e8; text-shadow: 0 0 2px rgba(255,255,255,.6); font-variant-numeric: tabular-nums; }
.chalk .chalk-rest { font-size: 36px; min-width: 58px; }
.chalk.checkout .chalk-player:not(.opp) .chalk-rest { color: var(--gold); animation: pulse .6s infinite alternate; display: inline-block; }
.chalk.bust .chalk-player:not(.opp) .chalk-rest { color: var(--red); }
@keyframes pulse { to { transform: scale(1.12); text-shadow: 0 0 14px var(--gold); } }

.icon-btn { font-size: 17px; background: rgba(10,10,20,.75); color: var(--text); border: 1px solid rgba(255,255,255,.14); border-radius: 50%; width: 34px; height: 34px; cursor: pointer; backdrop-filter: blur(4px); }
.icon-btn:hover { border-color: #ff2d9a; box-shadow: 0 0 12px rgba(255,45,154,.5); }

/* ---------- Bühne und Kasten ---------- */
.stage { position: relative; z-index: 1; flex: 1; min-height: 0; display: flex; gap: 30px; padding: 14px 24px; justify-content: center; }
.cabinet { position: relative; height: 100%; max-height: calc((100vw - 12px) * 1170 / 600); align-self: center; aspect-ratio: 600 / 1170; max-width: 100%; display: flex; flex-direction: column; filter: drop-shadow(0 30px 60px rgba(0,0,0,.85)); }
#backbox { position: relative; z-index: 2; width: 100%; aspect-ratio: 600 / 170; display: block; flex-shrink: 0; border-radius: 16px 16px 4px 4px; }
.cabinet { container-type: inline-size; }
.cab-btns { position: absolute; inset: 0 0 auto 0; height: 0; z-index: 3; }
.cab-btns .icon-btn { position: absolute; top: calc(20.33cqw - 17px); width: 34px; height: 34px; background: radial-gradient(circle at 40% 35%, #2b2f3a, #07080b); border-color: rgba(255,45,154,.6); color: #ffd7ec; }
#soundBtn, #musicBtn { width: 30px; height: 30px; top: calc(20.33cqw - 15px); font-size: 15px; }
#soundBtn { left: calc(10.67cqw - 32px); } #musicBtn { left: calc(10.67cqw + 2px); font-size: 17px; }
#musicBtn.off { color: rgba(255,215,236,.45); border-color: rgba(255,255,255,.18); }
#musicBtn.off::after { content: ""; position: absolute; left: 6px; right: 6px; top: 50%; height: 2px; background: #ff2d3d; transform: rotate(-45deg); border-radius: 1px; } #fsBtn, #pauseBtn { width: 30px; height: 30px; top: calc(20.33cqw - 15px); }
#fsBtn { left: calc(89.33cqw + 2px); font-size: 17px; } #pauseBtn { left: calc(89.33cqw - 32px); font-size: 11px; letter-spacing: -1px; }
#pauseBtn.on { color: #fff; border-color: #ffd23f; box-shadow: 0 0 12px rgba(255,210,63,.6); }
#backbox { cursor: help; }
.table-wrap { position: relative; flex: 1; min-height: 0; width: 100%; }
#game {
  width: 100%; height: 100%; display: block; touch-action: none; border-radius: 4px 4px 22px 22px;
  box-shadow: 0 0 0 3px #0c0d12, 0 0 0 9px #2c2f3b, 0 0 0 11px #07080c, 0 0 0 13px rgba(255,45,154,.55), 0 0 90px rgba(58,215,255,.18);
}
.table-wrap.shakeL { animation: shakeL .18s; } .table-wrap.shakeR { animation: shakeR .18s; } .table-wrap.shakeU { animation: shakeU .18s; }
@keyframes shakeL { 50% { transform: translateX(-7px); } } @keyframes shakeR { 50% { transform: translateX(7px); } } @keyframes shakeU { 50% { transform: translateY(-6px); } }
.table-wrap.quake { animation: quake .12s infinite; }
@keyframes quake { 25% { transform: translate(3px,-2px) rotate(.3deg); } 75% { transform: translate(-3px,2px) rotate(-.3deg); } }

.side { width: 320px; flex-shrink: 1; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.panel {
  background: linear-gradient(160deg, rgba(30,22,70,.78), rgba(10,8,26,.86)); border: 1px solid rgba(255,255,255,.09); border-radius: 14px; padding: 14px 16px; overflow: auto;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 14px 34px rgba(0,0,0,.55); backdrop-filter: blur(6px);
}
.panel h3 { font-family: "Bebas Neue", Impact, sans-serif; font-weight: 400; font-size: 26px; letter-spacing: 1.5px; margin: 0 0 8px; color: var(--gold); text-shadow: 0 0 12px rgba(255,197,49,.35); display: flex; justify-content: space-between; align-items: baseline; }
.panel h3 span { font-size: 15px; color: #ff8a1a; }
.missions { flex: 1; min-height: 0; }
.mission-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.mission-list li {
  display: grid; grid-template-columns: 26px 1fr auto; grid-template-rows: auto auto; column-gap: 9px; align-items: center;
  padding: 6px 8px; border-radius: 8px; border: 1px solid transparent; background: rgba(255,255,255,.03); transition: background .3s, border-color .3s;
}
.mission-list .mn { grid-row: 1 / 3; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-family: "Bebas Neue", Impact, sans-serif; font-size: 16px; background: #15122c; color: var(--muted); border: 1px solid #2c2850; }
.mission-list .mt { display: flex; flex-direction: column; min-width: 0; }
.mission-list .mt b { font-size: 13px; font-weight: 700; color: #ddd6f0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mission-list small { text-transform: none; letter-spacing: 0; font-weight: 400; font-size: 11px; line-height: 1.3; }
.mission-list .mc { font-family: "Bebas Neue", Impact, sans-serif; font-size: 20px; color: #ff8a1a; }
.mission-list .mb { grid-column: 2 / 4; height: 3px; border-radius: 2px; background: rgba(255,255,255,.06); margin-top: 4px; overflow: hidden; display: none; }
.mission-list .mb i { display: block; height: 100%; background: linear-gradient(90deg, #ff5a1a, #ffc531); box-shadow: 0 0 8px #ff8a1a; transition: width .3s; }
.mission-list li.cur { background: rgba(255,138,26,.12); border-color: rgba(255,138,26,.7); box-shadow: 0 0 18px rgba(255,138,26,.25), inset 0 0 12px rgba(255,138,26,.1); }
.mission-list li.cur .mn { background: #ff8a1a; color: #1a0a00; border-color: #ffc531; box-shadow: 0 0 12px #ff8a1a; animation: mpulse 1s infinite alternate; }
.mission-list li.cur .mb { display: block; }
.mission-list li.cur small { color: #ffd7a8; }
.mission-list li.done { opacity: .7; }
.mission-list li.done .mn { background: #0c4a2c; color: #7dffb8; border-color: #19e07a; }
.mission-list li.done .mt b { color: #9de8c0; }
.mission-list li.final .mn { color: var(--gold); border-color: rgba(255,197,49,.5); }
.mission-list li.final b { color: var(--gold); }
@keyframes mpulse { to { box-shadow: 0 0 20px #ffc531; } }
.keys-panel { display: flex; flex-direction: column; gap: 10px; }
.keys { font-size: 12.5px; line-height: 1.9; color: #c9c1ad; margin: 0; }
kbd { background: #1d2326; border: 1px solid #333c40; border-bottom-width: 2px; border-radius: 4px; padding: 1px 6px; font-family: inherit; font-size: 12px; color: #fff; }
.btn.small { padding: 8px 12px; font-size: 13px; }

.scorebox { padding: 14px 18px; }
.tabs { display: flex; gap: 6px; margin-bottom: 10px; }
.tab { flex: 1; font: inherit; font-weight: 600; font-size: 13px; padding: 7px; border-radius: 6px; cursor: pointer; background: rgba(255,255,255,.05); color: var(--muted); border: 1px solid rgba(255,255,255,.1); }
.tab.on { background: var(--red-dark); color: #fff; border-color: var(--red); box-shadow: 0 0 14px rgba(255,45,154,.35); }
.board { flex: 1; min-height: 0; }
.leaderboard { list-style: none; margin: 0; padding: 0; counter-reset: r; }
.leaderboard li { display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 8px; padding: 8px 6px; border-bottom: 1px dashed rgba(255,255,255,.1); font-size: 14px; counter-increment: r; }
.leaderboard li::before { content: counter(r); font-family: "Bebas Neue", Impact, sans-serif; font-size: 20px; color: var(--muted); text-align: center; }
.leaderboard li:nth-child(1)::before { color: var(--gold); text-shadow: 0 0 8px var(--gold); }
.leaderboard li:nth-child(2)::before { color: #d8d8d8; } .leaderboard li:nth-child(3)::before { color: #d08a4a; }
.leaderboard li.me { background: rgba(58,215,255,.12); border-radius: 6px; }
.leaderboard .n { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.leaderboard .s { font-family: "Bebas Neue", Impact, sans-serif; font-size: 20px; letter-spacing: 1px; color: var(--gold); font-variant-numeric: tabular-nums; }
.leaderboard .sub { grid-column: 2 / 4; font-size: 11px; color: var(--muted); margin-top: -4px; }
.leaderboard li.empty { display: block; color: var(--muted); border: 0; text-align: center; line-height: 1.6; padding: 14px 6px; }
.leaderboard li.empty::before { content: none; }

.card.help { width: min(92%, 440px); text-align: left; max-height: 92%; overflow: auto; }
.howto-steps { margin: 0 0 10px; padding-left: 20px; font-size: 13px; line-height: 1.5; color: #d4ccb8; }
.howto-steps li { margin-bottom: 7px; } .howto-steps b { color: #fff; } .card.help .howto-steps em { color: var(--red); font-style: normal; font-weight: 700; }
.help-h { font-family: "Bebas Neue", Impact, sans-serif; font-weight: 400; font-size: 22px; letter-spacing: 1px; color: var(--gold); margin: 6px 0 6px; }
.hint a { color: #3ad7ff; }
:fullscreen .stage, :-webkit-full-screen .stage { padding-top: 10px; }
.card.help h2 { text-align: center; margin-bottom: 10px; }
.card.help ul { margin: 0 0 12px; padding-left: 18px; font-size: 13px; line-height: 1.5; color: #d4ccb8; }
.card.help li { margin-bottom: 5px; } .card.help b { color: #fff; } .card.help em { color: var(--green); font-style: normal; font-weight: 600; }
.card.help .keys { font-size: 12px; line-height: 1.8; margin-bottom: 14px; }
.card.help .btn { display: block; margin: 0 auto; }

/* ---------- Overlays ---------- */
.overlay { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(4,6,7,.55); backdrop-filter: blur(3px); border-radius: 4px 4px 22px 22px; z-index: 2; }
.overlay.hidden, .pause.hidden { display: none; }
.card {
  width: min(86%, 360px); padding: 28px 24px; border-radius: 14px; text-align: center;
  background: linear-gradient(#17112a, #0b0816); border: 1px solid #34295a; box-shadow: 0 20px 60px rgba(0,0,0,.7), 0 0 40px rgba(255,45,154,.15);
}
.card-logo {
  font-family: "Bebas Neue", Impact, sans-serif; font-size: 120px; line-height: .85; color: #fff;
  text-shadow: 0 0 8px var(--red), 0 0 22px var(--red), 0 0 50px var(--red-dark);
}
.card h1 { font-family: "Bebas Neue", Impact, sans-serif; font-weight: 400; font-size: 32px; letter-spacing: 4px; margin: 4px 0 8px; color: var(--green); text-shadow: 0 0 12px rgba(58,215,255,.6); }
.card h2 { font-family: "Bebas Neue", Impact, sans-serif; font-weight: 400; font-size: 40px; letter-spacing: 2px; margin: 0; color: var(--red); text-shadow: 0 0 14px rgba(255,45,154,.6); }
.tag { color: #bdb5a2; margin: 0 0 22px; line-height: 1.5; }
.final { font-family: "Bebas Neue", Impact, sans-serif; font-size: 58px; color: var(--gold); line-height: 1; margin: 4px 0 6px; text-shadow: 0 0 18px rgba(255,197,49,.5); font-variant-numeric: tabular-nums; }
.final-stats { font-size: 13px; color: var(--muted); margin-bottom: 16px; line-height: 1.5; }
.card label { display: block; font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.card input {
  width: 100%; padding: 12px 14px; font: inherit; font-size: 18px; border-radius: 8px; border: 1px solid #39454a;
  background: #0a0d0e; color: var(--text); text-align: center; outline: none; -webkit-user-select: text; user-select: text;
}
.card input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(58,215,255,.25); }
.row { display: flex; gap: 10px; margin-top: 14px; }
.row .btn { flex: 1; }
.hint { color: var(--muted); font-size: 13px; margin: 12px 0 0; min-height: 1em; }
.btn {
  font: inherit; font-weight: 800; cursor: pointer; border-radius: 8px; padding: 12px 18px; letter-spacing: .5px;
  border: 1px solid #39454a; background: #182023; color: var(--text); transition: transform .08s, box-shadow .2s;
}
.btn:active { transform: scale(.97); }
.btn.primary {
  background: linear-gradient(#ff3bb0, #b0107a); border-color: #ff6fc0; color: #fff; font-size: 18px; padding: 14px 34px;
  box-shadow: 0 0 22px rgba(255,45,154,.45); text-transform: uppercase;
}
.btn.primary:hover { box-shadow: 0 0 34px rgba(255,45,154,.7); }
.btn.ghost { background: transparent; }
.pause {
  position: absolute; inset: 0; display: grid; place-items: center; font-family: "Bebas Neue", Impact, sans-serif; font-size: 48px; letter-spacing: 3px;
  color: #fff; background: rgba(0,0,0,.5); border-radius: 22px; text-shadow: 0 0 20px var(--red);
}

/* ---------- Profi-Auswahl ---------- */
.card.attract { width: min(92%, 420px); padding: 20px 18px; }
.card.attract .card-logo { font-size: 84px; }
.card.attract h1 { margin-bottom: 10px; }
.pick-title { font-size: 12px; text-transform: uppercase; letter-spacing: 2px; color: var(--muted); margin: 0 0 8px; }
.pro-grid { display: grid; grid-template-columns: repeat(10, 1fr); gap: 6px; }
.pro-grid .pro { grid-column: span 2; }
.pro-grid .pro.feat { grid-column: span 5; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; justify-items: start; text-align: left; padding: 8px 10px; }
.pro-grid .pro.feat .avatar { grid-row: span 2; width: 50px; height: 50px; }
.pro-grid .pro.feat .pname { font-size: 16px; align-self: end; } .pro-grid .pro.feat .preal { font-size: 11px; align-self: start; }
.pro-grid .pro { padding: 6px 2px 7px; }
.pro-grid .avatar { width: 40px; height: 40px; font-size: 19px; }
.pro-grid .pname { font-size: 12.5px; }
.pro-grid .preal { font-size: 9px; }
.card.attract { max-height: 96%; overflow: auto; }
.card.attract .card-logo { font-size: 64px; }
.pro {
  font: inherit; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 4px 9px;
  border-radius: 10px; background: #0b0f10; border: 1px solid #2a3437; color: var(--text); transition: transform .1s, border-color .2s, box-shadow .2s;
}
.pro:hover { transform: translateY(-2px); border-color: var(--c); }
.pro.on { border-color: var(--c); box-shadow: 0 0 18px color-mix(in srgb, var(--c) 55%, transparent), inset 0 0 14px color-mix(in srgb, var(--c) 20%, transparent); }
.avatar {
  position: relative; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--c) 80%, #fff), var(--c) 55%, #000 140%);
  font-family: "Bebas Neue", Impact, sans-serif; font-size: 24px; color: #fff; text-shadow: 0 2px 4px rgba(0,0,0,.5);
}
.avatar i { position: absolute; bottom: -4px; right: -6px; font-style: normal; font-family: Inter, sans-serif; font-size: 9px; font-weight: 800; background: #000; border: 1px solid var(--c); border-radius: 4px; padding: 1px 3px; color: #fff; text-shadow: none; }
.pname { font-family: "Bebas Neue", Impact, sans-serif; font-size: 15px; letter-spacing: .5px; line-height: 1; color: var(--c); margin-top: 4px; text-align: center; }
.preal { font-size: 10px; color: var(--muted); line-height: 1.15; text-align: center; }
.pro-info { font-size: 12.5px; line-height: 1.5; color: #c9c1ad; margin: 12px 0 14px; min-height: 76px; }
.pro-info .perk { color: var(--gold); font-weight: 600; } .pro-info .song { color: var(--green); }

/* ---------- Responsive ---------- */
@media (max-width: 1240px) { .side { width: 270px; } .hud-item.score span { font-size: 38px; } }
@media (max-width: 1060px) { .side.left { display: none; } }
@media (max-width: 760px) {
  .side.right { display: none; }
  .stage { padding: 6px; }
}

/* Tour */
.start-row { display: flex; gap: 10px; justify-content: center; align-items: center; flex-wrap: wrap; }
.keys-panel .btn + .btn { margin-top: 6px; }
.tour { position: absolute; inset: 0; z-index: 20; pointer-events: auto; }
.tour.hidden { display: none; }
.tour-spot { position: absolute; border-radius: 50%; box-shadow: 0 0 0 4px rgba(255,138,26,.95), 0 0 30px 8px rgba(255,138,26,.6), 0 0 0 9999px rgba(3,4,8,.74); transition: all .45s cubic-bezier(.2,.8,.2,1); pointer-events: none; }
.tour-spot.rect { border-radius: 14px; }
.tour-card { position: absolute; left: 50%; transform: translateX(-50%); width: min(88%, 380px); background: linear-gradient(180deg, #1d1530, #0f0b18); border: 1px solid rgba(255,138,26,.6); border-radius: 16px; padding: 16px 18px 14px; box-shadow: 0 20px 50px rgba(0,0,0,.7); transition: top .45s, bottom .45s; color: #e9e2d0; }
.tour-card h3 { margin: 2px 0 6px; font-family: "Bebas Neue", Impact, sans-serif; font-size: 26px; letter-spacing: 1px; color: #ffb35c; font-weight: 400; }
.tour-card p { margin: 0 0 12px; font-size: 14px; line-height: 1.5; }
.tour-card p b { color: #fff; }
.tour-step { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,.5); }
.tour-btns { display: flex; justify-content: space-between; gap: 8px; }
.tour-x { position: absolute; top: 6px; right: 10px; background: none; border: 0; color: rgba(255,255,255,.6); font-size: 24px; cursor: pointer; line-height: 1; }
.tour-x:hover { color: #fff; }
.overlay.tour-hide { display: none; }
.avatar.photo { background-size: cover; background-position: center; }

/* Gegner-Auswahl */
.opp-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; margin-bottom: 6px; }
.opp { --c: #888; display: flex; flex-direction: column; align-items: center; gap: 2px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); border-radius: 10px; padding: 4px 3px 3px; width: 44px; cursor: pointer; color: #cfc8b6; font: inherit; }
.opp small { font-size: 8px; font-weight: 700; letter-spacing: .3px; max-width: 42px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.oav { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-family: "Bebas Neue", Impact, sans-serif; font-size: 14px; color: #fff; background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--c) 60%, #fff), color-mix(in srgb, var(--c) 70%, #000)); background-size: cover; background-position: center; }
.opp:hover { border-color: color-mix(in srgb, var(--c) 60%, transparent); }
.opp.on { border-color: var(--c); box-shadow: 0 0 12px color-mix(in srgb, var(--c) 55%, transparent); color: #fff; }
.opp.dis { opacity: .25; cursor: not-allowed; }
.opp-info { font-size: 12px; color: #c9c1ad; margin: 0 0 12px; }

.pause { z-index: 4; }
.pause-card { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.pause-t { font-size: 64px; letter-spacing: 6px; }
.pause-card small { font-family: Inter, sans-serif; font-size: 12px; letter-spacing: 0; color: rgba(255,255,255,.7); text-shadow: none; }

/* ---------- SPIN: Vinyl-Look ---------- */
.logo { font-family: Monoton, "Bebas Neue", Impact, sans-serif; font-size: 46px; letter-spacing: 2px; color: #ffe6f6; text-shadow: 0 0 6px #ff2d9a, 0 0 18px #ff2d9a, 0 0 40px #b0107a; }
.card-logo { font-family: Monoton, "Bebas Neue", Impact, sans-serif; color: #ffe6f6; text-shadow: 0 0 8px #ff2d9a, 0 0 22px #ff2d9a, 0 0 50px #b0107a; }
.card.attract .card-logo { font-size: 56px; line-height: 1.05; }
.card h1 { color: #3ad7ff; text-shadow: 0 0 12px rgba(58,215,255,.6); }
.hud-row { gap: 18px; }
.b2b { padding: 12px 16px 14px; border-radius: 12px; background: linear-gradient(180deg, #1c1d24, #0d0e13); border: 1px solid #2f3140;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 14px 30px rgba(0,0,0,.6); }
.b2b-head { display: flex; align-items: baseline; justify-content: center; gap: 10px; margin-bottom: 8px; }
.b2b-head label { font-size: 10px; font-weight: 700; letter-spacing: 1.6px; color: var(--muted); text-transform: uppercase; }
.b2b-head span { font-family: "Bebas Neue", Impact, sans-serif; font-size: 28px; letter-spacing: 2px; color: #fff; text-shadow: 0 0 10px rgba(255,45,154,.6); }
.b2b-row { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; }
.b2b-name { display: flex; justify-content: space-between; align-items: baseline; }
.b2b-name b { font-family: "Bebas Neue", Impact, sans-serif; font-weight: 400; font-size: 18px; letter-spacing: 1.4px; color: var(--c, #ff2d9a); }
.b2b-name span { font-size: 14px; letter-spacing: 3px; color: #ffd23f; }
.b2b-row small { font-size: 10.5px; color: rgba(241,233,214,.55); min-height: 12px; }
.meter { position: relative; height: 16px; border-radius: 4px; background: repeating-linear-gradient(90deg, #15161c 0 7px, #0b0c10 7px 9px); overflow: hidden; border: 1px solid #2a2c36; }
.meter i { position: absolute; inset: 0 auto 0 0; width: 0; background: repeating-linear-gradient(90deg, var(--c, #ff2d9a) 0 7px, transparent 7px 9px); box-shadow: 0 0 12px var(--c, #ff2d9a); transition: width .25s; }
.meter em { position: absolute; right: 6px; top: 0; font-style: normal; font-family: "Bebas Neue", Impact, sans-serif; font-size: 14px; line-height: 16px; letter-spacing: 1px; color: #fff; text-shadow: 0 0 4px #000; }
.b2b-row.them { opacity: .9; }
.b2b.ready .b2b-row.me .meter { animation: ready .45s infinite alternate; }
@keyframes ready { to { box-shadow: 0 0 18px #ffd23f; border-color: #ffd23f; } }
.pro-grid .pro .avatar span { position: relative; }
.genre { color: #3ad7ff; }

/* ---------- Handy ---------- */
html, body { overscroll-behavior: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.mhud { display: none; }
.rotate { display: none; }
@media (pointer: coarse) { .kbd-only { display: none; } }
@media (max-width: 760px) {
  .stage { flex-direction: column; align-items: center; gap: 6px; padding: calc(env(safe-area-inset-top) + 4px) 0 calc(env(safe-area-inset-bottom) + 4px); }
  .mhud { display: flex; align-items: center; gap: 10px; width: min(100vw, calc((100dvh - 70px - env(safe-area-inset-top) - env(safe-area-inset-bottom)) * 600 / 1170)); min-width: min(100vw, 340px); height: 52px; flex-shrink: 0; padding: 0 10px; }
  .mh-score { display: flex; flex-direction: column; min-width: 92px; }
  .mh-score span { font-family: "Bebas Neue", Impact, sans-serif; font-size: 30px; line-height: .95; color: var(--gold); text-shadow: 0 0 12px rgba(255,210,63,.5); font-variant-numeric: tabular-nums; }
  .mh-score small { font-size: 10.5px; font-weight: 600; color: var(--muted); letter-spacing: .5px; }
  .mh-b2b { flex: 1; display: flex; flex-direction: column; gap: 5px; min-width: 0; }
  .mh-row { display: grid; grid-template-columns: 62px 1fr 38px; align-items: center; gap: 6px; }
  .mh-row b { font-family: "Bebas Neue", Impact, sans-serif; font-weight: 400; font-size: 14px; letter-spacing: 1px; color: var(--c, #ff2d9a); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .mh-row .meter { height: 10px; }
  .mh-row em { font-style: normal; font-size: 11px; letter-spacing: 2px; color: var(--gold); text-align: right; }
  .mhud.ready .mh-row.me .meter { animation: ready .45s infinite alternate; }
  .cabinet { flex: 0 0 auto; height: min(calc(100dvh - 70px - env(safe-area-inset-top) - env(safe-area-inset-bottom)), calc(100vw * 1170 / 600)); max-height: none; width: auto; }
  #game { box-shadow: 0 0 0 2px #0c0d12, 0 0 0 5px #2c2f3b, 0 0 0 6px rgba(255,45,154,.55); }
  .card.attract { padding: 14px 12px 0; }
  .card.attract .card-logo { font-size: 40px; }
  .card.attract h1 { font-size: 24px; margin-bottom: 6px; }
  .pro-info { min-height: 0; font-size: 12px; }
  .card.attract .start-row { position: sticky; bottom: 0; padding: 10px 0 12px; margin: 0 -12px; background: linear-gradient(transparent, #0b0816 30%); }
  .card.attract .hint { margin: 0 0 12px; }
  .tour-card { width: 92%; }
}
@media (orientation: landscape) and (max-height: 520px) and (pointer: coarse) {
  .rotate { display: grid; place-content: center; text-align: center; position: fixed; inset: 0; z-index: 50; background: #08060f; color: #fff; font-family: "Bebas Neue", Impact, sans-serif; letter-spacing: 2px; }
  .rotate div { font-size: 64px; } .rotate p { font-size: 26px; margin: 8px 0 0; color: var(--gold); }
}
