:root {
  --bg: #0b0f1a;
  --bg2: #111827;
  --panel: #161d2f;
  --panel2: #1c2540;
  --line: #273352;
  --text: #e8ecf6;
  --muted: #8d99b8;
  --gold: #f5c542;
  --gold2: #ffdf7a;
  --green: #22c55e;
  --red: #ef4444;
  --blue: #3b82f6;
  --purple: #8b5cf6;
  --radius: 14px;
  --shadow: 0 10px 40px rgba(0, 0, 0, .45);
  --font: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); font-family: var(--font); line-height: 1.5; }
body { min-height: 100vh; background:
  radial-gradient(1200px 600px at 10% -10%, rgba(139, 92, 246, .18), transparent 60%),
  radial-gradient(900px 500px at 100% 0%, rgba(245, 197, 66, .12), transparent 60%),
  var(--bg); }
a { color: var(--gold); text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }
img { max-width: 100%; }
::selection { background: rgba(245, 197, 66, .35); }

/* ───── Layout ───── */
.topbar { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(14px); background: rgba(11, 15, 26, .8); border-bottom: 1px solid var(--line); }
.topbar-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; gap: 18px; padding: 12px 20px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: .5px; color: var(--text); }
.logo .chip { width: 34px; height: 34px; border-radius: 50%; background: conic-gradient(var(--gold), #b8860b, var(--gold)); display: grid; place-items: center; font-size: 18px; box-shadow: 0 0 0 3px #0b0f1a, 0 0 0 5px var(--gold); }
.logo b { color: var(--gold); }
nav.mainnav { display: flex; gap: 4px; flex: 1; overflow-x: auto; scrollbar-width: none; }
nav.mainnav::-webkit-scrollbar { display: none; }
nav.mainnav a { color: var(--muted); padding: 8px 12px; border-radius: 10px; font-weight: 600; font-size: 14px; white-space: nowrap; transition: .15s; }
nav.mainnav a:hover, nav.mainnav a.active { color: var(--text); background: var(--panel2); }
.userbox { display: flex; align-items: center; gap: 10px; }
.balance { display: flex; align-items: center; gap: 8px; background: var(--panel2); border: 1px solid var(--line); padding: 7px 12px; border-radius: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.balance .bal-coin { color: var(--gold); }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--purple), var(--blue)); display: grid; place-items: center; font-weight: 800; cursor: pointer; }
.menu-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--text); border-radius: 10px; padding: 6px 10px; font-size: 18px; }

