:root {
    --primary: #2563eb;
    --secondary: #f59e0b;
    --ink: #0f172a;
    --muted: #64748b;
    --surface: rgba(255, 255, 255, 0.92);
    --line: rgba(148, 163, 184, 0.28);
    --page-background: none;
}

* {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--ink);
    font-family: Inter, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
    background: #f6f8fc;
    background-image: var(--page-background);
    background-size: cover;
    background-attachment: fixed;
}

a {
    color: var(--primary);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: rgba(255, 255, 255, 0.88);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
}

.site-header .navbar {
    min-height: 72px;
}

.navbar-brand {
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--ink) !important;
}

.brand-logo {
    width: 34px;
    height: 34px;
    object-fit: contain;
    border-radius: 10px;
}

.brand-mark {
    display: inline-flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.24);
}

.points-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 999px;
    color: var(--primary);
    background: rgba(37, 99, 235, 0.1);
    font-weight: 700;
}

.hero-section {
    position: relative;
    overflow: hidden;
    padding: 72px 0 54px;
}

.hero-section::before {
    position: absolute;
    inset: -20% 50% auto auto;
    width: 620px;
    height: 620px;
    content: "";
    border-radius: 50%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.16), transparent 65%);
    pointer-events: none;
}

.hero-copy {
    position: relative;
    z-index: 1;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    color: var(--primary);
    background: rgba(37, 99, 235, 0.1);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.16em;
}

.hero-copy h1 {
    margin: 20px 0 14px;
    font-size: clamp(2.4rem, 6vw, 4.5rem);
    font-weight: 900;
    letter-spacing: -0.05em;
    line-height: 1.02;
}

.hero-subtitle {
    max-width: 520px;
    color: var(--muted);
    font-size: 1.12rem;
}

.hero-rules {
    margin-top: 26px;
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.7);
}

.rules-title {
    margin-bottom: 6px;
    font-weight: 800;
}

.hero-rules p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.wheel-panel {
    position: relative;
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: 34px;
    background: var(--surface);
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.12);
}

.wheel-stage {
    position: relative;
    width: min(100%, 620px);
    aspect-ratio: 1;
    margin: 0 auto;
}

#wheelCanvas {
    display: block;
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 22px 40px rgba(15, 23, 42, 0.2));
}

.wheel-pointer {
    position: absolute;
    top: -8px;
    left: 50%;
    z-index: 4;
    transform: translateX(-50%);
    color: var(--secondary);
    font-size: 2.3rem;
    line-height: 1;
    filter: drop-shadow(0 6px 10px rgba(15, 23, 42, 0.2));
}

.wheel-center {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 3;
    display: flex;
    width: 116px;
    height: 116px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 1px;
    transform: translate(-50%, -50%);
    border: 8px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(145deg, var(--primary), var(--secondary));
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.28);
    font-weight: 900;
    letter-spacing: 0.06em;
}

.wheel-center-icon {
    font-size: 1.5rem;
}

.wheel-center-text {
    font-size: 0.78rem;
}

.wheel-status {
    margin-top: 14px;
    text-align: center;
    color: var(--muted);
    font-size: 0.9rem;
}

.participation-section,
.prizes-section {
    padding: 48px 0 72px;
}

.action-card {
    height: 100%;
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--surface);
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
}

.action-card-icon {
    display: inline-flex;
    width: 52px;
    height: 52px;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    border-radius: 16px;
    color: var(--primary);
    background: rgba(37, 99, 235, 0.1);
    font-size: 1.5rem;
}

.action-card h2 {
    margin-bottom: 20px;
    font-size: 1.25rem;
    font-weight: 800;
}

.captcha-image {
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 8px;
    cursor: pointer;
}

.points-summary {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 22px;
    padding: 18px;
    border-radius: 16px;
    background: rgba(37, 99, 235, 0.06);
}

.points-summary > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.points-summary span {
    color: var(--muted);
    font-size: 0.82rem;
}

.points-summary strong {
    font-size: 1.6rem;
}

.section-heading {
    margin-bottom: 28px;
}

.section-heading .eyebrow {
    color: var(--primary);
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.2em;
}

.section-heading h2 {
    margin-top: 6px;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 900;
    letter-spacing: -0.04em;
}

.prize-card {
    height: 100%;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.82);
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.prize-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.1);
}

.prize-thumb {
    display: flex;
    height: 120px;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    border-radius: 16px;
    color: var(--primary);
    background: rgba(37, 99, 235, 0.06);
    font-size: 2.4rem;
    overflow: hidden;
}

.prize-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.prize-name {
    font-weight: 800;
}

.prize-meta {
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.82rem;
}

.auth-section,
.user-section,
.install-section {
    padding: 56px 0 80px;
}

.auth-card,
.user-profile-card,
.user-tabs,
.install-card {
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--surface);
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
}

.auth-card-head {
    margin-bottom: 24px;
    text-align: center;
}

