/* ============================================================
   6club brand layer: slim site header + nav, homepage hero, Wingo
   section, FAQ, footer disclaimer. Theme-aware via the variables in
   style.css (dark default, html.light overrides).
   ============================================================ */
:root {
    --demo-accent: #6d5efc;
    --demo-accent-2: #22c55e;
    --demo-accent-ink: #ffffff;
    --nav-h: 64px;
}
html.light { --demo-accent: #5847e8; --demo-accent-2: #16a34a; }

html { scroll-behavior: smooth; }
body.has-site-header { padding-top: 0; }

/* ---------- Header / nav ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    margin-bottom: 0;
    padding: 0;
    background: rgba(11, 16, 32, 0.82);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(12px);
}
html.light .site-header { background: rgba(238, 242, 249, 0.88); box-shadow: 0 6px 24px rgba(15, 23, 42, 0.10); }
.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: var(--nav-h);
    padding-top: 8px;
    padding-bottom: 8px;
}
.site-header .logo-small { height: 44px; width: auto; filter: none; }
.site-header .site-nav { padding: 0; gap: 6px; justify-content: flex-end; }
.site-header .site-nav-link {
    padding: 8px 14px;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
    background: transparent;
    border-color: transparent;
}
.site-header .site-nav-link:hover,
.site-header .site-nav-link[aria-current="page"] {
    background: var(--surface2);
    border-color: var(--border);
    color: var(--text);
}
.site-header .site-nav-login { border-color: var(--border); }
.site-header .site-nav-register {
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    color: #fff;
    border-color: transparent;
}
.site-header .site-nav-register:hover { color: #fff; filter: brightness(1.08); }
.nav-toggle {
    display: none;
    width: 44px; height: 44px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--surface);
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--text); border-radius: 2px; }
@media (max-width: 860px) {
    .nav-toggle { display: inline-flex; }
    .site-header .site-nav {
        display: none;
        position: absolute;
        left: 0; right: 0; top: 100%;
        flex-direction: column;
        align-items: stretch;
        padding: 10px 16px 16px;
        background: rgba(11, 16, 32, 0.97);
        border-bottom: 1px solid var(--border);
    }
    html.light .site-header .site-nav { background: rgba(238, 242, 249, 0.98); }
    .site-header .site-nav.open { display: flex; }
    .site-header .site-nav-link { justify-content: flex-start; }
}

/* ---------- Homepage hero ---------- */
.hero {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 28px;
    align-items: center;
    margin: 28px 0 10px;
    padding: 34px;
    border-radius: 24px;
    border: 1px solid var(--border);
    background: linear-gradient(135deg, rgba(109, 94, 252, 0.28) 0%, rgba(34, 197, 94, 0.14) 55%, rgba(255, 107, 107, 0.14) 100%), var(--surface);
    box-shadow: var(--shadow);
}
html.light .hero { background: linear-gradient(135deg, rgba(109, 94, 252, 0.16) 0%, rgba(34, 197, 94, 0.10) 55%, rgba(255, 107, 107, 0.10) 100%), rgba(255, 255, 255, 0.55); }
.hero h1 {
    font-size: clamp(1.9rem, 3.6vw, 3rem);
    line-height: 1.12;
    font-weight: 900;
    letter-spacing: 0.2px;
    color: var(--text);
}
.hero-eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface2);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}
.hero-lede { margin-top: 16px; font-size: 1.12rem; line-height: 1.65; color: var(--text); max-width: 60ch; }
.hero-lede a { color: var(--accent); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.hero-sub { margin-top: 12px; color: var(--muted); line-height: 1.6; max-width: 62ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.hero-chip { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface2); font-size: 0.85rem; font-weight: 700; color: var(--text); }
.hero-art { display: flex; justify-content: center; }
.hero-art img { width: min(100%, 360px); height: auto; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.35)); }
html.light .hero-art img { filter: drop-shadow(0 14px 26px rgba(15, 23, 42, 0.18)); }
@media (max-width: 900px) {
    .hero { grid-template-columns: 1fr; padding: 24px; }
    .hero-art { order: -1; }
    .hero-art img { width: min(60%, 260px); }
}

