/* ================================================
   HITSTER ONLINE — Frontend Design
   ================================================ */

/* ---------- GLOBAL (theme-unabhängig) ---------- */
:root {
  /* Display-Font (Audiowide) als Variable, damit nicht überall 'Audiowide', sans-serif steht */
  --font-display: 'Audiowide', 'Orbitron', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

/* ---------- THEME VARIABLES ---------- */
:root,
[data-theme="neon"] {
  --bg-base: #07060f;
  --bg-gradient: radial-gradient(ellipse at top, #1a0b2e 0%, #07060f 70%);
  --surface: rgba(20, 14, 38, 0.55);
  --surface-2: rgba(30, 20, 55, 0.7);
  --border-soft: rgba(255, 255, 255, 0.08);
  --text-primary: #e8e6f5;
  --text-muted: #8a86a8;
  --text-dim: #5d5980;

  --accent-1: #00e5ff;   /* cyan */
  --accent-2: #ff2bd6;   /* magenta */
  --accent-3: #4ade80;   /* neon green */
  --accent-4: #a855f7;   /* purple */
  --accent-warn: #ffd23f;

  --glow-1: 0 0 12px rgba(0, 229, 255, 0.55), 0 0 28px rgba(0, 229, 255, 0.25);
  --glow-2: 0 0 12px rgba(255, 43, 214, 0.55), 0 0 28px rgba(255, 43, 214, 0.25);
  --glow-3: 0 0 12px rgba(74, 222, 128, 0.55), 0 0 28px rgba(74, 222, 128, 0.25);
  --glow-4: 0 0 12px rgba(168, 85, 247, 0.55), 0 0 28px rgba(168, 85, 247, 0.25);

  --star-1: #00e5ff;
  --star-2: #ff2bd6;
  --star-3: #a855f7;

  --logo-gradient: linear-gradient(90deg, #00e5ff 0%, #a855f7 50%, #ff2bd6 100%);

  /* Sekundär-Text: zwischen primary und muted */
  --text-secondary: #c0bdd8;
}

[data-theme="schlager"] {
  --bg-base: #1a0420;
  --bg-gradient: radial-gradient(ellipse at top, #4a1547 0%, #2a0a3e 50%, #15021a 100%);
  --surface: rgba(60, 15, 60, 0.55);
  --surface-2: rgba(80, 20, 80, 0.7);
  --border-soft: rgba(255, 255, 255, 0.1);
  --text-primary: #fce7f3;
  --text-muted: #c4a0c0;
  --text-secondary: #e6c7dc;
  --text-dim: #8b6a8b;

  --accent-1: #ff1a8c;
  --accent-2: #ff4fb5;
  --accent-3: #ffd700;
  --accent-4: #c026d3;
  --accent-warn: #ffd23f;

  --glow-1: 0 0 12px rgba(255, 26, 140, 0.6), 0 0 28px rgba(255, 26, 140, 0.3);
  --glow-2: 0 0 12px rgba(255, 79, 181, 0.6), 0 0 28px rgba(255, 79, 181, 0.3);
  --glow-3: 0 0 12px rgba(255, 215, 0, 0.6), 0 0 28px rgba(255, 215, 0, 0.3);
  --glow-4: 0 0 12px rgba(192, 38, 211, 0.6), 0 0 28px rgba(192, 38, 211, 0.3);

  --star-1: #ff1a8c;
  --star-2: #ffd700;
  --star-3: #ff4fb5;

  --logo-gradient: linear-gradient(90deg, #ff1a8c 0%, #ffd700 50%, #ff4fb5 100%);
}

[data-theme="summer"] {
  --bg-base: #0a4a55;
  --bg-gradient: linear-gradient(160deg, #1ab5c4 0%, #0e7c8a 50%, #0a4a55 100%);
  --surface: rgba(10, 60, 70, 0.55);
  --surface-2: rgba(15, 80, 95, 0.7);
  --border-soft: rgba(255, 255, 255, 0.15);
  --text-primary: #f0fdff;
  --text-muted: #b8e6ed;
  --text-secondary: #d4f1f5;
  --text-dim: #7fb8c2;

  --accent-1: #ff4d8d;
  --accent-2: #ffd23f;
  --accent-3: #ff6b35;
  --accent-4: #06d6a0;
  --accent-warn: #ffd23f;

  --glow-1: 0 0 12px rgba(255, 77, 141, 0.6), 0 0 28px rgba(255, 77, 141, 0.3);
  --glow-2: 0 0 12px rgba(255, 210, 63, 0.6), 0 0 28px rgba(255, 210, 63, 0.3);
  --glow-3: 0 0 12px rgba(255, 107, 53, 0.6), 0 0 28px rgba(255, 107, 53, 0.3);
  --glow-4: 0 0 12px rgba(6, 214, 160, 0.6), 0 0 28px rgba(6, 214, 160, 0.3);

  --star-1: #ffd23f;
  --star-2: #ff4d8d;
  --star-3: #ffffff;

  --logo-gradient: linear-gradient(90deg, #ff4d8d 0%, #ffd23f 50%, #ff6b35 100%);
}

[data-theme="celebration"] {
  --bg-base: #050505;
  --bg-gradient: radial-gradient(ellipse at top, #1a1408 0%, #0a0805 60%, #050505 100%);
  --surface: rgba(30, 25, 10, 0.55);
  --surface-2: rgba(40, 32, 12, 0.7);
  --border-soft: rgba(255, 215, 0, 0.12);
  --text-primary: #f9f5e3;
  --text-muted: #b8a878;
  --text-secondary: #d8c9a0;
  --text-dim: #7a6f4a;

  --accent-1: #ffd700;
  --accent-2: #f4e4a6;
  --accent-3: #d4af37;
  --accent-4: #ffec8b;
  --accent-warn: #ff8c42;

  --glow-1: 0 0 12px rgba(255, 215, 0, 0.65), 0 0 32px rgba(255, 215, 0, 0.35);
  --glow-2: 0 0 12px rgba(244, 228, 166, 0.6), 0 0 28px rgba(244, 228, 166, 0.3);
  --glow-3: 0 0 12px rgba(212, 175, 55, 0.6), 0 0 28px rgba(212, 175, 55, 0.3);
  --glow-4: 0 0 12px rgba(255, 236, 139, 0.6), 0 0 28px rgba(255, 236, 139, 0.3);

  --star-1: #ffd700;
  --star-2: #f4e4a6;
  --star-3: #ffffff;

  --logo-gradient: linear-gradient(90deg, #ffd700 0%, #f4e4a6 50%, #d4af37 100%);
}

/* ---------- BASE ---------- */
* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-primary);
  background: var(--bg-base);
  overflow-x: hidden;
}

body {
  background: var(--bg-base);
  position: relative;
  transition: background 0.6s ease;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: var(--bg-gradient);
  z-index: 0;
  pointer-events: none;
  transition: background 0.6s ease;
}

.arcade { font-family: 'Audiowide', 'Orbitron', sans-serif; letter-spacing: 0.05em; }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent-1); }

::selection { background: var(--accent-2); color: #fff; }

/* ---------- STARFIELD ---------- */
#starfield {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

/* ---------- LAYOUT ---------- */
.page {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem 1rem 3rem;
}

.center-stack {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1.25rem;
}

.center-stack.wide { max-width: 480px; }

/* ---------- TOP BAR ---------- */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  position: relative;
  z-index: 5;
}

.topbar-left { display: flex; align-items: center; gap: 0.75rem; }
.topbar-right { display: flex; align-items: center; gap: 0.5rem; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}
.back-link:hover { color: var(--accent-1); background: var(--surface); }
/* Button-Variante (z. B. "Verlassen" mit Command statt Navigation) */
.back-link.as-button {
  border: none;
  background: transparent;
  font: inherit;
  cursor: pointer;
}
.back-link.as-button:hover { color: var(--accent-2); background: var(--surface); }

.player-count {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--text-muted);
  backdrop-filter: blur(8px);
}
.player-count .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ---------- THEME SWITCHER ---------- */
.theme-switcher {
  position: relative;
}
.theme-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-soft);
  background: var(--surface);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  backdrop-filter: blur(8px);
}
.theme-btn:hover {
  color: var(--accent-1);
  border-color: var(--accent-1);
  box-shadow: var(--glow-1);
}

.theme-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--surface-2);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  padding: 0.75rem;
  display: none;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 180px;
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  z-index: 100;
}
.theme-menu.open { display: flex; }

