:root {
  --bg: #14122b;
  --bg2: #1e1b3d;
  --panel: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.12);
  --text: #f3f1ff;
  --muted: #a9a4cf;
  --accent: #ff7a59;
  --r: #ef4a5a;
  --g: #22b07d;
  --b: #4a6cf7;
  --y: #f6b928;
  --cw: 84px;
  --ch: 124px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: "Avenir Next", "Segoe UI", system-ui, sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 700px at 50% 45%, #2b2660 0%, var(--bg) 70%);
  -webkit-tap-highlight-color: transparent;
}
button { font: inherit; color: inherit; cursor: pointer; }
input {
  font: inherit; color: var(--text); background: var(--panel);
  border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; width: 100%;
}
input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }

.btn {
  border: 0; border-radius: 12px; padding: 12px 18px; font-weight: 700;
  background: var(--accent); color: #23120c; transition: transform .1s, opacity .2s;
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .35; cursor: default; }
.btn.ghost { background: var(--panel); color: var(--text); border: 1px solid var(--line); }
.btn.small { padding: 7px 12px; font-size: 14px; border-radius: 10px; }

/* ---------- Lobby ---------- */
.center-screen { min-height: 100%; display: grid; place-items: center; padding: 24px; }
.panel {
  width: min(440px, 100%); background: var(--bg2); border: 1px solid var(--line);
  border-radius: 22px; padding: 28px; box-shadow: 0 20px 60px rgba(0,0,0,.4);
}
.logo { font-size: 44px; font-weight: 900; letter-spacing: -1px; margin: 0 0 4px; }
.logo span { color: var(--accent); }
.sub { color: var(--muted); margin: 0 0 22px; }
.stack { display: grid; gap: 12px; }
.row { display: flex; gap: 10px; align-items: center; }
.divider { text-align: center; color: var(--muted); font-size: 13px; margin: 8px 0; }
label.lbl { font-size: 13px; color: var(--muted); }
.code-input { text-transform: uppercase; letter-spacing: 4px; font-weight: 800; text-align: center; }

.player-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.player-list li {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  background: var(--panel); border-radius: 12px;
}
.dot { width: 9px; height: 9px; border-radius: 50%; background: #555; flex: none; }
.dot.on { background: var(--g); }
.tag { font-size: 11px; padding: 2px 7px; border-radius: 999px; background: var(--line); color: var(--muted); }
.grow { flex: 1; }
.room-code { font-size: 34px; font-weight: 900; letter-spacing: 6px; color: var(--accent); }
.x-btn { background: none; border: 0; color: var(--muted); font-size: 18px; }

/* ---------- Spieltisch ---------- */
.table { height: 100%; display: grid; grid-template-rows: auto auto 1fr auto auto auto auto; max-width: 1100px; margin: 0 auto; }
.topbar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; font-size: 14px; color: var(--muted); }
.topbar b { color: var(--text); }
.score { display: flex; gap: 10px; flex-wrap: wrap; }

