.header-bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 16px 32px; }
.main-navigation { display: flex; align-items: center; gap: 24px; font-size: 14px; color: var(--text-secondary); }
.main-navigation a, .main-navigation button { padding: 12px 0; text-decoration: none; white-space: nowrap; }
.main-navigation button { display: flex; align-items: center; gap: 6px; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.main-navigation a:hover, .main-navigation button:hover, .main-navigation button[aria-expanded="true"] { color: var(--primary); }
.main-navigation button:focus-visible, .nav-toggle:focus-visible { outline: 2px solid var(--primary); outline-offset: 4px; }
.nav-toggle { display: none; }
.nav-provider-area { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg-dropdown); border-bottom: 2px solid var(--border-theme); box-shadow: 0 24px 40px color-mix(in srgb, var(--shadows) 45%, transparent); backdrop-filter: blur(18px); }
.providers-open .nav-provider-area { display: block; }
@media (min-width: 1024px) {
    .nav-provider-area { max-height: calc(100dvh - var(--nav-header-height, 80px)); overflow-y: auto; overscroll-behavior-y: contain; }
}
.nav-provider-panel { max-width: 1280px; margin: auto; padding: 24px 32px 32px; }
.nav-provider-panel[hidden] { display: none; }
.nav-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.nav-panel-heading h2 { margin: 0; font-size: 20px; font-weight: 600; }
.nav-panel-heading > span { color: var(--primary); font-size: 13px; }
.nav-provider-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.nav-provider-card { display: flex; align-items: center; justify-content: center; min-width: 0; min-height: 110px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-provider-card); transition: border-color .2s, background .2s; }
.nav-provider-card:hover { border-color: var(--primary); background: var(--bg-card-hover); }
.nav-provider-card[hidden] { display: none; }
.nav-show-all { color: var(--primary); font: inherit; font-weight: 600; cursor: pointer; }
.nav-show-all:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.nav-provider-card img { width: 160px; max-width: 85%; height: 90px; object-fit: contain; }
@media (max-width: 1023px) {
    .header-bar { gap: 12px; padding: 12px 16px; }
    .nav-toggle { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; flex-shrink: 0; width: 42px; height: 42px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg-card); cursor: pointer; }
    .nav-toggle span { width: 20px; height: 2px; background: var(--primary); }
    .mobile-menu-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .mobile-menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
    .mobile-menu-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    .header-bar > a:first-of-type { margin-right: auto; min-width: 0; }
    .header-bar > a:first-of-type img { width: 110px; max-width: 100%; }
    .header-register { flex-shrink: 0; padding: 12px !important; font-size: 12px !important; }
    .header-menu { display: none; position: absolute; top: 100%; left: 0; right: 0; height: calc(100dvh - 69px); background: var(--bg-dropdown); border-top: 1px solid var(--border); box-shadow: 0 20px 40px color-mix(in srgb, var(--shadows) 45%, transparent); }
    .mobile-menu-open .header-menu { display: grid; grid-template-columns: 120px minmax(0, 1fr); }
    .main-navigation { display: flex; flex-direction: column; align-items: stretch; gap: 5px; padding: 12px 8px; border-right: 1px solid var(--border); overflow-y: auto; overscroll-behavior: contain; }
    .main-navigation a, .main-navigation button { padding: 14px 10px; font-size: 13px; white-space: normal; border-radius: 7px; text-align: left; }
    .main-navigation button { justify-content: space-between; }
    .main-navigation button[aria-expanded="true"] { background: var(--bg-card-hover); box-shadow: inset 3px 0 var(--primary); }
    .nav-provider-area { position: static; min-width: 0; overflow-y: auto; overscroll-behavior: contain; border: 0; box-shadow: none; }
    .nav-provider-panel { max-height: none; overflow: visible; padding: 16px 12px; }
    .nav-panel-heading { gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
    .nav-panel-heading h2 { font-size: 16px; }
    .nav-provider-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .nav-provider-card { min-height: 75px; border-radius: 8px; }
    .nav-provider-card img { height: 65px; }
}

body.main-body {
    margin: 0;
    background: var(--bg-body);
    color: var(--text-main);
    font-family: Kanit, Tahoma, sans-serif
}

body.popup-body {
    color: var(--text-main);
    font-family: Kanit, Tahoma, sans-serif;
    margin: 0;
    min-height: 100vh;
    background-size: cover;
    /* background-position: center; */
    background-repeat: no-repeat;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 140px
}