.theme-option {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 0.6rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
  font-size: 0.9rem;
  color: var(--text-primary);
}
.theme-option:hover { background: rgba(255, 255, 255, 0.05); }
.theme-option.active { background: rgba(255, 255, 255, 0.07); }

.theme-swatch {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--border-soft);
  flex-shrink: 0;
}
.swatch-neon       { background: linear-gradient(135deg, #00e5ff 0%, #a855f7 50%, #ff2bd6 100%); }
.swatch-schlager   { background: linear-gradient(135deg, #ff1a8c 0%, #c026d3 50%, #ffd700 100%); }
.swatch-summer     { background: linear-gradient(135deg, #1ab5c4 0%, #ff4d8d 50%, #ffd23f 100%); }
.swatch-celebration{ background: linear-gradient(135deg, #ffd700 0%, #f4e4a6 50%, #d4af37 100%); }

/* ---------- LOGO ---------- */
.logo-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 2rem 0 1rem;
}

.equalizer {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 32px;
  margin-bottom: 4px;
}
.equalizer .bar {
  width: 5px;
  background: var(--accent-1);
  border-radius: 2px;
  animation: eq 1.2s ease-in-out infinite;
  box-shadow: 0 0 8px currentColor;
}
.equalizer .bar:nth-child(1) { background: var(--accent-1); color: var(--accent-1); height: 40%; animation-delay: 0s; }
.equalizer .bar:nth-child(2) { background: var(--accent-1); color: var(--accent-1); height: 70%; animation-delay: 0.1s; }
.equalizer .bar:nth-child(3) { background: var(--accent-4); color: var(--accent-4); height: 90%; animation-delay: 0.2s; }
.equalizer .bar:nth-child(4) { background: var(--accent-4); color: var(--accent-4); height: 60%; animation-delay: 0.3s; }
.equalizer .bar:nth-child(5) { background: var(--accent-2); color: var(--accent-2); height: 85%; animation-delay: 0.4s; }
.equalizer .bar:nth-child(6) { background: var(--accent-2); color: var(--accent-2); height: 50%; animation-delay: 0.5s; }
.equalizer .bar:nth-child(7) { background: var(--accent-2); color: var(--accent-2); height: 75%; animation-delay: 0.6s; }
.equalizer .bar:nth-child(8) { background: var(--accent-1); color: var(--accent-1); height: 35%; animation-delay: 0.7s; }

@keyframes eq {
  0%, 100% { transform: scaleY(0.6); }
  50% { transform: scaleY(1); }
}

.logo-frame {
  position: relative;
  padding: 1rem 2rem;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.2);
}

.logo-frame::before,
.logo-frame::after {
  content: '';
  position: absolute;
  width: 28px;
  height: 28px;
  border-style: solid;
  border-width: 2px;
  pointer-events: none;
}
.logo-frame::before {
  top: -3px;
  left: -3px;
  border-color: var(--accent-1) transparent transparent var(--accent-1);
  border-top-left-radius: 12px;
  filter: drop-shadow(0 0 4px var(--accent-1));
}
.logo-frame::after {
  bottom: -3px;
  right: -3px;
  border-color: transparent var(--accent-2) var(--accent-2) transparent;
  border-bottom-right-radius: 12px;
  filter: drop-shadow(0 0 4px var(--accent-2));
}

.logo-border {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  border: 1.5px solid;
  border-image: var(--logo-gradient) 1;
  opacity: 0.5;
  pointer-events: none;
}

.logo-text {
  font-family: 'Audiowide', sans-serif;
  font-size: clamp(2.8rem, 9vw, 4.2rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  background: var(--logo-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 14px rgba(255, 43, 214, 0.4));
  line-height: 1;
  margin: 0;
}

.logo-subtitle {
  margin-top: 0.85rem;
  font-family: 'Audiowide', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  color: var(--text-muted);
  text-transform: uppercase;
  white-space: nowrap;
  text-align: center;
}

/* ---------- INPUTS ---------- */
.field {
  width: 100%;
  padding: 0.95rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
  text-align: center;
  outline: none;
  transition: all 0.2s;
  backdrop-filter: blur(8px);
}
.field::placeholder {
  color: var(--text-dim);
  font-family: 'Audiowide', sans-serif;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-size: 0.85rem;
}
.field:focus {
  border-color: var(--accent-1);
  box-shadow: var(--glow-1);
}

/* ---------- NEON BUTTONS ---------- */
.neon-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  padding: 1rem 1.5rem;
  background: transparent;
  border: 1.5px solid var(--accent-1);
  border-radius: 12px;
  color: var(--accent-1);
  font-family: 'Audiowide', sans-serif;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s;
  box-shadow: var(--glow-1), inset 0 0 12px rgba(0, 229, 255, 0.08);
}
.neon-btn:hover {
  background: rgba(0, 229, 255, 0.08);
  transform: translateY(-1px);
  box-shadow: 0 0 18px rgba(0, 229, 255, 0.8), 0 0 36px rgba(0, 229, 255, 0.4), inset 0 0 16px rgba(0, 229, 255, 0.15);
}
.neon-btn:active { transform: translateY(0); }

.neon-btn.magenta {
  border-color: var(--accent-2);
  color: var(--accent-2);
  box-shadow: var(--glow-2), inset 0 0 12px rgba(255, 43, 214, 0.08);
}
.neon-btn.magenta:hover {
  background: rgba(255, 43, 214, 0.08);
  box-shadow: 0 0 18px var(--accent-2), 0 0 36px rgba(255, 43, 214, 0.4), inset 0 0 16px rgba(255, 43, 214, 0.15);
}

.neon-btn.green {
  border-color: var(--accent-3);
  color: var(--accent-3);
  box-shadow: var(--glow-3), inset 0 0 12px rgba(74, 222, 128, 0.08);
}
.neon-btn.green:hover {
  background: rgba(74, 222, 128, 0.08);
  box-shadow: 0 0 18px var(--accent-3), 0 0 36px rgba(74, 222, 128, 0.4), inset 0 0 16px rgba(74, 222, 128, 0.15);
}

.neon-btn.purple {
  border-color: var(--accent-4);
  color: var(--accent-4);
  box-shadow: var(--glow-4), inset 0 0 12px rgba(168, 85, 247, 0.08);
}
.neon-btn.purple:hover {
  background: rgba(168, 85, 247, 0.08);
  box-shadow: 0 0 18px var(--accent-4), 0 0 36px rgba(168, 85, 247, 0.4), inset 0 0 16px rgba(168, 85, 247, 0.15);
}

.neon-btn.lg { padding: 1.15rem 1.5rem; font-size: 1.15rem; }

/* ---------- FOOTER ICONS ---------- */
.home-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
  padding-top: 0.5rem;
  row-gap: 0.5rem;
}
.home-footer a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-muted);
  font-size: 0.88rem;
  transition: color 0.2s;
}
.home-footer a:hover { color: var(--accent-1); }
.home-footer .pro { color: var(--accent-warn); }
.home-footer .pro:hover { color: var(--accent-warn); filter: brightness(1.2); }

.version-pill {
  display: inline-block;
  margin: 1.25rem auto 0;
  padding: 0.25rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: var(--surface);
  font-size: 0.72rem;
  color: var(--text-dim);
  font-family: 'JetBrains Mono', monospace;
}

/* ---------- JOIN ROOM CARD ---------- */
.card-neon {
  position: relative;
  padding: 1.5rem 1.25rem;
  background: var(--surface);
  border: 1.5px solid var(--accent-2);
  border-radius: 16px;
  box-shadow: var(--glow-2);
  backdrop-filter: blur(12px);
}
.card-neon.cyan { border-color: var(--accent-1); box-shadow: var(--glow-1); }
.card-neon.purple { border-color: var(--accent-4); box-shadow: var(--glow-4); }
.card-neon.green { border-color: var(--accent-3); box-shadow: var(--glow-3); }

.card-neon-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.card-neon-title {
  font-family: 'Audiowide', sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin: 0;
}
.card-neon.cyan .card-neon-title { color: var(--accent-1); }
.card-neon.green .card-neon-title { color: var(--accent-3); }
.card-neon.purple .card-neon-title { color: var(--accent-4); }

.card-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.4rem;
  cursor: pointer;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: all 0.2s;
}
.card-close:hover { color: var(--text-primary); background: rgba(255, 255, 255, 0.05); }

/* ---------- ROOM CODE DISPLAY ---------- */
.room-code-label {
  font-family: 'Audiowide', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.4em;
  color: var(--text-muted);
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 0.75rem;
}

.room-code-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.1rem 1.5rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1.5px solid var(--accent-1);
  border-radius: 14px;
  box-shadow: var(--glow-1), inset 0 0 20px rgba(0, 229, 255, 0.05);
  cursor: pointer;
  transition: all 0.25s;
  position: relative;
}
.room-code-frame:hover {
  box-shadow: 0 0 22px var(--accent-1), 0 0 44px rgba(0, 229, 255, 0.4);
  transform: translateY(-1px);
}

.room-code {
  font-family: 'Audiowide', sans-serif;
  font-size: clamp(2.5rem, 8vw, 3.5rem);
  letter-spacing: 0.3em;
  color: var(--accent-1);
  text-shadow: 0 0 16px var(--accent-1), 0 0 32px rgba(0, 229, 255, 0.5);
  margin: 0;
  padding-left: 0.3em;
}

.copy-btn {
  background: transparent;
  border: none;
  color: var(--accent-1);
  cursor: pointer;
  padding: 0.4rem;
  border-radius: 6px;
  transition: all 0.2s;
}
.copy-btn:hover { background: rgba(0, 229, 255, 0.12); }

.copy-hint {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.65rem;
}

/* ---------- PLAYERS ---------- */
.player-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 1rem;
  margin-top: 0.5rem;
}
.player-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.4);
  border: 2px solid var(--accent-1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Audiowide', sans-serif;
  font-size: 1.1rem;
  color: var(--accent-1);
  box-shadow: var(--glow-1);
}
.avatar.host { border-color: var(--accent-2); color: var(--accent-2); box-shadow: var(--glow-2); }
.player-name {
  font-size: 0.85rem;
  color: var(--text-primary);
  text-align: center;
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.host-crown { font-size: 0.7rem; color: var(--accent-warn); }

/* ---------- EMOJI REACTIONS ---------- */
.emoji-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin: 1rem 0 0.5rem;
}
.emoji-btn {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  line-height: 1;
}
.emoji-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: scale(1.2) translateY(-2px);
}