.opponents { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; padding: 6px 10px; }
.opp {
  background: var(--panel); border: 2px solid transparent; border-radius: 16px; padding: 10px 14px;
  min-width: 120px; text-align: center; transition: border-color .3s, transform .3s;
}
.opp.turn { border-color: var(--accent); transform: translateY(2px); box-shadow: 0 0 24px rgba(255,122,89,.35); }
.opp .nm { font-weight: 700; font-size: 15px; }
.opp .cnt { font-size: 13px; color: var(--muted); }
.opp .mini { display: flex; justify-content: center; margin-top: 6px; height: 26px; }
.opp .mini i {
  width: 17px; height: 26px; border-radius: 4px; margin-left: -9px;
  background: linear-gradient(135deg, #3b2f8f, #1a1640); border: 1px solid rgba(255,255,255,.25);
}
.opp .mini i:first-child { margin-left: 0; }
.opp.offline { opacity: .5; }

.middle { display: grid; place-items: center; position: relative; padding: 44px 10px 10px; }
.piles { display: flex; gap: 34px; align-items: center; }
.pile-wrap { display: grid; justify-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.color-ring {
  padding: 8px; border-radius: 22px; border: 3px solid var(--line);
  transition: border-color .3s, box-shadow .3s;
}
.color-ring.r { border-color: var(--r); box-shadow: 0 0 30px var(--r); }
.color-ring.g { border-color: var(--g); box-shadow: 0 0 30px var(--g); }
.color-ring.b { border-color: var(--b); box-shadow: 0 0 30px var(--b); }
.color-ring.y { border-color: var(--y); box-shadow: 0 0 30px var(--y); }
.pending {
  position: absolute; top: 4px; left: 50%; transform: translateX(-50%);
  background: var(--r); color: white; font-weight: 900; padding: 6px 14px; border-radius: 999px;
  animation: pulse 1s infinite; white-space: nowrap;
}
@keyframes pulse { 50% { transform: translateX(-50%) scale(1.07); } }
.dir { font-size: 26px; color: var(--muted); }

.status { text-align: center; padding: 6px 12px; min-height: 30px; font-weight: 600; }
.status.mine { color: var(--accent); }
.actions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; padding: 4px 10px 8px; }

.hand-wrap { overflow-x: auto; padding: 22px 10px calc(14px + env(safe-area-inset-bottom)); }
.hand { display: flex; justify-content: center; min-width: min-content; padding: 0 10px; }
.hand .card.playable { cursor: pointer; }
.hand .card.playable:hover { transform: translateY(-12px); z-index: 2; }
.hand.myturn .card:not(.playable):not(.selected) { filter: brightness(.55) saturate(.7); }
.hand .card.selected { transform: translateY(-22px); box-shadow: 0 0 0 3px white, 0 10px 24px rgba(0,0,0,.5); }
.hand .card.drawn { animation: drawn 1.2s ease-in-out infinite; }
@keyframes drawn { 50% { box-shadow: 0 0 0 3px var(--accent), 0 0 30px var(--accent); } }
.order-badge {
  position: absolute; top: -10px; right: -8px; z-index: 3; background: white; color: #111;
  width: 22px; height: 22px; border-radius: 50%; font-size: 12px; font-weight: 900;
  display: grid; place-items: center;
}

.log {
  position: fixed; right: 12px; bottom: 12px; width: 250px; max-height: 40vh; overflow: auto;
  background: rgba(0,0,0,.3); border: 1px solid var(--line); border-radius: 14px;
  padding: 10px 12px; font-size: 12.5px; color: var(--muted); display: none;
}
.log div { padding: 3px 0; border-bottom: 1px solid rgba(255,255,255,.05); }
.log div:last-child { color: var(--text); }
@media (min-width: 1300px) { .log { display: block; } }

/* ---------- Karten ---------- */
.card {
  position: relative; width: var(--cw); height: var(--ch); border-radius: 13px; flex: none;
  color: white; user-select: none; transition: transform .18s, filter .2s, box-shadow .2s;
  box-shadow: 0 4px 12px rgba(0,0,0,.45);
  border: 3px solid rgba(255,255,255,.92);
}
.card.r { background: linear-gradient(155deg, #ff7480, var(--r) 55%, #b92838); }
.card.g { background: linear-gradient(155deg, #4fd8a3, var(--g) 55%, #127453); }
.card.b { background: linear-gradient(155deg, #7d95ff, var(--b) 55%, #2a3fb5); }
.card.y { background: linear-gradient(155deg, #ffd66b, var(--y) 55%, #c98a00); color: #3a2600; }
.card.w { background: linear-gradient(155deg, #3a3560, #17142f); }
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: 10px;
  background: repeating-linear-gradient(-45deg, rgba(255,255,255,.07) 0 6px, transparent 6px 14px);
}
.card .mid {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 2.5em; font-weight: 900; text-shadow: 0 3px 0 rgba(0,0,0,.2);
}
.card.y .mid { text-shadow: 0 3px 0 rgba(255,255,255,.3); }
.wheel {
  width: 1.15em; height: 1.15em; border-radius: 50%; font-size: inherit;
  background: conic-gradient(var(--r) 0 25%, var(--y) 0 50%, var(--g) 0 75%, var(--b) 0);
  display: grid; place-items: center; box-shadow: 0 0 0 3px rgba(255,255,255,.85);
}
.card.back {
  background: linear-gradient(145deg, #4b3cc4, #1b1648); cursor: pointer;
}
.card.back .mid span { color: var(--accent); }
.card.big { --cw: 96px; --ch: 140px; }
.card.pop { animation: pop .35s ease-out; }
@keyframes pop { from { transform: scale(1.3) rotate(-8deg); opacity: .3; } }
.stackfx { position: absolute; inset: 0; }
.pile-stack { position: relative; }
.pile-stack .ghost {
  position: absolute; top: 3px; left: 3px; z-index: -1; transform: rotate(6deg); opacity: .6;
}

/* ---------- Dialoge ---------- */
.modal-bg {
  position: fixed; inset: 0; background: rgba(5,4,20,.7); display: grid; place-items: center;
  z-index: 20; padding: 20px; backdrop-filter: blur(4px);
}
.modal { background: var(--bg2); border: 1px solid var(--line); border-radius: 22px; padding: 24px; width: min(420px, 100%); text-align: center; }
.modal h2 { margin: 0 0 6px; }
.modal p { color: var(--muted); margin: 0 0 18px; }
.colors { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.colors button { border: 0; height: 74px; border-radius: 16px; font-weight: 900; font-size: 18px; color: white; }
.colors .y { color: #3a2600; }
.colors .r { background: var(--r); } .colors .g { background: var(--g); }
.colors .b { background: var(--b); } .colors .y { background: var(--y); }
.swap-list { display: grid; gap: 10px; }
.swap-list button { display: flex; justify-content: space-between; }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 140%);
  background: #2a2550; border: 1px solid var(--line); padding: 12px 18px; border-radius: 14px;
  transition: transform .3s; z-index: 50; max-width: 92vw; text-align: center;
}
.toast.show { transform: translate(-50%, 0); }
.toast.err { border-color: var(--r); }

.rules { font-size: 13.5px; color: var(--muted); text-align: left; line-height: 1.5; padding-left: 18px; margin: 0; }
details summary { cursor: pointer; color: var(--muted); font-size: 14px; }

@media (max-width: 600px) {
  :root { --cw: 66px; --ch: 98px; }
  .card.big { --cw: 80px; --ch: 118px; }
  .opp { min-width: 90px; padding: 8px 10px; }
}

/* ---------- ZWILLO ---------- */
.btn.zwillo {
  background: linear-gradient(135deg, var(--y), var(--accent)); color: #2a1200; font-weight: 900;
  letter-spacing: 1px; animation: zw 0.9s ease-in-out infinite;
}
@keyframes zw { 50% { transform: scale(1.08); box-shadow: 0 0 24px var(--accent); } }
.zw-badge { background: var(--accent); color: #2a1200; font-size: 11px; padding: 2px 6px; border-radius: 999px; font-weight: 900; }

/* ---------- Accounts / Startseite ---------- */
.tabs { display: flex; gap: 6px; background: var(--panel); padding: 4px; border-radius: 12px; margin-bottom: 16px; }
.tabs button { flex: 1; border: 0; background: none; padding: 9px; border-radius: 9px; font-weight: 700; color: var(--muted); }
.tabs button.on { background: var(--bg); color: var(--text); }
.home { max-width: 1100px; margin: 0 auto; padding: 16px; }
.home-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.small-logo { font-size: 30px; margin: 0; }
.home h2 { margin: 0; font-size: 18px; }
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; align-items: start; }
.cards-grid .panel { width: auto; padding: 20px; }
.invite {
  display: flex; align-items: center; gap: 10px; background: linear-gradient(90deg, rgba(255,122,89,.25), rgba(255,122,89,.08));
  border: 1px solid var(--accent); border-radius: 14px; padding: 12px 14px; margin-bottom: 12px;
}
.friend { display: flex; align-items: center; gap: 10px; padding: 8px 10px; background: var(--panel); border-radius: 12px; }
.duel { background: var(--panel); border-radius: 14px; padding: 12px; }
.duel-score { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-weight: 700; }
.duel-score b { font-size: 28px; color: var(--accent); }
.duel-bar { height: 8px; background: rgba(74,108,247,.6); border-radius: 999px; overflow: hidden; margin: 8px 0 6px; }
.duel-bar i { display: block; height: 100%; background: var(--accent); }
.board { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; counter-reset: rank; }
.board li { display: flex; align-items: baseline; gap: 6px; padding: 8px 10px; background: var(--panel); border-radius: 10px; counter-increment: rank; }
.board li::before { content: counter(rank) "."; color: var(--muted); width: 18px; }

/* ---------- Runde 3: Feinschliff ---------- */
.hand { justify-content: center; align-items: flex-end; padding-top: 8px; }
.hand .card { position: relative; }
.hand .card.selected { z-index: 3; }
.hint { text-align: center; color: var(--muted); font-size: 13px; min-height: 18px; }
.pile-stack.can-draw .card { animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateY(-4px); box-shadow: 0 0 22px rgba(255,122,89,.5); } }

.choice { display: grid; justify-items: center; gap: 10px; padding: 4px 12px 10px; }
.choice-colors { display: grid; grid-template-columns: repeat(4, minmax(70px, 120px)); gap: 10px; }
.choice-colors button { border: 0; height: 52px; border-radius: 14px; font-weight: 900; font-size: 16px; color: white; box-shadow: 0 6px 18px rgba(0,0,0,.35); transition: transform .1s; }
.choice-colors button:hover { transform: translateY(-3px); }
.choice-colors .r { background: var(--r); } .choice-colors .g { background: var(--g); }
.choice-colors .b { background: var(--b); } .choice-colors .y { background: var(--y); color: #3a2600; }
.choice-swap { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.choice-swap .btn { display: flex; align-items: center; gap: 8px; }

.avatar {
  display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; flex: none;
  color: white; font-weight: 800; font-size: 13px; box-shadow: 0 0 0 2px rgba(255,255,255,.15); vertical-align: middle;
}
.me { display: flex; align-items: center; gap: 8px; font-size: 14px; line-height: 1.15; }
.dot.inline { display: inline-block; width: 7px; height: 7px; vertical-align: middle; }
.board li.me-row { box-shadow: inset 0 0 0 1px var(--accent); }
.board li { align-items: center; }
.duel-score { gap: 8px; }
.duel-hint { background: rgba(255,122,89,.12); border: 1px solid rgba(255,122,89,.4); padding: 8px 12px; border-radius: 12px; font-size: 14px; }
.footer-note { text-align: center; color: var(--muted); font-size: 13px; margin-top: 18px; }
.linkbtn { background: none; border: 0; color: var(--accent); padding: 0; font: inherit; text-decoration: underline; cursor: pointer; }
.topbar .linkbtn { text-decoration: none; color: var(--muted); }
.popover {
  position: absolute; top: 44px; left: 12px; z-index: 15; max-width: 420px; background: var(--bg2);
  border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; box-shadow: 0 20px 50px rgba(0,0,0,.5); display: grid; gap: 10px;
}
.table { position: relative; }
.player-list li { gap: 10px; }
.waiting { width: min(520px, 100%); }

/* Regel-Einstellungen */
.rules-box { display: grid; gap: 8px; }
.seg { display: flex; gap: 6px; background: var(--panel); padding: 4px; border-radius: 12px; }
.seg button { flex: 1; border: 0; background: none; padding: 9px 6px; border-radius: 9px; font-weight: 700; color: var(--muted); }
.seg button.on { background: var(--accent); color: #23120c; }
.seg button:disabled { cursor: default; }
.rule-list { display: grid; gap: 4px; margin-top: 8px; }
.rule-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 10px; background: var(--panel); border-radius: 10px; font-size: 14px; }
.rule-row input[type=number] { width: 64px; padding: 6px 8px; text-align: center; }
.rule-row select { font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; }
.switch { position: relative; width: 42px; height: 24px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch i { position: absolute; inset: 0; background: rgba(255,255,255,.15); border-radius: 999px; transition: background .2s; cursor: pointer; }
.switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: white; transition: transform .2s; }
.switch input:checked + i { background: var(--g); }
.switch input:checked + i::after { transform: translateX(18px); }
.switch input:disabled + i { cursor: default; opacity: .7; }

/* Betreiber-Bereich */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 16px; }
.tile { background: var(--bg2); border: 1px solid var(--line); border-radius: 16px; padding: 16px; display: grid; gap: 4px; }
.tile b { font-size: 30px; }
.tile span { color: var(--muted); font-size: 13px; }
.panel.wide { width: auto; margin-top: 16px; }
.chart-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.bars { display: flex; align-items: flex-end; gap: 2px; height: 140px; border-bottom: 1px solid var(--line); }
.bar-slot { flex: 1; height: 100%; display: flex; align-items: flex-end; position: relative; cursor: default; }
.bar-slot i { display: block; width: 100%; background: var(--accent); border-radius: 4px 4px 0 0; }
.bar-slot:hover i { filter: brightness(1.2); }
.bar-slot:hover::after {
  content: attr(data-tip); position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%);
  background: #0c0a1f; border: 1px solid var(--line); padding: 4px 8px; border-radius: 8px; font-size: 12px; white-space: nowrap; z-index: 5;
}
.axis { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: 6px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; color: var(--muted); font-weight: 600; padding: 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 8px; border-bottom: 1px solid rgba(255,255,255,.05); }

@media (max-width: 600px) {
  .choice-colors { grid-template-columns: repeat(2, minmax(110px, 1fr)); }
  .home-head .me span:not(.avatar) { display: none; }
}
.hand.two-rows { flex-wrap: wrap; row-gap: 10px; }
.hand .row-break { flex-basis: 100%; height: 0; }
.small-link { font-size: 14px; justify-self: center; }
.forgot-info { margin: 0; font-size: 14px; text-align: center; }
.reset-box { display: flex; align-items: center; gap: 12px; background: rgba(34,176,125,.12); border: 1px solid var(--g); border-radius: 14px; padding: 14px 16px; margin-top: 16px; }
.reset-box code { font-size: 18px; font-weight: 800; background: var(--bg); padding: 3px 8px; border-radius: 8px; margin-left: 4px; user-select: all; }
.nowrap { white-space: nowrap; }

/* ---------- Runde 4: Splash, Startseite, Profilbilder, Betreiber ---------- */
textarea {
  font: inherit; color: var(--text); background: var(--panel); border: 1px solid var(--line);
  border-radius: 12px; padding: 12px 14px; width: 100%; resize: vertical;
}
textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
a { color: var(--accent); }

/* Splash */
.splash {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; align-content: center; gap: 18px;
  background: radial-gradient(900px 600px at 50% 45%, #3a2f86 0%, var(--bg) 70%); transition: opacity .6s;
}
.splash.out { opacity: 0; pointer-events: none; }
.splash-cards { position: relative; width: 220px; height: 140px; }
.splash-cards .card { position: absolute; left: 70px; top: 10px; animation: deal .9s cubic-bezier(.2,.9,.3,1.2) both; }
.splash-cards .s0 { --r: -24deg; --x: -70px; animation-delay: .05s; }
.splash-cards .s1 { --r: -8deg;  --x: -24px; animation-delay: .15s; }
.splash-cards .s2 { --r: 8deg;   --x: 24px;  animation-delay: .25s; }
.splash-cards .s3 { --r: 24deg;  --x: 70px;  animation-delay: .35s; }
@keyframes deal { from { transform: translate(0, 120px) rotate(0) scale(.6); opacity: 0; } to { transform: translate(var(--x), 0) rotate(var(--r)); opacity: 1; } }
.splash-logo { font-size: 64px; margin: 0; animation: logoIn .7s .45s cubic-bezier(.2,.9,.3,1.3) both; }
@keyframes logoIn { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* Startseite für Besucher */
.landing { min-height: 100%; display: grid; place-items: center; padding: 30px 18px 10px; }
.landing-inner { width: min(560px, 100%); display: grid; justify-items: center; text-align: center; gap: 14px; }
.fan { position: relative; height: 170px; width: 340px; margin-bottom: 6px; }
.fan .card { position: absolute; left: 128px; top: 20px; --cw: 84px; --ch: 124px; transform-origin: 50% 120%; animation: floaty 5s ease-in-out infinite; }
.fan .f0 { transform: rotate(-30deg) translateX(-10px); animation-delay: 0s; }
.fan .f1 { transform: rotate(-15deg); animation-delay: .3s; }
.fan .f2 { transform: rotate(0deg) translateY(-14px); animation-delay: .6s; z-index: 2; }
.fan .f3 { transform: rotate(15deg); animation-delay: .9s; }
.fan .f4 { transform: rotate(30deg) translateX(10px); animation-delay: 1.2s; }
@keyframes floaty { 50% { margin-top: -6px; } }
.hero-logo { font-size: 72px; margin: 0; line-height: 1; text-shadow: 0 6px 30px rgba(255,122,89,.35); }
.hero-sub { color: var(--muted); font-size: 17px; margin: 0 0 6px; line-height: 1.5; }
.hero-actions { display: grid; gap: 10px; width: min(380px, 100%); }
.hero-btn { font-size: 18px; padding: 16px; box-shadow: 0 10px 30px rgba(255,122,89,.35); }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%; margin-top: 14px; }
.features div { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 12px 8px; display: grid; gap: 4px; }
.features span { color: var(--muted); font-size: 12.5px; }
.legal-footer { text-align: center; color: var(--muted); font-size: 12.5px; padding: 18px 0 14px; }
.legal-footer a { color: var(--muted); }
.auth-panel { position: relative; }
.auth-panel .logo { text-align: center; margin-top: 8px; }
.auth-title { text-align: center; margin: 0 0 16px; font-size: 18px; color: var(--muted); font-weight: 600; }
.back-link { position: absolute; top: 18px; left: 20px; text-decoration: none; color: var(--muted); font-size: 14px; }

/* Banner */
.announce {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: rgba(74,108,247,.15);
  border: 1px solid rgba(74,108,247,.6); border-radius: 14px; padding: 12px 14px; margin-bottom: 12px;
}
.announce.warn { background: rgba(246,185,40,.12); border-color: rgba(246,185,40,.6); }
.announce input { width: auto; flex: 1 1 200px; padding: 8px 10px; }
.home-foot { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }

/* Profilbilder */
.avatar { overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar.emoji { font-size: 17px; }
.avatar.big { width: 56px; height: 56px; font-size: 26px; }
.avatar.big.emoji { font-size: 32px; }
.avatar-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 6px; }
.av-choice { border: 1px solid var(--line); background: var(--panel); border-radius: 12px; font-size: 24px; height: 44px; transition: transform .1s; }
.av-choice:hover { transform: scale(1.1); }
.av-choice.on { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.upload-btn { text-align: center; cursor: pointer; }

/* Betreiber */
.admin-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.admin-tabs button { border: 1px solid var(--line); background: var(--panel); color: var(--muted); padding: 9px 14px; border-radius: 999px; font-weight: 700; }
.admin-tabs button.on { background: var(--accent); color: #23120c; border-color: var(--accent); }
.ranklist { display: grid; gap: 6px; margin-bottom: 14px; }
.rank-row { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; font-size: 14px; }
.rank-bar { grid-column: 1 / -1; height: 6px; background: rgba(255,255,255,.08); border-radius: 999px; overflow: hidden; }
.rank-bar i { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.actions-cell { display: flex; flex-wrap: wrap; gap: 4px; }
tr.banned td { opacity: .55; }
.tag.red { background: rgba(239,74,90,.3); color: #ffb3bb; }
.fb { background: var(--panel); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; }
.fb p { margin: 8px 0 0; line-height: 1.5; }
.fb.done { opacity: .55; }
.watch-grid { display: grid; grid-template-columns: minmax(220px, 1fr) 2fr; gap: 16px; margin-top: 12px; }
.watch-log { max-height: 320px; overflow: auto; background: rgba(0,0,0,.25); border-radius: 12px; padding: 10px 12px; font-size: 13.5px; }
.watch-log div { padding: 3px 0; border-bottom: 1px solid rgba(255,255,255,.05); }
.turn-row { box-shadow: inset 0 0 0 1px var(--accent); }
@media (max-width: 700px) { .watch-grid { grid-template-columns: 1fr; } .features { grid-template-columns: 1fr; } .hero-logo { font-size: 58px; } }
.danger-zone summary { color: #ff9aa5; }
.btn.danger { background: var(--r); color: white; }
@media (display-mode: standalone) { body { padding-top: env(safe-area-inset-top); } }

/* =====================================================================
   KARTENDESIGNS (Shop). Aktiv über <body class="theme-…">, Vorschau über einen Container mit der Klasse.
   ===================================================================== */
.card .cap { display: none; }
.card .beads { display: none; }

/* ---------- 1) Turbo Garage ---------- */
body.theme-turbo { background: radial-gradient(900px 500px at 50% 45%, #3a3a40 0%, #17171a 75%); }
body.theme-turbo::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: -1;
  background: repeating-linear-gradient(90deg, transparent 0 calc(50% - 3px), rgba(255,255,255,.06) calc(50% - 3px) calc(50% + 3px), transparent calc(50% + 3px) 100%);
}
.theme-turbo .card { border-radius: 9px; border-color: #f2f2f2; font-style: italic; }
.theme-turbo .card::before { border-radius: 6px; background: repeating-linear-gradient(45deg, rgba(0,0,0,.22) 0 3px, rgba(255,255,255,.05) 3px 6px); }
.theme-turbo .card::after {
  content: ""; position: absolute; inset: 0; border-radius: 6px; opacity: .45;
  background: linear-gradient(90deg, transparent 38%, #fff 38% 44%, transparent 44% 56%, #fff 56% 62%, transparent 62%);
}
.theme-turbo .card .mid { z-index: 1; font-family: "Arial Black", "Avenir Next", sans-serif; transform: skewX(-8deg); text-shadow: 3px 3px 0 rgba(0,0,0,.45); }
.theme-turbo .card.r { background: linear-gradient(160deg, #ff4b4b, #b0101a 70%); }
.theme-turbo .card.y { background: linear-gradient(160deg, #ffe14d, #e0a800 70%); color: #1b1300; }
.theme-turbo .card.g { background: linear-gradient(160deg, #1fbf7a, #0b5e3d 70%); }
.theme-turbo .card.b { background: linear-gradient(160deg, #3b82ff, #12318f 70%); }
.theme-turbo .card.w { background: #151515; border-color: #f2f2f2; }
.theme-turbo .card.w::after { opacity: 1; background: conic-gradient(#111 25%, #f2f2f2 0 50%, #111 0 75%, #f2f2f2 0) 0 0 / 12px 12px; -webkit-mask: linear-gradient(#000 0 14%, transparent 14% 86%, #000 86%); mask: linear-gradient(#000 0 14%, transparent 14% 86%, #000 86%); }
.theme-turbo .card.back { background: conic-gradient(#111 25%, #eee 0 50%, #111 0 75%, #eee 0) 0 0 / 16px 16px; }
.theme-turbo .card.back::after { display: none; }
.theme-turbo .card.back .mid > div:first-child { background: #d7262e; color: #fff; padding: 3px 8px; border-radius: 6px; transform: rotate(-12deg); box-shadow: 0 3px 8px rgba(0,0,0,.5); }
.theme-turbo .card.back .mid span { color: #ffe14d; }

/* ---------- 2) Blossom ---------- */
body.theme-blossom { background: radial-gradient(900px 600px at 50% 40%, #5a3550 0%, #24161f 75%); }
.theme-blossom .card { border-color: #fff7f2; color: #5a2a45; border-radius: 16px; }
.theme-blossom .card::before {
  border-radius: 13px;
  background:
    radial-gradient(circle at 0 0, rgba(255,255,255,.75) 0 7px, transparent 8px),
    radial-gradient(circle at 100% 100%, rgba(255,255,255,.75) 0 7px, transparent 8px),
    radial-gradient(circle at 50% 50%, rgba(255,255,255,.18) 0 2px, transparent 3px) 0 0 / 14px 14px;
}
.theme-blossom .card .mid { font-family: Georgia, "Times New Roman", serif; font-style: italic; text-shadow: 0 2px 0 rgba(255,255,255,.6); z-index: 1; }
.theme-blossom .card .c { font-family: Georgia, serif; }
.theme-blossom .card.r { background: linear-gradient(160deg, #ffd1dc, #f08aa3 80%); }
.theme-blossom .card.y { background: linear-gradient(160deg, #ffe7cc, #f6b97f 80%); color: #6a3a14; }
.theme-blossom .card.g { background: linear-gradient(160deg, #dcefd6, #93bf8a 80%); color: #2f4a2a; }
.theme-blossom .card.b { background: linear-gradient(160deg, #e6e1ff, #a99be6 80%); color: #352a6a; }
.theme-blossom .card.w { background: linear-gradient(160deg, #fff3f6, #e9c9d6 80%); color: #5a2a45; }
.theme-blossom .card .cap { font-family: Georgia, serif; text-transform: none !important; font-style: italic; }
.theme-blossom .card.back { background: radial-gradient(circle at 30% 30%, #ffd1dc 0 10%, transparent 11%), radial-gradient(circle at 70% 70%, #ffd1dc 0 10%, transparent 11%), linear-gradient(160deg, #f08aa3, #a3496a); background-size: 26px 26px, 26px 26px, auto; }
.theme-blossom .card.back .mid > div:first-child { background: rgba(255,255,255,.9); color: #a3496a; padding: 3px 9px; border-radius: 999px; font-family: Georgia, serif; font-style: italic; }
.theme-blossom .card.back .mid span { color: #f08aa3; }

/* ---------- 3) Glitzer-Ära ---------- */
body.theme-glitter { background: radial-gradient(900px 600px at 50% 40%, #4b2d6b 0%, #1d1230 75%); }
body.theme-glitter::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: -1; opacity: .5;
  background: radial-gradient(circle, rgba(255,255,255,.9) 0 1px, transparent 1.5px) 0 0 / 46px 46px,
              radial-gradient(circle, rgba(255,200,240,.7) 0 1px, transparent 1.5px) 23px 23px / 46px 46px;
}
.theme-glitter .card { border-color: #fff; border-radius: 14px; overflow: hidden; }
.theme-glitter .card::before {
  border-radius: 11px;
  background: radial-gradient(circle, rgba(255,255,255,.55) 0 .8px, transparent 1.3px) 0 0 / 11px 11px,
              radial-gradient(circle, rgba(255,255,255,.35) 0 .7px, transparent 1.2px) 5px 6px / 13px 13px;
}
.theme-glitter .card::after {
  content: ""; position: absolute; inset: -50%; pointer-events: none;
  background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.55) 45%, rgba(190,230,255,.35) 50%, rgba(255,190,240,.4) 55%, transparent 65%);
  animation: shimmer 3.2s ease-in-out infinite;
}
@keyframes shimmer { 0% { transform: translateX(-40%); } 60%, 100% { transform: translateX(40%); } }
.theme-glitter .card .mid { z-index: 1; color: #fff; text-shadow: 0 0 6px rgba(255,105,180,.9), 0 2px 0 rgba(120,40,120,.4); font-family: "Avenir Next Rounded", "Avenir Next", system-ui, sans-serif; }
.theme-glitter .card.r { background: linear-gradient(160deg, #ff8cc6, #f0388f 75%); }
.theme-glitter .card.y { background: linear-gradient(160deg, #ffe58a, #f5a623 75%); }
.theme-glitter .card.g { background: linear-gradient(160deg, #8ff5cf, #18b886 75%); }
.theme-glitter .card.b { background: linear-gradient(160deg, #a9b8ff, #5468f0 75%); }
.theme-glitter .card.w { background: linear-gradient(160deg, #ffd6f2, #c7b3ff 50%, #b3f0ff); }
.theme-glitter .card .cap { color: #fff; text-shadow: 0 0 4px #ff5fae; font-family: "Avenir Next", system-ui, sans-serif; text-transform: none !important; font-style: italic; }
.theme-glitter .card.back { background: linear-gradient(160deg, #e3c8ff, #b689ff 60%, #ff9ad5); }
.theme-glitter .card.back .mid > div:first-child { display: none; }
.theme-glitter .card.back .beads { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px; width: 80%; z-index: 1; }
.theme-glitter .card.back .beads i {
  font-style: normal; font-weight: 900; font-size: calc(var(--cw) * .13); width: 1.55em; height: 1.55em; border-radius: 50%; display: grid; place-items: center;
  background: #fff; color: #9b4dff; box-shadow: inset 0 -2px 0 rgba(0,0,0,.15), 0 1px 2px rgba(0,0,0,.3);
}
.theme-glitter .card.back .beads i:nth-child(odd) { background: #ffd1ec; color: #d6338a; }

/* ---------- 4) Neon Nights ---------- */
body.theme-neon { background: linear-gradient(#0a0618 0%, #12052a 60%, #2a0640 100%); }
body.theme-neon::before {
  content: ""; position: fixed; left: -50%; right: -50%; bottom: 0; height: 45vh; pointer-events: none; z-index: -1;
  background: linear-gradient(rgba(255,0,200,.35) 1px, transparent 1px) 0 0 / 100% 28px, linear-gradient(90deg, rgba(0,240,255,.3) 1px, transparent 1px) 0 0 / 44px 100%;
  transform: perspective(300px) rotateX(55deg); transform-origin: bottom;
}
.theme-neon .card { background: #07070f !important; border-width: 2.5px; border-radius: 12px; --glow: #fff; border-color: var(--glow); color: var(--glow); box-shadow: 0 0 10px var(--glow), inset 0 0 12px rgba(255,255,255,.06); }
.theme-neon .card::before { border-radius: 9px; background: linear-gradient(transparent 49%, rgba(255,255,255,.05) 50%, transparent 51%) 0 0 / 100% 6px; }
.theme-neon .card .mid { color: var(--glow); text-shadow: 0 0 6px var(--glow), 0 0 16px var(--glow); font-family: "Menlo", "Courier New", monospace; z-index: 1; }
.theme-neon .card .c { text-shadow: 0 0 5px var(--glow); font-family: Menlo, monospace; }
.theme-neon .card.r { --glow: #ff3d6e; }
.theme-neon .card.y { --glow: #ffe83d; }
.theme-neon .card.g { --glow: #3dffb0; }
.theme-neon .card.b { --glow: #3dd8ff; }
.theme-neon .card.w { --glow: #e03dff; }
.theme-neon .card .cap { color: var(--glow); text-shadow: 0 0 4px var(--glow); font-family: Menlo, monospace; }
.theme-neon .card.back { --glow: #ff3dd5; background: linear-gradient(#0a0618, #2a0640) !important; }
.theme-neon .card.back::before { background: linear-gradient(rgba(255,61,213,.5) 1px, transparent 1px) 0 0 / 100% 12px, linear-gradient(90deg, rgba(61,216,255,.45) 1px, transparent 1px) 0 0 / 12px 100%; opacity: .6; }
.theme-neon .card.back .mid span { color: #3dd8ff; }
.theme-neon .card.selected { box-shadow: 0 0 0 3px #fff, 0 0 26px var(--glow); }

/* ---------- 5) Royal Gold ---------- */
body.theme-royal { background: radial-gradient(900px 600px at 50% 40%, #2b2414 0%, #0d0b08 75%); }
.theme-royal .card { border: 3px solid #d4af37; border-radius: 10px; color: #f3d77a; box-shadow: 0 4px 14px rgba(0,0,0,.6), inset 0 0 0 3px rgba(0,0,0,.5), inset 0 0 0 4px rgba(212,175,55,.6); }
.theme-royal .card::before {
  border-radius: 7px;
  background: linear-gradient(135deg, transparent 46%, rgba(212,175,55,.35) 47% 53%, transparent 54%) 0 0 / 18px 18px,
              linear-gradient(45deg, transparent 46%, rgba(212,175,55,.25) 47% 53%, transparent 54%) 0 0 / 18px 18px;
  opacity: .35;
}
.theme-royal .card .mid { font-family: "Didot", "Bodoni 72", Georgia, serif; color: #f6dd8a; text-shadow: 0 2px 0 #6b4f12, 0 0 12px rgba(212,175,55,.45); z-index: 1; }
.theme-royal .card .c { font-family: Didot, Georgia, serif; color: #f6dd8a; }
.theme-royal .card.r { background: radial-gradient(circle at 50% 35%, #a3123d, #4a0618 80%); }
.theme-royal .card.y { background: radial-gradient(circle at 50% 35%, #b07a10, #4d3205 80%); }
.theme-royal .card.g { background: radial-gradient(circle at 50% 35%, #12784b, #05301d 80%); }
.theme-royal .card.b { background: radial-gradient(circle at 50% 35%, #1b3f9c, #08163f 80%); }
.theme-royal .card.w { background: radial-gradient(circle at 50% 35%, #2a2a2a, #0b0b0b 80%); }
.theme-royal .card .cap { color: #f6dd8a; font-family: Didot, Georgia, serif; letter-spacing: 1px; }
.theme-royal .card.back { background: radial-gradient(circle at 50% 50%, #1a1a1a, #050505); }
.theme-royal .card.back .mid > div:first-child { font-family: Didot, Georgia, serif; font-size: 0; }
.theme-royal .card.back .mid > div:first-child::after { content: "Z"; font-size: calc(var(--cw) * .52); color: #d4af37; text-shadow: 0 0 10px rgba(212,175,55,.6); border: 2px solid #d4af37; border-radius: 50%; width: 1.2em; height: 1.2em; display: grid; place-items: center; }

/* Wunschfarben-Rad in allen Designs gut sichtbar halten */
[class*="theme-"] .card .wheel { position: relative; z-index: 1; }

/* ---------- Shop ---------- */
.plus-banner {
  display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: 18px; margin-bottom: 12px;
  background: linear-gradient(120deg, rgba(255,122,89,.25), rgba(246,185,40,.18)); border: 1px solid rgba(255,180,90,.6);
}
.plus-banner b { font-size: 20px; display: block; }
.plus-banner span { color: var(--muted); }
.plus-banner.owned { display: grid; }
.theme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; margin-top: 8px; }
.theme-card { background: var(--bg2); border: 1px solid var(--line); border-radius: 18px; padding: 14px; display: grid; gap: 12px; }
.theme-card.active { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.theme-info { display: grid; gap: 4px; }
.theme-info b { font-size: 17px; }
.preview { display: flex; justify-content: center; gap: 6px; padding: 18px 8px; border-radius: 14px; background: #14122b; --cw: 58px; --ch: 86px; }
.preview .card { border-width: 2px; }
.preview.theme-turbo { background: radial-gradient(circle at 50% 40%, #3a3a40, #17171a); }
.preview.theme-blossom { background: radial-gradient(circle at 50% 40%, #5a3550, #24161f); }
.preview.theme-glitter { background: radial-gradient(circle at 50% 40%, #4b2d6b, #1d1230); }
.preview.theme-neon { background: linear-gradient(#0a0618, #2a0640); }
.preview.theme-royal { background: radial-gradient(circle at 50% 40%, #2b2414, #0d0b08); }
.on-tag { background: var(--accent); color: #23120c; padding: 8px 14px; font-size: 14px; font-weight: 800; }
.consent { display: grid; gap: 10px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px; font-size: 13.5px; line-height: 1.45; }
.consent label { display: flex; gap: 8px; align-items: flex-start; }
.consent input { width: auto; margin-top: 3px; }
.row.wrap { flex-wrap: wrap; }
a.btn { text-decoration: none; display: inline-block; }
.tip h2 { margin-top: 0; }

/* ---------- Duell-Bilanz (du blau, Gegner rot) ---------- */
.duel-score { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.duel-side { display: grid; justify-items: center; gap: 4px; font-weight: 700; font-size: 14px; }
.duel-num { display: flex; align-items: center; gap: 8px; font-size: 34px; font-weight: 900; }
.duel-num .blue { color: #6f8cff; }
.duel-num .red { color: #ff6b7a; }
.duel-num span { color: var(--muted); font-size: 26px; }
.duel-bar { background: var(--r) !important; height: 10px !important; }
.duel-bar i { background: var(--b) !important; }
.duel-lead { text-align: center; font-weight: 700; margin-top: 2px; }
.duel-meta { text-align: center; }

/* ---------- Gast-Upgrade ---------- */
.upgrade-hint { display: flex; gap: 10px; align-items: center; background: rgba(255,122,89,.12); border: 1px solid rgba(255,122,89,.5); border-radius: 12px; padding: 10px 12px; font-size: 14px; }
.theme-grid { align-items: start; }
.theme-card { align-content: start; }
.pile-stack.shuffle .card { animation: shuffle .7s ease-in-out 2; }
@keyframes shuffle { 25% { transform: translateX(-10px) rotate(-6deg); } 75% { transform: translateX(10px) rotate(6deg); } }

/* =====================================================================
   KARTEN-GEOMETRIE v2: alles skaliert mit der Kartenbreite (--cw),
   feste Zonen für Ecke, Mitte, Spruch → keine Überlappungen mehr.
   ===================================================================== */
.card { font-size: calc(var(--cw) * .19); }
.card .c { position: absolute; z-index: 2; font-weight: 900; font-size: .9em; line-height: 1; white-space: nowrap; }
.card .tl { top: .38em; left: .42em; }
.card .br { bottom: .38em; right: .42em; transform: rotate(180deg); }
.card .mid small { font-size: .62em; }
.card .wheel b { font-size: .38em; color: white; text-shadow: 0 1px 3px rgba(0,0,0,.8); line-height: 1; }
.card .star { position: absolute; z-index: 2; top: .42em; right: .5em; font-size: .62em; line-height: 1; opacity: .85; }
.card.back .mid { font-size: 1.06em; white-space: nowrap; letter-spacing: -0.5px; color: rgba(255,255,255,.9); }
.card.big .mid { font-size: 2.75em; }
.card.big.back .mid { font-size: 1.06em; }

/* Karten mit Spruch: Mitte rückt nach oben, Spruch bekommt eine eigene Zone über der unteren Ecke */
.card .cap { display: none; }
.card.has-cap .mid { inset: calc(var(--cw) * .2) 2px calc(var(--cw) * .46); }
.card.has-cap .mid { font-size: 2.2em; }
.card.big.has-cap .mid { font-size: 2.45em; }
.card.has-cap .cap {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
  position: absolute; z-index: 2; left: calc(var(--cw) * .07); right: calc(var(--cw) * .07); bottom: calc(var(--cw) * .27); text-align: center;
  font-size: calc(var(--cw) * .092); font-weight: 800; letter-spacing: 0; line-height: 1.12; text-transform: uppercase;
  text-wrap: balance; hyphens: manual; font-style: normal;
}
.theme-blossom .card .cap, .theme-glitter .card .cap { text-transform: none; font-size: calc(var(--cw) * .105); font-style: italic; }
.theme-royal .card .cap { letter-spacing: .3px; }

/* In der Hand: verdeckte Karten zeigen nur ihre Ecke, Sprüche erst wenn die Karte frei liegt */
.hand.tight .card:not(.row-end):not(:hover):not(.selected) .cap { visibility: hidden; }

@media (max-width: 600px) {
  .card.has-cap .mid { font-size: 2.1em; }
}

/* ---------- Spieltisch v2: passt immer auf den Bildschirm ---------- */
.table { height: 100vh; height: 100dvh; grid-template-rows: auto auto minmax(0, 1fr) auto auto auto auto; overflow: hidden; }
.show-sm { display: none; }
.opp { min-width: 0; max-width: 220px; }
.opp .nm { display: flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; min-width: 0; }
.opp .nm-text { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.opp .nm .avatar { flex: none; }
.middle { min-height: 0; }
.status { line-height: 1.35; }
.hand-wrap { overflow-y: hidden; }
@media (max-width: 600px) {
  .hide-sm { display: none; }
  .show-sm { display: inline; }
  .topbar { padding: 8px 10px; gap: 10px; }
  .opponents { flex-wrap: nowrap; overflow-x: auto; justify-content: safe center; gap: 8px; padding: 4px 8px; scrollbar-width: none; }
  .opp { flex: 1 1 0; min-width: 84px; max-width: 160px; padding: 6px 8px; border-radius: 13px; }
  .opp .nm { font-size: 13.5px; gap: 5px; }
  .opp .nm .avatar { width: 22px; height: 22px; font-size: 13px; }
  .opp .cnt { font-size: 12px; }
  .opp .mini { height: 18px; margin-top: 4px; }
  .opp .mini i { width: 12px; height: 18px; margin-left: -7px; border-radius: 3px; }
  .middle { padding: 34px 8px 4px; }
  .piles { gap: 24px; }
  .pending { top: 2px; padding: 4px 12px; font-size: 14px; }
  .status { font-size: 14px; padding: 4px 12px; min-height: 0; }
  .actions { padding: 2px 10px 4px; }
  .hint { font-size: 12px; min-height: 0; }
  .hand-wrap { padding-top: 16px; }
}
@media (max-height: 700px) {
  .middle { padding-top: 32px; }
  .card.big { --cw: 76px; --ch: 112px; }
  .opp .mini { display: none; }
}
.opp { position: relative; }
.opp .zw-badge { position: absolute; top: -9px; right: -6px; box-shadow: 0 2px 8px rgba(0,0,0,.4); z-index: 2; }
.opponents { padding-top: 10px; }

/* ---------- 6) Weltenbummler (Reise) ---------- */
body.theme-travel { background: radial-gradient(900px 600px at 50% 40%, #2c5266 0%, #11222c 75%); }
body.theme-travel::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: -1; opacity: .08;
  background: repeating-radial-gradient(circle at 20% 30%, #fff 0 1px, transparent 1px 22px);
}
.theme-travel .card { border: 4px dotted #f6ecd6; border-radius: 3px; color: var(--tc, #23303a);
  background: #f6ecd6 !important; background-clip: padding-box !important; box-shadow: none; filter: drop-shadow(0 4px 6px rgba(0,0,0,.4)); }
.theme-travel .card::before { inset: 2px; border-radius: 2px; border: 2px solid var(--tc); opacity: 1;
  background: radial-gradient(circle at 78% 22%, transparent 13px, rgba(0,0,0,.12) 14px 15px, transparent 16px 19px, rgba(0,0,0,.1) 20px 21px, transparent 22px); }
.theme-travel .card.r { --tc: #c8453b; } .theme-travel .card.y { --tc: #c98a12; }
.theme-travel .card.g { --tc: #2d7d5a; } .theme-travel .card.b { --tc: #24588f; } .theme-travel .card.w { --tc: #5a3f2b; }
.theme-travel .card .mid { color: var(--tc); font-family: "Futura", "Avenir Next Condensed", "Avenir Next", sans-serif; text-shadow: 2px 2px 0 rgba(0,0,0,.12); z-index: 1; }
.theme-travel .card .c, .theme-travel .card .star { color: var(--tc); }
.theme-travel .card .cap { color: var(--tc); font-family: "Futura", "Avenir Next", sans-serif; letter-spacing: .5px; }
.theme-travel .card.back { --tc: #24588f; background: #f6ecd6 !important; }
.theme-travel .card.back::before { border: 0; inset: 6px; background: repeating-linear-gradient(-45deg, #c8453b 0 7px, #f6ecd6 7px 12px, #24588f 12px 19px, #f6ecd6 19px 24px); }
.theme-travel .card.back .mid > div:first-child { background: #f6ecd6; color: #24588f; padding: .25em .5em; border-radius: 3px; font-family: "Futura", "Avenir Next", sans-serif; box-shadow: 0 0 0 2px #24588f; }
.theme-travel .card.back .mid span { color: #c8453b; }

/* ---------- 7) Safari (Tiere) ---------- */
body.theme-safari { background: radial-gradient(900px 600px at 50% 40%, #4a4426 0%, #1b1a0f 75%); }
.theme-safari .card { border-color: #f3e6c4; border-radius: 14px; color: #fff8e6; }
.theme-safari .card::before { border-radius: 11px; opacity: .55;
  background:
    radial-gradient(ellipse 5px 4px at 30% 30%, rgba(40,25,10,.55) 60%, transparent 70%) 0 0 / 22px 20px,
    radial-gradient(ellipse 4px 5px at 70% 75%, rgba(40,25,10,.5) 60%, transparent 70%) 0 0 / 22px 20px,
    radial-gradient(ellipse 3px 3px at 15% 80%, rgba(40,25,10,.45) 60%, transparent 70%) 6px 4px / 17px 19px; }
.theme-safari .card.r { background: linear-gradient(160deg, #e0763a, #a8401b 80%); }
.theme-safari .card.y { background: linear-gradient(160deg, #f0c25a, #c38b1f 80%); color: #3a2604; }
.theme-safari .card.g { background: linear-gradient(160deg, #8bab4a, #4f6b22 80%); }
.theme-safari .card.b { background: linear-gradient(160deg, #4f9db0, #255d6e 80%); }
.theme-safari .card.w { background: linear-gradient(160deg, #6b5a3c, #2e2616 80%); }
.theme-safari .card .mid { font-family: "Rockwell", "Georgia", serif; text-shadow: 0 3px 0 rgba(40,25,10,.35); z-index: 1; }
.theme-safari .card .cap { font-family: "Rockwell", Georgia, serif; letter-spacing: .3px; }
.theme-safari .card.back { background: repeating-linear-gradient(115deg, #111 0 9px, #f4efe2 9px 17px, #111 17px 21px, #f4efe2 21px 30px); }
.theme-safari .card.back::before { display: none; }
.theme-safari .card.back .mid > div:first-child { background: #c38b1f; color: #fff8e6; padding: .2em .55em; border-radius: 999px; font-family: Rockwell, Georgia, serif; box-shadow: 0 3px 8px rgba(0,0,0,.5); }
.theme-safari .card.back .mid span { color: #2e2616; }

/* ---------- 8) Casino Night (klassisches Spielkarten-Layout) ---------- */
body.theme-casino { background: radial-gradient(900px 600px at 50% 45%, #1f7a4a 0%, #0c3a22 70%, #072414 100%); }
.theme-casino .card { background: #fbfaf6 !important; border: 1px solid #d8d4c8; border-radius: 10px; color: var(--sc, #222);
  box-shadow: 0 4px 12px rgba(0,0,0,.45); }
.theme-casino .card::before { inset: 4px; border-radius: 6px; background: none; border: 1px solid rgba(0,0,0,.08); }
.theme-casino .card.r { --sc: #c8102e; --suit: "♥"; } .theme-casino .card.y { --sc: #d46a00; --suit: "♦"; }
.theme-casino .card.g { --sc: #11603a; --suit: "♣"; } .theme-casino .card.b { --sc: #1b1f3b; --suit: "♠"; }
.theme-casino .card.w { --sc: #6b1d8f; --suit: "★"; }
.theme-casino .card .c { color: var(--sc); font-family: Georgia, "Times New Roman", serif; text-align: center; }
.theme-casino .card .c::after { content: var(--suit); display: block; font-size: .85em; margin-top: .1em; }
.theme-casino .card .star { display: none; }
.theme-casino .card .mid { color: var(--sc); font-family: Georgia, "Times New Roman", serif; text-shadow: none; z-index: 1; }
.theme-casino .card.k-num .mid::after { content: var(--suit); position: absolute; font-size: .32em; opacity: .9; transform: translateY(1.35em); }
.theme-casino .card .cap { color: var(--sc); font-family: Georgia, serif; letter-spacing: 1px; }
.theme-casino .card.back { background: #fbfaf6 !important; }
.theme-casino .card.back::before { inset: 5px; border: 0; border-radius: 5px;
  background: repeating-linear-gradient(45deg, #b3122e 0 3px, transparent 3px 8px), repeating-linear-gradient(-45deg, #b3122e 0 3px, #e8c3c9 3px 8px); }
.theme-casino .card.back .mid > div:first-child { background: #fbfaf6; color: #b3122e; padding: .2em .5em; border-radius: 4px; font-family: Georgia, serif; box-shadow: 0 0 0 2px #b3122e; }
.theme-casino .card.back .mid span { color: #1b1f3b; }

/* ---------- 9) Pixel Arcade ---------- */
body.theme-pixel { background: #0b0b1a; }
body.theme-pixel::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: -1;
  background: linear-gradient(rgba(255,255,255,.035) 50%, transparent 50%) 0 0 / 100% 4px,
              radial-gradient(circle, rgba(120,255,160,.5) 0 1px, transparent 1.5px) 0 0 / 60px 60px;
}
.theme-pixel .card { border-radius: 0; border: 0; color: #fff;
  box-shadow: 0 -4px 0 0 #fff, 0 4px 0 0 #fff, -4px 0 0 0 #fff, 4px 0 0 0 #fff, 6px 10px 0 0 rgba(0,0,0,.5); margin: 4px; }
.theme-pixel .card::before { border-radius: 0; background: linear-gradient(rgba(0,0,0,.18) 50%, transparent 50%) 0 0 / 100% 4px; }
.theme-pixel .card.r { background: #e43b44; } .theme-pixel .card.y { background: #feae34; color: #262b44; }
.theme-pixel .card.g { background: #3e8948; } .theme-pixel .card.b { background: #0099db; } .theme-pixel .card.w { background: #262b44; }
.theme-pixel .card .mid, .theme-pixel .card .c, .theme-pixel .card .cap { font-family: "Courier New", Menlo, monospace; font-weight: 900; -webkit-font-smoothing: none; }
.theme-pixel .card .mid { text-shadow: 3px 3px 0 rgba(0,0,0,.35); z-index: 1; }
.theme-pixel .card .wheel { border-radius: 0; }
.theme-pixel .card.back { background: #262b44; }
.theme-pixel .card.back::before {
  background: radial-gradient(#63c74d 0 30%, transparent 32%) 0 0 / 10px 10px; opacity: .25; }
.theme-pixel .card.back .mid > div:first-child { background: #63c74d; color: #262b44; padding: .2em .45em; font-family: "Courier New", monospace; box-shadow: 3px 3px 0 #0b0b1a; }
.theme-pixel .card.back .mid span { color: #fff; }
.theme-pixel .card.selected { box-shadow: 0 -4px 0 0 #feae34, 0 4px 0 0 #feae34, -4px 0 0 0 #feae34, 4px 0 0 0 #feae34, 6px 10px 0 0 rgba(0,0,0,.5); }
.theme-pixel .hand .card { margin-top: 4px; margin-bottom: 4px; }

/* ---------- 10) Kosmos ---------- */
body.theme-cosmos { background: radial-gradient(800px 500px at 70% 20%, #3b1f6b 0%, transparent 60%), radial-gradient(700px 500px at 20% 80%, #123a6b 0%, transparent 60%), #05040f; }
body.theme-cosmos::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: -1;
  background: radial-gradient(circle, #fff 0 1px, transparent 1.4px) 0 0 / 70px 70px,
              radial-gradient(circle, rgba(255,255,255,.6) 0 .8px, transparent 1.2px) 35px 20px / 53px 53px;
}
.theme-cosmos .card { border-color: rgba(220,230,255,.85); border-width: 2px; border-radius: 14px; color: #fff; box-shadow: 0 0 16px var(--neb, rgba(120,140,255,.5)), 0 4px 12px rgba(0,0,0,.6); }
.theme-cosmos .card::before { border-radius: 12px;
  background: radial-gradient(circle, #fff 0 .7px, transparent 1.1px) 0 0 / 13px 13px, radial-gradient(circle, rgba(255,255,255,.7) 0 .6px, transparent 1px) 6px 8px / 17px 17px; opacity: .7; }
.theme-cosmos .card.r { --neb: rgba(255,80,120,.45); background: radial-gradient(circle at 30% 25%, #ff6b8b, #7a1240 55%, #1a0418); }
.theme-cosmos .card.y { --neb: rgba(255,200,80,.45); background: radial-gradient(circle at 30% 25%, #ffd36b, #9a5a08 55%, #1f1003); }
.theme-cosmos .card.g { --neb: rgba(80,255,190,.4); background: radial-gradient(circle at 30% 25%, #5cf0c0, #0c6b55 55%, #021a14); }
.theme-cosmos .card.b { --neb: rgba(90,150,255,.5); background: radial-gradient(circle at 30% 25%, #7aa8ff, #1d3a9a 55%, #050a24); }
.theme-cosmos .card.w { --neb: rgba(190,120,255,.5); background: radial-gradient(circle at 50% 40%, #6b3aa8, #1a0b33 60%, #05030d); }
.theme-cosmos .card .mid { z-index: 1; font-family: "Avenir Next", system-ui, sans-serif; font-weight: 300; text-shadow: 0 0 10px rgba(255,255,255,.8); }
.theme-cosmos .card .cap { letter-spacing: 1.5px; font-weight: 600; }
.theme-cosmos .card.back { background: radial-gradient(ellipse at 50% 50%, #8a5cff 0%, #2a1666 30%, #05040f 70%); }
.theme-cosmos .card.back .mid > div:first-child { position: relative; color: #fff; font-weight: 300; letter-spacing: 1px; padding: .3em .6em; border-radius: 50%; box-shadow: 0 0 0 2px rgba(255,255,255,.6); transform: rotate(-18deg) scaleY(.7); }
.theme-cosmos .card.back .mid span { color: #ffd36b; }

.preview.theme-travel { background: radial-gradient(circle at 50% 40%, #2c5266, #11222c); }
.preview.theme-safari { background: radial-gradient(circle at 50% 40%, #4a4426, #1b1a0f); }
.preview.theme-casino { background: radial-gradient(circle at 50% 45%, #1f7a4a, #0c3a22); }
.preview.theme-pixel { background: #0b0b1a; }
.preview.theme-cosmos { background: radial-gradient(circle at 70% 20%, #3b1f6b, #05040f 70%); }
.preview.theme-pixel .card { margin: 3px; box-shadow: 0 -3px 0 0 #fff, 0 3px 0 0 #fff, -3px 0 0 0 #fff, 3px 0 0 0 #fff; }
.theme-casino .card.has-cap .c.br::after, .theme-casino .card.has-cap .mid::after { display: none; }
.theme-travel .card.selected { filter: drop-shadow(0 0 0 #fff) drop-shadow(0 0 6px #fff); }
.theme-pixel .card .cap { font-family: Menlo, "Courier New", monospace; font-size: calc(var(--cw) * .1); letter-spacing: 0; -webkit-font-smoothing: auto; text-shadow: 1px 1px 0 rgba(0,0,0,.6); }
.theme-pixel .card.y .cap { text-shadow: none; }

/* =====================================================================
   SHOP v2
   ===================================================================== */
.shop-hero { position: relative; display: grid; grid-template-columns: 1.4fr 1fr; align-items: center; gap: 18px; overflow: hidden;
  padding: 26px 28px; border-radius: 22px; margin-bottom: 18px; border: 1px solid rgba(255,255,255,.1);
  background: radial-gradient(500px 260px at 85% 50%, rgba(255,122,89,.35), transparent 70%), linear-gradient(120deg, #2a2160, #1a1638); }
.shop-hero h2 { font-size: 28px; line-height: 1.15; margin: 0 0 8px; letter-spacing: -.5px; }
.shop-hero h2 span { color: var(--accent); }
.shop-hero p { color: var(--muted); margin: 0 0 14px; line-height: 1.5; max-width: 480px; }
.owned-meter { display: grid; gap: 6px; max-width: 360px; font-size: 13px; color: var(--muted); }
.owned-meter div { height: 8px; background: rgba(255,255,255,.1); border-radius: 999px; overflow: hidden; }
.owned-meter i { display: block; height: 100%; background: linear-gradient(90deg, var(--y), var(--accent)); border-radius: 999px; }
.shop-hero-fan { position: relative; height: 150px; --cw: 76px; --ch: 112px; background: none !important; }
.shop-hero-fan .card { position: absolute; left: 50%; top: 14px; margin-left: -38px; transform-origin: 50% 110%; }
.shop-hero-fan .hf0 { transform: rotate(-16deg) translateX(-30px); }
.shop-hero-fan .hf1 { transform: translateY(-6px); z-index: 1; }
.shop-hero-fan .hf2 { transform: rotate(16deg) translateX(30px); z-index: 2; }
.shop-h { font-size: 18px; margin: 18px 0 10px; }
.packs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-items: stretch; }
.pack { position: relative; display: grid; align-content: start; justify-items: center; text-align: center; gap: 4px;
  background: var(--bg2); border: 1px solid var(--line); border-radius: 20px; padding: 22px 16px 18px; transition: transform .15s, box-shadow .2s; }
.pack:hover { transform: translateY(-2px); }
.pack.featured { border-color: rgba(255,122,89,.7); box-shadow: 0 0 0 1px rgba(255,122,89,.5), 0 14px 40px rgba(255,122,89,.18);
  background: linear-gradient(180deg, rgba(255,122,89,.14), var(--bg2) 45%); }
.pack.premium { border-color: rgba(246,185,40,.7); background: linear-gradient(180deg, rgba(246,185,40,.16), var(--bg2) 45%); box-shadow: 0 0 0 1px rgba(246,185,40,.45), 0 14px 40px rgba(246,185,40,.15); }
.pack.picking { outline: 2px solid var(--accent); outline-offset: 2px; }
.pack-tag { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); background: var(--accent); color: #23120c;
  font-size: 12px; font-weight: 900; padding: 4px 12px; border-radius: 999px; white-space: nowrap; letter-spacing: .3px; }
.pack.premium .pack-tag { background: var(--y); }
.pack-icon { font-size: 34px; }
.pack h3 { margin: 2px 0 0; font-size: 19px; }
.pack-count { color: var(--muted); font-size: 14px; font-weight: 600; }
.pack-price { font-size: 34px; font-weight: 900; letter-spacing: -1px; margin-top: 6px; }
.pack-save { font-size: 13px; color: var(--muted); min-height: 18px; }
.pack-save b { color: var(--g); }
.pack p { margin: 6px 0 10px; line-height: 1.45; }
.pack .btn { width: 100%; margin-top: auto; }
.pick-bar { position: sticky; top: 8px; z-index: 12; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 14px 0 4px;
  background: rgba(30,27,61,.96); backdrop-filter: blur(8px); border: 1px solid var(--accent); border-radius: 16px; padding: 12px 14px; box-shadow: 0 14px 40px rgba(0,0,0,.45); }
.pick-dots { display: flex; gap: 6px; margin-top: 6px; }
.pick-dots i { width: 28px; height: 28px; border-radius: 9px; border: 2px dashed var(--line); display: grid; place-items: center; font-style: normal; font-size: 15px; }
.pick-dots i.on { border: 2px solid var(--accent); background: rgba(255,122,89,.15); }
.pick-pay { display: grid; gap: 8px; flex: 1 1 320px; }
.consent-line { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.consent-line input { width: auto; margin-top: 3px; flex: none; }
.shop-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chips button { border: 1px solid var(--line); background: var(--panel); color: var(--muted); padding: 6px 12px; border-radius: 999px; font-weight: 700; font-size: 13px; }
.chips button.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.theme-card { position: relative; }
.theme-card.pickable { cursor: pointer; transition: transform .12s, border-color .2s; }
.theme-card.pickable:hover { transform: translateY(-2px); border-color: rgba(255,122,89,.6); }
.theme-card.picked { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent), 0 12px 30px rgba(255,122,89,.2); }
.theme-card.dim { opacity: .45; }
.pick-check { position: absolute; top: 10px; right: 10px; z-index: 3; width: 28px; height: 28px; border-radius: 50%; border: 2px solid rgba(255,255,255,.6);
  display: grid; place-items: center; font-weight: 900; background: rgba(0,0,0,.35); }
.theme-card.picked .pick-check { background: var(--accent); border-color: var(--accent); color: #23120c; }
.new-tag { position: absolute; top: 10px; left: 10px; z-index: 3; background: var(--g); color: #04140d; font-size: 11px; font-weight: 900; padding: 3px 8px; border-radius: 999px; }
.tip-head { display: flex; gap: 14px; align-items: flex-start; }
.tip-icon { font-size: 36px; }
.tip-head h2 { margin: 0 0 4px; }
.tip-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 6px 0 10px; }
.tip-btn { display: grid; gap: 4px; justify-items: center; align-content: center; padding: 14px 10px; border-radius: 16px; border: 1px solid var(--line); background: var(--panel); transition: transform .1s, border-color .2s; }
button.tip-btn:hover { transform: translateY(-2px); border-color: var(--accent); }
.tip-btn b { font-size: 22px; }
.tip-btn span { color: var(--muted); font-size: 12.5px; }
.tip-btn.custom { gap: 6px; }
.tip-btn.custom .row { gap: 6px; }
.tip-btn.custom input { width: 80px; padding: 7px 9px; text-align: center; }
@media (max-width: 760px) {
  .shop-hero { grid-template-columns: 1fr; padding: 20px; }
  .shop-hero h2 { font-size: 23px; }
  .shop-hero-fan { height: 130px; }
  .packs { grid-template-columns: 1fr; }
  .tip-grid { grid-template-columns: 1fr 1fr; }
  .pick-bar { top: 4px; }
}

/* =====================================================================
   BETREIBER v2
   ===================================================================== */
.admin-shell { display: grid; grid-template-columns: 230px 1fr; min-height: 100vh; }
.admin-side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 4px; padding: 18px 12px;
  background: rgba(10,8,30,.55); border-right: 1px solid var(--line); }
.admin-brand { display: flex; align-items: center; gap: 8px; padding: 0 8px 16px; }
.admin-side button { display: flex; align-items: center; gap: 10px; border: 0; background: none; color: var(--muted); padding: 10px 12px; border-radius: 12px; font-weight: 700; text-align: left; }
.admin-side button:hover { background: var(--panel); color: var(--text); }
.admin-side button.on { background: linear-gradient(90deg, rgba(255,122,89,.25), rgba(255,122,89,.08)); color: var(--text); box-shadow: inset 3px 0 0 var(--accent); }
.admin-side button em { font-style: normal; font-size: 12px; background: var(--line); padding: 1px 8px; border-radius: 999px; }
.admin-side .grow { flex: 1; }
.admin-main { padding: 18px 22px 40px; min-width: 0; max-width: 1400px; }
.admin-top { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.admin-top h2 { margin: 0; font-size: 22px; }
.live-strip { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14px; color: var(--muted); background: var(--panel); border: 1px solid var(--line);
  padding: 10px 14px; border-radius: 14px; margin-bottom: 14px; }
.live-strip b { color: var(--g); }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--g); box-shadow: 0 0 0 0 rgba(34,176,125,.7); animation: live 1.8s infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 9px rgba(34,176,125,0); } 100% { box-shadow: 0 0 0 0 rgba(34,176,125,0); } }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 14px; }
.kpi { background: linear-gradient(160deg, rgba(255,255,255,.06), rgba(255,255,255,.02)); border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; display: grid; gap: 2px; }
.kpi-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.kpi-icon { font-size: 20px; }
.kpi b { font-size: 28px; letter-spacing: -.5px; }
.kpi > span { color: var(--muted); font-size: 13px; }
.trend { font-size: 12px; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: var(--line); color: var(--muted); }
.trend.up { background: rgba(34,176,125,.18); color: #5fe0ae; }
.trend.down { background: rgba(239,74,90,.18); color: #ff8d99; }
.admin-grid { display: grid; gap: 14px; margin-bottom: 14px; }
.admin-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.admin-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.admin-grid .panel, .admin-main .panel { width: auto; padding: 18px; }
.admin-main .panel.wide { margin-top: 0; margin-bottom: 14px; }
.funnel { display: grid; gap: 8px; }
.funnel-row { display: grid; grid-template-columns: 120px 1fr 40px 44px; align-items: center; gap: 8px; font-size: 13.5px; }
.funnel-bar { height: 10px; background: rgba(255,255,255,.07); border-radius: 999px; overflow: hidden; }
.funnel-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--b), var(--accent)); border-radius: 999px; }
.mini-list { display: grid; gap: 4px; margin-top: 10px; }
.mini-row { display: flex; align-items: center; gap: 8px; padding: 7px 9px; border-radius: 10px; background: var(--panel); font-size: 14px; }
.mini-row[data-open-user] { cursor: pointer; }
.mini-row[data-open-user]:hover { background: rgba(255,255,255,.1); }
.mini-row .rank { width: 18px; color: var(--muted); font-weight: 800; }
.ev-list { display: grid; gap: 2px; margin-top: 8px; max-height: 320px; overflow: auto; font-size: 13.5px; }
.ev-list.tall { max-height: 70vh; }
.ev { display: grid; grid-template-columns: 120px 1fr; gap: 10px; padding: 6px 4px; border-bottom: 1px solid rgba(255,255,255,.05); }
.ev-type { font-weight: 700; }
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.toolbar .search { flex: 1 1 260px; width: auto; padding: 10px 14px; }
.toolbar select, .detail select { font: inherit; color: var(--text); background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 14px; align-items: start; }
.split .panel.wide { margin: 0; }
tr.click { cursor: pointer; }
tr.click:hover td { background: rgba(255,255,255,.04); }
tr.sel td { background: rgba(255,122,89,.1); }
.who { display: flex; align-items: center; gap: 10px; }
.tag { margin-right: 3px; white-space: nowrap; display: inline-block; margin-bottom: 2px; }
.tag.gold { background: rgba(246,185,40,.22); color: #ffd36b; }
.detail { position: sticky; top: 12px; max-height: calc(100vh - 24px); overflow: auto; display: grid; gap: 10px; }
.detail-head { display: flex; gap: 12px; align-items: flex-start; }
.detail-head h2 { margin: 0; font-size: 20px; }
.detail-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.detail-stats div { background: var(--panel); border-radius: 12px; padding: 8px; display: grid; justify-items: center; }
.detail-stats b { font-size: 20px; }
.detail-stats span { font-size: 11.5px; color: var(--muted); }
.detail details { background: var(--panel); border-radius: 12px; padding: 10px 12px; }
.detail details summary { font-weight: 700; color: var(--text); font-size: 14.5px; }
.detail details[open] summary { margin-bottom: 8px; }
.detail details textarea, .detail details input { padding: 8px 10px; }
.btn-group { display: flex; flex-wrap: wrap; gap: 6px; }
.btn-group .row { flex-basis: 100%; }
.btn.armed { background: var(--r) !important; color: #fff !important; }
.room-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin-bottom: 14px; }
.room-card { background: var(--bg2); border: 1px solid var(--line); border-radius: 16px; padding: 14px; display: grid; gap: 6px; }
.room-card.running { border-color: rgba(34,176,125,.6); }
.room-card p { margin: 0; }
.room-code-sm { font-size: 20px; letter-spacing: 3px; color: var(--accent); }
.fb-reply { margin-top: 8px; padding: 8px 10px; border-left: 3px solid var(--g); background: rgba(34,176,125,.08); border-radius: 0 10px 10px 0; font-size: 14px; }
.fb-answer { margin-top: 8px; }
.fb-answer input { padding: 8px 10px; }
.sys-grid { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 14px; }
.sys-grid span { color: var(--muted); }
.sys-box { margin-top: 10px; padding: 10px 12px; background: var(--panel); border-radius: 12px; font-size: 14px; line-height: 1.5; }
.ok { color: var(--g); font-weight: 900; } .bad { color: var(--r); font-weight: 900; }
.announce.party { background: rgba(255,122,89,.15); border-color: rgba(255,122,89,.6); }
.announce.info { }
@media (max-width: 1100px) { .split { grid-template-columns: 1fr; } .detail { position: static; max-height: none; } .admin-grid.three { grid-template-columns: 1fr 1fr; } }
@media (max-width: 800px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { position: sticky; top: 0; z-index: 10; height: auto; flex-direction: row; overflow-x: auto; padding: 8px; gap: 4px; border-right: 0; border-bottom: 1px solid var(--line); backdrop-filter: blur(10px); background: rgba(10,8,30,.9); }
  .admin-brand, .admin-side .grow:not(span) { display: none; }
  .admin-side button { flex: none; padding: 8px 10px; }
  .admin-side button .grow { flex: none; }
  .admin-main { padding: 12px; }
  .admin-grid.two, .admin-grid.three { grid-template-columns: 1fr; }
  .ev { grid-template-columns: 1fr; gap: 0; }
  .funnel-row { grid-template-columns: 100px 1fr 34px 40px; }
}

/* ---------- Profil & Erfolge ---------- */
.home-head .me.linkbtn { text-decoration: none; color: var(--text); padding: 4px 8px; border-radius: 12px; text-align: left; }
.home-head .me.linkbtn:hover { background: var(--panel); }
.profile-hero { display: flex; align-items: center; gap: 18px; padding: 22px; border-radius: 22px; margin-bottom: 14px;
  background: radial-gradient(400px 200px at 90% 0%, rgba(255,122,89,.3), transparent 70%), linear-gradient(120deg, #2a2160, #1a1638); border: 1px solid var(--line); }
.profile-hero .avatar.big { width: 76px; height: 76px; font-size: 40px; }
.profile-hero h2 { margin: 0; font-size: 24px; }
.lvl { display: grid; gap: 6px; margin-top: 10px; max-width: 460px; }
.lvl-bar { height: 10px; background: rgba(255,255,255,.1); border-radius: 999px; overflow: hidden; }
.lvl-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--y), var(--accent)); border-radius: 999px; }
.ach-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; margin-bottom: 16px; }
.ach { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); }
.ach > div { display: grid; gap: 2px; }
.ach-icon { font-size: 28px; filter: grayscale(1); opacity: .45; }
.ach.done { border-color: rgba(246,185,40,.55); background: linear-gradient(135deg, rgba(246,185,40,.14), rgba(255,255,255,.03)); }
.ach.done .ach-icon { filter: none; opacity: 1; }
.ach-bar { height: 5px; background: rgba(255,255,255,.08); border-radius: 999px; overflow: hidden; margin-top: 6px; }
.ach-bar i { display: block; height: 100%; background: var(--accent); }
.ach-num { font-size: 11.5px; }
.seg.small button { padding: 6px 10px; font-size: 13px; }
.announce.notice { background: rgba(34,176,125,.12); border-color: rgba(34,176,125,.6); }

/* ---------- Als App installieren ---------- */
.install-banner { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-bottom: 12px; border-radius: 16px;
  background: linear-gradient(110deg, rgba(74,108,247,.25), rgba(255,122,89,.18)); border: 1px solid rgba(124,150,255,.55); }
.install-banner img { width: 44px; height: 44px; border-radius: 11px; box-shadow: 0 4px 12px rgba(0,0,0,.4); }
.install-banner div { display: grid; gap: 2px; font-size: 14px; }
.install-banner span { color: var(--muted); font-size: 13px; }
.install-icon { width: 72px; height: 72px; border-radius: 18px; box-shadow: 0 8px 24px rgba(0,0,0,.5); margin-bottom: 8px; }
.install-steps { display: grid; gap: 8px; margin-bottom: 16px; text-align: left; }
.install-step { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--panel); font-size: 14.5px; }
.step-n { width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #23120c; font-weight: 900; display: grid; place-items: center; flex: none; }
.step-i { font-size: 20px; }
.ios-share, .ios-add { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: #fff; color: #0a84ff; font-weight: 900; }
.install-modal .modal { max-width: 420px; }

/* ---------- Reaktionen im Spiel ---------- */
.react-toggle { font-size: 20px; text-decoration: none; filter: grayscale(.4); }
.react-toggle.on { filter: none; transform: scale(1.15); }
.react-bar { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; padding: 4px 10px 2px; animation: pop .2s ease-out; }
.react-bar button { border: 1px solid var(--line); background: var(--bg2); border-radius: 999px; padding: 5px 9px; font-size: 20px; line-height: 1; transition: transform .1s; }
.react-bar button.txt { font-size: 13px; font-weight: 700; padding: 8px 11px; }
.react-bar button:active { transform: scale(.9); }
.react-bubble { position: fixed; z-index: 60; transform: translateX(-50%); pointer-events: none; font-size: 34px; line-height: 1;
  background: rgba(255,255,255,.95); color: #222; padding: 6px 10px; border-radius: 18px; box-shadow: 0 8px 24px rgba(0,0,0,.4); animation: bubble 2.6s ease-out forwards; }
.react-bubble.txt { font-size: 15px; font-weight: 800; padding: 8px 12px; }
.react-bubble.up { transform: translate(-50%, -100%); animation-name: bubbleUp; }
@keyframes bubble { 0% { opacity: 0; margin-top: -10px; scale: .5; } 12% { opacity: 1; scale: 1.1; } 20% { scale: 1; } 80% { opacity: 1; } 100% { opacity: 0; margin-top: 18px; } }
@keyframes bubbleUp { 0% { opacity: 0; margin-top: 10px; scale: .5; } 12% { opacity: 1; scale: 1.1; } 20% { scale: 1; } 80% { opacity: 1; } 100% { opacity: 0; margin-top: -30px; } }
@media (max-width: 600px) { .home-head { gap: 6px; flex-wrap: wrap; } .home-head .btn.small { padding: 7px 10px; } .profile-hero { padding: 16px; } }
@media (max-width: 600px) {
  .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .kpi { padding: 10px; border-radius: 14px; }
  .kpi b { font-size: 20px; }
  .kpi-top { margin-bottom: 0; }
  .kpi-icon { font-size: 16px; }
  .kpi > span { font-size: 11.5px; }
  .kpi .trend { font-size: 10px; padding: 1px 5px; }
}
