:root {
  --bg: #0b0d14;
  --bg2: #111421;
  --card: rgba(23, 27, 42, .78);
  --card2: rgba(32, 37, 58, .9);
  --line: rgba(255, 255, 255, .08);
  --text: #e9ecf5;
  --muted: #8b93ad;
  --accent: #7c5cff;
  --accent2: #22d3ee;
  --good: #34d399;
  --bad: #f43f5e;
  --warn: #f59e0b;
  --gold: #f5c542;
  --radius: 18px;
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, .7), 0 0 0 1px var(--line);
  --grad: linear-gradient(135deg, var(--accent), var(--accent2));
  font-family: Inter, "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { margin: 0; min-height: 100%; overflow-x: hidden; }
/* clip statt hidden: macht den body NICHT zum Scroll-Bereich – sonst rutschen Kopfzeile (sticky) und Menüleiste (fixed) auf dem iPad */
body { margin: 0; min-height: 100%; overflow-x: clip; }
main { overflow-x: clip; }
body { background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
input, select { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; letter-spacing: -.02em; }
.muted { color: var(--muted); }
.bg-glow { position: fixed; inset: -20%; z-index: -1; pointer-events: none;
  background: radial-gradient(40% 35% at 15% 10%, rgba(124, 92, 255, .22), transparent 70%), radial-gradient(35% 30% at 90% 20%, rgba(34, 211, 238, .14), transparent 70%), radial-gradient(40% 40% at 50% 110%, rgba(244, 63, 94, .1), transparent 70%); }

/* ---------- Topbar */
.topbar { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 24px; padding: calc(12px + env(safe-area-inset-top)) 28px 12px;
  background: rgba(11, 13, 20, .72); backdrop-filter: blur(16px) saturate(1.4); border-bottom: 1px solid var(--line); }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-size: 20px; }
