/* ===========================================================
   Bierpong 2.0 – Apple-inspiriertes Design
   =========================================================== */
:root {
  --bg: #f5f5f7;
  --bg-elev: #ffffff;
  --bg-sub: #f2f2f7;
  --fill: rgba(120, 120, 128, .12);
  --fill-2: rgba(120, 120, 128, .2);
  --text: #1d1d1f;
  --text-2: #6e6e73;
  --text-3: #86868b;
  --sep: rgba(60, 60, 67, .14);
  --accent: #ff9500;
  --accent-2: #ff6a00;
  --accent-text: #c25e00;
  --blue: #007aff;
  --green: #34c759;
  --red: #ff3b30;
  --purple: #af52de;
  --gold: #ffcc00;
  --glass: rgba(255, 255, 255, .72);
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 28px rgba(0,0,0,.06);
  --shadow-lg: 0 24px 64px rgba(0,0,0,.18);
  --r-lg: 22px;
  --r-md: 16px;
  --r-sm: 12px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Inter", "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(.32, .72, 0, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --bg-elev: #1c1c1e;
    --bg-sub: #2c2c2e;
    --fill: rgba(120, 120, 128, .24);
    --fill-2: rgba(120, 120, 128, .36);
    --text: #f5f5f7;
    --text-2: #a1a1a6;
    --text-3: #8e8e93;
    --sep: rgba(84, 84, 88, .55);
    --accent: #ff9f0a;
    --accent-2: #ff7a00;
    --accent-text: #ffb340;
    --blue: #0a84ff;
    --green: #30d158;
    --red: #ff453a;
    --purple: #bf5af2;
    --gold: #ffd60a;
    --glass: rgba(22, 22, 24, .72);
    --shadow: 0 0 0 1px rgba(255,255,255,.05);
    --shadow-lg: 0 24px 64px rgba(0,0,0,.6);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--font);
  font-size: 16px; line-height: 1.45; letter-spacing: -.011em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  min-height: 100vh; overflow-x: hidden;
}
button, input { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
button:disabled { cursor: not-allowed; }
h1, h2, h3 { margin: 0; letter-spacing: -.025em; }
p { margin: 0; }
img { display: block; }
.muted { color: var(--text-2); }
.small { font-size: 13px; }
.center { text-align: center; display: flex; justify-content: center; }
.center-block { display: block; margin: 18px auto 0; }
.pad { padding: 10px 18px 16px; }
.danger-text { color: var(--red); }
.ic { width: 20px; height: 20px; flex: none; }

/* ---------- Topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: var(--glass); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: .5px solid var(--sep);
  padding-top: env(safe-area-inset-top);
}
.topbar-inner { max-width: 1180px; margin: 0 auto; height: 52px; padding: 0 20px; display: flex; align-items: center; gap: 18px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 17px; letter-spacing: -.02em; }
.brand img { border-radius: 7px; }
.topnav { display: flex; gap: 2px; margin: 0 auto; }
.nav-link { position: relative; padding: 6px 12px; border-radius: 999px; font-size: 14px; color: var(--text-2); font-weight: 500; transition: color .2s, background .2s; }
.nav-link:hover { color: var(--text); }
.nav-link.on { color: var(--text); background: var(--fill); }
.live-dot { position: absolute; top: 5px; right: 4px; width: 7px; height: 7px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 2px var(--bg); animation: pulse 1.6s infinite; }
.savestate { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-3); white-space: nowrap; }
.savestate .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.savestate.busy .dot { background: var(--accent); animation: pulse 1s infinite; }
.savestate.off .dot { background: var(--red); }

/* ---------- Tabbar (mobil) ---------- */
.tabbar { display: none; }
@media (max-width: 860px) {
  .topnav { display: none; }
  .savestate { margin-left: auto; }
  .tabbar {
    display: flex; position: fixed; z-index: 50; left: 0; right: 0; bottom: 0;
    background: var(--glass); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-top: .5px solid var(--sep); padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
  }
  .tab-item { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 10.5px; font-weight: 500; color: var(--text-3); padding: 4px 0; }
  .tab-item .ic { width: 24px; height: 24px; }
  .tab-item.on { color: var(--accent); }
  .tab-item .live-dot { top: 2px; right: calc(50% - 18px); }
  main { padding-bottom: 96px !important; }
}

/* ---------- Layout ---------- */
main { max-width: 1180px; margin: 0 auto; padding: 28px 20px 64px; }
.page { animation: pageIn .45s var(--ease); }
@keyframes pageIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 4px 0 22px; }
.page-head h1 { font-size: clamp(32px, 5vw, 44px); font-weight: 700; line-height: 1.05; }
.eyebrow { font-size: 13px; font-weight: 600; color: var(--accent-text); letter-spacing: -.005em; margin-bottom: 4px; }
.lead { color: var(--text-2); font-size: 17px; margin: -8px 0 22px; max-width: 640px; }
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 30px 2px 12px; }
.card .sec-head { margin: 0 0 14px; }
.sec-head h2 { font-size: 21px; font-weight: 700; }
.card { background: var(--bg-elev); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--shadow); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
@media (max-width: 860px) { .grid-2 { grid-template-columns: 1fr; } main { padding-top: 18px; } .card { padding: 18px; } }
.count { font-size: 13px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--fill); color: var(--text-2); font-variant-numeric: tabular-nums; }
.count.ok { background: color-mix(in srgb, var(--green) 18%, transparent); color: var(--green); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: 999px; font-weight: 600; font-size: 15px;
  background: var(--fill); color: var(--text); transition: transform .15s var(--ease), opacity .2s, background .2s; white-space: nowrap;
}
.btn:active:not(:disabled) { transform: scale(.97); }
.btn:hover:not(:disabled) { background: var(--fill-2); }
.btn:disabled { opacity: .38; }
.btn.primary { background: var(--accent); color: #fff; }
.btn.primary:hover:not(:disabled) { background: var(--accent-2); }
.btn.tinted { background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent-text); }
.btn.destructive { background: var(--red); }
.btn.destructive:hover:not(:disabled) { background: var(--red); opacity: .9; }
.btn.plain { background: transparent; color: var(--blue); }
.btn.block { display: flex; width: 100%; margin-top: 12px; }
.btn.small { min-height: 34px; padding: 0 14px; font-size: 13px; }
.btn.big { min-height: 54px; padding: 0 36px; font-size: 17px; }
.btn.icon-only { padding: 0; width: 44px; flex: none; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.btn-row .btn { flex: 1 1 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: var(--text-2); background: var(--fill); cursor: pointer; flex: none; transition: background .2s; }
.icon-btn:hover { background: var(--fill-2); color: var(--text); }
.icon-btn.danger { color: var(--red); }
.icon-btn.round { width: 44px; height: 44px; }
.link { color: var(--blue); font-weight: 500; font-size: 15px; }
.link:hover { text-decoration: underline; }

/* ---------- Segmented ---------- */
.seg { display: inline-flex; padding: 2px; border-radius: 10px; background: var(--fill); gap: 2px; }
.seg-btn { padding: 6px 14px; border-radius: 8px; font-size: 14px; font-weight: 500; color: var(--text); transition: background .2s, box-shadow .2s; white-space: nowrap; }
.seg-btn.on { background: var(--bg-elev); box-shadow: 0 3px 8px rgba(0,0,0,.12), 0 0 0 .5px rgba(0,0,0,.04); font-weight: 600; }
@media (prefers-color-scheme: dark) { .seg-btn.on { background: #636366; } }
.form-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; border-top: .5px solid var(--sep); flex-wrap: wrap; }
.form-row:first-of-type { margin-top: 16px; }
.form-row label { font-weight: 500; }

/* ---------- Inputs ---------- */
.field { width: 100%; height: 44px; border-radius: var(--r-sm); border: 0; background: var(--fill); padding: 0 14px; outline: none; transition: box-shadow .2s; }
.field:focus { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 40%, transparent); }
.field::placeholder { color: var(--text-3); }
.input-row { display: flex; gap: 8px; margin-bottom: 12px; }

/* ---------- Avatare ---------- */
.av { position: relative; display: inline-grid; place-items: center; border-radius: 50%; flex: none; background: var(--fill); }
.av img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.av-letter { width: 100%; height: 100%; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff;
  background: linear-gradient(145deg, hsl(var(--h) 80% 62%), hsl(calc(var(--h) + 30) 75% 48%)); }
.av-sm { width: 28px; height: 28px; font-size: 13px; }
.av-md { width: 40px; height: 40px; font-size: 17px; }
.av-lg { width: 64px; height: 64px; font-size: 26px; }
.av-xl { width: 92px; height: 92px; font-size: 36px; }
.av-xxl { width: clamp(96px, 13vw, 168px); height: clamp(96px, 13vw, 168px); font-size: 56px; }
.av-ring { box-shadow: 0 0 0 3px var(--bg-elev), 0 0 0 5px color-mix(in srgb, var(--accent) 70%, transparent); }
.av-cos { position: absolute; top: -18%; right: -14%; font-size: .9em; filter: drop-shadow(0 2px 4px rgba(0,0,0,.25)); line-height: 1; }
.av-sm .av-cos { font-size: 14px; } .av-md .av-cos { font-size: 18px; } .av-lg .av-cos { font-size: 26px; } .av-xl .av-cos { font-size: 36px; } .av-xxl .av-cos { font-size: clamp(36px, 5vw, 60px); }

/* ---------- Player-Chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pchip { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px; border-radius: 999px; background: var(--fill); font-weight: 500; font-size: 15px; transition: background .2s, transform .15s var(--ease), box-shadow .2s; white-space: nowrap; }
.pchip:active { transform: scale(.96); }
.pchip.on { background: color-mix(in srgb, var(--accent) 18%, var(--bg-elev)); box-shadow: inset 0 0 0 1.5px var(--accent); }
.pchip-check { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--accent); color: #fff; margin-left: -2px; }
.pchip-check .ic { width: 12px; height: 12px; stroke-width: 3; }
.pchip-n { font-size: 12px; font-weight: 700; color: var(--text-2); background: var(--fill); border-radius: 999px; padding: 1px 7px; }
.scroller { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 14px; margin: 0 -2px; scrollbar-width: none; }
.scroller::-webkit-scrollbar { display: none; }

/* ---------- Home ---------- */
.home-hero { margin: 18px 0 26px; }
.display { font-size: clamp(38px, 6.4vw, 72px); font-weight: 800; line-height: 1.02; letter-spacing: -.04em; }
.grad { background: linear-gradient(90deg, #ff9f0a, #ff375f 55%, #bf5af2); -webkit-background-clip: text; background-clip: text; color: transparent; }
.live-banner {
  width: 100%; display: flex; align-items: center; gap: 14px; text-align: left; margin-bottom: 22px;
  padding: 16px 18px; border-radius: var(--r-lg); color: #fff;
  background: linear-gradient(120deg, #1c1c1e, #3a1d0a); box-shadow: var(--shadow-lg);
}
.live-banner .ic { color: rgba(255,255,255,.6); }
.lb-text { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.lb-text span { color: rgba(255,255,255,.7); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-time { font-variant-numeric: tabular-nums; font-weight: 700; font-size: 22px; }
.lb-pulse { width: 10px; height: 10px; border-radius: 50%; background: #8e8e93; flex: none; display: inline-block; }
.lb-pulse.on { background: #ff453a; animation: pulse 1.6s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,69,58,.6); } 70% { box-shadow: 0 0 0 10px rgba(255,69,58,0); } 100% { box-shadow: 0 0 0 0 rgba(255,69,58,0); } }

.hl-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 860px) { .hl-row { grid-template-columns: repeat(2, 1fr); } }
.hl-card { position: relative; overflow: hidden; border-radius: var(--r-lg); padding: 20px 16px 18px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; background: var(--bg-elev); box-shadow: var(--shadow); }
.hl-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 70px; background: linear-gradient(180deg, var(--tone), transparent); opacity: .22; }
.tone-gold { --tone: #ffcc00; } .tone-orange { --tone: #ff9500; } .tone-blue { --tone: #007aff; } .tone-green { --tone: #34c759; }
.hl-label { position: relative; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--text-2); margin-bottom: 8px; }
.hl-name { font-weight: 700; font-size: 19px; margin-top: 8px; }
.hl-value { color: var(--text-2); font-size: 14px; font-variant-numeric: tabular-nums; }

.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 860px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
.tile { text-align: left; display: flex; flex-direction: column; gap: 2px; padding: 18px; border-radius: var(--r-lg); background: var(--bg-elev); box-shadow: var(--shadow); transition: transform .25s var(--ease); }
.tile:hover { transform: translateY(-2px); } .tile:active { transform: scale(.98); }
.tile-ic { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: var(--c); color: #fff; margin-bottom: 12px; box-shadow: 0 6px 16px color-mix(in srgb, var(--c) 40%, transparent); }
.tile-ic .ic { width: 22px; height: 22px; }
.tile-t { font-weight: 700; font-size: 17px; }
.tile-s { color: var(--text-2); font-size: 14px; }
.challenge-card { margin-top: 18px; }
.challenge { display: flex; align-items: center; gap: 22px; }
.challenge h3 { font-size: 21px; margin-bottom: 2px; }

/* Ring */
.ring { --p: 0; --c: var(--accent); width: 84px; height: 84px; flex: none; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--c) calc(var(--p) * 1%), var(--fill) 0); position: relative; transition: --p .6s; }
.ring::before { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: var(--bg-elev); }
.ring span { position: relative; font-weight: 700; font-size: 17px; font-variant-numeric: tabular-nums; }

/* ---------- Rangliste ---------- */
.podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; align-items: end; gap: 12px; max-width: 640px; margin: 10px auto 26px; }
.pod { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.pod-crown { font-size: 30px; margin-bottom: -6px; animation: float 3s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-4px); } }
.pod-name { font-weight: 700; font-size: 17px; margin-top: 6px; }
.pod-rate { color: var(--text-2); font-size: 14px; font-variant-numeric: tabular-nums; }
.pod-block { width: 100%; margin-top: 8px; border-radius: 16px 16px 6px 6px; display: grid; place-items: center; font-size: 34px; font-weight: 800; color: rgba(255,255,255,.95); }
.pod-1 .pod-block { height: 120px; background: linear-gradient(180deg, #ffd60a, #ff9f0a); }
.pod-2 .pod-block { height: 86px; background: linear-gradient(180deg, #d1d1d6, #8e8e93); }
.pod-3 .pod-block { height: 64px; background: linear-gradient(180deg, #e0a36b, #a2622e); }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 860px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .stats-grid { grid-template-columns: 1fr; } }
.stat { background: var(--bg-elev); border-radius: var(--r-lg); padding: 16px 18px; box-shadow: var(--shadow); }
.stat-top { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--text-2); margin-bottom: 12px; }
.stat-top .ic { width: 16px; height: 16px; color: var(--accent); }
.stat-body { display: flex; align-items: center; gap: 12px; }
.stat-value { font-size: 30px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.stat-sub { color: var(--text-2); font-size: 14px; margin-top: 3px; }
.duo { display: flex; align-items: center; gap: 18px; }
.duo-avs { display: flex; } .duo-avs .av + .av { margin-left: -10px; }
.duo h3 { font-size: 20px; }
.card + .sec-head, .stats-grid + .card { margin-top: 18px; }

/* Listen */
.list { background: var(--bg-elev); border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; }
.card .list { box-shadow: none; background: transparent; border-radius: 0; margin: 0 -4px; }
.row { display: flex; align-items: center; gap: 12px; padding: 12px 18px; position: relative; width: 100%; text-align: left; }
.row + .row::before { content: ""; position: absolute; top: 0; left: 18px; right: 0; height: .5px; background: var(--sep); }
.list.compact .row { padding: 10px 4px; }
.list.compact .row + .row::before { left: 4px; }
.row-rank { width: 22px; font-weight: 700; color: var(--text-3); font-variant-numeric: tabular-nums; text-align: center; }
.row-main { flex: 1; min-width: 0; }
.row-title { font-weight: 600; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.row-stats { display: flex; gap: 18px; text-align: right; font-variant-numeric: tabular-nums; }
.row-stats div { display: flex; flex-direction: column; line-height: 1.15; min-width: 32px; }
.row-stats small { color: var(--text-3); font-size: 11px; }
.row-stats .rate { min-width: 70px; }
.row-stats .rate b { color: var(--accent-text); }
@media (max-width: 600px) { .hide-sm { display: none !important; } .row-stats { gap: 12px; } .row { padding: 12px 14px; } }
.bar { height: 5px; border-radius: 3px; background: var(--fill); margin-top: 7px; overflow: hidden; max-width: 240px; }
.bar span { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--accent), #ff375f); transition: width .6s var(--ease); }
.bar.thin { height: 4px; max-width: none; }
.tag { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--fill); color: var(--text-2); }
.tag.big { display: inline-block; font-size: 13px; padding: 3px 10px; margin: 4px 0 6px; background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent-text); }
.pill { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.pill.orange { background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent-text); }
.pill.gray { background: var(--fill); color: var(--text-2); }
.pill.blue { background: color-mix(in srgb, var(--blue) 15%, transparent); color: var(--blue); }
.pill.purple { background: color-mix(in srgb, var(--purple) 16%, transparent); color: var(--purple); }
.pill.green { background: color-mix(in srgb, var(--green) 16%, transparent); color: var(--green); }
.pill.red { background: color-mix(in srgb, var(--red) 14%, transparent); color: var(--red); }

/* ---------- Spielen ---------- */
.manual { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 4px; }
.manual.four { margin: 10px 0 4px; }
@media (max-width: 600px) { .manual { grid-template-columns: 1fr; } }
.manual-col { background: var(--bg-sub); border-radius: var(--r-md); padding: 12px; display: flex; flex-direction: column; gap: 10px; }
@media (prefers-color-scheme: dark) { .manual-col { background: var(--bg-sub); } }
.manual-h { font-weight: 700; display: flex; justify-content: space-between; }
.match-card { display: flex; flex-direction: column; }
.versus { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; }
.team { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.team-label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--text-3); }
.team-avs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.team-p { display: flex; flex-direction: column; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; }
.team-empty { width: 64px; height: 64px; border-radius: 50%; border: 2px dashed var(--fill-2); display: grid; place-items: center; color: var(--text-3); font-size: 22px; font-weight: 700; }
.vs { font-weight: 800; font-size: 15px; color: var(--text-3); letter-spacing: .05em; }
.chance { margin-top: 18px; }
.chance-labels { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; margin-bottom: 6px; font-variant-numeric: tabular-nums; gap: 10px; }
.chance-bar { height: 8px; border-radius: 4px; background: #5e5ce6; overflow: hidden; }
.chance-bar span { display: block; height: 100%; background: var(--accent); border-radius: 4px 0 0 4px; transition: width .6s var(--ease); }
.clock { text-align: center; font-size: clamp(56px, 9vw, 84px); font-weight: 700; letter-spacing: -.04em; font-variant-numeric: tabular-nums; margin: 18px 0 2px; line-height: 1; }
.resolve { margin-top: 18px; padding-top: 16px; border-top: .5px solid var(--sep); }
.resolve-h { font-weight: 700; text-align: center; }
.match .muted.center { margin-top: 16px; }

/* ---------- Live ---------- */
body[data-tab="live"] { background: #000; color: #f5f5f7; color-scheme: dark; }
body[data-tab="live"] .topbar { background: rgba(0,0,0,.6); border-color: rgba(255,255,255,.08); --text: #f5f5f7; --text-2: #a1a1a6; --fill: rgba(120,120,128,.28); color: #f5f5f7; }
body[data-tab="live"] .tabbar { background: rgba(20,20,22,.75); border-color: rgba(255,255,255,.08); }
body[data-tab="live"] main { max-width: 1400px; }
body[data-tab="live"] .card { background: #1c1c1e; color: #f5f5f7; }
.live { position: relative; padding: 8px 0 20px; }
.live::before { content: ""; position: fixed; inset: 0; z-index: -1; background:
  radial-gradient(60% 50% at 15% 30%, rgba(255,159,10,.28), transparent 70%),
  radial-gradient(55% 50% at 85% 35%, rgba(94,92,230,.32), transparent 70%),
  radial-gradient(70% 50% at 50% 110%, rgba(255,55,95,.22), transparent 70%), #000; }
.live-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.live-kicker { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; color: rgba(255,255,255,.75); text-transform: uppercase; letter-spacing: .06em; }
.live-actions { display: flex; gap: 10px; align-items: center; }
.live .seg { background: rgba(120,120,128,.3); }
.live .seg-btn { color: #fff; } .live .seg-btn.on { background: #636366; }
.live .icon-btn { background: rgba(120,120,128,.3); color: #fff; }
.live-clock { text-align: center; font-size: clamp(64px, 12vw, 150px); font-weight: 700; letter-spacing: -.05em; font-variant-numeric: tabular-nums; line-height: 1; margin: 22px 0 8px;
  background: linear-gradient(180deg, #fff, rgba(255,255,255,.55)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.live-versus { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; margin: 26px 0; }
.live-team { display: flex; justify-content: center; gap: clamp(14px, 3vw, 40px); flex-wrap: wrap; }
.live-p { display: flex; flex-direction: column; align-items: center; gap: 12px; font-weight: 700; font-size: clamp(18px, 2.4vw, 30px); letter-spacing: -.02em; }
.live .av-ring { box-shadow: 0 0 0 4px #000, 0 0 0 7px rgba(255,159,10,.85), 0 20px 50px rgba(0,0,0,.6); }
.live-team:last-child .av-ring { box-shadow: 0 0 0 4px #000, 0 0 0 7px rgba(94,92,230,.95), 0 20px 50px rgba(0,0,0,.6); }
.live-vs { font-size: clamp(26px, 4vw, 52px); font-weight: 900; letter-spacing: -.02em; background: linear-gradient(180deg, #ff9f0a, #ff375f); -webkit-background-clip: text; background-clip: text; color: transparent; }
.live-chance { max-width: 760px; margin: 0 auto 26px; }
.live-chance .chance-labels { font-size: 15px; color: rgba(255,255,255,.85); font-weight: 500; }
.chance-bar.big { height: 12px; border-radius: 6px; }
.live-note { text-align: center; font-size: 12px; color: rgba(255,255,255,.45); margin-top: 8px; }
.live-panels { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 860px) { .live-panels { grid-template-columns: 1fr; } .live-versus { grid-template-columns: 1fr; } .live-vs { text-align: center; } }
.glass { background: rgba(44,44,46,.55); backdrop-filter: blur(30px) saturate(160%); -webkit-backdrop-filter: blur(30px) saturate(160%); border: .5px solid rgba(255,255,255,.1); border-radius: var(--r-lg); padding: 18px; }
.glass-h { font-weight: 700; font-size: 15px; color: rgba(255,255,255,.7); margin-bottom: 12px; }
.glass .btn-row { margin-top: 0; }
.live-games { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.lg-btn { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 4px; border-radius: 14px; background: rgba(120,120,128,.24); color: #fff; font-size: 13px; font-weight: 600; transition: background .2s, transform .15s; }
.lg-btn span { font-size: 26px; }
.lg-btn:hover { background: rgba(120,120,128,.4); } .lg-btn:active { transform: scale(.96); }
.glass-btn { background: rgba(120,120,128,.3); color: #fff; }
.glass-btn:hover:not(:disabled) { background: rgba(120,120,128,.45); }
.glass-btn.win { background: linear-gradient(135deg, #ff9f0a, #ff6a00); }
.glass-btn.win:last-child { background: linear-gradient(135deg, #5e5ce6, #0a84ff); }

/* ---------- Turnier ---------- */
.bracket { display: grid; grid-template-columns: 1fr 1.1fr 1fr; gap: 18px; align-items: center; }
@media (max-width: 900px) { .bracket { grid-template-columns: 1fr; } .br-col.final { order: 3; } }
.br-col { background: var(--bg-elev); border-radius: var(--r-lg); padding: 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px; }
.br-col.final { background: linear-gradient(160deg, color-mix(in srgb, var(--gold) 18%, var(--bg-elev)), var(--bg-elev) 60%); }
.br-h { font-size: 13px; font-weight: 700; color: var(--text-2); text-transform: uppercase; letter-spacing: .05em; text-align: center; }
.br-vs { text-align: center; font-size: 12px; font-weight: 700; color: var(--text-3); text-transform: uppercase; }
.bt { background: var(--bg-sub); border-radius: var(--r-md); padding: 12px; display: flex; flex-direction: column; gap: 8px; transition: box-shadow .2s; }
.bt.win { box-shadow: inset 0 0 0 2px var(--green); background: color-mix(in srgb, var(--green) 10%, var(--bg-elev)); }
.bt-tbd { color: var(--text-3); text-align: center; padding: 18px; font-size: 14px; }
.bt-tbd.tall { padding: 46px 18px; }
.bt-name { border: 0; background: transparent; font-weight: 700; font-size: 17px; padding: 2px 4px; border-radius: 8px; outline: none; width: 100%; }
.bt-name:focus { background: var(--fill); }
.bt-players { display: flex; gap: 10px; flex-wrap: wrap; }
.bt-p { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; }
.bt-pick { align-self: stretch; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 8px; border-radius: 10px; font-size: 13px; font-weight: 600; color: var(--blue); background: var(--bg-elev); }
.bt.win .bt-pick { color: var(--green); }
.bt-pick .ic { width: 16px; height: 16px; stroke-width: 2.6; }
.champion { text-align: center; padding: 18px; border-radius: var(--r-md); background: linear-gradient(135deg, #ffd60a, #ff9f0a); color: #3a2400; margin-top: 6px; animation: pop .6s var(--ease); }
.champion .eyebrow, .champion .muted { color: rgba(58,36,0,.75); }
.champ-emoji { font-size: 42px; }
.champ-name { font-size: 26px; font-weight: 800; letter-spacing: -.03em; }
@keyframes pop { from { transform: scale(.8); opacity: 0; } }

/* ---------- Minispiele ---------- */
.game-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.game-card { position: relative; overflow: hidden; text-align: left; padding: 22px; border-radius: var(--r-lg); background: var(--bg-elev); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 4px; min-height: 170px; transition: transform .25s var(--ease); }
.game-card::after { content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; background: var(--c); opacity: .16; filter: blur(10px); }
.game-card:hover { transform: translateY(-3px); } .game-card:active { transform: scale(.98); }
.gc-emoji { font-size: 44px; margin-bottom: 14px; }
.gc-t { font-weight: 700; font-size: 20px; }
.gc-s { color: var(--text-2); font-size: 14px; }
.gc-go { position: absolute; right: 18px; bottom: 18px; color: var(--text-3); }
.game-top { margin-bottom: 8px; }
.back { display: inline-flex; align-items: center; gap: 2px; color: var(--blue); font-size: 17px; margin-left: -6px; }
.back .ic { width: 22px; height: 22px; }
.game-stage { max-width: 720px; margin: 0 auto; }
.game-title { font-size: clamp(30px, 5vw, 42px); font-weight: 700; text-align: center; margin: 8px 0 22px; }
.q-card { background: var(--bg-elev); border-radius: 26px; padding: 28px; box-shadow: var(--shadow); }
.q-card .eyebrow { text-align: center; }
.q-text { font-size: clamp(22px, 3.4vw, 30px); font-weight: 700; text-align: center; letter-spacing: -.025em; line-height: 1.2; margin: 6px 0 24px; }
.answers { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 520px) { .answers { grid-template-columns: 1fr; } }
.answer { display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: var(--r-md); background: var(--fill); font-weight: 600; font-size: 17px; text-align: left; transition: background .25s, transform .15s, opacity .25s; }
.answer:hover:not(:disabled) { background: var(--fill-2); }
.ans-l { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-elev); font-size: 14px; color: var(--text-2); flex: none; }
.answer.right { background: var(--green); color: #fff; } .answer.right .ans-l { color: var(--green); }
.answer.wrong { background: var(--red); color: #fff; animation: shake .4s; } .answer.wrong .ans-l { color: var(--red); }
.answer.dim { opacity: .45; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.verdict { margin-top: 18px; padding: 14px 16px; border-radius: var(--r-md); font-weight: 500; text-align: center; animation: pop .4s var(--ease); }
.verdict.good { background: color-mix(in srgb, var(--green) 16%, transparent); color: var(--green); }
.verdict.bad { background: color-mix(in srgb, var(--red) 13%, transparent); color: var(--red); }
.return-hint { text-align: center; margin-top: 16px; color: var(--text-2); font-size: 14px; }
.return-hint .link { font-size: 14px; }
.est-value { text-align: center; font-size: clamp(48px, 9vw, 76px); font-weight: 800; letter-spacing: -.04em; font-variant-numeric: tabular-nums; line-height: 1; margin-bottom: 18px; }
.est-ctrl { display: flex; align-items: center; gap: 12px; }
.est-range { display: flex; justify-content: space-between; color: var(--text-3); font-size: 13px; margin: 6px 56px 10px; font-variant-numeric: tabular-nums; }
.slider { -webkit-appearance: none; appearance: none; flex: 1; height: 6px; border-radius: 3px; background: var(--fill-2); outline: none; }
.slider::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; border-radius: 50%; background: #fff; box-shadow: 0 3px 8px rgba(0,0,0,.25), 0 0 0 .5px rgba(0,0,0,.08); cursor: grab; }
.slider::-moz-range-thumb { width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 3px 8px rgba(0,0,0,.25); }
.wop-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.btn.wop { min-height: 64px; font-size: 20px; border-radius: 20px; color: #fff; }
.btn.wop.truth { background: linear-gradient(135deg, #0a84ff, #5e5ce6); }
.btn.wop.dare { background: linear-gradient(135deg, #ff375f, #ff9f0a); }
.flash { margin-top: 16px; min-height: 200px; border-radius: 26px; padding: 30px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; background: var(--bg-elev); box-shadow: var(--shadow); animation: pop .4s var(--ease); }
.flash.truth { background: linear-gradient(135deg, #0a84ff, #5e5ce6); color: #fff; }
.flash.dare { background: linear-gradient(135deg, #ff375f, #ff9f0a); color: #fff; }
.flash-type { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; opacity: .8; margin-bottom: 10px; }
.flash-text { font-size: clamp(22px, 3.5vw, 30px); font-weight: 700; letter-spacing: -.02em; line-height: 1.25; }
.wop-edit { margin-top: 18px; text-align: left; }
.wop-edit .list { max-height: 360px; overflow: auto; }
.wheel-wrap { position: relative; width: min(440px, 88vw); margin: 0 auto; }
.wheel-svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 20px 40px rgba(0,0,0,.2)); }
#wheelG { transform-origin: 160px 160px; transform-box: view-box; }
.wheel-txt { fill: #fff; font-size: 9.5px; paint-order: stroke; stroke: rgba(0,0,0,.12); stroke-width: 2px; font-weight: 700; letter-spacing: 0; }
.wheel-hub { fill: var(--bg-elev); stroke: rgba(0,0,0,.08); }
.wheel-pointer { position: absolute; z-index: 2; left: 50%; top: -6px; transform: translateX(-50%); width: 0; height: 0; border-left: 16px solid transparent; border-right: 16px solid transparent; border-top: 30px solid var(--text); filter: drop-shadow(0 3px 4px rgba(0,0,0,.3)); }
.wheel-result { text-align: center; font-size: 26px; font-weight: 800; letter-spacing: -.02em; margin: 22px 0 14px; opacity: 0; transform: scale(.9); transition: all .4s var(--ease); }
.wheel-result.show { opacity: 1; transform: none; }
.act-top { display: flex; justify-content: space-between; align-items: center; }
.act-top .eyebrow { text-align: left; }
.act-mode { font-size: 24px; font-weight: 700; }
.ring.timer { width: 96px; height: 96px; --c: var(--blue); }
.ring.timer span { font-size: 30px; }
.ring.timer.danger { --c: var(--red); animation: pulseRing 1s infinite; }
@keyframes pulseRing { 50% { transform: scale(1.05); } }
.act-term { font-size: clamp(40px, 8vw, 68px); font-weight: 800; text-align: center; letter-spacing: -.04em; margin: 28px 0 10px; line-height: 1.05; word-break: break-word; }

/* ---------- Erfolge ---------- */
.ach-head { display: flex; align-items: center; gap: 20px; }
.ach-head > div:nth-child(2) { flex: 1; }
.ach-head h2 { font-size: 26px; }
@media (max-width: 600px) { .ach-head { flex-wrap: wrap; } .ach-head .ring { display: none; } }
.ach-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; margin-top: 18px; }
.ach { display: flex; gap: 14px; padding: 16px; border-radius: var(--r-lg); background: var(--bg-elev); box-shadow: var(--shadow); opacity: .62; filter: grayscale(.6); transition: opacity .3s; }
.ach.ok { opacity: 1; filter: none; }
.ach-ic { width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center; font-size: 28px; background: var(--fill); flex: none; }
.ach.ok.common .ach-ic { background: linear-gradient(135deg, #d1d1d6, #aeaeb2); }
.ach.ok.rare .ach-ic { background: linear-gradient(135deg, #64d2ff, #0a84ff); }
.ach.ok.epic .ach-ic { background: linear-gradient(135deg, #bf5af2, #5e5ce6); }
.ach.ok.legendary .ach-ic { background: linear-gradient(135deg, #ffd60a, #ff9f0a); }
.ach.ok.secret .ach-ic { background: linear-gradient(135deg, #ff375f, #1c1c1e); }
.ach-body { flex: 1; min-width: 0; }
.ach-t { font-weight: 700; }
.ach-d { color: var(--text-2); font-size: 14px; margin-bottom: 8px; }
.ach-meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-3); margin-top: 6px; font-weight: 500; }

/* ---------- Shop ---------- */
.wallet { padding-bottom: 8px; }
.wallet-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px 12px 12px; border-radius: var(--r-md); background: var(--bg-elev); box-shadow: var(--shadow); text-align: left; flex: none; }
.w-name { font-weight: 600; }
.w-coins { display: flex; align-items: center; gap: 4px; color: var(--accent-text); font-weight: 700; font-variant-numeric: tabular-nums; }
.w-coins .ic, .si-price .ic, .muted .ic { width: 15px; height: 15px; }
.w-inv { color: var(--text-3); margin-left: 6px; }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.shop-item { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 22px 12px 18px; border-radius: var(--r-lg); background: var(--bg-elev); box-shadow: var(--shadow); transition: transform .25s var(--ease); }
.shop-item:hover { transform: translateY(-3px); }
.si-emoji { font-size: 54px; line-height: 1.1; filter: drop-shadow(0 6px 10px rgba(0,0,0,.15)); }
.si-name { font-weight: 600; }
.si-price { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; color: var(--accent-text); background: color-mix(in srgb, var(--accent) 14%, transparent); padding: 3px 10px; border-radius: 999px; }
.inv-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; text-align: left; }
.inv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.inv { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 6px; border-radius: 14px; background: var(--fill); font-size: 30px; }
.inv span { font-size: 12px; font-weight: 600; }
.inv small { font-size: 11px; color: var(--text-3); }
.inv.on { box-shadow: inset 0 0 0 2px var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); }
.inv.locked { opacity: .4; }
.buyer.dis { opacity: .6; }

/* ---------- Verlauf ---------- */
.hist-day { font-size: 13px; font-weight: 600; color: var(--text-2); margin: 22px 4px 8px; text-transform: uppercase; letter-spacing: .03em; }
.row.hist { justify-content: space-between; flex-wrap: wrap; }
.hist-teams { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ht { color: var(--text-2); }
.ht.w { color: var(--text); font-weight: 700; }
.hist-meta { display: flex; align-items: center; gap: 10px; font-size: 13px; font-variant-numeric: tabular-nums; }

/* ---------- Spieler ---------- */
.new-profile { display: flex; gap: 16px; align-items: center; }
.photo-pick { width: 92px; height: 92px; border-radius: 50%; background: var(--fill); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--text-2); font-size: 12px; cursor: pointer; flex: none; overflow: hidden; }
.photo-pick img { width: 100%; height: 100%; object-fit: cover; }
.photo-pick .ic { width: 26px; height: 26px; }
.np-fields { flex: 1; min-width: 0; }
.np-fields .btn-row { margin-top: 8px; }
label.btn, label.icon-btn { cursor: pointer; }

/* ---------- Steuerung ---------- */
.settings-list { margin: -10px -8px; }
.card:has(.settings-list) { padding: 10px 8px; }
.set-row { display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px; text-align: left; border-radius: 12px; position: relative; transition: background .2s; }
.set-row:hover { background: var(--fill); }
.set-row + .set-row::before { content: ""; position: absolute; top: 0; left: 62px; right: 12px; height: .5px; background: var(--sep); }
.set-row > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; }
.set-row small { color: var(--text-2); font-size: 13px; }
.set-row > .ic { color: var(--text-3); }
.set-ic { width: 36px; height: 36px; border-radius: 10px; background: var(--c); color: #fff; display: grid; place-items: center; flex: none; }
.set-ic .ic { width: 20px; height: 20px; }
.ctl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.ctl-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.ctl-head > div { flex: 1; min-width: 0; }
.steppers { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stepper { background: var(--bg-sub); border-radius: var(--r-md); padding: 10px 12px; }
.stepper > span { font-size: 13px; color: var(--text-2); font-weight: 500; }
.stepper > div { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; }
.stepper b { font-size: 24px; font-variant-numeric: tabular-nums; }
.stepper button { width: 34px; height: 34px; border-radius: 50%; background: var(--bg-elev); display: grid; place-items: center; box-shadow: var(--shadow); }
.stepper button .ic { width: 16px; height: 16px; }
.toggle-row { width: 100%; display: flex; justify-content: space-between; align-items: center; margin-top: 12px; padding: 4px 2px; font-weight: 500; }
.switch { width: 51px; height: 31px; border-radius: 999px; background: var(--fill-2); position: relative; transition: background .25s; flex: none; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 3px 8px rgba(0,0,0,.15); transition: transform .25s var(--ease); }
.switch.on { background: var(--green); }
.switch.on::after { transform: translateX(20px); }

/* ---------- Modal / Sheet ---------- */
#modal { position: fixed; inset: 0; z-index: 100; display: none; }
#modal.open { display: flex; align-items: center; justify-content: center; padding: 20px; }
.backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.4); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fade .25s; }
.sheet { position: relative; width: min(440px, 100%); max-height: 88vh; overflow: auto; background: var(--bg-elev); color: var(--text); border-radius: 28px; padding: 28px 24px 18px; text-align: center; box-shadow: var(--shadow-lg); animation: sheetIn .4s var(--ease); }
.sheet h2 { font-size: 22px; margin-bottom: 6px; }
.sheet .list { text-align: left; margin: 14px 0 0; }
.sheet-ic { font-size: 44px; margin-bottom: 8px; }
.sheet-ic.big { font-size: 72px; }
.sheet-actions { margin-top: 14px; }
@keyframes sheetIn { from { transform: translateY(24px) scale(.96); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }
@media (max-width: 600px) {
  #modal.open { align-items: flex-end; padding: 0; }
  .sheet { width: 100%; border-radius: 28px 28px 0 0; padding-bottom: calc(18px + env(safe-area-inset-bottom)); }
  @keyframes sheetIn { from { transform: translateY(100%); } }
}

/* ---------- Toast ---------- */
.toast { position: fixed; z-index: 120; left: 50%; top: calc(64px + env(safe-area-inset-top)); transform: translate(-50%, -20px); opacity: 0; pointer-events: none;
  background: var(--glass); backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%);
  padding: 12px 20px; border-radius: 999px; font-weight: 600; font-size: 15px; box-shadow: var(--shadow-lg); transition: all .45s var(--ease); white-space: nowrap; color: var(--text); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Misc ---------- */
.empty { text-align: center; padding: 34px 10px; color: var(--text-2); }
.empty-emoji { font-size: 48px; margin-bottom: 8px; }
.empty + .center { margin-bottom: 8px; }
.boot { display: grid; place-items: center; height: 60vh; }
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--fill-2); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--blue) 60%, transparent); outline-offset: 2px; border-radius: 10px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- PIN-Schutz ---------- */
.lock-bar { display: flex; align-items: center; gap: 12px; padding: 12px 14px 12px 16px; margin: -8px 0 18px; border-radius: var(--r-md); background: var(--bg-elev); box-shadow: var(--shadow); }
.lock-bar > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.lock-bar b { font-size: 15px; } .lock-bar small { color: var(--text-2); font-size: 13px; }
.lock-bar.on { background: color-mix(in srgb, var(--green) 10%, var(--bg-elev)); }
.lock-ic { font-size: 22px; }
.pin-field { text-align: center; font-size: 26px; letter-spacing: .35em; height: 56px; margin: 14px 0 4px; font-variant-numeric: tabular-nums; }
.pin-err { color: var(--red); font-size: 14px; font-weight: 600; margin: 6px 0 0; text-align: center; animation: shake .35s; }
@keyframes shake { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }

/* ---------- Spielerprofil ---------- */
.row-link { cursor: pointer; border: 0; background: none; font: inherit; color: inherit; transition: background .15s; }
.row-link:hover { background: var(--fill); } .row-link:active { background: var(--fill-2); }
.pod[data-a] { cursor: pointer; }
.back-link { display: inline-flex; align-items: center; gap: 2px; border: 0; background: none; color: var(--accent-text); font: inherit; font-size: 16px; font-weight: 500; padding: 4px 0; margin-bottom: 10px; cursor: pointer; }
.ic.flip { transform: scaleX(-1); }
.prof-head { display: flex; align-items: center; gap: 20px; margin: 4px 0 18px; }
.prof-head h1 { font-size: clamp(30px, 5vw, 42px); font-weight: 700; line-height: 1.05; }
.prof-head p { margin-top: 6px; }
.prof-seg { margin-bottom: 16px; } .prof-seg .seg { display: inline-flex; }
.pstats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
@media (max-width: 640px) { .pstats { grid-template-columns: repeat(2, 1fr); } }
.pstat { background: var(--bg-elev); border-radius: var(--r-md); box-shadow: var(--shadow); padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.pstat b { font-size: 26px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.pstat small { color: var(--text-2); font-size: 13px; }
.pstat.up b { color: var(--green); } .pstat.down b { color: var(--red); }
.form-dots { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 4px 18px 10px; }
.fd { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #fff; }
.fd.w { background: var(--green); } .fd.l { background: var(--red); }
.fd-label { margin-left: auto; font-size: 12px; color: var(--text-3); }
.form-chart { display: block; width: calc(100% - 36px); height: 110px; margin: 0 18px; overflow: visible; }
.fc-mid { stroke: var(--sep); stroke-dasharray: 4 4; stroke-width: 1; }
.fc-area { fill: color-mix(in srgb, var(--accent) 12%, transparent); }
.fc-line { fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; }
.fc-w { fill: var(--green); stroke: var(--bg-elev); stroke-width: 1.5; } .fc-l { fill: var(--red); stroke: var(--bg-elev); stroke-width: 1.5; }
.fc-note { padding: 8px 18px 16px; }
.duo-cards { margin-bottom: 18px; }
.mini-feat { display: flex; align-items: center; gap: 14px; padding: 16px 18px; }
.mini-feat h3 { font-size: 18px; }
.h2h-bar { height: 5px; border-radius: 3px; background: color-mix(in srgb, var(--red) 25%, var(--fill)); overflow: hidden; margin-top: 6px; }
.h2h-bar span { display: block; height: 100%; background: var(--green); border-radius: 3px; }
.h2h-score { display: flex; flex-direction: column; align-items: flex-end; }
.h2h-score b { font-size: 16px; font-variant-numeric: tabular-nums; } .h2h-score small { font-size: 12px; color: var(--text-2); white-space: nowrap; }
.res { width: 30px; height: 30px; flex: none; border-radius: 9px; display: grid; place-items: center; font-weight: 700; font-size: 13px; color: #fff; }
.res.w { background: var(--green); } .res.l { background: var(--red); }