main { max-width: 1200px; margin: 0 auto; padding: 24px 20px 80px; }
section.page { animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
h1, h2, h3 { margin: 0 0 12px; line-height: 1.2; }
h1 { font-size: clamp(30px, 5vw, 52px); font-weight: 900; letter-spacing: -.5px; }
h2 { font-size: 26px; font-weight: 800; }
h3 { font-size: 18px; font-weight: 700; }
.sub { color: var(--muted); font-size: 15px; }
.section { margin-top: 40px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.grid { display: grid; gap: 16px; }
.grid.g2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid.g3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid.g4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.card.soft { box-shadow: none; }
.card-title { font-weight: 800; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }

/* ───── Buttons ───── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 18px; border-radius: 12px; border: 1px solid transparent; font-weight: 700; font-size: 15px; transition: .15s; background: var(--panel2); color: var(--text); border-color: var(--line); }
.btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn.gold { background: linear-gradient(135deg, var(--gold2), var(--gold) 60%, #d4a017); color: #1a1200; border: none; box-shadow: 0 6px 20px rgba(245, 197, 66, .3); }
.btn.green { background: linear-gradient(135deg, #34d399, var(--green)); color: #03200f; border: none; }
.btn.red { background: linear-gradient(135deg, #f87171, var(--red)); color: #fff; border: none; }
.btn.ghost { background: transparent; }
.btn.sm { padding: 7px 12px; font-size: 13px; border-radius: 10px; }
.btn.lg { padding: 15px 26px; font-size: 17px; border-radius: 14px; }
.btn.block { width: 100%; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }

/* ───── Forms ───── */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 13px; color: var(--muted); font-weight: 600; }
.input, input[type=text], input[type=email], input[type=password], input[type=number], select, textarea {
  background: var(--bg2); border: 1px solid var(--line); color: var(--text); padding: 11px 13px; border-radius: 10px; font-size: 15px; outline: none; width: 100%; transition: .15s; }
.input:focus, input:focus, select:focus, textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(245, 197, 66, .15); }
textarea { resize: vertical; min-height: 80px; }
.amount-row { display: flex; gap: 8px; align-items: center; }
.amount-row input { flex: 1; font-weight: 700; font-size: 18px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chips button { background: var(--panel2); border: 1px solid var(--line); color: var(--text); padding: 6px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.chips button:hover { border-color: var(--gold); }
.chips button.active { background: var(--gold); color: #1a1200; border-color: var(--gold); }
.help { font-size: 12px; color: var(--muted); }

/* ───── Hero ───── */
.hero { display: grid; grid-template-columns: 1.2fr .8fr; gap: 30px; align-items: center; padding: 30px 0 10px; }
.hero .eyebrow { display: inline-flex; align-items: center; gap: 8px; background: rgba(245, 197, 66, .12); color: var(--gold); border: 1px solid rgba(245, 197, 66, .35); padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; margin-bottom: 14px; }
.hero p { font-size: 17px; color: var(--muted); max-width: 520px; }
.hero-art { position: relative; height: 320px; border-radius: 24px; background: linear-gradient(160deg, #1c2540, #0d1224); border: 1px solid var(--line); overflow: hidden; display: grid; place-items: center; }
.hero-art .big { font-size: 120px; filter: drop-shadow(0 20px 40px rgba(245, 197, 66, .35)); animation: float 4s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-14px) rotate(4deg); } }
.hero-art .orb { position: absolute; border-radius: 50%; filter: blur(40px); opacity: .55; }
.stats-row { display: flex; gap: 26px; margin-top: 26px; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; }
.stat b { font-size: 24px; font-weight: 900; color: var(--gold); }
.stat span { font-size: 13px; color: var(--muted); }

/* ───── Game cards ───── */
.game-card { position: relative; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); padding: 22px 18px 18px; cursor: pointer; transition: .2s; display: flex; flex-direction: column; gap: 6px; min-height: 190px; }
.game-card:hover { transform: translateY(-4px); border-color: var(--gold); box-shadow: 0 14px 40px rgba(0, 0, 0, .5); }
.game-card .icon { font-size: 46px; line-height: 1; }
.game-card .name { font-weight: 800; font-size: 18px; }
.game-card .desc { color: var(--muted); font-size: 13px; flex: 1; }
.game-card .tag { position: absolute; top: 12px; right: 12px; font-size: 11px; font-weight: 800; padding: 4px 8px; border-radius: 999px; background: rgba(34, 197, 94, .15); color: var(--green); border: 1px solid rgba(34, 197, 94, .35); }
.game-card .tag.hot { background: rgba(239, 68, 68, .15); color: #fca5a5; border-color: rgba(239, 68, 68, .35); }
.game-card .tag.new { background: rgba(59, 130, 246, .15); color: #93c5fd; border-color: rgba(59, 130, 246, .35); }
.game-card::after { content: ''; position: absolute; inset: auto -40% -60% auto; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(var(--accent, var(--gold)), transparent 70%); opacity: .18; }

/* ───── Game layout ───── */
.game-layout { display: grid; grid-template-columns: 320px 1fr; gap: 20px; align-items: start; }
.game-stage { background: linear-gradient(160deg, var(--panel2), var(--panel)); border: 1px solid var(--line); border-radius: var(--radius); min-height: 420px; padding: 24px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; position: relative; overflow: hidden; }
.result-banner { font-size: 22px; font-weight: 900; padding: 10px 20px; border-radius: 12px; min-height: 48px; display: flex; align-items: center; justify-content: center; text-align: center; transition: .3s; }
.result-banner.win { background: rgba(34, 197, 94, .15); color: var(--green); border: 1px solid rgba(34, 197, 94, .4); animation: pop .4s; }
.result-banner.lose { background: rgba(239, 68, 68, .12); color: #fca5a5; border: 1px solid rgba(239, 68, 68, .35); }
.result-banner.push { background: rgba(59, 130, 246, .12); color: #93c5fd; border: 1px solid rgba(59, 130, 246, .35); }
@keyframes pop { 0% { transform: scale(.8); } 60% { transform: scale(1.08); } 100% { transform: scale(1); } }
.fair-line { font-size: 11px; color: var(--muted); word-break: break-all; margin-top: 10px; }
.game-back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 600; margin-bottom: 14px; }

/* Slots */
.slot-machine { background: linear-gradient(#2a1a4a, #16112b); border: 4px solid var(--gold); border-radius: 22px; padding: 22px; box-shadow: 0 0 60px rgba(245, 197, 66, .25), inset 0 0 30px rgba(0, 0, 0, .5); }
.reels { display: flex; gap: 14px; }
.reel { width: 110px; height: 130px; background: linear-gradient(#f9fafb, #d1d5db); border-radius: 14px; font-size: 64px; overflow: hidden; position: relative; box-shadow: inset 0 6px 14px rgba(0, 0, 0, .3); }
.reel .strip { display: flex; flex-direction: column; will-change: transform; }
.reel .sym { height: 130px; flex: none; display: grid; place-items: center; line-height: 1; }
.reel .reel-shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(rgba(0,0,0,.35), transparent 25%, transparent 75%, rgba(0,0,0,.35)); }
.reel.stopped { animation: reelbump .25s; }
@keyframes reelbump { 0% { transform: translateY(0); } 40% { transform: translateY(5px); } 100% { transform: translateY(0); } }
.reel.hit { box-shadow: 0 0 0 4px var(--gold), 0 0 30px var(--gold), inset 0 6px 14px rgba(0, 0, 0, .3); }
.slot-lights { height: 10px; margin: -8px 0 14px; background: repeating-linear-gradient(90deg, var(--gold) 0 10px, transparent 10px 22px); border-radius: 5px; opacity: .35; }
.slot-lights.bottom { margin: 14px 0 -8px; }
.slot-machine.spinning .slot-lights { animation: lights .3s steps(2) infinite; opacity: .9; }
.slot-machine.jackpot { animation: jackpot .3s 6; }
.slot-machine.jackpot .slot-lights { animation: lights .15s steps(2) infinite; opacity: 1; }
@keyframes lights { to { background-position: 22px 0; } }
@keyframes jackpot { 50% { box-shadow: 0 0 90px var(--gold), inset 0 0 30px rgba(0,0,0,.5); transform: scale(1.02); } }

/* Crash */
.crash-wrap { position: relative; width: 100%; max-width: 720px; height: 340px; background: radial-gradient(ellipse at bottom, #1c2540, #0b0f1a); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.crash-cv { width: 100%; height: 100%; display: block; }
.crash-mult { position: absolute; top: 16px; left: 0; right: 0; text-align: center; font-size: 56px; font-weight: 900; letter-spacing: -1px; font-variant-numeric: tabular-nums; text-shadow: 0 4px 30px rgba(0,0,0,.6); pointer-events: none; }
.crash-mult.live { color: var(--gold); } .crash-mult.win { color: var(--green); } .crash-mult.crashed { color: var(--red); animation: pop .4s; } .crash-mult.wait { color: var(--muted); font-size: 40px; }
.crash-sub { position: absolute; top: 84px; left: 0; right: 0; text-align: center; color: var(--muted); font-weight: 700; pointer-events: none; }
.crash-history, .plinko-last { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; width: 100%; max-width: 720px; min-height: 26px; }
.crash-pill { font-size: 12px; font-weight: 800; padding: 3px 9px; border-radius: 999px; background: var(--bg2); border: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.crash-pill.low { color: #fca5a5; } .crash-pill.mid { color: var(--gold); } .crash-pill.high { color: var(--green); }

/* Dulce Fortuna (tumble slot) */
.tumble-wrap { position: relative; width: 100%; max-width: 760px; aspect-ratio: 6 / 5.6; border-radius: 18px; overflow: hidden; border: 3px solid var(--gold); box-shadow: 0 0 60px rgba(245,197,66,.25); background: linear-gradient(#3b1d6e, #150b2e); }
.tumble-wrap canvas { width: 100%; height: 100%; display: block; }
.tumble-hud { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%; max-width: 760px; }
.tumble-hud div { background: var(--bg2); border-radius: 10px; padding: 8px 10px; text-align: center; }
.tumble-hud b { display: block; font-size: 20px; font-variant-numeric: tabular-nums; }
.tumble-hud span { font-size: 11px; color: var(--muted); }
.tumble-hud .fs b { color: #f472b6; }
.tumble-controls { display: flex; gap: 8px; width: 100%; max-width: 760px; }
.tumble-controls .btn { flex: 1; }
.tumble-controls .btn.on { border-color: var(--gold); color: var(--gold); }
.game-card.featured { grid-column: span 2; background: linear-gradient(135deg, #3b1d6e, #7c3aed 60%, #db2777); border-color: transparent; }
.game-card.featured .icon { font-size: 64px; }
.game-card.featured .desc { color: rgba(255,255,255,.85); font-size: 14px; }
@media (max-width: 600px) { .game-card.featured { grid-column: span 1; } }

/* Plinko */
.plinko-wrap { width: 100%; max-width: 560px; aspect-ratio: 1 / 1.05; background: radial-gradient(ellipse at top, #1c2540, #0b0f1a); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.plinko-cv { width: 100%; height: 100%; display: block; }
.sfx-btn { background: none; border: 1px solid var(--line); color: var(--text); border-radius: 10px; padding: 6px 9px; font-size: 15px; }
.paytable { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; font-size: 13px; }
.paytable div { background: var(--bg2); border-radius: 8px; padding: 6px 8px; display: flex; justify-content: space-between; }

/* Roulette */
.wheel-wrap { position: relative; width: 260px; height: 260px; }
.wheel { width: 100%; height: 100%; border-radius: 50%; border: 8px solid #3b2a12; box-shadow: 0 0 40px rgba(0, 0, 0, .6), inset 0 0 0 6px var(--gold); transition: transform 3.2s cubic-bezier(.17, .67, .12, .99); position: relative; }
.wheel .num { position: absolute; left: 50%; top: 50%; width: 22px; height: 118px; margin-left: -11px; margin-top: -118px; transform-origin: 50% 100%; display: flex; justify-content: center; padding-top: 6px; font-size: 11px; font-weight: 800; color: #fff; }
.wheel-pin { position: absolute; top: -6px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 10px solid transparent; border-right: 10px solid transparent; border-top: 22px solid var(--gold); z-index: 2; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .5)); }
.wheel-center { position: absolute; inset: 60px; border-radius: 50%; background: radial-gradient(#3b2a12, #1a1208); display: grid; place-items: center; font-size: 40px; font-weight: 900; color: var(--gold); border: 4px solid var(--gold); }
.board { display: grid; grid-template-columns: 36px repeat(12, 1fr) 40px; gap: 3px; width: 100%; max-width: 640px; user-select: none; }
.board .cell { background: #1f2937; border: 1px solid var(--line); border-radius: 6px; min-height: 34px; display: grid; place-items: center; font-weight: 800; font-size: 13px; cursor: pointer; position: relative; transition: .1s; }
.board .cell:hover { filter: brightness(1.25); }
.board .cell.red { background: #b91c1c; }
.board .cell.black { background: #111827; }
.board .cell.green { background: #15803d; grid-row: span 3; }
.board .cell.col { font-size: 11px; }
.board .cell.wide { grid-column: span 4; }
.board .cell.wide6 { grid-column: span 2; }
.board .cell .chipmark { position: absolute; right: -4px; top: -6px; background: var(--gold); color: #1a1200; border-radius: 999px; font-size: 10px; padding: 1px 5px; box-shadow: 0 2px 4px rgba(0, 0, 0, .4); }
.board .cell.hit { outline: 3px solid var(--gold); z-index: 1; }
.number-pill { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; font-weight: 900; color: #fff; }
.number-pill.red { background: #b91c1c; } .number-pill.black { background: #111827; border: 1px solid #444; } .number-pill.green { background: #15803d; }

/* Blackjack */
.hand { display: flex; gap: 8px; min-height: 100px; align-items: center; }
.pcard { width: 66px; height: 94px; border-radius: 8px; background: #fff; color: #111; display: flex; flex-direction: column; justify-content: space-between; padding: 6px; font-weight: 900; font-size: 18px; box-shadow: 0 4px 12px rgba(0, 0, 0, .4); animation: deal .3s ease; }
.pcard.redsuit { color: #dc2626; }
.pcard .mid { text-align: center; font-size: 26px; }
.pcard.back { background: repeating-linear-gradient(45deg, #1d4ed8 0 6px, #1e40af 6px 12px); border: 3px solid #fff; }
@keyframes deal { from { transform: translateY(-30px) rotate(-8deg); opacity: 0; } to { transform: none; opacity: 1; } }
.hand-label { font-size: 13px; color: var(--muted); font-weight: 700; display: flex; gap: 8px; align-items: center; }
.hand-label b { color: var(--text); background: var(--bg2); padding: 2px 8px; border-radius: 6px; }

/* Dice */
.dice-track { width: 100%; max-width: 560px; height: 26px; border-radius: 999px; background: var(--red); position: relative; overflow: hidden; }
.dice-track .win { position: absolute; top: 0; bottom: 0; background: var(--green); }
.dice-track .marker { position: absolute; top: -8px; width: 4px; height: 42px; background: #fff; border-radius: 2px; transform: translateX(-2px); transition: left .6s cubic-bezier(.2, .8, .2, 1); box-shadow: 0 0 10px #fff; }
.dice-roll-num { font-size: 64px; font-weight: 900; font-variant-numeric: tabular-nums; }
.dice-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%; max-width: 560px; }
.dice-meta div { background: var(--bg2); border-radius: 10px; padding: 10px; text-align: center; }
.dice-meta b { display: block; font-size: 18px; }
.dice-meta span { font-size: 12px; color: var(--muted); }
input[type=range] { width: 100%; max-width: 560px; accent-color: var(--gold); }

/* Coin */
.coin { width: 170px; height: 170px; border-radius: 50%; display: grid; place-items: center; font-size: 80px; font-weight: 900; background: radial-gradient(circle at 30% 30%, #ffe680, var(--gold) 55%, #b8860b); box-shadow: 0 20px 40px rgba(0, 0, 0, .5), inset 0 0 0 8px rgba(255, 255, 255, .25); color: #5a3d00; transform-style: preserve-3d; }
.coin.flip { animation: flip 1.4s ease-in-out; }
@keyframes flip { 0% { transform: rotateY(0) translateY(0); } 50% { transform: rotateY(1080deg) translateY(-80px); } 100% { transform: rotateY(2160deg) translateY(0); } }
.pick-row { display: flex; gap: 10px; }
.pick-row .btn.sel { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(245, 197, 66, .25); }

/* Mines */
.mines-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; width: 100%; max-width: 400px; }
.mcell { aspect-ratio: 1; border-radius: 12px; background: linear-gradient(#2a3556, #1c2540); border: 1px solid var(--line); font-size: 30px; display: grid; place-items: center; cursor: pointer; transition: .15s; }
.mcell:hover:not(:disabled) { transform: translateY(-2px); border-color: var(--gold); }
.mcell:disabled { cursor: default; }
.mcell.gem { background: linear-gradient(#065f46, #047857); border-color: var(--green); animation: pop .3s; }
.mcell.mine { background: linear-gradient(#7f1d1d, #991b1b); border-color: var(--red); animation: pop .3s; }
.mcell.dim { opacity: .5; }

/* ───── Live feed / tables ───── */
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.table th { color: var(--muted); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; }
.table tr:last-child td { border-bottom: none; }
.table-wrap { overflow-x: auto; }
.pos { color: var(--green); font-weight: 700; } .neg { color: #fca5a5; font-weight: 700; }
.pill { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--panel2); border: 1px solid var(--line); }
.pill.ok { color: var(--green); border-color: rgba(34, 197, 94, .4); } .pill.warn { color: var(--gold); border-color: rgba(245, 197, 66, .4); } .pill.bad { color: #fca5a5; border-color: rgba(239, 68, 68, .4); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); display: inline-block; animation: blink 1.2s infinite; margin-right: 6px; }
@keyframes blink { 50% { opacity: .3; } }

/* ───── Donations ───── */
.progress { height: 16px; background: var(--bg2); border-radius: 999px; overflow: hidden; border: 1px solid var(--line); }
.progress > div { height: 100%; background: linear-gradient(90deg, var(--gold), #ff9f43); border-radius: 999px; transition: width 1s ease; }
.donor { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.donor:last-child { border-bottom: none; }
.donor .amt { margin-left: auto; font-weight: 800; color: var(--gold); white-space: nowrap; }
.donor .msg { color: var(--muted); font-size: 13px; }

/* ───── Promos ───── */
.promo { background: linear-gradient(135deg, var(--c1), var(--c2)); border-radius: var(--radius); padding: 22px; min-height: 170px; display: flex; flex-direction: column; justify-content: flex-end; position: relative; overflow: hidden; color: #fff; }
.promo .big { font-size: 34px; font-weight: 900; }
.promo .badge { position: absolute; top: 14px; left: 14px; background: rgba(0, 0, 0, .3); padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; }
.promo .emoji { position: absolute; right: 14px; top: 10px; font-size: 64px; opacity: .85; }

/* ───── FAQ ───── */
details { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin-bottom: 10px; }
details summary { font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; }
details summary::after { content: '+'; color: var(--gold); font-weight: 900; }
details[open] summary::after { content: '−'; }
details p { color: var(--muted); margin: 10px 0 0; }
.prose p, .prose li { color: var(--muted); }
.prose h3 { margin-top: 22px; }

/* ───── Modal / toast ───── */
.modal-bg { position: fixed; inset: 0; background: rgba(0, 0, 0, .7); backdrop-filter: blur(6px); display: grid; place-items: center; z-index: 100; padding: 20px; animation: fade .2s; }
.modal { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 26px; width: 100%; max-width: 440px; box-shadow: var(--shadow); position: relative; max-height: 92vh; overflow-y: auto; }
.modal .close { position: absolute; top: 12px; right: 14px; background: none; border: none; color: var(--muted); font-size: 22px; }
.tabs { display: flex; gap: 6px; background: var(--bg2); padding: 4px; border-radius: 12px; margin-bottom: 18px; }
.tabs button { flex: 1; background: none; border: none; color: var(--muted); padding: 9px; border-radius: 9px; font-weight: 700; }
.tabs button.active { background: var(--panel2); color: var(--text); }
.toasts { position: fixed; right: 18px; bottom: 18px; display: flex; flex-direction: column; gap: 8px; z-index: 200; }
.toast { background: var(--panel2); border: 1px solid var(--line); border-left: 4px solid var(--gold); padding: 12px 16px; border-radius: 10px; font-weight: 600; box-shadow: var(--shadow); animation: slidein .25s; max-width: 340px; }
.toast.err { border-left-color: var(--red); } .toast.ok { border-left-color: var(--green); }
@keyframes slidein { from { transform: translateX(30px); opacity: 0; } to { transform: none; opacity: 1; } }
.error-text { color: #fca5a5; font-size: 13px; font-weight: 600; min-height: 18px; }

/* ───── Payment method cards ───── */
.pm { display: flex; align-items: center; gap: 14px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg2); cursor: pointer; transition: .15s; }
.pm:hover { border-color: var(--gold); }
.pm.sel { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(245, 197, 66, .15); }
.pm .pm-logo { width: 46px; height: 46px; border-radius: 10px; display: grid; place-items: center; font-weight: 900; font-size: 13px; color: #fff; }
.pm .pm-logo.webpay { background: linear-gradient(135deg, #6b21a8, #c026d3); }
.pm .pm-logo.mp { background: linear-gradient(135deg, #009ee3, #00b1ea); }
.pm .pm-logo.demo { background: linear-gradient(135deg, #475569, #64748b); }
.pm .pm-name { font-weight: 800; }
.pm .pm-desc { font-size: 12px; color: var(--muted); }
.pm.off { opacity: .45; pointer-events: none; }

/* ───── Footer ───── */
footer { border-top: 1px solid var(--line); margin-top: 60px; background: rgba(0, 0, 0, .25); }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 36px 20px; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 24px; font-size: 14px; }
.footer-inner h4 { margin: 0 0 10px; font-size: 13px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }
.footer-inner a { display: block; color: var(--text); opacity: .8; margin-bottom: 6px; }
.footer-inner a:hover { opacity: 1; color: var(--gold); }
.footer-bottom { border-top: 1px solid var(--line); padding: 16px 20px; text-align: center; font-size: 12px; color: var(--muted); }
.age-badge { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--red); color: var(--red); font-weight: 900; font-size: 12px; }

/* ───── Admin ───── */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.kpi { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.kpi b { display: block; font-size: 22px; font-weight: 900; color: var(--gold); }
.kpi span { font-size: 12px; color: var(--muted); }

/* ───── Responsive ───── */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-art { height: 220px; }
  .game-layout { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .menu-toggle { display: inline-block; }
  nav.mainnav { display: none; position: absolute; top: 60px; left: 0; right: 0; flex-direction: column; background: var(--bg2); border-bottom: 1px solid var(--line); padding: 10px; }
  nav.mainnav.open { display: flex; }
  .reel { width: 80px; height: 100px; font-size: 46px; }
  .reel .sym { height: 100px; }
  .crash-wrap { height: 260px; } .crash-mult { font-size: 40px; } .crash-sub { top: 64px; }
  .paytable { grid-template-columns: repeat(2, 1fr); }
  .board { font-size: 11px; }
}
@media (max-width: 520px) {
  .balance span.lbl { display: none; }
  .userbox .btn.gold { display: none; }
  .topbar-inner { gap: 10px; }
  .footer-inner { grid-template-columns: 1fr; }
}