.logo-mark { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--grad); font-size: 24px; color: white; box-shadow: 0 8px 24px -8px var(--accent); }
.logo-text b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav { display: flex; gap: 4px; margin-left: 12px; }
.nav button { padding: 10px 16px; border-radius: 12px; color: var(--muted); font-weight: 600; display: flex; gap: 8px; align-items: center; transition: .2s; }
.nav button:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.nav button.active { color: var(--text); background: rgba(124, 92, 255, .16); box-shadow: inset 0 0 0 1px rgba(124, 92, 255, .4); }
.nav .ni { font-size: 16px; }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); font-weight: 600; font-size: 14px; }
.icon-btn { padding: 8px 11px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--good); box-shadow: 0 0 10px var(--good); display: inline-block; }
.coin { width: 18px; height: 18px; border-radius: 50%; display: inline-block; flex: none;
  background: radial-gradient(circle at 35% 30%, #fff6c2, #f5c542 45%, #b8860b 100%); box-shadow: inset 0 0 0 2px rgba(120, 80, 0, .35), 0 0 12px rgba(245, 197, 66, .45); position: relative; }
.coin::after { content: "♞"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 11px; color: rgba(110, 70, 0, .8); }
.coin-pill { background: rgba(245, 197, 66, .1); border-color: rgba(245, 197, 66, .3); color: #ffe08a; }
.coin-pill.bump { animation: bump .5s; }
@keyframes bump { 40% { transform: scale(1.18); } }
.me-btn { display: flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 999px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); font-weight: 600; }

/* ---------- Avatare */
.avatar { width: var(--s, 40px); height: var(--s, 40px); border-radius: 30%; display: grid; place-items: center; flex: none; font-size: calc(var(--s, 40px) * .55); background: var(--c, #333); background-size: cover; background-position: center; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .15); overflow: hidden; }

/* ---------- Layout */
main { max-width: 1280px; margin: 0 auto; padding: 32px 28px 80px; }
.view { display: none; animation: fadeUp .35s ease; }
.view.active { display: block; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; backdrop-filter: blur(10px); }
.card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.section-title { display: flex; align-items: end; justify-content: space-between; margin: 0 0 20px; gap: 16px; flex-wrap: wrap; }
.section-title h2 { font-size: 30px; }
.section-title p { margin: 6px 0 0; color: var(--muted); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 12px; font-weight: 700; background: rgba(255, 255, 255, .07); border: 1px solid var(--line); transition: transform .15s, background .2s, box-shadow .2s, opacity .2s; white-space: nowrap; }
.btn:hover { background: rgba(255, 255, 255, .12); }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--grad); border: 0; color: white; box-shadow: 0 10px 30px -10px var(--accent); }
.btn.primary:hover { filter: brightness(1.1); box-shadow: 0 14px 34px -10px var(--accent); }
.btn.good { background: linear-gradient(135deg, #10b981, #34d399); border: 0; color: #04140d; }
.btn.danger { background: rgba(244, 63, 94, .14); border-color: rgba(244, 63, 94, .35); color: #ff8fa3; }
.btn.gold { background: linear-gradient(135deg, #f5c542, #ff9f1c); color: #2a1a00; border: 0; }
.btn.block { width: 100%; }
.btn.sm { padding: 8px 12px; font-size: 13px; border-radius: 10px; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }

/* ---------- Spielen */
.hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; margin-bottom: 36px; }
.hero h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.05; }
.hero h1 span { background: linear-gradient(135deg, #b9a6ff, #22d3ee); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: var(--muted); font-size: 18px; max-width: 520px; line-height: 1.6; }
.hero-stats { display: flex; gap: 26px; margin-top: 22px; }
.hero-stats div b { display: block; font-size: 26px; }
.hero-stats div span { color: var(--muted); font-size: 13px; }
.hero-board { justify-self: center; width: min(360px, 100%); transform: perspective(900px) rotateX(18deg) rotateZ(-8deg); filter: drop-shadow(0 40px 50px rgba(0, 0, 0, .55)); animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: perspective(900px) rotateX(18deg) rotateZ(-8deg) translateY(-10px); } }
.play-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.play-card { display: flex; flex-direction: column; gap: 14px; min-height: 280px; position: relative; overflow: hidden; transition: transform .25s, box-shadow .25s; }
.play-card:hover { transform: translateY(-3px); box-shadow: 0 30px 60px -25px rgba(0, 0, 0, .8), 0 0 0 1px rgba(124, 92, 255, .35); }
.play-card .ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 26px; background: rgba(124, 92, 255, .15); }
.play-card h3 { font-size: 20px; }
.play-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; flex: 1; }
.code-display { display: flex; gap: 6px; justify-content: center; margin: 4px 0; }
.code-display span { width: 34px; height: 46px; border-radius: 10px; display: grid; place-items: center; font-size: 24px; font-weight: 800; background: rgba(255, 255, 255, .06); border: 1px solid rgba(124, 92, 255, .4); font-variant-numeric: tabular-nums; animation: pop .35s backwards; }
.code-display.small span { width: 26px; height: 36px; font-size: 18px; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
.code-input { width: 100%; padding: 14px; text-align: center; font-size: 24px; letter-spacing: .35em; font-weight: 800; border-radius: 12px; background: rgba(0, 0, 0, .3); border: 1px solid var(--line); outline: none; transition: .2s; }
.code-input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(124, 92, 255, .2); }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg button { padding: 7px 11px; border-radius: 9px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--muted); }
.seg button.on { background: rgba(124, 92, 255, .2); border-color: var(--accent); color: var(--text); }
.searching { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 8px 0; }
.radar { width: 90px; height: 90px; border-radius: 50%; position: relative; background: radial-gradient(circle, rgba(124, 92, 255, .25), transparent 70%); }
.radar::before, .radar::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--accent); animation: ping 1.8s infinite; }
.radar::after { animation-delay: .9s; }
.radar i { position: absolute; inset: 0; display: grid; place-items: center; font-size: 34px; font-style: normal; }
@keyframes ping { from { transform: scale(.4); opacity: 1; } to { transform: scale(1.4); opacity: 0; } }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .2); border-top-color: white; animation: spin .8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Brett */
.board { position: relative; width: 100%; aspect-ratio: 1; border-radius: 6px; user-select: none; touch-action: none; background: var(--overlay, none); background-size: cover; }
.board-frame { position: relative; padding: 14px; border-radius: 16px; background: linear-gradient(145deg, color-mix(in srgb, var(--frame, #5d3a1a) 85%, white), var(--frame, #5d3a1a)); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .2); }
.b-squares { position: absolute; inset: 0; display: grid; grid-template: repeat(8, 1fr) / repeat(8, 1fr); border-radius: 4px; overflow: hidden; }
.sq { position: relative; }
.sq.light { background-color: var(--light); background-image: var(--lightTex, none); background-size: 800% 800%; }
.sq.dark { background-color: var(--dark); background-image: var(--darkTex, none); background-size: 800% 800%; }
.board.frosty .b-squares::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: var(--frost) center / cover no-repeat; mix-blend-mode: screen; opacity: .9; }
.board.frosty .sq { box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .25), inset 0 1px 6px rgba(255, 255, 255, .25); }
.board[data-theme="neon"] .sq { box-shadow: inset 0 0 0 .5px color-mix(in srgb, var(--grid) 45%, transparent); }
.board[data-theme="neon"] .sq.dark { box-shadow: inset 0 0 12px rgba(57, 240, 255, .08), inset 0 0 0 .5px rgba(57, 240, 255, .3); }
.board::after, .mini-board::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: var(--overlay, none); mix-blend-mode: overlay; opacity: .9; border-radius: inherit; }
.board.stars::before, .mini-board.stars::before { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1; border-radius: inherit;
  background-image: radial-gradient(1px 1px at 12% 22%, white, transparent), radial-gradient(1px 1px at 72% 12%, white, transparent), radial-gradient(1.5px 1.5px at 42% 62%, white, transparent), radial-gradient(1px 1px at 88% 82%, white, transparent), radial-gradient(1px 1px at 22% 88%, white, transparent), radial-gradient(1.5px 1.5px at 62% 38%, #cbb8ff, transparent), radial-gradient(1px 1px at 5% 55%, white, transparent), radial-gradient(1px 1px at 95% 45%, white, transparent);
  animation: twinkle 4s ease-in-out infinite alternate; }
@keyframes twinkle { to { opacity: .4; } }
.sq.last::after { content: ""; position: absolute; inset: 0; background: var(--last); }
.sq.sel::after { content: ""; position: absolute; inset: 0; background: rgba(124, 92, 255, .45); }
.sq.check { background: radial-gradient(circle, #ff2d55 0%, rgba(255, 45, 85, .6) 35%, transparent 75%), var(--dark) !important; }
.sq.light.check { background: radial-gradient(circle, #ff2d55 0%, rgba(255, 45, 85, .6) 35%, transparent 75%), var(--light) !important; }
.b-coords { position: absolute; inset: 0; pointer-events: none; font-size: clamp(9px, 1.4vw, 12px); font-weight: 700; z-index: 2; }
.b-coords span { position: absolute; opacity: .75; }
.cf { bottom: 2px; width: 12.5%; text-align: right; padding-right: 4px; }
.cr { left: 3px; height: 12.5%; padding-top: 2px; }
.on-light { color: var(--dark); } .on-dark { color: var(--light); }
.board[data-theme="galaxie"] .b-coords span, .board[data-theme="neon"] .b-coords span { color: #c9c2ff; }
.b-hints, .b-pieces { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.hint { position: absolute; width: 12.5%; height: 12.5%; display: grid; place-items: center; }
.hint::after { content: ""; width: 30%; height: 30%; border-radius: 50%; background: rgba(20, 20, 30, .32); }
.hint.cap::after { width: 86%; height: 86%; background: transparent; border: 5px solid rgba(20, 20, 30, .3); box-sizing: border-box; }
.piece { position: absolute; width: 12.5%; height: 12.5%; background-size: 88%; background-repeat: no-repeat; background-position: center 55%; transition: transform .2s cubic-bezier(.3, .7, .3, 1); will-change: transform; z-index: 4; }
.piece.no-anim { transition: none; }
.piece.dragging { z-index: 20; filter: drop-shadow(0 12px 10px rgba(0, 0, 0, .45)); cursor: grabbing; }
.piece.captured { animation: capOut .1s forwards; }
@keyframes capOut { to { opacity: 0; } }
.piece.fade-in { animation: fadeIn .25s; }
@keyframes fadeIn { from { opacity: 0; } }
.promo { position: absolute; z-index: 30; width: 12.5%; height: 50%; display: flex; flex-direction: column; background: rgba(15, 17, 28, .95); border-radius: 8px; box-shadow: 0 10px 40px rgba(0, 0, 0, .6), 0 0 0 2px var(--accent); overflow: hidden; }
.promo button { flex: 1; background-size: 80%; background-repeat: no-repeat; background-position: center; transition: .15s; }
.promo button:hover { background-color: rgba(124, 92, 255, .4); }

.mini-board { position: relative; display: grid; grid-template: repeat(8, 1fr) / repeat(8, 1fr); aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: var(--overlay, none); box-shadow: 0 0 0 4px var(--frame), 0 10px 30px -10px rgba(0, 0, 0, .7); }
.mini-board i { background-color: var(--light); background-image: var(--p, none), var(--lightTex, none); background-size: 86% auto, 800% 800%; background-position: center, var(--bp, 0 0); background-repeat: no-repeat; position: relative; z-index: 2; }
.mini-board i.dark { background-color: var(--dark); background-image: var(--p, none), var(--darkTex, none); }
.mini-board.frosty::after { background: var(--frost) center / cover no-repeat; mix-blend-mode: screen; opacity: .9; z-index: 3; }

/* ---------- Spielansicht */
.game-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.board-col { width: min(100%, calc(100vh - 270px)); min-width: 280px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.board-col.flipped { flex-direction: column-reverse; }
.player-bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 14px; background: var(--card); box-shadow: var(--shadow); transition: box-shadow .3s; }
.player-bar.turn { box-shadow: 0 0 0 2px var(--accent), 0 10px 30px -12px var(--accent); }
.player-bar .pname { font-weight: 700; display: flex; align-items: center; gap: 8px; }
.player-bar .prating { color: var(--muted); font-size: 13px; font-weight: 500; }
.player-bar .caps { display: flex; align-items: center; min-height: 18px; font-size: 12px; color: var(--muted); }
.player-bar .caps i { width: 18px; height: 18px; background-size: contain; margin-right: -6px; }
.player-bar .caps b { margin-left: 10px; font-weight: 600; }
.clock { margin-left: auto; font-variant-numeric: tabular-nums; font-size: 24px; font-weight: 800; padding: 6px 14px; border-radius: 10px; background: rgba(0, 0, 0, .35); min-width: 104px; text-align: center; color: var(--muted); }
.clock.run { background: white; color: #111; }
.clock.low.run { background: var(--bad); color: white; animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: .75; } }
.thinking { margin-left: auto; display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.tag { font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 6px; background: rgba(255, 255, 255, .08); color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.side { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 90px; }
.status-line { font-weight: 700; font-size: 17px; display: flex; align-items: center; gap: 10px; }
.banner { margin-top: 12px; padding: 12px; border-radius: 12px; background: rgba(124, 92, 255, .12); border: 1px solid rgba(124, 92, 255, .35); font-size: 14px; display: flex; flex-direction: column; gap: 10px; }
.banner[hidden] { display: none; }
.banner .row { display: flex; gap: 8px; }
.moves-card { padding-bottom: 12px; }
.moves { list-style: none; margin: 0; padding: 0; max-height: 280px; overflow: auto; display: grid; grid-template-columns: 34px 1fr 1fr; font-variant-numeric: tabular-nums; font-size: 14px; }
.moves li { display: contents; }
.moves .n { color: var(--muted); padding: 5px 0; }
.moves .m { padding: 5px 8px; border-radius: 6px; font-weight: 600; }
.moves .m.cur { background: rgba(124, 92, 255, .25); }
.moves:empty::before { content: "Noch keine Züge"; grid-column: 1 / -1; color: var(--muted); font-size: 14px; }
.actions-card { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.emotes { display: flex; gap: 6px; flex-wrap: wrap; padding: 14px; }
.emotes button { flex: 1; min-width: 38px; padding: 8px 0; border-radius: 10px; background: rgba(255, 255, 255, .05); font-size: 18px; transition: .15s; }
.emotes button:hover { background: rgba(255, 255, 255, .12); transform: translateY(-2px); }
.emote-pop { position: absolute; top: 10%; left: 50%; font-size: 64px; pointer-events: none; z-index: 40; opacity: 0; transform: translate(-50%, 0); font-weight: 900; }
.emote-pop.show { animation: emote 1.8s ease forwards; }
@keyframes emote { 0% { opacity: 0; transform: translate(-50%, 30px) scale(.5); } 15% { opacity: 1; transform: translate(-50%, 0) scale(1.15); } 25% { transform: translate(-50%, 0) scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -30px); } }

/* ---------- Bots */
.bots-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.bot-card { display: flex; flex-direction: column; gap: 14px; position: relative; overflow: hidden; transition: transform .25s, box-shadow .25s; }
.bot-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 110px; background: linear-gradient(180deg, color-mix(in srgb, var(--bc) 30%, transparent), transparent); pointer-events: none; }
.bot-card:hover { transform: translateY(-3px); box-shadow: 0 30px 60px -25px rgba(0, 0, 0, .8), 0 0 0 1px color-mix(in srgb, var(--bc) 60%, transparent); }
.bot-top { display: flex; gap: 14px; align-items: center; position: relative; }
.bot-top .avatar { --s: 64px; }
.bot-top h3 { font-size: 20px; }
.lvl { display: flex; gap: 4px; margin-top: 6px; }
.lvl i { width: 18px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .1); }
.lvl i.on { background: var(--bc); box-shadow: 0 0 8px var(--bc); }
.bot-card blockquote { margin: 0; color: var(--muted); font-style: italic; font-size: 14px; flex: 1; }
.bot-meta { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }
.bot-meta b { color: var(--text); }
.color-pick { display: flex; gap: 8px; }
.color-pick button { width: 46px; height: 46px; border-radius: 12px; border: 2px solid var(--line); background: rgba(255, 255, 255, .04); font-size: 22px; display: grid; place-items: center; transition: .15s; }
.color-pick button.on { border-color: var(--accent); background: rgba(124, 92, 255, .2); }

/* ---------- Shop */
.tabs { display: inline-flex; padding: 5px; border-radius: 14px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); gap: 4px; }
.tabs button { padding: 10px 18px; border-radius: 10px; font-weight: 700; color: var(--muted); transition: .2s; }
.tabs button.on { background: var(--grad); color: white; }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; margin-top: 22px; }
.shop-item { display: flex; flex-direction: column; gap: 12px; padding: 16px; transition: transform .25s, box-shadow .25s; position: relative; }
.shop-item:hover { transform: translateY(-4px); }
.shop-item.equipped { box-shadow: 0 0 0 2px var(--good), 0 20px 40px -20px rgba(52, 211, 153, .5); }
.shop-item .prev { border-radius: 12px; overflow: hidden; padding: 10px; background: rgba(0, 0, 0, .25); }
.shop-item h4 { margin: 0; font-size: 17px; }
.shop-item p { margin: 0; color: var(--muted); font-size: 13px; flex: 1; }
.price { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; color: #ffe08a; }
.ribbon { position: absolute; top: 12px; right: 12px; z-index: 5; font-size: 11px; font-weight: 800; padding: 4px 9px; border-radius: 999px; background: var(--good); color: #04140d; text-transform: uppercase; }
.ribbon.owned { background: rgba(255, 255, 255, .15); color: var(--text); }
.fin-prev { aspect-ratio: 1.3; display: grid; place-items: center; font-size: 70px; border-radius: 12px; position: relative; overflow: hidden;
  background: radial-gradient(circle at 50% 120%, color-mix(in srgb, var(--fc) 70%, transparent), transparent 70%), linear-gradient(160deg, #161a2b, #0a0b12); }
.fin-prev span { filter: drop-shadow(0 0 22px var(--fc)); animation: float2 3s ease-in-out infinite; }
@keyframes float2 { 50% { transform: translateY(-8px) scale(1.05); } }
.fin-prev button { position: absolute; bottom: 10px; right: 10px; }

/* ---------- Profil */
.profile-head { display: grid; grid-template-columns: auto 1fr auto; gap: 26px; align-items: center; }
.profile-head .avatar { --s: 112px; border-radius: 32px; cursor: pointer; position: relative; }
.avatar-wrap { position: relative; }
.avatar-wrap::after { content: "✎"; position: absolute; right: -4px; bottom: -4px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); font-size: 15px; box-shadow: 0 4px 12px rgba(0, 0, 0, .4); pointer-events: none; }
.name-edit { display: flex; gap: 10px; align-items: center; }
.name-edit input { font-size: 28px; font-weight: 800; background: transparent; border: 1px solid transparent; border-radius: 10px; padding: 4px 10px; margin-left: -10px; width: min(100%, 380px); outline: none; transition: .2s; }
.name-edit input:hover { border-color: var(--line); }
.name-edit input:focus { border-color: var(--accent); background: rgba(0, 0, 0, .25); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 18px; }
.stat { padding: 18px; border-radius: 14px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); }
.stat b { display: block; font-size: 26px; }
.stat span { font-size: 13px; color: var(--muted); }
.profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
.emoji-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; }
.emoji-grid button { aspect-ratio: 1; border-radius: 10px; font-size: 22px; background: rgba(255, 255, 255, .05); border: 2px solid transparent; transition: .15s; }
.emoji-grid button.on { border-color: var(--accent); background: rgba(124, 92, 255, .2); }
.color-grid { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.color-grid button { width: 30px; height: 30px; border-radius: 50%; border: 3px solid transparent; transition: .15s; }
.color-grid button.on { border-color: white; transform: scale(1.1); }
.history { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; max-height: 420px; overflow: auto; }
.history li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .03); }
.history .res { margin-left: auto; text-align: right; font-size: 13px; }
.res-win { color: var(--good); } .res-loss { color: var(--bad); } .res-draw { color: var(--warn); }
.equip-row { display: flex; gap: 10px; flex-wrap: wrap; }
.equip-row .pill { font-size: 13px; }

/* ---------- Rangliste */
.lb { width: 100%; border-collapse: collapse; }
.lb th { text-align: left; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; padding: 10px 12px; font-weight: 700; }
.lb td { padding: 12px; border-top: 1px solid var(--line); }
.lb tr.me td { background: rgba(124, 92, 255, .1); }
.lb .who { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.rank { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; background: rgba(255, 255, 255, .05); }
.rank.r1 { background: linear-gradient(135deg, #f5c542, #ff9f1c); color: #2a1a00; }
.rank.r2 { background: linear-gradient(135deg, #e5e7eb, #9ca3af); color: #111; }
.rank.r3 { background: linear-gradient(135deg, #f0a46a, #b8642d); color: #1d0c00; }

/* ---------- Overlays & Modals */
.overlay { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: rgba(5, 6, 10, .7); backdrop-filter: blur(8px); animation: fadeIn .25s; }
.modal { width: min(520px, 100%); max-height: 90vh; overflow: auto; background: var(--card2); border-radius: 22px; box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .8), 0 0 0 1px var(--line); padding: 28px; animation: modalIn .35s cubic-bezier(.2, .9, .3, 1.2); }
.modal.wide { width: min(860px, 100%); }
@keyframes modalIn { from { transform: translateY(20px) scale(.96); opacity: 0; } }
.modal h2 { font-size: 26px; margin-bottom: 6px; }
.modal-actions { display: flex; gap: 10px; margin-top: 22px; }
.modal-actions .btn { flex: 1; }
.vote-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 20px; }
.vote-card { padding: 16px; border-radius: 18px; background: rgba(255, 255, 255, .04); border: 2px solid var(--line); display: flex; flex-direction: column; gap: 12px; transition: .2s; cursor: pointer; }
.vote-card:hover { border-color: rgba(124, 92, 255, .5); transform: translateY(-3px); }
.vote-card.mine { border-color: var(--accent); background: rgba(124, 92, 255, .12); }
.vote-card.win { border-color: var(--good); box-shadow: 0 0 0 4px rgba(52, 211, 153, .25); }
.vote-card .by { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.vote-card .by b { display: block; }
.voters { display: flex; gap: 6px; min-height: 32px; align-items: center; font-size: 13px; color: var(--muted); }
.voters .avatar { --s: 28px; animation: pop .3s; }
.vote-bar { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .08); overflow: hidden; margin-top: 18px; }
.vote-bar i { display: block; height: 100%; background: var(--grad); transform-origin: left; }
.vs { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 10px; }
.vs .p { display: flex; flex-direction: column; align-items: center; gap: 6px; font-weight: 700; }
.vs .p .avatar { --s: 56px; }
.vs .x { font-size: 22px; font-weight: 900; color: var(--muted); }
.result-head { text-align: center; }
.result-icon { font-size: 66px; animation: pop .5s; }
.result-head h2 { font-size: 40px; margin-top: 8px; }
.result-head.win h2 { background: linear-gradient(135deg, #34d399, #22d3ee); -webkit-background-clip: text; background-clip: text; color: transparent; }
.result-head.loss h2 { color: #ff8fa3; }
.result-head.draw h2 { color: #fcd34d; }
.reward { display: flex; justify-content: center; gap: 14px; margin-top: 20px; flex-wrap: wrap; }
.reward .pill { font-size: 18px; padding: 12px 18px; }
.reward .pill b { font-size: 22px; }
.challenge { text-align: center; }
.challenge .avatar { --s: 84px; margin: 0 auto 14px; border-radius: 26px; animation: wiggle 1s ease infinite; }
@keyframes wiggle { 25% { transform: rotate(-5deg); } 75% { transform: rotate(5deg); } }

/* ---------- Toasts */
#toast-root { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 300; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { padding: 12px 18px; border-radius: 12px; background: var(--card2); box-shadow: 0 16px 40px rgba(0, 0, 0, .5), 0 0 0 1px var(--line); font-weight: 600; font-size: 14px; animation: toastIn .3s cubic-bezier(.2, .9, .3, 1.3); display: flex; gap: 10px; align-items: center; }
.toast.good { box-shadow: 0 16px 40px rgba(0, 0, 0, .5), 0 0 0 1px rgba(52, 211, 153, .5); }
.toast.warn { box-shadow: 0 16px 40px rgba(0, 0, 0, .5), 0 0 0 1px rgba(244, 63, 94, .5); }
.toast.out { animation: toastOut .3s forwards; }
@keyframes toastIn { from { transform: translateY(20px) scale(.9); opacity: 0; } }
@keyframes toastOut { to { transform: translateY(10px); opacity: 0; } }

/* ---------- Finisher */
.finisher { position: fixed; inset: 0; z-index: 500; background: #000; opacity: 0; transition: opacity .5s; }
.finisher.on { opacity: 1; }
.finisher.out { opacity: 0; }
.finisher canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.fx-vignette { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at center, transparent 50%, rgba(0, 0, 0, .7)); }
.fx-bar { position: absolute; left: 0; right: 0; height: 11vh; background: #000; transition: transform 1s cubic-bezier(.7, 0, .2, 1); z-index: 2; }
.fx-bar.top { top: 0; transform: translateY(-100%); }
.fx-bar.bottom { bottom: 0; transform: translateY(100%); }
.finisher.on .fx-bar { transform: none; }
.fx-title { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding-top: 14vh; pointer-events: none; z-index: 3; }
.fx-main { font-size: clamp(40px, 9vw, 120px); font-weight: 900; letter-spacing: .14em; color: white; display: flex;
  text-shadow: 0 0 30px rgba(255, 255, 255, .5), 0 0 80px rgba(124, 92, 255, .9); }
.fx-main span { display: inline-block; opacity: 0; transform: translateY(-120px) scale(2.4) rotate(-12deg); filter: blur(12px); }
.finisher.title-on .fx-main span { animation: slam .55s cubic-bezier(.2, 1.4, .4, 1) forwards; animation-delay: calc(var(--i) * 55ms); }
@keyframes slam { 60% { opacity: 1; transform: translateY(8px) scale(.92) rotate(2deg); filter: none; } 100% { opacity: 1; transform: none; filter: none; } }
.finisher.hit .fx-main { animation: titleHit .5s ease-out; }
@keyframes titleHit { 0% { transform: scale(1.06); text-shadow: 3px 0 0 rgba(255, 0, 80, .6), -3px 0 0 rgba(0, 220, 255, .6), 0 0 70px #fff; } 100% { transform: none; } }
.fx-lines { position: absolute; inset: 0; pointer-events: none; z-index: 2; opacity: 0;
  background: repeating-conic-gradient(from 0deg at 50% 50%, rgba(255, 255, 255, .0) 0deg 4deg, rgba(255, 255, 255, .1) 4.4deg 5deg, rgba(255, 255, 255, 0) 5.4deg 9deg);
  -webkit-mask: radial-gradient(circle at 50% 50%, transparent 28%, #000 70%); mask: radial-gradient(circle at 50% 50%, transparent 28%, #000 70%); }
.finisher.hit .fx-lines { animation: lines .45s ease-out; }
@keyframes lines { 0% { opacity: 1; transform: scale(1.15) rotate(3deg); } 100% { opacity: 0; transform: scale(1); } }
.fx-sub { margin-top: auto; margin-bottom: 15vh; font-size: clamp(20px, 3vw, 36px); font-weight: 800; opacity: 0; transform: translateY(20px); transition: all .8s; color: #ffe08a; text-shadow: 0 0 20px rgba(245, 197, 66, .7); }
.finisher.sub-on .fx-sub { opacity: 1; transform: none; }
.fx-flash { position: absolute; inset: 0; opacity: 0; pointer-events: none; z-index: 4; mix-blend-mode: screen; }
.fx-skip { position: absolute; right: 24px; bottom: calc(11vh + 16px); z-index: 5; padding: 10px 16px; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); color: white; font-weight: 700; backdrop-filter: blur(6px); }
.fx-tag { position: absolute; left: 24px; bottom: calc(11vh + 16px); z-index: 5; color: rgba(255, 255, 255, .75); font-weight: 700; font-size: 14px; letter-spacing: .05em; text-transform: uppercase; }
.fx-tag span { font-size: 20px; margin-right: 6px; }

/* ---------- Responsive */
/* Tablets & Handys: Navigation als App-Leiste unten, damit oben nichts abgeschnitten wird */
@media (max-width: 1440px) {
  .nav { position: fixed; bottom: 0; left: 0; right: 0; margin: 0; justify-content: space-around; padding: 8px 6px calc(8px + env(safe-area-inset-bottom)); background: rgba(11, 13, 20, .94); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--line); z-index: 60; }
  .nav button { flex-direction: column; gap: 2px; font-size: 11px; padding: 6px 10px; }
  .nav .ni { font-size: 20px; }
  main { padding-bottom: 110px; }
  .site-foot { padding-bottom: 100px; }
  /* Wichtig: backdrop-filter würde die Leiste an der Kopfzeile statt am Bildschirm festmachen */
  .topbar { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(11, 13, 20, .97); }
  .board-col { width: min(100%, calc(100vh - 340px), 640px); }
  .tabs { max-width: 100%; overflow-x: auto; }
}
@media (max-width: 1100px) {
  .play-grid { grid-template-columns: 1fr 1fr; }
  .bots-grid { grid-template-columns: 1fr 1fr; }
  .game-layout { grid-template-columns: 1fr; }
  .side { position: static; }
  .board-col { width: min(100%, 640px); }
}
@media (max-width: 760px) {
  main { padding: 18px 12px 100px; }
  .topbar { padding: 10px 14px; gap: 10px; }
  .logo-text, .online-pill, .me-btn > span:not(.avatar), .login-btn span, .ver-pill { display: none; }
  .me-btn { padding: 3px; }
  .tabs button { padding: 9px 12px; white-space: nowrap; }
  .top-right { gap: 6px; }
  .pill { padding: 7px 10px; }
  .hero { grid-template-columns: 1fr; }
  .hero-board { display: none; }
  .play-grid, .bots-grid, .profile-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .profile-head { grid-template-columns: auto 1fr; }
  .profile-head > :last-child { grid-column: 1 / -1; }
  .vote-grid { grid-template-columns: 1fr; }
  .board-frame { padding: 6px; }
  .clock { font-size: 20px; min-width: 84px; }
}

/* ---------- Version */
.ver-pill { font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 999px; background: rgba(124, 92, 255, .18); color: #c9bcff; border: 1px solid rgba(124, 92, 255, .35); letter-spacing: .03em; cursor: pointer; }
.site-foot { text-align: center; color: var(--muted); font-size: 12px; padding: 0 0 30px; }
.site-foot button { color: #c9bcff; text-decoration: underline; font-size: 12px; }
.changelog { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-direction: column; gap: 10px; }
.changelog li { display: flex; gap: 12px; align-items: baseline; }
.changelog b { min-width: 54px; color: #c9bcff; }
@media (max-width: 760px) { .site-foot { padding-bottom: 90px; } }

/* ---------- Brett-Effekte (v1.2) */
.fx-canvas { position: absolute; inset: -8%; width: 116%; height: 116%; pointer-events: none; z-index: 25; }
/* Lande-Animation nur über background-size: 'scale' würde die Figur je nach Feld verschieben */
.piece.land { animation: land .2s ease-out; }
@keyframes land { 0% { background-size: 94%; filter: drop-shadow(0 5px 4px rgba(0, 0, 0, .28)); } 100% { background-size: 88%; filter: none; } }
.piece.promo-glow { animation: promoGlow 1s ease-out; }
@keyframes promoGlow { 0% { filter: drop-shadow(0 0 10px #ffd166) brightness(1.8); background-size: 104%; } 100% { filter: none; background-size: 88%; } }
.board-frame.shake-s { animation: shakeS .3s; }
.board-frame.shake-l { animation: shakeL .6s; }
@keyframes shakeS { 25% { transform: translate(-1.5px, .5px); } 50% { transform: translate(1.5px, -1px); } 75% { transform: translate(-1px, .5px); } }
@keyframes shakeL { 15% { transform: translate(-4px, 1px); } 35% { transform: translate(3px, -2px); } 55% { transform: translate(-2px, 1px); } 75% { transform: translate(1px, 0); } }
.board-frame.check-flash::after { content: ""; position: absolute; inset: 0; border-radius: 16px; pointer-events: none; box-shadow: 0 0 0 3px #ff2d55, 0 0 60px 10px rgba(255, 45, 85, .55); animation: checkFlash .7s ease-out forwards; z-index: 30; }
@keyframes checkFlash { to { opacity: 0; } }
.board-frame.mated .board { animation: mated 1.2s ease forwards; }
@keyframes mated { to { filter: saturate(.35) brightness(.75); } }
.coin-fly { position: fixed; left: 0; top: 0; z-index: 400; width: 26px; height: 26px; pointer-events: none; will-change: transform; }
.coin-fly .coin { width: 100%; height: 100%; }
.fx-screen { position: fixed; inset: 0; pointer-events: none; z-index: 350; width: 100vw; height: 100vh; }

/* ---------- v1.5: Konto, Profile, Pakete, Analyse, Aufgeben, Hero */
.small { font-size: 13px; }
.login-btn { padding: 8px 14px; }
.linkish { color: #c9bcff; text-decoration: underline; font-size: inherit; }
.site-foot button { color: #c9bcff; text-decoration: underline; font-size: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; font-size: 13px; color: var(--muted); font-weight: 600; }
.field input { padding: 12px 14px; border-radius: 12px; background: rgba(0, 0, 0, .3); border: 1px solid var(--line); color: var(--text); font-size: 16px; outline: none; transition: .2s; }
.field input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(124, 92, 255, .2); }
.form-error { color: #ff8fa3; font-size: 14px; min-height: 20px; font-weight: 600; }
.auth .tabs { display: flex; }
.auth .tabs button { flex: 1; }
.acc-form { display: grid; gap: 4px; }
.name-edit .at { font-size: 28px; font-weight: 800; color: var(--muted); }
.clickable { cursor: pointer; }
.player-bar.clickable:hover { box-shadow: 0 0 0 1px rgba(124, 92, 255, .5), var(--shadow); }
.lb tr.clickable:hover td { background: rgba(255, 255, 255, .04); }
/* Spielerprofil-Fenster */
.pp-head { display: flex; align-items: center; gap: 18px; margin-bottom: 16px; }
.pp-head .avatar { border-radius: 26px; }
.pp-head h2 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pp-elo { margin-left: auto; text-align: center; padding: 10px 18px; border-radius: 16px; background: rgba(124, 92, 255, .14); border: 1px solid rgba(124, 92, 255, .35); }
.pp-elo b { display: block; font-size: 30px; line-height: 1; }
.pp-elo span { font-size: 12px; color: var(--muted); font-weight: 700; }
.pp-stats { grid-template-columns: repeat(4, 1fr); }
.pp-prev { display: flex; gap: 16px; align-items: center; margin-top: 16px; }
.pp-prev .mini-board { width: 150px; flex: none; }
/* Pakete */
.shop-item.bundle .ribbon { background: linear-gradient(135deg, #f43f5e, #f59e0b); color: #fff; }
.bundle-prev { position: relative; }
.bp-fin { position: absolute; right: 18px; bottom: 18px; width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; font-size: 34px; background: rgba(10, 12, 20, .8); box-shadow: 0 8px 20px rgba(0, 0, 0, .5), 0 0 0 2px rgba(245, 197, 66, .6); z-index: 5; }
.bundle-list { margin: 0; padding-left: 18px; font-size: 13px; display: grid; gap: 3px; }
.bundle-list .muted { font-size: 12px; }
/* Zug-Analyse */
.move-badge { position: absolute; z-index: 26; width: 26px; height: 26px; margin: -9px 0 0 -17px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 900; font-size: 12px; letter-spacing: -.04em; box-shadow: 0 3px 10px rgba(0, 0, 0, .45), 0 0 0 2px rgba(255, 255, 255, .9); pointer-events: none; animation: badgeIn .35s cubic-bezier(.2, 1.5, .4, 1); }
@keyframes badgeIn { from { transform: scale(0); } }
.moves .mk { font-style: normal; font-weight: 900; font-size: 12px; margin-left: 4px; }
.brilliant-pop { position: absolute; left: 50%; top: 42%; z-index: 45; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 12px; padding: 14px 22px; border-radius: 18px; background: rgba(8, 40, 40, .9); border: 2px solid #1fc3bb; box-shadow: 0 0 40px rgba(31, 195, 187, .6); color: #e6fffd; font-weight: 800; font-size: 18px; pointer-events: none; animation: brilliant 2.6s ease forwards; white-space: nowrap; }
.brilliant-pop b { font-size: 34px; color: #1fc3bb; text-shadow: 0 0 18px rgba(31, 195, 187, .9); }
@keyframes brilliant { 0% { opacity: 0; transform: translate(-50%, -30%) scale(.6); } 12% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); } 20% { transform: translate(-50%, -50%) scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -70%); } }
/* Aufgeben: Brett wird weggeschmissen */
.piece-flyer { position: fixed; z-index: 600; background-size: 88%; background-repeat: no-repeat; background-position: center 55%; pointer-events: none; will-change: transform; }
.board-frame.thrown { animation: thrown 1.2s cubic-bezier(.5, -0.3, .8, .6) forwards; }
@keyframes thrown { 0% { transform: none; } 18% { transform: translateY(-30px) rotate(-6deg); } 100% { transform: translate(60px, 120vh) rotate(38deg); opacity: .2; } }
/* Hero-Brett folgt der Maus */
.hero-board { perspective: 1000px; }
.hero-tilt { transition: transform .35s cubic-bezier(.2, .8, .3, 1), filter .35s; transform-style: preserve-3d; will-change: transform; }
.hero-tilt.near { filter: drop-shadow(0 30px 40px rgba(124, 92, 255, .25)); }

/* ---------- Admin-Menü */
.adm-row { display: flex; gap: 8px; margin-top: 14px; }
.adm-row input { flex: 1; min-width: 0; padding: 12px 14px; border-radius: 12px; background: rgba(0, 0, 0, .3); border: 1px solid var(--line); color: var(--text); font-size: 16px; outline: none; }
.adm-row input:focus { border-color: var(--accent); }
.adm-card { margin-top: 16px; padding: 16px; border-radius: 16px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); }
.adm-who { display: flex; align-items: center; gap: 12px; }
.adm-who .pill { margin-left: auto; }
.adm-quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

/* =================================================================== Profil-Studio & Cinematic-Profilkarte */
.pp-modal { width: min(760px, 100%); padding: 0; overflow-x: hidden; }
.pp-modal .pc-sec, .pp-modal > .pp-wrap > p, .pp-modal .modal-actions { margin-left: 24px; margin-right: 24px; }
.pp-modal .modal-actions { margin-bottom: 22px; }
.pc { position: relative; --acc: #7c5cff; }
.pc-banner { position: relative; height: 190px; overflow: hidden; border-radius: 22px 22px 0 0; background: #141826; }
.studio-prev .pc-banner { border-radius: 18px 18px 0 0; }
.pc-vignette { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .1), rgba(10, 12, 20, .15) 50%, var(--card2) 100%), radial-gradient(ellipse at center, transparent 50%, rgba(0, 0, 0, .45)); pointer-events: none; }
/* Banner */
.bn-standard { background: linear-gradient(135deg, color-mix(in srgb, var(--acc) 70%, #000), #0b0d14 70%); }
.bn-aurora { background: linear-gradient(120deg, #052a2a, #0b6b58, #5b2a9a, #0a3a6b, #052a2a); background-size: 400% 400%; animation: bnShift 14s ease infinite; }
.bn-feuer { background: radial-gradient(ellipse at 50% 120%, #ffcf5a 0, #ff6a1a 25%, #8a1205 55%, #1a0402 85%); animation: bnFlicker 1.6s ease-in-out infinite alternate; }
.bn-galaxie { background: radial-gradient(circle at 20% 30%, #6a3fd1 0, transparent 35%), radial-gradient(circle at 80% 60%, #c2318f 0, transparent 40%), radial-gradient(circle at 55% 15%, #2b65d9 0, transparent 30%), #0d0626; background-size: 140% 140%; animation: bnShift 22s ease infinite; }
.bn-matrix { background: repeating-linear-gradient(90deg, rgba(57, 255, 122, .0) 0 14px, rgba(57, 255, 122, .22) 14px 15px), linear-gradient(180deg, #021a0a, #000); background-size: 15px 100%, 100% 100%; }
.bn-matrix::before { content: ""; position: absolute; inset: -100% 0 0; background: repeating-linear-gradient(180deg, transparent 0 18px, rgba(57, 255, 122, .35) 18px 20px); animation: bnRain 2.8s linear infinite; mask: repeating-linear-gradient(90deg, #000 0 2px, transparent 2px 15px); -webkit-mask: repeating-linear-gradient(90deg, #000 0 2px, transparent 2px 15px); }
.bn-gold { background: linear-gradient(115deg, #3a2a00, #c99a2e 30%, #fff1b8 45%, #c99a2e 60%, #3a2a00); background-size: 250% 100%; animation: bnShine 5s linear infinite; }
.bn-ozean { background: radial-gradient(ellipse at 30% 0%, rgba(160, 255, 240, .45), transparent 50%), radial-gradient(ellipse at 80% 10%, rgba(120, 200, 255, .3), transparent 45%), linear-gradient(180deg, #0f4a6a, #051a33); background-size: 180% 180%; animation: bnShift 10s ease infinite; }
.bn-neon { background: linear-gradient(180deg, #0a0420 0%, #24063a 55%, #ff3df0 56%, #24063a 57%), #0a0420; }
.bn-neon::before { content: ""; position: absolute; left: -50%; right: -50%; bottom: -40%; height: 90%; background: repeating-linear-gradient(90deg, rgba(57, 240, 255, .6) 0 2px, transparent 2px 60px), repeating-linear-gradient(0deg, rgba(255, 61, 240, .6) 0 2px, transparent 2px 40px); transform: perspective(240px) rotateX(60deg); animation: bnGrid 2.5s linear infinite; }
.bn-sakura { background: linear-gradient(160deg, #ffd6e5, #f3a3c0 45%, #8a2f5a); }
.bn-sunset { background: linear-gradient(180deg, #2a0a4a 0%, #a3246b 40%, #ff7a3a 70%, #ffd27a 100%); }
.bn-sunset::before { content: ""; position: absolute; left: 50%; bottom: -60px; width: 160px; height: 160px; margin-left: -80px; border-radius: 50%; background: radial-gradient(circle, #fff1b8, #ffb347 60%, transparent 70%); animation: bnSun 6s ease-in-out infinite alternate; }
.bn-gewitter { background: linear-gradient(180deg, #0b0e18, #1d2436); animation: bnStorm 7s infinite; }
.bn-bild { background: var(--img, #141826) center / cover no-repeat; animation: bnKen 24s ease-in-out infinite alternate; }
@keyframes bnShift { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
@keyframes bnFlicker { to { filter: brightness(1.25) saturate(1.2); } }
@keyframes bnRain { to { transform: translateY(50%); } }
@keyframes bnShine { to { background-position: -250% 0; } }
@keyframes bnGrid { to { background-position: 0 40px, 0 40px; } }
@keyframes bnSun { to { transform: translateY(-20px); } }
@keyframes bnStorm { 0%, 92%, 100% { filter: none; } 93% { filter: brightness(3.5); } 94% { filter: none; } 95% { filter: brightness(2.5); } }
@keyframes bnKen { from { background-size: 110%; background-position: 40% 50%; } to { background-size: 125%; background-position: 60% 40%; } }
/* Partikel */
.pc-particles { position: absolute; inset: 0; pointer-events: none; }
.pc-particles i { position: absolute; left: var(--x); top: -10px; width: var(--z); height: var(--z); border-radius: 50%; animation: ptFall var(--t) linear var(--d) infinite; opacity: .9; }
.pt-sterne i { top: calc(var(--x) * .9); background: #fff; box-shadow: 0 0 8px #fff; animation: ptTwinkle calc(var(--t) / 3) ease-in-out var(--d) infinite alternate; width: calc(var(--z) / 2); height: calc(var(--z) / 2); }
.pt-funken i { top: auto; bottom: -10px; background: #ffb347; box-shadow: 0 0 10px #ff7a1a; animation-name: ptRise; width: calc(var(--z) / 2); height: calc(var(--z) / 2); }
.pt-schnee i { background: #fff; filter: blur(.5px); }
.pt-blueten i { background: #ffc0d6; border-radius: 70% 0 70% 0; animation-name: ptLeaf; }
.pt-blasen i { top: auto; bottom: -20px; background: transparent; border: 1.5px solid rgba(180, 230, 255, .8); animation-name: ptRise; }
.pt-konfetti i { border-radius: 2px; background: hsl(var(--h), 90%, 60%); width: calc(var(--z) * 1.4); height: calc(var(--z) / 1.6); animation-name: ptLeaf; }
@keyframes ptFall { to { transform: translate(30px, 230px); } }
@keyframes ptRise { to { transform: translate(-20px, -230px); opacity: 0; } }
@keyframes ptLeaf { to { transform: translate(60px, 230px) rotate(540deg); } }
@keyframes ptTwinkle { from { opacity: .15; transform: scale(.6); } to { opacity: 1; transform: scale(1.2); } }
/* Kopf */
.pc-head { display: flex; align-items: flex-end; gap: 18px; padding: 0 24px; margin-top: -58px; position: relative; z-index: 2; }
.studio-prev .pc-head { padding: 0 18px; }
.pc-av { padding: 5px; border-radius: 34px; background: var(--card2); flex: none; position: relative; }
.pc-av .avatar { border-radius: 28px; }
.pc-id { flex: 1; min-width: 0; padding-bottom: 4px; }
.pc-name { font-size: 30px; margin: 0; line-height: 1.1; word-break: break-word; }
.pc-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.pc-tags .tag.on { color: var(--good); }
.pc-bio { margin: 8px 0 0; color: #d6dbea; font-style: italic; }
.pc-elo { text-align: center; padding: 10px 16px; border-radius: 16px; background: color-mix(in srgb, var(--acc) 18%, transparent); border: 1px solid color-mix(in srgb, var(--acc) 50%, transparent); margin-bottom: 6px; }
.pc-elo b { display: block; font-size: 28px; line-height: 1; }
.pc-elo span { font-size: 11px; font-weight: 800; color: var(--muted); }
/* Rahmen */
.fr-gold { background: conic-gradient(from var(--a, 0deg), #7a5200, #ffe08a, #c99a2e, #fff1b8, #7a5200); animation: frSpin 4s linear infinite; }
.fr-silber { background: conic-gradient(from var(--a, 0deg), #5a6068, #f4f6f8, #9ea6ae, #ffffff, #5a6068); animation: frSpin 5s linear infinite; }
.fr-neon { background: linear-gradient(135deg, #39f0ff, #ff3df0); box-shadow: 0 0 22px #39f0ff, 0 0 40px rgba(255, 61, 240, .6); animation: frPulse 1.6s ease-in-out infinite alternate; }
.fr-feuer { background: linear-gradient(0deg, #ff3b1a, #ffb347, #fff1b8); box-shadow: 0 -6px 24px #ff6a1a; animation: frPulse .5s ease-in-out infinite alternate; }
.fr-eis { background: linear-gradient(135deg, #e6f9ff, #6fd3ff, #ffffff); box-shadow: 0 0 22px rgba(140, 220, 255, .9); }
.fr-regenbogen { background: conic-gradient(from var(--a, 0deg), red, orange, yellow, lime, cyan, blue, violet, red); animation: frSpin 3s linear infinite; }
.fr-diamant { background: linear-gradient(135deg, #ffffff, #bfe6ff 30%, #ffffff 50%, #d9c8ff 70%, #ffffff); background-size: 200% 200%; box-shadow: 0 0 26px rgba(255, 255, 255, .8); animation: bnShine 3s linear infinite; }
@property --a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes frSpin { to { --a: 360deg; } }
@keyframes frPulse { to { filter: brightness(1.3); } }
/* Namenseffekte */
.nf-glanz { background: linear-gradient(110deg, #fff 35%, color-mix(in srgb, var(--acc, #7c5cff) 60%, #fff) 50%, #fff 65%); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: bnShine 3s linear infinite; }
.nf-gold { background: linear-gradient(110deg, #c99a2e, #fff1b8 45%, #c99a2e 60%, #ffe08a); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: bnShine 4s linear infinite; filter: drop-shadow(0 0 8px rgba(245, 197, 66, .5)); }
.nf-regenbogen { background: linear-gradient(90deg, #ff4d4d, #ffb347, #fff35a, #5aff8a, #5ad7ff, #a35cff, #ff4d4d); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: bnShine 5s linear infinite; }
.nf-feuer { color: #fff1d0; text-shadow: 0 0 6px #ffb347, 0 -2px 10px #ff6a1a, 0 -6px 18px #c2240c; animation: nfFire 1s ease-in-out infinite alternate; }
.nf-eis { color: #eafcff; text-shadow: 0 0 8px #6fd3ff, 0 0 18px #2a9adf; }
.nf-glitch { position: relative; text-shadow: 2px 0 #ff2d55, -2px 0 #22d3ee; animation: nfGlitch 2.2s infinite steps(1); }
@keyframes nfFire { to { text-shadow: 0 0 10px #ffd27a, 0 -4px 14px #ff6a1a, 0 -10px 24px #c2240c; } }
@keyframes nfGlitch { 0%, 88%, 100% { transform: none; text-shadow: 2px 0 #ff2d55, -2px 0 #22d3ee; } 90% { transform: translate(-2px, 1px) skewX(-8deg); text-shadow: -3px 0 #ff2d55, 3px 0 #22d3ee; } 94% { transform: translate(2px, -1px); } }
/* Musik */
.pc-music { display: flex; align-items: center; gap: 12px; margin: 16px 24px 0; padding: 10px 14px; border-radius: 16px; background: color-mix(in srgb, var(--acc) 14%, rgba(255, 255, 255, .03)); border: 1px solid color-mix(in srgb, var(--acc) 40%, transparent); }
.studio-prev .pc-music { margin: 14px 18px 0; }
.pc-play { width: 40px; height: 40px; border-radius: 50%; background: var(--acc); color: #fff; font-weight: 900; flex: none; box-shadow: 0 0 18px color-mix(in srgb, var(--acc) 60%, transparent); }
.pc-mtitle { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.pc-mtitle b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-eq { display: flex; gap: 3px; align-items: flex-end; height: 20px; }
.pc-eq i { width: 4px; height: 4px; border-radius: 2px; background: var(--acc); }
.pc-music.playing .pc-eq i { animation: eq .8s ease-in-out infinite alternate; }
.pc-music.playing .pc-eq i:nth-child(2) { animation-delay: .2s; } .pc-music.playing .pc-eq i:nth-child(3) { animation-delay: .4s; } .pc-music.playing .pc-eq i:nth-child(4) { animation-delay: .1s; }
@keyframes eq { to { height: 20px; } }
.pc-vol { width: 80px; accent-color: var(--acc); }
/* Statistik, Vitrine, Inventar */
.pc-stats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin: 16px 24px 0; }
.studio-prev .pc-stats { margin: 14px 18px 0; grid-template-columns: repeat(3, 1fr); }
.pc-stats div { text-align: center; padding: 10px 4px; border-radius: 12px; background: rgba(255, 255, 255, .04); }
.pc-stats b { display: block; font-size: 20px; }
.pc-stats span { font-size: 11px; color: var(--muted); }
.pc-sec { margin: 16px 24px 0; }
.studio-prev .pc-sec { margin: 14px 18px 0; }
.pc-sec h4 { margin: 0 0 8px; font-size: 14px; display: flex; gap: 8px; align-items: baseline; }
.pc-showcase { display: flex; gap: 14px; align-items: center; padding: 12px 14px; border-radius: 16px; background: linear-gradient(135deg, color-mix(in srgb, var(--acc) 22%, transparent), rgba(255, 255, 255, .02)); border: 1px solid color-mix(in srgb, var(--acc) 45%, transparent); }
.pc-showcase .sc-icon { font-size: 40px; filter: drop-shadow(0 0 14px var(--acc)); animation: float2 3s ease-in-out infinite; }
.pc-showcase b { display: block; font-size: 18px; }
.pc-showcase p { margin: 2px 0 0; }
.pc-inv { display: flex; flex-wrap: wrap; gap: 6px; }
.inv-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 5px 5px; border-radius: 999px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); font-size: 12px; font-weight: 600; }
.inv-chip .sw { width: 22px; height: 22px; border-radius: 50%; flex: none; display: grid; place-items: center; font-style: normal; font-size: 13px; }
.inv-chip .pc-piece { background-size: 90%; background-repeat: no-repeat; background-position: center; background-color: rgba(255, 255, 255, .08); }
/* Studio */
.studio { margin-top: 18px; }
.studio-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.studio-prev { border-radius: 18px; background: var(--card2); box-shadow: var(--shadow); padding-bottom: 16px; position: sticky; top: 90px; overflow: hidden; }
.studio-ctrl h4 { margin: 16px 0 8px; font-size: 14px; }
.studio-ctrl h4:first-child { margin-top: 0; }
.st-row { display: flex; flex-wrap: wrap; gap: 6px; }
.st-opt { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 10px; background: rgba(255, 255, 255, .05); border: 1.5px solid var(--line); font-size: 12px; font-weight: 600; color: var(--muted); }
.st-opt.on { border-color: var(--accent); color: var(--text); background: rgba(124, 92, 255, .16); }
.st-sw { width: 26px; height: 18px; border-radius: 5px; position: relative; overflow: hidden; }
.st-fr { padding: 2px; border-radius: 10px; display: inline-flex; }
.st-fr .avatar { border-radius: 8px; font-size: 14px; }
.st-upload { margin-top: 8px; }
.st-select { width: 100%; padding: 10px 12px; border-radius: 12px; background: rgba(0, 0, 0, .3); border: 1px solid var(--line); color: var(--text); }
.st-toggle { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; }
.st-toggle input { width: 18px; height: 18px; accent-color: var(--accent); }
.st-song { padding: 12px; border-radius: 14px; background: rgba(255, 255, 255, .04); display: grid; gap: 8px; }
.st-vol { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.st-vol input { flex: 1; accent-color: var(--accent); }
@media (max-width: 900px) { .studio-grid { grid-template-columns: 1fr; } .studio-prev { position: static; } .pc-stats { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) {
  .pc-banner { height: 150px; }
  .pc-head { flex-direction: column; align-items: center; text-align: center; gap: 10px; margin-top: -64px; padding: 0 16px !important; }
  .pc-id { width: 100%; }
  .pc-tags { justify-content: center; }
  .pc-name { font-size: 24px; }
  .pc-elo { display: flex; align-items: baseline; gap: 6px; padding: 6px 14px; margin: 0; }
  .pc-elo b { display: inline; font-size: 20px; }
  .pc-music, .pc-stats, .pc-sec { margin-left: 16px !important; margin-right: 16px !important; }
  .pc-vol { width: 60px; }
  .pp-modal .modal-actions, .pp-modal > .pp-wrap > p { margin-left: 16px; margin-right: 16px; }
}
.update-veil { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; background: rgba(8, 10, 18, .82); backdrop-filter: blur(6px); animation: fadeIn .3s ease; }
.update-veil > div { display: grid; justify-items: center; gap: 10px; padding: 28px 36px; border-radius: 22px; background: var(--card); box-shadow: var(--shadow); }
.update-veil b { font-size: 20px; }
.update-veil span { color: var(--muted); }
/* Profil-Look in Rangliste & Spieler-Leisten */
.mini-fr { display: inline-flex; padding: 3px; border-radius: 14px; flex: none; }
.mini-fr .avatar { border-radius: 11px; }
.mini-fr.fr-keiner { padding: 0; }
.lb-who { position: relative; display: inline-flex; align-items: center; gap: 12px; padding: 6px 18px 6px 6px; border-radius: 16px; overflow: hidden; min-width: min(280px, 100%); font-weight: 700; isolation: isolate; }
.lb-who::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10, 12, 20, .25), rgba(10, 12, 20, .55) 70%, rgba(10, 12, 20, .75)); }
.lb-who.bn-standard { background: linear-gradient(110deg, color-mix(in srgb, var(--acc) 45%, transparent), transparent 85%); }
.lb-who::before { z-index: -1; }
.lb-who > * { position: relative; }
.lb-who .pc-particles { position: absolute; }
.lb-name { font-size: 15px; text-shadow: 0 1px 6px rgba(0, 0, 0, .6); }
.lb-name[class*="nf-"]:not(.nf-keiner):not(.nf-feuer):not(.nf-eis):not(.nf-glitch) { text-shadow: none; }
.lb-who .dot { margin-left: 2px; }
.lb .lb-who.bn-sunset::before { width: 50px; height: 50px; margin-left: -25px; bottom: -30px; }
.player-bar .pname .nf-gold, .player-bar .pname .nf-glanz, .player-bar .pname .nf-regenbogen { font-weight: 800; }
@media (max-width: 560px) { .lb-who { min-width: 0; gap: 8px; padding-right: 10px; } }
.lb td:nth-child(4) { white-space: nowrap; }
@media (max-width: 560px) { .lb th:nth-child(5), .lb td:nth-child(5) { display: none; } .lb td, .lb th { padding: 10px 6px; } .lb .lb-who { padding: 4px 8px 4px 4px; } .lb .lb-name { font-size: 13px; } }
/* Admin-Glanz (nur für Admins) */
.nf-admin { background: linear-gradient(100deg, #9b5cff 0%, #c58bff 22%, #ffffff 30%, #c58bff 38%, #8f7bff 55%, #6aa8ff 75%, #b46bff 100%); background-size: 260% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 800; animation: adminShine 3.2s linear infinite; filter: drop-shadow(0 0 6px rgba(168, 85, 247, .75)) drop-shadow(0 0 16px rgba(120, 90, 255, .45)); }
@keyframes adminShine { from { background-position: 130% 0; } to { background-position: -130% 0; } }
.admin-tag { display: inline-flex; align-items: center; gap: 4px; padding: 2px 7px; border-radius: 6px; font-size: 10px; font-weight: 900; letter-spacing: .08em; color: #fff; background: linear-gradient(100deg, #7c3aed, #a855f7 40%, #e9d5ff 50%, #a855f7 60%, #6366f1); background-size: 260% 100%; animation: adminShine 3.2s linear infinite; box-shadow: 0 0 12px rgba(168, 85, 247, .6); text-shadow: 0 1px 2px rgba(0, 0, 0, .4); }
.lb-who .admin-tag, .player-bar .admin-tag { margin-left: 6px; }
.pp-loading { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 260px; color: var(--muted); font-weight: 600; }
/* Trainingsmodus */
.train-toggle { display: flex; align-items: center; gap: 16px; width: 100%; padding: 16px 20px; margin-bottom: 22px; border-radius: 20px; background: var(--card); box-shadow: var(--shadow); text-align: left; color: var(--text); transition: background .3s, box-shadow .3s; }
.train-toggle.on { background: linear-gradient(120deg, rgba(16, 185, 129, .22), rgba(34, 211, 238, .14)); box-shadow: 0 0 0 1.5px rgba(52, 211, 153, .7), 0 20px 50px -25px rgba(16, 185, 129, .8); }
.tt-icon { font-size: 34px; }
.tt-text { flex: 1; display: grid; gap: 2px; }
.tt-text b { font-size: 18px; }
.tt-text small { color: var(--muted); font-size: 13px; }
.tt-switch { width: 54px; height: 30px; border-radius: 99px; background: rgba(255, 255, 255, .12); position: relative; flex: none; transition: background .3s; }
.tt-switch i { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform .3s cubic-bezier(.3, 1.4, .5, 1); }
.train-toggle.on .tt-switch { background: #10b981; }
.train-toggle.on .tt-switch i { transform: translateX(24px); }
.eval-box { grid-column: 1 / -1; display: grid; gap: 8px; padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, .04); min-height: 58px; }
.eval-bar { height: 12px; border-radius: 99px; background: #1b1d26; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.eval-bar i { display: block; height: 100%; background: linear-gradient(90deg, #e9ecf3, #ffffff); transition: width .6s cubic-bezier(.2, .8, .2, 1); }
.eval-txt { display: flex; align-items: baseline; gap: 10px; font-size: 13px; color: var(--muted); }
.eval-txt b { font-size: 16px; color: var(--text); min-width: 44px; }
.sq.coach::after { content: ""; position: absolute; inset: 0; background: rgba(52, 211, 153, .45); box-shadow: inset 0 0 0 3px rgba(52, 211, 153, .95); animation: coachPulse 1s ease-in-out infinite alternate; z-index: 0; }
@keyframes coachPulse { from { opacity: .55; } to { opacity: 1; } }
/* Hugo – die Legende */
.bot-card.legend { background: radial-gradient(ellipse at 50% 0%, rgba(192, 132, 252, .25), transparent 60%), var(--card); box-shadow: 0 0 0 1.5px rgba(192, 132, 252, .6), 0 30px 70px -30px rgba(168, 85, 247, .9); }
.bot-card.legend::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1.5px; background: conic-gradient(from var(--a, 0deg), #a855f7, #22d3ee, #f472b6, #a855f7); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: frSpin 4s linear infinite; pointer-events: none; }
.bot-card.legend h3 { background: linear-gradient(100deg, #c084fc, #fff 45%, #22d3ee 55%, #c084fc); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: adminShine 3s linear infinite; }
.bot-card .inf { font-size: 18px; color: #e9d5ff; text-shadow: 0 0 10px #a855f7; }
.queen-btn { margin-top: -6px; background: linear-gradient(120deg, rgba(245, 197, 66, .18), rgba(192, 132, 252, .18)); border: 1px solid rgba(245, 197, 66, .55); color: #fde68a; display: grid; gap: 1px; }
.queen-btn small { font-weight: 500; font-size: 11px; color: var(--muted); }
.queen-btn:hover { box-shadow: 0 0 22px -4px rgba(245, 197, 66, .7); }
/* Private Lobby */
.code-wrap { position: relative; display: grid; justify-items: center; gap: 6px; }
.code-wrap.hidden-code .code-display { filter: blur(9px); user-select: none; }
.code-eye { font-size: 12px; font-weight: 700; color: var(--muted); padding: 4px 10px; border-radius: 99px; background: rgba(255, 255, 255, .06); }
.code-wrap.hidden-code .code-eye { position: absolute; top: 50%; transform: translateY(-75%); background: var(--accent); color: #fff; padding: 8px 14px; font-size: 13px; box-shadow: 0 8px 24px -8px var(--accent); }
.room-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.room-actions .btn { padding-left: 8px; padding-right: 8px; font-size: 13px; }
.queen-tag { background: linear-gradient(120deg, rgba(245, 197, 66, .25), rgba(192, 132, 252, .25)); color: #fde68a; vertical-align: middle; }
.mode-seg button[data-v="queens"].on { background: linear-gradient(120deg, #b88a1a, #8b5cf6); color: #fff; }
.big-code { text-align: center; display: grid; gap: 18px; padding: 10px 0; }
.big-digits { display: flex; justify-content: center; gap: clamp(6px, 1.5vw, 14px); }
.big-digits span { width: clamp(44px, 11vw, 96px); height: clamp(64px, 15vw, 130px); display: grid; place-items: center; font-size: clamp(38px, 9vw, 84px); font-weight: 900; border-radius: 18px; background: rgba(124, 92, 255, .12); border: 2px solid rgba(124, 92, 255, .55); box-shadow: 0 0 30px -10px var(--accent); animation: pop .4s backwards; font-variant-numeric: tabular-nums; }
.unrated { display: grid; gap: 4px; text-align: center; margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: rgba(245, 158, 11, .12); border: 1px solid rgba(245, 158, 11, .45); color: #fcd34d; }
.unrated span { color: var(--text); font-size: 13px; }
/* Durchbruch-Finisher (Vierte Wand / Realitätsriss) */
.bx-crack { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; }
.finisher.bx-open { background: transparent !important; }
.finisher.bx-open > canvas, .finisher.bx-open .fx-vignette, .finisher.bx-open .fx-bar, .finisher.bx-open .fx-flash, .finisher.bx-open .fx-lines { display: none; }
.finisher.bx-open .fx-main { text-shadow: 0 6px 40px rgba(0, 0, 0, .9), 0 0 2px #000; }
.bx-layer { position: fixed; inset: 0; z-index: 499; pointer-events: none; overflow: hidden; }
.bx-shard { position: absolute; inset: 0; background-size: 100% 100%; will-change: transform; }
.bx-rift { position: absolute; top: -5%; width: 10px; height: 110%; margin-left: -5px; border-radius: 10px; background: linear-gradient(180deg, transparent, #ff4fd8 12%, #ffffff 50%, #7af7ff 88%, transparent); box-shadow: 0 0 30px 10px rgba(255, 79, 216, .8), 0 0 90px 40px rgba(122, 247, 255, .45); }
.bx-bang { position: absolute; inset: -30%; background: radial-gradient(circle at calc(var(--x) + 30vw) 50%, #fff 0, rgba(255, 255, 255, .95) 12%, rgba(255, 79, 216, .55) 30%, rgba(122, 247, 255, .2) 45%, transparent 60%); }
.bp-fin { cursor: pointer; color: #fff; align-content: center; gap: 0; line-height: 1; transition: transform .2s; }
.bp-fin small { font-size: 9px; font-weight: 800; letter-spacing: .03em; opacity: .85; margin-top: 3px; }
.bp-fin:hover { transform: scale(1.08); }
.shop-item.bundle .ribbon.new { right: auto; left: 12px; background: linear-gradient(120deg, #7af7ff, #ff4fd8); color: #12001a; animation: adminShine 3s linear infinite; background-size: 200% 100%; }
.shop-item.bundle.ultra { box-shadow: 0 0 0 1.5px rgba(255, 79, 216, .55), 0 30px 70px -30px rgba(122, 247, 255, .7); }
#card-invite h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
/* ================================================================ 4er-Schach */
.four-card { margin-bottom: 18px; display: grid; gap: 14px; background: radial-gradient(ellipse at 0% 0%, rgba(239, 68, 68, .14), transparent 45%), radial-gradient(ellipse at 100% 0%, rgba(59, 130, 246, .14), transparent 45%), radial-gradient(ellipse at 100% 100%, rgba(34, 197, 94, .12), transparent 45%), radial-gradient(ellipse at 0% 100%, rgba(234, 179, 8, .12), transparent 45%), var(--card); }
.four-head { display: flex; gap: 16px; align-items: flex-start; }
.four-head .ic { flex: none; }
.four-head h3 { margin: 0 0 4px; display: flex; align-items: center; gap: 8px; }
.four-head p { margin: 0; color: var(--muted); font-size: 14px; }
.new-tag { background: linear-gradient(120deg, #ef4444, #3b82f6, #eab308, #22c55e); color: #fff; }
.four-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.four-row .seg { flex: 0 0 auto; }
.four-lobby { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; }
.four-seats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seat { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: rgba(255, 255, 255, .04); border: 1px dashed var(--line); min-height: 50px; }
.seat.on { border-style: solid; background: rgba(124, 92, 255, .1); }
.seat b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seat-empty { width: 34px; height: 34px; display: grid; place-items: center; opacity: .5; }
.four-actions-row { grid-template-columns: repeat(4, auto); justify-content: start; }
.fdot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--fc); box-shadow: 0 0 8px var(--fc); vertical-align: -1px; flex: none; }
.four-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; align-items: start; }
.four-board-wrap { display: grid; place-items: center; }
.fb { position: relative; width: min(100%, calc(100vh - 150px)); aspect-ratio: 1; border-radius: 16px; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
.fb > div { position: absolute; inset: 0; }
.fb-pieces, .fb-marks { pointer-events: none; }
.fsq, .fpc, .fmk { position: absolute; left: 0; top: 0; width: calc(100% / 14); height: calc(100% / 14); }
.fsq.l { background: var(--fl, #f0d9b5); }
.fsq.d { background: var(--fd, #b58863); }
.fpc { background-size: 88%; background-position: center 60%; background-repeat: no-repeat; transition: transform .28s cubic-bezier(.3, .8, .3, 1); z-index: 2; }
.fpc.dead { filter: saturate(0) brightness(.85); opacity: .75; }
.fpc.skinned { filter: drop-shadow(0 0 1.5px var(--fc)) drop-shadow(0 0 1px var(--fc)); }
.fmk.last { background: color-mix(in srgb, var(--lc, #ffd84d) 40%, transparent); }
.fmk.last.c0 { --lc: #ef4444; } .fmk.last.c1 { --lc: #3b82f6; } .fmk.last.c2 { --lc: #eab308; } .fmk.last.c3 { --lc: #22c55e; }
.fmk.sel { background: rgba(124, 92, 255, .5); }
.fmk.check { background: radial-gradient(circle, #ff2d55 0%, rgba(255, 45, 85, .55) 40%, transparent 75%); }
.fmk.dot::after { content: ""; position: absolute; inset: 37%; border-radius: 50%; background: rgba(20, 20, 30, .35); }
.fmk.dot.cap::after { inset: 6%; background: none; border: 4px solid rgba(20, 20, 30, .35); }
.fb-shake { animation: fbShake .45s ease; }
@keyframes fbShake { 20% { translate: -6px 3px; } 40% { translate: 5px -4px; } 60% { translate: -3px -2px; } 80% { translate: 2px 2px; } }
.four-side { display: grid; gap: 12px; }
.four-status { font-size: 15px; display: flex; align-items: center; gap: 8px; }
.four-players h4 { margin: 0 0 10px; }
.fp { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; border: 1.5px solid transparent; transition: background .3s, border-color .3s; }
.fp + .fp { margin-top: 6px; }
.fp.turn { border-color: var(--fc); background: color-mix(in srgb, var(--fc) 14%, transparent); box-shadow: 0 0 20px -8px var(--fc); }
.fp.me .fp-name b::after { content: " ★"; color: var(--fc); }
.fp.out { opacity: .5; }
.fp.out .avatar { filter: grayscale(1); }
.fp.boom { animation: fpBoom .8s ease; }
@keyframes fpBoom { 0% { background: rgba(255, 45, 85, .6); scale: 1.05; } 100% { background: transparent; scale: 1; } }
.fp-name { flex: 1; min-width: 0; display: grid; }
.fp-name b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fp-name span { font-size: 11px; color: var(--muted); }
.fp-clock { font-variant-numeric: tabular-nums; font-weight: 800; padding: 4px 8px; border-radius: 8px; background: rgba(0, 0, 0, .3); }
.fp-clock.low { color: #ff6b6b; }
.fp-out { font-size: 12px; color: var(--muted); }
.four-rank { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 6px; }
.four-rank li { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 12px; background: rgba(255, 255, 255, .04); }
.four-rank li.me { background: rgba(124, 92, 255, .16); box-shadow: inset 0 0 0 1px rgba(124, 92, 255, .5); }
.four-rank li > span:first-child { width: 26px; font-size: 18px; text-align: center; }
.four-rank li b { flex: 1; }
@media (max-width: 1000px) {
  .four-layout { grid-template-columns: 1fr; }
  .fb { width: min(100%, calc(100vh - 220px), 760px); }
  .four-side { grid-template-columns: 1fr 1fr; }
  .four-status, .four-actions { grid-column: 1 / -1; }
  .four-lobby { grid-template-columns: 1fr; }
  .four-actions-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) { .four-side { grid-template-columns: 1fr; } .four-seats { grid-template-columns: 1fr; } }
.fb { width: min(100%, calc(100vh - 150px)); filter: drop-shadow(0 24px 40px rgba(0, 0, 0, .55)); }
@media (max-width: 1440px) { .fb { width: min(100%, calc(100vh - 215px)); } }
@supports (height: 100dvh) { .fb { width: min(100%, calc(100dvh - 150px)); } @media (max-width: 1440px) { .fb { width: min(100%, calc(100dvh - 215px)); } } }
@media (max-width: 1000px) { .fb { width: min(100%, 760px); } }
.adm-h { margin: 14px 0 6px; font-size: 14px; display: flex; gap: 8px; align-items: baseline; }
/* Live zuschauen */
.live-card { margin-bottom: 18px; display: grid; gap: 12px; border: 1px solid rgba(255, 45, 85, .35); background: radial-gradient(ellipse at 0% 0%, rgba(255, 45, 85, .14), transparent 50%), var(--card); }
.live-head { display: flex; align-items: center; gap: 10px; }
.live-head h3 { margin: 0; }
.live-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #ff2d55; box-shadow: 0 0 0 0 rgba(255, 45, 85, .7); animation: livePulse 1.4s infinite; vertical-align: 0; }
@keyframes livePulse { 0% { box-shadow: 0 0 0 0 rgba(255, 45, 85, .7); } 70% { box-shadow: 0 0 0 9px rgba(255, 45, 85, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 45, 85, 0); } }
.live-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 10px; }
.live-item { display: grid; grid-template-columns: 1fr auto 1fr; grid-template-areas: "w vs b" "go go go"; gap: 8px 10px; align-items: center; padding: 12px; border-radius: 14px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); color: var(--text); text-align: left; transition: transform .2s, border-color .2s; }
.live-item:hover { transform: translateY(-2px); border-color: rgba(255, 45, 85, .6); }
.lv-p { display: flex; align-items: center; gap: 8px; min-width: 0; grid-area: w; }
.lv-p.right { grid-area: b; justify-content: flex-end; }
.lv-p b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 14px; }
.lv-p small, .lv-vs small { color: var(--muted); font-size: 11px; font-weight: 600; }
.lv-vs { grid-area: vs; display: grid; justify-items: center; font-weight: 900; color: #ff6b81; }
.lv-go { grid-area: go; text-align: center; font-weight: 800; font-size: 13px; padding: 7px; border-radius: 10px; background: rgba(255, 45, 85, .15); color: #ff8fa3; }
/* Admin-Bilanz */
.adm-vs { border-top: 1px dashed rgba(168, 85, 247, .5); padding-top: 12px; }
.adm-vs h4 { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; }
.vs-table td, .vs-table th { padding: 7px 8px; }
.vs-table .who { display: flex; align-items: center; gap: 8px; }
.vs-bar { width: 60px; height: 6px; border-radius: 99px; background: rgba(255, 79, 109, .35); overflow: hidden; display: inline-block; vertical-align: middle; margin-right: 6px; }
.vs-bar i { display: block; height: 100%; background: var(--good); }
@media (max-width: 560px) { .vs-table th:nth-child(5), .vs-table td:nth-child(5), .vs-table th:nth-child(7), .vs-table td:nth-child(7) { display: none; } }
.live-card.idle { border-color: var(--line); background: var(--card); padding-top: 14px; padding-bottom: 14px; }
.live-card.idle .live-head { flex-wrap: wrap; }
.live-dot.off { background: #6b7280; animation: none; box-shadow: none; }
/* ================================================================ Freunde & Chat */
.nav .ni { position: relative; }
.nav-badge { position: absolute; top: -6px; right: -12px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: #ff2d55; color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--bg); font-style: normal; }
.nav-badge.inline { position: static; display: inline-grid; box-shadow: none; margin-left: 4px; vertical-align: middle; }
#notify-root { position: fixed; top: 76px; right: 16px; z-index: 900; display: grid; gap: 10px; width: min(380px, calc(100vw - 24px)); pointer-events: none; }
.notify { pointer-events: auto; display: flex; gap: 12px; align-items: flex-start; padding: 12px 12px 12px 14px; border-radius: 16px; background: rgba(24, 27, 42, .97); border: 1px solid rgba(124, 92, 255, .45); box-shadow: 0 20px 50px -15px rgba(0, 0, 0, .8), 0 0 30px -12px var(--accent); animation: ntIn .35s cubic-bezier(.2, 1.3, .4, 1); }
.notify.clickable { cursor: pointer; }
.notify.out { animation: ntOut .25s ease forwards; }
@keyframes ntIn { from { opacity: 0; transform: translateX(40px) scale(.96); } }
@keyframes ntOut { to { opacity: 0; transform: translateX(40px); } }
.nt-icon { font-size: 28px; line-height: 1; flex: none; }
.nt-body { flex: 1; min-width: 0; display: grid; gap: 3px; }
.nt-body b { font-size: 14px; }
.nt-body > span { font-size: 13px; color: #cfd5e6; overflow-wrap: anywhere; }
.nt-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.nt-x { color: var(--muted); font-size: 13px; padding: 2px 4px; }
.friends-layout { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 18px; align-items: start; }
.fr-side { display: grid; gap: 8px; max-height: calc(100vh - 190px); overflow-y: auto; }
.fr-search input { width: 100%; padding: 12px 14px; border-radius: 12px; background: rgba(0, 0, 0, .3); border: 1px solid var(--line); color: var(--text); font-size: 15px; }
.fr-h { margin: 10px 0 2px; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.fr-row { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; width: 100%; text-align: left; color: var(--text); }
.fr-row.hl { background: rgba(124, 92, 255, .12); }
.fr-friend { transition: background .2s; }
.fr-friend:hover { background: rgba(255, 255, 255, .05); }
.fr-friend.active { background: rgba(124, 92, 255, .18); box-shadow: inset 0 0 0 1px rgba(124, 92, 255, .45); }
.fr-name { flex: 1; min-width: 0; display: grid; }
.fr-name b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fr-name span { font-size: 12px; color: var(--muted); }
.fr-av { position: relative; flex: none; display: inline-flex; }
.fr-av .dot { position: absolute; right: -2px; bottom: -2px; box-shadow: 0 0 0 2px var(--card); }
.fr-chat { display: flex; flex-direction: column; height: calc(100vh - 190px); min-height: 420px; padding: 0; overflow: hidden; }
.fr-empty { margin: auto; display: grid; justify-items: center; gap: 6px; text-align: center; padding: 30px; }
.ch-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.ch-back { display: none; }
.ch-msgs { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.ch-hint { margin: auto; text-align: center; color: var(--text); }
.ch-msg { align-self: flex-start; max-width: 78%; padding: 8px 12px 6px; border-radius: 16px 16px 16px 4px; background: rgba(255, 255, 255, .07); display: grid; gap: 2px; animation: pop .2s; }
.ch-msg span { white-space: pre-wrap; overflow-wrap: anywhere; }
.ch-msg small { font-size: 10px; color: var(--muted); justify-self: end; }
.ch-msg.me { align-self: flex-end; background: linear-gradient(135deg, #7c5cff, #5b8cff); border-radius: 16px 16px 4px 16px; }
.ch-msg.me small { color: rgba(255, 255, 255, .7); }
.ch-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.ch-form input { flex: 1; padding: 12px 14px; border-radius: 12px; background: rgba(0, 0, 0, .3); border: 1px solid var(--line); color: var(--text); font-size: 15px; }
@media (max-width: 1440px) { .fr-side { max-height: calc(100vh - 250px); } .fr-chat { height: calc(100vh - 250px); } #notify-root { top: 70px; } }
@media (max-width: 900px) {
  .friends-layout { grid-template-columns: 1fr; }
  .friends-layout.chat-open .fr-side { display: none; }
  .friends-layout:not(.chat-open) .fr-chat { display: none; }
  .fr-side { max-height: none; }
  .fr-chat { height: calc(100dvh - 230px); }
  .ch-back { display: inline-flex; }
  #notify-root { left: 12px; right: 12px; width: auto; }
}
.ch-form input { min-width: 0; }
.ch-head .fr-name { min-width: 0; }
.ch-head .btn { flex: none; }
@media (max-width: 560px) {
  .ch-head { gap: 6px; padding: 10px; }
  .ch-head .btn { padding: 8px 10px; }
  #ch-challenge { font-size: 0; }
  #ch-challenge::before { content: "⚔️"; font-size: 16px; }
  .ch-head .fr-name span { font-size: 11px; }
  .ch-msg { max-width: 86%; }
}
@media (max-width: 900px) {
  #view-friends:has(.chat-open) .section-title { display: none; }
  .fr-chat { height: calc(100vh - 215px); }
  @supports (height: 100dvh) { .fr-chat { height: calc(100dvh - 215px); } }
}
/* ================================================================ Admin-Panel */
.adm-tabs { margin-bottom: 14px; }
.adm-panel { display: grid; gap: 10px; }
.adm-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.adm-tile { padding: 14px; border-radius: 14px; background: rgba(255, 255, 255, .04); display: grid; gap: 2px; }
.adm-tile b { font-size: 26px; }
.adm-tile span { font-weight: 700; }
.adm-tile small { color: var(--muted); font-size: 12px; }
.adm-tops { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 8px; }
.adm-top { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.adm-top li { display: flex; gap: 10px; padding: 7px 10px; border-radius: 10px; background: rgba(255, 255, 255, .03); }
.adm-top li b { flex: 1; }
.adm-matches { display: grid; gap: 6px; }
.adm-match { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto auto; gap: 10px; align-items: center; width: 100%; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .04); border: 1px solid transparent; color: var(--text); text-align: left; }
button.adm-match:hover { border-color: rgba(124, 92, 255, .5); }
.adm-match.annulled { opacity: .55; }
.am-icon { font-size: 20px; text-align: center; }
.am-who { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.am-res { display: grid; text-align: right; }
.am-res small, .am-when { font-size: 11px; color: var(--muted); }
.am-when { text-align: right; min-width: 90px; }
.ban-tag { background: rgba(244, 63, 94, .2); color: #fb7185; }
.ann-form { display: grid; gap: 10px; }
.ann-form textarea { width: 100%; padding: 12px; border-radius: 12px; background: rgba(0, 0, 0, .3); border: 1px solid var(--line); color: var(--text); font: inherit; resize: vertical; }
.replay-modal { width: min(1000px, 100%); }
.rp-head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.rp-head h3 { margin: 0; }
.rp-body { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 16px; margin-top: 10px; }
.rp-board { width: min(100%, 520px); justify-self: center; }
.rp-board .mini-board { width: 100%; }
.rp-board .fb { width: 100%; }
.mini-board i.rp-last { box-shadow: inset 0 0 0 100vmax rgba(255, 216, 77, .38); }
.rp-side { display: grid; gap: 6px; align-content: start; }
.rp-player { font-size: 13px; padding: 6px 8px; border-radius: 10px; background: rgba(255, 255, 255, .04); }
.rp-moves { display: flex; flex-wrap: wrap; gap: 4px; max-height: 300px; overflow-y: auto; margin-top: 6px; }
.rp-moves button { padding: 4px 7px; border-radius: 8px; font-size: 12px; font-weight: 600; background: rgba(255, 255, 255, .04); color: var(--text); }
.rp-moves button i { color: var(--muted); font-style: normal; margin-right: 3px; }
.rp-moves button.on { background: var(--accent); color: #fff; }
.rp-ctrl { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-top: 12px; }
.rp-ctrl input[type=range] { flex: 1; min-width: 120px; accent-color: var(--accent); }
@media (max-width: 760px) { .rp-body { grid-template-columns: 1fr; } .adm-tops { grid-template-columns: 1fr; } .adm-match { grid-template-columns: 28px minmax(0, 1fr) auto; } .am-when { display: none; } }
/* Warte-Anzeige mitten auf dem Brett */
.board-frame { position: relative; }
.board-wait { position: absolute; inset: 0; z-index: 40; display: grid; place-items: center; background: rgba(8, 10, 18, .55); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); border-radius: inherit; animation: fadeIn .25s ease; }
.bw-card { display: grid; justify-items: center; gap: 8px; text-align: center; padding: 22px 26px; max-width: 78%; border-radius: 20px; background: rgba(20, 23, 36, .94); border: 1px solid rgba(124, 92, 255, .45); box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .9); }
.bw-icon { font-size: 34px; line-height: 1; }
.bw-spin { width: 26px; height: 26px; }
.bw-card b { font-size: 18px; }
.bw-card span { color: var(--muted); font-size: 13px; }
.bw-count { margin-top: 4px; padding: 6px 12px; border-radius: 99px; background: rgba(255, 45, 85, .15); color: #ff8fa3; font-size: 13px; }
.bw-count b { font-size: 15px; font-variant-numeric: tabular-nums; }

/* ================================================================ 3D-Brett (Shop: 3.000 Münzen) */
.board-col:has(.board-frame.b3d) { perspective: 1500px; perspective-origin: 50% 0%; }
.board-frame.b3d { rotate: x 32deg; transform-origin: 50% 70%; transform-style: preserve-3d; margin: -3% 0 5%;
  box-shadow: 0 6px 0 color-mix(in srgb, var(--frame) 80%, #000), 0 12px 0 color-mix(in srgb, var(--frame) 60%, #000), 0 16px 0 color-mix(in srgb, var(--frame) 45%, #000), 0 60px 50px -10px rgba(0, 0, 0, .85), inset 0 1px 0 rgba(255, 255, 255, .25); }
.board-frame.b3d .board, .board.b3d .b-pieces { transform-style: preserve-3d; }
.board.b3d .b-pieces { translate: 0 0 1px; }
.board.b3d .piece { background-size: 0 0 !important; transform-style: preserve-3d; }
.board.b3d .piece::before { content: ""; position: absolute; left: -6%; right: -6%; bottom: 6%; height: 150%; background-image: inherit; background-size: 100% auto; background-repeat: no-repeat; background-position: center bottom;
  transform-origin: 50% 100%; rotate: x -32deg; filter: drop-shadow(0 3px 2px rgba(0, 0, 0, .35)); pointer-events: none; }
.board.b3d .piece::after { content: ""; position: absolute; left: 16%; right: 16%; bottom: 4%; height: 22%; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .5), transparent); pointer-events: none; }
.board.b3d .piece.land, .board.b3d .piece.promo-glow { animation: none; }
.board-frame.b3d.mated .board { animation: none; }
.board-frame.b3d.mated .sq { animation: mated 1.2s ease forwards; }
.board.b3d .b-coords { opacity: .8; }
.prev:has(.mini-board.b3d), .hero-tilt:has(.mini-board.b3d), .rp-board:has(.mini-board.b3d) { perspective: 700px; }
.mini-board.b3d { rotate: x 28deg; overflow: visible; box-shadow: 0 0 0 4px var(--frame), 0 6px 0 3px color-mix(in srgb, var(--frame) 70%, #000), 0 22px 30px -8px rgba(0, 0, 0, .8); }

/* ================================================================ 1.15: Bedenkzeit, 2 vs 2, Gruppen, Replays, Formen */
.time-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.join-time { display: grid; gap: 6px; margin: -2px 0 2px; }
.join-time .seg button { padding: 6px 9px; font-size: 12px; }
.play-card .seg { justify-content: center; }
/* 2 vs 2 Lobby */
.team-cols { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; }
.team-col { display: grid; gap: 8px; }
.team-col h4 { margin: 0; font-size: 13px; display: flex; align-items: center; gap: 4px; color: var(--muted); }
.team-vs { font-weight: 900; font-size: 18px; color: var(--muted); }
.team-h { margin: 10px 0 6px; font-size: 12px; font-weight: 700; color: var(--muted); display: flex; align-items: center; gap: 4px; text-transform: uppercase; letter-spacing: .04em; }
.team-h:first-of-type { margin-top: 2px; }
.team-h.won { color: var(--gold, #f2cc60); }
.mode-seg { margin-bottom: 4px; }
@media (max-width: 560px) { .team-cols { grid-template-columns: 1fr; } .team-vs { text-align: center; } }
/* Gruppen */
.fr-h-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; }
.fr-h-row .fr-h { margin: 0; }
.grp-av { position: relative; flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-size: 19px; background: linear-gradient(135deg, rgba(124, 92, 255, .35), rgba(34, 211, 238, .25)); }
.grp-av.big { width: 40px; height: 40px; }
.grp-av i { position: absolute; right: -4px; bottom: -4px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 99px; background: var(--card); box-shadow: 0 0 0 1.5px var(--line); font-size: 10px; font-style: normal; font-weight: 800; display: grid; place-items: center; }
.fr-group.active { background: rgba(124, 92, 255, .16); }
.grp-pick { display: grid; gap: 4px; max-height: 300px; overflow: auto; padding-right: 4px; }
.grp-opt { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: rgba(255, 255, 255, .04); cursor: pointer; }
.grp-opt:has(input:checked) { background: rgba(124, 92, 255, .18); box-shadow: inset 0 0 0 1px var(--accent); }
.grp-opt input { width: 18px; height: 18px; accent-color: var(--accent); }
.grp-opt .muted { margin-left: auto; }
.grp-members { display: flex; gap: 6px; overflow-x: auto; padding: 8px 14px; border-bottom: 1px solid var(--line); }
.grp-mem { position: relative; display: flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; border-radius: 99px; background: rgba(255, 255, 255, .05); font-size: 12px; white-space: nowrap; color: var(--text); flex: none; }
.grp-mem .dot { position: absolute; left: 24px; bottom: 2px; }
.ch-sys { align-self: center; font-size: 11px; color: var(--muted); padding: 4px 10px; border-radius: 99px; background: rgba(255, 255, 255, .04); text-align: center; }
.ch-who { font-style: normal; font-size: 11px; font-weight: 700; color: var(--accent2, #8fb3ff); display: flex; align-items: center; gap: 5px; }
.ch-invite { display: grid; gap: 4px; margin: 4px 0 2px; padding: 8px 10px; border-radius: 10px; background: rgba(0, 0, 0, .22); }
.ch-invite span { font-size: 12px; opacity: .85; }
.ch-invite .btn { justify-self: start; }
/* Replays */
.rp-list { display: grid; gap: 6px; }
.rp-item { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto auto 28px; gap: 12px; align-items: center; width: 100%; padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, .04); border: 1px solid transparent; color: var(--text); text-align: left; transition: .15s; }
.rp-item:hover { border-color: var(--accent); background: rgba(124, 92, 255, .1); }
.rp-who { display: grid; min-width: 0; }
.rp-who b, .rp-who small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rp-who small, .rp-res small, .rp-when { font-size: 11px; color: var(--muted); }
.rp-res { display: grid; text-align: right; }
.rp-when { text-align: right; min-width: 92px; }
.rp-play { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); font-size: 11px; }
.rp-empty { display: grid; justify-items: center; gap: 6px; padding: 40px 10px; text-align: center; }
.mini-board.rp-flip { transform: rotate(180deg); }
.mini-board .rp-unflip { transform: rotate(180deg); }
.history li.clickable { cursor: pointer; transition: background .15s; }
.history li.clickable:hover { background: rgba(124, 92, 255, .12); }
@media (max-width: 600px) { .rp-item { grid-template-columns: 28px minmax(0, 1fr) auto; } .rp-when, .rp-play { display: none; } }
/* Formen im Shop */
.shop-note { margin: 12px 0 0; }
.shape-prev { display: grid; gap: 4px; padding: 14px 10px !important; background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(0, 0, 0, .3)) !important; }
.shape-row { display: grid; grid-template-columns: repeat(6, 1fr); }
.shape-row i { aspect-ratio: 1; background-size: 90%; background-repeat: no-repeat; background-position: center; }
.shop-item.ultra:not(.bundle) { box-shadow: 0 0 0 1.5px rgba(255, 196, 80, .6), 0 30px 70px -30px rgba(255, 196, 80, .6); }
.shop-item:not(.bundle) .ribbon.new { right: auto; left: 12px; background: linear-gradient(120deg, #ffd166, #ff8a3a); color: #1a0d00; }
/* Mobile Leiste mit 7 Tabs */
@media (max-width: 760px) { .nav button { padding: 6px 2px; flex: 1; min-width: 0; font-size: 10px; } .nav button span:last-child { overflow: hidden; text-overflow: ellipsis; max-width: 100%; } }
/* ================================================================ Spielbares 3D-Brett */
.board.mode3d { overflow: visible; }
.board.mode3d > .b-squares, .board.mode3d > .b-hints, .board.mode3d > .b-pieces, .board.mode3d > .b-coords, .board.mode3d .move-badge, .board.mode3d .burst { visibility: hidden; }
.board.mode3d > .webgl3d { position: absolute; inset: -14px; width: calc(100% + 28px); height: calc(100% + 28px); z-index: 6; display: block; touch-action: none; cursor: pointer; }
.board.mode3d .promo { z-index: 20; }
.board-frame.frame3d { background: radial-gradient(ellipse at 50% 60%, rgba(124, 92, 255, .12), transparent 70%); box-shadow: none; }
.b3d-toggle { position: absolute; top: -12px; right: -12px; z-index: 30; padding: 6px 10px; border-radius: 99px; font-size: 12px; font-weight: 800; background: rgba(20, 23, 36, .92); border: 1px solid rgba(124, 92, 255, .55); color: var(--text); box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .8); }
.b3d-toggle[hidden] { display: none; }
/* Echtes 3D-Brett (WebGL) hat Vorrang vor der CSS-Schräglage des Shop-3D-Bretts */
.board-col:has(.board-frame.frame3d) { perspective: none; }
.board-frame.b3d.frame3d { rotate: none; margin: 0; transform-style: flat; }
/* 3D-Brett im Finisher-Look: dunkle Bühne mit runden Ecken */
.board.mode3d > .webgl3d { border-radius: 18px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .9), 0 0 0 1px rgba(124, 92, 255, .25); }
.board-frame.frame3d { background: none; box-shadow: none; }
.board-frame.frame3d::after { content: ""; position: absolute; inset: 0; border-radius: 18px; pointer-events: none; z-index: 7; background: radial-gradient(ellipse at 50% 55%, transparent 55%, rgba(0, 0, 0, .55) 100%); }
/* ================================================================ Inventar */
.inv-hero { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 22px; align-items: center; margin-bottom: 16px; background: radial-gradient(ellipse at 0% 0%, rgba(124, 92, 255, .18), transparent 55%), var(--card); }
.inv-look .mini-board { width: 100%; border-radius: 12px; box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .8); }
.inv-info { display: grid; gap: 12px; align-content: start; }
.inv-info h3 { margin: 0; }
.inv-equipped { display: flex; flex-wrap: wrap; gap: 6px; }
.inv-equipped span { padding: 6px 10px; border-radius: 10px; background: rgba(255, 255, 255, .05); font-size: 13px; color: var(--muted); }
.inv-equipped b { color: var(--text); }
.inv-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.inv-stats div { padding: 10px; border-radius: 12px; background: rgba(255, 255, 255, .04); text-align: center; }
.inv-stats b { display: block; font-size: 22px; }
.inv-stats span { font-size: 12px; color: var(--muted); }
.inv-progress { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.inv-progress i { display: block; height: 100%; background: linear-gradient(90deg, #7c5cff, #22d3ee); }
.inv-info .btn { justify-self: start; }
.inv-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.inv-bar .tabs { margin: 0; flex: 1; }
.inv-count { font-size: 11px; opacity: .7; margin-left: 4px; }
.inv-search { padding: 10px 14px; border-radius: 12px; background: rgba(0, 0, 0, .3); border: 1px solid var(--line); color: var(--text); min-width: 180px; }
.inv-item .inv-actions { display: flex; gap: 8px; justify-content: flex-end; }
.inv-locked { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 16px; padding: 14px 16px; border-radius: 14px; background: rgba(255, 255, 255, .03); border: 1px dashed var(--line); color: var(--muted); }
@media (max-width: 760px) { .inv-hero { grid-template-columns: 1fr; } .inv-look { max-width: 260px; justify-self: center; width: 100%; } .inv-search { flex: 1; min-width: 0; } }
