:root {
    --bg: #070b16;
    --bg-2: #0d1324;
    --panel: #12192c;
    --line: rgba(255, 215, 120, 0.16);
    --gold: #f5c14a;
    --gold-2: #ffe28a;
    --text: #f4efe4;
    --muted: #b7b1a4;
    --red: #d44848;
    --green: #1f8a4c;
    --focus: #ffe28a;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: Manrope, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top, #151b33 0%, var(--bg) 46%);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.5;
}
img { max-width: 100%; height: auto; }
a { color: var(--gold); }
h1, h2, h3, .brand-text strong {
    font-family: Cinzel, Georgia, serif;
    letter-spacing: 0.02em;
}
.container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.narrow { width: min(720px, 100%); }
.skip-link {
    position: absolute; left: -999px; top: 8px;
}
.skip-link:focus { left: 12px; background: var(--gold); color: #111; padding: 8px 12px; z-index: 20; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.site-header {
    position: sticky; top: 0; z-index: 10;
    background: rgba(7, 11, 22, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.header-inner { display: flex; align-items: center; gap: 20px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.brand-mark { color: var(--gold); font-size: 1.6rem; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text small { color: var(--gold); font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; }
.site-nav { display: flex; gap: 22px; }
.site-nav a { color: var(--muted); text-decoration: none; font-weight: 600; }
.site-nav a.is-active, .site-nav a:hover { color: var(--gold); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.header-search { display: flex; align-items: center; background: #0b1020; border: 1px solid rgba(255,255,255,0.08); border-radius: 999px; overflow: hidden; }
.header-search input { background: transparent; border: 0; color: var(--text); padding: 8px 12px; width: 110px; }
.header-search button { background: none; border: 0; color: var(--muted); padding: 8px 12px; }
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    border-radius: 999px; padding: 10px 18px; font-weight: 700; text-decoration: none; border: 1px solid transparent; cursor: pointer;
}
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--focus); outline-offset: 2px;
}
.btn-gold { background: var(--gold); color: #1a1406; }
.btn-ghost { background: transparent; color: var(--text); border-color: rgba(255,255,255,0.18); }
.btn-lg { padding: 14px 24px; font-size: 1.05rem; }
.btn-sm { padding: 7px 12px; font-size: 0.85rem; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.balance-chip { background: #161c31; border: 1px solid var(--line); color: var(--gold-2); padding: 8px 12px; border-radius: 999px; text-decoration: none; font-weight: 700; }
.nav-toggle { display: none; background: none; border: 0; width: 42px; height: 42px; position: relative; }
.nav-toggle span { display: block; height: 2px; background: var(--text); margin: 6px 8px; }

.hero { padding: 56px 0 36px; }
.hero-grid, .promo-grid, .trust-grid, .split { display: grid; gap: 28px; }
.hero-grid { grid-template-columns: 1.1fr 0.9fr; align-items: center; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 4.2rem); line-height: 1.05; margin: 0 0 16px; text-transform: uppercase; }
.hero h1 span { color: var(--gold); }
.hero-points { display: flex; flex-wrap: wrap; gap: 16px; padding: 0; list-style: none; color: var(--muted); }
.hero-art img { filter: drop-shadow(0 20px 40px rgba(0,0,0,0.45)); }

.section { padding: 28px 0 48px; }
.section-head { display: flex; justify-content: space-between; gap: 16px; align-items: end; margin-bottom: 22px; }
.section-head p, .hero p { color: var(--muted); }
.text-link { color: var(--gold); text-decoration: none; font-weight: 700; }

.game-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.game-card a { color: inherit; text-decoration: none; display: block; text-align: center; }
.game-thumb {
    aspect-ratio: 1; border-radius: 22px; display: grid; place-items: center;
    background: #151b2e; margin-bottom: 10px; overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05);
}
.game-card h2, .game-card h3 { margin: 0; font-size: 1rem; }
.game-card p { margin: 4px 0 0; color: var(--muted); font-size: 0.85rem; }
.theme-lucky-sevens { background: linear-gradient(180deg, #2b1230, #120814); }
.theme-diamond-rush { background: linear-gradient(180deg, #12325a, #07101d); }
.theme-royal-roulette { background: linear-gradient(180deg, #3a1020, #12060c); }
.theme-blackjack { background: linear-gradient(180deg, #102018, #070d0a); }
.theme-golden-fish { background: linear-gradient(180deg, #0e2a44, #071018); }
.theme-joker-wilds { background: linear-gradient(180deg, #3a1a10, #140806); }

.promo-grid { grid-template-columns: 1.4fr 1fr; }
.promo-card, .panel, .callout, .admin-card {
    background: linear-gradient(180deg, #171e33, #101628);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 24px;
    padding: 28px;
}
.promo-card { display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.promo-dark { background: linear-gradient(180deg, #10131f, #0b0e18); }
.eyebrow { color: var(--gold); text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.78rem; font-weight: 700; }
.vip-seal {
    width: 120px; height: 120px; border-radius: 50%;
    display: grid; place-items: center; font-family: Cinzel, serif; font-weight: 700;
    border: 6px solid var(--gold); color: var(--gold);
}

.category-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; }
.category-card {
    background: #12182a; border-radius: 18px; text-align: center; padding: 18px 8px;
    color: inherit; text-decoration: none; border: 1px solid rgba(255,255,255,0.04);
}
.category-card span { display: block; font-size: 1.4rem; margin-bottom: 8px; }

.trust-row { padding: 10px 0 60px; }
.trust-grid { grid-template-columns: repeat(3, 1fr); }
.trust-grid h3 { margin-bottom: 8px; }

.site-footer { border-top: 1px solid rgba(255,255,255,0.06); padding: 28px 0 20px; }
.footer-grid, .footer-base { display: flex; justify-content: space-between; gap: 16px; align-items: center; flex-wrap: wrap; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-nav a { color: var(--muted); text-decoration: none; }
.footer-base { color: var(--muted); font-size: 0.88rem; margin-top: 18px; }
.tagline { color: var(--gold); }

.page-hero { padding: 42px 0 10px; }
.stack-form { display: grid; gap: 14px; }
.stack-form label, .game-controls label { display: grid; gap: 6px; font-weight: 600; }
input, select, textarea {
    background: #0c1220; color: var(--text); border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px; padding: 10px 12px; font: inherit;
}
.form-error { color: #ffb4b4; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.balance-hero { font-size: 1.4rem; }
.fineprint, .history-list { color: var(--muted); }
.history-list { padding-left: 18px; }
.split { grid-template-columns: 1fr 1fr; }

.game-shell { padding: 28px 0 60px; }
.game-head { display: flex; justify-content: space-between; gap: 20px; align-items: start; }
.wallet-readout { display: flex; gap: 18px; margin: 0; }
.wallet-readout div { background: #12182b; padding: 10px 14px; border-radius: 14px; min-width: 120px; }
.wallet-readout dt { color: var(--muted); font-size: 0.78rem; }
.wallet-readout dd { margin: 0; font-size: 1.2rem; color: var(--gold); font-weight: 700; }

.slot-stage, .bj-table, .roulette-layout { margin: 22px 0; }
.slot-window {
    display: grid; gap: 8px; background: #080c16; padding: 16px; border-radius: 20px;
    border: 1px solid var(--line);
}
.slot-window[data-cols="3"] { grid-template-columns: repeat(3, 1fr); }
.slot-window[data-cols="5"] { grid-template-columns: repeat(5, 1fr); }
.reel { display: grid; gap: 8px; }
.symbol {
    min-height: 86px; border-radius: 14px; display: grid; place-items: center;
    background: #151c30; font-size: 2rem; font-weight: 800;
}
.symbol.is-win { box-shadow: 0 0 0 2px var(--gold); }
.slot-message { min-height: 1.4em; }
.game-controls { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; margin: 18px 0; }

.roulette-layout { display: grid; grid-template-columns: 220px 1fr; gap: 20px; }
.wheel { width: 200px; height: 200px; border-radius: 50%; margin: auto;
    background: conic-gradient(#1f8a4c 0 10deg, #b81d1d 10deg 20deg, #111 20deg 30deg, #b81d1d 30deg 40deg, #111 40deg 50deg, #b81d1d 50deg 60deg, #111 60deg 70deg, #b81d1d 70deg 80deg, #111 80deg 90deg, #b81d1d 90deg 100deg, #111 100deg 360deg);
    border: 10px solid var(--gold); box-shadow: inset 0 0 0 18px #0b0f18;
}
.wheel.is-spinning { animation: spin 1s ease-out; }
@keyframes spin { to { transform: rotate(720deg); } }
.outside-bets, .number-grid { display: grid; gap: 6px; }
.outside-bets { grid-template-columns: repeat(3, 1fr); margin-bottom: 10px; }
.number-grid { grid-template-columns: repeat(12, 1fr); }
.outside-bets button, .number-grid button {
    border: 0; border-radius: 8px; padding: 10px 4px; color: #fff; cursor: pointer; font-weight: 700;
}
.number-grid button.red { background: #b81d1d; }
.number-grid button.black { background: #171717; }
.number-grid button.green { background: #1f8a4c; }
.outside-bets button { background: #1a2136; color: var(--text); }
.outside-bets button.is-on, .number-grid button.is-on { outline: 2px solid var(--gold); }
.chip-tray { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; }

.hand { display: flex; flex-wrap: wrap; gap: 8px; min-height: 110px; }
.card-face {
    width: 72px; height: 100px; border-radius: 10px; background: #f6f1e6; color: #111;
    display: grid; place-items: center; font-weight: 800; border: 1px solid #d7d0c2;
}
.card-face.red { color: #b81d1d; }
.card-face.back { background: #1d2744; color: var(--gold); }

@media (max-width: 980px) {
    .game-grid { grid-template-columns: repeat(3, 1fr); }
    .category-grid { grid-template-columns: repeat(4, 1fr); }
    .hero-grid, .promo-grid, .trust-grid, .split, .roulette-layout { grid-template-columns: 1fr; }
    .header-search input { width: 80px; }
}
@media (max-width: 760px) {
    .header-inner { flex-wrap: wrap; }
    .nav-toggle { display: block; margin-left: auto; }
    .site-nav, .header-actions { display: none; width: 100%; }
    body.nav-open .site-nav, body.nav-open .header-actions {
        display: flex; flex-direction: column; align-items: stretch;
        background: #0b1020; padding: 12px 0 16px;
    }
    .header-search { width: 100%; }
    .header-search input { width: 100%; }
    .game-grid, .category-grid { grid-template-columns: repeat(2, 1fr); }
    .number-grid { grid-template-columns: repeat(6, 1fr); }
    .game-head, .promo-card { flex-direction: column; }
}
.history-table { width: 100%; border-collapse: collapse; }
.history-table th, .history-table td { text-align: left; padding: 8px 6px; border-bottom: 1px solid rgba(255,255,255,.06); }
.table-wrap { overflow-x: auto; }
.muted { color: var(--muted); }