/* ---------- OPTION ROWS (Lobby) ---------- */
.section-label {
  font-family: 'Audiowide', sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  color: var(--accent-1);
  text-transform: uppercase;
  margin: 0 0 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.section-label.magenta { color: var(--accent-2); }
.section-label.green { color: var(--accent-3); }
.section-label.purple { color: var(--accent-4); }

.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  margin-bottom: 0.6rem;
  transition: border-color 0.2s;
  flex-wrap: nowrap;
}
.row:hover { border-color: rgba(255, 255, 255, 0.15); }

.row-left { display: flex; align-items: center; gap: 0.75rem; flex: 1 1 auto; min-width: 0; }
.row-action {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  color: var(--text-muted);
  font-size: 1rem;
}
.row .badge { flex: 0 0 auto; width: auto !important; display: inline-block; }
.row-icon {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  color: var(--accent-1);
  flex-shrink: 0;
}
.row-icon.magenta { color: var(--accent-2); }
.row-icon.green { color: var(--accent-3); }
.row-icon.purple { color: var(--accent-4); }
.row-icon.warn { color: var(--accent-warn); }

.row-text { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }
.row-text .row-title, .row-text .row-sub { word-break: normal; overflow-wrap: break-word; }
.row-title {
  font-family: 'Audiowide', sans-serif;
  font-size: 0.92rem;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  text-transform: uppercase;
  line-height: 1.25;
}
.row-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 3px;
  line-height: 1.3;
}


.badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-soft);
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ---------- SEGMENTED BUTTONS ---------- */
.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.segmented.three { grid-template-columns: repeat(3, 1fr); }
.segmented.four { grid-template-columns: repeat(4, 1fr); }

.seg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1rem;
  background: transparent;
  border: 1.5px solid var(--border-soft);
  border-radius: 12px;
  color: var(--text-muted);
  font-family: 'Audiowide', sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.2s;
}
.seg-btn:hover { color: var(--text-primary); border-color: rgba(255, 255, 255, 0.2); }
.seg-btn.active {
  color: var(--accent-1);
  border-color: var(--accent-1);
  background: rgba(0, 229, 255, 0.08);
  box-shadow: var(--glow-1);
}
/* Kompakte Variante (z. B. Schwierigkeit pro Spieler in der Lobby) */
.seg-btn.sm {
  padding: 0.3rem 0.45rem;
  font-size: 0.68rem;
  border-radius: 8px;
  gap: 0.25rem;
}
/* Breitere Kacheln, sobald die Difficulty-Buttons sichtbar sind — sonst
   überlappen die drei Segmente die Nachbar-Kachel. */
.player-grid.with-difficulty {
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}
.difficulty-seg {
  grid-template-columns: repeat(3, 1fr);
  gap: 0.3rem;
  width: 100%;
  max-width: 170px;
}
.difficulty-seg .seg-btn.sm {
  min-width: 0;
  padding: 0.3rem 0.2rem;
  font-size: 0.62rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.difficulty-badge {
  font-size: 0.7rem;
  color: var(--text-muted);
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
}

/* ---------- SLIDERS ---------- */
.slider-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}
.slider-value {
  font-family: 'Audiowide', sans-serif;
  font-size: 1.1rem;
  color: var(--text-primary);
}

