:root {
  --neon: #39ff14;
  --purple: #b600f8;
  --purple-light: #ebb2ff;
  --cyan: #00f6f6;
  --danger: #ffb4ab;
  --danger-bg: #93000a;
  --bg-0: #070e1d;
  --bg-1: #12182a;
  --bg-2: #232a3a;
  --text: #f4f6fb;
  --muted: #9aa3b8;
  --faint: #656e82;
  --border: rgba(255, 255, 255, 0.08);
  --font: "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --nav-h: 72px;
  --r: 12px;
  --pill: 999px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  -webkit-tap-highlight-color: transparent;
  height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.04) 1px, transparent 0) 0 0 / 18px 18px,
    linear-gradient(180deg, var(--bg-0), #0b1222 40%, var(--bg-0));
  padding: calc(12px + var(--safe-t)) 16px calc(var(--nav-h) + 16px + var(--safe-b));
}

a { color: var(--cyan); text-decoration: none; }
a:hover { color: var(--neon); }

img, svg { max-width: 100%; display: block; }

.topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 0 auto 16px;
  max-width: 1100px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--text);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: radial-gradient(circle at 30% 30%, #fff, var(--neon) 55%, #0a3);
  box-shadow: 0 0 16px rgba(57, 255, 20, 0.45);
}

.topbar-meta {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
  min-width: 0;
}

.who-av {
  display: inline-block; width: 40px; height: 40px;
  border-radius: 50%; overflow: hidden;
  border: 2px solid var(--border);
  transition: border-color 0.15s, transform 0.15s;
  flex-shrink: 0;
}
.who-av:hover { border-color: var(--neon); transform: scale(1.05); }
.who-av img { width: 100%; height: 100%; display: block; object-fit: cover; }

.cap-chip, .who, .ping-chip {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 10px;
}

.cap-chip strong { color: var(--neon); }

.lang-switch {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0;
  padding: 3px;
  background: var(--bg-0);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  isolation: isolate;
  flex: 0 0 auto;
  max-width: 100%;
}
.lang-switch button {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  margin: 0;
  padding: 0 0.72em;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1;
  min-height: 28px;
  min-width: 2.6em;
  flex: 1 0 auto;
  cursor: pointer;
  z-index: 0;
}
.lang-switch button + button::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22%;
  bottom: 22%;
  width: 1px;
  background: rgba(255, 255, 255, 0.12);
  pointer-events: none;
}
.lang-switch button[aria-pressed="true"] {
  color: #07140a;
  background: var(--neon);
  font-weight: 700;
  z-index: 1;
}
.lang-switch button[aria-pressed="true"]::before,
.lang-switch button[aria-pressed="true"] + button::before {
  opacity: 0;
}
.lang-switch button:focus {
  outline: none;
}
.lang-switch button:focus-visible {
  box-shadow: inset 0 0 0 2px var(--cyan);
}

.shell {
  margin: 0 auto;
  max-width: 1100px;
}

.panel {
  background: linear-gradient(180deg, rgba(35, 42, 58, 0.92), rgba(12, 18, 32, 0.92));
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 16px;
}

h1, h2, h3 { margin: 0 0 8px; letter-spacing: -0.03em; }
.lede { color: var(--muted); margin: 0 0 16px; }

.cta-wrap { display: grid; place-items: center; padding: 28px 8px; }
.cta-quick {
  appearance: none;
  border: 0;
  cursor: pointer;
  border-radius: var(--pill);
  padding: 18px 42px;
  font-family: var(--font);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  color: #061208;
  background: var(--neon);
  box-shadow: 0 0 0 0 rgba(57, 255, 20, 0.55);
  animation: pulse 2.2s ease-out infinite;
}
.cta-quick:disabled { opacity: 0.45; animation: none; cursor: not-allowed; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(57, 255, 20, 0.45); }
  70% { box-shadow: 0 0 0 18px rgba(57, 255, 20, 0); }
  100% { box-shadow: 0 0 0 0 rgba(57, 255, 20, 0); }
}

.dash {
  display: grid;
  gap: 16px;
}
@media (min-width: 900px) {
  .dash { grid-template-columns: 1.4fr 0.9fr; align-items: start; }
}

.form-grid { display: grid; gap: 10px; }
label { font-size: 12px; color: var(--muted); display: grid; gap: 6px; }
input, select {
  background: var(--bg-0);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  min-height: 44px;
  padding: 0 12px;
  font: inherit;
}

.btn {
  min-height: 44px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-2);
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
}
.btn-pill {
  border-radius: var(--pill);
  background: var(--neon);
  color: #061208;
  border: 0;
}

.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  padding: 8px 12px calc(8px + var(--safe-b));
  background: rgba(7, 14, 29, 0.92);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(16px);
  z-index: 20;
}
.bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: var(--faint);
  font-size: 11px;
  font-weight: 700;
  padding: 8px 4px;
  border-radius: var(--pill);
}
.bottom-nav a .material-symbols-outlined { font-size: 22px; }
.bottom-nav a.active {
  color: var(--neon);
  background: rgba(57, 255, 20, 0.1);
  box-shadow: inset 0 0 0 1px var(--neon);
}
.bottom-nav a.active .material-symbols-outlined {
  font-variation-settings: "FILL" 1;
}
body[data-nav="pro"] .bottom-nav a.active {
  color: #061208;
  background: var(--neon);
  border-radius: var(--pill);
  box-shadow: 0 0 16px rgba(57, 255, 20, 0.55);
}

/* .hist-row — nur Designsystem-Demo, nicht für die echte Leaderboard-Liste */
.hist-row {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}
.lb-row .name { font-weight: 700; color: var(--text); }
.badge-chip {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--purple-light);
}
.flag { font-size: 18px; line-height: 1; vertical-align: -2px; }
.flag-img {
  display: inline-block; vertical-align: -3px;
  border-radius: 3px; box-shadow: 0 0 0 1px rgba(0,0,0,0.15);
  margin-right: 3px;
}
.presence { font-family: var(--mono); font-size: 10px; color: var(--muted); }
.presence.online { color: var(--neon); }
.presence.ingame { color: var(--cyan); }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 16px 0; }
.stat { background: var(--bg-0); border-radius: 8px; padding: 12px; text-align: center; }
.stat b { display: block; font-family: var(--mono); font-size: 22px; color: var(--neon); }
.stat.loss b { color: var(--danger); }
.stat.draw b { color: var(--cyan); }

.bar { height: 10px; border-radius: var(--pill); background: rgba(255,255,255,0.07); overflow: hidden; display: flex; border: 1px solid var(--border); }
.bar .w { background: var(--neon); transition: width 0.4s ease; box-shadow: 0 0 10px rgba(57, 255, 20, 0.8); }
.bar .d { background: var(--cyan); transition: width 0.4s ease; }
.bar .l { background: var(--danger); transition: width 0.4s ease; }

.trophies { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.trophy {
  position: relative;
  aspect-ratio: 1;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(160deg, rgba(255,255,255,0.03) 0%, rgba(0,0,0,0.4) 100%), var(--bg-0);
  font-size: 22px;
  border: 1px solid var(--border);
  opacity: 0.32;
  overflow: hidden;
  transition: opacity 0.3s ease, transform 0.2s ease;
}
.trophy-shine {
  position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,0.18) 50%, transparent 70%);
  transform: translateX(-100%);
  pointer-events: none;
  z-index: 1;
}
.trophy-icon-wrap {
  position: relative;
  width: 60%; aspect-ratio: 1;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,0.15), rgba(0,0,0,0.4));
  z-index: 2;
}
.trophy-icon { font-size: 40px; }
.trophy .vault-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  font-weight: 700;
  z-index: 2;
}
.trophy-count {
  position: absolute; top: 6px; right: 8px;
  background: rgba(0,0,0,0.6);
  border: 1px solid currentColor;
  color: currentColor;
  padding: 2px 8px; border-radius: 999px;
  font-family: var(--mono); font-size: 11px; font-weight: 800;
  z-index: 3;
  box-shadow: 0 0 8px currentColor;
}
.trophy.on { opacity: 1; }
.trophy.on .trophy-icon { font-variation-settings: "FILL" 1; }
.trophy.on:hover { transform: translateY(-4px) scale(1.03); }
.trophy.on:hover .trophy-shine { animation: trophyShine 1s ease-out; }
@keyframes trophyShine {
  from { transform: translateX(-100%); }
  to   { transform: translateX(200%); }
}

.trophy.on.bronze {
  color: #cd7f32; border-color: rgba(205, 127, 50, 0.7);
  box-shadow: 0 0 24px rgba(205, 127, 50, 0.5), inset 0 0 30px rgba(205, 127, 50, 0.15);
}
.trophy.on.silver {
  color: #d8d8d8; border-color: rgba(200, 200, 200, 0.65);
  box-shadow: 0 0 24px rgba(200, 200, 200, 0.45), inset 0 0 30px rgba(200, 200, 200, 0.15);
}
.trophy.on.gold {
  color: #ffd76a; border-color: rgba(255, 215, 106, 0.65);
  box-shadow: 0 0 30px rgba(255, 215, 106, 0.6), inset 0 0 40px rgba(255, 215, 106, 0.15);
}
.trophy.on.titan {
  color: var(--cyan); border-color: rgba(0, 246, 246, 0.6);
  box-shadow: 0 0 34px rgba(0, 246, 246, 0.6), inset 0 0 40px rgba(0, 246, 246, 0.15);
  animation: titanPulse 2.5s ease-in-out infinite;
}
.trophy.on.unbeaten {
  color: #ff6adf; border-color: rgba(255, 106, 223, 0.7);
  box-shadow: 0 0 40px rgba(255, 106, 223, 0.75), 0 0 80px rgba(255, 106, 223, 0.3), inset 0 0 40px rgba(255, 106, 223, 0.2);
  animation: unbeatenPulse 2s ease-in-out infinite;
}
@keyframes titanPulse {
  0%,100% { box-shadow: 0 0 24px rgba(0,246,246,0.5), inset 0 0 30px rgba(0,246,246,0.15); }
  50%     { box-shadow: 0 0 40px rgba(0,246,246,0.8), inset 0 0 50px rgba(0,246,246,0.25); }
}
@keyframes unbeatenPulse {
  0%,100% { box-shadow: 0 0 34px rgba(255,106,223,0.6), 0 0 60px rgba(255,106,223,0.25), inset 0 0 40px rgba(255,106,223,0.15); }
  50%     { box-shadow: 0 0 50px rgba(255,106,223,0.9), 0 0 100px rgba(255,106,223,0.5), inset 0 0 60px rgba(255,106,223,0.3); }
}

