/* ==========================================================================
   Speedgamez – Gamecenter
   Mobile first, dunkles Design, keine externen Schriften (DSGVO-freundlich)
   ========================================================================== */
:root {
  --bg: #0b0e1a;
  --bg2: #111527;
  --card: #161b31;
  --card2: #1c2240;
  --line: #262d50;
  --ink: #eef0fb;
  --muted: #98a0c3;
  --accent: #ffb020;
  --accent2: #ff6a2b;
  --accent-ink: #1a1206;
  --ok: #3fd18a;
  --bad: #ff5d6c;
  --info: #5ab0ff;
  --gold: #ffcf3f;
  --silver: #c9d2e3;
  --bronze: #d08a55;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --tabbar-h: 64px;
}
/* Helles Theme (opt-in per Umschalter; Standard bleibt dunkel) */
:root[data-theme="light"] {
  --bg: #f4f6fb;
  --bg2: #eaeef7;
  --card: #ffffff;
  --card2: #eef2fb;
  --line: #dde3f0;
  --ink: #1a1f33;
  --muted: #5b6480;
  --shadow: 0 10px 30px rgba(20, 30, 60, .12);
}
.theme-toggle { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: transparent; border: 1px solid var(--line); color: var(--muted); cursor: pointer; }
.theme-toggle:hover { color: var(--ink); border-color: var(--accent); }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .ic-moon { display: none; }
:root[data-theme="light"] .theme-toggle .ic-moon { display: block; }
:root[data-theme="light"] .theme-toggle .ic-sun { display: none; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scrollbar-gutter: stable; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--font);
  background-image: radial-gradient(1200px 600px at 80% -10%, rgba(255, 106, 43, .12), transparent 60%),
                    radial-gradient(900px 500px at -10% 10%, rgba(90, 120, 255, .12), transparent 60%);
  background-attachment: fixed;
  padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.2rem); }
