/* Minecraft Ace – Design-System */
@font-face { font-family: 'Inter'; font-weight: 400; font-display: swap; src: url('/static/fonts/inter-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 600; font-display: swap; src: url('/static/fonts/inter-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 700; font-display: swap; src: url('/static/fonts/inter-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Pixelify Sans'; font-weight: 400; font-display: swap; src: url('/static/fonts/pixelify-sans-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Pixelify Sans'; font-weight: 700; font-display: swap; src: url('/static/fonts/pixelify-sans-latin-700-normal.woff2') format('woff2'); }

:root {
  --bg: #0a0e14;
  --bg-2: #0f141c;
  --surface: #141b25;
  --surface-2: #1a2330;
  --border: #243142;
  --border-strong: #33445a;
  --text: #e8eef5;
  --muted: #93a1b2;
  --faint: #6a798b;
  --grass: #4ade80;
  --grass-strong: #22c55e;
  --grass-dark: #15803d;
  --gold: #fbbf24;
  --red: #f87171;
  --live: #ef4444;
  --twitch: #a970ff;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --pixel: 'Pixelify Sans', 'Inter', system-ui, sans-serif;
  --max: 1240px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--font);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
a { color: var(--grass); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .6em; }
h1, h2, .pixel { font-family: var(--pixel); font-weight: 700; letter-spacing: .3px; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: .875rem; }
.nowrap { white-space: nowrap; }
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }
.section-sm { padding: 40px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.section-head h2 { margin: 0; }
.eyebrow { font: 700 .78rem/1 var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--grass); margin-bottom: 10px; display: block; }

/* ------------------------------------------------ Navigation */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 14, 20, .82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font: 700 1.25rem var(--pixel); white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; image-rendering: pixelated; }
.nav-links { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; flex: 1; }
.nav-links a { display: block; padding: 8px 12px; border-radius: var(--radius-sm); color: var(--muted); font-weight: 600; font-size: .95rem; }
.nav-links a:hover, .nav-links a.active { color: var(--text); background: var(--surface); text-decoration: none; }
.nav-right { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--border); color: var(--text); border-radius: var(--radius-sm); padding: 6px 10px; font-size: 1.1rem; cursor: pointer; }

@media (max-width: 1180px) {
  .nav-toggle { display: block; margin-left: auto; }
  .nav-links { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; background: var(--bg-2); border-bottom: 1px solid var(--border); padding: 10px 16px 16px; }
  .nav-links.open { display: flex; }
  .nav-right .status-pill { display: none; }
}

/* ------------------------------------------------ Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: var(--radius-sm);
  font: 600 .95rem/1.2 var(--font); cursor: pointer;
  border: 1px solid transparent; transition: transform .08s, background .15s, border-color .15s;
  text-decoration: none !important; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--grass-strong); color: #04210f; box-shadow: inset 0 -3px 0 var(--grass-dark); }
.btn-primary:hover { background: var(--grass); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--border-strong); background: var(--surface-2); }
.btn-danger { background: transparent; color: var(--red); border-color: rgba(248, 113, 113, .4); }
.btn-danger:hover { background: rgba(248, 113, 113, .1); }
.btn-success { background: var(--grass-strong); color: #04210f; }
.btn-lg { padding: 14px 24px; font-size: 1.05rem; }
.btn-sm { padding: 6px 12px; font-size: .85rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ------------------------------------------------ Status / Badges */
.status-pill {
  white-space: nowrap;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px; font-size: .85rem; font-weight: 600;
  background: var(--surface); border: 1px solid var(--border); color: var(--muted);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); flex: none; }
.dot.on { background: var(--grass); box-shadow: 0 0 0 0 rgba(74, 222, 128, .6); animation: pulse 2s infinite; }
.dot.live { background: var(--live); animation: pulse-red 1.6s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, .55); } 70% { box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); } 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); } }
@keyframes pulse-red { 0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, .6); } 70% { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); } 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); } }
@media (prefers-reduced-motion: reduce) { .dot.on, .dot.live { animation: none; } }