input[type="range"] {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  margin: 0.25rem 0;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
}
input[type="range"]::-moz-range-track {
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-1);
  box-shadow: var(--glow-1);
  margin-top: -7px;
  cursor: pointer;
  border: none;
}
input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-1);
  box-shadow: var(--glow-1);
  cursor: pointer;
  border: none;
}

.slider-range {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* ---------- TOGGLE SWITCH ---------- */
.switch {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.switch-track {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s;
}
.switch-track::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--text-muted);
  top: 2px;
  left: 2px;
  transition: all 0.2s;
}
.switch input:checked + .switch-track {
  background: var(--accent-1);
  border-color: var(--accent-1);
  box-shadow: var(--glow-1);
}
.switch input:checked + .switch-track::before {
  transform: translateX(20px);
  background: #fff;
}

/* ---------- CHAT FAB ---------- */
.chat-fab {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--accent-1);
  color: #001318;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: var(--glow-1);
  z-index: 50;
  transition: transform 0.2s;
}
.chat-fab:hover { transform: scale(1.08); }

/* ---------- BLANK GAME PAGE ---------- */
.blank-hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1rem;
}
.blank-hero h1 {
  font-family: 'Audiowide', sans-serif;
  font-size: clamp(2rem, 6vw, 3rem);
  background: var(--logo-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0 0 0.5rem;
}
.blank-hero p { color: var(--text-muted); max-width: 420px; }

/* ---------- UTILITIES ---------- */
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.text-center { text-align: center; }
.divider {
  height: 1px;
  background: var(--border-soft);
  margin: 1rem 0;
}

/* ---------- MOBILE TUNING ---------- */
@media (max-width: 480px) {
  .topbar { padding: 0.85rem 0.85rem; gap: 0.4rem; }
  .room-code { font-size: 2.2rem; letter-spacing: 0.25em; }
  .home-footer { gap: 0.9rem; font-size: 0.8rem; }
  .player-count { font-size: 0.78rem; padding: 0.35rem 0.7rem; }
  .logo-subtitle { font-size: 0.62rem; letter-spacing: 0.25em; }
  .row { padding: 0.75rem 0.85rem; }
  .row-sub { font-size: 0.75rem; }
  .neon-btn { font-size: 0.95rem; padding: 0.9rem 1rem; }
}

/* ---------- PAGE TITLE / SUBTITLE (shared by Browse + HowToPlay) ---------- */
.page-title {
  font-family: var(--font-display);
  font-size: 2rem;
  margin: 0 0 0.25rem;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.page-subtitle {
  color: var(--text-muted);
  margin: 0;
  font-size: 0.95rem;
}

/* ---------- BROWSE GAMES ---------- */
.browse-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0.25rem 0;
}
.updated-label {
  color: var(--text-muted);
  font-size: 0.9rem;
}
.neon-btn.sm {
  padding: 0.55rem 1rem;
  font-size: 0.9rem;
}
.spin { animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  padding: 2.25rem 1.25rem;
  text-align: center;
}
.empty-icon {
  font-size: 2.25rem;
  color: var(--accent-1);
  opacity: 0.55;
}
.empty-text {
  color: var(--text-muted);
  margin: 0;
}

.browse-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.room-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
}
.room-card-left { display: flex; flex-direction: column; gap: 0.3rem; min-width: 0; }
.room-card-code {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.18em;
  color: var(--accent-1);
  text-shadow: 0 0 12px color-mix(in srgb, var(--accent-1) 50%, transparent);
}
.room-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}
.room-card-meta i { margin-right: 0.25rem; }

/* ---------- HOW TO PLAY ---------- */
.howto-step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.1rem 1.2rem;
}
.howto-num {
  flex: 0 0 auto;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  border: 1px solid currentColor;
  background: color-mix(in srgb, currentColor 12%, transparent);
}
.howto-num.cyan    { color: var(--accent-1); }
.howto-num.magenta { color: var(--accent-2); }
.howto-num.purple  { color: var(--accent-4); }
.howto-num.green   { color: var(--accent-3); }
.howto-num.yellow  { color: #fcd34d; }

.howto-body { flex: 1 1 auto; min-width: 0; }
.howto-title {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
  color: var(--text-primary);
}
.howto-text {
  margin: 0;
  color: var(--text-secondary, var(--text-muted));
  line-height: 1.55;
}

.howto-modes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin: 0.6rem 0 0.4rem;
}
@media (max-width: 640px) {
  .howto-modes { grid-template-columns: 1fr; }
}
.howto-mode {
  border-left: 2px solid currentColor;
  padding-left: 0.85rem;
  color: var(--accent-1);
}
.howto-mode:nth-child(2) { color: var(--accent-2); }
.howto-mode-title {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  margin: 0 0 0.35rem;
  text-transform: uppercase;
}
.howto-mode-title.cyan    { color: var(--accent-1); }
.howto-mode-title.magenta { color: var(--accent-2); }
.howto-mode-text {
  margin: 0;
  color: var(--text-secondary, var(--text-muted));
  font-size: 0.92rem;
  line-height: 1.5;
}
.howto-difficulty {
  margin-top: 0.85rem;
  border-left: 2px solid var(--accent-2);
  padding-left: 0.85rem;
}

