/* ===== ROOT VARIABLES ===== */
:root {
    --bs-primary: #2A9FD6;
    --bs-primary-rgb: 42 159 214;
    --bs-info: #77B300;
    --bs-body-bg: #060606;
    --bs-body-color: #ADAFAE;
    --bs-secondary-bg: #2A2A2A;
    --bs-tertiary-bg: #222222;
    --bs-emphasis-color: #FFFFFF;
    --bs-secondary-color: #888888;
    --bs-tertiary-color: #888888;
    --bs-heading-color: #FFFFFF;
    --bs-border-color: color-mix(in srgb, var(--bs-emphasis-color) 14%, transparent);
    --bs-border-color-translucent: color-mix(in srgb, var(--bs-emphasis-color) 10%, transparent);
    --bs-border-radius: 8px;
    --bs-link-color: #2A9FD6;
    --bs-link-hover-color: #77B300;
    --nav-h: 56px;
    --toc-h: 46px;
    --ff-h: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --bs-body-font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --bs-body-font-size: 17px;
    --bs-body-line-height: 1.55;
    --bs-body-font-weight: 450;
}
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    max-width: 100vw
}
body {
    font-family: var(--bs-body-font-family);
    background: var(--bs-body-bg);
    color: var(--bs-body-color);
    padding-top: calc(var(--nav-h) + 16px);
    padding-bottom: max(72px, env(safe-area-inset-bottom));
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden
}
h1, h2, h3, h4, h5, h6 {
    font-family: var(--ff-h);
    color: var(--bs-emphasis-color);
    line-height: 1.25;
    font-weight: 800
}
.family-classic-casino h1,
.family-classic-casino h2,
.family-classic-casino h3,
.family-classic-casino h4,
.family-classic-casino h5,
.family-classic-casino h6 {
    font-weight: 900;
    letter-spacing: -.025em;
    text-transform: none;
    font-style: normal
}
img { max-width: 100%; height: auto }
a { color: var(--bs-primary); text-decoration: none }
a:hover { color: var(--bs-info) }
:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--bs-primary) 78%, var(--bs-emphasis-color));
    outline-offset: 3px
}
::-webkit-scrollbar { width: 6px }
::-webkit-scrollbar-track { background: var(--bs-body-bg) }
::-webkit-scrollbar-thumb { background: var(--bs-border-color); border-radius: 3px }
[id] { scroll-margin-top: calc(var(--nav-h) + 18px) }

/* ===== SECTION ===== */
.section {
    padding: 56px 24px 44px;
    max-width: 1180px;
    margin-inline: auto;
    position: relative;
    overflow-x: clip
}
.section + .section { margin-top: 8px }
.hero + .section,
.hero-toc + .section,
main > .section:first-of-type { padding-top: 44px }
.section figure img,
.section img.img-fluid {
    max-height: 320px;
    object-fit: cover;
    width: 100%;
    border-radius: var(--bs-border-radius-lg)
}
.section figure { margin: 24px auto; max-width: 680px }

/* ===== HERO ===== */
.hero {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid color-mix(in srgb, var(--bs-border-color) 50%, transparent)
}
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/></filter><rect width='160' height='160' filter='url(%23n)' opacity='0.55'/></svg>");
    opacity: .045;
    mix-blend-mode: overlay;
    z-index: 0
}
.hero > * { position: relative; z-index: 1 }

/* ===== NAVBAR ===== */
.navbar.fixed-top.top-nav {
    background: color-mix(in srgb, var(--bs-body-bg) 92%, transparent);
    border-bottom: 1px solid var(--bs-border-color);
    backdrop-filter: blur(10px);
    min-height: var(--nav-h)
}
.navbar-brand.nav-logo { text-decoration: none }
.navbar-brand.nav-logo:hover { text-decoration: none }
.navbar-brand.nav-logo img {
    width: auto;
    height: 34px;
    margin-right: 0;
    border-radius: 8px;
    object-fit: contain;
    background: transparent
}
.navbar-brand.nav-logo span {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0
}
.top-nav .navbar-nav .nav-link {
    color: color-mix(in srgb, var(--bs-emphasis-color) 82%, transparent);
    font-weight: 600;
    padding-inline: 14px;
    border-radius: 8px;
    transition: color .18s, background .18s
}
.top-nav .navbar-nav .nav-link:hover {
    color: var(--bs-primary);
    background: color-mix(in srgb, var(--bs-primary) 10%, transparent)
}
.top-nav .navbar-nav .nav-link.active {
    color: var(--bs-primary);
    font-weight: 800;
    background: color-mix(in srgb, var(--bs-primary) 14%, transparent)
}
.navbar-toggler {
    width: 44px;
    height: 44px;
    border: 1px solid var(--bs-border-color);
    padding: 0
}
.navbar-toggler:focus {
    box-shadow: 0 0 0 .2rem color-mix(in srgb, var(--bs-primary) 30%, transparent)
}