* {
    box-sizing: border-box
}

img {
    max-width: 100%
}

a:focus-visible,
summary:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 5px
}

.skip {
    position: fixed;
    top: -100px;
    left: 10px;
    z-index: 100;
    background: var(--primary);
    color: var(--bg-body);
    padding: 14px
}

.skip:focus {
    top: 10px
}

.eyebrow {
    font-size: 11px;
    letter-spacing: 2.5px;
    color: var(--primary)
}

.cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    background: var(--primary);
    color: var(--text-button);
    font-weight: 600;
    border-radius: 3px;
    transition: background .2s, transform .2s
}

.cta:hover {
    background: var(--button-hover);
    transform: translateY(-2px)
}

.secondary-button {
    border: 1px solid var(--border);
    border-radius: 3px;
    font-size: 14px
}

.hero6 {
    position: relative
}

.hero-intro {
    max-width: 950px;
    margin: auto;
    text-align: center;
    padding-top: 26px
}

.hero-intro h1 {
    letter-spacing: -1.7px;
    line-height: 1.35;
    text-wrap: balance
}

.intro-description {
    max-width: 670px;
    margin-inline: auto
}

/* .hero-showcase {
    position: relative;
    max-width: 1040px;
    margin-inline: auto;
    border: 1px solid #416575;
    background: radial-gradient(ellipse at 50% 100%, #32535c 0, #122630 50%, #0c1922 90%);
    border-radius: 180px 180px 12px 12px;
    padding: 32px 40px 0;
    overflow: hidden
} */

.showcase-label,
.showcase-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    font-size: 11px;
    letter-spacing: 1.4px;
    color: var(--text-secondary)
}

.showcase-label {
    padding-inline: 70px
}

.showcase-image {
    height: auto;
    filter: drop-shadow(0 0 35px color-mix(in srgb, var(--primary-glow) 16%, transparent))
}

.showcase-bottom {
    padding-block: 20px;
    border-top: 1px solid var(--border)
}

.showcase-bottom a {
    color: var(--primary)
}

.hero-glow {
    background: radial-gradient(ellipse at 50% 30%, color-mix(in srgb, var(--hero-glow) 19%, transparent), transparent 65%)
}

#three-background canvas {
    display: block;
    width: 100%;
    height: 100%;
    opacity: .65
}

.game-card {
    background: var(--bg-card);
    border-radius: 4px !important;
    transition: transform .2s, border-color .2s
}

.game-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary)
}

.game-art {
    background: var(--bg-game-card)
}

.game-card:nth-child(even) .game-art,
#show-all-providers .game-art {
    background: var(--bg-game-card-alt)
}

.collection-grid {
    gap: 12px
}

