/* ==========================================================================
   Spielearena – Design
   ========================================================================== */
:root {
  --bg: #07071a;
  --bg-2: #0e0e27;
  --panel: rgba(255, 255, 255, .045);
  --panel-2: rgba(255, 255, 255, .08);
  --border: rgba(255, 255, 255, .09);
  --border-2: rgba(255, 255, 255, .16);
  --text: #eef0ff;
  --muted: #9097c0;
  --accent: #7c5cff;
  --accent-2: #3dd6ff;
  --pink: #ff5c8a;
  --gold: #ffc23d;
  --green: #2ee6a6;
  --red: #ff5c6c;
  --orange: #ff8a3d;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, .6);
  --font: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --display: 'Outfit', var(--font);
  --grad: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--text); font: 15px/1.55 var(--font);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: var(--accent-2); text-decoration: none; }
a:hover { color: #fff; }
h1, h2, h3, h4 { font-family: var(--display); letter-spacing: -.01em; margin: 0 0 .5em; line-height: 1.15; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.1rem; }
small, .small { font-size: .82rem; }
.muted { color: var(--muted); }
.center { text-align: center; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .82rem; }
.mt { margin-top: 2rem; }
.row-gap { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.inline { display: inline; }
::selection { background: var(--accent); color: #fff; }

/* Hintergrund-Leuchten */
.bg-glow { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  background: radial-gradient(ellipse at top, #15133a 0%, var(--bg) 60%); }
.bg-glow::after { content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 48px 48px; mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 75%); }
.bg-glow span { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .45; animation: drift 22s ease-in-out infinite alternate; }
.bg-glow span:nth-child(1) { width: 520px; height: 520px; background: #6a3dff; top: -160px; left: -120px; }
.bg-glow span:nth-child(2) { width: 460px; height: 460px; background: #0bb4ff; top: 10%; right: -160px; animation-delay: -7s; opacity: .3; }
.bg-glow span:nth-child(3) { width: 380px; height: 380px; background: #ff3d8b; bottom: -160px; left: 35%; animation-delay: -13s; opacity: .22; }
@keyframes drift { to { transform: translate(60px, 40px) scale(1.12); } }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }
.container.wide { max-width: 1440px; }
.container.narrow { max-width: 560px; }
main { flex: 1; padding-top: 28px; padding-bottom: 60px; }

/* ---------- Kopfleiste ---------- */
.topbar { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(18px) saturate(1.4);
  background: rgba(7, 7, 26, .72); border-bottom: 1px solid var(--border); }
.topbar-inner { max-width: 1440px; margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; font-family: var(--display); font-weight: 800; font-size: 1.25rem; }
.brand-logo { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; background: var(--grad);
  font-size: 1.35rem; box-shadow: 0 6px 24px -6px var(--accent); }
.mainnav { display: flex; gap: 4px; flex: 1; }
.mainnav a { color: var(--muted); padding: 8px 14px; border-radius: 10px; font-weight: 600; font-size: .93rem; transition: .2s; }
.mainnav a:hover { color: #fff; background: var(--panel); }
.mainnav a.active { color: #fff; background: var(--panel-2); }
.mainnav a.nav-admin { color: var(--gold); }
.usernav { display: flex; align-items: center; gap: 10px; }
.user-chip { display: flex; align-items: center; gap: 8px; color: var(--text); font-weight: 600; padding: 4px 12px 4px 4px; border-radius: 999px; background: var(--panel); border: 1px solid var(--border); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; margin-left: auto; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: #fff; margin: 5px 0; border-radius: 2px; transition: .3s; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 12px;
  font: 600 .93rem var(--font); border: 1px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .2s, background .2s;
  color: #fff; background: var(--panel-2); white-space: nowrap; text-decoration: none; }
.btn:hover { transform: translateY(-1px); color: #fff; }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .5; cursor: default; transform: none; }
.btn-primary { background: var(--grad); box-shadow: 0 8px 24px -10px var(--accent); }
.btn-primary:hover { box-shadow: 0 12px 30px -8px var(--accent); }
.btn-ghost { background: var(--panel); border-color: var(--border-2); }
.btn-ghost:hover { background: var(--panel-2); }
.btn-danger { background: linear-gradient(135deg, #ff4d6d, #d6264a); }
.btn-warn { background: linear-gradient(135deg, #ffb13d, #ff7a3d); color: #1b1200; }
.btn-warn:hover { color: #1b1200; }
.btn-glow { background: color-mix(in srgb, var(--gc) 22%, transparent); border-color: color-mix(in srgb, var(--gc) 50%, transparent); }
.btn-glow:hover { background: var(--gc); color: #0b0b1a; box-shadow: 0 8px 24px -8px var(--gc); }
.btn-sm { padding: 7px 13px; font-size: .85rem; border-radius: 10px; }
.btn-xs { padding: 4px 9px; font-size: .78rem; border-radius: 8px; }
.btn-lg { padding: 14px 26px; font-size: 1.02rem; border-radius: 14px; }
.btn-block { width: 100%; }
.linkbtn { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: .75rem; padding: 0 4px; }
.linkbtn:hover { color: #fff; }
.linkbtn.danger:hover { color: var(--red); }

/* ---------- Panels, Badges ---------- */
.panel { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px;
  backdrop-filter: blur(12px); box-shadow: var(--shadow); }
.badge, .tag { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font-size: .75rem; font-weight: 600;
  background: var(--panel-2); color: var(--text); border: 1px solid var(--border); white-space: nowrap; }
.tag { padding: 2px 8px; font-size: .7rem; }
.tag-win, .badge-finished { background: rgba(46, 230, 166, .14); color: var(--green); border-color: rgba(46, 230, 166, .3); }
.tag-loss, .badge-aborted { background: rgba(255, 92, 108, .14); color: var(--red); border-color: rgba(255, 92, 108, .3); }
.tag-draw { background: rgba(255, 194, 61, .14); color: var(--gold); border-color: rgba(255, 194, 61, .3); }
.tag-admin { background: rgba(255, 194, 61, .16); color: var(--gold); border-color: rgba(255, 194, 61, .35); vertical-align: middle; font-size: .7rem; }
.badge-running, .badge-live { background: rgba(61, 214, 255, .14); color: var(--accent-2); border-color: rgba(61, 214, 255, .3); }
.badge-live::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: pulse 1.4s infinite; }
.badge-waiting { background: rgba(124, 92, 255, .16); color: #b8a6ff; border-color: rgba(124, 92, 255, .35); }
.c-win { color: var(--green); } .c-loss { color: var(--red); } .c-draw { color: var(--gold); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #555a7a; }
.dot.on { background: var(--green); box-shadow: 0 0 8px var(--green); }
@keyframes pulse { 50% { opacity: .35; } }

/* ---------- Avatare ---------- */
.avatar { --c: var(--accent); position: relative; display: inline-grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px;
  background: linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 45%, #000)); color: #fff;
  font: 700 .85rem var(--display); box-shadow: 0 4px 14px -4px var(--c); vertical-align: middle; }
.avatar.xs { width: 24px; height: 24px; border-radius: 7px; font-size: .6rem; }
.avatar.sm { width: 32px; height: 32px; border-radius: 10px; font-size: .72rem; }
.avatar.lg { width: 72px; height: 72px; border-radius: 20px; font-size: 1.5rem; }
.avatar.xl { width: 110px; height: 110px; border-radius: 30px; font-size: 2.4rem; }
.avatar.ghost { background: var(--panel-2); box-shadow: none; color: var(--muted); border: 1px dashed var(--border-2); }
.avatar .dot { position: absolute; right: -3px; bottom: -3px; border: 2px solid var(--bg); width: 11px; height: 11px; }

/* ---------- Meldungen ---------- */
.flash { padding: 12px 16px; border-radius: 12px; margin-bottom: 16px; border: 1px solid var(--border); background: var(--panel); white-space: pre-wrap; }
.flash-success { border-color: rgba(46, 230, 166, .4); background: rgba(46, 230, 166, .1); }
.flash-error { border-color: rgba(255, 92, 108, .4); background: rgba(255, 92, 108, .1); }
.flash-info { border-color: rgba(61, 214, 255, .4); background: rgba(61, 214, 255, .08); }
.toast { visibility: hidden; position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 120px); background: #1b1b3a; border: 1px solid var(--border-2);
  padding: 12px 20px; border-radius: 12px; box-shadow: var(--shadow); transition: .3s; z-index: 100; max-width: 90vw; }
.toast.show { visibility: visible; transform: translate(-50%, 0); }
.toast.error { border-color: var(--red); }

/* ---------- Formulare ---------- */
.form { display: flex; flex-direction: column; gap: 14px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: .85rem; font-weight: 600; color: var(--muted); }
.form label.check { flex-direction: row; align-items: center; gap: 10px; color: var(--text); }
input, select, textarea { font: inherit; color: var(--text); background: rgba(0, 0, 0, .28); border: 1px solid var(--border-2);
  border-radius: 11px; padding: 11px 14px; outline: none; transition: border .2s, box-shadow .2s; width: 100%; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(124, 92, 255, .2); }
input[type=checkbox], input[type=radio] { width: auto; accent-color: var(--accent); }
input[type=range] { padding: 0; accent-color: var(--accent); background: none; border: 0; box-shadow: none; }
input[type=color] { padding: 4px; height: 44px; }
select option { background: var(--bg-2); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
details summary { cursor: pointer; color: var(--muted); font-weight: 600; font-size: .85rem; }
details[open] summary { margin-bottom: 10px; }
.color-row { display: flex; gap: 8px; flex-wrap: wrap; }
.swatch input { display: none; }
.swatch span { display: block; width: 32px; height: 32px; border-radius: 10px; background: var(--c); cursor: pointer; border: 3px solid transparent; transition: .2s; }
.swatch input:checked + span { border-color: #fff; transform: scale(1.1); box-shadow: 0 0 16px var(--c); }

/* ---------- Auth ---------- */
.auth-card { margin-top: 40px; padding: 36px; }
.auth-head { text-align: center; margin-bottom: 20px; }
.auth-icon { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; background: var(--grad); font-size: 2rem; margin-bottom: 14px;
  box-shadow: 0 12px 40px -10px var(--accent); }
.h-display { font-size: 2rem; font-weight: 800; }
.auth-card .flash { margin-bottom: 8px; }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; padding: 40px 0 30px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--accent-2);
  background: rgba(61, 214, 255, .08); border: 1px solid rgba(61, 214, 255, .25); padding: 6px 14px; border-radius: 999px; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(46, 230, 166, .7); animation: ring 1.8s infinite; }
@keyframes ring { 70% { box-shadow: 0 0 0 10px rgba(46, 230, 166, 0); } 100% { box-shadow: 0 0 0 0 rgba(46, 230, 166, 0); } }
.h-hero { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 900; margin: 18px 0 16px; line-height: 1.05; letter-spacing: -.03em; }
.grad { background: linear-gradient(90deg, var(--accent) 0%, var(--accent-2) 50%, var(--pink) 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  background-size: 200% auto; animation: shine 6s linear infinite; }
@keyframes shine { to { background-position: 200% center; } }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 560px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.hero-art { position: relative; height: 380px; }
.float-card { position: absolute; width: 130px; height: 184px; border-radius: 14px; background: linear-gradient(160deg, #fff, #e8e8f5); color: #14142b;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7); display: flex; flex-direction: column; justify-content: space-between; padding: 12px 14px;
  font: 800 1.9rem var(--display); animation: float 7s ease-in-out infinite; }
.float-card i { font-style: normal; font-size: 4rem; align-self: center; line-height: 1; margin-bottom: 26px; }
.float-card.red { color: #e0224e; }
.fc1 { top: 40px; left: 12%; transform: rotate(-12deg); }
.fc2 { top: 70px; left: 38%; transform: rotate(8deg); animation-delay: -3s; }
.float-piece { position: absolute; font-size: 7rem; line-height: 1; filter: drop-shadow(0 20px 30px rgba(0,0,0,.6)); animation: float 8s ease-in-out infinite; }
.fp1 { right: 6%; top: 10px; color: #fff; text-shadow: 0 0 40px rgba(124, 92, 255, .8); animation-delay: -2s; }
.fp2 { right: 24%; bottom: 20px; color: #1c1c3a; -webkit-text-stroke: 2px var(--accent-2); font-size: 5.5rem; animation-delay: -5s; }
.float-chip { position: absolute; left: 8%; bottom: 40px; width: 70px; height: 70px; border-radius: 50%;
  background: repeating-conic-gradient(var(--pink) 0 30deg, #fff 30deg 45deg); box-shadow: inset 0 0 0 10px rgba(0,0,0,.15), 0 16px 30px -10px var(--pink); animation: float 6s ease-in-out infinite -1s; }
.float-chip::after { content: ''; position: absolute; inset: 14px; border-radius: 50%; background: var(--pink); border: 2px dashed rgba(255,255,255,.6); }
@keyframes float { 50% { translate: 0 -14px; } }
.hero-stats { position: absolute; right: 0; bottom: 0; display: flex; gap: 10px; }
.hero-stats div { background: var(--panel-2); border: 1px solid var(--border); border-radius: 14px; padding: 10px 16px; backdrop-filter: blur(10px); }
.hero-stats b { display: block; font: 800 1.5rem var(--display); }
.hero-stats small { color: var(--muted); }

/* ---------- Abschnitte ---------- */
.section { margin-top: 36px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.section-head h2 { margin: 0; }
.section-head p { margin: 0; }
.center-head { flex-direction: column; align-items: center; text-align: center; }
.center-head .h-hero { margin: 12px 0 4px; }

.game-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.game-card { --gc: var(--accent); position: relative; border-radius: var(--radius); overflow: hidden; background: var(--panel); border: 1px solid var(--border);
  transition: transform .25s, border-color .25s, box-shadow .25s; display: flex; flex-direction: column; }
.game-card:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--gc) 60%, transparent); box-shadow: 0 24px 50px -20px var(--gc); }
.gc-art { height: 130px; display: grid; place-items: center; position: relative; overflow: hidden;
  background: radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--gc) 55%, transparent), transparent 60%),
              radial-gradient(circle at 80% 90%, color-mix(in srgb, var(--gc) 30%, transparent), transparent 55%), #0d0d25; }
.gc-art::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(45deg, rgba(255,255,255,.03) 0 10px, transparent 10px 20px); }
.gc-art span { font-size: 4.2rem; color: #fff; text-shadow: 0 0 30px var(--gc), 0 0 60px var(--gc); transition: transform .4s; position: relative; z-index: 1; }
.game-card:hover .gc-art span { transform: scale(1.15) rotate(-6deg); }
.gc-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.gc-body h3 { font-size: 1.25rem; margin-bottom: 4px; }
.gc-body p { color: var(--muted); font-size: .88rem; margin: 0 0 14px; flex: 1; }
.gc-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; }

.chip-row { display: flex; gap: 12px; flex-wrap: wrap; }
.game-pill { --gc: var(--accent); display: flex; align-items: center; gap: 12px; padding: 10px 16px 10px 10px; border-radius: 16px; color: var(--text);
  background: linear-gradient(135deg, color-mix(in srgb, var(--gc) 18%, transparent), var(--panel)); border: 1px solid color-mix(in srgb, var(--gc) 40%, transparent); transition: .2s; }
.game-pill:hover { transform: translateY(-2px); color: #fff; box-shadow: 0 10px 30px -12px var(--gc); }
.game-pill b, .game-pill small { display: block; }
.game-pill small { color: var(--muted); }
.gp-icon, .sc-icon, .tr-icon, .rh-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; font-size: 1.4rem; flex: none;
  background: color-mix(in srgb, var(--gc) 22%, #0d0d25); color: #fff; text-shadow: 0 0 14px var(--gc); border: 1px solid color-mix(in srgb, var(--gc) 45%, transparent); }
.sc-icon.sm { width: 32px; height: 32px; font-size: 1rem; border-radius: 9px; }

.lobby-cols { display: grid; grid-template-columns: 1fr 340px; gap: 28px; align-items: start; }
.table-list { display: flex; flex-direction: column; gap: 10px; }
.table-row { --gc: var(--accent); display: flex; align-items: center; gap: 14px; padding: 12px 16px; color: var(--text); transition: .2s; box-shadow: none; }
.table-row:hover { border-color: color-mix(in srgb, var(--gc) 55%, transparent); transform: translateX(4px); color: #fff; }
.tr-main { flex: 1; min-width: 0; }
.tr-main b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tr-main small { color: var(--muted); }
.seats { display: flex; gap: 4px; }
.seats i { width: 10px; height: 10px; border-radius: 50%; background: var(--panel-2); border: 1px solid var(--border-2); }
.seats i.on { background: var(--gc); border-color: var(--gc); box-shadow: 0 0 8px var(--gc); }
.empty { text-align: center; padding: 40px 20px; }
.empty span { font-size: 3rem; opacity: .4; }
.mini-board { padding: 10px; }
.mb-row { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 12px; color: var(--text); transition: .2s; }
.mb-row:hover { background: var(--panel-2); color: #fff; }
.mb-name { flex: 1; font-weight: 600; }
.mb-pts { font: 700 .95rem var(--display); color: var(--gold); }
.rank { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; font: 800 .85rem var(--display); background: var(--panel-2); color: var(--muted); }
.rank.r1 { background: linear-gradient(135deg, #ffe07a, #f5a623); color: #3a2500; box-shadow: 0 4px 14px -4px #f5a623; }
.rank.r2 { background: linear-gradient(135deg, #f2f4ff, #aab0c8); color: #23263a; }
.rank.r3 { background: linear-gradient(135deg, #ffb98a, #c46a35); color: #2e1406; }

/* Dialog */
.modal { border: 1px solid var(--border-2); border-radius: 22px; background: #11112c; color: var(--text); padding: 28px; width: min(460px, 92vw); box-shadow: 0 40px 100px -20px #000; }
.modal::backdrop { background: rgba(3, 3, 15, .7); backdrop-filter: blur(6px); }
.modal h2 { margin-bottom: 6px; }
.modal output { font: 800 1.4rem var(--display); color: #fff; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 8px; }

/* ---------- Bestenliste ---------- */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin: 10px 0 34px; }
.tabs a { --gc: var(--accent); padding: 8px 14px; border-radius: 999px; background: var(--panel); border: 1px solid var(--border); color: var(--muted); font-weight: 600; font-size: .85rem; transition: .2s; }
.tabs a:hover { color: #fff; border-color: var(--gc); }
.tabs a.active { background: color-mix(in srgb, var(--gc) 28%, transparent); border-color: var(--gc); color: #fff; box-shadow: 0 6px 20px -8px var(--gc); }
.podium { display: flex; justify-content: center; align-items: flex-end; gap: 18px; margin-bottom: 30px; }
.pod { display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--text); width: 170px; }
.pod:hover { color: #fff; }
.pod .crown { font-size: 1.8rem; }
.pod-1 .crown { color: var(--gold); text-shadow: 0 0 20px var(--gold); font-size: 2.4rem; }
.pod b { font: 700 1.05rem var(--display); }
.pod .pts { color: var(--muted); font-size: .85rem; }
.pod-base { width: 100%; margin-top: 8px; border-radius: 16px 16px 6px 6px; display: grid; place-items: center; font: 900 2.4rem var(--display);
  background: linear-gradient(180deg, var(--panel-2), transparent); border: 1px solid var(--border); border-bottom: 0; color: rgba(255,255,255,.3); }
.pod-1 .pod-base { height: 140px; background: linear-gradient(180deg, rgba(255, 194, 61, .35), transparent); border-color: rgba(255, 194, 61, .5); color: var(--gold); }
.pod-2 .pod-base { height: 100px; background: linear-gradient(180deg, rgba(200, 206, 230, .25), transparent); }
.pod-3 .pod-base { height: 72px; background: linear-gradient(180deg, rgba(196, 106, 53, .3), transparent); }
.pod-1 .avatar { width: 88px; height: 88px; font-size: 1.8rem; border-radius: 26px; }
.lb-user { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; }
.pts-big { font: 800 1.15rem var(--display); color: var(--gold); }
.mini-bar { display: inline-block; width: 60px; height: 6px; border-radius: 3px; background: var(--panel-2); margin-right: 8px; vertical-align: middle; overflow: hidden; }
.mini-bar i { display: block; height: 100%; background: var(--grad); }

/* ---------- Tabellen ---------- */
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.table th.right { text-align: right; }
.table td { padding: 11px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: rgba(255, 255, 255, .025); }
.table select { width: auto; min-width: 130px; padding: 7px 10px; }
.table tr.deleted td { opacity: .45; text-decoration: line-through; }
.table-scroll { overflow-x: auto; }

/* ---------- Profil ---------- */
.profile-hero { --c: var(--accent); display: flex; align-items: center; gap: 28px; padding: 30px; position: relative; overflow: hidden;
  background: radial-gradient(circle at 0% 0%, color-mix(in srgb, var(--c) 35%, transparent), transparent 55%), var(--panel); }
.ph-main { flex: 1; min-width: 0; }
.ph-main h1 { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 4px; }
.bio { margin: 10px 0 0; max-width: 560px; }
.ph-stats { display: flex; gap: 12px; }
.big-stat { text-align: center; padding: 14px 20px; border-radius: 16px; background: rgba(0, 0, 0, .25); border: 1px solid var(--border); min-width: 96px; }
.big-stat b { display: block; font: 900 1.8rem var(--display); }
.big-stat small { color: var(--muted); }
.stat-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 18px; }
.tile { padding: 18px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--border); }
.tile b { display: block; font: 900 2.2rem var(--display); }
.tile span { color: var(--muted); font-weight: 600; }
.t-win b { color: var(--green); } .t-loss b { color: var(--red); } .t-draw b { color: var(--gold); }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.stat-card { --gc: var(--accent); padding: 16px; box-shadow: none; }
.sc-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.sc-head b { flex: 1; }
.bar { display: flex; height: 10px; border-radius: 5px; overflow: hidden; background: var(--panel-2); }
.bar i { display: block; height: 100%; transition: width .6s; }
.bw { background: var(--green); } .bd { background: var(--gold); } .bl { background: var(--red); }
.sc-nums { display: flex; gap: 14px; margin-top: 10px; font-weight: 700; font-size: .85rem; }
.sc-nums small { font-weight: 500; color: var(--muted); }
.sc-nums .muted { margin-left: auto; }

/* ---------- Spielraum ---------- */
.room { --gc: var(--accent); display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 22px; align-items: start; }
.room-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.rh-icon { width: 52px; height: 52px; font-size: 1.8rem; border-radius: 15px; }
.rh-text { flex: 1; min-width: 0; }
.rh-text h1 { font-size: 1.5rem; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.banner { padding: 12px 18px; border-radius: 14px; background: var(--panel); border: 1px solid var(--border); margin-bottom: 16px; font-weight: 600; text-align: center; transition: .3s; }
.banner small { color: var(--muted); font-weight: 500; }
.banner.myturn { background: linear-gradient(135deg, color-mix(in srgb, var(--gc) 35%, transparent), rgba(61, 214, 255, .12)); border-color: var(--gc);
  box-shadow: 0 0 30px -10px var(--gc); animation: glowpulse 2s infinite; }
.banner.win { background: rgba(46, 230, 166, .15); border-color: var(--green); color: var(--green); font-size: 1.15rem; }
.banner.loss { background: rgba(255, 92, 108, .12); border-color: var(--red); }
.banner.draw { background: rgba(255, 194, 61, .12); border-color: var(--gold); color: var(--gold); }
@keyframes glowpulse { 50% { box-shadow: 0 0 45px -8px var(--gc); } }
.board-wrap { min-height: 380px; display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; }
.room-side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 84px; }
.side-block { padding: 16px; }
.side-block h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 12px; }
.player-list { display: flex; flex-direction: column; gap: 6px; }
.player { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; color: var(--text); border: 1px solid transparent; transition: .2s; }
.player:hover { background: var(--panel); color: #fff; }
.player.turn { background: color-mix(in srgb, var(--gc) 16%, transparent); border-color: color-mix(in srgb, var(--gc) 55%, transparent); }
.player.turn .avatar { animation: bob 1.2s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-3px); } }
.pl-name { flex: 1; min-width: 0; font-weight: 600; display: flex; flex-direction: column; }
.pl-name small { font-weight: 500; }
.pl-name .you { color: var(--muted); font-size: .78rem; }
.pl-extra { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; align-items: center; }
.room-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.room-actions:empty { display: none; }
.captured { font-size: 1rem; letter-spacing: -2px; }
.captured .pw { color: #fff; } .captured .pb { color: #111; -webkit-text-stroke: .5px #999; }
.chip-tag { background: rgba(255, 194, 61, .14); color: var(--gold); }
.chip-tag::before { content: '●'; font-size: .6rem; }

.waiting { text-align: center; padding: 40px 20px; }
.spinner-ring { width: 120px; height: 120px; margin: 0 auto 20px; border-radius: 50%; display: grid; place-items: center; position: relative; }
.spinner-ring::before { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 3px solid var(--panel-2); border-top-color: var(--gc); border-right-color: var(--gc); animation: spin 1.4s linear infinite; }
.spinner-ring span { font-size: 3rem; text-shadow: 0 0 24px var(--gc); }
@keyframes spin { to { transform: rotate(360deg); } }
.hint { color: var(--gold); font-weight: 700; margin-top: 10px; }

/* Chat */
.chat { display: flex; flex-direction: column; }
.chat-log { height: 300px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding-right: 4px; margin-bottom: 10px; }
.chat-log.tall { height: 460px; }
.chat-log::-webkit-scrollbar { width: 6px; } .chat-log::-webkit-scrollbar-thumb { background: var(--panel-2); border-radius: 3px; }
.msg { display: flex; gap: 8px; align-items: flex-end; }
.msg.mine { flex-direction: row-reverse; }
.bubble { background: var(--panel-2); border-radius: 14px 14px 14px 4px; padding: 7px 11px; max-width: 80%; display: flex; flex-direction: column; word-wrap: break-word; overflow-wrap: anywhere; }
.msg.mine .bubble { background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 70%, transparent), color-mix(in srgb, var(--accent-2) 45%, transparent)); border-radius: 14px 14px 4px 14px; }
.bubble b { font-size: .72rem; color: var(--muted); }
.msg.mine .bubble b { color: rgba(255, 255, 255, .75); }
.bubble time { font-size: .65rem; color: var(--muted); align-self: flex-end; }
.msg.mine .bubble time { color: rgba(255, 255, 255, .6); }
.msg.deleted .bubble { opacity: .45; }
.msg-tools { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; margin-top: 4px; }
.msg-tools details { display: inline; }
.msg-tools details[open] { display: flex; gap: 4px; width: 100%; }
.msg-tools input { padding: 4px 8px; font-size: .8rem; }
.chat-form { display: flex; gap: 8px; }
.chat-form input { padding: 9px 12px; }

/* ---------- Brettspiele ---------- */
.grid-board { display: grid; grid-template-columns: repeat(8, 1fr); width: min(600px, 100%); aspect-ratio: 1; border-radius: 14px; overflow: hidden; position: relative;
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .8), 0 0 0 10px #1a1733, 0 0 0 11px var(--border-2); }
.sq { position: relative; border: 0; padding: 0; margin: 0; display: grid; place-items: center; cursor: default; font: inherit; }
.chess .sq.light { background: #ebe3d3; } .chess .sq.dark { background: #8a6fb8; }
.checkers .sq.light { background: #efe4d0; } .checkers .sq.dark { background: #4a3f6b; }
.sq.movable { cursor: pointer; }
.sq.last::after { content: ''; position: absolute; inset: 0; background: rgba(255, 214, 61, .38); }
.sq.sel::after { content: ''; position: absolute; inset: 0; background: rgba(61, 214, 255, .5); }
.sq.target { cursor: pointer; }
.sq.target::before { content: ''; position: absolute; width: 30%; height: 30%; border-radius: 50%; background: rgba(20, 16, 50, .35); z-index: 2; }
.sq.target.cap::before { width: 86%; height: 86%; background: none; border: 5px solid rgba(20, 16, 50, .35); }
.sq.check { background: radial-gradient(circle, #ff3b5c 0%, #c2183a 60%, transparent 90%) !important; }
.coord { position: absolute; font-size: .65rem; font-weight: 700; opacity: .7; z-index: 3; color: #2a2345; }
.sq.dark .coord { color: #f5eeff; }
.coord.f { right: 4px; bottom: 2px; } .coord.r { left: 4px; top: 2px; }
.piece { position: relative; z-index: 3; font-size: clamp(1.6rem, 5.4vw, 3.2rem); line-height: 1; user-select: none; transition: transform .15s; }
.piece.pw { color: #fff; text-shadow: 0 0 1px #000, 0 0 1px #000, 0 2px 0 #3a2f5c, 0 4px 8px rgba(0, 0, 0, .45); -webkit-text-stroke: 1px #2a2345; }
.piece.pb { color: #1b1530; text-shadow: 0 1px 0 rgba(255, 255, 255, .35), 0 4px 8px rgba(0, 0, 0, .5); }
.sq.movable:hover .piece { transform: scale(1.1) translateY(-2px); }
.chess-wrap { display: flex; gap: 20px; align-items: flex-start; width: 100%; justify-content: center; }
.move-list { width: 170px; background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 12px; }
.move-list h4 { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 8px; }
.move-list ol { margin: 0; padding-left: 34px; max-height: 480px; overflow-y: auto; font: .82rem ui-monospace, monospace; }
.move-list li { padding: 2px 0; } .move-list li span { display: inline-block; width: 64px; }
.promo-pick { position: absolute; inset: 0; background: rgba(8, 6, 25, .82); z-index: 10; display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; backdrop-filter: blur(4px); }
.promo-pick p { width: 100%; text-align: center; font-weight: 700; margin: 0; }
.promo-pick button { width: 80px; height: 80px; border-radius: 16px; border: 1px solid var(--border-2); background: #ebe3d3; cursor: pointer; font-size: 3rem; }
.promo-pick button:hover { background: #fff; transform: scale(1.06); }

.ck { position: relative; z-index: 3; width: 78%; height: 78%; border-radius: 50%; transition: transform .15s; }
.ck-w { background: radial-gradient(circle at 35% 30%, #fff, #e3dccb 55%, #b8ad96); box-shadow: 0 5px 0 #8f846c, 0 8px 14px rgba(0, 0, 0, .5), inset 0 0 0 5px rgba(0,0,0,.06), inset 0 0 0 9px rgba(255,255,255,.4); }
.ck-b { background: radial-gradient(circle at 35% 30%, #ff7a9c, #d61f4c 55%, #8f0f30); box-shadow: 0 5px 0 #5c0a20, 0 8px 14px rgba(0, 0, 0, .5), inset 0 0 0 5px rgba(0,0,0,.1), inset 0 0 0 9px rgba(255,255,255,.18); }
.ck.king::after { content: '♛'; position: absolute; inset: 0; display: grid; place-items: center; font-size: clamp(1rem, 3.4vw, 1.9rem); color: var(--gold); text-shadow: 0 1px 2px #000; }
.sq.movable:hover .ck { transform: translateY(-3px); }

.ttt { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; width: min(420px, 100%); aspect-ratio: 1; }
.ttt-cell { border-radius: 20px; border: 1px solid var(--border-2); background: var(--panel); font: 900 clamp(3rem, 12vw, 5.5rem) var(--display); display: grid; place-items: center; cursor: default; transition: .2s; }
.ttt-cell.can { cursor: pointer; }
.ttt-cell.can:hover { background: color-mix(in srgb, var(--gc) 20%, transparent); border-color: var(--gc); transform: scale(1.03); }
.ttt-cell.win { background: color-mix(in srgb, var(--gc) 30%, transparent); border-color: var(--gc); box-shadow: 0 0 30px -5px var(--gc); }
.ttt-x { color: var(--pink); text-shadow: 0 0 24px var(--pink); animation: pop .3s; }
.ttt-o { color: var(--accent-2); text-shadow: 0 0 24px var(--accent-2); animation: pop .3s; }
@keyframes pop { from { transform: scale(.3); opacity: 0; } }

.c4 { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; padding: 14px; width: min(620px, 100%); border-radius: 22px;
  background: linear-gradient(180deg, #3a4bff, #2331c4); box-shadow: 0 30px 70px -20px rgba(35, 49, 196, .7), inset 0 2px 0 rgba(255,255,255,.25); }
.c4-col { display: grid; grid-template-rows: repeat(6, 1fr); gap: 6px; border: 0; background: none; padding: 4px; border-radius: 14px; cursor: default; }
.c4-col.can { cursor: pointer; }
.c4-col.can:hover { background: rgba(255, 255, 255, .12); }
.c4-slot { aspect-ratio: 1; border-radius: 50%; background: #0b0b24; box-shadow: inset 0 4px 8px rgba(0, 0, 0, .6); display: grid; place-items: center; overflow: hidden; }
.c4-disc { width: 100%; height: 100%; border-radius: 50%; }
.c4-disc.p0 { background: radial-gradient(circle at 35% 30%, #ff8aa5, #ff2d55 60%, #b3002b); }
.c4-disc.p1 { background: radial-gradient(circle at 35% 30%, #fff2a8, #ffc800 60%, #c28a00); }
.c4-disc.drop { animation: drop .45s cubic-bezier(.5, 0, .75, 1.3); }
.c4-disc.win { animation: winglow 1s ease-in-out infinite; box-shadow: 0 0 0 4px #fff inset; }
@keyframes drop { from { transform: translateY(calc(-110% * (var(--r) + 1))); } }
@keyframes winglow { 50% { filter: brightness(1.5); } }

.reversi { background: #0f6d4f; gap: 2px; padding: 8px; box-shadow: 0 30px 70px -20px rgba(0,0,0,.8), 0 0 0 10px #2b1d12, 0 0 0 12px #4a3421; }
.rv-cell { background: #13875f; border: 0; border-radius: 4px; display: grid; place-items: center; cursor: default; position: relative; padding: 0; }
.rv-cell.can { cursor: pointer; }
.rv-cell.can::after { content: ''; width: 26%; height: 26%; border-radius: 50%; background: rgba(0, 0, 0, .28); }
.rv-cell.can:hover::after { width: 70%; height: 70%; background: rgba(0, 0, 0, .25); }
.rv-cell.last { box-shadow: inset 0 0 0 3px var(--gold); }
.rv-disc { width: 82%; height: 82%; border-radius: 50%; }
.rv-disc.p0 { background: radial-gradient(circle at 35% 30%, #555, #111 60%); box-shadow: 0 4px 8px rgba(0,0,0,.5); }
.rv-disc.p1 { background: radial-gradient(circle at 35% 30%, #fff, #d8d8e0 60%); box-shadow: 0 4px 8px rgba(0,0,0,.5); }
.rv-disc.flip { animation: flip .5s; }
@keyframes flip { 0% { transform: rotateY(90deg); } 100% { transform: rotateY(0); } }

/* ---------- Karten ---------- */
.card { --w: 78px; width: var(--w); height: calc(var(--w) * 1.4); flex: none; border-radius: calc(var(--w) * .1); background: linear-gradient(160deg, #ffffff, #ececf6);
  color: #16162e; position: relative; box-shadow: 0 6px 16px -4px rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(0,0,0,.08); font-family: var(--display); font-weight: 800; user-select: none; }
.card.red { color: #e0224e; }
.card .c-tl, .card .c-br { position: absolute; display: flex; flex-direction: column; align-items: center; line-height: 1; font-size: calc(var(--w) * .22); }
.card .c-tl i, .card .c-br i { font-style: normal; font-size: .85em; }
.card .c-tl { top: 6%; left: 8%; } .card .c-br { bottom: 6%; right: 8%; transform: rotate(180deg); }
.card .c-mid { position: absolute; inset: 0; display: grid; place-items: center; font-size: calc(var(--w) * .5); }
.card.back { background: repeating-linear-gradient(45deg, #5b3fe0 0 6px, #4a2fc9 6px 12px); box-shadow: 0 6px 16px -4px rgba(0,0,0,.55), inset 0 0 0 4px #fff, inset 0 0 0 6px #5b3fe0; }
.card.back::after { content: '♞'; position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255,255,255,.55); font-size: calc(var(--w) * .42); }
.card.slot { background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .15); border: 0; }
.card.sm { --w: 52px; } .card.xs { --w: 36px; } .card.lg { --w: 104px; }
.fan { display: flex; justify-content: center; }
.fan .card + .card { margin-left: calc(var(--w) * -.45); }

.card-table { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 26px; position: relative; padding: 24px; border-radius: 28px;
  background: radial-gradient(ellipse at center, #17654a 0%, #0c3d2d 70%, #082a1f 100%); box-shadow: inset 0 0 80px rgba(0, 0, 0, .55), 0 0 0 10px #2a1a10, 0 0 0 12px #4a3120, var(--shadow); }
.opponents { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; }
.opp { text-align: center; padding: 10px 14px; border-radius: 16px; border: 1px solid transparent; transition: .3s; }
.opp.turn { background: rgba(255, 255, 255, .08); border-color: var(--gold); box-shadow: 0 0 24px -6px var(--gold); }
.opp.out { opacity: .4; }
.opp-name { font-weight: 700; margin-bottom: 8px; }
.table-center { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; justify-content: center; }
.pile { position: relative; background: none; border: 0; padding: 0; cursor: default; transition: transform .2s; }
.pile .card { --w: 104px; box-shadow: 3px 3px 0 #3a2aa0, 6px 6px 0 #2e2184, 0 14px 30px -6px rgba(0,0,0,.7), inset 0 0 0 4px #fff, inset 0 0 0 6px #5b3fe0; }
.pile.can { cursor: pointer; }
.pile.can:hover { transform: translateY(-4px) rotate(-2deg); }
.pile-count { position: absolute; top: -8px; right: -8px; background: var(--accent); border-radius: 999px; padding: 2px 8px; font-size: .75rem; font-weight: 700; z-index: 2; }
.card.new { animation: deal .35s ease-out; }
@keyframes deal { from { transform: translateY(-30px) rotate(-10deg); opacity: 0; } }
.table-info { display: flex; flex-direction: column; gap: 8px; min-width: 140px; }
.wish { padding: 8px 12px; border-radius: 12px; background: rgba(0, 0, 0, .35); font-size: .9rem; }
.wish b { font-size: 1.1rem; } .wish.red b { color: #ff6b8a; }
.pending { padding: 8px 12px; border-radius: 12px; background: rgba(255, 92, 108, .25); border: 1px solid var(--red); font-weight: 800; animation: pulse 1.2s infinite; }
.my-hand { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.hand { display: flex; justify-content: center; flex-wrap: wrap; padding: 10px 0 0; }
.hand-card { background: none; border: 0; padding: 0; margin: 0 -10px; cursor: default; transition: transform .2s; }
.hand-card .card { --w: 86px; }
.hand-card.can { cursor: pointer; }
.hand-card.can .card { box-shadow: 0 0 0 3px var(--gold), 0 10px 24px -6px rgba(255, 194, 61, .7); }
.hand-card.can:hover { transform: translateY(-18px); z-index: 2; }
.hand-card:not(.can) .card { filter: brightness(.72); }
.hand-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 12px; }
.wish-pick { position: absolute; inset: 0; border-radius: 28px; background: rgba(5, 10, 20, .85); backdrop-filter: blur(6px); z-index: 10; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px; }
.wish-pick p { width: 100%; text-align: center; font-weight: 700; font-size: 1.1rem; margin: 0; }
.wish-pick button { width: 100px; height: 110px; border-radius: 18px; border: 0; background: #fff; color: #16162e; font-size: 3rem; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; transition: .2s; }
.wish-pick button small { font-size: .8rem; font-weight: 700; }
.wish-pick button.red { color: #e0224e; }
.wish-pick button:hover { transform: translateY(-6px) scale(1.05); box-shadow: 0 14px 30px -8px var(--gold); }

.bj { flex-direction: row; flex-wrap: wrap; justify-content: center; align-items: stretch; gap: 16px; }
.bj-seat { padding: 14px; border-radius: 18px; background: rgba(0, 0, 0, .22); border: 1px solid rgba(255, 255, 255, .08); min-width: 190px; text-align: center; transition: .3s; }
.bj-seat.turn { border-color: var(--gold); box-shadow: 0 0 30px -8px var(--gold); background: rgba(255, 194, 61, .08); }
.bj-seat.me { background: rgba(124, 92, 255, .12); }
.bj-seat.winner { border-color: var(--green); box-shadow: 0 0 30px -6px var(--green); }
.bj-seat.out { opacity: .4; }
.bj-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.bj-val { font: 900 1.4rem var(--display); background: rgba(0,0,0,.35); border-radius: 10px; padding: 0 10px; }
.bj-val.bust { color: var(--red); text-decoration: line-through; }
.bj-state { margin-top: 10px; font-size: .85rem; color: rgba(255,255,255,.7); font-weight: 600; }

.poker { width: 100%; display: flex; flex-direction: column; gap: 18px; }
.poker .felt { margin: 30px 0 50px; }
.felt { position: relative; width: 100%; aspect-ratio: 16 / 9.5; min-height: 380px; border-radius: 50% / 45%;
  background: radial-gradient(ellipse at center, #1c7a57 0%, #0f4f39 60%, #093325 100%);
  box-shadow: inset 0 0 90px rgba(0, 0, 0, .6), 0 0 0 16px #3a2415, 0 0 0 18px #6b4526, 0 30px 80px -20px #000; }
.felt-center { position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%); text-align: center; }
.board-cards { display: flex; gap: 6px; justify-content: center; }
.board-cards .card { --w: 58px; }
.pot { margin-top: 10px; font-size: .95rem; background: rgba(0, 0, 0, .35); display: inline-block; padding: 4px 16px; border-radius: 999px; }
.pot b { color: var(--gold); font-family: var(--display); font-size: 1.15rem; }
.pk-seat { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 4px; z-index: 2; transition: .3s; }
.pk-seat.folded { opacity: .45; } .pk-seat.out { opacity: .25; }
.pk-cards { display: flex; gap: 3px; min-height: 30px; }
.pk-seat.me .pk-cards .card { --w: 62px; }
.pk-plate { position: relative; background: rgba(8, 8, 25, .88); border: 1px solid var(--border-2); border-radius: 12px; padding: 5px 14px; text-align: center; min-width: 110px; }
.pk-plate b { display: block; font-size: .85rem; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pk-plate span { color: var(--gold); font: 700 .9rem var(--display); }
.pk-seat.turn .pk-plate { border-color: var(--gold); box-shadow: 0 0 22px -4px var(--gold); }
.dealer { position: absolute; top: -9px; right: -9px; width: 22px; height: 22px; border-radius: 50%; background: #fff; color: #111; font: 800 .7rem var(--display); display: grid; place-items: center; font-style: normal; box-shadow: 0 2px 6px rgba(0,0,0,.5); }
.pk-bet { display: flex; align-items: center; gap: 5px; font: 700 .85rem var(--display); background: rgba(0, 0, 0, .4); padding: 2px 10px 2px 4px; border-radius: 999px; }
.chip { width: 16px; height: 16px; border-radius: 50%; background: repeating-conic-gradient(var(--pink) 0 45deg, #fff 45deg 90deg); display: inline-block; box-shadow: 0 0 0 2px var(--pink) inset; }
.pk-flag { font-size: .7rem; font-weight: 800; background: var(--red); padding: 1px 8px; border-radius: 6px; letter-spacing: .05em; }
.pk-flag.dim { background: rgba(0,0,0,.4); color: var(--muted); }
.pk-controls { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; align-items: center; padding: 14px; border-radius: 18px; background: var(--panel); border: 1px solid var(--gold); box-shadow: 0 0 30px -12px var(--gold); }
.raise { display: flex; gap: 8px; align-items: center; }
.raise input[type=range] { width: 160px; }
.raise input[type=number] { width: 100px; padding: 8px 10px; }
.pk-info { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pk-info h4 { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.pk-last .fan { justify-content: flex-start; margin-bottom: 10px; gap: 4px; }
.pk-last .fan .card + .card { margin-left: 0; }
.pk-show { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; font-size: .88rem; }
.pk-show > span:first-child { min-width: 80px; font-weight: 600; }
.pk-show .fan { margin: 0; }
.pk-win { color: var(--green); font-size: .9rem; margin-top: 4px; }
.pk-log { max-height: 220px; overflow-y: auto; font-size: .85rem; }
.pk-log div { padding: 3px 0; border-bottom: 1px solid var(--border); color: var(--muted); }
.pk-log b { color: var(--text); }

/* ---------- Admin ---------- */
.admin { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; align-items: start; }
.admin-nav { display: flex; flex-direction: column; gap: 4px; padding: 12px; position: sticky; top: 84px; }
.an-title { font: 800 .75rem var(--display); text-transform: uppercase; letter-spacing: .14em; color: var(--gold); padding: 6px 12px 10px; }
.admin-nav a { padding: 10px 12px; border-radius: 10px; color: var(--muted); font-weight: 600; }
.admin-nav a:hover { background: var(--panel-2); color: #fff; }
.admin-nav a.active { background: var(--grad); color: #fff; }
.admin-main { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.admin-h { font-size: 1.7rem; margin: 0; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.kpi { padding: 18px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--border); position: relative; overflow: hidden; }
.kpi::after { content: ''; position: absolute; right: -30px; top: -30px; width: 100px; height: 100px; border-radius: 50%; background: var(--grad); opacity: .15; }
.kpi small { color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; }
.kpi b { display: block; font: 900 2.2rem var(--display); margin: 4px 0; }
.kpi span { color: var(--muted); font-size: .85rem; }
.admin-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.hbar { --gc: var(--accent); display: grid; grid-template-columns: 140px 1fr 40px; gap: 12px; align-items: center; padding: 6px 0; }
.hbar div { height: 10px; background: var(--panel-2); border-radius: 5px; overflow: hidden; }
.hbar i { display: block; height: 100%; background: var(--gc); box-shadow: 0 0 10px var(--gc); border-radius: 5px; }
.hbar b { text-align: right; }
.filters { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 14px; }
.filters input, .filters select { width: auto; flex: 1; min-width: 150px; padding: 8px 12px; }
.filters .btn, .filters .muted, .filters .tag { flex: none; }
.pager { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.pager a, .pager span { padding: 6px 12px; border-radius: 9px; background: var(--panel); border: 1px solid var(--border); color: var(--muted); }
.pager a.active { background: var(--grad); color: #fff; }
textarea.mono { min-height: 300px; }

/* ---------- Fußzeile ---------- */
.footer { border-top: 1px solid var(--border); padding: 22px 0; color: var(--muted); font-size: .85rem; background: rgba(0,0,0,.2); }
.credits a { color: var(--text); font-weight: 600; }
.credits a:hover { color: var(--accent-2); }
.footer-inner { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- Responsiv ---------- */
@media (max-width: 1100px) {
  .room { grid-template-columns: 1fr; }
  .room-side { position: static; }
  .move-list { display: none; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-art { height: 260px; }
  .float-card { width: 100px; height: 140px; font-size: 1.5rem; }
  .float-card i { font-size: 3rem; margin-bottom: 14px; }
  .float-piece { font-size: 5rem; }
  .lobby-cols, .admin-cols, .pk-info { grid-template-columns: 1fr; }
  .admin { grid-template-columns: 1fr; }
  .admin-nav { position: static; flex-direction: row; flex-wrap: wrap; }
  .an-title { width: 100%; }
  .profile-hero { flex-direction: column; text-align: center; }
  .ph-main h1 { justify-content: center; }
  .stat-tiles { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .topbar-inner { flex-wrap: wrap; gap: 12px; }
  .nav-toggle { display: block; }
  .mainnav, .usernav { display: none; width: 100%; flex-direction: column; align-items: stretch; }
  .nav-open .mainnav, .nav-open .usernav { display: flex; }
  .nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .container { padding-left: 16px; padding-right: 16px; }
  .grid-2 { grid-template-columns: 1fr; }
  .podium { gap: 8px; } .pod { width: 30%; }
  .pod .avatar.lg, .pod-1 .avatar { width: 56px; height: 56px; font-size: 1.1rem; }
  .card-table { padding: 16px 10px; }
  .hand-card .card { --w: 62px; }
  .pile .card, .card.lg { --w: 78px; }
  .felt { aspect-ratio: 3 / 4; border-radius: 40% / 30%; }
  .pk-cards .card.sm { --w: 38px; }
  .pk-seat.me .pk-cards .card { --w: 48px; }
  .board-cards .card { --w: 42px; }
  .pk-plate { min-width: 64px; padding: 3px 6px; }
  .pk-plate b { font-size: .72rem; max-width: 70px; }
  .raise { flex-wrap: wrap; justify-content: center; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .ph-stats { flex-wrap: wrap; justify-content: center; }
  .grid-board { box-shadow: 0 20px 40px -20px rgba(0,0,0,.8), 0 0 0 5px #1a1733; }
  .table td, .table th { padding: 8px 6px; }
}
