:root {
    --bg: #08101d;
    --bg-2: #101827;
    --panel: rgba(16, 24, 39, 0.78);
    --panel-solid: #111a2b;
    --line: rgba(255, 255, 255, 0.12);
    --text: #f8fbff;
    --muted: #b8c1d4;
    --gold: #f5c451;
    --gold-2: #ffdd86;
    --amber: #b9702c;
    --blue: #6cc7ff;
    --green: #67e8a5;
    --danger: #ff7a8a;
    --shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 18% 12%, rgba(245, 196, 81, 0.12), transparent 28rem),
        radial-gradient(circle at 90% 10%, rgba(108, 199, 255, 0.14), transparent 30rem),
        linear-gradient(135deg, #07101d 0%, #111827 45%, #080f1b 100%);
    overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--gold-2); }
.page-glow { position: fixed; width: 34rem; height: 34rem; border-radius: 999px; filter: blur(60px); opacity: 0.16; pointer-events: none; z-index: 0; }
.page-glow-one { background: var(--gold); top: 8rem; left: -14rem; }
.page-glow-two { background: var(--blue); right: -12rem; bottom: 4rem; }
.premium-nav { background: rgba(7, 13, 25, 0.78); backdrop-filter: blur(18px); border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.brand-mark { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 15px; color: #1c1303; font-weight: 900; letter-spacing: -0.08em; background: linear-gradient(135deg, var(--gold-2), var(--gold) 52%, #a96519); box-shadow: 0 15px 35px rgba(245, 196, 81, 0.22); }
.brand-copy { display: grid; line-height: 1.05; }
.brand-title { font-weight: 900; letter-spacing: -0.04em; }
.brand-subtitle { color: var(--muted); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.16em; }
.navbar .nav-link { color: rgba(248, 251, 255, 0.78); font-weight: 700; padding: 0.7rem 0.9rem !important; border-radius: 999px; white-space: nowrap; }
.nav-spaced { gap: 0.6rem; }
.nav-spaced .nav-item { margin-inline: 0.05rem; }
.navbar .nav-link:hover { color: var(--gold-2); background: rgba(255, 255, 255, 0.06); }
.btn { border-radius: 999px; font-weight: 850; letter-spacing: -0.02em; padding: 0.82rem 1.25rem; }
.btn-gold { color: #1a1204; border: 0; background: linear-gradient(135deg, var(--gold-2), var(--gold) 50%, #b36a1a); box-shadow: 0 18px 40px rgba(245, 196, 81, 0.22); }
.btn-gold:hover, .btn-gold:focus { color: #100b02; transform: translateY(-1px); box-shadow: 0 22px 50px rgba(245, 196, 81, 0.32); }
.btn-outline-light { border-color: rgba(255, 255, 255, 0.24); color: var(--text); background: rgba(255, 255, 255, 0.04); }
.btn-outline-light:hover, .btn-outline-light:focus { color: #fff; background: rgba(255, 255, 255, 0.09); border-color: rgba(255, 255, 255, 0.38); }
.shadow-premium { box-shadow: var(--shadow); }
.hero-section { min-height: 100vh; }
.hero-grid { position: absolute; inset: 0; opacity: 0.18; pointer-events: none; background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px); background-size: 64px 64px; mask-image: radial-gradient(circle at center, black, transparent 72%); }
.eyebrow, .section-kicker { color: var(--gold-2); font-weight: 900; letter-spacing: 0.16em; text-transform: uppercase; font-size: 0.78rem; }
.eyebrow span { display: inline-block; width: 36px; height: 2px; background: var(--gold); margin-right: 0.65rem; vertical-align: middle; }
.hero-title, .section-title { font-family: "Playfair Display", Georgia, serif; font-weight: 900; letter-spacing: -0.055em; line-height: 0.95; }
.hero-title { font-size: clamp(3rem, 8vw, 6.35rem); }
.game-title { font-size: clamp(2.8rem, 6vw, 5.3rem); }
.hero-copy, .section-copy { color: var(--muted); font-size: 1.1rem; line-height: 1.75; }
.section-pad { padding: 7rem 0; position: relative; z-index: 1; }
.section-pad-sm { padding: 5rem 0; position: relative; z-index: 1; }
.bg-panel { background: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.015)); border-block: 1px solid rgba(255,255,255,0.08); }
.trust-row > div { border: 1px solid var(--line); background: rgba(255,255,255,0.05); border-radius: 20px; padding: 0.9rem 1rem; min-width: 8.2rem; }
.trust-row strong { display: block; color: var(--gold-2); font-size: 1.4rem; line-height: 1; }
.trust-row span { color: var(--muted); font-size: 0.82rem; }
.hero-game-card, .board-preview, .premium-panel, .signup-form, .status-panel, .control-panel, .wheel-panel, .play-board, .card-stage, .thank-card { border: 1px solid rgba(255,255,255,0.13); background: linear-gradient(145deg, rgba(17, 26, 43, 0.92), rgba(13, 19, 32, 0.74)); border-radius: 32px; }
.hero-game-card { padding: 2rem; position: relative; overflow: hidden; }
.hero-game-card:before { content: ""; position: absolute; inset: -40%; background: radial-gradient(circle, rgba(245,196,81,.14), transparent 34%); animation: slowSpin 18s linear infinite; }
.hero-game-card > * { position: relative; z-index: 1; }
.hero-card-header { color: var(--muted); font-size: 0.9rem; font-weight: 800; }
.vinyl-disc { width: 210px; height: 210px; border-radius: 50%; background: repeating-radial-gradient(circle, #111 0 8px, #1f2937 9px 14px); border: 8px solid rgba(245,196,81,.42); display: grid; place-items: center; box-shadow: inset 0 0 38px rgba(0,0,0,.8), 0 22px 55px rgba(0,0,0,.35); }
.disc-center { width: 78px; height: 78px; display: grid; place-items: center; border-radius: 50%; background: var(--gold); color: #191103; font-weight: 950; }
.rule-box { border: 1px solid rgba(245,196,81,.28); border-radius: 20px; padding: 1rem; background: rgba(245,196,81,.07); color: #fff4d4; }
.small-label { display: block; color: var(--gold-2); text-transform: uppercase; letter-spacing: .14em; font-size: .72rem; font-weight: 900; margin-bottom: .35rem; }
.pill { border: 1px solid rgba(255,255,255,.13); color: var(--muted); background: rgba(255,255,255,.05); border-radius: 999px; padding: .42rem .75rem; font-weight: 800; font-size: .85rem; }
.feature-list { display: grid; gap: 1rem; }
.feature-item { display: flex; gap: 1rem; padding: 1rem; border: 1px solid var(--line); border-radius: 22px; background: rgba(255,255,255,.045); }
.feature-icon { flex: 0 0 42px; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 14px; background: rgba(245,196,81,.16); color: var(--gold-2); font-weight: 900; }
.feature-item p { margin: .2rem 0 0; color: var(--muted); }
.board-preview, .premium-panel, .signup-form { padding: 1.5rem; }
.board-top { color: var(--gold-2); font-weight: 900; text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; }
.board-grid { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: .8rem; }
.space { min-height: 84px; padding: .75rem; border-radius: 18px; background: rgba(255,255,255,.055); border: 1px solid var(--line); color: #fff; font-weight: 900; }
.space span { color: var(--muted); font-size: .75rem; }
.space.active, .space.final { border-color: rgba(245,196,81,.55); background: rgba(245,196,81,.1); box-shadow: 0 0 0 1px rgba(245,196,81,.12), 0 16px 38px rgba(245,196,81,.12); }
.board-note, .small-note, .form-note { color: var(--muted); }
.category-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1rem; }
.category-card { min-height: 220px; padding: 1.35rem; border: 1px solid var(--line); border-radius: 26px; background: radial-gradient(circle at top right, rgba(245,196,81,.1), transparent 45%), rgba(255,255,255,.045); }
.category-card span { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 15px; background: rgba(108,199,255,.14); color: var(--blue); font-weight: 900; margin-bottom: 1.5rem; }
.category-card h3, .premium-panel h3 { font-weight: 900; letter-spacing: -0.03em; }
.category-card p, .premium-panel p { color: var(--muted); line-height: 1.65; margin-bottom: 0; }
.form-control, .form-select { border-radius: 16px; border: 1px solid rgba(255,255,255,.16); color: #fff; background-color: rgba(255,255,255,.055); padding: .9rem 1rem; }
.form-control:focus, .form-select:focus { color: #fff; background-color: rgba(255,255,255,.075); border-color: rgba(245,196,81,.65); box-shadow: 0 0 0 .25rem rgba(245,196,81,.12); }
.form-select option { color: #111827; }
.form-label { color: #fff; font-weight: 800; }
.footer { color: var(--muted); border-top: 1px solid rgba(255,255,255,.08); position: relative; z-index: 1; }
.floating-card { animation: floatCard 4.4s ease-in-out infinite; }

.game-body { background-attachment: fixed; }
.game-main { padding-top: 70px; }
.game-shell { display: grid; grid-template-columns: minmax(320px, 0.72fr) minmax(0, 1.28fr); gap: 1.25rem; align-items: start; }
.status-panel, .control-panel, .wheel-panel, .play-board, .card-stage { padding: 1.4rem; }
.status-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: .7rem; }
.status-grid div { border: 1px solid var(--line); border-radius: 18px; padding: .85rem; background: rgba(255,255,255,.045); }
.status-grid span { display: block; color: var(--muted); font-size: .75rem; font-weight: 900; text-transform: uppercase; letter-spacing: .12em; }
.status-grid strong { display: block; font-size: 1.6rem; color: var(--gold-2); }
.progress-premium { height: .65rem; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; }
.progress-premium .progress-bar { background: linear-gradient(90deg, var(--gold), var(--blue)); transition: width .35s ease; }
.dice-options { display: flex; gap: .75rem; flex-wrap: wrap; }
.dice-count-btn { border: 1px solid var(--line); border-radius: 999px; color: var(--text); background: rgba(255,255,255,.05); padding: .75rem 1.1rem; font-weight: 900; }
.dice-count-btn.active { color: #1a1204; background: var(--gold); border-color: transparent; }
.dice-stage { display: grid; grid-template-columns: 82px 82px 1fr; gap: .8rem; align-items: center; }
.die { height: 82px; border-radius: 20px; display: grid; place-items: center; font-size: 2rem; font-weight: 950; color: #1a1204; background: linear-gradient(135deg, #fff7d7, var(--gold)); border: 3px solid rgba(255,255,255,.44); box-shadow: inset 0 -6px 14px rgba(0,0,0,.16); }
.die.hidden { display: none; }
.die.rolling { animation: diceBounce .42s ease-in-out infinite; }
.roll-total { border: 1px solid var(--line); border-radius: 20px; padding: .85rem 1rem; background: rgba(255,255,255,.045); }
.roll-total span { display: block; color: var(--muted); font-size: .72rem; font-weight: 900; text-transform: uppercase; letter-spacing: .14em; }
.roll-total strong { font-size: 2rem; color: var(--gold-2); }
.wheel-label-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-weight: 900; color: var(--muted); }
.wheel-label-row strong { color: var(--gold-2); text-align: right; }
.wheel-wrap { position: relative; width: min(300px, 100%); margin: 1.2rem auto 0; aspect-ratio: 1; }
.category-wheel { width: 100%; height: 100%; border-radius: 50%; background: conic-gradient(#f5c451 0deg 60deg, #6cc7ff 60deg 120deg, #67e8a5 120deg 180deg, #ff9f68 180deg 240deg, #b58cff 240deg 300deg, #ff7a8a 300deg 360deg); border: 10px solid rgba(255,255,255,.12); box-shadow: inset 0 0 38px rgba(0,0,0,.38), 0 24px 60px rgba(0,0,0,.36); transition: transform 1.4s cubic-bezier(.18,.85,.18,1); position: relative; }
.wheel-center { position: absolute; inset: 34%; border-radius: 50%; display: grid; place-items: center; background: #101827; border: 6px solid rgba(255,255,255,.18); color: var(--gold-2); font-weight: 950; font-size: 1.4rem; }
.wheel-pointer { position: absolute; top: -8px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 14px solid transparent; border-right: 14px solid transparent; border-top: 26px solid var(--gold-2); filter: drop-shadow(0 8px 10px rgba(0,0,0,.3)); }
.category-pills { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; }
.category-pills span { color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: .35rem .62rem; font-size: .74rem; font-weight: 800; }
.board-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.1rem; }
.board-head h2 { margin: .2rem 0 0; font-weight: 950; letter-spacing: -.04em; }
.token-legend { color: var(--muted); font-weight: 800; display: flex; align-items: center; gap: .5rem; }
.game-token-mini { width: 22px; height: 22px; border-radius: 50%; background: var(--gold); display: inline-block; }
.play-board-grid { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: .8rem; }
.play-space { min-height: 116px; position: relative; border: 1px solid var(--line); border-radius: 22px; background: rgba(255,255,255,.04); padding: .78rem; overflow: hidden; }
.play-space:before { content: ""; position: absolute; inset: 0; opacity: 0; background: radial-gradient(circle at center, rgba(245,196,81,.26), transparent 62%); transition: opacity .25s; }
.play-space.current { border-color: rgba(245,196,81,.72); background: rgba(245,196,81,.095); transform: translateY(-2px); }
.play-space.current:before { opacity: 1; }
.space-num { display: block; color: var(--gold-2); font-weight: 950; font-size: 1.15rem; position: relative; z-index: 1; }
.space-cat { display: block; color: var(--muted); font-size: .76rem; font-weight: 850; position: relative; z-index: 1; }
.game-token { position: absolute; right: .65rem; bottom: .65rem; width: 42px; height: 42px; border-radius: 16px; display: grid; place-items: center; color: #1a1204; font-weight: 950; letter-spacing: -.08em; background: linear-gradient(135deg, #fff0b0, var(--gold)); box-shadow: 0 16px 32px rgba(245,196,81,.28); z-index: 3; animation: tokenPulse 1.4s ease-in-out infinite; }
.play-space.step-flash { animation: stepFlash .32s ease both; }
.card-stage { min-height: 380px; }
.card-placeholder { min-height: 330px; display: grid; place-items: center; text-align: center; align-content: center; gap: 1rem; }
.card-placeholder p { color: var(--muted); max-width: 540px; }
.game-card { animation: cardIn .42s ease both; }
.game-card-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.game-card-top span { border: 1px solid var(--line); border-radius: 999px; padding: .45rem .8rem; color: var(--gold-2); font-weight: 900; background: rgba(245,196,81,.07); }
.game-card h2 { font-size: clamp(1.55rem, 4vw, 2.6rem); font-weight: 950; letter-spacing: -.04em; line-height: 1.05; margin-bottom: 1.3rem; }
.answer-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .85rem; }
.answer-btn { min-height: 92px; text-align: left; border: 1px solid var(--line); background: rgba(255,255,255,.05); color: var(--text); border-radius: 22px; padding: 1rem; font-weight: 850; line-height: 1.35; transition: transform .16s ease, border-color .16s ease, background .16s ease; }
.answer-btn:hover:not(:disabled) { transform: translateY(-2px); border-color: rgba(245,196,81,.5); background: rgba(245,196,81,.075); }
.answer-btn.correct { border-color: rgba(103,232,165,.8); background: rgba(103,232,165,.13); }
.answer-btn.wrong { border-color: rgba(255,122,138,.8); background: rgba(255,122,138,.11); }
.answer-btn:disabled { cursor: not-allowed; opacity: .88; }
.feedback-box { margin-top: 1rem; border-radius: 22px; padding: 1rem; border: 1px solid rgba(245,196,81,.25); background: rgba(245,196,81,.07); color: #fff5d8; font-weight: 800; }
.access-modal { position: fixed; inset: 0; z-index: 2000; display: none; align-items: center; justify-content: center; padding: 1.25rem; }
.access-modal.show { display: flex; }
.access-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.68); backdrop-filter: blur(8px); }
.access-dialog { position: relative; z-index: 1; width: min(640px, 100%); max-height: min(760px, 88vh); border: 1px solid rgba(255,255,255,.14); background: linear-gradient(145deg, rgba(17,26,43,.98), rgba(8,16,29,.98)); border-radius: 32px; overflow: hidden; }
.access-dialog.compact { width: min(520px, 100%); }
.access-dialog-scroll { max-height: min(760px, 88vh); overflow-y: auto; padding: 2rem; }
.modal-x { position: absolute; right: 1rem; top: 1rem; z-index: 4; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255,255,255,.08); color: #fff; font-size: 1.6rem; line-height: 1; }
.access-dialog h2 { font-weight: 950; letter-spacing: -.04em; }
.access-dialog p { color: var(--muted); line-height: 1.7; }
.form-message { min-height: 1.4rem; font-weight: 850; color: var(--gold-2); }
.form-message.error { color: var(--danger); }
.modal-benefits { display: grid; gap: .75rem; }
.modal-benefits div { border: 1px solid var(--line); border-radius: 18px; padding: .85rem; background: rgba(255,255,255,.045); }
.modal-benefits strong { display: block; color: #fff; }
.modal-benefits span { color: var(--muted); }
.simple-page { min-height: 100vh; }
.simple-center { min-height: 100vh; display: grid; place-items: center; padding: 2rem; }
.thank-card { width: min(720px, 100%); text-align: center; padding: 2.2rem; }
.thank-card h1 { font-weight: 950; letter-spacing: -.05em; }
.thank-card p { color: var(--muted); }

@keyframes floatCard { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes slowSpin { to { transform: rotate(360deg); } }
@keyframes diceBounce { 0%,100% { transform: rotate(0deg) translateY(0); } 50% { transform: rotate(8deg) translateY(-8px); } }
@keyframes tokenPulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.07); } }
@keyframes stepFlash { 0% { transform: scale(1); } 50% { transform: scale(1.035); } 100% { transform: scale(1); } }
@keyframes cardIn { from { opacity: 0; transform: translateY(16px) rotateX(-4deg); } to { opacity: 1; transform: none; } }

@media (max-width: 991px) {
    .navbar-collapse { padding-top: 1rem; }
    .nav-spaced { gap: .35rem; align-items: stretch !important; }
    .navbar .nav-link { display: block; }
    .hero-title { font-size: clamp(3rem, 14vw, 4.6rem); }
    .game-shell { grid-template-columns: 1fr; }
    .board-grid, .play-board-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
    .category-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 640px) {
    .section-pad { padding: 4.5rem 0; }
    .section-pad-sm { padding: 3.5rem 0; }
    .brand-subtitle { display: none; }
    .brand-mark { width: 42px; height: 42px; }
    .board-grid, .play-board-grid, .category-grid, .answer-grid { grid-template-columns: 1fr; }
    .play-space { min-height: 86px; }
    .status-grid { grid-template-columns: 1fr; }
    .dice-stage { grid-template-columns: 72px 72px; }
    .roll-total { grid-column: 1 / -1; }
    .access-dialog-scroll { padding: 1.4rem; }
}