.pbn-section { padding-top: 32px; padding-bottom: 32px; }
.pbn-panel { overflow: hidden; border: 1px solid var(--border); border-radius: 16px; background: var(--bg-pbn-panel); }
.pbn-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 28px 28px 20px; }
.pbn-title { margin: 0; font-size: clamp(20px, 3vw, 26px); font-weight: 600; line-height: 1.5; }
.pbn-description { margin: 6px 0 0; color: var(--text-dim); font-size: 14px; }
.pbn-total { display: inline-flex; align-items: baseline; gap: 7px; flex-shrink: 0; padding: 8px 14px; border: 1px solid var(--border-theme); border-radius: 12px; background: color-mix(in srgb, var(--primary) 5%, transparent); color: var(--primary); font-size: 13px; }
.pbn-total strong { font-size: 26px; font-weight: 600; }
.pbn-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 10px; }
.pbn-featured { padding: 0 28px 28px; }
.pbn-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; min-width: 0; padding: 12px 16px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg-pbn-link); color: var(--text-main); text-decoration: none; font-size: 14px; transition: background .2s, border-color .2s; }
.pbn-link > span:first-child { overflow-wrap: anywhere; }
.pbn-link:hover { background: var(--bg-card-hover); border-color: var(--border-theme); }
.pbn-arrow { flex-shrink: 0; color: var(--primary); font-size: 18px; }
.pbn-details { border-top: 1px solid var(--border); }
.pbn-summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 28px; cursor: pointer; list-style: none; font-size: 15px; font-weight: 500; }
.pbn-summary::-webkit-details-marker { display: none; }
.pbn-summary > span { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.pbn-summary:hover { background: color-mix(in srgb, var(--text-main) 2%, transparent); }
.pbn-summary:focus-visible { outline-offset: -4px; }
.pbn-count { padding: 3px 9px; border-radius: 6px; background: var(--bg-badge); color: var(--text-secondary); font-size: 12px; }
.pbn-chevron { flex-shrink: 0; color: var(--primary); transition: transform .2s; }
.pbn-details[open] .pbn-chevron { transform: rotate(180deg); }
.pbn-expanded { padding: 0 28px 24px; }
@media (max-width: 480px) {
    .pbn-header { padding: 20px 16px 16px; align-items: flex-start; }
    .pbn-featured { padding: 0 16px 20px; }
    .pbn-summary { padding: 18px 16px; }
    .pbn-expanded { padding: 0 16px 20px; }
    .pbn-total { padding: 6px 10px; }
}
@media (prefers-reduced-motion: reduce) {
    .pbn-link, .pbn-chevron { transition: none; }
}

.contents6 {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    border: 1px solid var(--border)
}

.contents6 a {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
    border-right: 1px solid var(--border);
    font-size: 12px;
    line-height: 1.8;
    color: var(--text-secondary)
}

.contents6 a:last-child {
    border-right: 0
}

.contents6 a:hover {
    background: var(--bg-card-hover)
}

.contents6 span {
    font-size: 24px;
    color: var(--primary)
}

.about-art {
    min-height: 280px;
    background: radial-gradient(ellipse, color-mix(in srgb, var(--hero-glow) 19%, transparent), transparent 70%);
    border: 1px solid var(--border);
    border-radius: 8px !important
}

.about-row p {
    max-width: none
}

.faq-item {
    border-radius: 4px !important
}

.faq-item summary {
    list-style: none
}

.faq-item summary::-webkit-details-marker {
    display: none
}

.faq-item[open] {
    border-color: var(--border-theme)
}

.faq-item[open] .faq-plus {
    transform: rotate(45deg)
}

.footer-copy a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 4px
}

.mobile-register-button {
    background: var(--primary);
    color : var(--text-button);
}

/* .quick-actions{
    background: bg-linear-to-t from-sky-500 to-indigo-500;
} */

@media(max-width:767px) {
    .hero-intro {
        padding-top: 4px
    }

    .hero-intro h1 {
        font-size: 32px;
        letter-spacing: -.7px
    }

    /* .hero-showcase {
        border-radius: 70px 70px 8px 8px;
        padding: 24px 15px 0
    } */

    .showcase-label {
        padding-inline: 14px;
        font-size: 9px
    }

    .showcase-bottom {
        font-size: 10px;
        letter-spacing: 0;
        flex-wrap: wrap
    }

    .contents6 {
        grid-template-columns: 1fr
    }

    .contents6 a {
        flex-direction: row;
        align-items: center;
        border-right: 0;
        border-bottom: 1px solid var(--border);
        padding: 14px
    }

    .contents6 a:last-child {
        border-bottom: 0
    }

    .contents6 span {
        font-size: 18px
    }

    .about-art {
        min-height: 200px
    }
}

/* Shared section and utility colors come from the site data.css palette. */
#site-header { background: var(--bg-navbar); border-color: var(--border-navbar); }
#hero { background: var(--bg-section-header); }
#games { background: var(--bg-section-1); }
#about { background: var(--bg-section-2); }
#keywords, .pbn-section { background: var(--bg-section-3); }
#faq { background: var(--bg-section-4); }
footer { background: var(--bg-section-footer); }
.faq-item { background: var(--bg-faq); }
.theme-text-main { color: var(--text-main); }
.theme-text-secondary { color: var(--text-secondary); }
.theme-text-dim { color: var(--text-dim); }
.theme-text-primary { color: var(--primary); }
.theme-border { border-color: var(--border); }
.theme-border-primary { border-color: var(--primary); }
.theme-link-bg { background: var(--bg-pbn-link); color: var(--text-main); }
.theme-link-hover:hover { background: var(--bg-card-hover); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--primary); outline-offset: 4px; }
.hero-intro, .intro-description, .footer-copy { overflow-wrap: anywhere; min-width: 0; }
img { max-width: 100%; }