.auth-icon,
.profile-avatar {
    display: inline-flex;
    width: 58px;
    height: 58px;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    border-radius: 18px;
    color: #fff;
    background: linear-gradient(145deg, var(--primary), var(--secondary));
    font-size: 1.7rem;
}

.auth-card-head h1 {
    font-size: 1.7rem;
    font-weight: 900;
}

.auth-card-head p,
.user-profile-card p {
    color: var(--muted);
}

.auth-links {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 18px;
    color: var(--muted);
    font-size: 0.9rem;
}

.user-profile-card {
    text-align: center;
}

.points-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 22px 0;
    padding: 18px;
    border-radius: 16px;
    background: rgba(37, 99, 235, 0.07);
}

.points-box span {
    color: var(--muted);
}

.points-box strong {
    color: var(--primary);
    font-size: 1.7rem;
}

.user-tabs .nav-link {
    color: var(--muted);
}

.user-tabs .nav-link.active {
    background: var(--primary);
}

.table > :not(caption) > * > * {
    padding: 0.8rem 0.75rem;
}

.result-modal {
    border: 0;
    border-radius: 26px;
    overflow: hidden;
}

.result-modal .modal-body {
    padding: 34px;
}

.result-icon {
    display: inline-flex;
    width: 74px;
    height: 74px;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(145deg, var(--primary), var(--secondary));
    font-size: 2.2rem;
}

.result-prize {
    margin: 6px 0 0;
    font-size: 1.8rem;
    font-weight: 900;
}

.result-image img {
    max-width: 160px;
    max-height: 160px;
    object-fit: contain;
}

.error-section {
    padding: 110px 0;
}

.error-code {
    color: var(--primary);
    font-size: 6rem;
    font-weight: 900;
    line-height: 1;
}

.install-head {
    margin-bottom: 34px;
}

.install-head .brand-mark {
    margin-bottom: 12px;
}

.install-card h2 {
    margin-bottom: 20px;
    font-size: 1.2rem;
    font-weight: 800;
}

.check-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.check-list li {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
}

.check-list li:last-child {
    border-bottom: 0;
}

.check-list small {
    color: var(--muted);
}

.check-icon {
    display: inline-flex;
    width: 26px;
    height: 26px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
}

.check-icon.ok {
    background: #16a34a;
}

.check-icon.fail {
    background: #dc2626;
}

.site-footer {
    padding: 24px 0;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.88rem;
}

.theme-tech_blue {
    background-color: #f6f8fc;
}

.theme-festive_red {
    background-color: #fff7f5;
}

.theme-festive_red .hero-kicker,
.theme-festive_red .action-card-icon {
    color: #b91c1c;
    background: rgba(185, 28, 28, 0.09);
}

.theme-guochao {
    background-color: #fbf7ef;
}

.theme-guochao .site-header {
    background: rgba(255, 251, 242, 0.9);
}

.theme-neon {
    color: #e5e7eb;
    background: #070b16;
}

.theme-neon .site-header,
.theme-neon .site-footer {
    color: #e5e7eb;
    background: rgba(7, 11, 22, 0.88);
}

.theme-neon .navbar-brand,
.theme-neon .navbar-brand span {
    color: #f8fafc !important;
}

.theme-neon .hero-copy h1,
.theme-neon .section-heading h2,
.theme-neon .prize-name {
    color: #f8fafc;
}

.theme-neon .hero-subtitle,
.theme-neon .hero-rules p,
.theme-neon .site-footer {
    color: #94a3b8;
}

.theme-neon .hero-rules,
.theme-neon .wheel-panel,
.theme-neon .action-card,
.theme-neon .prize-card,
.theme-neon .auth-card,
.theme-neon .user-tabs,
.theme-neon .user-profile-card {
    border-color: rgba(56, 189, 248, 0.2);
    background: rgba(15, 23, 42, 0.84);
    box-shadow: 0 20px 60px rgba(14, 165, 233, 0.12);
}

.theme-luxe_minimal {
    background-color: #f8f6f2;
}