/* ===== TOC ===== */
.toc-bar {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    height: var(--toc-h);
    background: color-mix(in srgb, var(--bs-body-bg) 88%, transparent);
    border-bottom: 1px solid var(--bs-border-color);
    z-index: 180;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px clamp(12px, 3vw, 24px);
    backdrop-filter: blur(12px);
    overflow: hidden
}
.toc-scroll {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 2px 0
}
.toc-scroll::-webkit-scrollbar,
.hero-toc::-webkit-scrollbar { display: none }
.toc-bar a,
.hero-toc a {
    display: inline-flex;
    align-items: center;
    height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--bs-primary) 22%, var(--bs-border-color));
    color: var(--bs-body-color);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    flex: 0 0 auto;
    text-decoration: none
}
.toc-bar a:hover,
.toc-bar a.toc-active,
.hero-toc a:hover,
.hero-toc a.toc-active {
    color: var(--bs-emphasis-color);
    background: color-mix(in srgb, var(--bs-primary) 14%, transparent);
    border-color: color-mix(in srgb, var(--bs-primary) 55%, var(--bs-border-color))
}
.hero-toc {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    max-width: 1180px;
    margin: 0 auto 20px;
    padding: 8px 24px
}

/* ===== FOOTER ===== */
.footer {
    background: var(--bs-tertiary-bg);
    border-top: 1px solid var(--bs-border-color);
    padding: 32px 20px 16px;
    margin-top: 48px
}
.footer-inner { max-width: 1400px; margin: 0 auto }
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 22px;
    margin-bottom: 20px
}
.footer-brand h3 { font-size: 18px; color: var(--bs-primary); margin-bottom: 8px }
.footer-col h4 { font-size: 13.5px; color: var(--bs-emphasis-color); margin-bottom: 10px }
.footer-col a,
.footer-brand p {
    font-size: 13px;
    color: var(--bs-secondary-color);
    display: block;
    margin-bottom: 6px
}
.footer-col a:hover { color: var(--bs-primary) }
.footer-bottom {
    border-top: 1px solid var(--bs-border-color);
    padding-top: 12px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 12px;
    color: var(--bs-secondary-color)
}
.age-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #c0392b;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
    color: #fff
}

/* ===== STICKY BAR ===== */
.sticky-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bs-tertiary-bg);
    border-top: 2px solid var(--bs-primary);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    z-index: 400;
    transform: translateY(100%);
    transition: transform .3s
}
.sticky-bar.show { transform: translateY(0) }

/* ===== BACK TO TOP ===== */
.back-top {
    position: fixed;
    right: 1rem;
    bottom: 1.25rem;
    width: 44px;
    height: 44px;
    background: var(--bs-primary);
    color: #fff;
    border-radius: 999px;
    display: grid;
    place-items: center;
    font-size: 20px;
    line-height: 1;
    text-decoration: none;
    box-shadow: 0 14px 36px rgba(0, 0, 0, .28);
    z-index: 1040;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s, transform .2s, box-shadow .25s
}
.back-top.show { opacity: 1; pointer-events: auto }
.back-top:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 42px rgba(0, 0, 0, .34);
    color: #fff
}