.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; font-size: .75rem; font-weight: 700; letter-spacing: .02em; border: 1px solid var(--border); color: var(--muted); background: var(--bg-2); }
.badge-live { background: var(--live); border-color: var(--live); color: #fff; text-transform: uppercase; }
.badge-online { color: var(--grass); border-color: rgba(74, 222, 128, .35); background: rgba(74, 222, 128, .08); }
.badge-pending { color: var(--gold); border-color: rgba(251, 191, 36, .35); background: rgba(251, 191, 36, .08); }
.badge-accepted, .badge-done, .badge-added { color: var(--grass); border-color: rgba(74, 222, 128, .35); background: rgba(74, 222, 128, .08); }
.badge-rejected, .badge-failed { color: var(--red); border-color: rgba(248, 113, 113, .35); background: rgba(248, 113, 113, .08); }

/* ------------------------------------------------ Hero */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1200px 500px at 15% -10%, rgba(74, 222, 128, .18), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(56, 189, 248, .14), transparent 60%),
    linear-gradient(180deg, #0c1420 0%, #0a0e14 100%);
  border-bottom: 1px solid var(--border);
}
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
}
.hero-inner { position: relative; padding-top: 96px; padding-bottom: 120px; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr); gap: 48px; align-items: center; }
.hero h1 { margin-bottom: .35em; }
.hero h1 .accent { color: var(--grass); }
.hero-lead { font-size: 1.15rem; color: var(--muted); max-width: 560px; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-ground {
  position: absolute; left: 0; right: 0; bottom: 0; height: 32px;
  background:
    linear-gradient(180deg, #4caf50 0 8px, #3e8e41 8px 12px, transparent 12px),
    repeating-linear-gradient(90deg, #7a5230 0 16px, #6b4528 16px 32px, #82593a 32px 48px);
  image-rendering: pixelated;
}
.hero-ground::after {
  content: ''; position: absolute; left: 0; right: 0; top: 8px; height: 6px;
  background: repeating-linear-gradient(90deg, #4caf50 0 8px, transparent 8px 16px, #3e8e41 16px 24px, transparent 24px 40px);
}

.ip-card { background: rgba(20, 27, 37, .85); border: 1px solid var(--border); border-radius: 14px; padding: 24px; box-shadow: var(--shadow); }
.ip-card .label { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--faint); font-weight: 700; }
.ip-row { display: flex; gap: 10px; margin: 8px 0 18px; min-width: 0; }
.ip-value { flex: 1; min-width: 0; font: 700 1.3rem var(--pixel); padding: 10px 14px; background: var(--bg); border: 1px dashed var(--border-strong); border-radius: var(--radius-sm); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ip-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ip-meta div { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 12px; }
.ip-meta b { display: block; font: 700 1.25rem var(--pixel); }
.ip-meta span { font-size: .78rem; color: var(--faint); }

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); padding-top: 64px; padding-bottom: 96px; gap: 32px; }
  .ip-meta b { font-size: 1.05rem; }
  .ip-value { font-size: 1rem; padding: 10px; }
  .hero-actions .btn { flex: 1 1 auto; }
}

/* ------------------------------------------------ Karten / Grids */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.card-hover { transition: border-color .15s, transform .15s; }
.card-hover:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.card h3 { margin-bottom: .4em; }
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.feature { display: flex; flex-direction: column; gap: 6px; }
.feature .ico { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; font-size: 1.35rem; background: rgba(74, 222, 128, .1); border: 1px solid rgba(74, 222, 128, .25); margin-bottom: 6px; }

.stat-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.stat-tile { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.stat-tile b { display: block; font: 700 1.8rem/1.1 var(--pixel); }
.stat-tile span { color: var(--muted); font-size: .88rem; }
@media (max-width: 760px) { .stat-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ------------------------------------------------ Avatare / Spieler */
.avatar { width: 40px; height: 40px; border-radius: 6px; image-rendering: pixelated; background: var(--bg-2); flex: none; }
.avatar-sm { width: 28px; height: 28px; border-radius: 4px; }
.avatar-lg { width: 72px; height: 72px; border-radius: 10px; }
.avatar-xl { width: 112px; height: 112px; border-radius: 14px; }

.player-card { display: flex; flex-direction: column; gap: 14px; position: relative; }
.player-card.is-live { border-color: rgba(239, 68, 68, .55); box-shadow: 0 0 0 1px rgba(239, 68, 68, .2), 0 8px 30px rgba(239, 68, 68, .08); }
.player-head { display: flex; align-items: center; gap: 14px; }
.player-head .name { font: 700 1.15rem var(--pixel); color: var(--text); display: block; }
.player-head .sub { color: var(--muted); font-size: .88rem; }
.player-badges { position: absolute; top: 14px; right: 14px; display: flex; gap: 6px; }
.live-title { font-size: .85rem; color: var(--muted); background: var(--bg-2); border-radius: var(--radius-sm); padding: 8px 10px; border: 1px solid var(--border); }
.live-title a { color: var(--twitch); font-weight: 600; }

.socials { display: flex; flex-wrap: wrap; gap: 6px; }
.social {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px;
  background: var(--bg-2); border: 1px solid var(--border); color: var(--muted); font-size: .8rem; font-weight: 600;
}
.social:hover { color: var(--text); border-color: var(--border-strong); text-decoration: none; }
.social i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }
.social-twitch i { background: #a970ff; } .social-youtube i { background: #ff3b3b; } .social-tiktok i { background: #25f4ee; }
.social-instagram i { background: #e1306c; } .social-x i { background: #e8eef5; }

/* Live-Leiste auf der Startseite */
.live-strip { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
.live-strip > * { scroll-snap-align: start; min-width: 280px; }

/* ------------------------------------------------ Tabellen */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: middle; }
th { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); background: var(--bg-2); font-weight: 700; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: rgba(255, 255, 255, .02); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.rank { font: 700 1.05rem var(--pixel); color: var(--faint); width: 56px; }
.rank-1 { color: var(--gold); } .rank-2 { color: #cbd5e1; } .rank-3 { color: #d97706; }
.who { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; }

/* Podien */
.podium { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.podium li { display: flex; align-items: center; gap: 10px; }
.podium .val { margin-left: auto; font-variant-numeric: tabular-nums; color: var(--muted); font-size: .9rem; }

/* Tabs */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.tab { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border); color: var(--muted); font-weight: 600; font-size: .9rem; background: var(--surface); }
.tab:hover { color: var(--text); text-decoration: none; }
.tab.active { background: var(--grass-strong); border-color: var(--grass-strong); color: #04210f; }

/* ------------------------------------------------ Formulare */
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label, .label { font-weight: 600; font-size: .92rem; }
.field .hint { font-size: .82rem; color: var(--faint); }
.req { color: var(--grass); }
input[type=text], input[type=url], input[type=number], input[type=search], textarea, select {
  width: 100%; padding: 11px 13px; border-radius: var(--radius-sm);
  background: var(--bg); border: 1px solid var(--border-strong); color: var(--text);
  font: 400 1rem/1.4 var(--font);
}
textarea { min-height: 120px; resize: vertical; }
textarea.code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9rem; min-height: 360px; }
input:focus, textarea:focus, select:focus { outline: 2px solid rgba(74, 222, 128, .5); outline-offset: 1px; border-color: var(--grass-strong); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; }
.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--grass-strong); flex: none; }
.counter { font-size: .78rem; color: var(--faint); text-align: right; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
fieldset { border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; margin: 0; }
legend { padding: 0 8px; font-weight: 700; color: var(--muted); font-size: .9rem; }

.alert { padding: 14px 16px; border-radius: var(--radius-sm); border: 1px solid; margin-bottom: 18px; }
.alert ul { margin: 6px 0 0; padding-left: 18px; }
.alert-err { border-color: rgba(248, 113, 113, .45); background: rgba(248, 113, 113, .08); color: #fecaca; }
.alert-ok { border-color: rgba(74, 222, 128, .45); background: rgba(74, 222, 128, .08); color: #bbf7d0; }
.alert-info { border-color: rgba(56, 189, 248, .4); background: rgba(56, 189, 248, .07); color: #bae6fd; }

/* ------------------------------------------------ Inhalte (Markdown) */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.5rem; margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .3em 0; }
.prose blockquote { margin: 1em 0; padding: 10px 16px; border-left: 3px solid var(--grass); background: var(--surface); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--muted); }
.prose code { background: var(--surface-2); padding: 2px 6px; border-radius: 4px; font-size: .9em; }
.prose img { border-radius: var(--radius); border: 1px solid var(--border); }
.prose hr { border: 0; border-top: 1px solid var(--border); margin: 2em 0; }

.page-head { padding: 56px 0 28px; border-bottom: 1px solid var(--border); background: linear-gradient(180deg, #0d1520, var(--bg)); }
.page-head h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: .2em; }

.news-card { display: flex; flex-direction: column; gap: 8px; height: 100%; color: var(--text); }
.news-card:hover { text-decoration: none; }
.news-card .date { font-size: .82rem; color: var(--faint); }
.news-card p { color: var(--muted); margin: 0; }

.cta {
  border-radius: 16px; padding: 40px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  background: linear-gradient(135deg, rgba(34, 197, 94, .2), rgba(56, 189, 248, .1)), var(--surface);
  border: 1px solid rgba(74, 222, 128, .3);
}
.cta h2 { margin-bottom: .25em; }

.empty { text-align: center; padding: 48px 20px; color: var(--muted); border: 1px dashed var(--border-strong); border-radius: var(--radius); }

/* ------------------------------------------------ Footer */
.footer { border-top: 1px solid var(--border); padding: 36px 0; margin-top: 64px; color: var(--faint); font-size: .9rem; background: var(--bg-2); }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
.footer a { color: var(--muted); }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }

/* ------------------------------------------------ ACP */
.acp { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: calc(100vh - 64px); }
.acp-side { border-right: 1px solid var(--border); background: var(--bg-2); padding: 20px 12px; }
.acp-side a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 12px; border-radius: var(--radius-sm); color: var(--muted); font-weight: 600; font-size: .93rem; }
.acp-side a:hover, .acp-side a.active { background: var(--surface); color: var(--text); text-decoration: none; }
.acp-side .group { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--faint); padding: 16px 12px 6px; font-weight: 700; }
.acp-side .count { background: var(--gold); color: #1f1500; border-radius: 999px; font-size: .72rem; padding: 1px 7px; font-weight: 800; }
.acp-side .count.red { background: var(--red); color: #fff; }
.acp-main { padding: 28px 32px 60px; }
.acp-main h1 { font-size: 1.9rem; }
.acp-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.acp-top h1 { margin: 0; }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.inline { display: inline; }
.kv { display: grid; grid-template-columns: 160px 1fr; gap: 10px 16px; margin: 0; }
.kv dt { color: var(--faint); font-size: .88rem; }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.long-text { white-space: pre-wrap; background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px; margin: 6px 0 18px; overflow-wrap: anywhere; }
.decision { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.check-list li { display: flex; gap: 10px; align-items: center; }
.preview { border: 1px dashed var(--border-strong); border-radius: var(--radius); padding: 18px; }
@media (max-width: 860px) {
  .acp { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .acp-side { border-right: 0; border-bottom: 1px solid var(--border); display: flex; flex-wrap: nowrap; gap: 4px; overflow-x: auto; padding: 10px 12px; scrollbar-width: thin; }
  .acp-side a { flex: none; }
  .acp-side form { flex: none; padding: 0 !important; }
  .acp-side .group { display: none; }
  .acp-main { padding: 20px 16px 48px; }
  .kv { grid-template-columns: 1fr; }
  .decision { grid-template-columns: 1fr; }
}

/* ================================================ v1.1 */
:root { --chart-1: #16a34a; --chart-2: #3b82f6; }

/* Icons */
.icon { width: 1.1em; height: 1.1em; flex: none; vertical-align: -0.18em; stroke-width: 2; }
.btn .icon { width: 1.05em; height: 1.05em; vertical-align: 0; }
.feature .ico .icon { width: 22px; height: 22px; color: var(--grass); }
.ico-inline { display: inline-flex; align-items: center; gap: 8px; }

/* Layout-Hilfen (ersetzen Inline-Grids, brechen mobil korrekt um) */
.split { display: grid; gap: 18px; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: start; }
.split-even { display: grid; gap: 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.tiles-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
@media (max-width: 900px) { .split, .split-even { grid-template-columns: minmax(0, 1fr); } }

/* Unter-Navigation (Statistik-Reiter) */
.subnav { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin: 0 0 24px; overflow-x: auto; scrollbar-width: none; }
.subnav a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; color: var(--muted); font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.subnav a:hover { color: var(--text); text-decoration: none; }
.subnav a.active { color: var(--text); border-bottom-color: var(--grass); }
.tabs { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; padding-bottom: 2px; }
.tab { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
@media (min-width: 760px) { .tabs { flex-wrap: wrap; } }

/* Diagramme */
.chart-card { display: flex; flex-direction: column; gap: 6px; }
.chart-card h3 { margin: 0; }
.chart-card .sub { color: var(--muted); font-size: .88rem; margin: 0 0 6px; }
.chart { position: relative; height: 220px; width: 100%; }
.chart-sm { height: 160px; }
.chart svg { display: block; width: 100%; height: 100%; overflow: visible; }
.chart .c-grid line { stroke: var(--border); stroke-width: 1; shape-rendering: crispEdges; }
.chart .c-base { stroke: var(--border-strong); stroke-width: 1; shape-rendering: crispEdges; }
.chart .c-axis { fill: var(--faint); font: 500 11px var(--font); font-variant-numeric: tabular-nums; }
.chart .c-cross { stroke: var(--border-strong); stroke-width: 1; }
.chart .c-hit { cursor: default; }
.chart .c-bar { transition: opacity .1s; }
.chart-tip { position: absolute; pointer-events: none; background: var(--bg-2); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); padding: 8px 10px; font-size: .82rem; box-shadow: var(--shadow); white-space: nowrap; z-index: 2; }
.chart-tip .tt { color: var(--muted); margin-bottom: 2px; }
.chart-tip .tv { display: flex; align-items: center; gap: 6px; color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.chart-tip i { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
.chart-empty { display: grid; place-items: center; height: 100%; color: var(--faint); border: 1px dashed var(--border); border-radius: var(--radius-sm); font-size: .9rem; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
@media (max-width: 760px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.range-tabs { display: inline-flex; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 3px; gap: 2px; }
.range-tabs a { padding: 6px 12px; border-radius: 999px; color: var(--muted); font-weight: 600; font-size: .85rem; }
.range-tabs a:hover { color: var(--text); text-decoration: none; }
.range-tabs a.active { background: var(--surface-2); color: var(--text); }

/* Ereignis-Feed */
.feed { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.feed li { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--border); }
.feed li:last-child { border-bottom: 0; }
.feed .ev-ico { width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; background: var(--bg-2); border: 1px solid var(--border); color: var(--muted); }
.feed .ev-death .ev-ico { color: var(--red); border-color: rgba(248, 113, 113, .3); background: rgba(248, 113, 113, .06); }
.feed .ev-advancement .ev-ico { color: var(--gold); border-color: rgba(251, 191, 36, .3); background: rgba(251, 191, 36, .06); }
.feed .ev-chat .ev-ico { color: #93c5fd; }
.feed .ev-text { min-width: 0; overflow-wrap: anywhere; }
.feed .ev-text a.who { display: inline-flex; vertical-align: middle; margin-right: 4px; }
.feed .ev-sub { display: block; font-size: .8rem; color: var(--faint); }
.feed time { color: var(--faint); font-size: .82rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (max-width: 560px) {
  .feed li { grid-template-columns: 30px minmax(0, 1fr); }
  .feed time { grid-column: 2; }
}

/* Skin */
.skin-stage { width: 220px; height: 300px; flex: none; display: grid; place-items: center; background: radial-gradient(closest-side, rgba(74, 222, 128, .12), transparent); border-radius: 14px; }
.skin-stage canvas { cursor: grab; }
.profile-head { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }
@media (max-width: 560px) { .skin-stage { width: 100%; height: 260px; } }

/* Discord-Login-Box */
.login-card { text-align: center; padding: 40px 24px; }
.login-card .icon { width: 36px; height: 36px; color: var(--grass); }
.btn-discord { background: #5865f2; color: #fff; box-shadow: inset 0 -3px 0 #3c45a5; }
.btn-discord:hover { background: #6b77f5; }
.me { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.me img { width: 36px; height: 36px; border-radius: 50%; }
.me .grow { flex: 1; min-width: 0; }

/* Whitelist-Raster */
.wl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.wl-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); min-width: 0; }
.wl-item .grow { flex: 1; min-width: 0; }
.wl-item .nm { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.wl-item .sub { font-size: .78rem; color: var(--faint); }
.icon-btn { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: transparent; color: var(--muted); cursor: pointer; }
.icon-btn:hover { color: var(--red); border-color: rgba(248, 113, 113, .45); }
.section-title { display: flex; align-items: center; gap: 10px; margin: 28px 0 12px; }
.section-title h2 { font-size: 1.3rem; margin: 0; }
details.card summary { cursor: pointer; font-weight: 700; }
details.card[open] summary { margin-bottom: 14px; }

/* Diverses */
.nav-toggle .icon { width: 20px; height: 20px; vertical-align: middle; }
.acp-top h1 { font-size: clamp(1.4rem, 4vw, 1.9rem); overflow-wrap: anywhere; }
.table-wrap td .who { white-space: nowrap; }
@media (max-width: 560px) {
  .section { padding: 44px 0; }
  .cta { padding: 26px 20px; }
  .card { padding: 18px; }
  th, td { padding: 10px; }
  .page-head { padding: 36px 0 20px; }
  .hide-sm { display: none; }
}
.linklike { background: none; border: 0; padding: 0; color: var(--grass); font: inherit; cursor: pointer; }
.linklike:hover { text-decoration: underline; }

/* Bewerbung: Cam-Account blendet Main-Felder aus und umgekehrt */
form[data-apply] [data-cam-only] { display: none; }
form[data-apply].is-cam [data-cam-only] { display: revert; }
form[data-apply].is-cam [data-main-only] { display: none; }

/* Navigation: Konto-Buttons rechts, auf kleinen Breiten im Menü */
.nav-links a, .nav-right .btn { white-space: nowrap; }
.nav-links .only-mobile { display: none; }
.nav-right .btn.is-active { border-color: var(--grass-strong); }
@media (max-width: 1260px) { .nav-right .btn span { display: none; } .nav-right .btn { padding: 7px 9px; } }
@media (max-width: 1180px) {
  .nav-links .only-mobile { display: list-item; }
  .nav-right .hide-nav-sm { display: none; }
}

@media (max-width: 600px) {
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .stat-grid .stat-tile { padding: 14px; }
  .stat-grid .stat-tile b { font-size: 1.4rem; }
}

/* ================================================ v1.3 – einheitliches Design */
.brand { flex: none; }
.nav-inner { gap: 20px; }
.nav-links a { padding: 8px 10px; }

/* Teilnehmerkarte */
.player-head { min-width: 0; }
.player-head .ph-text { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 2px; }
.player-head .name { font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-card .avatar-lg { width: 60px; height: 60px; border-radius: 8px; }
.ph-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.ph-badges .dot { width: 6px; height: 6px; }
.player-card { gap: 14px; }
.player-card .social-icons { margin-top: auto; }

/* Social-Icons (Markenlogos, nicht hinterlegt = ausgegraut) */
.social-icons { display: flex; gap: 6px; flex-wrap: wrap; }
.si { width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; background: var(--bg-2); border: 1px solid var(--border); color: var(--brand); transition: border-color .15s, transform .1s, background .15s; }
.si .bi { width: 16px; height: 16px; }
a.si:hover { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 12%, var(--bg-2)); transform: translateY(-1px); text-decoration: none; }
.si.off { color: var(--faint); opacity: .35; }
.bi { flex: none; }
.social .bi { width: 14px; height: 14px; color: var(--brand); }

/* Admin-CP im selben Raster wie die Webseite */
.acp { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 28px; padding-top: 36px; padding-bottom: 24px; min-height: calc(100vh - 64px - 140px); }
.acp-side { position: sticky; top: 88px; align-self: start; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px; border-right: 1px solid var(--border); max-height: calc(100vh - 110px); overflow-y: auto; }
.acp-side a { padding: 8px 10px; }
.acp-side a .icon { width: 16px; height: 16px; opacity: .8; }
.acp-side a.active { background: var(--surface-2); color: var(--text); box-shadow: inset 2px 0 0 var(--grass); }
.acp-side .group { padding: 14px 10px 6px; }
.acp-me { display: flex; gap: 10px; align-items: center; padding: 6px 8px 10px; border-bottom: 1px solid var(--border); margin-bottom: 4px; }
.acp-me img, .acp-me-ph { width: 36px; height: 36px; border-radius: 50%; flex: none; }
.acp-me-ph { display: grid; place-items: center; background: var(--bg-2); color: var(--muted); }
.acp-me strong { display: block; font-size: .92rem; }
.acp-me span { font-size: .75rem; color: var(--faint); }
.acp-main { padding: 0; min-width: 0; }
.acp-main > .eyebrow { margin-bottom: 6px; }
.acp-top { margin-bottom: 24px; }
.acp-top h1 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin: 0; }
@media (max-width: 860px) {
  .acp { grid-template-columns: minmax(0, 1fr); gap: 18px; padding-top: 18px; }
  .acp-side { position: static; max-height: none; display: flex; flex-wrap: nowrap; gap: 4px; overflow-x: auto; padding: 8px; }
  .acp-side .group, .acp-me { display: none; }
  .acp-side a { flex: none; box-shadow: none !important; }
}
.range-tabs a { white-space: nowrap; }
@media (max-width: 600px) {
  .range-tabs { width: 100%; overflow-x: auto; scrollbar-width: none; }
  .range-tabs a { flex: 1; text-align: center; padding: 6px 8px; }
}
@media (max-width: 600px) {
  .nav-login span { display: none; }
  .nav-login { padding: 7px 9px; }
  .nav-inner { gap: 12px; }
  .brand { font-size: 1.1rem; }
}
.nav-links .only-xs { display: none; }
@media (max-width: 420px) {
  .nav-apply { display: none; }
  .nav-links .only-xs { display: list-item; }
  .nav-links .only-xs a { color: var(--grass); }
}

/* =====================================================================
   v1.4 – volle Breite, kräftigere Typografie, Bewegung im Apple-Stil
   ===================================================================== */
:root {
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-spring: cubic-bezier(.34, 1.4, .64, 1);
  --gutter: clamp(16px, 4vw, 72px);
  --glow-green: rgba(74, 222, 128, .16);
  --glow-blue: rgba(56, 189, 248, .12);
  --gold-bg: linear-gradient(135deg, #fde68a, #f59e0b);
  --silver-bg: linear-gradient(135deg, #f1f5f9, #94a3b8);
  --bronze-bg: linear-gradient(135deg, #fdba74, #b45309);
}
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Volle Breite überall */
.container { max-width: none; padding: 0 var(--gutter); }
.acp { padding-left: var(--gutter); padding-right: var(--gutter); }

/* Raster passen sich der Breite an (mehr Spalten auf großen Bildschirmen) */
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid-cards { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
.stat-grid { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
@media (max-width: 600px) {
  .grid-3, .grid-4, .grid-cards { grid-template-columns: minmax(0, 1fr); }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Navigation: Glas-Effekt, beim Scrollen kompakter */
.nav { transition: background .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease); }
.nav.scrolled { background: rgba(8, 11, 16, .72); box-shadow: 0 10px 40px rgba(0, 0, 0, .35); backdrop-filter: saturate(160%) blur(18px); }
.nav-inner { transition: height .4s var(--ease); }
.nav.scrolled .nav-inner { height: 56px; }
.nav-links a { transition: color .25s var(--ease), background .25s var(--ease); }

/* Kräftigere Seitenköpfe mit weichem, langsam wanderndem Licht */
.page-head {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(56px, 8vw, 120px) 0 clamp(32px, 4vw, 64px);
  background: linear-gradient(180deg, #0c1420, var(--bg));
}
.page-head::before {
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 80% 90% at 20% 0%, #000 30%, transparent 75%);
}
.page-head::after, .hero::after {
  content: ''; position: absolute; z-index: -1; pointer-events: none;
  width: 60vw; height: 60vw; max-width: 900px; max-height: 900px; left: -10vw; top: -30vw;
  background: radial-gradient(circle, var(--glow-green), transparent 62%);
  filter: blur(10px);
  animation: drift 18s ease-in-out infinite alternate;
}
.hero { isolation: isolate; }
.hero::after { left: auto; right: -15vw; top: -25vw; background: radial-gradient(circle, var(--glow-blue), transparent 60%); animation-duration: 22s; }
@keyframes drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(8vw, 4vw, 0) scale(1.15); } }
.page-head h1 { font-size: clamp(2.6rem, 6.5vw, 5rem); letter-spacing: .5px; margin-bottom: .15em; line-height: 1.02; }
.page-head p { font-size: clamp(1rem, 1.4vw, 1.2rem); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: rgba(74, 222, 128, .08); border: 1px solid rgba(74, 222, 128, .22); letter-spacing: .16em; }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
.hero h1 { font-size: clamp(2.8rem, 7.5vw, 6rem); line-height: 1; }
.hero-lead { font-size: clamp(1.1rem, 1.6vw, 1.35rem); max-width: 640px; }
.hero-inner { grid-template-columns: minmax(0, 1fr) minmax(320px, 520px); padding-top: clamp(72px, 10vw, 140px); padding-bottom: clamp(96px, 11vw, 160px); }
@media (max-width: 860px) { .hero-inner { grid-template-columns: minmax(0, 1fr); } }

/* Karten: weiches Anheben, Licht am Rand */
.card, .stat-tile, .table-wrap { transition: transform .5s var(--ease), border-color .3s var(--ease), box-shadow .5s var(--ease), background .3s var(--ease); }
.card-hover:hover, a.stat-tile:hover, .player-card:hover, .news-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .45), 0 0 0 1px rgba(74, 222, 128, .06);
}
.stat-tile b { font-size: clamp(1.7rem, 2.6vw, 2.4rem); letter-spacing: .5px; }
.stat-tile { padding: 20px 22px; }
.btn { transition: transform .2s var(--ease-spring), background .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease); }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(.97); }
.btn-primary:hover { box-shadow: inset 0 -3px 0 var(--grass-dark), 0 8px 24px rgba(34, 197, 94, .28); }
.tab, .range-tabs a, .subnav a { transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .2s var(--ease-spring); }
.tab:active { transform: scale(.96); }
.avatar { transition: transform .4s var(--ease-spring); }
.player-card:hover .avatar, .who:hover .avatar { transform: scale(1.06) rotate(-2deg); }

/* Scroll-Einblendung (nur mit JS + ohne reduzierte Bewegung) */
.motion :is(.card, .stat-tile, .table-wrap, .section-head, .cta, .feature, .alert-info, .empty, .page-head .container > *, .hero-inner > *, .acp-top, .subnav, .tabs, .wl-item) {
  opacity: 0; transform: translate3d(0, 26px, 0) scale(.985);
  transition: opacity .9s var(--ease), transform .9s var(--ease), border-color .3s var(--ease), box-shadow .5s var(--ease), background .3s var(--ease);
  transition-delay: var(--rv-delay, 0ms);
}
.motion :is(.card, .stat-tile, .table-wrap, .section-head, .cta, .feature, .alert-info, .empty, .page-head .container > *, .hero-inner > *, .acp-top, .subnav, .tabs, .wl-item).in {
  opacity: 1; transform: none;
}
.motion .card-hover.in:hover, .motion a.stat-tile.in:hover, .motion .player-card.in:hover { transform: translateY(-4px); transition-delay: 0ms; }
/* Sicherheitsnetz, falls main.js nicht lädt */
.motion:not(.motion-ready) :is(.card, .stat-tile, .table-wrap, .section-head, .cta, .feature, .alert-info, .empty, .page-head .container > *, .hero-inner > *, .acp-top, .subnav, .tabs, .wl-item) { animation: rv-fallback .01s linear 2.5s forwards; }
@keyframes rv-fallback { to { opacity: 1; transform: none; } }

/* Diagramme: Linie zeichnet sich, Fläche blendet ein, Balken wachsen */
.motion .chart .c-line.draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.6s var(--ease) forwards; }
.motion .chart .c-area.draw { opacity: 0; animation: fade-in 1.2s var(--ease) .5s forwards; }
.motion .chart .c-bar.grow { transform-box: fill-box; transform-origin: 50% 100%; transform: scaleY(0); animation: grow .9s var(--ease-spring) forwards; animation-delay: calc(var(--i, 0) * 18ms); }
.motion .chart .c-end.draw { opacity: 0; animation: fade-in .5s var(--ease) 1.4s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade-in { to { opacity: 1; } }
@keyframes grow { to { transform: scaleY(1); } }
.chart { height: clamp(220px, 22vw, 320px); }
.chart-sm { height: 180px; }

/* Ranglisten: Medaillen, hervorgehobene Top 3, Wertbalken */
.rank-badge { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font: 700 .9rem var(--pixel); color: var(--muted); background: var(--bg-2); border: 1px solid var(--border); }
.rank-badge.r1 { background: var(--gold-bg); color: #422006; border: 0; box-shadow: 0 0 22px rgba(245, 158, 11, .35); }
.rank-badge.r2 { background: var(--silver-bg); color: #1e293b; border: 0; }
.rank-badge.r3 { background: var(--bronze-bg); color: #fff7ed; border: 0; }
tr.top-1 td { background: rgba(245, 158, 11, .06); }
tr.top-2 td { background: rgba(148, 163, 184, .05); }
tr.top-3 td { background: rgba(180, 83, 9, .06); }
tr.top-1 td:first-child { box-shadow: inset 3px 0 0 #f59e0b; }
tr.top-2 td:first-child { box-shadow: inset 3px 0 0 #94a3b8; }
tr.top-3 td:first-child { box-shadow: inset 3px 0 0 #b45309; }
tr.top-1 .who { font-size: 1.05rem; }
.valcell { min-width: 180px; }
.valcell strong { display: block; font-size: 1.05rem; }
.valbar { height: 6px; border-radius: 999px; background: var(--bg-2); overflow: hidden; margin-top: 6px; }
.valbar span { display: block; height: 100%; width: var(--w); border-radius: inherit; background: linear-gradient(90deg, var(--grass-dark), var(--grass)); transform-origin: left; }
.motion .valbar span { transform: scaleX(0); transition: transform 1.2s var(--ease); transition-delay: calc(var(--i, 0) * 40ms + 200ms); }
.motion .in .valbar span { transform: scaleX(1); }
.podium li { padding: 4px 0; }
.podium .val { white-space: nowrap; font-weight: 600; color: var(--text); }
.podium li:first-child .who { font-weight: 700; }
.podium-card h3 { font-size: 1.05rem; color: var(--muted); }
.podium-card .lead { display: flex; align-items: center; gap: 14px; margin: 6px 0 14px; }
.podium-card .lead .avatar { width: 52px; height: 52px; border-radius: 10px; }
.podium-card .lead b { font: 700 clamp(1.5rem, 2.2vw, 2rem) var(--pixel); display: block; line-height: 1.1; }
.podium-card .lead .nm { font-weight: 700; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.podium-card .lead > div { min-width: 0; }
.podium-card .rest { border-top: 1px solid var(--border); padding-top: 10px; }

/* Kleinere Feinheiten */
.feed li { transition: background .3s var(--ease); }
.feed li:hover { background: rgba(255, 255, 255, .015); }
.si { transition: transform .25s var(--ease-spring), border-color .25s var(--ease), background .25s var(--ease); }
a.si:hover { transform: translateY(-2px) scale(1.06); }
.podium-card .lead { color: inherit; text-decoration: none; }
.podium-card .lead:hover .nm { color: var(--grass); }
.lead-av { position: relative; flex: none; }
.lead-av .rank-badge { position: absolute; right: -8px; bottom: -8px; width: 24px; height: 24px; font-size: .75rem; }
.podium .rank-badge { width: 24px; height: 24px; font-size: .75rem; flex: none; }
.valcell { min-width: 140px; }
.valcell .valbar { margin-left: auto; max-width: 220px; }

.grid-fit { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
@media (max-width: 600px) { .grid-fit { grid-template-columns: minmax(0, 1fr); } }
.rank-table th:first-child, .rank-table td:first-child { width: 64px; }
.container.acp { padding-top: 40px; padding-bottom: 32px; }
@media (max-width: 860px) { .container.acp { padding-top: 18px; } }

/* =====================================================================
   v1.5 – Hero-Szene, Teilnehmerkarten, Aktivität, Regelwerk, Meldungen, Abstimmungen
   ===================================================================== */
.stack { display: flex; flex-direction: column; gap: 14px; }
.grid-2col { display: grid; gap: 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
@media (max-width: 900px) { .grid-2col { grid-template-columns: minmax(0, 1fr); } }
.section-title { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 28px 0 14px; }
.section-title h2 { margin: 0; font-size: 1.3rem; }
.break { overflow-wrap: anywhere; }
.lead-text p { margin: 0; font-size: clamp(1.05rem, 1.4vw, 1.25rem); }
.page-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }

/* ---------- Hero mit 3D-Blöcken ---------- */
.hero-inner { grid-template-columns: minmax(0, 1.15fr) minmax(240px, .85fr) minmax(320px, 460px); }
.hero-scene { position: relative; height: 380px; perspective: 1100px; --mx: 0; --my: 0; }
.scene-tilt { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(calc(var(--my) * -10deg)) rotateY(calc(var(--mx) * 14deg)); }
.cube { --s: 150px; position: absolute; width: var(--s); height: var(--s); transform-style: preserve-3d; }
.cube .f { position: absolute; inset: 0; background-size: 100% 100%; image-rendering: pixelated; backface-visibility: hidden; }
.cube .f::after { content: ''; position: absolute; inset: 0; }
.cube .top { transform: rotateX(90deg) translateZ(calc(var(--s) / 2)); }
.cube .bottom { transform: rotateX(-90deg) translateZ(calc(var(--s) / 2)); }
.cube .front { transform: translateZ(calc(var(--s) / 2)); }
.cube .back { transform: rotateY(180deg) translateZ(calc(var(--s) / 2)); }
.cube .right { transform: rotateY(90deg) translateZ(calc(var(--s) / 2)); }
.cube .left { transform: rotateY(-90deg) translateZ(calc(var(--s) / 2)); }
.cube .front::after, .cube .back::after { background: rgba(0, 0, 0, .18); }
.cube .left::after, .cube .right::after { background: rgba(0, 0, 0, .34); }
.cube .bottom::after { background: rgba(0, 0, 0, .55); }
.tex-grass .top { background-image: url('/static/img/tex/grass_top.png'); }
.tex-grass :is(.front, .back, .left, .right) { background-image: url('/static/img/tex/grass_side.png'); }
.tex-grass .bottom, .tex-dirt .f { background-image: url('/static/img/tex/dirt.png'); }
.tex-diamond .f { background-image: url('/static/img/tex/diamond_ore.png'); }
.tex-gold .f { background-image: url('/static/img/tex/gold.png'); }
.orbit { position: absolute; left: 50%; top: 46%; transform-style: preserve-3d; animation: bob 6s ease-in-out infinite; }
.cube-main { left: calc(var(--s) / -2); top: calc(var(--s) / -2); animation: spin 28s linear infinite; }
.cube-sm { --s: 58px; animation: spin 18s linear infinite reverse; }
.cube-xs { --s: 38px; animation: spin 14s linear infinite; }
.float { position: absolute; transform-style: preserve-3d; animation: bob 7s ease-in-out infinite; }
.float.f1 { left: 8%; top: 12%; animation-delay: -2s; }
.float.f2 { right: 6%; top: 58%; animation-delay: -4s; animation-duration: 8s; }
.float.f3 { left: 18%; bottom: 8%; animation-delay: -1s; animation-duration: 5.5s; }
.scene-shadow { position: absolute; left: 50%; bottom: 22px; width: 220px; height: 34px; margin-left: -110px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .55), transparent); filter: blur(4px); animation: shadow 6s ease-in-out infinite; }
.float-head { position: absolute; left: calc(50% + cos(calc(var(--i) * 60deg)) * 170px - 20px); top: calc(46% + sin(calc(var(--i) * 60deg)) * 120px - 20px); display: grid; justify-items: center; gap: 4px; animation: bob 5s ease-in-out infinite; animation-delay: calc(var(--i) * -0.8s); transform: translateZ(60px); }
.float-head img { width: 40px; height: 40px; border-radius: 8px; image-rendering: pixelated; box-shadow: 0 8px 22px rgba(0, 0, 0, .45), 0 0 0 2px rgba(74, 222, 128, .6); }
.float-head em { font: 600 .68rem var(--font); font-style: normal; color: var(--text); background: rgba(10, 14, 20, .75); padding: 1px 6px; border-radius: 999px; white-space: nowrap; }
.spark { position: absolute; width: 6px; height: 6px; background: var(--grass); box-shadow: 0 0 12px var(--grass); left: calc(20% + var(--i) * 15%); bottom: 20%; opacity: 0; animation: spark 5s linear infinite; animation-delay: calc(var(--i) * -1.1s); }
.spark:nth-of-type(even) { background: #67e8f9; box-shadow: 0 0 12px #67e8f9; }
@keyframes spin { from { transform: rotateX(-24deg) rotateY(0deg); } to { transform: rotateX(-24deg) rotateY(360deg); } }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -16px; } }
@keyframes shadow { 0%, 100% { transform: scaleX(1); opacity: .9; } 50% { transform: scaleX(.82); opacity: .6; } }
@keyframes spark { 0% { opacity: 0; transform: translateY(0) scale(.6); } 15% { opacity: 1; } 100% { opacity: 0; transform: translateY(-260px) scale(1.1); } }
@media (max-width: 1240px) { .hero-inner { grid-template-columns: minmax(0, 1fr) minmax(320px, 460px); } .hero-scene { display: none; } }
@media (max-width: 860px) { .hero-inner { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .cube, .orbit, .float, .float-head, .scene-shadow, .spark { animation: none !important; } .cube-main { transform: rotateX(-24deg) rotateY(-35deg); } }

/* ---------- Teilnehmerkarten (größer, Ganzkörper-Skin) ---------- */
.grid-cards { grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 20px; }
.player-card { flex-direction: row; align-items: stretch; gap: 20px; padding: 20px 22px 20px 16px; overflow: hidden; }
.player-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 120px; background: radial-gradient(120px 160px at 50% 70%, rgba(74, 222, 128, .12), transparent 70%); pointer-events: none; }
.player-card.is-online::before { background: radial-gradient(120px 160px at 50% 70%, rgba(74, 222, 128, .22), transparent 70%); }
.player-card.is-live::before { background: radial-gradient(120px 160px at 50% 70%, rgba(239, 68, 68, .2), transparent 70%); }
.pc-body { flex: none; width: 76px; display: grid; place-items: end center; position: relative; }
.pc-body img { width: 76px; height: 152px; image-rendering: pixelated; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .5)); transition: transform .5s var(--ease-spring); transform-origin: 50% 100%; }
.player-card:hover .pc-body img { transform: translateY(-4px) rotate(-3deg) scale(1.04); }
.pc-main { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 4px; }
.pc-name { font: 700 1.3rem/1.15 var(--pixel); color: var(--text); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-name:hover { color: var(--grass); }
.pc-sub { color: var(--muted); font-size: .95rem; }
.pc-stats { display: flex; gap: 14px; flex-wrap: wrap; color: var(--muted); font-size: .85rem; margin-top: 6px; }
.pc-stats span { display: inline-flex; align-items: center; gap: 5px; }
.pc-stats svg { width: 15px; height: 15px; opacity: .8; }
.pc-cams { margin-top: 4px; }
.pc-socials { margin-top: auto; padding-top: 12px; }
.pc-socials .si { width: 34px; height: 34px; }
.player-card .live-title { margin-top: 6px; }
@media (max-width: 420px) { .grid-cards { grid-template-columns: minmax(0, 1fr); } .pc-body, .pc-body img { width: 60px; } .pc-body img { height: 120px; } }

/* ---------- Aktivität ---------- */
.activity-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); gap: 28px; align-items: start; }
.activity-side { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 16px; }
@media (max-width: 1000px) { .activity-layout { grid-template-columns: minmax(0, 1fr); } .activity-side { position: static; order: -1; } .activity-side .card:not(:first-child) { display: none; } }
.timeline { position: relative; display: flex; flex-direction: column; gap: 10px; padding-left: 26px; }
.timeline::before { content: ''; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--border-strong), transparent); border-radius: 2px; }
.tl-day { position: relative; margin: 14px 0 2px -26px; }
.tl-day:first-child { margin-top: 0; }
.tl-day span { display: inline-block; font: 700 .78rem var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--grass); background: var(--bg); padding: 2px 10px 2px 0; }
.tl-item { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 16px; }
.tl-dot { position: absolute; left: -26px; top: 50%; translate: 0 -50%; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); border: 2px solid var(--bg); color: var(--muted); }
.tl-dot svg { width: 11px; height: 11px; }
.ev-death .tl-dot { background: #3b1717; color: #fca5a5; }
.ev-advancement .tl-dot { background: #3a2a07; color: var(--gold); }
.ev-chat .tl-dot { background: #13233b; color: #93c5fd; }
.tl-av img { width: 40px; height: 40px; border-radius: 8px; image-rendering: pixelated; display: block; }
.tl-text { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tl-name { font-weight: 700; color: var(--text); }
.tl-msg { overflow-wrap: anywhere; }
.tl-meta { font-size: .78rem; color: var(--faint); }
.tl-item time { font-size: .85rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.ev-advancement.tl-item { border-color: rgba(251, 191, 36, .18); }
.mini-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 6px 0 18px; }
.mini-kpis div { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 12px; }
.mini-kpis b { display: block; font: 700 1.5rem/1.1 var(--pixel); }
.mini-kpis span { font-size: .78rem; color: var(--faint); }
.week-bars { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; height: 120px; align-items: end; }
.wb-col { display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.wb-stack { width: 100%; max-width: 30px; height: max(var(--h), 3px); display: flex; flex-direction: column; border-radius: 5px; overflow: hidden; background: var(--surface-2); transform-origin: bottom; }
.motion .wb-stack { transform: scaleY(0); transition: transform .9s var(--ease-spring); transition-delay: calc(var(--i) * 60ms + 150ms); }
.motion .in .wb-stack { transform: scaleY(1); }
.wb-adv { background: var(--gold); }
.wb-death { background: #ef4444; }
.wb-lbl { font-size: .7rem; color: var(--faint); }
.legend { display: flex; gap: 14px; margin-top: 12px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.lg-adv { background: var(--gold); } .lg-death { background: #ef4444; }
.empty-rich { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 56px 24px; }
.empty-rich > svg { width: 34px; height: 34px; color: var(--grass); }
.empty-rich strong { color: var(--text); font-size: 1.15rem; }
.empty-hero { padding: 72px 24px; background: radial-gradient(400px 200px at 50% 0%, rgba(74, 222, 128, .07), transparent), var(--bg-2); border-style: solid; }
.empty-orbs { display: flex; gap: 14px; margin-bottom: 10px; }
.empty-orbs span { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--border); animation: bob 4s ease-in-out infinite; }
.empty-orbs span:nth-child(2) { animation-delay: -1.3s; color: var(--gold); }
.empty-orbs span:nth-child(1) { color: #fca5a5; }
.empty-orbs span:nth-child(3) { animation-delay: -2.6s; color: var(--grass); }
.empty-orbs svg { width: 26px; height: 26px; }
.empty-sm { padding: 24px; }

/* ---------- Regelwerk ---------- */
.rules-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 32px; align-items: start; }
.rules-toc { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 2px; }
.rules-toc .group { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); font-weight: 700; margin-bottom: 8px; }
.rules-toc a:not(.btn) { display: flex; gap: 10px; padding: 8px 10px; border-radius: 8px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: .93rem; transition: background .25s var(--ease), color .25s var(--ease); }
.rules-toc a:not(.btn):hover, .rules-toc a.active { background: var(--surface); color: var(--text); }
.rules-toc a.active .toc-num { color: var(--grass); }
.toc-num { font: 700 .8rem var(--pixel); color: var(--faint); min-width: 20px; padding-top: 2px; }
.rules-body { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.rule-card { padding: clamp(20px, 3vw, 36px); scroll-margin-top: 90px; }
.rule-head { display: flex; gap: 16px; align-items: center; margin-bottom: 8px; }
.rule-ico { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, rgba(74, 222, 128, .18), rgba(59, 130, 246, .12)); color: var(--grass); flex: none; }
.rule-ico svg { width: 26px; height: 26px; }
.rule-num { font: 700 .8rem var(--pixel); color: var(--faint); letter-spacing: .1em; }
.rule-head h2 { margin: 0; font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.rule-card .prose { max-width: 900px; }
.rule-card .prose h3 { font-size: 1.1rem; margin: 1.4em 0 .4em; color: var(--text); }
.rule-card .prose h3:first-child { margin-top: .6em; }
.rule-card .prose ul { list-style: none; padding-left: 0; }
.rule-card .prose ul li { position: relative; padding-left: 22px; color: #cfd8e3; }
.rule-card .prose ul li::before { content: ''; position: absolute; left: 4px; top: .68em; width: 7px; height: 7px; background: var(--grass); border-radius: 2px; transform: rotate(45deg); }
.rule-card .prose table { width: 100%; border-collapse: collapse; margin: 10px 0 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.rule-card .prose th, .rule-card .prose td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--border); }
.rule-card .prose th { background: var(--bg-2); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); }
.rule-card .prose tr:nth-child(1) td:last-child { color: var(--gold); font-weight: 700; }
.rule-card .prose tr:nth-child(2) td:last-child { color: #fb923c; font-weight: 700; }
.rule-card .prose tr:nth-child(3) td:last-child { color: var(--red); font-weight: 700; }
.rule-card .prose ol { list-style: none; padding: 0; counter-reset: step; display: grid; gap: 8px; }
.rule-card .prose ol li { counter-increment: step; display: flex; gap: 12px; align-items: center; background: var(--bg-2); border: 1px solid var(--border); border-radius: 10px; padding: 10px 14px; margin: 0; }
.rule-card .prose ol li::before { content: counter(step) '.'; font: 700 .95rem var(--pixel); color: var(--grass); min-width: 22px; }
.rule-card.penalty .prose { max-width: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
.rule-card.penalty .prose h3 { grid-row: 1; }
.rule-card.penalty .prose ol { grid-row: 2; }
.rule-card.penalty .prose ol li:nth-child(n+2) { border-color: rgba(251, 191, 36, .25); }
.rule-card.penalty .prose ol li:nth-child(n+4) { border-color: rgba(248, 113, 113, .35); }
.rule-card.penalty .prose ol li:nth-child(5) { background: rgba(248, 113, 113, .07); }
.rule-card.penalty .prose ol li::before { color: var(--red); }
.rule-card.penalty .prose > :not(h3):not(ol) { grid-column: 1 / -1; }
@media (max-width: 960px) { .rules-layout { grid-template-columns: minmax(0, 1fr); } .rules-toc { position: static; flex-direction: row; flex-wrap: nowrap; overflow-x: auto; gap: 6px; padding-bottom: 4px; } .rules-toc .group, .rules-toc .btn { display: none; } .rules-toc a:not(.btn) { white-space: nowrap; background: var(--surface); } }
@media (max-width: 700px) { .rule-card.penalty .prose { grid-template-columns: minmax(0, 1fr); } .rule-card.penalty .prose h3, .rule-card.penalty .prose ol { grid-row: auto; } }

/* ---------- Meldungen ---------- */
.narrow-2col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 360px); gap: 28px; align-items: start; }
@media (max-width: 960px) { .narrow-2col { grid-template-columns: minmax(0, 1fr); } }
.dropzone { border: 2px dashed var(--border-strong); border-radius: 14px; padding: 26px; background: var(--bg-2); cursor: pointer; transition: border-color .25s var(--ease), background .25s var(--ease), transform .25s var(--ease-spring); outline: none; }
.dropzone:hover, .dropzone:focus-visible, .dropzone.drag { border-color: var(--grass); background: rgba(74, 222, 128, .05); }
.dropzone.drag { transform: scale(1.01); }
.dropzone.error { border-color: rgba(248, 113, 113, .6); }
.dropzone.error .dz-idle .small { color: var(--red); }
.dropzone.done { border-style: solid; border-color: rgba(74, 222, 128, .5); cursor: default; }
.dz-idle { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.dz-idle svg { width: 30px; height: 30px; color: var(--grass); margin-bottom: 4px; }
.dz-progress { display: flex; flex-direction: column; gap: 10px; cursor: default; }
.dz-file { display: flex; gap: 10px; align-items: center; font-weight: 600; min-width: 0; }
.dz-file span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dz-file svg { width: 18px; height: 18px; color: var(--grass); flex: none; }
.progress { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.progress span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--grass-dark), var(--grass)); transition: width .3s var(--ease); }
.busy .progress span { background-size: 200% 100%; background-image: linear-gradient(90deg, var(--grass-dark), var(--grass), var(--grass-dark)); animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.linklike { color: var(--grass); background: none; border: 0; padding: 0; font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.steps { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; counter-reset: st; }
.steps li { counter-increment: st; display: grid; grid-template-columns: 30px 1fr; gap: 2px 12px; }
.steps li::before { content: counter(st); grid-row: span 2; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: rgba(74, 222, 128, .12); color: var(--grass); font: 700 .85rem var(--pixel); }
.steps span { color: var(--muted); font-size: .9rem; }
.alert-card { border-color: rgba(251, 191, 36, .3); background: linear-gradient(180deg, rgba(251, 191, 36, .06), transparent), var(--surface); }
.alert-card h3 svg { color: var(--gold); }
.success-card > svg { color: var(--grass); }
.report-link { margin-top: 14px; }
.badge-r-open { color: #93c5fd; border-color: rgba(147, 197, 253, .35); background: rgba(147, 197, 253, .08); }
.badge-r-review { color: var(--gold); border-color: rgba(251, 191, 36, .35); background: rgba(251, 191, 36, .08); }
.badge-r-done { color: var(--grass); border-color: rgba(74, 222, 128, .35); background: rgba(74, 222, 128, .08); }
.badge-r-rejected { color: var(--faint); }
.clip-card video { width: 100%; max-height: 70vh; border-radius: var(--radius-sm); background: #000; display: block; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg-opt input { position: absolute; opacity: 0; pointer-events: none; }
.seg-opt span { display: inline-block; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg-2); font-size: .88rem; font-weight: 600; color: var(--muted); cursor: pointer; transition: all .2s var(--ease); }
.seg-opt input:checked + span { background: var(--grass-strong); border-color: var(--grass-strong); color: #04210f; }
.seg-opt input:focus-visible + span { outline: 2px solid var(--grass); outline-offset: 2px; }
.mini-row { display: flex; justify-content: space-between; gap: 14px; padding: 14px 16px; }
.mini-main { min-width: 0; }
.mini-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; }
.checks { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }

/* ---------- Abstimmungen ---------- */
.grid-polls { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr)); }
.poll-card { display: flex; flex-direction: column; gap: 10px; padding: 24px; }
.poll-card.ended { opacity: .92; }
.poll-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.poll-card h3 { margin: 4px 0 0; font-size: 1.3rem; line-height: 1.3; }
.poll-card h3 a { color: var(--text); text-decoration: none; }
.poll-card h3 a:hover { color: var(--grass); }
.poll-desc { margin: 0; white-space: pre-line; }
.poll-form { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.poll-opt { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--border); overflow: hidden; cursor: pointer; isolation: isolate; transition: border-color .25s var(--ease), transform .2s var(--ease-spring); }
.poll-card.ended .poll-opt, .poll-form:not(:has(input)) .poll-opt { cursor: default; }
.poll-opt:hover { border-color: var(--border-strong); }
.poll-opt:has(input:checked) { border-color: var(--grass); box-shadow: 0 0 0 1px rgba(74, 222, 128, .25); }
.poll-opt input { width: 18px; height: 18px; accent-color: var(--grass-strong); flex: none; margin: 0; }
.po-fill { position: absolute; inset: 0 auto 0 0; width: var(--w); background: linear-gradient(90deg, rgba(74, 222, 128, .16), rgba(74, 222, 128, .08)); z-index: -1; transform-origin: left; }
.motion .po-fill { transform: scaleX(0); transition: transform 1.1s var(--ease); }
.motion .poll-form.ready .po-fill { transform: scaleX(1); }
.poll-opt.winner { border-color: rgba(251, 191, 36, .5); }
.poll-opt.winner .po-fill { background: linear-gradient(90deg, rgba(251, 191, 36, .22), rgba(251, 191, 36, .08)); }
.po-label { flex: 1; min-width: 0; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; overflow-wrap: anywhere; }
.po-me svg, .po-win svg { width: 16px; height: 16px; vertical-align: -2px; }
.po-me { color: var(--grass); } .po-win { color: var(--gold); }
.po-val { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.15; font-variant-numeric: tabular-nums; }
.po-val b { font: 700 1.05rem var(--pixel); }
.poll-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.badge-p-active { color: var(--grass); border-color: rgba(74, 222, 128, .35); background: rgba(74, 222, 128, .08); }
.badge-p-pending { color: var(--gold); border-color: rgba(251, 191, 36, .35); background: rgba(251, 191, 36, .08); }
.badge-p-closed { color: #c4b5fd; border-color: rgba(196, 181, 253, .35); background: rgba(196, 181, 253, .08); }
.badge-p-rejected { color: var(--red); border-color: rgba(248, 113, 113, .35); background: rgba(248, 113, 113, .08); }
.mine-strip { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }
.chip-card { padding: 10px 14px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); }
.opt-list { display: flex; flex-direction: column; gap: 8px; }
.opt-row { display: flex; align-items: center; gap: 10px; }
.opt-num { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--surface-2); color: var(--muted); font: 700 .85rem var(--pixel); flex: none; }
.opt-row input { flex: 1; }
.result-list { display: flex; flex-direction: column; gap: 14px; }
.rr-top { display: flex; justify-content: space-between; gap: 12px; }
.rule-card.penalty .prose h3 { margin-top: .6em; }
[hidden] { display: none !important; }

.hook-item { display: flex; flex-direction: column; gap: 6px; padding: 10px 0; border-top: 1px solid var(--border); }
.hook-item:first-child { border-top: 0; }
.hook-row { display: flex; gap: 8px; padding-left: 28px; }
.hook-row input { flex: 1; min-width: 0; font-size: .85rem; padding: 7px 10px; }
tr.row-link { cursor: pointer; } tr.row-link:hover td { background: var(--surface-2); }
.field { align-content: start; }