.world-map {
  position: relative;
  height: 180px;
  border-radius: 12px;
  overflow: hidden;
  background: #0a1224;
  border: 1px solid var(--border);
}
.world-map svg { width: 100%; height: 100%; }
.world-pin {
  position: absolute;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  box-shadow: 0 0 16px currentColor;
}

.arena {
  display: grid;
  gap: 14px;
}
@media (min-width: 900px) {
  .arena { grid-template-columns: 1fr auto 1fr; align-items: start; }
}

.clock {
  font-family: var(--mono);
  font-size: clamp(1.6rem, 6vw, 2.6rem);
  letter-spacing: 0.04em;
  padding: 12px;
  border-radius: 12px;
  background: var(--bg-2);
  text-align: center;
}
.clock.active { color: var(--cyan); box-shadow: inset 0 0 0 1px var(--cyan); }
.clock.warn { color: var(--danger); background: var(--danger-bg); }
.clock .who-name { display: block; font-size: 12px; color: var(--muted); font-family: var(--font); }

.board-wrap { display: grid; place-items: center; }
.board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  width: min(84vw, 360px);
  aspect-ratio: 1;
}
.cell {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.cell:hover {
  border-color: rgba(57, 255, 20, 0.4);
  background: rgba(57, 255, 20, 0.05);
  box-shadow: inset 0 0 12px rgba(57, 255, 20, 0.08);
}
.cell:active { background: rgba(57, 255, 20, 0.12); }
.cell:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.cell.shake { animation: shake 0.32s ease; }
.cell.valid { border-color: rgba(57,255,20,0.3); }
.cell.valid::before {
  content: '';
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  border: 2px dashed rgba(57,255,20,0.45);
  animation: pulseGhost 1.6s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

.piece {
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: drop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.piece.s1 { width: 38%; height: 38%; z-index: 1; }
.piece.s2 { width: 60%; height: 60%; z-index: 2; }
.piece.s3 { width: 82%; height: 82%; z-index: 3; }
.piece.winning { animation: winPulse 1s ease-in-out infinite, drop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); }
.piece::after {
  content: "";
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  pointer-events: none;
}
.piece.tex-rings::after {
  background: repeating-radial-gradient(circle, rgba(255, 255, 255, 0.45) 0 2px, transparent 2px 7px);
}
.piece.tex-dots::after {
  background: radial-gradient(circle, rgba(0, 0, 0, 0.45) 1.5px, transparent 2px) 0 0 / 7px 7px;
}

.sizes { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.sizes button {
  min-width: 92px;
  min-height: 44px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-2);
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
}
.sizes button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  border-color: var(--border);
  color: var(--muted);
  box-shadow: none;
}
.sizes button[aria-pressed="true"] {
  border-color: var(--neon);
  color: var(--neon);
  box-shadow: 0 0 12px rgba(57, 255, 20, 0.25);
}

.logbook {
  font-family: var(--mono);
  font-size: 12px;
  min-height: 64px;
  max-height: 160px;
  overflow: auto;
  color: var(--muted);
  padding: 6px;
  border-radius: 8px;
  background: #050914;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.log-entry {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 2px 4px;
  border-radius: 4px;
}
.log-entry:first-child { background: rgba(255,255,255,0.04); }
.log-av {
  width: 40px; height: 40px; border-radius: 50%; overflow: hidden;
  flex-shrink: 0; border: 2px solid rgba(255,255,255,0.15);
  display: inline-block;
}
img.av-img {
  width: 100%; height: 100%; display: block; object-fit: cover;
  border-radius: 50%;
}
.log-text { flex: 1; }
.tech {
  display: none;
  font-family: var(--mono);
  font-size: 11px;
  white-space: pre-wrap;
  background: #02040a;
  color: var(--neon);
  padding: 12px;
  border-radius: 8px;
  max-height: 200px;
  overflow: auto;
}
.tech.open { display: block; }

.toggle {
  background: none;
  border: 0;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 12px;
  cursor: pointer;
}

.toast-error {
  color: var(--danger);
  font-family: var(--mono);
  font-size: 12px;
  min-height: 1.2em;
}

.site-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  justify-content: center;
  max-width: 1100px;
  margin: 0 auto 12px;
  font-size: 12px;
  color: var(--faint);
}

.site-legal a { color: var(--muted); }
.site-legal a:hover { color: var(--cyan); }

.legal h2 { margin-top: 1.4em; font-size: 1.05rem; }
.legal p { color: var(--muted); line-height: 1.55; }

.danger-zone, .kyc-box {
  margin-top: 0;
}

.pro-page {
  display: grid;
  gap: 16px;
}
.pro-hero {
  position: relative;
  min-height: 240px;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 40px 16px;
}
.pro-hero .world-map, .pro-hero-map {
  position: absolute;
  inset: 0;
  height: auto;
  filter: hue-rotate(160deg) contrast(0.85) brightness(0.7) saturate(0.6);
}
.pro-hero-map { z-index: 0; }
.pro-hero-map::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7,14,29,0.3), rgba(7,14,29,0.85));
  pointer-events: none;
}
.pro-map-pin-wrap { background: transparent; border: 0; }
.pro-hero .pro-hero-copy, .pro-hero-avatar { position: relative; z-index: 1; }
  border: 0;
  border-radius: 0;
  opacity: 0.42;
  pointer-events: none;
  background: #070e1d;
}
.pro-hero-copy {
  position: relative;
  z-index: 1;
  text-align: center;
}
.pro-hero-copy h1 {
  margin: 0;
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-shadow: 0 0 18px rgba(0, 0, 0, 0.45);
}
.badge-pill {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--neon);
  border: 1px solid var(--neon);
  border-radius: 6px;
  padding: 5px 12px;
  background: rgba(8, 14, 24, 0.75);
  margin-bottom: 12px;
}
.pro-meta {
  margin: 12px 0 0;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.pro-meta .presence { margin-left: 10px; }
.pro-meta .presence.online::before,
.pro-meta .presence.ingame::before { content: "● "; }

.pro-grid { display: grid; gap: 16px; }
@media (min-width: 900px) {
  .pro-grid { grid-template-columns: 1.7fr 0.9fr; align-items: stretch; }
  .pro-hero { min-height: 280px; padding: 56px 32px; }
}
.pro-main { display: grid; gap: 16px; }
.season-panel h2,
.vault-head h2,
.pro-main h2 {
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.ratio-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  margin: 8px 0 12px;
}
.ratio-row .lede {
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.ratio-num {
  font-family: var(--mono);
  font-size: clamp(1.8rem, 5vw, 2.25rem);
  font-weight: 700;
  color: var(--neon);
  text-shadow: 0 0 8px rgba(57, 255, 20, 0.5);
}
.season-panel .bar { height: 14px; }
.season-panel .stats { margin: 12px 0 0; }

.vault-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.vault-head .material-symbols-outlined { color: var(--neon); }
.vault-grid.trophies {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.recent-logs {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--muted);
}
.recent-log {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 8px; border-radius: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  color: var(--text); text-decoration: none;
  transition: background 0.15s;
}
.recent-log:hover { background: rgba(0,246,246,0.06); }
.rl-chip { font-family: var(--mono); font-size: 11px; font-weight: 800; width: 18px; text-align: center; }
.recent-log.win .rl-chip { color: var(--neon); }
.recent-log.loss .rl-chip,
.recent-log.timeout .rl-chip { color: var(--danger); }
.recent-log.draw .rl-chip { color: var(--cyan); }
.rl-av {
  width: 56px; height: 56px; border-radius: 50%; overflow: hidden; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 13px; color: #fff;
  border: 2px solid var(--border);
}
.rl-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rl-opp { font-weight: 700; font-size: 14px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rl-meta { font-family: var(--mono); font-size: 11px; color: var(--faint); }
.rl-outcome.win { color: var(--neon); }
.rl-outcome.loss, .rl-outcome.timeout { color: var(--danger); }
.rl-outcome.draw { color: var(--cyan); }
.rl-arrow { color: var(--faint); font-size: 20px; }
.recent-log:hover .rl-arrow { color: var(--cyan); }

.btn-danger {
  background: var(--danger-bg);
  color: var(--danger);
  border: 0;
  border-radius: var(--pill);
  padding: 12px 18px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}
@keyframes drop {
  0%   { transform: translate(-50%, calc(-50% - 12px)) scale(0.7); opacity: 0; }
  60%  { transform: translate(-50%, calc(-50% + 2px)) scale(1.06); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}
@keyframes pulseGhost {
  0%, 100% { transform: scale(0.92); opacity: 0.4; }
  50%       { transform: scale(1.06); opacity: 0.85; }
}
@keyframes winPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(57,255,20,0.55); }
  50%       { box-shadow: 0 0 0 10px rgba(57,255,20,0); }
}

@media (prefers-reduced-motion: reduce) {
  .cta-quick, .cell.shake, .piece { animation: none !important; }
}

/* ─── Skeleton loader ───────────────────────────────────────────────────── */
.skel-block {
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--r);
  animation: skel-pulse 1.4s ease-in-out infinite alternate;
}
@keyframes skel-pulse { from { opacity: 0.4; } to { opacity: 0.9; } }

/* ─── Guest onboarding ─────────────────────────────────────────────────── */
.guest-hero { padding: 28px 20px 24px; }
.guest-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}
.guest-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  flex-shrink: 0;
}
.guest-title { font-size: clamp(1.3rem, 5vw, 1.8rem); margin: 0 0 4px; }
.guest-tagline { margin: 0; font-size: 13px; }