/* ===== MOBILE NAV ===== */
.mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--bs-tertiary-bg);
    border-top: 1px solid var(--bs-border-color);
    z-index: 290;
    box-shadow: 0 -4px 14px rgba(0, 0, 0, .18)
}
.mobile-nav ul {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    height: 100%
}
.mobile-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 3px;
    color: color-mix(in srgb, var(--bs-emphasis-color) 65%, transparent);
    font-size: 10.5px;
    text-decoration: none;
    font-weight: 600;
    transition: color .15s
}
.mobile-nav a.active,
.mobile-nav a:hover { color: var(--bs-primary) }
.mobile-nav .m-icon.bi {
    font-size: 22px;
    line-height: 1;
    transition: color .15s, transform .18s
}
.mobile-nav a.active .m-icon { color: var(--bs-primary); transform: translateY(-2px) }
.mobile-nav a:hover .m-icon { color: var(--bs-primary) }

/* ===== FEATURED GAME ===== */
.featured-game {
    padding: clamp(32px, 5vw, 48px) clamp(22px, 4vw, 36px);
    margin: 24px auto;
    max-width: 1180px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--bs-tertiary-bg) 72%, transparent), color-mix(in srgb, var(--bs-primary) 4%, transparent));
    border-radius: var(--bs-border-radius-lg);
    border: 1px solid color-mix(in srgb, var(--bs-primary) 22%, var(--bs-border-color));
    box-shadow: var(--bs-box-shadow)
}
.featured-game .fg-badge {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--bs-primary), var(--bs-info));
    color: var(--bs-body-bg);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-bottom: 14px;
    box-shadow: 0 4px 12px color-mix(in srgb, var(--bs-primary) 30%, transparent)
}
.featured-game img {
    border-radius: var(--bs-border-radius-lg);
    box-shadow: var(--bs-box-shadow);
    width: 100%
}
.error-num {
    font-family: var(--ff-h);
    font-size: clamp(96px, 18vw, 180px);
    font-weight: 900;
    line-height: .9;
    letter-spacing: -.04em;
    background: linear-gradient(135deg, var(--bs-primary), var(--bs-info));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin: 0
}

/* ===== EYEBROW ===== */
.eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--bs-primary);
    margin-bottom: 12px;
    padding: 6px 14px;
    background: color-mix(in srgb, var(--bs-primary) 14%, transparent);
    border-radius: 999px;
    line-height: 1.2
}

/* ===== SEO COPY ===== */
.seo-copy {
    padding: 20px 22px;
    columns: 2 380px;
    column-gap: 30px
}
.seo-copy p { break-inside: avoid }

/* ===== MAP & LOCATION ===== */
.map-wrap,
.location-map {
    width: 100%;
    height: 300px;
    border-radius: var(--bs-border-radius-lg);
    overflow: hidden;
    border: 1px solid var(--bs-border-color)
}
.map-wrap iframe,
.location-map iframe { width: 100%; height: 100%; border: 0 }
.location-section { padding: 40px 24px }
.location-content {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: center
}
.location-copy { padding-right: 16px }
.area-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px
}
.area-tags span {
    padding: 5px 14px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--bs-primary) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--bs-primary) 28%, transparent);
    color: var(--bs-body-color);
    font-size: 13px;
    font-weight: 600
}

/* ===== FAMILY CLASSIC CASINO THEME ===== */
.family-classic-casino {
    --bs-border-radius: 1rem;
    --bs-border-radius-sm: .75rem;
    --bs-border-radius-lg: 1.5rem;
    --bs-card-spacer-y: 1.5rem;
    --bs-card-spacer-x: 1.75rem;
    --bs-btn-border-radius: 999px;
    --bs-btn-padding-y: .85rem;
    --bs-btn-padding-x: 2rem;
    --bs-box-shadow-sm: 0 4px 14px rgba(0, 0, 0, .18);
    --bs-box-shadow: 0 10px 32px rgba(0, 0, 0, .28);
    --bs-accordion-border-radius: 1rem;
    --bs-navbar-padding-y: .85rem
}
.family-classic-casino .hero {
    background: radial-gradient(ellipse at 80% 0%, color-mix(in srgb, var(--bs-primary) 26%, transparent), transparent 55%), linear-gradient(135deg, color-mix(in srgb, var(--bs-primary) 14%, var(--bs-body-bg)), var(--bs-body-bg) 70%)
}
.family-classic-casino .hero::before {
    content: "";
    position: absolute;
    top: 24px;
    right: 32px;
    width: 96px;
    height: 96px;
    background: radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--bs-primary) 50%, transparent) 18px, transparent 19px), radial-gradient(circle at 50% 55%, color-mix(in srgb, var(--bs-primary) 35%, transparent) 22px, transparent 23px), radial-gradient(circle at 50% 80%, color-mix(in srgb, var(--bs-primary) 22%, transparent) 26px, transparent 27px);
    pointer-events: none;
    z-index: 0
}

