/* Gaming Night — Anthrazit & Hellblau */
:root {
  --bg: #15181c;
  --bg-2: #1a1e23;
  --surface: #20252b;
  --surface-2: #282e36;
  --surface-3: #313842;
  --border: #353c46;
  --border-soft: #2a3038;
  --text: #e8eef4;
  --muted: #95a3b3;
  --faint: #6b7886;
  --accent: #7cc4ff;
  --accent-2: #a8dbff;
  --accent-deep: #3d8fd1;
  --accent-ink: #06203a;
  --accent-glow: rgba(124, 196, 255, .35);
  --danger: #ff7b86;
  --danger-bg: rgba(255, 123, 134, .12);
  --success: #7fe0a3;
  --success-bg: rgba(127, 224, 163, .12);
  --warn: #ffd07a;
  --warn-bg: rgba(255, 208, 122, .12);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 8px 24px rgba(0,0,0,.35);
  --shadow-lg: 0 1px 0 rgba(255,255,255,.05) inset, 0 24px 60px rgba(0,0,0,.55);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --font: "Inter", "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, "SF Pro Text", Roboto, "Helvetica Neue", sans-serif;
  --mono: "JetBrains Mono", "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(1200px 600px at 85% -10%, rgba(124,196,255,.10), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(124,196,255,.06), transparent 60%);
  background-attachment: fixed;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-2); }
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -.01em; }
h1 { font-size: clamp(26px, 5vw, 38px); font-weight: 800; }
h2 { font-size: 20px; font-weight: 750; }
h3 { font-size: 16px; font-weight: 700; }
p { margin: 0; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 13px; }
.mono { font-family: var(--mono); }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.row.tight { gap: 6px; }
.row.between { justify-content: space-between; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.stack.lg { gap: 22px; }
.grow { flex: 1; min-width: 0; }
.hidden { display: none !important; }
.center { text-align: center; }

/* ---------- Layout ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 14px;
  padding: 10px max(16px, calc((100vw - 1180px) / 2));
  background: rgba(21, 24, 28, .78);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid var(--border-soft);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; color: var(--text); letter-spacing: -.01em; white-space: nowrap; }
.brand:hover { color: var(--text); }
.brand .logo {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(145deg, var(--accent), var(--accent-deep));
  color: var(--accent-ink); font-size: 18px;
  box-shadow: 0 4px 14px var(--accent-glow);
  transition: transform .4s var(--spring);
}
.brand:hover .logo { transform: rotate(-12deg) scale(1.08); }
.nav { display: flex; gap: 4px; margin-left: 8px; position: relative; }
.nav a {
  position: relative; padding: 8px 14px; border-radius: 10px; color: var(--muted); font-weight: 600; font-size: 14px;
  transition: color .2s, background .2s;
}
.nav a:hover { color: var(--text); background: var(--surface); }
.nav a.active { color: var(--accent); }
.nav a.active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px; border-radius: 2px;
  background: var(--accent); box-shadow: 0 0 10px var(--accent);
  animation: grow-x .35s var(--spring);
}
@keyframes grow-x { from { transform: scaleX(0); } }
.topbar .spacer { flex: 1; }
.online-pill { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); padding: 4px 10px; border-radius: 99px; background: var(--surface); border: 1px solid var(--border-soft); }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 0 rgba(127,224,163,.6); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(127,224,163,.55); } 70% { box-shadow: 0 0 0 8px rgba(127,224,163,0); } 100% { box-shadow: 0 0 0 0 rgba(127,224,163,0); } }
.me-chip { display: flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 99px; background: var(--surface); border: 1px solid var(--border-soft); color: var(--text); font-weight: 600; font-size: 14px; transition: transform .2s var(--spring), border-color .2s; }
.me-chip:hover { color: var(--text); border-color: var(--accent); transform: translateY(-1px); }
.icon-btn { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--border-soft); color: var(--muted); cursor: pointer; font-size: 16px; transition: transform .15s var(--spring), color .2s, border-color .2s; }
.icon-btn:hover { color: var(--text); border-color: var(--border); }
.icon-btn:active { transform: scale(.88); }

main { max-width: 1180px; margin: 0 auto; padding: 26px 16px 110px; }
.view { animation: view-in .45s var(--ease-out) both; }
@keyframes view-in { from { opacity: 0; transform: translateY(14px); } }

.bottomnav { display: none; }
@media (max-width: 760px) {
  .nav, .online-pill { display: none; }
  .me-chip .me-name { display: none; }
  .me-chip { padding: 4px; }
  .bottomnav {
    display: flex; position: fixed; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 45;
    background: rgba(32, 37, 43, .9); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border); border-radius: 20px; padding: 6px; box-shadow: var(--shadow-lg);
  }
  .bottomnav a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 7px 4px; border-radius: 14px; color: var(--muted); font-size: 11px; font-weight: 600; transition: background .2s, color .2s, transform .15s var(--spring); }
  .bottomnav a span.ic { font-size: 19px; line-height: 1.1; transition: transform .35s var(--spring); }
  .bottomnav a.active { color: var(--accent); background: rgba(124,196,255,.1); }
  .bottomnav a.active span.ic { transform: translateY(-2px) scale(1.15); }
  .bottomnav a:active { transform: scale(.9); }
  main { padding-top: 18px; }
}

/* ---------- Buttons ---------- */
.btn {
  --b-bg: var(--surface-2); --b-fg: var(--text); --b-bd: var(--border);
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; min-height: 42px;
  border-radius: 12px; border: 1px solid var(--b-bd);
  background: var(--b-bg); color: var(--b-fg);
  font: inherit; font-weight: 650; font-size: 14px; cursor: pointer; user-select: none; white-space: nowrap;
  box-shadow: 0 1px 0 rgba(255,255,255,.06) inset, 0 3px 0 rgba(0,0,0,.35), 0 6px 14px rgba(0,0,0,.2);
  transition: transform .18s var(--spring), box-shadow .18s, background .2s, border-color .2s, filter .2s;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.btn:active { transform: translateY(2px) scale(.97); box-shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 1px 0 rgba(0,0,0,.35), 0 2px 6px rgba(0,0,0,.2); }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn.primary { --b-bg: linear-gradient(180deg, #93d0ff, var(--accent) 55%, #62b3f5); --b-fg: var(--accent-ink); --b-bd: #9ad4ff; box-shadow: 0 1px 0 rgba(255,255,255,.5) inset, 0 3px 0 #2f7fbf, 0 8px 22px var(--accent-glow); }
.btn.primary:active { box-shadow: 0 1px 0 rgba(255,255,255,.4) inset, 0 1px 0 #2f7fbf, 0 3px 10px var(--accent-glow); }
.btn.ghost { --b-bg: transparent; --b-bd: transparent; box-shadow: none; color: var(--muted); }
.btn.ghost:hover { color: var(--text); background: var(--surface); }
.btn.danger { --b-bg: var(--danger-bg); --b-fg: var(--danger); --b-bd: rgba(255,123,134,.35); }
.btn.success { --b-bg: var(--success-bg); --b-fg: var(--success); --b-bd: rgba(127,224,163,.35); }
.btn.small { min-height: 34px; padding: 6px 12px; font-size: 13px; border-radius: 10px; }
.btn.big { min-height: 52px; padding: 14px 26px; font-size: 16px; border-radius: 14px; }
.btn.block { width: 100%; }
.btn .spinner { width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.ripple { position: absolute; border-radius: 50%; pointer-events: none; background: currentColor; opacity: .25; transform: scale(0); animation: ripple .6s var(--ease-out) forwards; z-index: -1; }
@keyframes ripple { to { transform: scale(1); opacity: 0; } }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.input, input[type=text], input[type=password], input[type=number], input[type=url], input[type=datetime-local], input[type=search], textarea, select {
  width: 100%; font: inherit; font-size: 15px; color: var(--text);
  background: var(--bg-2); border: 1px solid var(--border); border-radius: 12px;
  padding: 11px 14px; transition: border-color .2s, box-shadow .2s, background .2s;
}
textarea { resize: vertical; min-height: 80px; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(124,196,255,.15); background: #1c2127; }
input::placeholder, textarea::placeholder { color: var(--faint); }
input[type=datetime-local]::-webkit-calendar-picker-indicator { filter: invert(.8); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
.hint { font-size: 12px; color: var(--faint); font-weight: 500; }
.error-box { padding: 10px 14px; border-radius: 12px; background: var(--danger-bg); color: var(--danger); font-weight: 600; font-size: 14px; animation: shake .45s; }

/* Switch */
.switch { display: flex; align-items: center; gap: 12px; cursor: pointer; user-select: none; font-weight: 600; font-size: 14px; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch .track { flex: none; width: 46px; height: 28px; border-radius: 99px; background: var(--surface-3); border: 1px solid var(--border); position: relative; transition: background .25s; }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #cfd8e2; box-shadow: 0 2px 6px rgba(0,0,0,.4); transition: transform .35s var(--spring), width .2s, background .25s; }
.switch:active .track::after { width: 26px; }
.switch input:checked + .track { background: var(--accent-deep); border-color: var(--accent); }
.switch input:checked + .track::after { transform: translateX(18px); background: #fff; }
.switch:active input:checked + .track::after { transform: translateX(12px); }
.switch input:focus-visible + .track { outline: 2px solid var(--accent); outline-offset: 2px; }
.switch .sub { display: block; font-weight: 500; font-size: 12px; color: var(--faint); }

/* Segmented control with sliding thumb */
.seg { position: relative; display: inline-flex; padding: 4px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--border); gap: 2px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg .thumb { position: absolute; top: 4px; bottom: 4px; left: 0; border-radius: 10px; background: var(--surface-3); box-shadow: 0 2px 8px rgba(0,0,0,.35), 0 1px 0 rgba(255,255,255,.06) inset; transition: transform .4s var(--spring), width .4s var(--spring), background .3s; z-index: 0; }
.seg button { position: relative; z-index: 1; border: 0; background: none; color: var(--muted); font: inherit; font-weight: 650; font-size: 14px; padding: 8px 14px; border-radius: 10px; cursor: pointer; white-space: nowrap; transition: color .2s, transform .15s var(--spring); }
.seg button:active { transform: scale(.94); }
.seg button.on { color: var(--text); }
.seg.accent .thumb { background: var(--accent); }
.seg.accent button.on { color: var(--accent-ink); }
.seg.block { display: flex; width: 100%; }
.seg.block button { flex: 1; padding: 8px 6px; }

/* ---------- Cards ---------- */
.card { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.card.pad-lg { padding: 28px; }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 30px 0 14px; }
.section-title h2 { display: flex; align-items: center; gap: 10px; }
.count-badge { font-size: 12px; font-weight: 700; color: var(--accent); background: rgba(124,196,255,.12); padding: 2px 9px; border-radius: 99px; }
.enter { animation: card-in .55s var(--spring) both; animation-delay: calc(var(--i, 0) * 45ms); }
@keyframes card-in { from { opacity: 0; transform: translateY(18px) scale(.96); } }
.leave { animation: card-out .3s var(--ease-out) forwards; }
@keyframes card-out { to { opacity: 0; transform: scale(.9); } }
.tilt { transform-style: preserve-3d; transition: transform .35s var(--ease-out), box-shadow .3s, border-color .3s; will-change: transform; }

.pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 700; background: var(--surface-2); color: var(--muted); border: 1px solid var(--border-soft); white-space: nowrap; }
.pill.live { color: var(--success); background: var(--success-bg); border-color: rgba(127,224,163,.25); }
.pill.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: pulse 2s infinite; }
.pill.done { color: var(--accent); background: rgba(124,196,255,.1); border-color: rgba(124,196,255,.25); }
.pill.warn { color: var(--warn); background: var(--warn-bg); border-color: rgba(255,208,122,.25); }
.pill.danger { color: var(--danger); background: var(--danger-bg); border-color: rgba(255,123,134,.25); }
.pill.attn { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); animation: attn 2.2s ease-in-out infinite; }
@keyframes attn { 0%,100% { box-shadow: 0 0 0 0 var(--accent-glow); } 50% { box-shadow: 0 0 0 6px transparent; transform: scale(1.04); } }

.avatar { --c: var(--accent); flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 17px; line-height: 1; background: color-mix(in srgb, var(--c) 22%, var(--surface-2)); border: 2px solid color-mix(in srgb, var(--c) 70%, transparent); user-select: none; }
.avatar.sm { width: 26px; height: 26px; font-size: 13px; border-width: 1.5px; }
.avatar.lg { width: 84px; height: 84px; font-size: 44px; border-width: 3px; }
.avatars { display: flex; }
.avatars .avatar { margin-left: -8px; box-shadow: 0 0 0 2px var(--surface); transition: transform .25s var(--spring); }
.avatars .avatar:first-child { margin-left: 0; }
.avatars .avatar:hover { transform: translateY(-4px) scale(1.12); z-index: 2; }
.avatars .more { margin-left: 4px; font-size: 12px; color: var(--muted); font-weight: 700; align-self: center; }
.pop-in { animation: pop-in .5s var(--spring) both; }
@keyframes pop-in { from { transform: scale(0); opacity: 0; } }

/* ---------- Home ---------- */
.hero {
  position: relative; overflow: hidden; border-radius: 24px; padding: 34px;
  background: linear-gradient(135deg, #243140 0%, #1d242c 55%, #1a1f25 100%);
  border: 1px solid #2f3b49; box-shadow: var(--shadow-lg);
}
.hero::before { content: ""; position: absolute; width: 520px; height: 520px; right: -140px; top: -220px; border-radius: 50%; background: radial-gradient(circle, rgba(124,196,255,.28), transparent 65%); animation: float 9s ease-in-out infinite; }
.hero::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(90deg, transparent, #000 60%); pointer-events: none; }
@keyframes float { 50% { transform: translate(-30px, 30px) scale(1.08); } }
.hero > * { position: relative; z-index: 1; }
.hero .kicker { color: var(--accent); font-weight: 750; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.hero h1 { margin: 6px 0 10px; }
.hero .floating-emoji { position: absolute; font-size: 42px; opacity: .9; right: 36px; bottom: 26px; animation: bob 3.2s ease-in-out infinite; z-index: 1; filter: drop-shadow(0 8px 16px rgba(0,0,0,.4)); }
.hero .floating-emoji.b { right: 110px; bottom: 70px; font-size: 30px; animation-delay: -1.2s; opacity: .7; }
.hero .floating-emoji.c { right: 64px; bottom: 118px; font-size: 24px; animation-delay: -2s; opacity: .5; }
@keyframes bob { 50% { transform: translateY(-12px) rotate(8deg); } }
@media (max-width: 640px) { .hero { padding: 24px; } .hero .floating-emoji { display: none; } }

.countdown { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.countdown .unit { min-width: 66px; padding: 10px 8px 8px; text-align: center; border-radius: 14px; background: rgba(0,0,0,.28); border: 1px solid rgba(255,255,255,.06); }
.countdown .num { display: block; font-family: var(--mono); font-size: 28px; font-weight: 800; color: var(--accent-2); line-height: 1; font-variant-numeric: tabular-nums; }
.countdown .num.tick { animation: tick .45s var(--spring); }
@keyframes tick { from { transform: translateY(-40%) scale(.9); opacity: .2; } }
.countdown .lbl { font-size: 11px; color: var(--muted); font-weight: 650; text-transform: uppercase; letter-spacing: .06em; }

.night-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.night-card { display: flex; flex-direction: column; gap: 14px; cursor: pointer; color: var(--text); position: relative; overflow: hidden; }
.night-card:hover { color: var(--text); border-color: #3e4a58; box-shadow: var(--shadow-lg); }
.night-card:active { transform: scale(.98) !important; }
.night-card .glow { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(124,196,255,.10), transparent 45%); opacity: 0; transition: opacity .3s; }
.night-card:hover .glow { opacity: 1; }
.night-card .emojis { display: flex; }
.night-card .emojis span { width: 38px; height: 38px; margin-right: -8px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; border: 2px solid var(--surface); background: color-mix(in srgb, var(--c) 30%, var(--surface-2)); transition: transform .3s var(--spring); }
.night-card:hover .emojis span { transform: translateY(-3px) rotate(-6deg); }
.night-card:hover .emojis span:nth-child(2n) { transform: translateY(-5px) rotate(5deg); }
.night-card .stats { display: flex; gap: 14px; font-size: 13px; color: var(--muted); }
.night-card .winner-line { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: rgba(124,196,255,.08); border: 1px solid rgba(124,196,255,.18); font-weight: 700; }
.new-card { display: grid; place-items: center; min-height: 170px; border: 2px dashed var(--border); background: transparent; box-shadow: none; color: var(--muted); font-weight: 700; cursor: pointer; transition: border-color .2s, color .2s, transform .2s var(--spring), background .2s; }
.new-card:hover { border-color: var(--accent); color: var(--accent); background: rgba(124,196,255,.04); }
.new-card:active { transform: scale(.97); }
.new-card .plus { font-size: 34px; display: block; text-align: center; transition: transform .4s var(--spring); }
.new-card:hover .plus { transform: rotate(90deg) scale(1.1); }

.empty { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty .big-emoji { font-size: 54px; display: block; margin-bottom: 10px; animation: bob 3s ease-in-out infinite; }

/* ---------- Night ---------- */
.night-head { display: flex; flex-direction: column; gap: 12px; }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 600; font-size: 14px; transition: gap .2s var(--spring), color .2s; }
.back:hover { gap: 10px; color: var(--text); }
.meta-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.desc { color: #c5d0db; white-space: pre-wrap; max-width: 760px; }

.winner-banner {
  --c: var(--accent);
  position: relative; overflow: hidden; border-radius: 22px; padding: 26px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--c) 30%, #1f2831), #1d2228 70%);
  border: 1px solid color-mix(in srgb, var(--c) 45%, transparent);
  box-shadow: 0 20px 60px color-mix(in srgb, var(--c) 18%, transparent);
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
  animation: banner-in .8s var(--spring) both;
}
@keyframes banner-in { from { transform: scale(.85) translateY(20px); opacity: 0; } }
.winner-banner::before { content: ""; position: absolute; inset: -50%; background: conic-gradient(from 0deg, transparent, color-mix(in srgb, var(--c) 18%, transparent), transparent 30%); animation: spin 9s linear infinite; }
.winner-banner > * { position: relative; }
.winner-banner .trophy { font-size: 64px; filter: drop-shadow(0 10px 20px rgba(0,0,0,.4)); animation: bob 3s ease-in-out infinite; }
.winner-banner .label { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-2); }
.winner-banner h2 { font-size: clamp(24px, 4vw, 34px); margin: 2px 0 4px; }

.panel { background: var(--surface); border: 1px solid var(--border-soft); border-radius: 20px; padding: 20px; box-shadow: var(--shadow); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }

.budget { display: flex; align-items: center; gap: 10px; }
.tokens { display: flex; gap: 6px; }
.token { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--accent); background: transparent; transition: background .3s, transform .4s var(--spring), box-shadow .3s; }
.token.used { background: var(--accent); box-shadow: 0 0 10px var(--accent-glow); transform: scale(1.08); }
.token.bump { animation: token-bump .45s var(--spring); }
@keyframes token-bump { 40% { transform: scale(1.5); } }
.tokens.empty-shake { animation: shake .4s; }
.save-state { font-size: 12px; font-weight: 700; color: var(--faint); min-width: 90px; text-align: right; transition: color .2s; }
.save-state.saving { color: var(--warn); }
.save-state.saved { color: var(--success); animation: pop-in .35s var(--spring); }

.cand-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.cand {
  --c: var(--accent);
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: 18px; padding: 16px; min-height: 170px;
  background: linear-gradient(160deg, color-mix(in srgb, var(--c) 16%, var(--surface-2)), var(--surface) 70%);
  border: 1.5px solid color-mix(in srgb, var(--c) 22%, var(--border-soft));
  display: flex; flex-direction: column; gap: 10px;
  cursor: pointer; user-select: none;
  transition: transform .3s var(--spring), border-color .25s, box-shadow .3s;
  box-shadow: 0 4px 0 rgba(0,0,0,.3), 0 10px 24px rgba(0,0,0,.25);
}
.cand:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--c) 50%, var(--border)); }
.cand:active { transform: translateY(2px) scale(.97); box-shadow: 0 1px 0 rgba(0,0,0,.3), 0 4px 10px rgba(0,0,0,.2); }
.cand.picked { border-color: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 35%, transparent), 0 4px 0 rgba(0,0,0,.3), 0 14px 34px color-mix(in srgb, var(--c) 25%, transparent); }
.cand.squish { animation: squish .42s var(--spring); }
@keyframes squish { 30% { transform: scale(.94, .9); } 60% { transform: scale(1.04, 1.06); } }
.cand.denied { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.cand.readonly { cursor: default; }
.cand.readonly:active { transform: none; }
.cand .top { display: flex; align-items: flex-start; gap: 12px; }
.cand .emoji { flex: none; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 30px; background: color-mix(in srgb, var(--c) 25%, rgba(0,0,0,.25)); box-shadow: 0 1px 0 rgba(255,255,255,.08) inset; transition: transform .4s var(--spring); }
.cand:hover .emoji { transform: rotate(-8deg) scale(1.06); }
.cand.picked .emoji { animation: wiggle .6s var(--spring); }
@keyframes wiggle { 25% { transform: rotate(-14deg) scale(1.15); } 60% { transform: rotate(8deg) scale(1.05); } }
.cand .title { font-weight: 800; font-size: 17px; line-height: 1.2; word-break: break-word; }
.cand .sub { font-size: 12.5px; color: var(--muted); display: flex; gap: 10px; flex-wrap: wrap; margin-top: 3px; }
.cand .badges { display: flex; gap: 6px; flex-wrap: wrap; }
.cand .badges .pill { font-size: 11px; padding: 2px 8px; }
.cand .bottom { margin-top: auto; display: flex; align-items: center; gap: 8px; }
.vote-btn {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; border-radius: 12px;
  font: inherit; font-weight: 750; font-size: 14px; cursor: pointer;
  background: rgba(0,0,0,.22); color: var(--text); border: 1.5px solid color-mix(in srgb, var(--c) 35%, var(--border));
  transition: background .25s, color .25s, border-color .25s, transform .2s var(--spring);
}
.vote-btn .check { width: 20px; height: 20px; border-radius: 50%; border: 2px solid currentColor; display: grid; place-items: center; font-size: 12px; transition: background .25s, transform .4s var(--spring); }
.cand.picked .vote-btn { background: var(--c); color: #0c1116; border-color: var(--c); }
.cand.picked .vote-btn .check { background: #0c1116; color: var(--c); border-color: #0c1116; transform: rotate(360deg); }
.stepper { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 4px; border-radius: 12px; background: rgba(0,0,0,.25); border: 1.5px solid color-mix(in srgb, var(--c) 35%, var(--border)); }
.stepper button { width: 38px; height: 34px; border-radius: 9px; border: 0; background: var(--surface-3); color: var(--text); font-size: 20px; font-weight: 700; cursor: pointer; transition: transform .15s var(--spring), background .2s; }
.stepper button:hover { background: #3b4450; }
.stepper button:active { transform: scale(.85); }
.stepper button.plus { background: color-mix(in srgb, var(--c) 45%, var(--surface-3)); }
.stepper .val { font-family: var(--mono); font-size: 22px; font-weight: 800; min-width: 30px; text-align: center; font-variant-numeric: tabular-nums; }
.stepper .val.bump { animation: tick .4s var(--spring); }
.pips { display: flex; gap: 3px; justify-content: center; }
.pips i { width: 6px; height: 6px; border-radius: 50%; background: var(--c); animation: pop-in .35s var(--spring) both; }
.veto-btn { flex: none; width: 42px; height: 42px; border-radius: 12px; border: 1.5px solid var(--border); background: rgba(0,0,0,.22); cursor: pointer; font-size: 18px; filter: grayscale(1); opacity: .6; transition: transform .2s var(--spring), filter .2s, opacity .2s, border-color .2s, background .2s; }
.veto-btn:hover { filter: none; opacity: 1; }
.veto-btn:active { transform: scale(.85) rotate(-10deg); }
.veto-btn.on { filter: none; opacity: 1; border-color: var(--danger); background: var(--danger-bg); animation: shake .4s; }
.stamp { position: absolute; top: 44%; left: 50%; z-index: 3; pointer-events: none; transform: translate(-50%, -50%) rotate(-14deg); padding: 4px 18px; border: 4px solid var(--danger); border-radius: 10px; color: var(--danger); font-weight: 900; font-size: 30px; letter-spacing: .12em; background: rgba(21,24,28,.6); backdrop-filter: blur(2px); animation: stamp .5s var(--spring) both; }
@keyframes stamp { from { transform: translate(-50%, -50%) rotate(-14deg) scale(2.2); opacity: 0; } }
.cand.out { filter: saturate(.3); }
.cand.out .emoji, .cand.out .title { opacity: .6; }
.cand .my-veto-tag { position: absolute; top: 10px; right: 10px; font-size: 11px; font-weight: 800; color: var(--danger); background: var(--danger-bg); padding: 2px 8px; border-radius: 99px; animation: pop-in .4s var(--spring); }
.result { display: flex; flex-direction: column; gap: 6px; }
.bar { height: 9px; border-radius: 99px; background: rgba(0,0,0,.35); overflow: hidden; }
.bar > i { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, color-mix(in srgb, var(--c) 70%, #fff 0%), var(--c)); box-shadow: 0 0 12px color-mix(in srgb, var(--c) 60%, transparent); transition: width .9s var(--spring); }
.result .nums { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); font-weight: 650; }
.result .nums b { color: var(--text); font-family: var(--mono); font-size: 14px; }
.rank-badge { position: absolute; top: 12px; right: 12px; min-width: 30px; height: 30px; padding: 0 8px; border-radius: 99px; display: grid; place-items: center; font-weight: 900; font-size: 13px; background: rgba(0,0,0,.35); color: var(--muted); border: 1px solid var(--border); transition: transform .4s var(--spring); }
.rank-badge.r1 { background: linear-gradient(180deg, #ffe7a3, #f4c15d); color: #3d2a00; border-color: #ffe7a3; box-shadow: 0 4px 14px rgba(244,193,93,.4); }
.rank-badge.r2 { background: linear-gradient(180deg, #eef3f8, #b9c6d3); color: #1d2630; border-color: #eef3f8; }
.rank-badge.r3 { background: linear-gradient(180deg, #f3c9a2, #cf8f5c); color: #33200f; border-color: #f3c9a2; }
.float-plus { position: absolute; z-index: 5; pointer-events: none; font-weight: 900; font-size: 20px; color: var(--c, var(--accent)); text-shadow: 0 2px 10px rgba(0,0,0,.5); animation: float-up .9s var(--ease-out) forwards; }
@keyframes float-up { to { transform: translateY(-60px) scale(1.4); opacity: 0; } }
.add-cand { display: grid; place-items: center; text-align: center; min-height: 170px; border-radius: 18px; border: 2px dashed var(--border); color: var(--muted); font-weight: 700; cursor: pointer; background: transparent; font: inherit; transition: border-color .2s, color .2s, transform .2s var(--spring), background .2s; }
.add-cand:hover { border-color: var(--accent); color: var(--accent); background: rgba(124,196,255,.04); }
.add-cand:active { transform: scale(.96); }
.add-cand .plus { font-size: 34px; display: block; transition: transform .4s var(--spring); }
.add-cand:hover .plus { transform: rotate(90deg) scale(1.15); }

.podium { display: flex; align-items: flex-end; justify-content: center; gap: 12px; padding-top: 16px; min-height: 230px; }
.podium .place { flex: 1; max-width: 170px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.podium .place .em { font-size: 40px; animation: bob 3s ease-in-out infinite; }
.podium .place:nth-child(1) .em { animation-delay: -.6s; }
.podium .place:nth-child(3) .em { animation-delay: -1.4s; }
.podium .place .nm { font-weight: 750; font-size: 13.5px; line-height: 1.2; }
.podium .step { width: 100%; border-radius: 14px 14px 6px 6px; display: grid; place-items: start center; padding-top: 10px; font-size: 26px; font-weight: 900; color: rgba(0,0,0,.55); height: 0; transition: height 1s var(--spring); box-shadow: 0 1px 0 rgba(255,255,255,.4) inset; }
.podium .p1 .step { background: linear-gradient(180deg, #ffe7a3, #f4c15d); }
.podium .p2 .step { background: linear-gradient(180deg, #eef3f8, #a9b7c5); }
.podium .p3 .step { background: linear-gradient(180deg, #f3c9a2, #c4854f); }

.rsvp-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.chat { display: flex; flex-direction: column; gap: 10px; max-height: 380px; overflow-y: auto; padding-right: 4px; scroll-behavior: smooth; }
.msg { display: flex; gap: 10px; align-items: flex-start; animation: msg-in .4s var(--spring) both; }
@keyframes msg-in { from { opacity: 0; transform: translateY(10px) scale(.96); } }
.msg .bubble { background: var(--surface-2); border: 1px solid var(--border-soft); padding: 8px 12px; border-radius: 4px 14px 14px 14px; max-width: 100%; }
.msg.mine { flex-direction: row-reverse; }
.msg.mine .bubble { background: rgba(124,196,255,.12); border-color: rgba(124,196,255,.25); border-radius: 14px 4px 14px 14px; }
.msg .who { font-size: 12px; font-weight: 750; color: var(--muted); }
.msg .body { white-space: pre-wrap; word-break: break-word; }
.chat-form { display: flex; gap: 8px; margin-top: 12px; }
.quick-reacts { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.quick-reacts button { border: 1px solid var(--border-soft); background: var(--surface-2); border-radius: 99px; padding: 4px 10px; font-size: 16px; cursor: pointer; transition: transform .2s var(--spring); }
.quick-reacts button:hover { transform: translateY(-2px) scale(1.12); }
.quick-reacts button:active { transform: scale(.85); }

.admin-bar { display: flex; gap: 8px; flex-wrap: wrap; padding: 12px; border-radius: 16px; background: var(--bg-2); border: 1px dashed var(--border); }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
@media (max-width: 960px) { .two-col { grid-template-columns: 1fr; } }

/* ---------- Games ---------- */
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.toolbar .search { flex: 1; min-width: 200px; position: relative; }
.toolbar .search input { padding-left: 40px; }
.toolbar .search::before { content: "🔍"; position: absolute; left: 13px; top: 50%; transform: translateY(-50%); font-size: 14px; opacity: .7; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { border: 1px solid var(--border); background: var(--surface); color: var(--muted); border-radius: 99px; padding: 5px 12px; font: inherit; font-size: 13px; font-weight: 650; cursor: pointer; transition: all .2s var(--spring); }
.chip:hover { color: var(--text); }
.chip:active { transform: scale(.92); }
.chip.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.game-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.game-card {
  --c: var(--accent);
  position: relative; overflow: hidden; border-radius: 18px; padding: 16px; cursor: pointer; min-height: 150px;
  background: linear-gradient(165deg, color-mix(in srgb, var(--c) 20%, var(--surface-2)), var(--surface) 75%);
  border: 1px solid color-mix(in srgb, var(--c) 22%, var(--border-soft));
  display: flex; flex-direction: column; gap: 8px; color: var(--text);
  box-shadow: 0 4px 0 rgba(0,0,0,.28), 0 10px 22px rgba(0,0,0,.22);
}
.game-card:active { transform: scale(.96) !important; }
.game-card .em { font-size: 38px; line-height: 1; transition: transform .4s var(--spring); filter: drop-shadow(0 6px 10px rgba(0,0,0,.35)); }
.game-card:hover .em { transform: translateZ(30px) scale(1.12) rotate(-6deg); }
.game-card .nm { font-weight: 800; font-size: 16px; line-height: 1.2; }
.game-card .mt { font-size: 12px; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.game-card .corner { position: absolute; top: 12px; right: 12px; display: flex; gap: 4px; }
.game-card.slot-hl { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent), 0 0 40px var(--accent-glow); transform: scale(1.04); transition: none; }
.game-card.slot-win { animation: slot-win 1s var(--spring); border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent), 0 0 50px var(--accent-glow); }
@keyframes slot-win { 30% { transform: scale(1.12) rotate(-2deg); } 60% { transform: scale(.98) rotate(1deg); } }
.game-card.dim { opacity: .35; filter: grayscale(.6); }

.emoji-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(40px, 1fr)); gap: 6px; }
.emoji-picker button { height: 40px; border-radius: 10px; border: 1px solid var(--border-soft); background: var(--surface-2); font-size: 20px; cursor: pointer; transition: transform .2s var(--spring), border-color .2s, background .2s; }
.emoji-picker button:hover { transform: scale(1.15); }
.emoji-picker button:active { transform: scale(.85); }
.emoji-picker button.on { border-color: var(--accent); background: rgba(124,196,255,.15); transform: scale(1.1); }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.swatches button { width: 32px; height: 32px; border-radius: 50%; border: 3px solid transparent; background: var(--c); cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.35); transition: transform .25s var(--spring), border-color .2s; }
.swatches button:hover { transform: scale(1.15); }
.swatches button.on { border-color: #fff; transform: scale(1.18); }

.pick-list { display: flex; flex-direction: column; gap: 6px; max-height: 340px; overflow-y: auto; }
.pick-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border-soft); cursor: pointer; text-align: left; font: inherit; color: var(--text); transition: transform .2s var(--spring), border-color .2s, background .2s; }
.pick-item:hover { border-color: var(--accent); transform: translateX(3px); }
.pick-item:active { transform: scale(.97); }
.pick-item.on { background: rgba(124,196,255,.13); border-color: var(--accent); }
.pick-item .em { font-size: 24px; }
.pick-item[disabled] { opacity: .45; pointer-events: none; }

/* ---------- Stats ---------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.tile { padding: 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border-soft); box-shadow: var(--shadow); }
.tile .v { font-family: var(--mono); font-size: 34px; font-weight: 800; color: var(--accent-2); font-variant-numeric: tabular-nums; }
.tile .l { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.lb { display: flex; flex-direction: column; gap: 10px; }
.lb-row { display: grid; grid-template-columns: 28px 34px 1fr auto; align-items: center; gap: 10px; }
.lb-row .pos { font-weight: 900; color: var(--faint); text-align: center; }
.lb-row .em { font-size: 22px; text-align: center; }
.lb-row .nm { font-weight: 650; min-width: 0; }
.lb-row .nm .bar { margin-top: 5px; height: 6px; }
.lb-row .val { font-family: var(--mono); font-weight: 800; color: var(--accent-2); }
.timeline { display: flex; flex-direction: column; gap: 0; }
.tl-item { display: grid; grid-template-columns: 90px 24px 1fr; gap: 10px; align-items: center; padding: 6px 0; color: var(--text); }
.tl-item:hover { color: var(--text); }
.tl-item .dot { width: 14px; height: 14px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); justify-self: center; position: relative; }
.tl-item .when { font-size: 12px; color: var(--muted); text-align: right; }

/* ---------- Admin / Profile ---------- */
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); font-weight: 700; padding: 8px 10px; border-bottom: 1px solid var(--border); }
.table td { padding: 10px; border-bottom: 1px solid var(--border-soft); vertical-align: middle; }
.table tr { transition: background .2s; }
.table tr:hover td { background: rgba(255,255,255,.02); }
.table select { padding: 6px 10px; font-size: 13px; width: auto; }
.table-wrap { overflow-x: auto; }
.role-badge { font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 99px; text-transform: uppercase; letter-spacing: .04em; }
.role-superadmin { background: linear-gradient(90deg, #ffe7a3, #f4c15d); color: #3d2a00; }
.role-admin { background: rgba(124,196,255,.18); color: var(--accent); }
.role-user { background: var(--surface-3); color: var(--text); }
.role-guest { background: var(--warn-bg); color: var(--warn); }
.invite-link { display: flex; gap: 8px; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--accent); font-family: var(--mono); font-size: 13px; word-break: break-all; animation: pop-in .4s var(--spring); }
.profile-head { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.profile-head .avatar.lg { transition: transform .4s var(--spring); cursor: pointer; }
.profile-head .avatar.lg:hover { transform: rotate(-10deg) scale(1.06); }
.profile-head .avatar.lg:active { transform: scale(.9); }
.list-row { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border-soft); }

/* ---------- Auth ---------- */
.auth-wrap { min-height: calc(100dvh - 60px); display: grid; place-items: center; padding: 30px 16px; }
.auth-card { width: 100%; max-width: 420px; padding: 32px; border-radius: 24px; background: var(--surface); border: 1px solid var(--border-soft); box-shadow: var(--shadow-lg); animation: modal-in .6s var(--spring) both; }
.auth-card .logo-big { width: 72px; height: 72px; margin: 0 auto 14px; border-radius: 22px; display: grid; place-items: center; font-size: 38px; background: linear-gradient(145deg, var(--accent), var(--accent-deep)); box-shadow: 0 12px 34px var(--accent-glow); animation: bob 3.5s ease-in-out infinite; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--faint); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.passkey-btn .key { font-size: 18px; transition: transform .4s var(--spring); }
.passkey-btn:hover .key { transform: rotate(-25deg) scale(1.15); }

/* ---------- Modal ---------- */
.modal-backdrop { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: rgba(8, 10, 13, .6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fade-in .25s ease both; overflow-y: auto; }
.modal-backdrop.closing { animation: fade-out .22s ease forwards; }
@keyframes fade-in { from { opacity: 0; } }
@keyframes fade-out { to { opacity: 0; } }
.modal { position: relative; width: 100%; max-width: 560px; max-height: calc(100dvh - 32px); overflow-y: auto; background: var(--surface); border: 1px solid var(--border); border-radius: 24px; box-shadow: var(--shadow-lg); padding: 24px; animation: modal-in .5s var(--spring) both; transform-origin: var(--ox, 50%) var(--oy, 50%); }
.modal.wide { max-width: 760px; }
.modal-backdrop.closing .modal { animation: modal-out .22s var(--ease-out) forwards; }
@keyframes modal-in { from { opacity: 0; transform: scale(.82) translateY(24px); } }
@keyframes modal-out { to { opacity: 0; transform: scale(.9) translateY(10px); } }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.modal-close { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface-2); color: var(--muted); font-size: 18px; cursor: pointer; transition: transform .3s var(--spring), color .2s; }
.modal-close:hover { transform: rotate(90deg); color: var(--text); }
.modal-close:active { transform: rotate(90deg) scale(.85); }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
@media (max-width: 560px) {
  .modal-backdrop { place-items: end center; padding: 0; }
  .modal { border-radius: 24px 24px 0 0; max-height: 92dvh; animation: sheet-in .45s var(--ease-out) both; padding-bottom: max(24px, env(safe-area-inset-bottom)); }
  .modal-backdrop.closing .modal { animation: sheet-out .25s ease forwards; }
  @keyframes sheet-in { from { transform: translateY(100%); } }
  @keyframes sheet-out { to { transform: translateY(100%); } }
}

/* ---------- Wheel ---------- */
.wheel-wrap { position: relative; width: min(420px, 82vw); aspect-ratio: 1; margin: 0 auto; }
.wheel-wrap canvas { width: 100%; height: 100%; display: block; border-radius: 50%; box-shadow: 0 0 0 8px var(--surface-3), 0 0 0 10px var(--border), 0 20px 60px rgba(0,0,0,.6), 0 0 80px var(--accent-glow); }
.wheel-pointer { position: absolute; left: 50%; top: -18px; transform: translateX(-50%); width: 0; height: 0; border-left: 18px solid transparent; border-right: 18px solid transparent; border-top: 34px solid var(--accent); filter: drop-shadow(0 4px 8px rgba(0,0,0,.6)); z-index: 2; transform-origin: 50% 0; }
.wheel-pointer.flick { animation: flick .12s ease-out; }
@keyframes flick { 50% { transform: translateX(-50%) rotate(-18deg); } }
.wheel-hub { position: absolute; left: 50%; top: 50%; width: 74px; height: 74px; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle at 35% 30%, #3a4552, #1b2026); border: 3px solid var(--accent); display: grid; place-items: center; font-size: 30px; box-shadow: 0 6px 20px rgba(0,0,0,.6); z-index: 2; }
.wheel-result { text-align: center; min-height: 72px; margin-top: 18px; }
.wheel-result .win { font-size: 28px; font-weight: 900; animation: banner-in .7s var(--spring) both; }

/* ---------- Toasts ---------- */
.toasts { position: fixed; z-index: 200; left: 50%; bottom: 24px; transform: translateX(-50%); display: flex; flex-direction: column-reverse; gap: 8px; align-items: center; pointer-events: none; width: min(460px, calc(100vw - 32px)); }
@media (max-width: 760px) { .toasts { bottom: 96px; } }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 10px; padding: 11px 16px; border-radius: 14px; background: rgba(40, 46, 54, .95); backdrop-filter: blur(10px); border: 1px solid var(--border); box-shadow: var(--shadow-lg); font-weight: 600; font-size: 14px; animation: toast-in .5s var(--spring) both; max-width: 100%; }
.toast.err { border-color: rgba(255,123,134,.5); color: var(--danger); }
.toast.ok { border-color: rgba(127,224,163,.45); }
.toast.out { animation: toast-out .3s ease forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(24px) scale(.9); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(12px) scale(.95); } }

canvas.confetti { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 300; }

/* Skeleton */
.skel { border-radius: 16px; background: linear-gradient(90deg, var(--surface) 25%, var(--surface-2) 50%, var(--surface) 75%); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; min-height: 150px; }
@keyframes shimmer { to { background-position: -200% 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
#online-count { display: inline-block; font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; }

/* Runden */
.rounds { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.round-tab { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--muted); font: inherit; font-size: 13px; cursor: pointer; transition: transform .2s var(--spring), border-color .2s, color .2s, background .2s; }
.round-tab:hover { color: var(--text); border-color: var(--accent); transform: translateY(-2px); }
.round-tab:active { transform: scale(.94); }
.round-tab.on { background: rgba(124,196,255,.14); border-color: var(--accent); color: var(--text); box-shadow: 0 0 0 3px rgba(124,196,255,.12); }
.round-tab.add { border-style: dashed; color: var(--accent); font-weight: 700; }
.round-tab .pulse-dot { width: 7px; height: 7px; }

/* Spielreihenfolge */
.lineup { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; counter-reset: none; }
.lineup-item { --c: var(--accent); display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 14px; background: linear-gradient(90deg, color-mix(in srgb, var(--c) 16%, var(--surface-2)), var(--surface-2) 60%); border: 1px solid color-mix(in srgb, var(--c) 25%, var(--border-soft)); transition: transform .25s var(--spring); }
.lineup-item:hover { transform: translateX(4px); }
.lineup-item .pos { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; background: var(--c); color: #0c1116; box-shadow: 0 0 12px color-mix(in srgb, var(--c) 50%, transparent); }
.lineup-item:first-child .pos { width: 36px; height: 36px; font-size: 17px; }
.lineup-item .em { font-size: 26px; }
.lineup-item .time { font-weight: 800; color: var(--accent-2); font-size: 15px; }
.cand .bottom .grow { font-size: 12.5px; }