h2 { font-size: 1.2rem; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
code { background: rgba(255, 255, 255, .07); padding: .1em .4em; border-radius: 6px; font-size: .9em; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.gold { color: var(--gold); }
.ok-txt { color: var(--ok); }
.bad-txt { color: var(--bad); }
.ic { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 99; background: var(--accent); color: #000; padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.wrap { width: 100%; max-width: var(--wrap-max, 1440px); margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 560px; }
main.wrap { padding-top: 20px; padding-bottom: 40px; min-height: 60vh; }

/* ---------- Kopfzeile ---------- */
.topbar { position: sticky; top: 0; z-index: 40; background: rgba(11, 14, 26, .86); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.topbar-in { display: flex; align-items: center; gap: 16px; height: 60px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; font-size: 1.2rem; letter-spacing: -.02em; text-decoration: none !important; }
.logo-mark { width: 34px; height: 34px; flex: none; }
.logo-text b { color: var(--accent); font-weight: 800; }
.mainnav { display: none; gap: 4px; margin-left: 12px; }
.mainnav a { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); padding: 8px 12px; border-radius: 10px; font-weight: 600; text-decoration: none; }
.mainnav a:hover, .mainnav a.on { color: var(--ink); background: rgba(255, 255, 255, .06); }
.mainnav a.on { box-shadow: inset 0 -2px 0 var(--accent); }
.usernav { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.coins { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--gold); background: rgba(255, 207, 63, .1); border: 1px solid rgba(255, 207, 63, .25); padding: 5px 10px; border-radius: 999px; text-decoration: none !important; font-variant-numeric: tabular-nums; }
.coins.big { font-size: 1.4rem; padding: 8px 16px; }
.bell { position: relative; color: var(--ink); padding: 8px; border-radius: 10px; display: inline-flex; }
.bell:hover { background: rgba(255, 255, 255, .06); }
.bell .dot, .tabbar .dot { position: absolute; top: 2px; right: 0; background: var(--bad); color: #fff; font-size: .7rem; font-weight: 700; border-radius: 999px; min-width: 18px; height: 18px; display: grid; place-items: center; padding: 0 4px; }
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 4px; border-radius: 999px; }
.menu summary::-webkit-details-marker { display: none; }
.menu .uname { display: none; font-weight: 600; }
.menu-pop { position: absolute; right: 0; top: calc(100% + 8px); background: var(--card2); border: 1px solid var(--line); border-radius: 14px; padding: 6px; min-width: 230px; box-shadow: var(--shadow); z-index: 50; }
.menu-pop a, .menu-pop button { display: flex; width: 100%; align-items: center; gap: 10px; padding: 10px 12px; color: var(--ink); border-radius: 10px; background: none; border: 0; font: inherit; cursor: pointer; text-align: left; text-decoration: none; }
.menu-pop a:hover, .menu-pop button:hover { background: rgba(255, 255, 255, .07); }
.menu-pop form { margin: 0; border-top: 1px solid var(--line); margin-top: 4px; padding-top: 4px; }

/* ---------- Mobile Tab-Leiste ---------- */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: flex; background: rgba(13, 16, 32, .96); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.tabbar a { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; height: var(--tabbar-h); color: var(--muted); font-size: .72rem; font-weight: 600; text-decoration: none; }
.tabbar a .ic { width: 24px; height: 24px; }
.tabbar a.on { color: var(--accent); }
.tabbar .dot { top: 8px; right: calc(50% - 20px); min-width: 10px; height: 10px; padding: 0; }

/* ---------- Buttons & Formulare ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer; font: inherit; font-weight: 700;
  color: var(--accent-ink); background: linear-gradient(135deg, var(--accent), var(--accent2)); padding: 11px 20px; border-radius: 12px;
  text-decoration: none !important; transition: transform .1s, filter .15s; min-height: 44px; }
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: rgba(255, 255, 255, .06); color: var(--ink); border: 1px solid var(--line); }
.btn.ghost:hover { background: rgba(255, 255, 255, .1); }
.btn.danger { background: var(--bad); color: #fff; }
.btn.sm { padding: 6px 12px; font-size: .9rem; min-height: 36px; border-radius: 10px; }
.btn.lg { padding: 14px 26px; font-size: 1.1rem; }
.btn.block { width: 100%; }
.icon-btn { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 6px; border-radius: 8px; }
.icon-btn:hover { color: var(--ink); background: rgba(255, 255, 255, .07); }
.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; }
.form label small { font-weight: 400; color: var(--muted); }
input, select, textarea { font: inherit; color: var(--ink); background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; min-height: 44px; width: 100%; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(255, 176, 32, .2); }
input[type=checkbox], input[type=radio] { width: 20px; height: 20px; min-height: 0; padding: 0; flex: none; accent-color: var(--accent); }
input[type=file] { padding: 8px; }
input.xs { width: 80px; min-height: 34px; padding: 4px 8px; }
.form .check, label.check { display: flex; align-items: center; gap: 10px; font-weight: 400; }
.hp { position: absolute !important; left: -9999px; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.row-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0 0 12px; }
.row-form input, .row-form select { width: auto; flex: 1 1 160px; }
.row-form label { display: flex; align-items: center; gap: 8px; }
.form-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
form.inline { margin: 0; }
form.inline select { width: auto; min-height: 38px; padding: 6px 10px; }

/* ---------- Karten & Layout ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 18px; overflow: hidden; }
.card.pad, .pad { padding: 18px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.card-head h2, .card-head h3 { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 1.05rem; }
.card-foot { display: block; padding: 12px 18px; border-top: 1px solid var(--line); font-weight: 600; }
.stack > .card { margin-bottom: 18px; }
.grid-main, .grid-2 { display: grid; gap: 18px; grid-template-columns: 1fr; }
.grid-2 > .card, .grid-2 > .stack { margin-bottom: 0; }
.grid-2 { margin-bottom: 18px; }
.page-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.page-head h1 { display: flex; align-items: center; gap: 10px; margin: 0; }
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 12px; }
.empty { text-align: center; color: var(--muted); }

.flash { padding: 12px 16px; border-radius: 12px; margin-bottom: 14px; border: 1px solid; }
.flash.ok { background: rgba(63, 209, 138, .1); border-color: rgba(63, 209, 138, .35); }
.flash.error { background: rgba(255, 93, 108, .1); border-color: rgba(255, 93, 108, .35); }
.flash.info { background: rgba(90, 176, 255, .1); border-color: rgba(90, 176, 255, .35); }
.flash.jackpot { font-size: 1.1rem; text-align: center; background: linear-gradient(135deg, rgba(255, 207, 63, .25), rgba(255, 106, 43, .2)); border-color: var(--gold); }

.tag { display: inline-flex; align-items: center; gap: 4px; font-size: .75rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: rgba(255, 255, 255, .08); color: var(--ink); vertical-align: middle; text-transform: uppercase; letter-spacing: .03em; }
.tag.sm { font-size: .68rem; padding: 2px 7px; }
.tag.premium { background: linear-gradient(135deg, #b88cff, #6c5ce7); color: #fff; }
.tag.new { background: var(--ok); color: #03281a; }
.tag.ok { background: rgba(63, 209, 138, .18); color: var(--ok); }
.tag.bad { background: rgba(255, 93, 108, .18); color: var(--bad); }
.tag.warn { background: rgba(255, 176, 32, .18); color: var(--accent); }
.tag.duel { background: rgba(255, 176, 32, .15); color: var(--accent); text-transform: none; }
.pill { font-size: .72rem; background: rgba(255, 255, 255, .12); color: var(--ink); border-radius: 999px; padding: 1px 7px; font-weight: 700; }

/* ---------- Avatare, Medaillen ---------- */
.avatar { --h: 30; display: inline-grid; place-items: center; flex: none; border-radius: 50%; object-fit: cover; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, hsl(var(--h) 70% 55%), hsl(calc(var(--h) + 40) 70% 40%)); }
.avatar.xs { width: 26px; height: 26px; font-size: .75rem; }
.avatar.sm { width: 34px; height: 34px; font-size: .9rem; }
.avatar.md { width: 48px; height: 48px; font-size: 1.2rem; }
.avatar.lg { width: 84px; height: 84px; font-size: 2rem; }
.avatar.xl { width: 112px; height: 112px; font-size: 2.8rem; box-shadow: 0 0 0 4px var(--card), 0 0 0 6px var(--accent); }
.medal { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font-size: .75rem; font-weight: 800; color: #221a08; flex: none;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .2); }
.medal.m1 { background: radial-gradient(circle at 35% 30%, #fff3b0, var(--gold) 55%, #c9971a); }
.medal.m2 { background: radial-gradient(circle at 35% 30%, #fff, var(--silver) 55%, #8d97aa); }
.medal.m3 { background: radial-gradient(circle at 35% 30%, #ffd9bd, var(--bronze) 55%, #8f5327); }
.rank { display: inline-block; min-width: 24px; text-align: center; color: var(--muted); font-weight: 700; font-variant-numeric: tabular-nums; }
.ulink { color: var(--ink); font-weight: 600; }

/* ---------- Tabellen & Listen ---------- */
.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tbl { width: 100%; border-collapse: collapse; }
.tbl th, .tbl td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl th { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .r { text-align: right; }
.tbl .num { font-weight: 700; font-variant-numeric: tabular-nums; }
.tbl td.who { display: flex; align-items: center; gap: 10px; }
.tbl tr.me td { background: rgba(255, 176, 32, .08); }
.tbl tr.flagged td { background: rgba(255, 93, 108, .06); }
.rank-list { list-style: none; margin: 0; padding: 6px 0; }
.rank-list li { display: flex; align-items: center; gap: 10px; padding: 8px 18px; }
.rank-list li > b { margin-left: auto; font-variant-numeric: tabular-nums; }
.rank-list li > span.muted:last-child { margin-left: auto; font-size: .85rem; }
.rank-list li.me { background: rgba(255, 176, 32, .08); }
.people { list-style: none; margin: 0; padding: 6px 0; }
.people li { display: flex; align-items: center; gap: 12px; padding: 10px 18px; border-bottom: 1px solid var(--line); }
.people li:last-child { border-bottom: 0; }
.avatars { display: flex; flex-wrap: wrap; gap: 8px; }
.me-line { background: rgba(255, 176, 32, .08); border-top: 1px solid var(--line); }
.card.me-line { border-color: rgba(255, 176, 32, .35); }
.pager { display: flex; justify-content: center; align-items: center; gap: 16px; padding: 12px; border-top: 1px solid var(--line); font-size: .9rem; }

.tabs { display: flex; gap: 6px; margin-bottom: 16px; overflow-x: auto; scrollbar-width: none; }
.tabs a { white-space: nowrap; padding: 9px 16px; border-radius: 999px; color: var(--muted); background: var(--card); border: 1px solid var(--line); font-weight: 600; text-decoration: none; }
.tabs a.on { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
.subtabs { display: flex; gap: 6px; margin: 6px 0 18px; flex-wrap: wrap; }
/* Admin-Einstellungen: Tab-Buttons + Panels */
.tab { padding: 9px 16px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--muted); font-weight: 600; font: inherit; cursor: pointer; white-space: nowrap; }
.tab:hover { color: var(--ink); }
.tab.on { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
.tabpanel { display: none; }
.tabpanel.on { display: block; }
.logbox { max-height: 62vh; overflow: auto; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.logline { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: 12px; line-height: 1.5; white-space: pre-wrap; word-break: break-word; padding: 3px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
.logline:last-child { border-bottom: 0; }
/* Turniere */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.tcard { display: block; text-decoration: none; color: inherit; transition: transform .12s, border-color .12s; }
.tcard:hover { transform: translateY(-2px); border-color: var(--accent); }
.tcard-mode { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--accent); font-weight: 700; }
.tcard h3 { margin: 4px 0 6px; }
.bracket { display: flex; gap: 22px; overflow-x: auto; padding-bottom: 8px; }
.bracket-round { display: flex; flex-direction: column; gap: 14px; justify-content: space-around; min-width: 160px; }
.bracket-head { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; }
.bracket-match { background: var(--card); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.bracket-match > div { padding: 7px 10px; font-size: .9rem; border-bottom: 1px solid var(--line); }
.bracket-match > div:last-child { border-bottom: 0; }
.bracket-match .win { font-weight: 700; color: var(--accent); }
.bracket-match .lose { color: var(--muted); text-decoration: line-through; }
/* Dashboard: Du bist dran / Tagesziele / Neu */
.turn-h { display: flex; align-items: center; gap: 8px; font-size: 1.05rem; margin: 0 0 10px; }
.turn-h svg { width: 20px; height: 20px; }
.turn { border-left: 3px solid var(--accent); }
.turn-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.turn-list li { display: flex; align-items: center; gap: 10px; }
.turn-ic { flex: none; display: inline-flex; }
.turn-ic svg { width: 18px; height: 18px; color: var(--accent); }
.turn-tx { flex: 1 1 auto; min-width: 0; }
.turn-list .btn { flex: none; }
.dash-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 14px 0; }
@media (max-width: 700px) { .dash-cols { grid-template-columns: 1fr; } }
.goal-list, .new-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.goal-list a, .new-list a { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); padding: 4px 0; }
.goal-check { flex: none; width: 22px; height: 22px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--card); border: 1px solid var(--line); color: var(--muted); font-weight: 700; font-size: .85rem; }
.goal.done a { color: var(--muted); }
.goal.done .goal-check { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.goals, .whatsnew { min-width: 0; }
.notif-ic { flex: none; width: 34px; height: 34px; border-radius: 9px; display: inline-grid; place-items: center; background: var(--card); border: 1px solid var(--line); color: var(--accent); }
.notif-ic svg { width: 18px; height: 18px; }
.notifs li.unread .notif-ic { border-color: currentColor; }
.notifs li.unread .notif-body b::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 7px; border-radius: 50%; background: var(--accent); vertical-align: middle; }
.notif-body { text-decoration: none; color: inherit; }
.notif-body:hover b { color: var(--accent); }
.notif-sec { display: block; padding: 10px 18px 4px; font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; border: 0; background: transparent; }
.notif-acts { flex: none; display: flex; align-items: center; gap: 2px; }
.notif-acts .icon-btn.on { color: var(--accent); }
.notifs li.pinned { background: rgba(255,176,32,.04); }
.pf-check { flex: none; width: 18px; height: 18px; margin-top: 4px; accent-color: var(--accent); }
.tab-n { display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: .72rem; font-weight: 700; text-align: center; }
.pf-bulk { display: flex; align-items: center; gap: 10px; padding: 10px 14px; margin-bottom: 10px; background: var(--card2); border: 1px solid var(--line); border-radius: 10px; }
.pf-bulk span { margin-right: auto; color: var(--muted); font-weight: 600; }
/* Such-Button + Kommando-Palette */
.nav-search { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: transparent; border: 1px solid var(--line); color: var(--muted); cursor: pointer; }
.nav-search:hover { color: var(--ink); border-color: var(--accent); }
.nav-search svg { width: 20px; height: 20px; }
.cmdk { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 1000; display: flex; align-items: flex-start; justify-content: center; padding: 12vh 16px 16px; }
.cmdk[hidden] { display: none; }
.cmdk-box { width: 100%; max-width: 560px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.4); }
.cmdk-in { width: 100%; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--ink); font-size: 1.05rem; padding: 16px 18px; outline: none; }
.cmdk-list { list-style: none; margin: 0; padding: 6px; max-height: 50vh; overflow: auto; }
.cmdk-list li { padding: 10px 12px; border-radius: 9px; cursor: pointer; color: var(--ink); }
.cmdk-list li.on, .cmdk-list li:hover { background: var(--accent); color: var(--accent-ink); }
.game-search { flex: 1 1 160px; max-width: 240px; min-height: 36px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); }
.game-search:focus { outline: none; border-color: var(--accent); }
/* Highscore-Podium */
.podium { display: flex; align-items: flex-end; justify-content: center; gap: 12px; margin: 6px 0 16px; }
.pod { display: flex; flex-direction: column; align-items: center; gap: 4px; text-decoration: none; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 12px; width: 32%; max-width: 180px; }
.pod-medal { font-size: 1.4rem; line-height: 1; }
.pod-name { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pod-pts { color: var(--muted); font-size: .85rem; }
.pod-1 { order: 2; transform: translateY(-14px); border-color: var(--accent); box-shadow: 0 8px 30px rgba(0,0,0,.25); }
.pod-2 { order: 1; }
.pod-3 { order: 3; }
.pod-1 .avatar, .pod-1 .av { transform: scale(1.15); }
@media (max-width: 520px) { .pod { padding: 10px 6px; } .pod-name { font-size: .85rem; } }
.settings-search { width: 100%; box-sizing: border-box; margin-bottom: 12px; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg2); color: var(--ink); }
th.sort-asc::after { content: ' ▲'; color: var(--accent); font-size: .75em; }
th.sort-desc::after { content: ' ▼'; color: var(--accent); font-size: .75em; }
/* Highscore-Kopf: Suche + Monat einheitlich in einer Reihe */
.hs-controls { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hs-controls input, .hs-controls select { min-height: 40px; }
.subtabs a { padding: 6px 14px; border-radius: 999px; color: var(--muted); background: var(--bg2); border: 1px solid var(--line); font-weight: 600; font-size: .9rem; text-decoration: none; }
.subtabs a.on { color: var(--ink); background: rgba(255,255,255,.08); border-color: var(--accent); }
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.chip { white-space: nowrap; padding: 5px 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--muted); font-size: .88rem; font-weight: 600; text-decoration: none !important; }
.chip.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.kpis { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); margin-bottom: 18px; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; color: var(--ink); text-decoration: none !important; }
.kpi b { display: block; font-size: 1.5rem; font-variant-numeric: tabular-nums; }
.kpi span { color: var(--muted); font-size: .85rem; }
.kpi.gold b { color: var(--gold); }
.kpi.warn b { color: var(--bad); }

/* ---------- Startseite ---------- */
.hero { display: grid; gap: 20px; padding: 26px 22px; margin-bottom: 22px; border-radius: 22px; border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(255, 176, 32, .16), rgba(108, 92, 231, .16)), var(--card); position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 176, 32, .35), transparent 70%); pointer-events: none; }
.hero h1 { max-width: 20ch; }
.hero p { color: #c8cde6; max-width: 58ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.hero-stats div { background: rgba(0, 0, 0, .22); border-radius: 14px; padding: 12px; text-align: center; }
.hero-stats b { display: block; font-size: 1.5rem; }
.hero-stats span { font-size: .78rem; color: var(--muted); }
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.sec-head h2 { margin: 0; font-size: 1.35rem; }
.games { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.game { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--ink); text-decoration: none !important; transition: transform .15s, border-color .15s, box-shadow .15s; }
.game:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: var(--shadow); }
.game-img { position: relative; aspect-ratio: 16 / 10; background: #222 center / cover no-repeat; }
.game-img .tag { position: absolute; left: 8px; top: 8px; }
.game-play { position: absolute; right: 10px; bottom: 10px; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); box-shadow: 0 6px 16px rgba(0, 0, 0, .4); opacity: .95; }
.game-play .ic { width: 20px; height: 20px; fill: currentColor; }
.game-body { padding: 10px 12px 12px; }
.game-body h3 { margin: 0 0 2px; font-size: 1rem; }
.game-body p { margin: 0; font-size: .8rem; }
.leader { display: flex; align-items: center; gap: 6px; margin-top: 6px !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.leader b { color: var(--gold); margin-left: auto; }
.side .card-head h3 { font-size: 1rem; }
.me-card { display: flex; align-items: center; gap: 12px; }
.how h3, .how h2 { margin-bottom: .4em; }
.how p { color: var(--muted); font-size: .92rem; }
.steps { padding-left: 1.2em; margin: 0 0 1em; color: #c8cde6; }
.steps li { margin-bottom: 6px; }
.news { border-color: rgba(255, 176, 32, .4); }

/* ---------- Spielseite ---------- */
.game-hero { display: grid; grid-template-columns: 1fr; }
.gh-img { aspect-ratio: 16 / 9; background: #222 center / cover no-repeat; }
.gh-body { padding: 18px; }
.gh-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.gh-desc { color: #c8cde6; margin-bottom: 14px; }
.facts { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 0 0 16px; }
.facts div { min-width: 90px; }
.facts dt { font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.facts dd { margin: 0; font-weight: 700; }
.gh-cta .btn .ic { fill: currentColor; }
.duel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.duel-head h2 { display: flex; align-items: center; gap: 8px; }
.stakes { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 10px; margin: 8px 0 12px; }
.stake { position: relative; display: grid; gap: 0; place-items: center; padding: 12px 6px; border-radius: 14px; cursor: pointer; font: inherit; color: var(--ink);
  background: linear-gradient(180deg, rgba(255, 207, 63, .12), rgba(255, 207, 63, .04)); border: 1px solid rgba(255, 207, 63, .35); transition: transform .1s, border-color .15s; }
.stake b { font-size: 1.3rem; color: var(--gold); }
.stake span { font-size: .75rem; color: var(--muted); }
.stake i { position: absolute; top: -8px; right: -6px; font-style: normal; font-size: .65rem; font-weight: 800; background: var(--ok); color: #03281a; padding: 2px 6px; border-radius: 999px; }
.stake:hover { border-color: var(--gold); transform: translateY(-2px); }
.stake.off { opacity: .35; cursor: not-allowed; transform: none; }
.stake.sel { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(255, 207, 63, .3); background: linear-gradient(180deg, rgba(255, 207, 63, .3), rgba(255, 207, 63, .12)); }
.stake.sel b { color: #ffdf7a; }
.hs-games { display: grid; gap: 18px; grid-template-columns: 1fr; }
.hs-games .card { margin: 0; }
.hs-game-head { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none !important; }
.hs-game-head .thumb { width: 104px; border-radius: 10px; }
.hs-game-head b { font-size: 1.08rem; }
.hs-game-head .muted { margin-left: auto; text-align: right; }
.hs-game-head:hover b { color: var(--accent); }
.thumb { display: inline-block; width: 48px; aspect-ratio: 16/10; border-radius: 8px; background: #222 center / cover no-repeat; flex: none; vertical-align: middle; }
.thumb.sm { width: 40px; }
.thumb.lg { width: 200px; }
.fame { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.fame-m { font-weight: 700; min-width: 130px; }
.fame-p { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Profil ---------- */
.profile { display: grid; gap: 18px; padding: 22px; justify-items: center; text-align: center; }
.pf-av { position: relative; border-radius: 50%; }
/* Beziehungs-Ring ums Profilbild: gelb=kein Kontakt, blau=du folgst, grün=vernetzt, rot=blockiert */
.pf-av[class*="rel-"] .avatar.xl { box-shadow: 0 0 0 4px var(--card); }
.pf-av.rel-neutral   { box-shadow: 0 0 0 4px var(--bg), 0 0 0 8px #eab308; }
.pf-av.rel-following { box-shadow: 0 0 0 4px var(--bg), 0 0 0 8px #3b82f6; }
.pf-av.rel-connected { box-shadow: 0 0 0 4px var(--bg), 0 0 0 8px #22c55e; }
.pf-av.rel-blocked   { box-shadow: 0 0 0 4px var(--bg), 0 0 0 8px #ef4444; }
.online-dot { position: absolute; right: 6px; bottom: 6px; width: 20px; height: 20px; border-radius: 50%; background: var(--ok); border: 3px solid var(--card); }
.pf-body h1 { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.pf-bio { color: #c8cde6; }
.pf-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%; }
.pf-stats > div { background: var(--bg2); border-radius: 12px; padding: 10px; }
.pf-stats b { display: block; font-size: 1.2rem; }
.pf-stats span { font-size: .75rem; color: var(--muted); }
.pf-stats .medals { display: flex; justify-content: center; gap: 10px; align-items: center; grid-column: 1 / -1; }
.pf-stats .medals span { display: inline-flex; align-items: center; gap: 4px; font-size: 1rem; color: var(--ink); font-weight: 700; }
.award-list { list-style: none; margin: 0; padding: 6px 0; }
.award-list li { display: flex; gap: 12px; align-items: center; padding: 8px 18px; }

/* ---------- Profil: Abzeichen, Geschenke, Gästebuch ---------- */
.badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; }
.badge { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 5px; padding: 14px 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg2); }
.badge.locked { opacity: .5; }
.badge-ic { font-size: 1.9rem; line-height: 1; }
.badge b { font-size: .85rem; }
.gifts { display: flex; flex-wrap: wrap; gap: 12px; }
.gift { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 92px; text-align: center; padding: 12px 8px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg2); }
.gift.expired { opacity: .5; }
.gift-ic { display: grid; place-items: center; height: 48px; }
.gift-ic img { max-width: 48px; max-height: 48px; object-fit: contain; }
.gift .exp { font-size: .68rem; color: var(--muted); }
.gb-form { display: flex; gap: 10px; align-items: flex-end; margin-bottom: 16px; }
.gb-form textarea { flex: 1; }
.gb-form .btn { flex: none; }
.gb-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.gb-list li { display: flex; gap: 12px; }
.gb-body { flex: 1; min-width: 0; }
.gb-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 2px; }
@media (max-width: 560px) { .gb-form { flex-direction: column; align-items: stretch; } }
/* ---------- Geschenk-Auswahl ---------- */
.gift-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; margin: 6px 0 4px; }
.gp-item { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 8px 10px; border: 2px solid var(--line); border-radius: 14px; background: var(--bg2); cursor: pointer; transition: border-color .12s, transform .12s, box-shadow .12s; text-align: center; }
.gp-item:hover { transform: translateY(-2px); border-color: var(--accent); }
.gp-item input { position: absolute; opacity: 0; pointer-events: none; }
.gp-item.sel { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(124, 140, 255, .25); }
.gp-item img { width: 52px; height: 52px; object-fit: contain; }
.gp-name { font-size: .78rem; color: var(--ink); line-height: 1.15; }
.gp-price { font-weight: 800; color: var(--gold); font-variant-numeric: tabular-nums; }
.gp-price::after { content: ' T'; font-weight: 600; color: var(--muted); }
.gp-days { font-size: .68rem; color: var(--muted); }
.gp-item.locked { opacity: .45; cursor: not-allowed; }
.gp-item.locked:hover { transform: none; border-color: var(--line); }
.gp-item.locked::after { content: '🔒'; position: absolute; top: 6px; right: 8px; font-size: .8rem; }

/* ---------- Benutzer-Sammelaktionen / Wartung ---------- */
.bulkbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 18px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .02); }
.bulkbar select, .bulkbar input { min-height: 34px; }
.bulkbar .bulk-amt { width: 100px; }
.bulkbar .bulk-note { width: 160px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
.kpi-head { display: flex; align-items: center; justify-content: flex-end; margin: 0 0 10px; }
.tf-toggle { display: inline-flex; align-items: center; gap: 6px; }
.tf-btn { padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); font-weight: 700; font-size: .85rem; text-decoration: none; }
.tf-btn:hover { color: var(--ink); border-color: var(--accent); }
.tf-btn.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.hint { display: inline-grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; background: var(--line); color: var(--ink); font-size: .72rem; font-weight: 800; cursor: help; vertical-align: middle; }
.hint:hover, .hint:focus { background: var(--accent); color: var(--accent-ink); outline: none; }
.chg { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: rgba(255, 207, 63, .16); color: var(--gold, #ffcf3f); font-size: .7rem; font-weight: 700; vertical-align: middle; }
.bulkbar .bulk-count { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.bulk-sep { flex: 1; }
.tbl th.c, .tbl td.c { width: 34px; text-align: center; padding-left: 8px; padding-right: 0; }
.tbl td.drag { width: 26px; cursor: grab; color: var(--muted); font-size: 1.1rem; text-align: center; user-select: none; }
.tbl td.drag:active { cursor: grabbing; }
.tbl tr.dragging { opacity: .5; background: rgba(255, 207, 63, .08); }
.ret-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.seo-box { border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px 16px; margin: 4px 0 2px; display: grid; gap: 12px; }
.seo-box legend { padding: 0 8px; font-weight: 700; font-size: .95rem; color: var(--accent); }

.av-row { display: flex; gap: 20px; align-items: flex-start; flex-wrap: wrap; }
.av-cur { display: flex; flex-direction: column; gap: 8px; }

/* ---------- Bild-Cropper ---------- */
.cropper { width: 100%; max-width: 460px; }
.cr-stage { position: relative; width: 100%; border: 2px dashed var(--line); border-radius: 12px; overflow: hidden; background: #0b0e1a; cursor: default; }
.cropper.has-img .cr-stage { border-style: solid; cursor: grab; }
.cropper.has-img .cr-stage:active { cursor: grabbing; }
.cropper.drag .cr-stage { border-color: var(--accent); background: rgba(124, 140, 255, .08); }
.cr-canvas { display: block; width: 100%; touch-action: none; }
.cr-hint { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: var(--muted); font-size: .85rem; line-height: 1.5; padding: 14px; pointer-events: none; }
.cropper.has-img .cr-hint { display: none; }
.cr-tools { display: flex; align-items: center; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.cr-tools .cr-zoom { flex: 1; min-width: 90px; accent-color: var(--accent); }
.cr-pick { cursor: pointer; }
.notifs { list-style: none; margin: 0; padding: 0; }
.notifs li { display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; border-bottom: 1px solid var(--line); border-left: 3px solid transparent; }
.notif-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; text-align: left; }
.notif-body b { line-height: 1.3; }
.notif-meta { color: var(--muted); font-size: .8rem; }
.notifs li p { margin: 4px 0 2px; color: var(--ink); }
.notifs li.unread { background: rgba(255, 176, 32, .05); }
.notifs form { margin: 0; flex: none; }
/* Rand-Badge + Icon je Kategorie */
.notifs li.cat-community { border-left-color: var(--info); }
.notifs li.cat-taler { border-left-color: var(--gold); }
.notifs li.cat-wettkampf { border-left-color: var(--accent2); }
.notifs li.cat-system { border-left-color: var(--muted); }
.cat-community .notif-ic { color: var(--info); }
.cat-taler .notif-ic { color: var(--gold); }
.cat-wettkampf .notif-ic { color: var(--accent2); }
.cat-system .notif-ic { color: var(--muted); }
/* Jackpots als Schatzkisten-Raster */
.jackpot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.jchest { display: flex; flex-direction: column; align-items: center; gap: 2px; text-decoration: none; color: var(--ink); background: var(--card2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 8px; text-align: center; transition: transform .12s, border-color .12s; }
.jchest:hover { transform: translateY(-2px); border-color: var(--accent); }
.jchest-ic { font-size: 1.5rem; line-height: 1; }
.jchest-val { color: var(--gold); font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.jchest-name { font-size: .72rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
/* Kontoauszug: Kategorie-Badge + farbiger Zeilenrand */
.tx-badge { display: inline-block; font-size: .7rem; font-weight: 700; padding: 1px 8px; border-radius: 999px; margin-right: 6px; background: var(--card2); color: var(--muted); vertical-align: middle; }
.tcat-boni .tx-badge { background: rgba(255,207,63,.18); color: var(--gold); }
.tcat-duell .tx-badge { background: rgba(255,106,43,.18); color: var(--accent2); }
.tcat-jackpot .tx-badge { background: rgba(255,176,32,.18); color: var(--accent); }
.tcat-shop .tx-badge { background: rgba(90,176,255,.18); color: var(--info); }
.tcat-admin .tx-badge { background: var(--card2); color: var(--muted); }
.tx-row.tcat-boni td:first-child { box-shadow: inset 3px 0 0 var(--gold); }
.tx-row.tcat-duell td:first-child { box-shadow: inset 3px 0 0 var(--accent2); }
.tx-row.tcat-jackpot td:first-child { box-shadow: inset 3px 0 0 var(--accent); }
.tx-row.tcat-shop td:first-child { box-shadow: inset 3px 0 0 var(--info); }
.tx-row.tcat-admin td:first-child { box-shadow: inset 3px 0 0 var(--muted); }
/* Taler: Quellen-Balken + „mehr verdienen" */
.src-row { display: flex; align-items: center; gap: 10px; margin: 7px 0; }
.src-lbl { flex: 0 0 40%; font-size: .9rem; }
.src-bar { flex: 1 1 auto; height: 9px; background: var(--card2); border-radius: 999px; overflow: hidden; }
.src-bar i { display: block; height: 100%; border-radius: 999px; background: var(--accent); }
.src-bar i.tcat-boni { background: var(--gold); }
.src-bar i.tcat-duell { background: var(--accent2); }
.src-bar i.tcat-jackpot { background: var(--accent); }
.src-bar i.tcat-shop { background: var(--info); }
.src-bar i.tcat-admin { background: var(--muted); }
.src-row b { flex: none; min-width: 54px; text-align: right; font-variant-numeric: tabular-nums; }
.earn-list { list-style: none; margin: 0; padding: 0; }
.earn-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.earn-list li:last-child { border-bottom: 0; }
.notif-mini { list-style: none; margin: 0; padding: 6px 0; }
.notif-mini li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 18px; }
.notif-mini li.unread b { color: var(--accent); }
.duel-list { list-style: none; margin: 0; padding: 6px 0; }
.duel-list li { display: flex; align-items: center; gap: 10px; padding: 10px 18px; border-bottom: 1px solid var(--line); }
.duel-list li .muted { margin-left: auto; }
.danger-zone { border-color: rgba(255, 93, 108, .35); }
.auth { max-width: 460px; margin: 10px auto; }
.prose { max-width: 820px; }
.prose h2 { margin-top: 1.4em; }

/* ---------- Fußzeile ---------- */
.foot { border-top: 1px solid var(--line); margin-top: 20px; padding: 26px 0; }
.foot-in { display: grid; gap: 16px; }
.foot .logo { font-size: 1rem; }
.foot .logo-mark { width: 26px; height: 26px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.foot nav a { color: var(--muted); }

/* ---------- Spiel-Player ---------- */
body.player { padding: 0; background: var(--bg); overflow-y: auto; }
.pl { display: flex; flex-direction: column; min-height: 100dvh; background: var(--bg); }
.pl-bar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 8px; padding-top: env(safe-area-inset-top); background: #0b0e1a; border-bottom: 1px solid var(--line); flex: none; box-sizing: content-box; }
.pl-btn { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: rgba(255, 255, 255, .06); border: 0; color: var(--ink); cursor: pointer; flex: none; }
.pl-btn:hover { background: rgba(255, 255, 255, .12); text-decoration: none; }
.pl-title { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; white-space: nowrap; overflow: hidden; }
.pl-title b { overflow: hidden; text-overflow: ellipsis; }
.pl-main { width: 100%; max-width: 1040px; margin: 0 auto; padding: 10px; display: flex; flex-direction: column; gap: 10px; box-sizing: border-box; }
.pl-stagewrap { overflow-x: auto; overflow-y: hidden; display: flex; justify-content: center; }
.pl-stage { position: relative; border: 4px solid var(--line); border-radius: 16px; overflow: hidden; background: #000; box-shadow: var(--shadow); aspect-ratio: 4 / 3; width: 100%; flex: none; }
.pl-stage.zoomed { width: auto; aspect-ratio: auto; }
.pl-guest { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: linear-gradient(90deg, rgba(255,176,32,.14), rgba(124,140,255,.12)); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; font-size: .9rem; }
.pl-tut { position: absolute; inset: 0; z-index: 20; display: grid; place-items: center; padding: 16px; background: rgba(0,0,0,.8); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); overflow: auto; }
.pl-tut-box { max-width: 560px; width: 100%; max-height: 100%; overflow: auto; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; }
.pl-tut-box h2 { margin: 0 0 10px; }
.pl-tut-body { max-height: 48vh; overflow: auto; color: var(--ink); font-size: .9rem; line-height: 1.55; margin-bottom: 14px; }
.pl-tut-body h3, .pl-tut-body h4 { color: var(--accent); margin: 12px 0 4px; font-size: 1rem; }
.pl-actions { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; padding: 4px 0 24px; }
.pl-zoom { display: flex; align-items: center; gap: 6px; }
.pl-zoom .btn { min-width: 40px; }
#zoomReset { min-width: 60px; font-variant-numeric: tabular-nums; }
#game { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; background: #000; }
.pl-stage:fullscreen { border: 0; border-radius: 0; aspect-ratio: auto; width: 100%; height: 100%; }
.pl-stage:fullscreen #game { position: absolute; inset: 0; }
.pl-scores { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pl-score { background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.pl-score h3 { margin: 0; padding: 10px 14px; font-size: .9rem; display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--line); }
.pl-hs { list-style: none; margin: 0; padding: 4px 0; max-height: calc(5 * 34px); overflow-y: auto; scrollbar-width: thin; }
.pl-hs li { display: flex; align-items: center; gap: 8px; padding: 6px 14px; height: 34px; box-sizing: border-box; font-variant-numeric: tabular-nums; }
.pl-hs li:nth-child(odd) { background: rgba(255, 255, 255, .03); }
.pl-hs .pos { width: 22px; color: var(--muted); font-weight: 700; text-align: right; }
.pl-hs .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-hs .sc { font-weight: 700; color: var(--gold); }
.pl-hs .empty { color: var(--muted); justify-content: center; }
.pl-hs .me { background: rgba(255, 207, 63, .12); }
.pl-leave { display: flex; justify-content: center; padding: 2px 0 22px; }
@media (max-width: 560px) { .pl-scores { grid-template-columns: 1fr; } }
.result { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; background: rgba(0, 0, 0, .6); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.result-card { position: relative; width: min(440px, 100%); max-height: 100%; overflow: auto; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 26px 22px 20px; text-align: center; box-shadow: var(--shadow); animation: pop .25s ease-out; }
@keyframes pop { from { transform: scale(.92); opacity: 0; } }
.result-x { position: absolute; right: 10px; top: 10px; background: none; border: 0; color: var(--muted); cursor: pointer; padding: 6px; }
.result-score { font-size: 3rem; font-weight: 900; line-height: 1; color: var(--gold); font-variant-numeric: tabular-nums; margin-bottom: 4px; }
.result-score small { display: block; font-size: .9rem; color: var(--muted); font-weight: 600; margin-top: 4px; }
.result-card h2 { margin: 10px 0; }
.result .hl { font-weight: 800; font-size: 1.1rem; }
.res-stats { display: flex; justify-content: center; gap: 12px; margin: 10px 0 14px; }
.res-stats div { background: var(--bg2); border-radius: 12px; padding: 10px 16px; }
.res-stats b { display: block; font-size: 1.4rem; }
.res-stats span { font-size: .75rem; color: var(--muted); }
.res-next { margin: 8px auto 12px; max-width: 340px; padding: 9px 14px; border-radius: 12px; background: linear-gradient(90deg, rgba(255,193,7,.16), rgba(255,193,7,.06)); border: 1px solid rgba(255,193,7,.4); color: var(--fg); font-size: .95rem; }
.res-next b { color: #ffb300; }
.hl.gold { color: #ffb300; font-weight: 700; }
.finale-banner { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; padding: 12px 16px; border-radius: 14px; background: linear-gradient(90deg, rgba(255,77,79,.14), rgba(255,193,7,.12)); border: 1px solid rgba(255,120,80,.45); }
.finale-banner .finale-ic { font-size: 1.6rem; line-height: 1; }
.finale-banner div { flex: 1; font-size: .95rem; }
.finale-banner [data-countdown] { font-variant-numeric: tabular-nums; font-weight: 700; color: #ff5252; }
.finale-banner .btn { flex: none; }
.result-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 10px; }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 4px solid var(--line); border-top-color: var(--accent); margin: 10px auto; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Anleitung-Accordion ---------- */
.anleitung { padding: 0; }
.anleitung > summary { cursor: pointer; list-style: none; padding: 14px 18px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.anleitung > summary::-webkit-details-marker { display: none; }
.anleitung > summary::after { content: '▾'; margin-left: auto; color: var(--muted); transition: transform .15s; }
.anleitung[open] > summary::after { transform: rotate(180deg); }
.anleitung-body { padding: 4px 18px 18px; columns: 2; column-gap: 34px; }
.anleitung-body > :first-child { margin-top: 0; }
.anleitung-body h3, .anleitung-body h4 { break-after: avoid; -webkit-column-break-after: avoid; margin: 16px 0 6px; font-size: 1rem; color: var(--accent); }
.anleitung-body p, .anleitung-body li { break-inside: avoid; -webkit-column-break-inside: avoid; line-height: 1.55; }
.anleitung-body p { margin: 0 0 10px; }
@media (max-width: 720px) { .anleitung-body { columns: 1; } }

/* ---------- Verwaltung ---------- */
body.admin { padding-bottom: 0; }
.adm { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; max-width: 1650px; margin-inline: auto; }
.adm-side { background: var(--bg2); border-right: 1px solid var(--line); padding: 16px 14px; display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100vh; overflow-y: auto; scrollbar-width: thin; }
.adm-badge { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); border: 1px solid rgba(255, 176, 32, .4); padding: 2px 8px; border-radius: 999px; align-self: flex-start; margin: 4px 0 2px; }
.adm-search { display: flex; align-items: center; gap: 8px; width: 100%; margin: 6px 0 8px; padding: 8px 12px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); color: var(--muted); cursor: pointer; font: inherit; text-align: left; }
.adm-search span { flex: 1; }
.adm-search kbd { font-size: .68rem; background: rgba(255, 255, 255, .08); border-radius: 5px; padding: 1px 6px; }
.adm-side nav { display: flex; flex-direction: column; gap: 2px; }
.adm-navgroup { font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 13px 6px 4px; }
.adm-side nav a { display: flex; align-items: center; gap: 9px; padding: 8px 12px; color: var(--muted); border-radius: 10px; font-weight: 600; text-decoration: none; }
.adm-side nav a:hover { color: var(--ink); background: rgba(255, 255, 255, .07); }
.adm-side nav a.on { color: var(--accent-ink); background: var(--accent); }
.adm-foot { margin-top: auto; padding-top: 14px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; font-size: .9rem; }
.adm-foot a { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.adm-main { padding: 20px 22px 60px; min-width: 0; }
.adm-topbar { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 18px; }
.adm-head { flex: 1; min-width: 0; }
.adm-head h1 { margin: 0; }
.adm-sub { margin: 4px 0 0; }
.adm-head-action { flex: none; }
.adm-burger { display: none; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); color: var(--ink); cursor: pointer; flex: none; }
/* Kommando-Palette */
.cmdpal { position: fixed; inset: 0; z-index: 200; background: rgba(0, 0, 0, .5); display: grid; place-items: start center; padding-top: 12vh; }
.cmdpal[hidden] { display: none; }
.cmdpal-box { width: min(560px, 92vw); background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
.cmdpal-box input { width: 100%; box-sizing: border-box; padding: 14px 16px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--ink); font-size: 1rem; outline: none; }
.cmdpal-list { list-style: none; margin: 0; padding: 6px; max-height: 320px; overflow-y: auto; }
.cmdpal-list li { padding: 9px 12px; border-radius: 8px; cursor: pointer; }
.cmdpal-list li.sel { background: rgba(124, 140, 255, .18); }
.cmdpal-hint { padding: 8px 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: .8rem; }
@media (max-width: 860px) {
  .adm { grid-template-columns: 1fr; }
  .adm-side { position: fixed; left: 0; top: 0; z-index: 80; width: 264px; transform: translateX(-100%); transition: transform .2s ease; box-shadow: var(--shadow); }
  body.adm-open .adm-side { transform: none; }
  body.adm-open::after { content: ""; position: fixed; inset: 0; z-index: 70; background: rgba(0, 0, 0, .5); }
  .adm-burger { display: grid; }
}
.todo-list, .status-list { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.todo-list a { color: var(--ink); text-decoration: none; }
.todo-list a:hover { color: var(--accent); }
.status-list li { display: flex; align-items: center; gap: 8px; }
.status-list b { color: var(--ink); }
.acc { border: 1px solid var(--line); border-radius: 14px; margin: 0 0 18px; background: var(--bg2); overflow: hidden; }
.acc > summary { cursor: pointer; padding: 13px 16px; font-weight: 700; list-style: none; }
.acc > summary::-webkit-details-marker { display: none; }
.acc > summary::after { content: '▾'; float: right; color: var(--muted); }
.acc[open] > summary::after { content: '▴'; }
.acc > section, .acc > .grid-2 { margin: 0 12px 12px; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 160px; padding-top: 10px; }
.bar { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; }
.bar i { display: block; width: 100%; min-height: 2px; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, var(--accent), var(--accent2)); }
.bar span { font-size: .65rem; color: var(--muted); }

/* ---------- Responsiv ---------- */
@media (max-width: 599px) {
  .hide-sm { display: none; }
  .usernav .btn.ghost { display: none; }
  .usernav .btn.sm { padding: 6px 10px; }
  .topbar-in { gap: 8px; }
  .logo { font-size: 1.1rem; }
  .tbl th, .tbl td { padding: 9px 10px; }
  .hero { padding: 20px 16px; }
  .games { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .pf-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 420px) { .hide-xs { display: none; } }
@media (min-width: 600px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
  .hs-games { grid-template-columns: 1fr 1fr; }
  .foot-in { grid-template-columns: 1fr auto; align-items: center; }
}
@media (min-width: 900px) {
  body { padding-bottom: 0; }
  .tabbar { display: none; }
  .mainnav { display: flex; }
  .menu .uname { display: inline; }
  .grid-main { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; }
  .grid-2 { grid-template-columns: 1fr 1fr; align-items: start; }
  .hero { grid-template-columns: 1.6fr 1fr; align-items: center; padding: 36px; }
  .game-hero { grid-template-columns: 1.1fr 1fr; }
  .gh-img { aspect-ratio: auto; min-height: 320px; }
  .gh-body { padding: 26px; }
  .profile { grid-template-columns: auto 1fr auto; text-align: left; justify-items: start; align-items: center; }
  .pf-body h1 { justify-content: flex-start; }
  .pf-stats { width: 360px; }
  .adm-main { padding: 28px 32px 60px; }
}
@media (min-width: 1100px) { .games { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* --- Katalog „Alle Spiele": Abstände, gleiche Kartenhöhe, Grid-Umschalter, Fade --- */
/* Spiel des Tages Banner */
.gotd { display: flex; flex-direction: column; position: relative; border-radius: 16px; overflow: hidden; min-height: 300px;
  background: #16233a center / cover no-repeat; text-decoration: none !important; color: #fff; margin-bottom: 26px;
  box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.gotd::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 100% at 50% 0%, rgba(6,12,24,.15) 0%, rgba(6,12,24,.5) 55%, rgba(6,12,24,.82) 100%); }
.gotd-top { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 18px; }
.gotd-top .tag.gold { background: linear-gradient(180deg,#ffe07a,#e0a418); color: #2a1c06; font-size: .8rem; }
.gotd-play { background: linear-gradient(135deg,#ffcc33,#ff6a2b) !important; color: #1a1206 !important; border: 0 !important; font-weight: 800; box-shadow: 0 4px 14px rgba(255,120,40,.4); }
.gotd-center { position: relative; z-index: 2; margin-top: auto; padding: 18px; display: flex; justify-content: center; }
.gotd-glass { text-align: center; max-width: 640px; padding: 16px 24px; border-radius: 16px;
  background: rgba(10,16,30,.5); border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: 0 8px 24px rgba(0,0,0,.35); }
.gotd-genre { display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--gold); margin-bottom: 4px; }
.gotd-glass h2 { margin: 0; color: #fff; font-size: 1.9rem; line-height: 1.1; text-shadow: 0 2px 10px rgba(0,0,0,.6); }
.gotd-sub { margin: 8px 0 0; color: #e6e9f5; font-size: .92rem; line-height: 1.45; text-shadow: 0 1px 4px rgba(0,0,0,.5); }
.games-head { margin-top: 30px; }
.games-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* ---------- Diagramme / Statistik / Level ---------- */
.chart { width: 100%; height: auto; display: block; }
.spark { width: 120px; height: 30px; vertical-align: middle; }
.chart-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.chart-card { background: var(--bg2); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.chart-card h3 { margin: 0 0 8px; font-size: .95rem; }
.levelbar { height: 8px; border-radius: 999px; background: rgba(255,255,255,.1); overflow: hidden; margin-top: 6px; }
.levelbar > i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--gold)); }
.lvl-badge { display: inline-flex; align-items: center; gap: 4px; font-weight: 800; color: var(--gold); }
.heatmap { display: grid; grid-template-columns: auto repeat(24, 1fr); gap: 2px; font-size: .6rem; }
.heatmap .hc { aspect-ratio: 1; border-radius: 2px; background: var(--bg2); }
.heatmap .hl { color: var(--muted); display: flex; align-items: center; }
.abbruch-bar { height: 8px; border-radius: 999px; background: #22c55e; overflow: hidden; }
.abbruch-bar > i { display: block; height: 100%; background: #ef4444; }
.daily-card { display: flex; gap: 12px; align-items: flex-start; }
.daily-card .thumb { width: 72px; }
.mp-live li { display: flex; align-items: center; gap: 8px; padding: 8px 18px; }
.mp-live .on-n { margin-left: auto; font-weight: 700; color: var(--ok); }
.hs-trend { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }

/* ---------- Barrierefreiheit (#18) ---------- */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.skip-link { position: absolute; left: 8px; top: -48px; z-index: 200; background: var(--accent); color: #10131f; padding: 8px 14px; border-radius: 8px; font-weight: 700; text-decoration: none; transition: top .15s; }
.skip-link:focus { top: 8px; }
.sec-head h2 .ic, .card-head h3 .ic { margin-right: 9px; vertical-align: -3px; }
.games-filter { margin-bottom: 18px; }
.games { gap: 18px; }
.grid-sel { display: flex; gap: 5px; }
.grid-sel button { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line); background: var(--card); color: var(--muted); cursor: pointer; font-weight: 700; font-family: inherit; }
.grid-sel button.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
@media (max-width: 560px) { .grid-sel { display: none; } }
/* gleiche Höhe unabhängig vom Inhalt */
.game-body { display: flex; flex-direction: column; }
.game-body h3 { min-height: 2.5em; }
.rate-line { min-height: 1.15em; margin: 2px 0; }
.rate-line.empty { min-height: 1.15em; }
.leader { min-height: 1.2em; margin-top: auto; }
/* Fade beim Filtern */
.game { transition: transform .15s, border-color .15s, box-shadow .15s, opacity .22s; }
.game.faded { opacity: 0; transform: scale(.96); pointer-events: none; }

/* --- Dashboard (eingeloggte Startseite): Kacheln, Wertungs-Leiste, Live-Ticker --- */
.dash { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 22px; margin-bottom: 18px; }
.dash-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.dash-head h1 { margin: 0 0 4px; font-size: 1.6rem; }
.dash-head .countdown { margin: 0; display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: .9rem; }
.dash-head .countdown .ic { width: 16px; height: 16px; fill: var(--gold); }
.dash-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.tile { display: flex; flex-direction: column; gap: 3px; background: var(--bg2); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; color: var(--ink); text-decoration: none !important; transition: transform .15s, border-color .15s; }
.tile:hover { transform: translateY(-2px); border-color: var(--accent); }
.tile b { font-size: 1.55rem; line-height: 1; font-variant-numeric: tabular-nums; }
.tile b.gold { color: var(--gold); }
.tile span { font-size: .75rem; color: var(--muted); }
.tile.hot { border-color: var(--accent); box-shadow: inset 0 0 0 1px rgba(255, 176, 32, .25); }
.tile.hot b { color: var(--accent); }

.lb-strip { display: grid; gap: 12px; padding: 16px 18px; margin-bottom: 18px; }
.lb-title { display: flex; align-items: center; gap: 8px; font-weight: 800; color: var(--ink); text-decoration: none !important; }
.lb-title .ic { width: 18px; height: 18px; fill: var(--gold); }
.lb-row { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0; padding: 0; }
.lb-row li { display: flex; align-items: center; gap: 8px; min-width: 0; }
.lb-row li b { color: var(--gold); font-variant-numeric: tabular-nums; }
.lb-more { color: var(--muted); font-size: .9rem; justify-self: start; }

.ticker { display: flex; align-items: center; gap: 12px; padding: 10px 14px; margin-bottom: 18px; overflow: hidden; }
.ticker-label { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: .8rem; color: var(--accent); white-space: nowrap; flex: none; }
.ticker-label .ic { width: 15px; height: 15px; fill: currentColor; }
.ticker-view { position: relative; flex: 1; min-width: 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent); }
.ticker-track { display: inline-flex; align-items: center; gap: 30px; white-space: nowrap; will-change: transform; animation: ticker 45s linear infinite; }
.ticker-view:hover .ticker-track { animation-play-state: paused; }
.tk { display: inline-flex; align-items: center; gap: 6px; font-size: .88rem; color: #c8cde6; }
.tk-ic { display: inline-flex; }
.tk-ic .ic { width: 15px; height: 15px; fill: var(--muted); vertical-align: -2px; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.dash-sec { margin-top: 34px; }
.dash-sec:first-of-type { margin-top: 8px; }

/* Spielebewertung (Spielseite) */
.rating { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin: 4px 0 14px; }
.rating .stars { color: var(--gold); letter-spacing: 2px; font-size: 1.15rem; }
.star-rate { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
.star-rate button { background: none; border: 0; cursor: pointer; color: var(--muted); font-size: 1.4rem; line-height: 1; padding: 0 1px; transition: color .1s, transform .1s; }
.star-rate button:hover, .star-rate button.on { color: var(--gold); }
.star-rate button:hover { transform: scale(1.15); }

/* --- Spiele-Katalog: einladender Kopf-Banner --- */
.games-hero { position: relative; overflow: hidden; border-radius: 22px; margin-bottom: 22px; padding: 34px 30px;
  background: linear-gradient(120deg, #241a45 0%, #3b2570 32%, #7a3b9e 62%, #ff6a2b 128%);
  border: 1px solid var(--line); box-shadow: 0 14px 38px rgba(0, 0, 0, .38); }
.games-hero::before { content: ""; position: absolute; right: -50px; top: -70px; width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 176, 32, .5), transparent 70%); pointer-events: none; }
.games-hero::after { content: ""; position: absolute; right: 120px; bottom: -80px; width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(108, 92, 231, .45), transparent 70%); pointer-events: none; }
.games-hero-in { position: relative; z-index: 1; max-width: 760px; }
.gh-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; color: #ffe0a8; background: rgba(0, 0, 0, .28); padding: 6px 12px; border-radius: 999px; }
.gh-eyebrow .ic { width: 16px; height: 16px; fill: currentColor; }
.games-hero h1 { margin: 14px 0 8px; font-size: 2.05rem; line-height: 1.08; color: #fff; text-shadow: 0 2px 12px rgba(0, 0, 0, .45); }
.games-hero p { margin: 0 0 18px; color: #f1e8ff; max-width: 56ch; }
.games-hero-stats { display: flex; flex-wrap: wrap; gap: 10px; }
.games-hero-stats div { background: rgba(0, 0, 0, .3); border: 1px solid rgba(255, 255, 255, .12); border-radius: 14px; padding: 10px 18px; min-width: 96px; text-align: center; }
.games-hero-stats b { display: block; font-size: 1.5rem; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.games-hero-stats span { font-size: .7rem; color: #e8dcff; text-transform: uppercase; letter-spacing: .04em; }
@media (max-width: 599px) {
  .games-hero { padding: 24px 18px; }
  .games-hero h1 { font-size: 1.55rem; }
  .games-hero-stats div { min-width: 70px; padding: 8px 12px; }
  .games-hero-stats b { font-size: 1.25rem; }
}

/* Karten-Badge oben rechts (Mehrspieler „2P" o. manuell im Admin) */
.game-img .game-badge { position: absolute; right: 8px; top: 8px; z-index: 2;
  background: linear-gradient(180deg, #8a6bff, #5a3ce0); color: #fff; font-weight: 800; font-size: .72rem;
  letter-spacing: .02em; padding: 3px 9px; border-radius: 999px; box-shadow: 0 2px 8px rgba(0, 0, 0, .4); }

.sec-head-r{display:flex;align-items:center;gap:12px}

/* Favoriten-Stern auf der Spielkarte */
.fav-btn { position: absolute; left: 8px; bottom: 8px; z-index: 3; width: 34px; height: 34px;
  border: 0; border-radius: 50%; cursor: pointer; display: grid; place-items: center;
  font-size: 1.05rem; line-height: 1; color: #fff; background: rgba(0, 0, 0, .5);
  backdrop-filter: blur(2px); box-shadow: 0 2px 8px rgba(0, 0, 0, .4);
  transition: transform .12s ease, color .12s ease, background .12s ease; }
.fav-btn:hover { transform: scale(1.12); background: rgba(0, 0, 0, .65); }
.fav-btn.on { color: var(--gold, #ffcf3f); text-shadow: 0 0 8px rgba(255, 207, 63, .7); }
.fav-btn:disabled { opacity: .6; cursor: default; }

/* ---------- Wiederhergestellte Komponenten (CSS-Regression-Fix) ---------- */
.chip-n { display: inline-block; margin-left: 4px; padding: 0 6px; border-radius: 999px; background: rgba(255,255,255,.14); font-size: .72em; font-weight: 700; }
.chip.on .chip-n { background: rgba(0,0,0,.18); }
.mode-hint { margin: 8px 0 0; }
.mode-hint a { display: inline-flex; align-items: center; gap: 6px; color: var(--gold); font-weight: 600; }
.duel-box { scroll-margin-top: 80px; }
.duel-steps { margin: 0 0 14px; padding-left: 20px; display: grid; gap: 6px; }
.duel-steps li { line-height: 1.5; }
.stakes-label { margin: 6px 0 4px; }
.duel-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.duel-log { list-style: none; margin: 0; padding: 0; }
.duel-log li { display: flex; gap: 10px; align-items: flex-start; padding: 9px 18px; border-top: 1px solid var(--line); }
.duel-log li:first-child { border-top: 0; }
.dl-ic { color: var(--gold); flex: none; margin-top: 2px; }
.dl-txt { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.dl-info { color: var(--muted); font-size: .85em; }
.fame-medals { margin-left: auto; white-space: nowrap; font-weight: 700; }
.shop-sec { margin-bottom: 24px; }
.shop-sec h2 { margin: 0 0 12px; }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.shop-item { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px 14px; }
.shop-item .prev { min-height: 56px; display: grid; place-items: center; }
.shop-item h3 { margin: 0; font-size: 1rem; }
.shop-item .btn { width: 100%; }
.poll-form { display: grid; gap: 8px; margin: 8px 0; }
.poll-form > button { margin-top: 8px; }
.price { font-size: 1.5rem; font-weight: 800; color: var(--accent); margin: 6px 0; }
.poll { margin-top: 28px; }
.act-cell { display: flex; gap: 8px; align-items: center; }
.act-cell form.inline { margin: 0; }
.badge-cell { display: flex; gap: 6px; align-items: center; }
.badge-cell input { width: 92px; }
.badge-cell select { min-height: 34px; padding: 4px 6px; width: auto; }
.poll-opt { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.poll-opt:hover { border-color: var(--accent); }
.poll-res { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.poll-res li { position: relative; overflow: hidden; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; }
.poll-res li.mine { border-color: var(--accent); }
.poll-res li > span { position: relative; z-index: 1; display: flex; justify-content: space-between; gap: 10px; }
.poll-res li > i { position: absolute; left: 0; top: 0; bottom: 0; background: rgba(124,140,255,.18); z-index: 0; }
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 8px 0; }
.why-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.why-card h3 { margin: 10px 0 4px; }
.why-card p { color: #c8cde6; margin: 0; }
.why-ic { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; background: rgba(124,140,255,.15); color: var(--accent); }
.why-cta { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 18px; }
.rules-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.rules-grid h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; font-size: 1.1rem; color: var(--accent); }
.rules-grid h2 .ic { flex: none; margin: 0; }
@media (max-width: 1100px) { .rules-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .rules-grid { grid-template-columns: 1fr; } }
.news-list { display: grid; gap: 14px; }
.news-body { line-height: 1.6; color: var(--ink); }
.news-body p { margin: 0 0 8px; }
.klick-stat { margin: 10px 0; color: var(--muted); }
.klick-btn { display: inline-flex; align-items: center; gap: 10px; font-size: 1.5rem; font-weight: 800; padding: 22px 46px; border-radius: 22px; border: 0; cursor: pointer; color: #1a1206; background: linear-gradient(135deg, #ffcc33, #ff6a2b); box-shadow: 0 8px 24px rgba(255,120,40,.4); }
.klick-btn:active { transform: scale(.97); }
.klick-btn:disabled { opacity: .5; cursor: not-allowed; filter: grayscale(.4); }
.klick-msg { min-height: 1.4em; font-weight: 700; margin: 10px 0 0; }
.feed-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.feed-list li { display: flex; gap: 8px; align-items: center; padding: 7px 0; border-top: 1px solid var(--line); }
.feed-list li:first-child { border-top: 0; }
.foot-brand { display: flex; flex-direction: column; gap: 8px; }
.hero-txt { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.your-taler { font-weight: 700; color: var(--gold); }
.settings-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 14px; }
/* Avatar-Rahmen (Shop) */
.avatar.fr { box-shadow: 0 0 0 3px var(--card), 0 0 0 5px var(--frc, var(--accent)); }
.avatar.fr-rainbow { box-shadow: 0 0 0 3px var(--card), 0 0 0 5px #ff5f6d; animation: frbow 6s linear infinite; }
@keyframes frbow { 0%{box-shadow:0 0 0 3px var(--card),0 0 0 5px #ff5f6d} 25%{box-shadow:0 0 0 3px var(--card),0 0 0 5px #ffc371} 50%{box-shadow:0 0 0 3px var(--card),0 0 0 5px #47e891} 75%{box-shadow:0 0 0 3px var(--card),0 0 0 5px #5b8cff} 100%{box-shadow:0 0 0 3px var(--card),0 0 0 5px #c86bff} }
.uc-rainbow { background: linear-gradient(90deg, #ff5f6d, #ffc371, #47e891, #5b8cff, #c86bff); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 800; }
