:root {
    --bg-0: #05070d;
    --bg-1: #0a0e1a;
    --bg-2: #0f1424;
    --bg-3: #161c30;
    --line: rgba(0, 212, 255, 0.12);
    --line-strong: rgba(0, 212, 255, 0.35);
    --text: #e6f0ff;
    --text-dim: #8a96ad;
    --text-muted: #5a6680;
    --accent: #00d4ff;
    --accent-2: #0099ff;
    --accent-glow: rgba(0, 212, 255, 0.45);
    --gold: #ffcb3d;
    --danger: #ff4d6d;
    --success: #2ee6a8;
    --grad-cta: linear-gradient(135deg, #00d4ff 0%, #0099ff 100%);
    --grad-bg: radial-gradient(1200px 600px at 80% -10%, rgba(0,153,255,.18), transparent 60%),
               radial-gradient(900px 500px at -10% 30%, rgba(0,212,255,.10), transparent 60%),
               linear-gradient(180deg, var(--bg-0) 0%, var(--bg-1) 100%);
    --radius: 14px;
    --radius-sm: 8px;
    --shadow-glow: 0 0 24px rgba(0, 212, 255, 0.25);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.5);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
    background: var(--grad-bg);
    background-attachment: fixed;
    color: var(--text);
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    font-size: 15px;
    line-height: 1.5;
    min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

.container { max-width: 1440px; margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header {
    position: sticky; top: 0; z-index: 50;
    backdrop-filter: blur(12px);
    background: rgba(10, 14, 26, 0.78);
    border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; letter-spacing: 0.5px; }
.brand-mark {
    width: 32px; height: 32px; border-radius: 8px;
    background: var(--grad-cta);
    box-shadow: var(--shadow-glow);
    display: grid; place-items: center; color: #001220; font-weight: 900;
}
.brand-name span { color: var(--accent); }
.nav { display: flex; gap: 6px; margin-left: 24px; }
.nav a {
    color: var(--text-dim); padding: 8px 14px; border-radius: 8px;
    font-weight: 500; font-size: 14px; transition: .2s;
}
.nav a:hover, .nav a.is-active { color: var(--text); background: rgba(0,212,255,.08); }
.header-spacer { flex: 1; }
.header-actions { display: flex; align-items: center; gap: 12px; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 18px; border-radius: 10px;
    font-weight: 600; font-size: 14px;
    transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.btn-primary {
    background: var(--grad-cta); color: #00131f;
    box-shadow: 0 0 0 rgba(0,212,255,0);
}
.btn-primary:hover { box-shadow: 0 0 24px var(--accent-glow); transform: translateY(-1px); }
.btn-ghost {
    background: rgba(0,212,255,.06); color: var(--text);
    border: 1px solid var(--line-strong);
}
.btn-ghost:hover { background: rgba(0,212,255,.12); }
.btn-sm { padding: 8px 14px; font-size: 13px; }

/* Balance widget */
.balance {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 8px 14px; border-radius: 10px;
    background: rgba(0,212,255,.06);
    border: 1px solid var(--line);
}
.balance-amount { font-weight: 700; font-variant-numeric: tabular-nums; }
.balance-currency { font-size: 12px; color: var(--text-dim); }
.balance .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 10px var(--success); }

/* Hero banner */
.hero {
    position: relative; overflow: hidden;
    margin: 24px 0;
    border-radius: 20px;
    background:
        radial-gradient(600px 240px at 85% 30%, rgba(0,212,255,.25), transparent 60%),
        linear-gradient(135deg, #0a1330 0%, #0a0e1a 60%);
    border: 1px solid var(--line);
    min-height: 320px;
}
.hero-content { position: relative; padding: 48px; max-width: 620px; }
.hero-eyebrow { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--accent); border: 1px solid var(--line-strong); background: rgba(0,212,255,.05); }
.hero-title { font-size: clamp(28px, 4vw, 44px); font-weight: 800; margin: 16px 0 12px; line-height: 1.1; }
.hero-title em { font-style: normal; background: var(--grad-cta); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { color: var(--text-dim); font-size: 16px; max-width: 480px; }
.hero-actions { margin-top: 24px; display: flex; gap: 12px; }
.hero-orb {
    position: absolute; right: -80px; top: 50%; transform: translateY(-50%);
    width: 460px; height: 460px; border-radius: 50%;
    background: conic-gradient(from 90deg, rgba(0,212,255,0), rgba(0,153,255,.35), rgba(0,212,255,0));
    filter: blur(40px); opacity: .8; pointer-events: none;
}

/* Jackpot ticker */
.jackpot {
    display: flex; align-items: center; gap: 16px;
    padding: 16px 20px;
    background: linear-gradient(90deg, rgba(255,203,61,.08), rgba(0,212,255,.05));
    border: 1px solid rgba(255,203,61,.2);
    border-radius: 14px;
    margin-bottom: 24px;
}
.jackpot-icon { width: 36px; height: 36px; border-radius: 10px; background: linear-gradient(135deg, #ffcb3d, #ff8a00); display: grid; place-items: center; }
.jackpot-label { color: var(--text-dim); font-size: 12px; text-transform: uppercase; letter-spacing: 1px; }
.jackpot-amount { font-size: 22px; font-weight: 800; color: var(--gold); font-variant-numeric: tabular-nums; }
.jackpot-marquee { flex: 1; overflow: hidden; }
.jackpot-marquee-track { display: inline-flex; gap: 32px; white-space: nowrap; animation: marquee 40s linear infinite; }
.jackpot-marquee-track .item { color: var(--text-dim); font-size: 13px; }
.jackpot-marquee-track .item b { color: var(--text); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Category tabs */
.cats { display: flex; gap: 8px; flex-wrap: wrap; margin: 24px 0 16px; }
.cat-tab {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 16px; border-radius: 10px;
    background: rgba(255,255,255,.02);
    border: 1px solid var(--line);
    color: var(--text-dim); font-weight: 500; font-size: 14px;
    transition: .2s;
}
.cat-tab:hover { color: var(--text); border-color: var(--line-strong); }
.cat-tab.is-active { color: #00131f; background: var(--grad-cta); border-color: transparent; box-shadow: var(--shadow-glow); }
.cat-tab .count { font-size: 11px; opacity: .7; }

/* Search */
.search {
    position: relative; flex: 1; max-width: 340px;
}
.search input {
    width: 100%; padding: 10px 14px 10px 38px;
    background: rgba(255,255,255,.03);
    border: 1px solid var(--line);
    color: var(--text); border-radius: 10px;
    font-size: 14px; outline: none; transition: .2s;
}
.search input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0,212,255,.15); }
.search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-muted); }

/* Game grid */
.section-head { display: flex; align-items: end; justify-content: space-between; margin: 32px 0 16px; }
.section-title { font-size: 22px; font-weight: 700; }
.section-title small { color: var(--text-dim); font-size: 13px; font-weight: 500; margin-left: 8px; }
.grid {
    display: grid; gap: 16px;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

/* Game card */
.card {
    position: relative; overflow: hidden;
    border-radius: var(--radius);
    background: var(--bg-2);
    border: 1px solid var(--line);
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
    cursor: pointer;
    aspect-ratio: 3 / 4;
}
.card:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: var(--shadow-card), var(--shadow-glow); }
.card-cover { position: absolute; inset: 0; }
.card-cover img { width: 100%; height: 100%; object-fit: cover; }
.card-cover.placeholder {
    background:
        radial-gradient(180px 100px at 30% 20%, rgba(0,212,255,.25), transparent 60%),
        linear-gradient(135deg, #1a2342, #0c1226);
    display: grid; place-items: center;
}
.card-cover.placeholder .ph {
    font-size: 28px; font-weight: 800; color: rgba(230,240,255,.6);
    text-align: center; padding: 12px;
}
.card-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(5,7,13,.92) 100%);
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 14px;
}
.card-name { font-weight: 700; font-size: 14px; }
.card-provider { color: var(--text-dim); font-size: 12px; margin-top: 2px; }
.card-tag {
    position: absolute; top: 10px; left: 10px;
    padding: 3px 8px; border-radius: 6px;
    font-size: 10px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase;
    background: var(--grad-cta); color: #001220;
}
.card-tag.hot { background: linear-gradient(135deg, #ff4d6d, #ff8a00); color: #fff; }
.card-tag.new { background: linear-gradient(135deg, #2ee6a8, #00d4ff); color: #001220; }
.card-play {
    position: absolute; inset: 0;
    background: rgba(5,7,13,.7);
    display: grid; place-items: center;
    opacity: 0; transition: opacity .2s;
}
.card:hover .card-play { opacity: 1; }
.card-play .play-btn {
    width: 56px; height: 56px; border-radius: 50%;
    background: var(--grad-cta);
    display: grid; place-items: center;
    box-shadow: var(--shadow-glow);
}

/* Promotions strip */
.promos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 24px 0; }
.promo {
    position: relative; overflow: hidden;
    padding: 24px; border-radius: var(--radius);
    background: linear-gradient(135deg, var(--bg-2), var(--bg-3));
    border: 1px solid var(--line);
    min-height: 140px;
}
.promo h4 { font-size: 18px; margin-bottom: 6px; }
.promo p { color: var(--text-dim); font-size: 13px; max-width: 240px; }
.promo .bonus { position: absolute; right: 12px; top: 12px; font-size: 28px; font-weight: 900; color: var(--accent); opacity: .9; }
@media (max-width: 880px) { .promos { grid-template-columns: 1fr; } }

/* Footer */
.site-footer {
    margin-top: 64px; padding: 40px 0 24px;
    border-top: 1px solid var(--line);
    color: var(--text-dim); font-size: 13px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
.footer-grid h5 { color: var(--text); font-size: 13px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; }
.footer-grid a { display: block; color: var(--text-dim); padding: 4px 0; }
.footer-grid a:hover { color: var(--accent); }
.footer-bottom { padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; }
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* Game launcher modal */
.modal {
    position: fixed; inset: 0; z-index: 100;
    background: rgba(2,4,10,.88);
    backdrop-filter: blur(8px);
    display: none; align-items: center; justify-content: center;
    padding: 24px;
}
.modal.is-open { display: flex; }
.modal-frame {
    width: 100%; max-width: 1280px; height: 100%; max-height: 800px;
    border-radius: 16px; overflow: hidden;
    border: 1px solid var(--line-strong);
    background: #000;
    box-shadow: 0 0 60px rgba(0,212,255,.25);
    display: flex; flex-direction: column;
}
.modal-bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: var(--bg-2); border-bottom: 1px solid var(--line); }
.modal-title { font-weight: 600; font-size: 14px; }
.modal-close { margin-left: auto; padding: 6px 12px; border-radius: 8px; background: rgba(255,77,109,.15); color: var(--danger); font-weight: 600; font-size: 13px; }
.modal-close:hover { background: rgba(255,77,109,.3); }
.modal-iframe { flex: 1; border: 0; background: #000; }
.modal-loader {
    flex: 1; display: grid; place-items: center;
    color: var(--text-dim); font-size: 14px;
}

/* Responsive */
@media (max-width: 720px) {
    .nav { display: none; }
    .hero-content { padding: 32px 24px; }
    .hero-orb { right: -200px; width: 320px; height: 320px; }
    .grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}