.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 1rem;
    text-decoration: none;
    border: 1px solid transparent;
    transition: transform 0.15s ease, filter 0.15s ease;
}
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff; }
.btn-secondary { background: var(--surface2); color: var(--text); border-color: var(--border); }
.btn-primary:hover, .btn-secondary:hover { transform: translateY(-1px); filter: brightness(1.06); }

/* ---------- Sections ---------- */
.section { margin: 36px 0; }
.section-head { margin-bottom: 14px; }
.section-head h2 { margin: 0 0 8px; font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 900; color: var(--text); }
.section-head p { color: var(--muted); line-height: 1.6; max-width: 70ch; }
.prose p { line-height: 1.7; margin: 0 0 14px; color: var(--text); }
.prose p:last-child { margin-bottom: 0; }
.prose a { color: var(--accent); font-weight: 700; }
.prose ul, .prose ol { margin: 0 0 14px 22px; line-height: 1.7; }
.prose strong { color: var(--text); }
.card-panel {
    padding: 22px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: var(--surface);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}
html.light .card-panel { background: rgba(255, 255, 255, 0.6); box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.three-col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .two-col, .three-col { grid-template-columns: 1fr; } }

/* ---------- Wingo section ---------- */
.wingo-section { scroll-margin-top: calc(var(--nav-h) + 12px); }
.wingo-layout { display: grid; grid-template-columns: minmax(300px, 420px) 1fr; gap: 26px; align-items: start; }
@media (max-width: 960px) { .wingo-layout { grid-template-columns: 1fr; } }
.wingo-stage { position: relative; }
.wingo-rules li { margin-bottom: 8px; }
.step-list { counter-reset: step; list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.step-list li { position: relative; padding-left: 52px; line-height: 1.6; }
.step-list li::before {
    counter-increment: step;
    content: counter(step);
    position: absolute; left: 0; top: 0;
    width: 38px; height: 38px;
    display: grid; place-items: center;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    color: #fff; font-weight: 900;
}

/* ---------- Highlight game cards (homepage) ---------- */
.mini-games { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 960px) { .mini-games { grid-template-columns: repeat(2, 1fr); } }
.mini-game {
    display: block;
    padding: 16px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    text-decoration: none;
    transition: transform 0.15s ease, border-color 0.15s ease;
}
.mini-game:hover { transform: translateY(-2px); border-color: var(--accent); }
.mini-game .ico { font-size: 1.8rem; }
.mini-game h3 { margin: 8px 0 4px; font-size: 1.05rem; }
.mini-game p { color: var(--muted); font-size: 0.9rem; line-height: 1.5; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 860px) { .faq-grid { grid-template-columns: 1fr; } }
.faq-item { padding: 16px 18px; border-radius: 16px; border: 1px solid var(--border); background: var(--surface); }
.faq-item h3 { font-size: 1.02rem; margin-bottom: 6px; color: var(--text); }
.faq-item p { color: var(--muted); line-height: 1.6; }

/* ---------- Footer disclaimer ---------- */
.footer-disclaimer {
    margin: 10px 0 18px;
    padding: 16px 18px;
    border-radius: 16px;
    border: 1px dashed var(--border);
    background: var(--surface);
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--muted);
}
.footer-disclaimer strong { color: var(--text); }

/* ---------- Page headings on sub pages ---------- */
.page-head { margin: 26px 0 14px; }

/* Game pages: the title is an h1 now (it was an h2 under the old header). Mirror the h2 styling. */
.game-header h1 {
    font-size: 2.5rem;
    background: linear-gradient(135deg, rgba(109, 94, 252, 0.95), rgba(34, 197, 94, 0.75));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    font-weight: 900;
}
html.light .game-header h1 {
    background: linear-gradient(135deg, #4338ca, #166534);
    -webkit-background-clip: text;
    background-clip: text;
}