.onboard-form { display: grid; gap: 14px; }
.onboard-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: end;
}
.onboard-label { font-size: 12px; color: var(--muted); display: grid; gap: 6px; }
.onboard-label-grow { }
.onboard-label-country { min-width: 90px; }
.onboard-cta { width: 100%; margin-top: 4px; }

/* ─── Hub (dashboard logged-in) ────────────────────────────────────────── */
.hub-grid { display: grid; gap: 12px; }

.hub-play-card { }
.hub-play-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.hub-meta-label {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 8px;
}
.hub-cap-block { text-align: right; flex-shrink: 0; }
.hub-cap-num {
  display: block;
  font-family: var(--mono);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--neon);
  text-shadow: 0 0 12px rgba(57, 255, 20, 0.45);
  line-height: 1;
}
.hub-cap-sub {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}

/* ─── Invite panel (Profile page) ──────────────────────────────────────── */
.invite-panel { display: flex; flex-direction: column; gap: 10px; }
.invite-panel-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.invite-panel-icon { font-size: 18px; color: var(--neon); flex-shrink: 0; }
.invite-panel-title { font-family: var(--mono); font-weight: 700; font-size: 13px; color: var(--text); }
.invite-panel-hint { font-size: 12px; color: var(--muted); flex: 1; }
.invite-panel-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-0);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  min-width: 0;
  overflow: hidden;
}

/* Legacy (kept for compatibility, unused) */
.invite-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  min-width: 0;
  overflow: hidden;
}
.invite-strip-lbl {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
}
.invite-url-code {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--cyan);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.btn-copy-inline {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid var(--border);
  background: var(--bg-2);
  color: var(--neon);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  border-radius: 6px;
  padding: 4px 10px;
  cursor: pointer;
  flex-shrink: 0;
  white-space: nowrap;
}
.btn-copy-inline:hover { background: rgba(57, 255, 20, 0.1); }
.copy-ok {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--neon);
  flex-shrink: 0;
}

/* Hub sections */
.hub-section { }
.hub-sec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}
.hub-h2 {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}
.hub-sec-head .hub-h2 { margin-bottom: 0; }
.hub-badge-count {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  background: var(--bg-0);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2px 8px;
}

/* Online strip */
.online-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.online-scroll::-webkit-scrollbar { display: none; }
.online-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 10px 10px 8px;
  border-radius: 12px;
  background: var(--bg-0);
  border: 1px solid var(--border);
  min-width: 72px;
  flex-shrink: 0;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.online-chip:hover { border-color: rgba(57, 255, 20, 0.35); background: rgba(57, 255, 20, 0.04); }
.online-chip-flag { font-size: 18px; line-height: 1; }
.online-chip-name {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--text);
  max-width: 64px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.online-chip-cta {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  color: #061208;
  background: var(--neon);
  border: 0;
  border-radius: 4px;
  padding: 3px 7px;
  cursor: pointer;
  width: 100%;
  text-align: center;
}
.online-chip-cta:hover { opacity: 0.85; }
.online-chip-cta.watch {
  background: none;
  color: var(--cyan);
  border: 1px solid rgba(0, 246, 246, 0.35);
}

/* Live matches list */
.hub-live-list { display: grid; gap: 7px; }
.live-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(0, 246, 246, 0.04);
  border: 1px solid rgba(0, 246, 246, 0.14);
}
.live-row-names {
  flex: 1;
  font-weight: 700;
  font-size: 14px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.live-row-names .vs {
  color: var(--muted);
  font-size: 10px;
  font-family: var(--mono);
  margin: 0 5px;
}
.live-watch-btn {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--cyan);
  background: none;
  border: 1px solid rgba(0, 246, 246, 0.3);
  border-radius: 6px;
  padding: 5px 12px;
  cursor: pointer;
  flex-shrink: 0;
  white-space: nowrap;
}
.live-watch-btn:hover { background: rgba(0, 246, 246, 0.1); }

/* Live dot indicator */
.live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 6px var(--cyan);
  flex-shrink: 0;
  animation: blink-dot 1.2s ease-in-out infinite;
}
@keyframes blink-dot { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

/* Leaderboard actions */
.lb-row {
  transition: background 0.12s;
}
.lb-row:hover {
  background: rgba(255, 255, 255, 0.05);
}
.lb-row-action { display: none; }
.lb-row:hover .lb-row-action { display: flex; gap: 4px; }
.lb-challenge-btn, .lb-spectate-btn {
  appearance: none;
  -webkit-appearance: none;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  border-radius: 6px;
  padding: 4px 9px;
  cursor: pointer;
  border: 0;
}
.lb-challenge-btn {
  background: var(--neon);
  color: #061208;
}
.lb-spectate-btn {
  background: none;
  color: var(--cyan);
  border: 1px solid rgba(0, 246, 246, 0.35);
}
.lb-challenge-btn:hover { opacity: 0.85; }
.lb-spectate-btn:hover { background: rgba(0, 246, 246, 0.1); }

/* ─── Logs page ────────────────────────────────────────────────────────── */
.logs-page { display: grid; gap: 14px; }
.logs-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.logs-title { font-size: 1.4rem; margin: 0; }

/* Stats-Strip (Winrate-Preview oben) */
.logs-stats-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
  padding: 12px 14px; background: var(--bg-1); border: 1px solid var(--border);
  border-radius: 12px; margin: 12px 0;
}
.ls-item { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.ls-item b { font-family: var(--mono); font-size: 22px; font-weight: 800; color: var(--neon); line-height: 1; }
.ls-item:nth-child(3) b, .ls-item:nth-child(4) b { color: #ff3c64; }
.ls-item:first-child b { color: var(--cyan); font-size: 26px; }
.ls-item span { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; }

/* Filter bar */
.lf-bar { display: flex; gap: 4px; }
.lf-btn {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid var(--border);
  background: var(--bg-2);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  border-radius: 8px;
  padding: 6px 12px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.lf-btn.active {
  color: var(--neon);
  border-color: rgba(57, 255, 20, 0.4);
  background: rgba(57, 255, 20, 0.08);
}
.lf-btn:hover:not(.active) {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.15);
}

/* Section divider */
.section-divider {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--cyan);
  padding: 4px 0 8px;
}

/* Log items */
.log-list { display: grid; gap: 6px; }
.log-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid transparent;
  border-left-width: 3px;
  transition: border-color 0.12s, background 0.12s;
  cursor: default;
}
.log-item:hover { background: rgba(255, 255, 255, 0.04); }
.log-item[data-outcome="win"] { border-left-color: var(--neon); }
.log-item[data-outcome="loss"],
.log-item[data-outcome="timeout"] { border-left-color: var(--danger); }
.log-item[data-outcome="draw"] { border-left-color: var(--cyan); }
.log-item[data-outcome="inprogress"] {
  border-left-color: var(--cyan);
  border-color: rgba(0, 246, 246, 0.15);
  background: rgba(0, 246, 246, 0.04);
}
.log-chip {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  width: 26px;
  text-align: center;
  flex-shrink: 0;
}
.log-item[data-outcome="win"] .log-chip { color: var(--neon); }
.log-item[data-outcome="loss"] .log-chip,
.log-item[data-outcome="timeout"] .log-chip { color: var(--danger); }
.log-item[data-outcome="draw"] .log-chip { color: var(--cyan); }
.log-item[data-outcome="inprogress"] .log-chip { color: var(--cyan); }

.log-body { flex: 1; min-width: 0; }
.log-opp {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.log-meta {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}
.log-btn {
  appearance: none;
  -webkit-appearance: none;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--cyan);
  background: none;
  border: 1px solid rgba(0, 246, 246, 0.3);
  border-radius: 6px;
  padding: 5px 11px;
  cursor: pointer;
  flex-shrink: 0;
}
.log-btn:hover { background: rgba(0, 246, 246, 0.1); }

.logs-empty-msg {
  text-align: center;
  padding: 40px 20px;
  margin: 0;
}

/* ─── Profile settings ──────────────────────────────────────────────────── */
.settings-section h2 { font-size: 1rem; margin-bottom: 14px; }
.settings-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 4px; }

/* ─── Unified select style (language + country) ─────────────────────────── */
.lang-select,
select[name="countryCode"] {
  appearance: none;
  -webkit-appearance: none;
  background: var(--bg-0) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%239aa3b8'/%3E%3C/svg%3E") no-repeat right 10px center / 8px;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--neon);
  font-family: var(--mono);
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.lang-select:hover,
select[name="countryCode"]:hover {
  border-color: var(--neon);
  box-shadow: 0 0 0 1px rgba(57,255,20,0.15);
}
.lang-select:focus,
select[name="countryCode"]:focus {
  outline: 2px solid var(--neon);
  outline-offset: 2px;
}
.lang-select option,
select[name="countryCode"] option {
  background: var(--bg-1);
  color: var(--text);
  font-weight: 400;
}

/* ─── Aufgeben-Button ──────────────────────────────────────────────────── */
.arena-forfeit-row { display: flex; justify-content: center; margin-top: 16px; }
.btn-forfeit {
  background: transparent; color: var(--faint);
  border: 1px dashed var(--border);
  border-radius: var(--pill); padding: 6px 16px;
  font-size: 12px; font-weight: 700; cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.btn-forfeit:hover:not(:disabled) {
  color: #ff3c64; border-color: #ff3c64; border-style: solid;
  background: rgba(255,60,100,0.08);
}
.btn-forfeit:disabled { opacity: 0.4; cursor: default; }

/* ─── Notification-Icon (Topbar) ───────────────────────────────────────── */
.notif-btn {
  position: relative; background: var(--bg-2); border: 1px solid var(--border);
  color: var(--muted); border-radius: 50%;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: color 0.15s, border-color 0.15s;
}
.notif-btn:hover { color: var(--cyan); border-color: var(--cyan); }
.notif-btn .material-symbols-outlined { font-size: 20px; }
.notif-btn.has-challenges { color: var(--neon); border-color: var(--neon); animation: notifPulse 1.4s ease-in-out infinite; }
@keyframes notifPulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(57,255,20,0.5); }
  50%     { box-shadow: 0 0 0 8px rgba(57,255,20,0); }
}
.notif-badge {
  position: absolute; top: -4px; right: -4px;
  background: #ff3c64; color: #fff;
  font-family: var(--mono); font-size: 10px; font-weight: 800;
  border-radius: 999px; padding: 1px 6px;
  border: 2px solid var(--bg-1);
  min-width: 18px; text-align: center;
}