.howto-list {
  margin: 0.3rem 0 0;
  padding-left: 1.1rem;
  color: var(--text-secondary, var(--text-muted));
  line-height: 1.6;
}
.howto-list li { margin-bottom: 0.15rem; }

/* ---------- LOBBY GUEST-VIEW ---------- */
.waiting-card {
  text-align: center;
  padding: 1.5rem 1.25rem;
}
.waiting-text {
  margin: 0;
  color: var(--text-muted);
  font-size: 1rem;
}
.waiting-text i { margin-right: 0.4rem; color: var(--accent-1); }

/* ============================================================
   GAME BOARD (Commit 10)
   ============================================================ */
.game-wrap {
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  padding: 1rem 1rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.game-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.phase-pill {
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
  background: var(--surface);
}
.turn-banner {
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.turn-banner.mine { color: var(--accent-3); text-shadow: var(--glow-3); }

/* NOW PLAYING */
.now-playing {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  padding: 1.25rem;
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  background: var(--surface);
}
.now-playing .hint { margin: 0; font-size: 0.85rem; color: var(--text-muted); }
.mystery-wrap.draggable { cursor: grab; }
.mystery-wrap.draggable:active { cursor: grabbing; }

.playback-controls { display: flex; gap: 0.75rem; }

/* CARD */
.tl-card {
  position: relative;
  width: 96px;
  min-width: 96px;
  height: 132px;
  border-radius: 12px;
  border: 1px solid var(--border-soft);
  background: var(--surface-2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  padding: 0.5rem;
  overflow: hidden;
  text-align: center;
}
.tl-card-cover {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.7;
}
/* Abdunklung über dem Cover, damit Jahr/Titel/Interpret gut lesbar bleiben. */
.tl-card-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(7, 6, 15, 0.35), rgba(7, 6, 15, 0.78));
}
.tl-card-year {
  font-family: 'Audiowide', system-ui, sans-serif;
  font-size: 1.5rem;
  color: var(--accent-1);
  text-shadow: var(--glow-1), 0 1px 3px rgba(0, 0, 0, 0.8);
  z-index: 1;
}
.tl-card-title,
.tl-card-artist {
  z-index: 1;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
}
.tl-card-title { font-size: 0.72rem; font-weight: 600; color: var(--text-primary); }
.tl-card-artist { font-size: 0.66rem; color: var(--text-secondary); }
.tl-card-title span,
.tl-card-artist span {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: bottom;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85);
}
/* Bei Hover Text durchlaufen lassen (nur wenn er abgeschnitten ist — min(0px, …)). */
.tl-card:hover .tl-card-title span,
.tl-card:hover .tl-card-artist span {
  max-width: none;
  overflow: visible;
  text-overflow: clip;
  animation: tl-marquee 4s ease-in-out infinite alternate;
}
@keyframes tl-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(min(0px, calc(80px - 100%))); }
}
.tl-card.mystery {
  border-style: dashed;
  border-color: var(--accent-4);
  box-shadow: var(--glow-4);
}
.tl-card-q {
  font-family: 'Audiowide', system-ui, sans-serif;
  font-size: 2.5rem;
  color: var(--accent-4);
  text-shadow: var(--glow-4);
  z-index: 1;
}

/* TIMELINE (own) */
.timeline {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  overflow-x: auto;
  padding: 0.5rem 0.25rem 0.85rem;
  scroll-behavior: smooth;
  /* Firefox */
  scrollbar-width: thin;
  scrollbar-color: var(--accent-1) rgba(255, 255, 255, 0.06);
}
/* WebKit/Chromium/Brave: schlanke, neon-getönte Scroll-Leiste */
.timeline::-webkit-scrollbar { height: 10px; }
.timeline::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 999px;
}
.timeline::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, var(--accent-1), var(--accent-4));
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
.timeline::-webkit-scrollbar-thumb:hover {
  background: var(--accent-1);
  background-clip: padding-box;
}
.timeline.own { min-height: 150px; }
/* Beim Ziehen die eigene Zeitachse hervorheben (Auto-Scroll-Bereich sichtbar machen). */
body.hitster-dragging .timeline.own {
  outline: 1px dashed var(--accent-3);
  outline-offset: 2px;
  border-radius: 12px;
}

/* ---------- TOKEN-SYSTEM (Phase 2) ---------- */
.token-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--accent-warn, #ffc24b);
  color: var(--accent-warn, #ffc24b);
  font-family: 'Audiowide', sans-serif;
  font-size: 0.78rem;
}
.token-chip.own { margin-left: auto; font-size: 0.95rem; padding: 0.3rem 0.85rem; }

