:root {
  --bg: #070a14; --bg2: #0b1020; --panel: #10172c; --panel2: #151e38; --panel3: #1b2646;
  --line: rgba(255,255,255,.07); --line2: rgba(255,255,255,.12);
  --rail: 0 0 0 2px #c9962b, 0 0 0 5px #1a0b02, 0 24px 60px rgba(0,0,0,.55); --surface: linear-gradient(180deg, #151e38, #10172c);
  --text: #eaedf6; --muted: #8b93b0; --dim: #7a83a3; --faint: #5d6585;
  --gold: #f5c451; --gold2: #d9a032; --gold3: #8a5a10; --gold-grad: linear-gradient(180deg,#ffe9a8 0%,#f5c451 45%,#c98b1f 100%);
  --green: #2fd27a; --red: #ff4d5e; --blue: #4da3ff; --purple: #a06bff; --pink: #ff4d9a; --cyan: #3de0f0; --orange: #ff9a3d;
  --felt: #0e5e3d; --felt2: #08402a;
  --r: 14px; --r-sm: 10px; --r-lg: 20px;
  --shadow: 0 12px 36px rgba(0,0,0,.45); --shadow-sm: 0 4px 14px rgba(0,0,0,.35);
  --display: 'Cinzel', Georgia, serif; --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --top: 64px; --side: 232px; --chat: 320px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--font); color: var(--text); background: var(--bg); font-size: 14.5px; line-height: 1.45;
  -webkit-font-smoothing: antialiased; overflow: hidden;
  background-image: radial-gradient(1200px 600px at 70% -10%, rgba(160,107,255,.10), transparent 60%), radial-gradient(900px 500px at 0% 100%, rgba(245,196,81,.06), transparent 60%);
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--gold); text-decoration: none; }
img { display: block; }
h1, h2, h3, h4 { margin: 0; font-weight: 800; letter-spacing: .01em; }
.display { font-family: var(--display); letter-spacing: .04em; }
::selection { background: rgba(245,196,81,.35); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #232d4d; border-radius: 10px; border: 2px solid var(--bg2); }
::-webkit-scrollbar-track { background: transparent; }
.ic { flex: none; display: block; }
.muted { color: var(--muted); } .dim { color: var(--dim); }
.gold { color: var(--gold); } .green { color: var(--green); } .red { color: var(--red); } .blue { color: var(--blue); }
.mono { font-variant-numeric: tabular-nums; }
.hidden { display: none !important; }
.row { display: flex; align-items: center; gap: 10px; } .col { display: flex; flex-direction: column; gap: 10px; }
.grow { flex: 1; min-width: 0; } .wrap { flex-wrap: wrap; } .between { justify-content: space-between; } .center { justify-content: center; }
.gap-sm { gap: 6px; } .gap-lg { gap: 18px; }
.tag { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 99px; background: var(--panel3); color: var(--muted); }
.tag-live { background: rgba(255,77,94,.16); color: #ff7a87; } .tag-live::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--red); box-shadow: 0 0 8px var(--red); animation: pulse 1.4s infinite; }
.tag-ai { background: rgba(77,163,255,.16); color: #8cc4ff; } .tag-hot { background: rgba(255,154,61,.16); color: #ffb470; } .tag-new { background: rgba(47,210,122,.16); color: #6ee7a8; }
.tag-gold { background: rgba(245,196,81,.16); color: var(--gold); }
@keyframes pulse { 50% { opacity: .35; } }

/* ---------- Buttons & Inputs ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: var(--r-sm); border: 1px solid var(--line2); background: var(--panel2); color: var(--text); font-weight: 700; cursor: pointer; transition: transform .12s, background .15s, border-color .15s, box-shadow .15s, opacity .15s; white-space: nowrap; user-select: none; }
.btn:hover { background: var(--panel3); border-color: rgba(255,255,255,.2); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn:disabled, .btn.disabled { opacity: .45; pointer-events: none; }
.btn-gold { background: var(--gold-grad); color: #2a1a02; border-color: #ffe08a; box-shadow: 0 6px 18px rgba(245,196,81,.25), inset 0 1px 0 rgba(255,255,255,.6); }
.btn-gold:hover { background: var(--gold-grad); filter: brightness(1.07); box-shadow: 0 8px 24px rgba(245,196,81,.35), inset 0 1px 0 rgba(255,255,255,.6); }
.btn-green { background: linear-gradient(180deg,#46e690,#1fae5e); color: #032a12; border-color: #6ff0aa; box-shadow: 0 6px 18px rgba(47,210,122,.25); }
.btn-green:hover { background: linear-gradient(180deg,#46e690,#1fae5e); filter: brightness(1.07); }
.btn-danger { background: linear-gradient(180deg,#ff6b78,#d6283a); border-color: #ff8a95; color: #fff; }
.btn-danger:hover { background: linear-gradient(180deg,#ff6b78,#d6283a); filter: brightness(1.07); }
.btn-blue { background: linear-gradient(180deg,#6cb6ff,#2a7de0); border-color: #8cc8ff; color: #fff; }
.btn-blue:hover { background: linear-gradient(180deg,#6cb6ff,#2a7de0); filter: brightness(1.07); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn-ghost:hover { background: rgba(255,255,255,.05); color: var(--text); border-color: transparent; }
.btn-lg { height: 52px; padding: 0 26px; font-size: 16px; border-radius: 12px; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.btn-xs { height: 26px; padding: 0 9px; font-size: 12px; border-radius: 7px; }
.btn-block { width: 100%; }
.icon-btn { width: 38px; height: 38px; display: inline-grid; place-items: center; border-radius: 10px; border: 1px solid transparent; background: transparent; color: var(--muted); cursor: pointer; transition: .15s; position: relative; }
.icon-btn:hover { background: rgba(255,255,255,.06); color: var(--text); }
.icon-btn.active { color: var(--gold); }
.badge-dot { position: absolute; top: 6px; right: 6px; min-width: 9px; height: 9px; border-radius: 9px; background: var(--red); box-shadow: 0 0 0 2px var(--bg2); }
.input, .select, textarea.input { width: 100%; height: 42px; padding: 0 13px; border-radius: var(--r-sm); border: 1px solid var(--line2); background: #0a0f1f; color: var(--text); outline: none; transition: border-color .15s, box-shadow .15s; }
textarea.input { height: auto; padding: 10px 13px; resize: vertical; min-height: 70px; }
.input:focus, .select:focus { border-color: rgba(245,196,81,.6); box-shadow: 0 0 0 3px rgba(245,196,81,.12); }
.input-sm { height: 34px; font-size: 13px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label, .label { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.input-group { position: relative; display: flex; align-items: center; }
.input-group .input { padding-left: 40px; }
.input-group .ig-icon { position: absolute; left: 12px; color: var(--dim); pointer-events: none; }
.seg { display: inline-flex; background: #0a0f1f; border: 1px solid var(--line2); border-radius: 11px; padding: 3px; gap: 3px; }
.seg button { height: 32px; padding: 0 14px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; transition: .15s; white-space: nowrap; }
.seg button:hover { color: var(--text); }
.seg button.on { background: var(--panel3); color: var(--text); box-shadow: 0 2px 8px rgba(0,0,0,.3); }
.seg button.on.gold-on { background: var(--gold-grad); color: #2a1a02; }
.switch { position: relative; width: 42px; height: 24px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: #2a3354; border-radius: 24px; cursor: pointer; transition: .2s; }
.switch span::after { content: ''; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; border-radius: 50%; background: #fff; transition: .2s; }
.switch input:checked + span { background: var(--green); }
.switch input:checked + span::after { transform: translateX(18px); }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 6px; background: #232d4d; outline: none; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--gold-grad); border: 2px solid #fff; cursor: pointer; box-shadow: 0 2px 6px rgba(0,0,0,.4); }

/* ---------- Panels ---------- */
.panel { background: linear-gradient(180deg, var(--panel), #0d1427); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.panel-head h3 { font-size: 16px; display: flex; align-items: center; gap: 8px; }
.section-title { font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: .05em; display: flex; align-items: center; gap: 10px; }
.section-title .ic { color: var(--gold); }
.empty { text-align: center; color: var(--dim); padding: 28px 10px; }
.stat { background: var(--panel2); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.stat .k { font-size: 12px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.stat .v { font-size: 22px; font-weight: 800; margin-top: 4px; font-variant-numeric: tabular-nums; }
.stat .s { font-size: 12px; color: var(--dim); margin-top: 2px; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th { text-align: left; font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 800; padding: 9px 10px; border-bottom: 1px solid var(--line2); white-space: nowrap; }
.tbl td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:hover td { background: rgba(255,255,255,.02); }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl-wrap { overflow-x: auto; }
.avatar { border-radius: 50%; flex: none; object-fit: cover; }
.coin { width: 18px; height: 18px; flex: none; display: inline-block; vertical-align: -3px; }
.amount { display: inline-flex; align-items: center; gap: 5px; font-weight: 800; font-variant-numeric: tabular-nums; }

/* ---------- Boot ---------- */
.boot { position: fixed; inset: 0; display: grid; place-items: center; align-content: center; gap: 14px; color: var(--muted); }
.boot-logo { font-size: 54px; color: var(--gold); animation: pulse 1.2s infinite; text-align: center; }

/* ---------- Auth ---------- */
.auth { position: fixed; inset: 0; display: grid; grid-template-columns: 1.15fr 1fr; overflow: auto; }
.auth-art { position: relative; overflow: hidden; background: radial-gradient(900px 600px at 30% 30%, #2a1450 0%, #0b0716 60%, #05040a 100%); display: flex; flex-direction: column; justify-content: flex-end; padding: 56px; }
.auth-art::before { content: ''; position: absolute; inset: 0; background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="60" height="60"><path d="M30 0L60 30 30 60 0 30z" fill="none" stroke="%23f5c451" stroke-opacity=".05"/></svg>'); }
.auth-float { position: absolute; filter: drop-shadow(0 18px 30px rgba(0,0,0,.6)); animation: floaty 6s ease-in-out infinite; }
@keyframes floaty { 50% { transform: translateY(-14px) rotate(var(--r2, 0deg)); } }
.auth-brand { position: relative; z-index: 2; }
.auth-brand h1 { font-family: var(--display); font-size: 54px; line-height: 1.02; font-weight: 900; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; letter-spacing: .03em; }
.auth-brand p { color: #c3c8de; font-size: 17px; max-width: 460px; margin: 14px 0 0; }
.auth-feats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.auth-feats span { display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border-radius: 99px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); font-size: 13px; font-weight: 700; color: #dfe3f2; }
.auth-feats .ic { color: var(--gold); }
.auth-form-wrap { display: grid; place-items: center; padding: 40px 24px; background: var(--bg2); }
.auth-card { width: 100%; max-width: 400px; }
.auth-card .logo-row { margin-bottom: 26px; }
.auth-card h2 { font-size: 26px; margin-bottom: 6px; }
.auth-card form { display: flex; flex-direction: column; gap: 14px; margin-top: 22px; }
.auth-err { color: #ff8a95; font-size: 13px; min-height: 18px; font-weight: 600; }
.auth-note { font-size: 12.5px; color: var(--dim); margin-top: 18px; line-height: 1.6; }

/* ---------- Logo ---------- */
.logo { display: flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; }
.logo-mark { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: linear-gradient(145deg,#1d1640,#0b0a1a); border: 1px solid rgba(245,196,81,.4); box-shadow: 0 0 18px rgba(245,196,81,.15), inset 0 1px 0 rgba(255,255,255,.08); }
.logo-mark svg { width: 22px; height: 22px; }
.logo-text { font-family: var(--display); font-weight: 900; font-size: 18px; letter-spacing: .08em; line-height: 1; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo-text small { display: block; font-family: var(--font); font-size: 9.5px; letter-spacing: .32em; color: var(--muted); -webkit-text-fill-color: var(--muted); margin-top: 3px; font-weight: 700; }

/* ---------- Shell ---------- */
.shell { position: fixed; inset: 0; display: grid; grid-template-columns: var(--side) minmax(0, 1fr) auto; grid-template-rows: var(--top) 1fr; grid-template-areas: "top top top" "side main chat"; }
.topbar { grid-area: top; display: flex; align-items: center; gap: 14px; padding: 0 16px 0 18px; background: rgba(9,13,26,.92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); z-index: 30; }
.topbar .spacer { flex: 1; }
.top-online { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--muted); font-weight: 700; padding: 6px 11px; border-radius: 99px; background: rgba(47,210,122,.08); }
.top-online i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }
.balance { display: flex; align-items: center; gap: 0; background: #0a0f1f; border: 1px solid rgba(245,196,81,.28); border-radius: 12px; padding: 4px 4px 4px 12px; box-shadow: inset 0 0 18px rgba(245,196,81,.06); }
.balance .coin { width: 22px; height: 22px; margin-right: 8px; }
.balance-amt { font-weight: 800; font-size: 16px; font-variant-numeric: tabular-nums; min-width: 60px; transition: color .3s; }
.balance-amt.up { color: var(--green); } .balance-amt.down { color: #ff8a95; }
.balance .btn { height: 32px; margin-left: 12px; padding: 0 12px; }
.balance-delta { position: absolute; font-weight: 800; font-size: 13px; pointer-events: none; animation: deltaUp 1.4s ease-out forwards; }
@keyframes deltaUp { 0% { opacity: 0; transform: translateY(4px); } 15% { opacity: 1; } 100% { opacity: 0; transform: translateY(-26px); } }
.user-btn { display: flex; align-items: center; gap: 9px; padding: 4px 8px 4px 4px; border-radius: 12px; cursor: pointer; border: 1px solid transparent; background: transparent; transition: .15s; }
.user-btn:hover { background: rgba(255,255,255,.05); border-color: var(--line); }
.user-btn .un { font-weight: 700; font-size: 13.5px; max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-btn .ur { font-size: 11px; color: var(--muted); }
.dropdown { position: absolute; top: calc(var(--top) - 6px); right: 14px; min-width: 220px; background: var(--panel2); border: 1px solid var(--line2); border-radius: 14px; box-shadow: var(--shadow); padding: 6px; z-index: 60; animation: dropIn .15s ease-out; }
@keyframes dropIn { from { opacity: 0; transform: translateY(-6px); } }
.dropdown button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; background: none; border: 0; border-radius: 9px; cursor: pointer; color: var(--text); font-weight: 600; text-align: left; }
.dropdown button:hover { background: rgba(255,255,255,.06); }
.dropdown hr { border: 0; border-top: 1px solid var(--line); margin: 5px 0; }

.sidebar { grid-area: side; background: rgba(9,13,26,.85); border-right: 1px solid var(--line); overflow-y: auto; padding: 14px 10px 20px; display: flex; flex-direction: column; gap: 3px; z-index: 20; }
.nav-sec { font-size: 10.5px; font-weight: 800; letter-spacing: .14em; color: var(--dim); text-transform: uppercase; padding: 14px 12px 6px; }
.nav-item { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 10px; color: #b8bfd6; font-weight: 650; cursor: pointer; transition: .15s; border: 1px solid transparent; position: relative; }
.nav-item:hover { background: rgba(255,255,255,.04); color: var(--text); }
.nav-item.active { background: linear-gradient(90deg, rgba(245,196,81,.14), rgba(245,196,81,.02)); color: var(--gold); border-color: rgba(245,196,81,.15); }
.nav-item.active::before { content: ''; position: absolute; left: -10px; top: 9px; bottom: 9px; width: 3px; border-radius: 3px; background: var(--gold); }
.nav-item .cnt { margin-left: auto; font-size: 11px; background: var(--red); color: #fff; padding: 1px 7px; border-radius: 99px; font-weight: 800; }
.nav-item .live { margin-left: auto; width: 7px; height: 7px; border-radius: 50%; background: var(--red); box-shadow: 0 0 8px var(--red); }
.side-promo { margin: 14px 4px 0; padding: 16px; border-radius: 14px; background: radial-gradient(120% 120% at 0% 0%, rgba(245,196,81,.22), rgba(160,107,255,.12) 60%, rgba(255,255,255,.02)); border: 1px solid rgba(245,196,81,.22); }
.side-promo h4 { font-family: var(--display); font-size: 15px; color: var(--gold); }
.side-promo p { margin: 6px 0 12px; font-size: 12.5px; color: #c3c8de; }

.main { grid-area: main; overflow-y: auto; overflow-x: hidden; position: relative; }
.page { padding: 24px 28px 60px; max-width: 1480px; margin: 0 auto; animation: pageIn .25s ease-out; }
@keyframes pageIn { from { transform: translateY(6px); } }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head h1 { font-family: var(--display); font-size: 26px; letter-spacing: .04em; }
.page-head p { margin: 4px 0 0; color: var(--muted); }

.announce { display: flex; align-items: center; gap: 10px; padding: 10px 16px; background: linear-gradient(90deg, rgba(245,196,81,.16), rgba(160,107,255,.12)); border-bottom: 1px solid rgba(245,196,81,.2); color: #ffe7a8; font-weight: 600; font-size: 13.5px; }
.announce .ic { color: var(--gold); }

/* ---------- Chat ---------- */
.chat { grid-area: chat; width: var(--chat); background: rgba(9,13,26,.9); border-left: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; z-index: 20; transition: width .25s, opacity .2s; }
.shell.chat-closed .chat { width: 0; opacity: 0; pointer-events: none; overflow: hidden; border: 0; }
.chat-tabs { display: flex; gap: 4px; padding: 10px; border-bottom: 1px solid var(--line); }
.chat-tabs button { flex: 1; height: 34px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; }
.chat-tabs button.on { background: var(--panel2); color: var(--text); }
.chat-list { flex: 1; overflow-y: auto; padding: 10px 12px; display: flex; flex-direction: column; gap: 10px; min-height: 0; }
.chat-msg { display: flex; gap: 9px; animation: msgIn .2s ease-out; }
@keyframes msgIn { from { opacity: 0; transform: translateY(4px); } }
.chat-msg .cm-body { min-width: 0; flex: 1; }
.chat-msg .cm-head { display: flex; align-items: baseline; gap: 6px; }
.chat-msg .cm-name { font-weight: 800; font-size: 13px; color: #cfd5ea; }
.chat-msg .cm-name.admin { color: var(--gold); }
.chat-msg .cm-time { font-size: 10.5px; color: var(--dim); }
.chat-msg .cm-text { font-size: 13.5px; color: #dfe3f2; word-wrap: break-word; overflow-wrap: anywhere; background: var(--panel); border: 1px solid var(--line); padding: 7px 10px; border-radius: 4px 12px 12px 12px; margin-top: 3px; display: inline-block; max-width: 100%; }
.chat-msg.me .cm-text { background: rgba(245,196,81,.08); border-color: rgba(245,196,81,.18); }
.chat-sys { text-align: center; font-size: 12px; color: var(--dim); }
.chat-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); }
.chat-form .input { height: 40px; }
.feed-item { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 11px; background: var(--panel); border: 1px solid var(--line); animation: msgIn .25s ease-out; }
.feed-item .fi-main { flex: 1; min-width: 0; }
.feed-item .fi-name { font-weight: 700; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed-item .fi-game { font-size: 11.5px; color: var(--muted); }
.feed-item .fi-amt { text-align: right; }
.feed-item .fi-amt b { color: var(--green); display: block; font-variant-numeric: tabular-nums; }
.feed-item .fi-amt small { color: var(--gold); font-weight: 800; font-size: 11px; }

/* ---------- Lobby ---------- */
.hero { position: relative; border-radius: var(--r-lg); overflow: hidden; min-height: 260px; display: grid; grid-template-columns: 1.1fr 1fr; background: radial-gradient(800px 400px at 85% 50%, rgba(160,107,255,.35), transparent 60%), radial-gradient(600px 300px at 10% 100%, rgba(245,196,81,.18), transparent 60%), linear-gradient(135deg, #171037 0%, #0c0b22 50%, #120a1c 100%); border: 1px solid rgba(245,196,81,.18); box-shadow: var(--shadow); }
.hero::after { content: ''; position: absolute; inset: 0; background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="44" height="44"><path d="M22 0L44 22 22 44 0 22z" fill="none" stroke="%23f5c451" stroke-opacity=".045"/></svg>'); pointer-events: none; }
.hero-text { position: relative; z-index: 2; padding: 34px 36px; display: flex; flex-direction: column; justify-content: center; }
.hero-text .eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.hero-text h1 { font-family: var(--display); font-size: 40px; line-height: 1.08; margin: 10px 0 10px; font-weight: 900; }
.hero-text h1 span { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-text p { color: #c3c8de; margin: 0 0 22px; max-width: 470px; font-size: 15px; }
.hero-art { position: relative; z-index: 1; }
.hero-art img { position: absolute; filter: drop-shadow(0 20px 30px rgba(0,0,0,.6)); animation: floaty 7s ease-in-out infinite; }
.ticker { margin: 18px 0 8px; display: flex; align-items: center; gap: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 0 0 0 14px; height: 46px; overflow: hidden; }
.ticker-label { display: flex; align-items: center; gap: 7px; font-weight: 800; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); white-space: nowrap; }
.ticker-track { flex: 1; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent); }
.ticker-inner { display: flex; gap: 28px; white-space: nowrap; animation: tick 40s linear infinite; width: max-content; }
.ticker-inner span { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: #c3c8de; }
.ticker-inner b { color: var(--green); }
@keyframes tick { to { transform: translateX(-50%); } }
.lobby-bar { display: flex; align-items: center; gap: 12px; margin: 22px 0 16px; flex-wrap: wrap; }
.lobby-bar .input-group { width: 260px; }
.cat-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.cat-chip { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 15px; border-radius: 11px; border: 1px solid var(--line2); background: var(--panel); color: #b8bfd6; font-weight: 700; cursor: pointer; transition: .15s; }
.cat-chip:hover { color: var(--text); border-color: rgba(255,255,255,.2); }
.cat-chip.on { background: var(--gold-grad); color: #2a1a02; border-color: #ffe08a; }
.game-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.game-card { position: relative; border-radius: 16px; overflow: hidden; background: var(--panel); border: 1px solid var(--line); cursor: pointer; transition: transform .2s, box-shadow .2s, border-color .2s; isolation: isolate; }
.game-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0,0,0,.5), 0 0 0 1px rgba(245,196,81,.35); border-color: rgba(245,196,81,.35); }
.game-card .gc-art { aspect-ratio: 16/10; position: relative; overflow: hidden; }
.game-card .gc-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.game-card:hover .gc-art img { transform: scale(1.06); }
.game-card .gc-play { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(5,6,14,.45); opacity: 0; transition: .2s; }
.game-card:hover .gc-play { opacity: 1; }
.game-card .gc-play span { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-grad); color: #2a1a02; box-shadow: 0 8px 24px rgba(245,196,81,.45); transform: scale(.85); transition: .2s; }
.game-card:hover .gc-play span { transform: scale(1); }
.game-card .gc-tags { position: absolute; top: 10px; left: 10px; display: flex; gap: 5px; z-index: 2; }
.game-card .gc-tags .tag { backdrop-filter: blur(6px); background: rgba(8,10,20,.65); }
.game-card .gc-tags .tag-live { background: rgba(120,10,24,.7); color: #ffd0d5; }
.game-card .gc-tags .tag-ai { background: rgba(10,40,90,.7); color: #cfe6ff; }
.game-card .gc-info { padding: 12px 14px 13px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.game-card .gc-name { font-weight: 800; font-size: 15px; }
.game-card .gc-sub { font-size: 12px; color: var(--muted); margin-top: 1px; }
.game-card .gc-players { font-size: 11.5px; color: var(--muted); display: flex; align-items: center; gap: 5px; white-space: nowrap; }
.game-card.disabled { opacity: .45; filter: grayscale(.7); pointer-events: none; }
.lobby-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 28px; }

/* ---------- Shop ---------- */
.pkg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.pkg { position: relative; border-radius: 18px; padding: 22px 18px 18px; text-align: center; background: linear-gradient(180deg, var(--panel2), var(--panel)); border: 1px solid var(--line2); transition: .2s; overflow: hidden; }
.pkg::before { content: ''; position: absolute; inset: 0; background: radial-gradient(260px 160px at 50% 0%, var(--pc), transparent 70%); opacity: .22; }
.pkg:hover { transform: translateY(-4px); border-color: var(--pc); box-shadow: 0 16px 40px rgba(0,0,0,.45); }
.pkg > * { position: relative; }
.pkg > img { width: 110px; height: 110px; margin: 0 auto 6px; }
.pkg h3 { font-family: var(--display); font-size: 18px; letter-spacing: .05em; }
.pkg .pkg-tokens { font-size: 28px; font-weight: 900; margin: 8px 0 2px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.pkg .pkg-tokens .coin { width: 26px; height: 26px; }
.pkg .pkg-price { color: var(--muted); font-weight: 700; margin-bottom: 16px; }
.pkg .pkg-best { position: absolute; top: 14px; right: -34px; transform: rotate(45deg); background: var(--gold-grad); color: #2a1a02; font-size: 10.5px; font-weight: 900; padding: 4px 40px; letter-spacing: .08em; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; padding: 3px 9px; border-radius: 99px; }
.status-pending { background: rgba(255,154,61,.15); color: #ffb470; } .status-approved { background: rgba(47,210,122,.15); color: #6ee7a8; }
.status-declined { background: rgba(255,77,94,.15); color: #ff8a95; } .status-cancelled { background: rgba(255,255,255,.07); color: var(--muted); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 18px 0 26px; }
.step { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); }
.step b.n { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-grad); color: #2a1a02; flex: none; }
.step p { margin: 3px 0 0; font-size: 13px; color: var(--muted); }

/* ---------- Profil / Rangliste ---------- */
.profile-head { display: flex; align-items: center; gap: 20px; padding: 24px; border-radius: var(--r-lg); background: radial-gradient(600px 200px at 0% 0%, rgba(245,196,81,.14), transparent 70%), linear-gradient(180deg, var(--panel2), var(--panel)); border: 1px solid var(--line2); margin-bottom: 20px; flex-wrap: wrap; }
.profile-head .avatar { box-shadow: 0 0 0 3px rgba(245,196,81,.5), 0 10px 30px rgba(0,0,0,.4); }
.avatar-pick { display: grid; grid-template-columns: repeat(auto-fill, 56px); gap: 10px; }
.avatar-pick button { border: 2px solid transparent; border-radius: 50%; padding: 2px; background: none; cursor: pointer; transition: .15s; }
.avatar-pick button:hover { transform: scale(1.06); }
.avatar-pick button.on { border-color: var(--gold); box-shadow: 0 0 14px rgba(245,196,81,.45); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.three-col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.lb-row { display: flex; align-items: center; gap: 12px; padding: 10px 6px; border-bottom: 1px solid var(--line); }
.lb-row:last-child { border-bottom: 0; }
.lb-rank { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font-weight: 900; font-size: 13px; background: var(--panel3); color: var(--muted); flex: none; }
.lb-rank.r1 { background: var(--gold-grad); color: #2a1a02; } .lb-rank.r2 { background: linear-gradient(180deg,#f2f4f8,#a8afc0); color: #222; } .lb-rank.r3 { background: linear-gradient(180deg,#f0b07a,#a8642a); color: #2a1404; }
.lb-name { flex: 1; min-width: 0; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-val { font-weight: 800; font-variant-numeric: tabular-nums; text-align: right; }
.lb-val small { display: block; font-size: 11px; color: var(--muted); font-weight: 600; }

/* ---------- Admin ---------- */
.admin-tabs { display: flex; gap: 6px; margin-bottom: 18px; flex-wrap: wrap; }
.bar-chart { display: flex; flex-direction: column; gap: 8px; }
.bar-row { display: grid; grid-template-columns: 110px 1fr 90px; align-items: center; gap: 10px; font-size: 13px; }
.bar-track { height: 10px; border-radius: 10px; background: var(--panel3); overflow: hidden; }
.bar-fill { height: 100%; border-radius: 10px; background: linear-gradient(90deg, var(--gold2), var(--gold)); }
.games-cfg { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.game-cfg { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; padding: 12px; border-radius: 12px; background: var(--panel2); border: 1px solid var(--line); }
.game-cfg img { width: 44px; height: 44px; border-radius: 9px; object-fit: cover; }
.game-cfg .gcf-inputs { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

/* ---------- Toasts / Modal ---------- */
.toasts { position: fixed; top: calc(var(--top) + 12px); right: 16px; z-index: 200; display: flex; flex-direction: column; gap: 10px; pointer-events: none; width: min(380px, calc(100vw - 32px)); }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 11px; padding: 12px 12px 12px 14px; border-radius: 13px; background: rgba(21,30,56,.97); border: 1px solid var(--line2); box-shadow: var(--shadow); transform: translateX(30px); opacity: 0; transition: .28s cubic-bezier(.2,.9,.3,1.2); backdrop-filter: blur(10px); }
.toast.in { transform: none; opacity: 1; }
.toast-ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex: none; background: rgba(77,163,255,.15); color: var(--blue); }
.toast-success .toast-ic, .toast-win .toast-ic { background: rgba(47,210,122,.15); color: var(--green); }
.toast-error .toast-ic { background: rgba(255,77,94,.15); color: var(--red); }
.toast-warning .toast-ic { background: rgba(255,154,61,.15); color: var(--orange); }
.toast-win { border-color: rgba(245,196,81,.35); }
.toast-text { flex: 1; font-size: 13.5px; font-weight: 600; }
.toast-x { background: none; border: 0; color: var(--dim); cursor: pointer; padding: 4px; }
.modal-overlay { position: fixed; inset: 0; background: rgba(3,5,12,.7); backdrop-filter: blur(6px); z-index: 150; display: grid; place-items: center; padding: 20px; opacity: 0; transition: opacity .2s; }
.modal-overlay.in { opacity: 1; }
.modal { width: 100%; max-width: 480px; max-height: calc(100vh - 40px); overflow: auto; background: linear-gradient(180deg, var(--panel2), var(--panel)); border: 1px solid var(--line2); border-radius: 18px; box-shadow: 0 30px 80px rgba(0,0,0,.6); transform: translateY(12px) scale(.98); transition: transform .22s; }
.modal-overlay.in .modal { transform: none; }
.modal-wide { max-width: 760px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px 6px; position: sticky; top: 0; background: inherit; z-index: 1; }
.modal-head h3 { font-size: 18px; }
.modal-body { padding: 8px 18px 18px; }
.modal-body p { color: #c3c8de; margin: 0 0 10px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; padding: 0 18px 18px; }
.rules h4 { margin: 16px 0 6px; color: var(--gold); font-size: 14px; }
.rules p, .rules li { color: #c3c8de; font-size: 13.5px; }
.rules ul { padding-left: 18px; margin: 6px 0; }
.paytbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.paytbl td { padding: 6px 8px; border-bottom: 1px solid var(--line); }
.paytbl td:last-child { text-align: right; font-weight: 800; color: var(--gold); }

/* ---------- Big Win / Konfetti ---------- */
.bigwin { position: fixed; inset: 0; z-index: 180; display: grid; place-items: center; background: radial-gradient(circle at 50% 50%, rgba(40,20,0,.55), rgba(0,0,0,.82)); opacity: 0; transition: opacity .35s; cursor: pointer; overflow: hidden; }
.bigwin.in { opacity: 1; }
.bw-rays { position: absolute; width: 1400px; height: 1400px; left: 50%; top: 50%; margin: -700px 0 0 -700px; background: repeating-conic-gradient(from 0deg, rgba(245,196,81,.14) 0deg 8deg, transparent 8deg 20deg); animation: spin 18s linear infinite; mask-image: radial-gradient(circle, #000 10%, transparent 60%); -webkit-mask-image: radial-gradient(circle, #000 10%, transparent 60%); }
@keyframes spin { to { transform: rotate(360deg); } }
.bw-inner { position: relative; text-align: center; transform: scale(.6); transition: transform .5s cubic-bezier(.2,1.6,.4,1); }
.bigwin.in .bw-inner { transform: scale(1); }
.bw-title { font-family: var(--display); font-weight: 900; font-size: clamp(36px, 7vw, 76px); letter-spacing: .06em; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 6px 0 #6a4206) drop-shadow(0 0 30px rgba(245,196,81,.5)); }
.bw-amount { font-size: clamp(40px, 8vw, 88px); font-weight: 900; color: #fff; text-shadow: 0 0 30px rgba(245,196,81,.8), 0 4px 0 #8a5a10; font-variant-numeric: tabular-nums; }
.bw-mult { font-size: 18px; font-weight: 800; color: var(--gold); letter-spacing: .1em; text-transform: uppercase; }
.bw-mega .bw-title { animation: shake .5s infinite; }
@keyframes shake { 25% { transform: rotate(-1.5deg); } 75% { transform: rotate(1.5deg); } }
.bw-coins { position: absolute; inset: 0; pointer-events: none; }
.bw-coin { position: absolute; top: -40px; width: 28px; height: 28px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff2c2, #f0b83a 55%, #8a5a10); box-shadow: inset 0 0 0 3px rgba(122,74,8,.5); animation: coinFall linear infinite; }
@keyframes coinFall { to { transform: translateY(110vh) rotateY(720deg); } }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 170; overflow: hidden; }
.confetti i { position: absolute; top: -20px; width: 9px; height: 14px; border-radius: 2px; animation: confFall linear forwards; }
@keyframes confFall { to { transform: translateY(105vh) rotate(720deg); opacity: .8; } }

/* ---------- Spielkarten ---------- */
.pcard { width: 84px; aspect-ratio: 200/280; perspective: 900px; flex: none; position: relative; }
.pcard-sm { width: 58px; }
.pcard-inner { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .5s cubic-bezier(.3,.8,.3,1); }
.pcard img { position: absolute; inset: 0; width: 100%; height: 100%; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 7%; box-shadow: 0 6px 16px rgba(0,0,0,.45); }
.pcard .pcard-back { transform: rotateY(180deg); }
.pcard.is-hidden .pcard-inner { transform: rotateY(180deg); }
.pcard.deal-in { animation: dealIn .45s cubic-bezier(.2,.8,.3,1) both; }
@keyframes dealIn { from { opacity: 0; transform: translate(var(--dx, 0px), var(--dy, -160px)) rotate(-12deg) scale(.8); } }
.pcard.win img { box-shadow: 0 0 0 3px var(--gold), 0 0 24px rgba(245,196,81,.6); }
.pcard.dim { filter: brightness(.45) saturate(.6); }
.pcard.held .pcard-inner { transform: translateY(-10px); }

/* ---------- Chips-Auswahl ---------- */
.chip-rack { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.chip-btn { width: 48px; height: 48px; border-radius: 50%; border: 0; padding: 0; background: none; cursor: pointer; transition: transform .15s, filter .15s; position: relative; }
.chip-btn img { width: 100%; height: 100%; filter: drop-shadow(0 4px 6px rgba(0,0,0,.5)); }
.chip-btn:hover { transform: translateY(-3px); }
.chip-btn.on { transform: translateY(-6px) scale(1.08); }
.chip-btn.on::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--gold); box-shadow: 0 0 14px rgba(245,196,81,.6); }
.chip-btn:disabled { opacity: .3; pointer-events: none; }

/* ---------- Bottom Nav (mobil) ---------- */
.bottom-nav { display: none; }

@media (max-width: 1280px) { :root { --chat: 290px; } }
@media (max-width: 1100px) {
  .auth-float { opacity: .22; }
  .auth-brand h1 { font-size: 42px; }
  .shell { grid-template-columns: 76px minmax(0, 1fr) auto; }
  .sidebar { padding: 12px 8px; }
  .sidebar .nav-sec, .sidebar .nav-item span, .sidebar .side-promo, .sidebar .nav-item .cnt { display: none; }
  .sidebar .nav-item { justify-content: center; padding: 12px; }
  .chat { position: fixed; right: 0; top: var(--top); bottom: 0; box-shadow: -20px 0 60px rgba(0,0,0,.5); }
  .hero { grid-template-columns: 1fr; } .hero-art { display: none; }
  .lobby-cols, .two-col, .three-col { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  :root { --top: 58px; --chat: 100vw; }
  body { font-size: 14px; }
  .shell { grid-template-columns: minmax(0, 1fr); grid-template-rows: var(--top) minmax(0, 1fr) 62px; grid-template-areas: "top" "main" "bottom"; }
  .sidebar { display: none; }
  .bottom-nav { grid-area: bottom; display: flex; background: rgba(9,13,26,.96); border-top: 1px solid var(--line); z-index: 30; }
  .bottom-nav button { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border: 0; background: none; color: var(--muted); font-size: 10.5px; font-weight: 700; cursor: pointer; }
  .bottom-nav button.on { color: var(--gold); }
  .chat { bottom: 62px; }
  .topbar { gap: 8px; padding: 0 10px; }
  .top-online, .user-btn .un-wrap, .user-btn > span.muted, .logo-text small, .hide-sm { display: none !important; }
  .topbar { min-width: 0; overflow: hidden; } .topbar .logo-text { display: none; } .user-btn { padding: 2px; }
  .logo-text { font-size: 15px; }
  .balance { padding-left: 8px; } .balance .coin { width: 18px; height: 18px; margin-right: 6px; } .balance-amt { font-size: 14px; min-width: 0; }
  .balance .btn { margin-left: 8px; padding: 0 9px; } .balance .btn .lbl { display: none; }
  .page { padding: 16px 14px 40px; }
  .hero-text { padding: 24px 22px; } .hero-text h1 { font-size: 28px; }
  .game-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .game-card .gc-info { padding: 9px 10px; } .game-card .gc-name { font-size: 13.5px; } .game-card .gc-players { display: none; }
  .lobby-bar .input-group { width: 100%; }
  .auth { grid-template-columns: 1fr; } .auth-art { min-height: 260px; padding: 28px; } .auth-brand h1 { font-size: 36px; }
  .steps { grid-template-columns: 1fr; }
  .pcard { width: 62px; } .pcard-sm { width: 46px; }
  .chip-btn { width: 42px; height: 42px; }
}

/* ---------- Spielseite ---------- */
.game-page { max-width: 1400px; }
.game-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.game-head-art { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; box-shadow: var(--shadow-sm); }
.game-head-title h1 { font-family: var(--display); font-size: 24px; letter-spacing: .04em; line-height: 1.1; margin-bottom: 4px; }
@media (max-width: 760px) { .game-head-art { display: none; } .game-head-title h1 { font-size: 19px; } .game-head .mode-seg { order: 10; width: 100%; } .game-head .mode-seg button { flex: 1; justify-content: center; } }

/* ---------- Kasse / Profil Ergänzungen ---------- */
.balance-big { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-radius: 14px; background: #0a0f1f; border: 1px solid rgba(245,196,81,.3); }
.balance-big .coin { width: 34px; height: 34px; }
.balance-big small { display: block; font-size: 11px; color: var(--muted); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.balance-big b { font-size: 24px; color: var(--gold); }
.bonus-card { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; background: radial-gradient(400px 160px at 0% 0%, rgba(245,196,81,.18), transparent 70%), linear-gradient(180deg, var(--panel2), var(--panel)); }
.bonus-ic { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--gold-grad); color: #2a1a02; flex: none; }
.mini-art { width: 34px; height: 24px; border-radius: 5px; object-fit: cover; }
.lb-row.me { background: rgba(245,196,81,.07); border-radius: 10px; }
.col.gap-lg { gap: 18px; }
.pkg-edit { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 12px; border-radius: 12px; background: var(--panel2); border: 1px solid var(--line); }
.pkg-edit img { width: 64px; height: 64px; }
.pkg-edit-fields { display: grid; grid-template-columns: 1.2fr 1fr 1fr .6fr 1fr; gap: 8px; }
.pkg-edit-fields input[type=color] { padding: 2px; height: 34px; }
@media (max-width: 900px) { .pkg-edit-fields { grid-template-columns: 1fr 1fr; } }

/* ---------- Handy: Lobby & Seiten ---------- */
.hscroll { scrollbar-width: none; } .hscroll::-webkit-scrollbar { display: none; }
@media (max-width: 760px) {
  /* waagerecht wischbare Leisten statt Umbrüchen */
  .cat-chips, .admin-tabs, .page .seg.tabs-scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-left: -14px; margin-right: -14px; padding-left: 14px; padding-right: 14px; }
  .cat-chips::-webkit-scrollbar, .admin-tabs::-webkit-scrollbar, .page .seg.tabs-scroll::-webkit-scrollbar { display: none; }
  .cat-chip { flex: none; height: 36px; padding: 0 13px; font-size: 13.5px; }
  .admin-tabs .cat-chip { height: 36px; }
  .page .seg.tabs-scroll { border-radius: 0; border-width: 0; background: none; padding: 0 14px; gap: 6px; }
  .page .seg.tabs-scroll button { flex: none; border: 1px solid var(--line2); background: var(--panel); }
  .lobby-bar { margin: 16px 0 12px; gap: 10px; }
  .lobby-bar .grow { display: none; }

  /* Hero kompakt */
  .hero { min-height: 0; border-radius: 16px; }
  .hero-text { padding: 20px 18px; }
  .hero-text .eyebrow { font-size: 10.5px; letter-spacing: .16em; }
  .hero-text h1 { font-size: 26px; margin: 6px 0 8px; }
  .hero-text p { font-size: 13.5px; margin-bottom: 16px; }
  .hero-text .row .btn-lg { height: 44px; padding: 0 16px; font-size: 14px; flex: 1; }
  .ticker { height: 40px; margin-top: 12px; }
  .ticker-label { font-size: 11px; }

  /* Kacheln, Kennzahlen, Panels */
  .game-card { border-radius: 13px; }
  .game-card .gc-sub { font-size: 11px; line-height: 1.3; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .stat { padding: 11px 12px; border-radius: 11px; }
  .stat .k { font-size: 10.5px; } .stat .v { font-size: 18px; } .stat .s { font-size: 11px; }
  .panel { padding: 14px; border-radius: 14px; }
  .panel-head { flex-wrap: wrap; }
  .tbl { font-size: 12.5px; } .tbl td, .tbl th { padding: 8px 7px; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 12px 0 16px; }
  .step { flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 10px 6px; font-size: 12px; }
  .step p { display: none; } .step b.n { width: 26px; height: 26px; }
  .pkg-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .pkg { padding: 14px 10px 12px; border-radius: 14px; }
  .pkg > img { width: 70px; height: 70px; }
  .pkg h3 { font-size: 14px; } .pkg .pkg-tokens { font-size: 19px; gap: 5px; } .pkg .pkg-tokens .coin { width: 18px; height: 18px; }
  .pkg .pkg-price { font-size: 12.5px; margin-bottom: 10px; }
  .pkg .btn { height: 36px; font-size: 12px; padding: 0 8px; } .pkg .btn .ic { display: none; }
  .pkg .pkg-best { font-size: 8.5px; right: -38px; top: 10px; }
  .page-head { margin-bottom: 12px; } .page-head p { font-size: 13px; }
  .balance-big { padding: 10px 14px; } .balance-big b { font-size: 20px; } .balance-big .coin { width: 28px; height: 28px; }
  .profile-head { padding: 16px; gap: 14px; }
  .profile-head > .avatar { width: 60px !important; height: 60px !important; }
  .profile-head h2 { font-size: 19px !important; }
  .profile-head .balance-big { width: 100%; }
  .bonus-card { gap: 10px; } .bonus-ic { width: 44px; height: 44px; }
  .game-cfg { grid-template-columns: 40px 1fr auto; }
  .modal { border-radius: 16px; } .modal-body { padding: 6px 14px 14px; } .modal-actions { padding: 0 14px 14px; }
  .modal-actions .btn { flex: 1; }
}
/* Chat als deckende Schublade auf Tablet/Handy (gleitet von rechts herein) */
@media (max-width: 1100px) {
  .chat { background: #0a0e1c; transition: transform .26s cubic-bezier(.2,.8,.3,1), opacity .2s; }
  .shell.chat-closed .chat { width: var(--chat); transform: translateX(100%); opacity: 0; border-left: 1px solid var(--line); }
}

.nav-item { position: relative; }
/* Kategorien immer einzeilig (wischbar, wenn der Platz nicht reicht) */
.cat-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.cat-chips::-webkit-scrollbar { display: none; }
.cat-chip { flex: none; }
.lobby-bar { flex-wrap: nowrap; }
.lobby-bar .cat-chips { flex: 1 1 auto; min-width: 0; }
.lobby-bar .grow { display: none; }
.lobby-bar .input-group { flex: 0 0 240px; }
@media (max-width: 760px) { .lobby-bar { flex-wrap: wrap; } .lobby-bar .input-group { flex: 1 1 100%; } }
@media (max-width: 760px) {
  .auth { display: block; }
  .auth-art { min-height: 0; padding: 26px 20px 22px; justify-content: flex-start; }
  .auth-float { opacity: .16; transform: scale(.7) !important; }
  .auth-brand h1 { font-size: 30px; }
  .auth-brand p { font-size: 13.5px; margin-top: 8px; }
  .auth-feats { gap: 6px; margin-top: 14px; }
  .auth-feats span { padding: 6px 10px; font-size: 11.5px; }
  .auth-form-wrap { padding: 24px 20px 40px; place-items: start center; }
  .auth-card .logo-row { display: none; }
  .auth-card h2 { font-size: 22px; }
}

/* =====================================================================================
   Feinschliff nach Design-Prüfung (Desktop + Handy)
   ===================================================================================== */
html { -webkit-tap-highlight-color: transparent; }
button, a, .game-card, .cat-chip, .chip-btn { touch-action: manipulation; }
.tag { white-space: nowrap; flex: none; }
.input-group .ig-icon { color: var(--faint); }
.btn-block { white-space: normal; text-align: center; line-height: 1.2; }
.select-filter { width: 220px; }
.hide-sm { } .tbl-sub { display: none; }

/* Ein Farbsystem: Grün = Primäraktion, Gold = Geld/Marke, aktive Auswahl dezent */
.btn:disabled:is(.btn-green, .btn-gold, .btn-blue, .btn-danger) { opacity: 1; background: var(--panel3); border-color: var(--line2); color: var(--faint); box-shadow: none; filter: none; }
.btn-gold-outline { background: rgba(245,196,81,.08); border-color: rgba(245,196,81,.45); color: var(--gold); }
.btn-gold-outline:hover { background: rgba(245,196,81,.16); border-color: var(--gold); }
.cat-chip.on, .seg button.on.gold-on { background: rgba(245,196,81,.14); color: var(--gold); border-color: rgba(245,196,81,.55); box-shadow: none; }
.seg button.on.gold-on { box-shadow: inset 0 0 0 1px rgba(245,196,81,.55); }

/* Kasse: Pakete zentriert, Band „Bester Wert“ vollständig */
.pkg-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.pkg { flex: 0 1 236px; }
.pkg .pkg-best { top: 22px; right: -42px; width: 170px; padding: 5px 0; text-align: center; font-size: 10px; letter-spacing: .1em; }
.pkg.is-best { border-color: rgba(245,196,81,.55); box-shadow: 0 0 0 1px rgba(245,196,81,.2), 0 14px 34px rgba(245,196,81,.10); }

/* Login */
.auth-card { min-width: 0; }
.auth-err { min-height: 0; } .auth-err:empty { display: none; }
.auth-bonus { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--gold); padding: 10px 12px; border-radius: 10px; background: rgba(245,196,81,.08); border: 1px solid rgba(245,196,81,.2); }

/* Topbar: Guthaben springt nicht, Gewinnanzeige läuft unter die Leiste */
.balance-amt { min-width: 9ch; }
@keyframes deltaUp { 0% { opacity: 0; transform: translateY(-4px); } 15% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* Seitenleiste & Scrollbalken */
.sidebar { scrollbar-width: none; } .sidebar::-webkit-scrollbar { display: none; }
.side-promo { margin-top: auto; }
@media (max-height: 940px) { .nav-item { padding: 8px 12px; } .nav-sec { padding: 10px 12px 4px; } .side-promo { padding: 12px; } .side-promo p { display: none; } }
.main { scrollbar-gutter: stable; scrollbar-width: thin; scrollbar-color: #232d4d transparent; }

/* Laptop-Breiten mit offenem Chat: Navigation als schlanke Symbolleiste – das Spiel hat Vorrang */
@media (min-width: 1101px) and (max-width: 1599px) {
  .shell:not(.chat-closed) { grid-template-columns: 76px minmax(0, 1fr) auto; }
  .shell:not(.chat-closed) .sidebar { padding: 12px 8px; }
  .shell:not(.chat-closed) .sidebar :is(.nav-sec, .side-promo, .nav-item .cnt) { display: none; }
  .shell:not(.chat-closed) .sidebar .nav-item > span:not(:first-child) { display: none; }
  .shell:not(.chat-closed) .sidebar .nav-item { justify-content: center; padding: 12px; }
  .shell:not(.chat-closed) .sidebar .nav-item .live { position: absolute; top: 8px; right: 10px; margin: 0; }
}

/* Chat-Spalte: Reiter, leerer Zustand, Tisch-Reiter der Spiele */
.chat-tabs button { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-tabs .chat-x { flex: 0 0 34px; }
.lbl-short-x { display: none; }
.shell.has-table-tab .chat-tabs .lbl-long { display: none; } .shell.has-table-tab .chat-tabs .lbl-short-x { display: inline; }
.chat-sys { align-self: center; padding: 5px 12px; border-radius: 99px; background: rgba(255,255,255,.04); border: 1px solid var(--line); color: var(--muted); font-size: 11.5px; }
.chat-empty { margin: auto; display: grid; justify-items: center; gap: 6px; text-align: center; color: var(--muted); font-size: 13px; max-width: 220px; }
.chat-empty > span:first-child { color: var(--gold); opacity: .7; } .chat-empty b { color: var(--text); }
.chat-extra { padding: 10px 12px; }
.table-chat { display: flex; flex-direction: column; gap: 8px; flex: 1; min-height: 0; }
.table-chat .bj-chat-list, .table-chat .pk-log { flex: 1; height: auto; min-height: 0; overflow-y: auto; }
.table-chat form .input { flex: 1; min-width: 0; }
@media (min-width: 1101px) { body:has(.shell:not(.chat-closed)) .toasts { right: calc(var(--chat) + 16px); } }

/* Spiel-Kopfzeile: gleiche Höhen, quadratisches Icon */
.game-head .rules-btn { height: 40px; padding: 0 14px; }
.game-head-art { width: 44px; height: 44px; border-radius: 12px; outline: 1px solid rgba(245,196,81,.25); outline-offset: -1px; }

/* Touch: keine hängenden Hover-Zustände, dafür sichtbares Antippen */
@media (hover: none) {
  .game-card:hover { transform: none; box-shadow: none; border-color: var(--line); }
  .game-card:hover .gc-art img { transform: none; }
  .game-card:hover .gc-play { opacity: 0; }
  .pkg:hover, .cat-chip:hover, .chip-btn:hover, .wb-spot:hover, .bc-spot:hover, .hilo-btn:hover:not(:disabled) { transform: none; }
  .game-card, .cat-chip, .bottom-nav button, .pkg, .btn { transition: transform .12s; }
  .game-card:active { transform: scale(.98); }
  .cat-chip:active, .bottom-nav button:active, .pkg:active, .btn:active { transform: scale(.97); }
}
/* Touch-Ziele mindestens 40 px */
@media (pointer: coarse) {
  .btn-sm { height: 40px; } .btn-xs { height: 34px; }
  .seg button { height: 36px; }
  .icon-btn { width: 40px; height: 40px; }
  .bet-mod { min-width: 44px; }
}

/* Tablet: Chat-Schublade mit Abdunklung, Tippen daneben schließt */
@media (min-width: 761px) and (max-width: 1100px) {
  .shell::after { content: ''; position: fixed; inset: var(--top) 0 0 0; background: rgba(3,5,12,.5); z-index: 19; opacity: 0; pointer-events: none; transition: opacity .2s; }
  .shell:not(.chat-closed)::after { opacity: 1; pointer-events: auto; }
}

@media (max-width: 760px) {
  /* Kein iOS-Zoom beim Antippen von Feldern */
  .input, .select, textarea.input, .chat-form .input, .input-sm { font-size: 16px; }
  .input-sm { height: 40px; }
  /* Safe-Area am Bildschirmrand (iPhone mit Home-Indikator) */
  .shell { grid-template-rows: var(--top) minmax(0, 1fr) calc(62px + env(safe-area-inset-bottom, 0px)); }
  .bottom-nav { padding: 0 env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px); }
  .chat { bottom: calc(62px + env(safe-area-inset-bottom, 0px)); }
  .topbar { padding-left: max(10px, env(safe-area-inset-left, 0px)); padding-right: max(10px, env(safe-area-inset-right, 0px)); }
  .toasts { right: max(16px, env(safe-area-inset-right, 0px)); }
  /* Untere Navigation: aktiver Strich, Chat-Hinweis */
  .bottom-nav button { position: relative; }
  .bottom-nav button.on::before { content: ''; position: absolute; top: 0; left: 50%; width: 28px; height: 3px; margin-left: -14px; border-radius: 0 0 3px 3px; background: var(--gold); box-shadow: 0 0 10px rgba(245,196,81,.55); }
  .bottom-nav .badge-dot { top: 9px; right: calc(50% - 17px); box-shadow: 0 0 0 2px #090d1a; }
  .chat-tabs .lbl-long { display: none; } .chat-tabs .lbl-short-x { display: inline; }
  /* Filter-Leisten in Panels nie breiter als der Bildschirm */
  .panel-head > .seg, .panel-head > .row, .panel-head > select { flex: 1 1 100%; min-width: 0; }
  .panel-head > .seg { overflow-x: auto; scrollbar-width: none; }
  .panel-head > .seg button { flex: 1 0 auto; justify-content: center; padding: 0 10px; }
  .panel-head > .row > .input, .admin-usersbar .input { flex: 1; min-width: 0; }
  .select-filter { width: 100% !important; }
  /* Wischleisten mit Randverlauf */
  .cat-chips, .admin-tabs, .page .seg.tabs-scroll { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent); scroll-padding-inline: 14px; }
  .cat-chips::after, .admin-tabs::after, .page .seg.tabs-scroll::after { content: ''; flex: 0 0 1px; }
  /* Tabellen: Neben-Spalten weg, Kontext als zweite Zeile */
  .hide-sm { display: none !important; }
  .tbl-sub { display: block; font-size: 11.5px; font-weight: 500; color: var(--muted); margin-top: 2px; }
  .tbl td:first-child, .tbl th:first-child { padding-left: 0; } .tbl td:last-child, .tbl th:last-child { padding-right: 0; }
  /* Dialoge als Bottom-Sheet */
  .modal-overlay { place-items: end stretch; padding: 0; }
  .modal { max-width: none !important; max-height: 90dvh; border-radius: 18px 18px 0 0; transform: translateY(100%); transition: transform .26s cubic-bezier(.2,.8,.2,1); padding-bottom: env(safe-area-inset-bottom, 0px); }
  .modal-overlay.in .modal { transform: none; }
  .modal-head { padding-top: 20px; position: sticky; }
  .modal-head::before { content: ''; position: absolute; top: 7px; left: 50%; width: 36px; height: 4px; margin-left: -18px; border-radius: 4px; background: var(--line2); }
  .modal-actions { position: sticky; bottom: 0; background: var(--panel); padding-top: 10px; }
  /* Kasse & Admin */
  .page-head > .balance-big { display: none; }
  .bonus-card > .btn { width: 100%; }
  .pkg { flex: 1 1 calc(50% - 5px); }
  .pkg .pkg-best { top: -1px; right: auto; left: 50%; width: auto; transform: translateX(-50%); padding: 3px 10px; border-radius: 0 0 8px 8px; font-size: 10px; letter-spacing: .08em; }
  .pkg.is-best { padding-top: 26px; }
  .bar-row { grid-template-columns: 86px minmax(0,1fr) 64px; gap: 8px; font-size: 12px; }
  .bar-row > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .pkg-edit { grid-template-columns: 44px 1fr auto; } .pkg-edit img { width: 44px; height: 44px; } .pkg-edit-fields { grid-column: 1 / -1; grid-row: 2; }
  .modal .row > .balance-big { flex: 1 1 100%; }
  /* Lobby */
  .hero-text .row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .hero-text .row .btn-lg { padding: 0 10px; min-width: 0; }
  .ticker { padding-left: 12px; gap: 8px; }
  .game-card .gc-name, .game-card .gc-sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .game-card .gc-info > div { min-width: 0; }
  /* Profil */
  .profile-avatar { width: 60px !important; height: 60px !important; }
  .profile-name { font-size: 19px; }
  /* Login */
  .auth-float { opacity: .10; } .auth-brand p { max-width: 30ch; text-shadow: 0 1px 12px rgba(5,4,10,.9); }
}
.profile-name { font-size: 24px; } .profile-since { font-size: 12.5px; }

/* ── Anmeldeseite: Text nie über hellen Karten ─────────────────────────────
   Dunkler Verlauf unter dem Markentext (alle Breiten); auf dem Handy wandert die
   Deko als kleine Kartengruppe rechts neben den Titel, weg vom Fließtext. */
.auth-art::after { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(8,5,18,0) 30%, rgba(8,5,18,.78) 74%, rgba(8,5,18,.92) 100%); }
.auth-brand p, .auth-feats span { text-shadow: 0 1px 10px rgba(5,4,10,.85); }
.auth-feats span { background: rgba(14,10,28,.72); border-color: rgba(255,255,255,.12); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
@keyframes floaty-sm { 50% { transform: translateY(-5px) rotate(var(--r2, 0deg)); } }
@media (max-width: 760px) {
  .auth-art::after { background: linear-gradient(90deg, rgba(8,5,18,.55) 0%, rgba(8,5,18,.2) 62%, rgba(8,5,18,0) 100%); }
  .auth-art .auth-float { opacity: 1; animation-name: floaty-sm; filter: drop-shadow(0 8px 14px rgba(0,0,0,.6)); }
  .auth-art .auth-float:nth-child(1) { left: auto !important; right: 26px; top: 20px !important; width: 58px !important; z-index: 1; }
  .auth-art .auth-float:nth-child(2) { left: auto !important; right: 64px; top: 26px !important; width: 54px !important; }
  .auth-art .auth-float:nth-child(3) { left: auto !important; right: 14px; top: 78px !important; width: 38px !important; z-index: 2; }
  .auth-art .auth-float:nth-child(n+4) { display: none; }
  .auth-brand h1 { max-width: calc(100% - 128px); }
  .auth-brand p { max-width: none; color: #d4d8ea; }
  .auth { background: var(--bg2); }
}
@media (max-width: 340px) {
  .auth-art .auth-float:nth-child(2) { display: none; }
  .auth-brand h1 { max-width: calc(100% - 84px); font-size: 27px; }
}