.theme-luxe_minimal .brand-mark {
    background: linear-gradient(145deg, #1f2937, #b89b5e);
}

@media (max-width: 991.98px) {
    .hero-section {
        padding-top: 44px;
    }

    .wheel-center {
        width: 92px;
        height: 92px;
    }
}

@media (max-width: 575.98px) {
    .wheel-panel {
        padding: 14px;
        border-radius: 24px;
    }

    .auth-card,
    .user-profile-card,
    .user-tabs,
    .install-card,
    .action-card {
        padding: 22px;
    }
}

.maintenance-spinner {
    display: inline-flex;
    margin-bottom: 12px;
    color: var(--primary);
    font-size: 3rem;
    animation: maintenance-spin 1.2s linear infinite;
}

@keyframes maintenance-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Exact reference-stage layer */
.lucky-board-shell {
    display: flex;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: #04030f;
}

.lucky-board-shell::before {
    display: none;
}

.hide-game-header .lucky-board-shell {
    padding-top: 0;
}

.lucky-stage {
    position: relative;
    width: min(100vw, calc(100vh * 1.782));
    max-height: 100vh;
    aspect-ratio: 1782 / 1000;
    overflow: hidden;
    background: url('/assets/images/lucky-spin-bg.png') center / 100% 100% no-repeat;
    box-shadow: 0 0 42px rgba(0, 0, 0, 0.9);
}

.board-audio-toggle-group {
    top: 1.2%;
    right: 1.2%;
    gap: 8px;
}

.board-audio-toggle-group .board-sound-toggle {
    padding: 0.42vw 0.75vw;
    font-size: clamp(0.52rem, 0.74vw, 0.8rem);
    border-radius: 999px;
}

.board-tile-overlay {
    position: absolute;
    z-index: 4;
    padding: 0;
    border: 0;
    border-radius: 5%;
    background: transparent;
    box-shadow: none;
    cursor: default;
    transition: background 0.12s ease, box-shadow 0.12s ease, transform 0.12s ease;
}

.board-tile-overlay.is-active {
    background: rgba(251, 191, 36, 0.3);
    box-shadow: 0 0 2.2vw rgba(251, 191, 36, 0.8), inset 0 0 2vw rgba(251, 191, 36, 0.34);
    transform: scale(1.035);
}

.board-tile-overlay.is-winning {
    outline: 0.18vw solid #22c55e;
    background: rgba(34, 197, 94, 0.2);
    box-shadow: 0 0 2.6vw rgba(34, 197, 94, 0.8), inset 0 0 2vw rgba(34, 197, 94, 0.24);
}

.board-hotspot {
    position: absolute;
    z-index: 8;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
}

.board-hotspot:hover {
    background: rgba(34, 211, 238, 0.1);
    box-shadow: 0 0 2.2vw rgba(34, 211, 238, 0.42);
}

.board-hotspot-spin {
    left: 44.1%;
    top: 76.2%;
    width: 11.8%;
    height: 16%;
}

.board-hotspot-about {
    left: 28.1%;
    top: 79.5%;
    width: 8.2%;
    height: 14.5%;
}

.board-hotspot-history {
    left: 63.7%;
    top: 79.5%;
    width: 8.2%;
    height: 14.5%;
}

/* Lucky Spin board UI (screenshot reference) */
.theme-lucky_spin_neon .site-header,
.theme-lucky_spin_gold .site-header,
.theme-lucky_spin_blue .site-header {
    position: absolute;
    inset: 0 0 auto;
    z-index: 20;
    background: transparent;
    border-bottom: 0;
}

.theme-lucky_spin_neon .site-header .navbar,
.theme-lucky_spin_gold .site-header .navbar,
.theme-lucky_spin_blue .site-header .navbar {
    min-height: 62px;
}

.theme-lucky_spin_neon .site-header .nav-link[href="/"],
.theme-lucky_spin_gold .site-header .nav-link[href="/"],
.theme-lucky_spin_blue .site-header .nav-link[href="/"] {
    display: none;
}

.theme-lucky_spin_neon .site-header .navbar-nav .nav-link:first-child,
.theme-lucky_spin_gold .site-header .navbar-nav .nav-link:first-child,
.theme-lucky_spin_blue .site-header .navbar-nav .nav-link:first-child {
    display: none;
}

.theme-lucky_spin_neon .site-footer,
.theme-lucky_spin_gold .site-footer,
.theme-lucky_spin_blue .site-footer {
    display: none;
}

.lucky-board-shell {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    padding: 74px 18px 42px;
    color: #f8fafc;
    background:
        linear-gradient(180deg, rgba(5, 4, 24, 0.1), rgba(5, 4, 24, 0.46)),
        url('/assets/images/lucky-spin-bg.png') center / cover no-repeat;
}

.lucky-board-shell::before {
    position: absolute;
    inset: 0;
    content: "";
    pointer-events: none;
    background:
        radial-gradient(ellipse 54% 68% at 50% 44%, rgba(3, 4, 18, 1) 0 62%, rgba(3, 4, 18, 0.98) 74%, transparent 90%),
        radial-gradient(ellipse 46% 34% at 50% 100%, rgba(3, 4, 18, 1) 0 58%, transparent 94%);
    z-index: 1;
}

.hide-game-header .site-header {
    display: none;
}

.hide-game-header .lucky-board-shell {
    padding-top: 18px;
}

.neon-city {
    display: none;
}

.neon-city::before {
    position: absolute;
    inset: 0;
    content: "";
    background:
        radial-gradient(2px 2px at 12% 8%, #fff, transparent),
        radial-gradient(1px 1px at 30% 16%, #67e8f9, transparent),
        radial-gradient(2px 2px at 76% 9%, #fff, transparent),
        radial-gradient(1px 1px at 88% 20%, #f9a8d4, transparent),
        radial-gradient(1px 1px at 55% 5%, #a5f3fc, transparent),
        radial-gradient(1px 1px at 42% 22%, #fff, transparent);
    background-size: 360px 260px;
}

.neon-city::after {
    position: absolute;
    right: -4%;
    bottom: 0;
    left: -4%;
    height: 34%;
    content: "";
    background:
        repeating-linear-gradient(90deg, transparent 0 36px, rgba(59, 130, 246, 0.22) 36px 43px, transparent 43px 80px),
        repeating-linear-gradient(0deg, transparent 0 26px, rgba(236, 72, 153, 0.16) 26px 30px, transparent 30px 54px),
        linear-gradient(180deg, transparent, rgba(37, 99, 235, 0.18) 45%, rgba(2, 6, 23, 0.94));
    clip-path: polygon(0 38%, 4% 38%, 4% 20%, 9% 20%, 9% 45%, 14% 45%, 14% 26%, 20% 26%, 20% 52%, 25% 52%, 25% 18%, 31% 18%, 31% 47%, 37% 47%, 37% 30%, 43% 30%, 43% 58%, 49% 58%, 49% 22%, 55% 22%, 55% 48%, 61% 48%, 61% 28%, 67% 28%, 67% 54%, 73% 54%, 73% 20%, 79% 20%, 79% 45%, 85% 45%, 85% 26%, 91% 26%, 91% 50%, 96% 50%, 96% 32%, 100% 32%, 100% 100%, 0 100%);
}

.board-sound-toggle {
    position: absolute;
    top: 18px;
    right: 20px;
    z-index: 30;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border: 1px solid rgba(34, 211, 238, 0.5);
    border-radius: 999px;
    color: #e0f2fe;
    background: rgba(7, 11, 34, 0.82);
    font-size: 0.76rem;
    box-shadow: 0 0 16px rgba(34, 211, 238, 0.2);
}

.board-sound-toggle.is-muted {
    border-color: rgba(148, 163, 184, 0.35);
    opacity: 0.7;
}

.board-audio-toggle-group {
    position: absolute;
    top: 18px;
    right: 20px;
    z-index: 30;
    display: flex;
    gap: 8px;
}

.board-audio-toggle-group .board-sound-toggle {
    position: static;
}

.lucky-board-wrap {
    position: relative;
    z-index: 3;
    display: flex;
    min-height: calc(100vh - 28px);
    flex-direction: column;
    justify-content: center;
    width: min(100%, 820px);
    margin: 0 auto;
}

.lucky-marquee {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin: 0 auto -8px;
    z-index: 5;
}

.marquee-sign {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 42px 11px;
    border: 3px solid #22d3ee;
    border-radius: 8px;
    color: #fff;
    background: linear-gradient(180deg, rgba(176, 24, 64, 0.95), rgba(101, 10, 42, 0.95));
    box-shadow: 0 0 14px #f43f5e, 0 0 28px rgba(34, 211, 238, 0.6), inset 0 0 24px rgba(255, 255, 255, 0.12);
    clip-path: polygon(7% 0, 93% 0, 100% 50%, 93% 100%, 7% 100%, 0 50%);
    font-size: clamp(1.7rem, 4vw, 3rem);
    font-weight: 950;
    letter-spacing: 0.05em;
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.9), 0 0 20px rgba(34, 211, 238, 0.8);
}

.marquee-lucky {
    color: #e0ffff;
}

.marquee-spin {
    color: #fb7185;
}

.marquee-stars {
    display: flex;
    gap: 8px;
    color: #f8fafc;
    font-size: 0.62rem;
    text-shadow: 0 0 10px #22d3ee;
}

.lucky-board {
    position: relative;
    padding: 13px 14px 11px;
    border: 3px solid rgba(34, 211, 238, 0.9);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(9, 13, 43, 0.96), rgba(6, 8, 28, 0.98));
    box-shadow: 0 0 18px rgba(34, 211, 238, 0.6), 0 0 48px rgba(59, 130, 246, 0.24), inset 0 0 32px rgba(37, 99, 235, 0.18);
}

.lucky-board::before,
.lucky-board::after {
    position: absolute;
    left: 12px;
    right: 12px;
    height: 8px;
    content: "";
    background: radial-gradient(circle, #fff 0 2px, #ef4444 2px 4px, transparent 4px) repeat-x;
    background-size: 22px 8px;
    filter: drop-shadow(0 0 5px #ef4444);
}

.lucky-board::before {
    top: -6px;
}

.lucky-board::after {
    bottom: -6px;
}

.board-frame {
    position: relative;
    padding: 10px;
    border: 2px solid rgba(96, 165, 250, 0.75);
    border-radius: 12px;
    background: #070b2b;
    box-shadow: inset 0 0 20px rgba(34, 211, 238, 0.12);
}

.board-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
}

.board-tile {
    position: relative;
    display: flex;
    min-height: 94px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 7px;
    padding: 8px 5px;
    border: 1px solid rgba(59, 130, 246, 0.7);
    border-radius: 8px;
    color: #f8fafc;
    background: linear-gradient(180deg, #0a1035, #060a20);
    box-shadow: inset 0 0 18px rgba(37, 99, 235, 0.12);
    transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.board-tile:hover {
    transform: translateY(-2px);
    border-color: #22d3ee;
    box-shadow: 0 0 18px rgba(34, 211, 238, 0.4), inset 0 0 18px rgba(34, 211, 238, 0.16);
}

.board-tile.is-active {
    border-color: #fbbf24;
    background: linear-gradient(180deg, #422006, #1f1407);
    box-shadow: 0 0 26px rgba(251, 191, 36, 0.72), inset 0 0 24px rgba(251, 191, 36, 0.28);
    transform: scale(1.03);
}

.board-tile.is-winning {
    border-color: #22c55e;
    background: linear-gradient(180deg, #052e16, #061a11);
    box-shadow: 0 0 28px rgba(34, 197, 94, 0.68), inset 0 0 24px rgba(34, 197, 94, 0.22);
}

.board-icon {
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(145deg, #0ea5e9, #8b5cf6);
    box-shadow: 0 0 12px rgba(34, 211, 238, 0.48);
    font-size: 1.12rem;
    overflow: hidden;
}

.board-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.board-name {
    max-width: 100%;
    overflow: hidden;
    font-size: 0.68rem;
    font-weight: 800;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.board-ticker {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 12px 2px 0;
    padding: 7px 10px;
    border: 1px solid rgba(34, 197, 94, 0.42);
    border-radius: 6px;
    background: linear-gradient(180deg, rgba(22, 101, 52, 0.52), rgba(5, 46, 22, 0.72));
    overflow: hidden;
}

.board-ticker .ticker-badge {
    background: linear-gradient(135deg, #22c55e, #86efac);
    color: #052e16;
}

.board-ticker .ticker-track {
    color: #d1fae5;
    animation-duration: 20s;
}

.board-controls {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-top: 42px;
    padding: 0 8%;
}

.board-badge {
    display: flex;
    width: 130px;
    height: 130px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 6px;
    border: 2px solid rgba(168, 85, 247, 0.86);
    border-radius: 50%;
    color: #fff;
    background: radial-gradient(circle at 50% 30%, rgba(88, 28, 135, 0.82), rgba(7, 11, 34, 0.96));
    box-shadow: 0 0 18px rgba(168, 85, 247, 0.58), inset 0 0 18px rgba(236, 72, 153, 0.22);
    font-size: 0.62rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    line-height: 1.05;
    text-align: center;
    transform: rotate(-7deg);
}

.board-controls .board-badge:last-child {
    transform: rotate(7deg);
}

.board-badge:hover {
    border-color: #22d3ee;
    box-shadow: 0 0 26px rgba(34, 211, 238, 0.72), inset 0 0 22px rgba(34, 211, 238, 0.22);
}

.board-badge-icon {
    display: inline-flex;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #f8fafc;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 12px rgba(34, 211, 238, 0.5);
    font-size: 1rem;
}

.board-pedestal {
    position: relative;
    display: flex;
    width: 310px;
    height: 138px;
    align-items: center;
    justify-content: center;
}

.pedestal-glow {
    position: absolute;
    inset: 10px 0 0;
    border-radius: 50%;
    background: radial-gradient(ellipse at center, rgba(34, 211, 238, 0.68), rgba(37, 99, 235, 0.22) 42%, transparent 70%);
    filter: blur(14px);
}

.board-pedestal::before,
.board-pedestal::after {
    position: absolute;
    left: 50%;
    content: "";
    transform: translateX(-50%);
    border-radius: 50%;
}

.board-pedestal::before {
    bottom: 14px;
    width: 290px;
    height: 88px;
    border: 3px solid rgba(34, 211, 238, 0.6);
    background: radial-gradient(ellipse at center, rgba(14, 165, 233, 0.28), rgba(2, 6, 23, 0.9));
    box-shadow: 0 0 22px rgba(34, 211, 238, 0.52), inset 0 0 26px rgba(37, 99, 235, 0.35);
}

.board-pedestal::after {
    bottom: 32px;
    width: 190px;
    height: 54px;
    border: 2px solid rgba(125, 211, 252, 0.7);
    box-shadow: 0 0 18px rgba(34, 211, 238, 0.52);
}

.board-spin-button {
    position: relative;
    z-index: 2;
    width: 128px;
    height: 78px;
    border: 3px solid rgba(224, 242, 254, 0.9);
    border-radius: 50%;
    color: #fff;
    background: radial-gradient(circle at 50% 20%, #67e8f9, #0284c7 52%, #0c4a6e);
    box-shadow: 0 0 26px rgba(34, 211, 238, 0.92), inset 0 0 18px rgba(255, 255, 255, 0.32);
    font-size: 1.35rem;
    font-weight: 950;
    letter-spacing: 0.08em;
    text-shadow: 0 2px 0 rgba(2, 6, 23, 0.65), 0 0 12px rgba(255, 255, 255, 0.8);
    transform: rotate(-9deg);
}

.board-spin-button:hover {
    transform: rotate(-9deg) scale(1.04);
    box-shadow: 0 0 34px rgba(34, 211, 238, 1), inset 0 0 24px rgba(255, 255, 255, 0.42);
}

.board-spin-button:disabled {
    cursor: wait;
    filter: saturate(0.7);
    opacity: 0.8;
}

.board-modal {
    color: #f8fafc;
    border: 1px solid rgba(34, 211, 238, 0.5);
    border-radius: 18px;
    background: linear-gradient(180deg, #0b1030, #06081c);
    box-shadow: 0 0 30px rgba(34, 211, 238, 0.25);
}

.board-modal .modal-header,
.board-modal .modal-footer {
    border-color: rgba(34, 211, 238, 0.22);
}

.board-modal .btn-close {
    filter: invert(1);
}

.board-modal-card h6 {
    margin-bottom: 10px;
    color: #67e8f9;
    font-weight: 800;
}

.board-modal-rules {
    padding: 14px;
    border: 1px solid rgba(34, 211, 238, 0.22);
    border-radius: 12px;
    color: #cbd5e1;
    background: rgba(2, 6, 23, 0.55);
    line-height: 1.8;
}

.board-history-list .list-group-item {
    color: #e2e8f0;
    border-color: rgba(34, 211, 238, 0.16);
    background: rgba(2, 6, 23, 0.48);
}

.board-result-modal {
    color: #f8fafc;
    border: 1px solid rgba(34, 211, 238, 0.5);
    background: linear-gradient(180deg, #0b1030, #06081c);
}

@media (max-width: 991.98px) {
    .lucky-board-shell {
        padding-top: 70px;
    }

    .board-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .board-controls {
        padding: 0 2%;
    }

    .board-badge {
        width: 100px;
        height: 100px;
        font-size: 0.54rem;
    }

    .board-pedestal {
        width: 240px;
    }
}

@media (max-width: 575.98px) {
    .lucky-board-shell {
        padding: 64px 8px 30px;
    }

    .marquee-sign {
        padding: 8px 16px;
        font-size: 1.5rem;
    }

    .marquee-stars {
        display: none;
    }

    .lucky-board {
        padding: 10px;
    }

    .board-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 5px;
    }

    .board-tile {
        min-height: 72px;
        gap: 3px;
    }

    .board-icon {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }

    .board-name {
        font-size: 0.58rem;
    }

    .board-controls {
        gap: 6px;
    }

    .board-badge {
        width: 82px;
        height: 82px;
        font-size: 0.48rem;
    }

    .board-badge-icon {
        width: 24px;
        height: 24px;
        font-size: 0.78rem;
    }

    .board-pedestal {
        width: 150px;
        height: 100px;
    }

    .board-pedestal::before {
        width: 145px;
        height: 56px;
    }

    .board-pedestal::after {
        width: 100px;
        height: 36px;
        bottom: 22px;
    }

    .board-spin-button {
        width: 88px;
        height: 56px;
        font-size: 1rem;
    }
}

/* Lucky Spin reference-inspired templates */
.theme-lucky_spin_neon,
.theme-lucky_spin_gold,
.theme-lucky_spin_blue {
    --lucky-bg: #08051c;
    --lucky-bg-deep: #03020d;
    --lucky-primary: #22d3ee;
    --lucky-secondary: #ec4899;
    --lucky-accent: #a855f7;
    --lucky-text: #f8fafc;
    --lucky-muted: #a5b4fc;
    color: var(--lucky-text);
    background: radial-gradient(circle at 20% 0%, rgba(34, 211, 238, 0.18), transparent 30%),
        radial-gradient(circle at 90% 20%, rgba(236, 72, 153, 0.2), transparent 35%),
        linear-gradient(160deg, var(--lucky-bg), var(--lucky-bg-deep));
    background-attachment: fixed;
}

.theme-lucky_spin_gold {
    --lucky-bg: #1b0b06;
    --lucky-bg-deep: #080301;
    --lucky-primary: #fbbf24;
    --lucky-secondary: #ef4444;
    --lucky-accent: #f97316;
    --lucky-muted: #fcd34d;
}

.theme-lucky_spin_blue {
    --lucky-bg: #06122d;
    --lucky-bg-deep: #020617;
    --lucky-primary: #38bdf8;
    --lucky-secondary: #8b5cf6;
    --lucky-accent: #06b6d4;
    --lucky-muted: #93c5fd;
}

.theme-lucky_spin_neon .site-header,
.theme-lucky_spin_gold .site-header,
.theme-lucky_spin_blue .site-header {
    background: rgba(3, 2, 13, 0.72);
    border-bottom-color: rgba(34, 211, 238, 0.18);
}

.theme-lucky_spin_neon .navbar-brand,
.theme-lucky_spin_gold .navbar-brand,
.theme-lucky_spin_blue .navbar-brand {
    color: #fff !important;
    text-shadow: 0 0 18px rgba(34, 211, 238, 0.75);
}

.theme-lucky_spin_neon .nav-link,
.theme-lucky_spin_gold .nav-link,
.theme-lucky_spin_blue .nav-link {
    padding: 8px 16px !important;
    border: 1px solid rgba(34, 211, 238, 0.42);
    border-radius: 999px;
    background: rgba(8, 12, 34, 0.55);
    color: #dbeafe !important;
    text-shadow: 0 0 10px rgba(34, 211, 238, 0.35);
}

.theme-lucky_spin_neon .btn-primary,
.theme-lucky_spin_gold .btn-primary,
.theme-lucky_spin_blue .btn-primary {
    border: 0;
    color: #07101f;
    background: linear-gradient(135deg, var(--lucky-primary), var(--lucky-secondary));
    box-shadow: 0 0 22px rgba(34, 211, 238, 0.35);
}

.theme-lucky_spin_neon .btn-outline-primary,
.theme-lucky_spin_gold .btn-outline-primary,
.theme-lucky_spin_blue .btn-outline-primary {
    color: var(--lucky-primary);
    border-color: var(--lucky-primary);
}

.theme-lucky_spin_neon .site-footer,
.theme-lucky_spin_gold .site-footer,
.theme-lucky_spin_blue .site-footer {
    color: #64748b;
    border-top-color: rgba(34, 211, 238, 0.14);
    background: rgba(3, 2, 13, 0.7);
}

.lucky-spin-shell {
    position: relative;
    overflow: hidden;
    padding: 34px 0 0;
}

.lucky-spin-shell::before,
.lucky-spin-shell::after {
    position: absolute;
    inset: 0;
    content: "";
    pointer-events: none;
}

.lucky-spin-shell::before {
    opacity: 0.7;
    background-image: radial-gradient(2px 2px at 15% 18%, #fff, transparent),
        radial-gradient(2px 2px at 72% 8%, #67e8f9, transparent),
        radial-gradient(1px 1px at 35% 62%, #fff, transparent),
        radial-gradient(2px 2px at 88% 72%, #f9a8d4, transparent),
        radial-gradient(1px 1px at 8% 82%, #fff, transparent),
        radial-gradient(1px 1px at 55% 32%, #a5f3fc, transparent);
    background-size: 420px 420px;
}

.lucky-spin-shell::after {
    background: linear-gradient(180deg, transparent 70%, rgba(3, 2, 13, 0.92));
}

.lucky-glow {
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.22;
    pointer-events: none;
}

.lucky-glow-left {
    top: 10%;
    left: -140px;
    background: var(--lucky-primary);
}

.lucky-glow-right {
    top: 22%;
    right: -140px;
    background: var(--lucky-secondary);
}

.lucky-lobby {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
    gap: 28px;
    align-items: center;
}

.lucky-lobby-title h1 {
    margin: 10px 0 10px;
    color: #fff;
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 900;
    letter-spacing: -0.06em;
    line-height: 0.95;
    text-shadow: 0 0 28px rgba(34, 211, 238, 0.6), 0 0 60px rgba(236, 72, 153, 0.35);
}

.lucky-lobby-title p {
    max-width: 560px;
    color: var(--lucky-muted);
    font-size: 1.05rem;
}

.lucky-kicker {
    color: var(--lucky-primary);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.28em;
    text-shadow: 0 0 14px rgba(34, 211, 238, 0.8);
}

.lucky-prize-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 22px;
}

.lucky-prize-tile {
    position: relative;
    min-height: 116px;
    padding: 18px 14px;
    border: 1px solid rgba(34, 211, 238, 0.36);
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(14, 20, 55, 0.88), rgba(8, 12, 34, 0.86));
    box-shadow: inset 0 0 22px rgba(34, 211, 238, 0.08), 0 12px 30px rgba(0, 0, 0, 0.24);
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lucky-prize-tile:hover {
    transform: translateY(-4px);
    box-shadow: inset 0 0 26px rgba(34, 211, 238, 0.16), 0 0 26px rgba(34, 211, 238, 0.24);
}

.lucky-prize-tile.is-thanks {
    border-color: rgba(148, 163, 184, 0.35);
    filter: saturate(0.7);
}

.lucky-prize-icon {
    display: inline-flex;
    width: 52px;
    height: 52px;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(145deg, var(--lucky-primary), var(--lucky-secondary));
    box-shadow: 0 0 18px rgba(34, 211, 238, 0.45);
    font-size: 1.4rem;
    overflow: hidden;
}

.lucky-prize-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.lucky-prize-name {
    color: #fff;
    font-size: 0.92rem;
    font-weight: 800;
}

.lucky-prize-meta {
    margin-top: 3px;
    color: var(--lucky-muted);
    font-size: 0.72rem;
}

.lucky-wheel-column {
    position: relative;
    padding: 20px 0;
}

.lucky-jackpot {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 auto -32px;
    padding: 14px 20px;
    width: min(88%, 460px);
    border: 1px solid rgba(236, 72, 153, 0.62);
    border-radius: 999px;
    background: rgba(10, 6, 32, 0.92);
    box-shadow: 0 0 28px rgba(236, 72, 153, 0.35);
}

.lucky-jackpot-label {
    color: var(--lucky-secondary);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.16em;
}

.lucky-jackpot strong {
    color: #fff;
    font-size: 1.2rem;
}

.lucky-jackpot strong span {
    color: var(--lucky-primary);
    font-size: 0.68rem;
    letter-spacing: 0.1em;
}

.lucky-wheel-panel {
    position: relative;
    border-color: rgba(34, 211, 238, 0.28);
    border-radius: 30px;
    background: radial-gradient(circle at 50% 45%, rgba(34, 211, 238, 0.15), rgba(7, 7, 28, 0.96) 62%);
    box-shadow: 0 0 38px rgba(34, 211, 238, 0.18), inset 0 0 34px rgba(168, 85, 247, 0.12);
}

.lucky-wheel-panel .wheel-center {
    border-color: rgba(255, 255, 255, 0.5);
    background: linear-gradient(145deg, var(--lucky-primary), var(--lucky-secondary));
    box-shadow: 0 0 32px rgba(34, 211, 238, 0.65);
}

.lucky-wheel-panel .wheel-pointer {
    color: var(--lucky-primary);
    text-shadow: 0 0 16px rgba(34, 211, 238, 0.9);
}

.sound-toggle {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 999px;
    color: #e2e8f0;
    background: rgba(15, 23, 42, 0.72);
    font-size: 0.76rem;
}

.sound-toggle.is-muted {
    opacity: 0.66;
}

.audio-toggle-group {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 5;
    display: flex;
    gap: 8px;
}

.audio-toggle-group .sound-toggle {
    position: static;
}

.lucky-controls {
    position: relative;
    z-index: 2;
    margin-top: 28px;
}

.lucky-action-card {
    height: 100%;
    padding: 24px;
    border: 1px solid rgba(34, 211, 238, 0.28);
    border-radius: 22px;
    background: rgba(8, 10, 32, 0.86);
    box-shadow: inset 0 0 24px rgba(34, 211, 238, 0.06), 0 16px 40px rgba(0, 0, 0, 0.28);
}

.lucky-action-card h2 {
    color: #fff;
    font-size: 1.12rem;
}

.lucky-action-card .form-control {
    color: #f8fafc;
    border-color: rgba(148, 163, 184, 0.24);
    background: rgba(2, 6, 23, 0.72);
}

.lucky-action-card .form-control::placeholder {
    color: #64748b;
}

.lucky-action-card .action-card-icon {
    color: var(--lucky-primary);
    background: rgba(34, 211, 238, 0.1);
    box-shadow: 0 0 18px rgba(34, 211, 238, 0.18);
}

.lucky-query-card h2 {
    font-size: 1rem;
}

.code-query-result {
    padding: 12px 14px;
    border: 1px solid rgba(34, 211, 238, 0.26);
    border-radius: 14px;
    color: #e2e8f0;
    background: rgba(2, 6, 23, 0.7);
    font-size: 0.88rem;
}

.code-query-result .query-prize {
    margin-top: 4px;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 850;
}

.code-query-result .query-meta {
    margin-top: 4px;
    color: #94a3b8;
    font-size: 0.78rem;
}

.code-query-result .query-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 999px;
    color: #06121f;
    background: var(--lucky-primary);
    font-size: 0.72rem;
    font-weight: 800;
}

.lucky-ticker {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 34px;
    padding: 12px 16px;
    border-top: 1px solid rgba(34, 211, 238, 0.24);
    border-bottom: 1px solid rgba(236, 72, 153, 0.22);
    background: rgba(4, 4, 18, 0.78);
    overflow: hidden;
}

.ticker-badge {
    flex: 0 0 auto;
    padding: 7px 12px;
    border-radius: 999px;
    color: #04111f;
    background: linear-gradient(135deg, var(--lucky-primary), #a7f3d0);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.ticker-track {
    display: flex;
    gap: 28px;
    min-width: max-content;
    animation: lucky-ticker 24s linear infinite;
    color: #cbd5e1;
    font-size: 0.82rem;
    white-space: nowrap;
}

.ticker-item strong {
    color: var(--lucky-primary);
}

.ticker-item em {
    color: #64748b;
    font-style: normal;
}

@keyframes lucky-ticker {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

@media (max-width: 991.98px) {
    .lucky-lobby {
        grid-template-columns: 1fr;
    }

    .lucky-wheel-column {
        max-width: 620px;
        margin: 0 auto;
    }

    .lucky-prize-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .lucky-prize-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .lucky-jackpot {
        width: 96%;
    }

    .lucky-ticker {
        align-items: flex-start;
        flex-direction: column;
    }
}