/* ─── Challenge-Modal ──────────────────────────────────────────────────── */
.chal-modal {
  background: var(--bg-1); border: 1px solid var(--border);
  border-radius: 18px; padding: 20px 20px 16px;
  max-width: 460px; width: 100%; position: relative;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
  animation: sttConfirmPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.chal-modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.chal-modal-head h2 { margin: 0; font-size: 18px; }
.chal-list { display: flex; flex-direction: column; gap: 8px; max-height: 400px; overflow-y: auto; }
.chal-empty { text-align: center; color: var(--muted); padding: 32px 0; font-size: 14px; }
.chal-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px; background: var(--bg-0); border-radius: 12px;
  border: 1px solid var(--border);
}
.chal-av {
  width: 48px; height: 48px; border-radius: 50%; overflow: hidden;
  border: 2px solid var(--cyan); flex-shrink: 0;
}
.chal-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.chal-body { flex: 1; min-width: 0; }
.chal-name { font-weight: 800; font-size: 14px; }
.chal-sub { font-size: 11px; color: var(--muted); }
.chal-actions { display: flex; flex-direction: column; gap: 4px; flex-shrink: 0; }
.chal-btn {
  min-height: 32px; padding: 0 14px; border-radius: var(--pill);
  font-size: 12px; font-weight: 700; cursor: pointer; border: 1px solid;
  transition: box-shadow 0.15s;
}
.chal-btn:disabled { opacity: 0.5; cursor: default; }
.chal-accept { background: var(--neon); color: #061208; border-color: var(--neon); }
.chal-accept:hover:not(:disabled) { box-shadow: 0 0 12px rgba(57,255,20,0.4); }
.chal-decline { background: var(--bg-2); color: var(--faint); border-color: var(--border); }
.chal-decline:hover:not(:disabled) { color: #ff3c64; border-color: #ff3c64; }

/* ─── Queue Search-State (Arena Lobby) ─────────────────────────────────── */
#arena-search-state, #arena-found-state {
  text-align: center; padding: 32px 20px;
}
.q-orb {
  width: 96px; height: 96px; margin: 0 auto 24px;
  border-radius: 50%;
  border: 3px solid var(--cyan);
  position: relative;
  animation: qOrbPulse 2s ease-in-out infinite;
}
.q-orb::before, .q-orb::after {
  content: ""; position: absolute; inset: 0;
  border-radius: 50%; border: 3px solid var(--cyan);
  animation: qOrbRing 2s ease-out infinite;
  opacity: 0;
}
.q-orb::after { animation-delay: 1s; }
.q-orb-dot {
  position: absolute; top: 50%; left: 50%;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--cyan);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 20px var(--cyan);
}
@keyframes qOrbPulse {
  0%,100% { box-shadow: 0 0 24px rgba(0,246,246,0.4); }
  50%     { box-shadow: 0 0 40px rgba(0,246,246,0.8); }
}
@keyframes qOrbRing {
  0%   { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(2.2); opacity: 0; }
}
.q-title { font-size: 24px; margin: 0 0 8px; }
.q-timer {
  font-family: var(--mono); font-size: 32px; font-weight: 800;
  color: var(--neon); margin: 4px 0;
}
.q-sub { color: var(--muted); font-size: 13px; margin: 0 0 24px; max-width: 320px; margin-left: auto; margin-right: auto; }
.q-cancel {
  min-height: 44px; padding: 0 32px;
  border-radius: var(--pill); font-weight: 800; font-size: 14px;
  background: var(--danger-bg); color: #fff; border: 0; cursor: pointer;
  transition: box-shadow 0.15s;
}
.q-cancel:hover { box-shadow: 0 0 20px rgba(255,60,100,0.4); }