/* Token-Aktionen (SKIP/BUY) */
.token-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; justify-content: center; }
.token-actions .neon-btn { width: auto; }
.cost-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.72rem;
  color: var(--accent-warn, #ffc24b);
  border: 1px solid var(--accent-warn, #ffc24b);
  border-radius: 999px;
  padding: 0.05rem 0.4rem;
  margin-left: 0.3rem;
}

/* Guess-Eingabe (Song erkannt?) */
.guess-input {
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  padding: 0.8rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  background: rgba(0, 0, 0, 0.25);
}
.guess-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-primary);
  font-family: 'Audiowide', sans-serif;
  font-size: 0.9rem;
}
.guess-required { color: var(--accent-2); font-size: 0.75rem; margin-left: auto; }
.guess-optional { color: var(--accent-warn, #ffc24b); font-size: 0.75rem; margin-left: auto; }
.guess-fields { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.guess-fields .field { flex: 1 1 160px; margin: 0; }
.guess-fields .field.year { flex: 0 1 110px; }
.field.sm { padding: 0.55rem 0.8rem; font-size: 0.9rem; }
.guess-submitted { margin: 0; color: var(--accent-3); font-size: 0.88rem; }

/* Guess-Abstimmung (Overlay-Variante) */
.reveal-overlay.vote .reveal-card { border-color: var(--accent-warn, #ffc24b); }
.vote-badge { color: var(--accent-warn, #ffc24b); }
.vote-compare {
  display: flex;
  align-items: stretch;
  gap: 0.9rem;
  margin: 0.4rem 0;
}
.vote-col { display: flex; flex-direction: column; gap: 0.15rem; min-width: 120px; }
.vote-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}
.vote-value { color: var(--text-primary); font-weight: 600; }
.vote-value.muted { color: var(--text-muted); font-weight: 400; }
.vote-divider { display: flex; align-items: center; color: var(--text-muted); }
.vote-buttons { display: flex; gap: 0.75rem; }
.vote-hint { margin: 0.25rem 0 0; color: var(--text-muted); font-size: 0.88rem; }
.vote-countdown {
  margin: 0.4rem 0 0;
  font-family: 'Audiowide', sans-serif;
  color: var(--accent-warn, #ffc24b);
}

/* Untermenü-Zeile (eingerückt unter einem Toggle) + Ruffenster-Auswahl */
.row.sub-row {
  margin-left: 1.5rem;
  margin-top: 0.5rem;
  padding-left: 0.75rem;
  border-left: 2px solid var(--border-soft);
}
.hitster-window-seg {
  grid-template-columns: repeat(5, 1fr);
  gap: 0.3rem;
  max-width: 240px;
}
.earn-rule-seg {
  grid-template-columns: repeat(2, 1fr);
  gap: 0.3rem;
  max-width: 160px;
}

/* HITSTER-Wette */
.hitster-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  border: 1px dashed var(--accent-2);
  border-radius: 14px;
  padding: 0.6rem 1rem;
}
.hitster-bar .neon-btn { width: auto; }
.hitster-info { color: var(--text-muted); font-size: 0.88rem; display: inline-flex; align-items: center; gap: 0.4rem; }
.hitster-info.called { color: var(--accent-2); }
.hitster-countdown {
  font-family: 'Audiowide', sans-serif;
  color: var(--accent-2);
  min-width: 2.2rem;
  text-align: right;
}
.bet-token {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  align-self: center;
  padding: 0.3rem 0.5rem;
  border-radius: 999px;
  border: 1.5px solid var(--accent-2);
  color: var(--accent-2);
  font-family: 'Audiowide', sans-serif;
  font-size: 0.72rem;
  box-shadow: var(--glow-2);
  flex-shrink: 0;
}
.guess-line.steal { color: var(--accent-2); font-weight: 700; }

/* Guess-Ergebnis im Reveal-Overlay */
.reveal-guess { display: flex; flex-direction: column; gap: 0.25rem; margin-bottom: 0.5rem; }
.guess-line { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.88rem; }
.guess-line.good { color: var(--accent-3); }
.guess-line.bad { color: var(--accent-2); }
.guess-line.muted { color: var(--text-muted); font-size: 0.78rem; }

/* DROP ZONE */
.drop-zone {
  flex: 0 0 auto;
  width: 28px;
  align-self: stretch;
  min-height: 132px;
  border-radius: 10px;
  border: 2px dashed transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s, width 0.12s;
}
.drop-zone:hover { border-color: var(--accent-3); color: var(--accent-3); background: rgba(74, 222, 128, 0.08); }
/* Lokaler Drag-State (drag.js setzt die Body-Klasse): Zonen sichtbar hervorheben. */
body.hitster-dragging .drop-zone {
  width: 40px;
  border-color: var(--accent-3);
  background: rgba(74, 222, 128, 0.12);
  color: var(--accent-3);
}

/* OTHER PLAYERS */
.others { display: flex; flex-direction: column; gap: 0.6rem; }
.other-tl {
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 0.6rem 0.8rem;
  background: var(--surface);
}
.other-tl.active { border-color: var(--accent-3); box-shadow: var(--glow-3); }
.other-tl.offline { opacity: 0.5; }
.other-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.35rem; }
.other-name { font-weight: 600; color: var(--text-secondary); }
.other-count {
  font-size: 0.78rem;
  color: var(--accent-1);
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  padding: 0.1rem 0.55rem;
}
.timeline.mini { padding: 0.15rem 0; gap: 0.3rem; }
.other-empty { color: var(--text-dim); }
.year-chip {
  font-size: 0.78rem;
  color: var(--text-primary);
  background: var(--surface-2);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  padding: 0.2rem 0.5rem;
  white-space: nowrap;
}

.action-error { color: var(--accent-2); text-align: center; font-size: 0.9rem; margin: 0; }

/* REVEAL OVERLAY */
.reveal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(7, 6, 15, 0.78);
  backdrop-filter: blur(4px);
  animation: reveal-fade 0.18s ease-out;
}
@keyframes reveal-fade { from { opacity: 0; } to { opacity: 1; } }
.reveal-card {
  text-align: center;
  padding: 2.75rem 3.5rem;
  border-radius: 24px;
  background: var(--surface-2);
  border: 2px solid var(--border-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  min-width: min(440px, 92vw);
  max-width: min(620px, 94vw);
}
.reveal-overlay.correct .reveal-card { border-color: var(--accent-3); box-shadow: var(--glow-3); }
.reveal-overlay.wrong .reveal-card { border-color: var(--accent-2); box-shadow: var(--glow-2); }
.reveal-badge { display: flex; align-items: center; gap: 0.4rem; font-weight: 700; font-size: 1.35rem; }
.reveal-overlay.correct .reveal-badge { color: var(--accent-3); }
.reveal-overlay.wrong .reveal-badge { color: var(--accent-2); }
.reveal-year {
  font-family: 'Audiowide', system-ui, sans-serif;
  font-size: 4.25rem;
  color: var(--text-primary);
  margin: 0.25rem 0;
}
.reveal-title { font-weight: 600; color: var(--text-primary); font-size: 1.25rem; }
.reveal-artist { color: var(--text-muted); margin-bottom: 0.5rem; font-size: 1.05rem; }

/* WINNER */
.winner-banner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 2.5rem 1rem;
}
.winner-trophy { font-size: 4rem; color: var(--accent-warn); text-shadow: 0 0 18px rgba(255, 210, 63, 0.6); }
.winner-banner h1 {
  font-family: 'Audiowide', system-ui, sans-serif;
  font-size: 2.5rem;
  color: var(--accent-1);
  text-shadow: var(--glow-1);
  margin: 0;
}
.winner-name { color: var(--text-secondary); font-size: 1.1rem; }

/* TAB TAKEOVER */
.takeover-overlay {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(7, 6, 15, 0.86);
  backdrop-filter: blur(5px);
}
.takeover-card {
  text-align: center;
  max-width: 360px;
  padding: 2rem 2.25rem;
  border-radius: 20px;
  background: var(--surface-2);
  border: 2px solid var(--accent-warn);
  box-shadow: 0 0 18px rgba(255, 210, 63, 0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}
.takeover-icon { font-size: 2.75rem; color: var(--accent-warn); }
.takeover-card h2 { margin: 0; color: var(--text-primary); font-size: 1.35rem; }
.takeover-card p { margin: 0 0 0.5rem; color: var(--text-muted); font-size: 0.92rem; }

/* LEGAL PAGES (Impressum / Datenschutz) */
.card-neon.legal { text-align: left; }
.legal-heading {
  margin: 1.25rem 0 0.4rem;
  font-size: 1rem;
  color: var(--accent-1);
}
.legal-heading:first-child { margin-top: 0; }
.card-neon.legal p { color: var(--text-secondary); line-height: 1.55; margin: 0 0 0.5rem; }
.legal-list { color: var(--text-secondary); line-height: 1.55; margin: 0 0 0.5rem; padding-left: 1.2rem; }
.legal-list li { margin-bottom: 0.5rem; }
.legal-link { color: var(--accent-1); text-decoration: underline; }
.legal-note {
  margin-top: 1.25rem !important;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-soft);
  font-size: 0.85rem;
  color: var(--text-muted) !important;
}

/* SPOTIFY CONNECT (Lobby / Game) */
.spotify-connect { display: flex; justify-content: center; margin: 0.25rem 0; }
.sp-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: var(--surface);
  color: var(--text-secondary);
}
.sp-badge.premium { color: var(--accent-3); border-color: var(--accent-3); box-shadow: var(--glow-3); }
.sp-badge.muted { color: var(--text-muted); }
.sp-badge i { font-size: 1rem; }
.sp-logout { font-size: 0.8rem; color: var(--text-muted); text-decoration: underline; margin-left: 0.6rem; }

/* PLAYLIST PICKER (Create-Room) */
.picker-loading {
  display: flex; align-items: center; gap: 0.45rem;
  font-size: 0.85rem; color: var(--text-muted);
}
.spin { display: inline-block; animation: hitster-spin 0.9s linear infinite; }
@keyframes hitster-spin { to { transform: rotate(360deg); } }

.playlist-grid {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  max-height: 290px;
  overflow-y: auto;
  padding-right: 0.2rem;
}
.playlist-tile {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  text-align: left;
  padding: 0.5rem;
  border-radius: 12px;
  border: 1px solid var(--border-soft);
  background: var(--surface);
  color: var(--text-primary);
  cursor: pointer;
  transition: border-color 0.12s, background 0.12s, box-shadow 0.12s;
}
.playlist-tile:hover { border-color: var(--accent-1); background: var(--surface-2); }
.playlist-tile.selected { border-color: var(--accent-3); box-shadow: var(--glow-3); }
.playlist-thumb {
  flex: 0 0 auto;
  width: 44px; height: 44px;
  border-radius: 8px;
  background: var(--surface-2) center / cover no-repeat;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-dim);
  overflow: hidden;
}
.playlist-info { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }
.playlist-title {
  font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.playlist-sub { font-size: 0.78rem; color: var(--text-muted); }
.playlist-radio { flex: 0 0 auto; font-size: 1.15rem; color: var(--text-dim); }
.playlist-tile.selected .playlist-radio { color: var(--accent-3); }

/* PLAYLIST DISPLAY (Lobby) */
.playlist-row { display: flex; align-items: center; gap: 0.6rem; min-width: 0; }
.playlist-icon { font-size: 1.25rem; color: var(--accent-3); flex: 0 0 auto; }
.playlist-link {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--accent-1);
  font-size: 0.9rem;
}
.icon-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.6rem;
  border-radius: 10px;
  border: 1px solid var(--border-soft);
  background: var(--surface);
  color: var(--text-secondary);
  cursor: pointer;
}
.icon-btn:disabled { opacity: 0.55; cursor: not-allowed; }