/* ===== SITE-5B80 SPECIFIC STYLES ===== */
body.site-5b80 { letter-spacing: .1px }
body.site-5b80 .navbar { column-gap: 8px }
body.site-5b80 .card:hover { box-shadow: 0 8px 24px color-mix(in srgb, var(--bs-primary) 14%, transparent) }
body.site-5b80 .btn:hover { transform: translateY(-1px) }
body.site-5b80 .card[class]:hover { background: color-mix(in srgb, var(--bs-secondary-bg) 84%, var(--bs-primary) 16%) }
body.site-5b80 .accordion .accordion-button[aria-expanded='true'] { background: color-mix(in srgb, var(--bs-primary) 14%, var(--bs-secondary-bg)) }
body.site-5b80 .section + .section { margin-top: 14px }
body.site-5b80 h2 { letter-spacing: .005em; font-weight: 850 }
body.site-5b80 .section ul li::marker { color: var(--bs-primary) }
body.site-5b80 .badge[class] { letter-spacing: .05em; text-transform: uppercase }
.site-5b80 {
    --bs-body-color: #ADAFAE;
    --bs-emphasis-color: #f8fbff;
    --bs-secondary-color: #888888;
    --bs-tertiary-color: #888888;
    --bs-primary: #2A9FD6;
    --bs-primary-rgb: 42, 159, 214;
    --bs-link-color: #2A9FD6;
    --bs-link-hover-color: #77B300;
    --text-strong: #f8fbff;
    --text-body: #ADAFAE;
    --text-muted: #888888;
    --text-accent: #2A9FD6
}
.site-5b80 .btn-primary {
    --bs-btn-bg: #2A9FD6;
    --bs-btn-border-color: #2A9FD6;
    --bs-btn-color: #10140f;
    --bs-btn-hover-bg: #77B300;
    --bs-btn-hover-border-color: #77B300;
    --bs-btn-hover-color: #10140f;
    --bs-btn-active-bg: #77B300;
    --bs-btn-active-border-color: #77B300;
    --bs-btn-active-color: #10140f;
    --bs-btn-disabled-bg: #2A9FD6;
    --bs-btn-disabled-border-color: #2A9FD6;
    color: #10140f !important;
    background-color: #2A9FD6 !important;
    border-color: #2A9FD6 !important
}
.site-5b80 .btn-outline-primary {
    --bs-btn-color: #2A9FD6;
    --bs-btn-border-color: #2A9FD6;
    --bs-btn-hover-bg: #2A9FD6;
    --bs-btn-hover-border-color: #2A9FD6;
    --bs-btn-hover-color: #10140f;
    color: #2A9FD6 !important;
    border-color: #2A9FD6 !important
}
.site-5b80 .text-body,
.site-5b80 .fw-bold.text-body { color: #ADAFAE !important }
.site-5b80 .text-body-secondary,
.site-5b80 .text-secondary { color: #888888 !important }
.site-5b80 .bg-primary-subtle { background-color: rgba(42, 159, 214, .14) !important }
.site-5b80 .text-primary { color: #2A9FD6 !important }
.site-5b80 .text-bg-primary,
.site-5b80 .text-bg-warning { background: #2A9FD6 !important; color: #10140f !important }
.site-5b80 .card { background: #1e1e1e !important; border: 1px solid rgba(42, 159, 214, .16) !important }
.site-5b80 .card.shadow-sm,
.site-5b80 .card.shadow { background: #1e1e1e !important }
.site-5b80 footer,
.site-5b80 .footer { color: #ADAFAE !important }
.site-5b80 footer a,
.site-5b80 .footer a { color: #ADAFAE !important; text-decoration: none }
.site-5b80 footer a:hover,
.site-5b80 .footer a:hover { color: #2A9FD6 !important }
.site-5b80 footer small,
.site-5b80 footer .footer-bottom,
.site-5b80 footer .footer-note,
.site-5b80 footer .small,
.site-5b80 .footer small,
.site-5b80 .footer-bottom,
.site-5b80 .footer-copy { color: #888888 !important }
.site-5b80 .accordion-item { background: #1e1e1e !important; border-color: rgba(42, 159, 214, .16) !important; border-width: 1px !important }
.site-5b80 .accordion-button { background: #1e1e1e !important; color: #ADAFAE !important; font-weight: 600 }
.site-5b80 .accordion-button:not(.collapsed) { background: rgba(42, 159, 214, .18) !important; color: #f8fbff !important; box-shadow: none; border-left: 3px solid #2A9FD6 !important }
.site-5b80 .accordion-button::after { filter: invert(.85) brightness(1.2) }
.site-5b80 .accordion-button:not(.collapsed)::after { filter: invert(.55) brightness(1) sepia(1) hue-rotate(-30deg) saturate(5) }
.site-5b80 .accordion-body { color: #ADAFAE !important; line-height: 1.55 }
.site-5b80 .card { border-radius: 18px }
.site-5b80 .btn { letter-spacing: .04em; text-transform: none }
.site-5b80 .section-soft { background: linear-gradient(165deg, color-mix(in srgb, var(--bs-primary) 5%, transparent), color-mix(in srgb, var(--bs-primary) 1%, transparent)) !important }
.site-5b80 .section h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 900; letter-spacing: -.03em; text-transform: none }
.site-5b80 .hero { padding-block: 56px }
.site-5b80 img.img-fluid { border-radius: 12px }
.site-5b80 .card { transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease }
.site-5b80 .card:hover { box-shadow: 0 4px 12px color-mix(in srgb, var(--bs-primary) 50%, transparent); outline: 1px solid var(--bs-primary) }
.site-5b80 .btn-primary,
.site-5b80 .btn-lg { border-radius: 8px }
.site-5b80 .section + .section { margin-top: 4px }

/* ===== MEDIA QUERIES ===== */
@media (max-width: 991.98px) {
    .mobile-nav { display: block }
    body { padding-bottom: 64px }
}
@media (max-width: 767.98px) {
    .back-top { bottom: calc(72px + env(safe-area-inset-bottom)); right: 1rem }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 10px 14px }
    .footer { padding: 20px 16px 10px; margin-top: 32px }
    .location-content { grid-template-columns: 1fr }
}
@media (max-width: 700px) {
    .section { padding: 32px 14px 24px }
    .hero-toc { padding: 8px 14px; gap: 6px }
    .hero-toc a { height: 28px; padding: 0 10px; font-size: 12px; flex: 0 0 auto }
    .navbar.top-nav .navbar-collapse {
        position: absolute;
        top: var(--nav-h);
        left: 0;
        right: 0;
        background: var(--bs-tertiary-bg);
        border-bottom: 1px solid var(--bs-border-color);
        padding: 12px 16px;
        max-height: calc(100vh - var(--nav-h));
        overflow-y: auto
    }
    .seo-copy { columns: 1; padding: 16px }
    .page-category .hero-toc,
    .page-static .hero-toc {
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        width: 100% !important;
        max-width: 100% !important;
        height: 42px !important;
        max-height: 42px !important;
        margin: 0 0 10px !important;
        padding: 4px 2px 5px !important;
        gap: 6px !important;
        white-space: nowrap !important;
        scroll-snap-type: x proximity
    }
    .page-category .hero-toc a,
    .page-static .hero-toc a {
        white-space: nowrap !important;
        flex: 0 0 auto !important;
        min-width: max-content !important;
        max-width: none !important;
        min-height: 32px !important;
        height: 32px !important;
        padding: 6px 10px !important;
        font-size: 11px !important;
        line-height: 1 !important;
        word-break: keep-all !important;
        overflow-wrap: normal !important;
        scroll-snap-align: start
    }
}
@media (pointer: coarse) {
    .btn,
    .nav-link,
    .toc-bar a,
    .hero-toc a,
    .mobile-nav a { min-height: 44px }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto }
    *,
    *::before,
    *::after { animation-duration: .01ms !important; transition-duration: .01ms !important }
}

/* ===== STICKY POPUP COEXIST ===== */
@media (max-width: 768px) {
    #br-stick { bottom: 60px !important }
    .back-top { bottom: 138px !important }
}
@media (min-width: 769px) {
    .back-top { bottom: 112px !important }
}