/* Match found flash */
.q-found-check {
  width: 96px; height: 96px; margin: 0 auto 20px;
  border-radius: 50%;
  background: rgba(57,255,20,0.15);
  display: flex; align-items: center; justify-content: center;
  animation: qFoundPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.q-found-check .material-symbols-outlined {
  font-size: 64px; color: var(--neon);
  font-variation-settings: "FILL" 1;
}
@keyframes qFoundPop {
  0%   { transform: scale(0.3); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
.q-found-title {
  font-size: 26px; margin: 0 0 8px;
  color: var(--neon);
  text-shadow: 0 0 20px rgba(57,255,20,0.5);
}

/* ─── Arena Player-Bar (Split-Screen mit Avataren + Timer) ─────────────── */
.arena-bar {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px;
  align-items: center; margin-bottom: 16px;
}
.arena-player {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg-1); border: 2px solid var(--border);
  border-radius: 16px; padding: 12px 16px;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.2s;
  position: relative; overflow: hidden;
}
.arena-player.active {
  border-color: var(--cyan);
  box-shadow: 0 0 24px rgba(0,246,246,0.35);
  transform: scale(1.02);
}
.arena-player.active::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 100%, rgba(0,246,246,0.12), transparent 70%);
  pointer-events: none;
}
.arena-player-opp { flex-direction: row-reverse; }
.arena-player-av {
  width: 56px; height: 56px; border-radius: 50%; overflow: hidden;
  border: 2px solid var(--player-color, var(--border));
  flex-shrink: 0; z-index: 1;
}
.arena-player-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; z-index: 1; flex: 1; }
.arena-player-body-right { align-items: flex-end; text-align: right; }
.arena-player-name {
  font-weight: 800; font-size: 13px; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  letter-spacing: 0.02em;
}
.arena-player-clock {
  font-family: var(--mono); font-size: 26px; font-weight: 800;
  color: var(--cyan); line-height: 1; letter-spacing: 0.02em;
  transition: color 0.2s, text-shadow 0.2s;
}
.arena-player-clock.warn { color: #ff9e00; text-shadow: 0 0 12px rgba(255,158,0,0.4); }
.arena-player-clock.critical {
  color: #ff3c64; text-shadow: 0 0 16px rgba(255,60,100,0.6);
  animation: clockCritical 0.6s ease-in-out infinite alternate;
}
@keyframes clockCritical {
  from { transform: scale(1); }
  to   { transform: scale(1.08); }
}
.arena-vs {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 0 8px;
}
.arena-vs-txt {
  font-family: var(--mono); font-size: 12px; font-weight: 800; color: var(--faint);
  letter-spacing: 0.1em;
}
.arena-vs-turn {
  font-family: var(--mono); font-size: 10px; color: var(--muted);
  padding: 2px 8px; background: var(--bg-2); border-radius: 999px;
}

@media (max-width: 640px) {
  .arena-bar { grid-template-columns: 1fr auto 1fr; gap: 6px; }
  .arena-player { padding: 10px 12px; gap: 8px; }
  .arena-player-av { width: 44px; height: 44px; }
  .arena-player-clock { font-size: 20px; }
  .arena-player-name { font-size: 11px; }
}

/* ─── Dashboard Personal Hero ──────────────────────────────────────────── */
.dash-hero {
  display: flex; align-items: center; gap: 20px;
  padding: 20px 24px;
  background: linear-gradient(135deg, rgba(0,246,246,0.06) 0%, rgba(57,255,20,0.03) 100%), var(--bg-1);
  border-color: rgba(0,246,246,0.25);
  position: relative; overflow: hidden;
}
.dash-hero::before {
  content: ""; position: absolute; top: -40px; right: -40px;
  width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,246,246,0.12), transparent 70%);
  pointer-events: none;
}
.dash-hero-av {
  width: 84px; height: 84px; border-radius: 50%; overflow: hidden;
  border: 3px solid var(--cyan); flex-shrink: 0;
  box-shadow: 0 0 24px rgba(0,246,246,0.25);
  z-index: 1;
}
.dash-hero-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dash-hero-body { flex: 1; z-index: 1; min-width: 0; }
.dash-hero-greet {
  font-family: var(--mono); font-size: 11px; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.08em; margin: 0;
}
.dash-hero-name {
  font-size: 32px; font-weight: 800; margin: 2px 0 12px;
  letter-spacing: -0.01em;
}
.dash-hero-stats {
  display: flex; gap: 24px;
}
.dash-hero-stat { display: flex; flex-direction: column; gap: 2px; }
.dash-hero-stat b {
  font-family: var(--mono); font-size: 22px; font-weight: 800; color: var(--neon); line-height: 1;
}
.dash-hero-stat:nth-child(2) b { color: #ff3c64; }
.dash-hero-stat:nth-child(3) b { color: var(--cyan); font-size: 14px; margin-top: 6px; }
.dash-hero-stat span { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; }
@media (max-width: 640px) {
  .dash-hero { flex-direction: column; text-align: center; }
  .dash-hero-stats { justify-content: center; }
}

/* ─── Homepage: Spielmodi-Kacheln ──────────────────────────────────────── */
.modes-grid {
  display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.mode-card {
  background: var(--bg-0); border: 1px solid var(--border);
  border-radius: 14px; padding: 20px;
  display: flex; flex-direction: column; gap: 8px;
  text-decoration: none; color: var(--text);
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
  position: relative; overflow: hidden;
  cursor: pointer;
}
.mode-card:not(.mode-disabled):hover {
  transform: translateY(-3px); border-color: var(--cyan);
  box-shadow: 0 8px 24px rgba(0,246,246,0.15);
}
.mode-primary {
  background: linear-gradient(135deg, rgba(57,255,20,0.12), rgba(57,255,20,0.02));
  border-color: rgba(57,255,20,0.4);
}
.mode-primary:hover { border-color: var(--neon) !important; box-shadow: 0 8px 32px rgba(57,255,20,0.25) !important; }
.mode-disabled { opacity: 0.55; cursor: not-allowed; }
.mode-badge {
  font-family: var(--mono); font-size: 10px; font-weight: 800;
  color: var(--neon); letter-spacing: 0.08em;
  background: rgba(57,255,20,0.1); padding: 3px 8px; border-radius: 999px;
  align-self: flex-start;
}
.mode-badge-soon { color: var(--faint); background: rgba(255,255,255,0.05); }
.mode-badge-alt { color: var(--cyan); background: rgba(0,246,246,0.1); }
.mode-icon { font-size: 40px; color: var(--neon); }
.mode-primary .mode-icon { color: var(--neon); }
.mode-disabled .mode-icon { color: var(--faint); }
.mode-card:nth-child(3) .mode-icon { color: var(--cyan); }
.mode-title { font-size: 20px; margin: 0; font-weight: 800; }
.mode-desc { font-size: 13px; color: var(--muted); margin: 0; line-height: 1.4; }
.mode-cta {
  font-family: var(--mono); font-size: 12px; font-weight: 700;
  color: var(--cyan); margin-top: 4px;
}
.mode-primary .mode-cta { color: var(--neon); }
.mode-disabled .mode-cta { color: var(--faint); }

/* ─── Player-Modal (Klick auf Avatar) ──────────────────────────────────── */
.pm-card {
  position: relative;
  background: var(--bg-1); border: 1px solid var(--border);
  border-radius: 18px; padding: 24px;
  max-width: 380px; width: 100%;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
  animation: sttConfirmPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.pm-loading, .pm-err { text-align: center; padding: 24px; color: var(--muted); }
.pm-err { color: var(--danger); }
.pm-close {
  position: absolute; top: 12px; right: 12px;
  background: none; border: 0; color: var(--muted);
  font-size: 20px; cursor: pointer; width: 32px; height: 32px;
  border-radius: 50%; transition: background 0.12s;
}
.pm-close:hover { background: rgba(255,255,255,0.06); color: var(--text); }
.pm-hero { display: flex; gap: 16px; align-items: center; margin-bottom: 20px; }
.pm-av {
  width: 84px; height: 84px; border-radius: 50%; overflow: hidden;
  border: 3px solid var(--cyan); flex-shrink: 0;
  box-shadow: 0 0 24px rgba(0,246,246,0.3);
}
.pm-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pm-hero-txt { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pm-name { margin: 0; font-size: 22px; font-weight: 800; }
.pm-badge { font-family: var(--mono); font-size: 11px; color: var(--neon); font-weight: 700; }
.pm-presence { font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; }
.pm-presence.online { color: var(--cyan); }
.pm-presence.ingame { color: #ff3c64; }
.pm-presence.offline { color: var(--faint); }
.pm-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
  padding: 12px; background: var(--bg-0); border-radius: 12px;
  margin-bottom: 16px;
}
.pm-stat { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.pm-stat b { font-family: var(--mono); font-size: 18px; color: var(--cyan); }
.pm-stat span { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.pm-actions { display: flex; flex-direction: column; gap: 8px; }
.pm-btn {
  min-height: 44px; border-radius: var(--pill); padding: 0 18px;
  font-family: var(--font); font-size: 14px; font-weight: 700;
  border: 1px solid var(--border); background: var(--bg-2); color: var(--text);
  cursor: pointer; text-decoration: none; text-align: center;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  transition: border-color 0.15s, background 0.15s;
}
.pm-btn:hover:not(:disabled) { border-color: var(--cyan); }
.pm-btn:disabled { opacity: 0.5; cursor: default; }
.pm-btn-primary {
  background: var(--neon); color: #061208; border-color: var(--neon);
  font-size: 15px; font-weight: 800;
}
.pm-btn-primary:hover:not(:disabled) { box-shadow: 0 0 20px rgba(57,255,20,0.4); border-color: var(--neon) !important; }

/* Toast Notification Stack */
.stt-toast-stack {
  position: fixed; top: 76px; right: 20px; z-index: 1100;
  display: flex; flex-direction: column; gap: 8px;
  max-width: 360px; pointer-events: none;
}
.stt-toast {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg-1); border: 1px solid var(--border);
  border-radius: 12px; padding: 10px 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  font-size: 13px; font-weight: 600;
  transform: translateX(110%); opacity: 0;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s;
  pointer-events: auto;
}
.stt-toast-in { transform: translateX(0); opacity: 1; }
.stt-toast-out { transform: translateX(110%); opacity: 0; }
.stt-toast-icon { font-size: 20px; flex-shrink: 0; font-variation-settings: "FILL" 1; }
.stt-toast-info  { border-color: rgba(0,246,246,0.4); }
.stt-toast-info  .stt-toast-icon { color: var(--cyan); }
.stt-toast-ok    { border-color: rgba(57,255,20,0.4); }
.stt-toast-ok    .stt-toast-icon { color: var(--neon); }
.stt-toast-error { border-color: rgba(255,60,100,0.4); }
.stt-toast-error .stt-toast-icon { color: #ff3c64; }
.stt-toast-warn  { border-color: rgba(255,158,0,0.4); }
.stt-toast-warn  .stt-toast-icon { color: #ff9e00; }

/* Custom Confirm Dialog */
.stt-confirm-backdrop {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(7,14,29,0.78);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  animation: sttConfirmIn 0.2s ease-out;
}
@keyframes sttConfirmIn { from { opacity: 0; } to { opacity: 1; } }
.stt-confirm-card {
  background: var(--bg-1); border: 1px solid var(--border);
  border-radius: 18px; padding: 32px 28px 24px;
  max-width: 400px; width: 100%; text-align: center;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
  animation: sttConfirmPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes sttConfirmPop {
  from { transform: scale(0.85); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.stt-confirm-danger { border-color: rgba(255,60,100,0.4); box-shadow: 0 12px 40px rgba(255,60,100,0.15); }
.stt-confirm-icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(0,246,246,0.1); color: var(--cyan);
  margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
}
.stt-confirm-icon .material-symbols-outlined { font-size: 32px; }
.stt-confirm-danger .stt-confirm-icon { background: rgba(255,60,100,0.12); color: #ff3c64; }
.stt-confirm-title { margin: 0 0 8px; font-size: 20px; font-weight: 800; color: var(--text); }
.stt-confirm-msg { margin: 0 0 24px; font-size: 14px; color: var(--muted); line-height: 1.5; }
.stt-confirm-actions { display: flex; gap: 10px; justify-content: center; }
.stt-confirm-btn {
  flex: 1; min-height: 44px; border-radius: var(--pill);
  font-family: var(--font); font-weight: 700; font-size: 14px;
  cursor: pointer; padding: 0 20px;
  border: 1px solid var(--border); background: var(--bg-2); color: var(--text);
  transition: border-color 0.15s, background 0.15s;
}
.stt-confirm-btn:hover { border-color: var(--cyan); }
.stt-confirm-ok { background: var(--neon); color: #061208; border-color: var(--neon); }
.stt-confirm-ok:hover { box-shadow: 0 0 20px rgba(57,255,20,0.4); border-color: var(--neon); }
.stt-confirm-danger-btn { background: var(--danger-bg); color: #fff; border-color: var(--danger-bg); }
.stt-confirm-danger-btn:hover { box-shadow: 0 0 20px rgba(255,60,100,0.4); border-color: #ff3c64; }

/* Cylinder-Farb-Picker (Profil) */
.cyl-picker {
  background: var(--bg-0); border: 1px solid var(--border);
  border-radius: 12px; padding: 16px 18px;
  margin-top: 4px;
}
.cyl-label {
  margin: 0 0 12px; font-size: 12px; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700;
  font-family: var(--mono);
}
.cyl-row { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.cyl-slot {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  cursor: pointer; padding: 8px; border-radius: 14px;
  transition: background 0.15s;
  position: relative;
}
.cyl-slot:hover { background: rgba(255,255,255,0.03); }
.cyl-orb {
  position: relative;
  width: 84px; height: 84px; border-radius: 50%;
  box-shadow: 0 6px 18px rgba(0,0,0,0.4), inset 0 -8px 20px rgba(0,0,0,0.35), inset 0 4px 10px rgba(255,255,255,0.25);
  transition: transform 0.15s, box-shadow 0.2s;
}
.cyl-slot:hover .cyl-orb { transform: scale(1.06); }
.cyl-orb::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  pointer-events: none;
}
.cyl-orb.tex-rings::after {
  background: repeating-radial-gradient(circle, rgba(255,255,255,0.35) 0 2px, transparent 2px 8px);
}
.cyl-orb-primary { background: var(--primary-color, #39FF14); }
.cyl-orb-secondary { background: var(--secondary-color, #B600F8); }
.cyl-name { font-size: 12px; color: var(--muted); font-weight: 700; }
.cyl-hex { font-family: var(--mono); font-size: 11px; color: var(--faint); }
.cyl-input {
  position: absolute; inset: 0; opacity: 0; cursor: pointer;
  width: 100%; height: 100%; z-index: 3;
}
.cyl-orb, .cyl-orb::after { pointer-events: none; }
.cyl-hint {
  margin: 12px 0 0; text-align: center;
  font-size: 11px; color: var(--faint);
}

/* Country Picker (~200 Länder, suchbar) */
.cp-wrap { position: relative; }
.cp-btn {
  display: flex; align-items: center; gap: 10px;
  width: 100%; min-height: 44px;
  background: var(--bg-0); color: var(--text);
  border: 1px solid var(--border); border-radius: 10px;
  padding: 6px 12px; cursor: pointer;
  font-family: var(--font); font-size: 14px; font-weight: 600;
  transition: border-color 0.15s;
}
.cp-btn:hover { border-color: var(--cyan); }
.cp-btn-flag { display: inline-flex; align-items: center; flex-shrink: 0; }
.cp-btn-flag img { border-radius: 3px; box-shadow: 0 0 0 1px rgba(0,0,0,0.2); }
.cp-btn-name { flex: 1; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cp-caret { color: var(--muted); font-size: 12px; }
.cp-menu {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0;
  background: var(--bg-1); border: 1px solid var(--border);
  border-radius: 12px; padding: 8px;
  z-index: 100;
  box-shadow: 0 12px 32px rgba(0,0,0,0.5);
  display: flex; flex-direction: column; gap: 6px;
}
.cp-search {
  background: var(--bg-0); color: var(--text);
  border: 1px solid var(--border); border-radius: 8px;
  padding: 8px 12px; font: inherit;
  min-height: 36px;
}
.cp-search:focus { outline: 2px solid var(--cyan); outline-offset: 1px; }
.cp-list {
  list-style: none; margin: 0; padding: 0;
  max-height: 320px; overflow-y: auto;
  scrollbar-width: thin;
}
.cp-list li {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: 6px; cursor: pointer;
  transition: background 0.12s;
}
.cp-list li:hover { background: rgba(0,246,246,0.1); }
.cp-flag { border-radius: 3px; box-shadow: 0 0 0 1px rgba(0,0,0,0.2); flex-shrink: 0; }
.cp-name { flex: 1; font-size: 14px; }
.cp-code { font-family: var(--mono); font-size: 11px; color: var(--faint); }

/* Custom Language Picker (topbar) */
.lang-picker { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: 999px; padding: 5px 10px 5px 8px;
  cursor: pointer; color: var(--text);
  transition: border-color 0.15s, background 0.15s;
  min-height: 32px;
}
.lang-btn:hover { border-color: var(--cyan); }
.lang-flag { font-size: 20px; line-height: 1; }
.lang-caret { font-size: 10px; color: var(--muted); }
.lang-menu {
  position: absolute; top: calc(100% + 6px); right: 0;
  background: var(--bg-1); border: 1px solid var(--border);
  border-radius: 12px; padding: 6px;
  list-style: none; margin: 0;
  min-width: 160px; z-index: 100;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.lang-menu li {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: 8px;
  cursor: pointer; user-select: none;
  transition: background 0.12s;
}
.lang-menu li:hover, .lang-menu li:focus { background: rgba(0,246,246,0.1); outline: none; }
.lang-flag-lg { font-size: 22px; line-height: 1; }
.lang-name { font-size: 13px; font-weight: 600; }

/* profile form country */
select[name="countryCode"] {
  font-size: 13px;
  padding: 0 32px 0 12px;
}

/* ─── Leaderboard — neue Struktur ──────────────────────────────────────── */
.lb-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.lb-total-badge {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}
.lb-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.lb-search-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-0);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0 10px;
}
.lb-search-icon { font-size: 16px; color: var(--muted); }
.lb-search {
  flex: 1;
  background: none;
  border: none;
  color: var(--text);
  font-family: var(--font);
  font-size: 13px;
  padding: 7px 0;
  outline: none;
}
.lb-search::placeholder { color: var(--faint); }
.lb-paging { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.lb-pg-btn {
  appearance: none;
  -webkit-appearance: none;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-0);
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lb-pg-btn:disabled { opacity: 0.3; cursor: default; }
.lb-pg-btn:not(:disabled):hover { background: var(--bg-2); color: var(--text); }
.lb-pg-info { font-family: var(--mono); font-size: 11px; color: var(--muted); min-width: 36px; text-align: center; }

/* Leaderboard row — neue Spalten: rank | info | stats | action */
.lb-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.lb-row {
  display: grid;
  grid-template-columns: 32px 68px 1fr auto auto;
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid transparent;
  transition: background 0.12s, border-color 0.12s;
}
.lb-row:hover { background: rgba(255, 255, 255, 0.05); border-color: var(--border); }
.lb-row-self { border-color: rgba(57,255,20,0.2); background: rgba(57,255,20,0.04); }

.lb-rank {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--faint);
  text-align: center;
}
.lb-rank-top1 { color: #FFD700; }
.lb-rank-top2 { color: #C0C0C0; }
.lb-rank-top3 { color: #CD7F32; }

/* Leaderboard avatar */
.lb-av {
  width: 64px; height: 64px; border-radius: 50%; overflow: hidden;
  flex-shrink: 0; border: 2px solid var(--border); align-self: center;
}
.lb-av-svg svg { width: 100%; height: 100%; display: block; }
.lb-av-ph {
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 13px; font-weight: 800; color: rgba(255,255,255,0.85);
}
.lb-row-self .lb-av { border-color: rgba(57,255,20,0.45); }

.lb-info { min-width: 0; }
.lb-name-row { display: flex; align-items: center; gap: 5px; }
.lb-name {
  font-weight: 700;
  font-size: 13px;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
}
.lb-name:hover { color: var(--neon); }
.lb-pres { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.lb-pres.online { background: var(--neon); box-shadow: 0 0 6px rgba(57,255,20,0.5); }
.lb-pres.ingame { background: var(--cyan); box-shadow: 0 0 6px rgba(0,246,246,0.5); }
.lb-sub-row { margin-top: 1px; }
.badge-chip.sm { font-size: 9px; }

.lb-stats {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
}
.lb-stat-wg {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
}
.lb-stat-wg small { font-size: 10px; color: var(--muted); font-weight: 400; }
.lb-stat-pct { font-family: var(--mono); font-size: 10px; }

.lb-row-action { display: flex; gap: 4px; }
.btn-pill {
  appearance: none;
  -webkit-appearance: none;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--pill);
  background: var(--neon);
  color: #061208;
  border: none;
  cursor: pointer;
  transition: opacity 0.12s;
}
.btn-pill:hover { opacity: 0.85; }
.btn-pill-ghost {
  appearance: none;
  -webkit-appearance: none;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--pill);
  background: none;
  color: var(--cyan);
  border: 1px solid rgba(0,246,246,0.4);
  cursor: pointer;
}
.btn-pill-ghost:hover { background: rgba(0,246,246,0.1); }

/* ─── Invite / Referral ─────────────────────────────────────────────────── */
.btn-share-inline {
  appearance: none;
  -webkit-appearance: none;
  background: rgba(57,255,20,0.1);
  border: 1px solid rgba(57,255,20,0.3);
  border-radius: 8px;
  color: var(--neon);
  padding: 4px 8px;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.12s;
}
.btn-share-inline:hover { background: rgba(57,255,20,0.2); }
.invite-ref-hint {
  font-size: 11px;
  color: var(--faint);
  font-family: var(--mono);
  margin: 4px 0 0;
  padding: 0 2px;
}

/* ─── Logs — mehr Infos ─────────────────────────────────────────────────── */
.logs-title-row { display: flex; align-items: center; gap: 10px; }
.btn-dl {
  appearance: none;
  -webkit-appearance: none;
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  padding: 5px 10px;
  cursor: pointer;
  transition: color 0.12s, border-color 0.12s;
}
.btn-dl:hover { color: var(--text); border-color: rgba(255,255,255,0.2); }

.log-body { flex: 1; min-width: 0; }
.log-opp-name { font-weight: 700; font-size: 14px; color: var(--text); text-decoration: none; }
.log-opp-name:hover { color: var(--neon); }
.flag-sm { font-size: 16px; line-height: 1; margin-right: 2px; vertical-align: -1px; }
.log-sep { color: var(--faint); margin: 0 2px; }
.log-time { color: var(--muted); }
.log-result.win { color: var(--neon); font-weight: 700; }
.log-result.loss, .log-result.timeout { color: var(--danger); font-weight: 700; }
.log-result.draw { color: var(--cyan); font-weight: 700; }
.log-id { color: var(--faint); font-family: var(--mono); font-size: 10px; }
.log-actions { display: flex; gap: 6px; flex-shrink: 0; }
.log-btn-link {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 9px;
  transition: color 0.12s;
}
.log-btn-link:hover { color: var(--cyan); border-color: rgba(0,246,246,0.3); }

/* ─── Legal links (Profile-Seite) ───────────────────────────────────────── */
.legal-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 0 4px;
  font-size: 11px;
  color: var(--faint);
}
.legal-links a { color: var(--faint); }
.legal-links a:hover { color: var(--muted); }

/* ─── Social: Favoriten-Stern + Herz-Like ───────────────────────────────── */
.btn-fav, .btn-like {
  appearance: none;
  -webkit-appearance: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 5px 10px;
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
  transition: border-color 0.15s, background 0.15s, transform 0.12s;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
}
.btn-fav:hover { border-color: rgba(255,215,0,0.5); color: #FFD700; }
.btn-fav.active { border-color: rgba(255,215,0,0.7); color: #FFD700; background: rgba(255,215,0,0.08); }
.btn-fav.active:hover { background: rgba(255,215,0,0.14); }
.btn-like:hover { border-color: rgba(255,100,130,0.5); color: #ff6482; }
.btn-like.active { border-color: rgba(255,100,130,0.7); color: #ff6482; background: rgba(255,100,130,0.08); }
.btn-like.active:hover { background: rgba(255,100,130,0.14); }
.btn-fav:active, .btn-like:active { transform: scale(0.9); }

.social-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}

/* Lb-row: Stern-Button in Leaderboard */
.lb-fav-btn {
  appearance: none;
  -webkit-appearance: none;
  background: none;
  border: none;
  padding: 3px 4px;
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
  opacity: 0.3;
  transition: opacity 0.15s, transform 0.12s;
  color: #FFD700;
}
.lb-fav-btn.active { opacity: 1; }
.lb-fav-btn:hover { opacity: 0.8; transform: scale(1.15); }

/* ─── Arena: Timer-Bar + Lobby ───────────────────────────────────────────── */
.arena-timer-wrap {
  padding: 10px 12px 8px;
  border-radius: 12px;
  background: var(--bg-2);
  margin-bottom: 4px;
}
.arena-timer-track {
  height: 6px;
  background: rgba(255,255,255,0.1);
  border-radius: var(--pill);
  overflow: hidden;
  margin-bottom: 6px;
}
.arena-timer-fill {
  height: 100%;
  background: var(--cyan);
  border-radius: var(--pill);
  transition: width 0.5s linear, background 0.4s;
  width: 100%;
}
.arena-timer-fill.warn { background: var(--danger); }
.arena-timer-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}
.arena-timer-who { font-weight: 700; color: var(--text); }
.arena-timer-clock {
  font-size: 1.2rem;
  letter-spacing: 0.04em;
  color: var(--cyan);
  margin-left: auto;
}
.arena-timer-clock.warn { color: var(--danger); }
.arena-timer-vs { color: var(--faint); margin: 0 2px; }
.arena-timer-opp { opacity: 0.6; }

.arena-lobby {
  text-align: center;
  padding: 32px 20px;
}
.arena-lobby h2 { margin: 0 0 8px; font-size: 1.4rem; }
.arena-lobby p { color: var(--muted); margin: 0 0 20px; }
.arena-board-wrap { display: none; }
.arena-board-wrap.visible { display: block; }

/* ─── Tutorial Overlay ──────────────────────────────────────────────────── */
.tut-overlay {
  position: fixed; inset: 0; z-index: 900;
  background: rgba(7,14,29,0.88);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.tut-card {
  background: var(--bg-1);
  border: 1px solid rgba(0,246,246,0.25);
  border-radius: 20px;
  padding: 32px 28px;
  max-width: 380px;
  width: 100%;
  text-align: center;
  box-shadow: 0 0 40px rgba(0,246,246,0.08);
}
.tut-step { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.tut-emoji { font-size: 48px; line-height: 1; }
.tut-h { margin: 0; font-size: 22px; font-weight: 800; }
.tut-body { margin: 0; font-size: 15px; line-height: 1.5; color: var(--muted); }
.tut-body strong { color: var(--text); }
.tut-small { font-size: 13px; }
.tut-rule-pill {
  background: rgba(0,246,246,0.1);
  color: var(--cyan);
  border: 1px solid rgba(0,246,246,0.35);
  border-radius: var(--pill);
  padding: 8px 22px;
  font-weight: 800;
  font-size: 17px;
}
.tut-step-nr { margin: 0; font-size: 12px; font-family: var(--mono); color: var(--faint); }
.tut-board-wrap { width: 178px; }
.tut-board-wrap .board { width: 178px; }
.tut-sz-row { display: flex; gap: 8px; }
.tut-sz {
  width: 42px; height: 42px;
  border-radius: var(--pill);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 13px; font-family: var(--mono);
  background: var(--bg-2); color: var(--muted);
  border: 1px solid var(--border);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.tut-sz[data-sel="true"] {
  background: rgba(0,246,246,0.12);
  color: var(--cyan);
  border-color: rgba(0,246,246,0.5);
}
.cell.tut-target {
  border-color: var(--cyan) !important;
  animation: tutTargetPulse 1.2s ease-in-out infinite;
}
@keyframes tutTargetPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0,246,246,0.5); }
  50%       { box-shadow: 0 0 0 8px rgba(0,246,246,0); }
}

/* ─── Log-Wrap (avatar + expand) ────────────────────────────────────────── */
.log-wrap { border-radius: 10px; overflow: hidden; }
.log-item {
  display: flex; align-items: center; gap: 10px;
  position: relative;
}
.log-item-open { background: rgba(0,246,246,0.04); }
.log-av-sm {
  width: 60px; height: 60px; border-radius: 50%; overflow: hidden; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 14px; color: #fff; border: 2px solid var(--border);
}
.log-expand-icon {
  font-size: 10px; color: var(--faint); margin-left: 4px;
  transition: transform 0.2s;
}
.log-item-open .log-expand-icon { transform: rotate(90deg); color: var(--cyan); }

/* ─── Match Replay Detail ────────────────────────────────────────────────── */
.log-detail {
  background: var(--bg-0);
  border-top: 1px solid var(--border);
  padding: 16px;
}
.rd-loading { color: var(--muted); font-size: 13px; text-align: center; padding: 16px 0; }
.rd-err { color: var(--danger); font-size: 13px; text-align: center; padding: 8px 0; }
.rd-header {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  margin-bottom: 14px;
}
.rd-player { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; }
.rd-av {
  border-radius: 50%; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; color: #fff; flex-shrink: 0;
}
.rd-av-lg { width: 56px; height: 56px; font-size: 18px; }
.rd-av-sm { width: 36px; height: 36px; font-size: 13px; }
.rd-av-svg svg { width: 100%; height: 100%; display: block; }
.rd-vs { color: var(--faint); font-size: 12px; font-weight: 700; }
.rd-body { display: flex; gap: 16px; }
.rd-board-wrap { display: flex; flex-direction: column; align-items: center; gap: 10px; flex-shrink: 0; }
.rd-board { width: 156px; }
.rd-board .cell { transition: box-shadow 0.2s; }
.rd-cell-highlight { box-shadow: 0 0 0 2px var(--cyan) !important; }
.rd-nav {
  display: flex; align-items: center; gap: 8px;
}
.rd-nav-btn {
  background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--pill);
  color: var(--text); font-size: 12px; padding: 4px 12px; cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.rd-nav-btn:hover:not(:disabled) { background: rgba(0,246,246,0.1); border-color: var(--cyan); }
.rd-nav-btn:disabled { opacity: 0.35; cursor: default; }
.rd-nav-label { font-family: var(--mono); font-size: 12px; color: var(--muted); min-width: 70px; text-align: center; }
.rd-nav-meta {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%; margin-top: 8px;
}
.rd-share-btn {
  background: var(--bg-2); border: 1px solid var(--border); color: var(--cyan);
  border-radius: var(--pill); padding: 5px 12px; font-size: 12px; font-weight: 700;
  cursor: pointer; display: inline-flex; align-items: center; gap: 4px;
  transition: border-color 0.15s, background 0.15s;
}
.rd-share-btn:hover { border-color: var(--cyan); background: rgba(0,246,246,0.1); }
.rd-moves {
  flex: 1; max-height: 200px; overflow-y: auto;
  display: flex; flex-direction: column; gap: 3px;
  scrollbar-width: thin;
}
.rd-move {
  display: flex; align-items: center; gap: 7px;
  padding: 5px 8px; border-radius: 8px; cursor: pointer;
  transition: background 0.12s;
}
.rd-move:hover { background: rgba(255,255,255,0.04); }
.rd-move-cur { background: rgba(0,246,246,0.1) !important; }
.rd-move-num { font-family: var(--mono); font-size: 11px; color: var(--faint); min-width: 18px; }
.rd-play {
  background: rgba(57,255,20,0.15) !important;
  border-color: var(--neon) !important;
  color: var(--neon) !important;
  min-width: 34px;
}
.rd-play.playing {
  background: rgba(255,60,100,0.15) !important;
  border-color: #ff3c64 !important;
  color: #ff3c64 !important;
}
.rd-move-sz {
  font-family: var(--mono); font-size: 11px; font-weight: 800;
  padding: 1px 6px; border-radius: var(--pill);
}
.sz-badge-s { background: rgba(255,255,255,0.08); color: var(--muted); }
.sz-badge-m { background: rgba(0,246,246,0.1); color: var(--cyan); }
.sz-badge-l { background: rgba(57,255,20,0.1); color: var(--neon); }
.rd-move-pos { font-size: 12px; color: var(--muted); }

/* ─── Match-End Overlay ────────────────────────────────────────────────── */
.end-overlay {
  position: fixed; inset: 0; z-index: 900;
  display: flex; align-items: center; justify-content: center;
  background: rgba(7,14,29,0.78);
  backdrop-filter: blur(6px);
  animation: endFadeIn 0.25s ease-out;
  cursor: pointer;
}
@keyframes endFadeIn { from { opacity: 0; } to { opacity: 1; } }
.confetti-canvas {
  position: absolute; inset: 0;
  pointer-events: none;
}
.end-card {
  position: relative; z-index: 2;
  background: var(--bg-1); border: 1px solid var(--border);
  border-radius: 20px; padding: 40px 32px;
  text-align: center; max-width: 380px; width: 90%;
  animation: endPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes endPop {
  0% { transform: scale(0.3); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
.end-card-win {
  border-color: rgba(57,255,20,0.5);
  box-shadow: 0 0 60px rgba(57,255,20,0.25);
}
.end-card-loss {
  border-color: rgba(255,60,100,0.45);
  box-shadow: 0 0 60px rgba(255,60,100,0.18);
}
.end-title { margin: 0 0 8px; font-size: 42px; font-weight: 800; letter-spacing: 0.02em; }
.end-title-win {
  color: var(--neon);
  text-shadow: 0 0 24px rgba(57,255,20,0.6);
  animation: winPulseText 1.2s ease-in-out infinite;
}
.end-title-loss { color: #ff3c64; }
@keyframes winPulseText {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.05); }
}
.end-sub { margin: 0 0 16px; font-size: 16px; color: var(--muted); }
.end-sub strong { color: var(--text); font-weight: 700; }
.end-hint { margin: 12px 0 0; font-size: 11px; color: var(--faint); font-family: var(--mono); }
.end-av-wrap {
  margin: 0 auto 20px;
  width: 120px; height: 120px; border-radius: 50%; overflow: hidden;
  border: 4px solid #ff3c64;
  box-shadow: 0 0 40px rgba(255,60,100,0.4);
  animation: lossAvIn 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes lossAvIn {
  0% { transform: scale(0.1) rotate(-20deg); opacity: 0; }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}
.end-av { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ─── Nearby / Karte ───────────────────────────────────────────────────── */
.nb-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px;
}
.nb-header-meta { display: flex; align-items: center; gap: 8px; }
.nb-refresh-chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 11px; color: var(--muted);
  background: var(--bg-2); border-radius: 999px; padding: 4px 10px;
}
.nb-refresh-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--cyan);
  box-shadow: 0 0 6px var(--cyan); animation: livePulse 2s ease-in-out infinite;
}
.nb-count {
  font-family: var(--mono); font-size: 12px; color: var(--muted);
  background: var(--bg-2); border-radius: var(--pill); padding: 4px 12px;
}
.nb-map {
  height: 55vh; min-height: 380px;
  border-radius: 14px; overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-1);
}
.nb-hint { font-size: 12px; color: var(--muted); margin-top: 10px; text-align: center; }

.nb-marker-wrap { background: transparent !important; border: 0 !important; }
.nb-marker {
  width: 44px; height: 44px; border-radius: 50%; overflow: hidden;
  border: 3px solid var(--cyan);
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  background: var(--bg-1);
}
.nb-marker img { width: 100%; height: 100%; display: block; object-fit: cover; }
.nb-marker-self {
  width: 48px; height: 48px; border-color: var(--neon);
  box-shadow: 0 0 0 4px rgba(57,255,20,0.25), 0 4px 12px rgba(0,0,0,0.4);
}
.nb-popup { min-width: 180px; font-family: var(--font); }
.nb-popup-head { font-size: 14px; margin-bottom: 4px; }
.nb-popup-dist { font-family: var(--mono); font-size: 11px; color: var(--muted); margin-bottom: 8px; }
.nb-popup-actions { display: flex; gap: 6px; }
.nb-btn {
  flex: 1; text-align: center;
  border: 1px solid var(--border); background: var(--bg-2); color: var(--text);
  padding: 6px 10px; border-radius: var(--pill); font-size: 12px; font-weight: 700;
  text-decoration: none; cursor: pointer;
}
.nb-btn:hover:not(:disabled) { border-color: var(--cyan); }
.nb-btn:disabled { opacity: 0.5; cursor: default; }
.nb-btn-primary { background: var(--neon); color: #061208; border-color: var(--neon); }

/* Leaflet popup dark-mode readable */
.leaflet-popup-content-wrapper { background: var(--bg-1); color: var(--text); border-radius: 12px; }
.leaflet-popup-tip { background: var(--bg-1); }
.leaflet-container a { color: var(--cyan); }

/* Toggle-Switch (iOS-Style) */
.tgl-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 8px 0; cursor: pointer; user-select: none;
}
.tgl-label { font-weight: 600; font-size: 14px; }
.tgl { position: relative; display: inline-block; width: 52px; height: 30px; flex-shrink: 0; }
.tgl input { opacity: 0; width: 0; height: 0; position: absolute; }
.tgl-track {
  position: absolute; inset: 0;
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: 999px;
  transition: background 0.2s, border-color 0.2s;
}
.tgl-thumb {
  position: absolute; top: 3px; left: 3px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--muted);
  transition: transform 0.2s cubic-bezier(0.34, 1.4, 0.64, 1), background 0.2s;
}
.tgl input:checked ~ .tgl-track {
  background: rgba(57,255,20,0.2);
  border-color: var(--neon);
}
.tgl input:checked ~ .tgl-track .tgl-thumb {
  transform: translateX(22px);
  background: var(--neon);
  box-shadow: 0 0 12px rgba(57,255,20,0.6);
}
.tgl input:focus-visible ~ .tgl-track { outline: 2px solid var(--cyan); outline-offset: 2px; }

/* Location Push-Row */
.nb-loc-row {
  margin-top: 14px; padding-top: 14px;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  flex-wrap: wrap;
}
.nb-loc-status {
  font-size: 12px; color: var(--muted);
  font-family: var(--mono);
}
.nb-loc-status.ok { color: var(--neon); }
.nb-loc-status.err { color: var(--danger); }
#nb-push-loc { width: auto; padding: 8px 18px; }

/* ─── Lobby KPI ────────────────────────────────────────────────────────── */
.lob-kpi-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}
.lob-kpi {
  background: var(--bg-1); border: 1px solid var(--border);
  border-radius: 10px; padding: 8px 12px;
  display: flex; flex-direction: column; gap: 2px;
  align-items: center;
}
.lob-kpi-num {
  font-family: var(--mono); font-size: 18px; font-weight: 800; color: var(--cyan);
  line-height: 1;
}
.lob-kpi-lbl { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }

/* ─── Lobby ─────────────────────────────────────────────────────────────── */
.lob-header {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  margin-bottom: 16px;
}
.lob-sub { color: var(--muted); font-size: 13px; margin: 2px 0 0; }
.lob-live-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,60,100,0.12); border: 1px solid rgba(255,60,100,0.4);
  color: #ff3c64; padding: 4px 12px; border-radius: 999px;
  font-family: var(--mono); font-size: 11px; font-weight: 800;
  flex-shrink: 0;
}
.lob-live-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #ff3c64;
  animation: livePulse 1.4s ease-in-out infinite;
  box-shadow: 0 0 8px rgba(255,60,100,0.7);
}
@keyframes livePulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%     { opacity: 0.5; transform: scale(1.3); }
}
.lob-filters {
  display: flex; gap: 8px; flex-wrap: wrap;
}
.lob-filter {
  background: var(--bg-2); color: var(--muted);
  border: 1px solid var(--border); border-radius: var(--pill);
  padding: 6px 16px; font-size: 13px; font-weight: 600;
  cursor: pointer; transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.lob-filter.active,
.lob-filter:hover {
  background: rgba(0,246,246,0.12);
  color: var(--cyan);
  border-color: rgba(0,246,246,0.4);
}
.lob-list { display: flex; flex-direction: column; gap: 10px; }
.lob-card {
  display: flex; align-items: center; gap: 14px;
  background: var(--bg-1); border: 1px solid var(--border);
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.lob-card:hover { transform: translateY(-1px); border-color: rgba(0,246,246,0.35); }
.lob-card:has(.lob-presence.ingame) {
  border-color: rgba(255,60,100,0.6);
  animation: lobCardLivePulse 2s ease-in-out infinite;
}
@keyframes lobCardLivePulse {
  0%,100% { box-shadow: 0 0 20px rgba(255,60,100,0.15); }
  50%     { box-shadow: 0 0 32px rgba(255,60,100,0.35); border-color: rgba(255,60,100,0.85); }
}
.lob-card:has(.lob-presence.online) {
  border-color: rgba(0,246,246,0.35);
}
.lob-card {
  border-radius: 14px; padding: 12px 16px;
}
.lob-av {
  width: 72px; height: 72px; border-radius: 50%; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 22px; color: #fff;
  flex-shrink: 0; border: 2px solid var(--border);
}
.lob-av-svg svg { width: 100%; height: 100%; display: block; }
.lob-info { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lob-name { font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lob-meta { font-size: 12px; color: var(--muted); }
.lob-fav-star { font-size: 13px; }
.lob-presence {
  font-size: 11px; font-weight: 800; font-family: var(--mono);
  border-radius: var(--pill); padding: 3px 10px;
  flex-shrink: 0;
}
.lob-presence.online  { background: rgba(0,246,246,0.1); color: var(--cyan); }
.lob-presence.ingame  { background: rgba(255,60,100,0.15); color: #ff3c64; animation: lobLivePulse 1.5s ease-in-out infinite; }
.lob-presence.offline { background: var(--bg-2); color: var(--faint); }
@keyframes lobLivePulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.55; }
}
.lob-actions { display: flex; gap: 6px; flex-shrink: 0; }
.lob-btn {
  font-size: 12px; font-weight: 700;
  border: 1px solid var(--border); border-radius: var(--pill);
  padding: 5px 14px; color: var(--muted); text-decoration: none;
  background: var(--bg-2); transition: color 0.15s, border-color 0.15s;
}
.lob-btn:hover { color: var(--text); border-color: var(--cyan); }
.lob-btn-live {
  border-color: rgba(255,60,100,0.5); color: #ff3c64;
  background: rgba(255,60,100,0.1);
}
.lob-btn-live:hover { border-color: #ff3c64; color: #ff3c64; }
.lob-empty { color: var(--muted); text-align: center; padding: 32px 0; }
.lob-empty-panel {
  text-align: center; padding: 40px 24px;
  background: var(--bg-1); border: 1px solid var(--border); border-radius: 14px;
}
.lob-empty-icon { font-size: 48px; color: var(--faint); margin-bottom: 12px; }
.lob-empty-title { font-size: 18px; margin: 0 0 6px; color: var(--text); font-weight: 700; }
.lob-empty-hint { font-size: 13px; color: var(--muted); margin: 0; }
.lob-ts { font-size: 11px; color: var(--faint); text-align: center; margin-top: 16px; font-family: var(--mono); }

/* ─── Spectate ───────────────────────────────────────────────────────────── */
.spec-loading { text-align: center; padding: 40px 20px; }
.spec-header {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 12px;
}
.spec-back {
  font-size: 13px; font-weight: 700; color: var(--muted);
  text-decoration: none; flex-shrink: 0;
}
.spec-back:hover { color: var(--text); }
.spec-players {
  display: flex; align-items: center; gap: 8px;
  flex: 1; justify-content: center;
  font-weight: 800; font-size: 16px;
}
.spec-vs { color: var(--faint); font-size: 13px; }
.spec-timers {
  display: flex; gap: 12px; margin-bottom: 12px;
}
.spec-timer {
  flex: 1; background: var(--bg-1); border: 2px solid var(--border);
  border-radius: 12px; padding: 10px 14px;
  display: flex; align-items: center; gap: 8px;
}
.spec-timer-name { font-size: 13px; font-weight: 700; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.spec-timer-clock {
  font-family: var(--mono); font-size: 1.1rem; font-weight: 700;
  color: var(--cyan);
}
.spec-timer-clock.warn { color: var(--danger); }
.spec-status-wrap { text-align: center; margin-bottom: 8px; }
