/* --- SELF-HOSTED FONTS ---
   Downloaded from Google Fonts and served locally instead of from
   fonts.googleapis.com, so no visitor IP is sent to Google before consent
   and no font ever depends on the cookie banner choice. */
@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("fonts/inter-400.woff2") format("woff2");
}
@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("fonts/inter-500.woff2") format("woff2");
}
@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("fonts/inter-600.woff2") format("woff2");
}
@font-face {
    font-family: "Poppins";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("fonts/poppins-600.woff2") format("woff2");
}
@font-face {
    font-family: "Poppins";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("fonts/poppins-700.woff2") format("woff2");
}
@font-face {
    font-family: "Poppins";
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url("fonts/poppins-800.woff2") format("woff2");
}
@font-face {
    font-family: "Poppins";
    font-style: normal;
    font-weight: 900;
    font-display: swap;
    src: url("fonts/poppins-900.woff2") format("woff2");
}
@font-face {
    font-family: "Permanent Marker";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("fonts/permanent-marker-400.woff2") format("woff2");
}

/* --- ROOT DESIGN TOKENS --- */
:root {
    --bg: #0a0a0c;
    --bg-elevated: #141417;
    --bg-elevated-2: #1c1c20;
    --border: #28282e;
    --text-main: #f5f5f7;
    --text-muted: #bcbcc4;
    --lime: #c3fa3c;
    --lime-dim: rgba(195, 250, 60, 0.12);
    --pink: #ff2e97;
    --pink-dim: rgba(255, 46, 151, 0.12);
    --violet: #a78bfa;
    --violet-dim: rgba(167, 139, 250, 0.14);
    --gold: #f6b83c;
    --gold-dim: rgba(246, 184, 60, 0.14);
    --steel: #5b9dd9;
    --steel-dim: rgba(91, 157, 217, 0.14);
    /* Light surface used only inside the calendar grid, for cell readability
       against the site's otherwise dark theme. */
    --cal-cell-bg: #f2f2f4;
    --cal-cell-border: #dcdce1;
    --cal-text-dark: #14141a;
    --cal-text-muted: #6b6b74;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg);
    color: var(--text-main);
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.5;
}

h1, h2, h3 {
    font-family: "Poppins", sans-serif;
    font-weight: 800;
    line-height: 1.15;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

.section-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-sub {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 520px;
}

.pink-text {
    color: var(--pink);
}

/* --- BUTTONS --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 13px 26px;
    cursor: pointer;
    border: none;
    white-space: nowrap;
}
.btn-pill { border-radius: 999px; }
.btn-sm { padding: 9px 18px; font-size: 0.85rem; }

.btn-primary {
    background-color: var(--lime);
    color: #0a0a0c;
}
.btn-primary:hover { background-color: #d4ff6b; }

.btn-outline {
    background-color: transparent;
    color: var(--lime);
    border: 2px solid var(--lime);
}
.btn-outline:hover { background-color: var(--lime-dim); }

.btn-pink {
    background-color: var(--pink);
    color: #fff;
}
.btn-pink:hover { background-color: #ff5cae; }

.btn-pink-outline {
    background-color: transparent;
    color: var(--pink);
    border: 2px solid var(--pink);
}

.btn-gold {
    background-color: var(--gold);
    color: #0a0a0c;
}
.btn-gold:hover { background-color: #ffcb63; }

.btn-gold-outline {
    background-color: transparent;
    color: var(--gold);
    border: 2px solid var(--gold);
}
.btn-gold-outline:hover { background-color: var(--gold-dim); }

.btn-disabled {
    opacity: 0.6;
    cursor: default;
    pointer-events: none;
}

/* --- HEADER / NAV --- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background-color: rgba(10, 10, 12, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}
.header-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.logo {
    font-family: "Poppins", sans-serif;
    font-weight: 900;
    font-size: 1.25rem;
    color: var(--lime);
    letter-spacing: 0.5px;
}
.main-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    flex: 1;
    justify-content: center;
}
.nav-link {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-muted);
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    transition: color 0.15s ease;
}
.nav-link:hover { color: var(--text-main); }
.nav-link.active {
    color: var(--lime);
    border-bottom-color: var(--lime);
}

.nav-dropdown { position: relative; display: flex; align-items: center; }
.nav-dropdown-toggle {
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 0 0 4px;
    margin: 0;
    font-family: inherit;
    line-height: inherit;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}
.nav-caret {
    font-size: 0.7em;
    transition: transform 0.15s ease;
}
.nav-dropdown.open .nav-caret { transform: rotate(180deg); }
.nav-dropdown.open .nav-dropdown-toggle { color: var(--text-main); }

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 14px);
    left: 50%;
    min-width: 220px;
    background-color: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(-6px);
    transition: opacity 0.15s ease, transform 0.15s ease;
    z-index: 30;
}
.nav-dropdown.open .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
.nav-dropdown-item {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
}
.nav-dropdown-item:hover {
    background-color: var(--bg-elevated-2);
    color: var(--text-main);
}
.header-ctas {
    display: flex;
    gap: 10px;
}
.header-cta {
    padding: 10px 20px;
    font-size: 0.85rem;
}

/* --- HERO --- */
.hero {
    position: relative;
    padding: 90px 0 70px;
    background-image: radial-gradient(var(--border) 1px, transparent 1px);
    background-size: 22px 22px;
    overflow: hidden;
}
.hero-inner {
    position: relative;
    z-index: 1;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 40px;
}
.badge {
    display: inline-block;
    border: 1px solid var(--lime);
    color: var(--lime);
    background-color: var(--lime-dim);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 999px;
    margin-bottom: 22px;
}
.hero-title {
    font-size: 3.2rem;
    color: var(--text-main);
    margin-bottom: 20px;
}
.accent-script {
    font-family: "Permanent Marker", cursive;
    color: var(--lime);
    font-size: 1.05em;
    display: inline-block;
    transform: rotate(-2deg);
}
.hero-sub {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 460px;
    margin-bottom: 30px;
}
.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}
.hero-art {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mascot {
    width: 100%;
    max-width: 340px;
    filter: drop-shadow(0 20px 40px rgba(195, 250, 60, 0.15));
}
.deco {
    position: absolute;
    color: var(--lime);
    animation: float 3.5s ease-in-out infinite;
}
.deco-sparkle { font-size: 1.4rem; }
.deco-1 { top: 8%; right: 18%; animation-delay: 0s; }
.deco-2 { top: 30%; left: 6%; animation-delay: 0.6s; }
.deco-star { top: 4%; left: 22%; font-size: 1.1rem; color: var(--pink); animation-delay: 1s; }
.deco-note { bottom: 22%; right: 4%; font-size: 1.6rem; color: var(--text-muted); animation-delay: 1.6s; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* --- PERFORMANCE ZONE --- */
.performance-zone { padding: 80px 0; }
.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 36px;
}
.section-heading h2 { font-size: 1.9rem; margin-bottom: 10px; }

.tab-toggle { display: flex; gap: 8px; }
.tab-btn {
    background-color: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 8px 18px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
}
.tab-btn.active {
    background-color: var(--lime);
    border-color: var(--lime);
    color: #0a0a0c;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
.game-card {
    background-color: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    display: block;
    transition: border-color 0.2s ease, transform 0.2s ease;
}
.game-card:hover {
    border-color: var(--lime);
    transform: translateY(-4px);
}
.game-media {
    height: 160px;
    position: relative;
    display: flex;
    align-items: flex-start;
    padding: 14px;
}
.game-media-biasd {
    background: linear-gradient(135deg, #0f2e1a, #123018 40%, #0a0a0c);
}
.game-media-survival {
    background: linear-gradient(135deg, #3a0a2e, #1a0a24 40%, #0a0a0c);
}
.game-media-sunb {
    background: linear-gradient(135deg, #3a2a0a, #241a0a 40%, #0a0a0c);
}
.game-media-img {
    position: absolute;
    right: 6px;
    bottom: 0;
    height: 175px;
    width: auto;
    object-fit: contain;
    pointer-events: none;
}
.game-tag {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    padding: 5px 12px;
    border-radius: 999px;
}
.tag-lime { background-color: var(--lime); color: #0a0a0c; }
.tag-pink { background-color: var(--pink); color: #fff; }
.tag-gold { background-color: var(--gold); color: #0a0a0c; }

.game-body { padding: 20px; }
.game-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}
.game-title-row h3 { font-size: 1.3rem; }
.game-meta { color: var(--text-muted); font-size: 0.8rem; font-weight: 600; }
.game-body p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 18px;
}

/* --- STAN CENTRAL --- */
.stan-central { padding: 64px 0 80px; }
.stan-tabs { flex-wrap: wrap; }
/* Each tab's active state picks up its own category color instead of the
   default lime, matching the badge/chip colors used elsewhere. "All" keeps
   the default lime since it isn't tied to one category. */
.stan-tabs .tab-btn[data-stan-tab="Concert"].active { background-color: var(--violet); border-color: var(--violet); color: #0a0a0c; }
.stan-tabs .tab-btn[data-stan-tab="Birthday"].active { background-color: var(--gold); border-color: var(--gold); color: #0a0a0c; }
.stan-tabs .tab-btn[data-stan-tab="Military"].active { background-color: var(--steel); border-color: var(--steel); color: #0a0a0c; }
.stan-tabs .tab-btn[data-stan-tab="Announcement"].active { background-color: var(--pink); border-color: var(--pink); color: #fff; }
.stan-heading-icon {
    display: inline-block;
    width: 56px;
    height: 56px;
    object-fit: contain;
    vertical-align: middle;
    margin-right: 6px;
    margin-top: -10px;
    filter: drop-shadow(0 6px 14px rgba(167, 139, 250, 0.3));
}
/* Lift item cards a level above the section's own tinted background so they
   still read as "elevated" rather than blending into it. */
.stan-central .stan-item { background-color: var(--bg-elevated-2); }
.stan-central .stan-badge { font-size: 0.82rem; padding: 6px 14px; }

.stan-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.stan-list[hidden] { display: none; }
.stan-status {
    color: var(--text-muted);
    font-size: 0.95rem;
    padding: 24px 0;
}
.stan-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-width: 0;
    background-color: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px 22px;
}
.stan-item-main { min-width: 0; flex: 1 1 auto; }
.stan-item-line1 {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 2px;
}
.stan-item-line2 {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 4px;
    overflow-wrap: anywhere;
}
.stan-item-line3 {
    color: var(--text-muted);
    font-size: 0.8rem;
    opacity: 0.8;
    overflow-wrap: anywhere;
}
.stan-item-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    flex-shrink: 0;
}
.stan-item-when {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
}
.stan-new {
    background-color: var(--pink);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.3px;
    padding: 2px 8px;
    border-radius: 999px;
    flex-shrink: 0;
}

.stan-badge {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.3px;
    padding: 5px 12px;
    border-radius: 999px;
    white-space: nowrap;
}
.stan-badge-concert { background-color: var(--violet-dim); color: var(--violet); }
.stan-badge-comeback { background-color: var(--lime-dim); color: var(--lime); }
.stan-badge-birthday { background-color: var(--gold-dim); color: var(--gold); }
.stan-badge-military { background-color: var(--steel-dim); color: var(--steel); }
.stan-badge-news { background-color: var(--pink-dim); color: var(--pink); }

.stan-view-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 22px;
    color: var(--lime);
    font-weight: 700;
    font-size: 0.9rem;
}
.stan-view-more:hover { color: #d4ff6b; }

/* --- STAN CENTRAL (full page) --- */
.stan-central-page { padding: 50px 0 90px; }
.stan-central-page .section-heading { margin-bottom: 24px; }
.stan-central-page h1 { font-size: 2rem; margin-bottom: 10px; }
.stan-page-heading { display: flex; align-items: center; gap: 20px; }
.stan-announcer-img {
    width: 110px;
    height: auto;
    flex-shrink: 0;
    filter: drop-shadow(0 12px 24px rgba(167, 139, 250, 0.25));
}
@media (max-width: 600px) {
    .stan-announcer-img { width: 76px; }
}

.stan-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}
.stan-search-input {
    flex: 1 1 220px;
    background-color: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 11px 20px;
    color: var(--text-main);
    font-size: 0.9rem;
    outline: none;
}
.stan-search-input:focus { border-color: var(--lime); }
.stan-search-input::placeholder { color: var(--text-muted); }
.stan-filter-select {
    background-color: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 11px 16px;
    color: var(--text-main);
    font-size: 0.9rem;
    max-width: 200px;
}

.stan-results-summary {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    margin: -6px 0 22px;
}

.stan-cal-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 18px;
}
.stan-cal-nav {
    background-color: var(--bg-elevated);
    border: 1px solid var(--border);
    color: var(--text-main);
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: 999px;
    font-size: 1.15rem;
    line-height: 1;
    cursor: pointer;
}
.stan-cal-nav:hover { border-color: var(--lime); color: var(--lime); }
.stan-cal-month-select {
    background-color: var(--bg-elevated);
    border: 1px solid var(--border);
    color: var(--text-main);
    padding: 9px 18px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.95rem;
    text-align: center;
}

.stan-cal-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    margin-bottom: 8px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}
.stan-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}
.stan-cal-cell {
    min-height: 84px;
    background-color: var(--cal-cell-bg);
    border: 1px solid var(--cal-cell-border);
    border-radius: 10px;
    padding: 6px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    font: inherit;
    color: var(--cal-text-dark);
    text-align: left;
    cursor: pointer;
    overflow: hidden;
}
.stan-cal-cell-empty { background: none; border: none; cursor: default; }
.stan-cal-cell:not(.stan-cal-cell-empty):hover { border-color: var(--lime); }
.stan-cal-cell-today { border-color: var(--lime); background-color: var(--lime-dim); }
.stan-cal-cell-selected { border-color: var(--lime); background-color: rgba(195, 250, 60, 0.22); }
.stan-cal-daynum { font-size: 0.8rem; font-weight: 700; color: var(--cal-text-dark); }
/* The lime tint on today/selected sits over the page's dark background, not
   the light cell base, so the dark day-number text needs to flip to light. */
.stan-cal-cell-today .stan-cal-daynum,
.stan-cal-cell-selected .stan-cal-daynum {
    color: var(--text-main);
}
.stan-cal-chips {
    display: flex;
    flex-direction: column;
    gap: 2px;
    width: 100%;
}
/* Category color is the chip's fill, not its text -- a dim tint behind
   colored text reads as low-contrast noise, a solid fill with a fixed
   high-contrast text color reads clearly at a glance. */
.stan-cal-chip {
    font-size: 0.62rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}
.stan-cal-chip-concert { background-color: var(--violet); color: var(--cal-text-dark); }
.stan-cal-chip-comeback { background-color: var(--lime); color: var(--cal-text-dark); }
.stan-cal-chip-birthday { background-color: var(--gold); color: var(--cal-text-dark); }
.stan-cal-chip-military { background-color: var(--steel); color: var(--cal-text-dark); }
.stan-cal-chip-more {
    font-size: 0.62rem;
    color: var(--cal-text-muted);
    font-weight: 600;
    padding: 0 2px;
}

.stan-day-detail { margin-top: 26px; }
.stan-day-detail-title { font-size: 1.1rem; margin-bottom: 14px; }

@media (max-width: 700px) {
    .stan-cal-cell { min-height: 56px; padding: 4px; }
    .stan-cal-chip { font-size: 0; padding: 0; width: 7px; height: 7px; border-radius: 50%; }
    .stan-cal-chip-more { font-size: 0.6rem; }
    .stan-cal-chips { flex-direction: row; flex-wrap: wrap; gap: 3px; }
}

/* --- FAN PARTY ESSENTIALS --- */
.fan-party {
    padding: 90px 0;
    background-color: #170a13;
    background-image:
        radial-gradient(rgba(255, 46, 151, 0.35) 1.5px, transparent 1.5px),
        radial-gradient(ellipse at 50% 20%, rgba(255, 46, 151, 0.2), transparent 65%);
    background-size: 22px 22px, auto;
    border-top: 1px solid rgba(255, 46, 151, 0.3);
    border-bottom: 1px solid rgba(255, 46, 151, 0.3);
}
.fan-party-inner {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background-color: var(--bg-elevated);
    border: 1px solid var(--pink);
    border-radius: 24px;
    padding: 48px 40px;
    box-shadow: 0 0 70px rgba(255, 46, 151, 0.18);
}
.fan-party-inner .eyebrow.pink-text { color: var(--pink); }
.fan-party-inner h2 { font-size: 2.1rem; margin-bottom: 14px; }
.fan-party-inner .section-sub { margin: 0 auto 26px; }

/* --- JOIN CLUB --- */
.join-club { padding: 70px 0 90px; }
.join-card {
    background-color: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 50px;
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 40px;
    align-items: center;
}
.join-art {
    display: flex;
    align-items: center;
    justify-content: center;
}
.join-mail-img {
    width: 100%;
    max-width: 260px;
    filter: drop-shadow(0 20px 40px rgba(195, 250, 60, 0.12));
    animation: mail-wobble 4s ease-in-out infinite;
}

@keyframes mail-wobble {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50% { transform: translateY(-12px) rotate(2deg); }
}
.eyebrow {
    display: block;
    color: var(--lime);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 1px;
    margin-bottom: 10px;
}
.join-copy h2 { font-size: 1.9rem; margin-bottom: 12px; }
.join-copy .section-sub { margin-bottom: 26px; max-width: 460px; }

.join-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    max-width: 480px;
    margin-bottom: 14px;
}
.join-form input {
    background-color: var(--bg-elevated-2);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 13px 20px;
    color: var(--text-main);
    font-size: 0.95rem;
    outline: none;
}
.join-form input:focus { border-color: var(--lime); }
.join-input-full { grid-column: 1 / -1; }
.join-submit { grid-column: 1 / -1; justify-self: start; }

/* Honeypot: invisible to real visitors and skipped by keyboard/screen-reader
   navigation, but most spam bots blindly fill every input they find. */
.join-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.join-consent {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.8rem;
    cursor: pointer;
}
.join-consent input {
    accent-color: var(--lime);
    width: 16px;
    height: 16px;
    min-width: 16px;
    margin-top: 2px;
}

.join-note {
    color: var(--lime);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.join-perks {
    display: flex;
    gap: 24px;
    list-style: none;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    flex-wrap: wrap;
}

/* --- FOOTER --- */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 40px 0;
}
.footer-inner { text-align: center; }
.footer-logo { display: block; margin-bottom: 10px; }
.footer-inner p {
    color: var(--text-muted);
    font-size: 0.85rem;
}
.footer-copyright { margin-top: 14px; font-size: 0.75rem; opacity: 0.7; }
.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 16px;
}
.footer-links a,
.footer-link-btn {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 600;
}
.footer-links a:hover,
.footer-link-btn:hover { color: var(--text-main); }
.footer-link-btn {
    background: none;
    border: none;
    font: inherit;
    cursor: pointer;
    padding: 0;
}

/* --- LEGAL PAGES --- */
.legal-page {
    max-width: 760px;
    margin: 0 auto;
    padding: 60px 24px 100px;
}
.legal-page h1 {
    font-size: 2.2rem;
    margin-bottom: 8px;
}
.legal-updated {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 40px;
}
.legal-page h2 {
    font-size: 1.3rem;
    margin-top: 40px;
    margin-bottom: 12px;
}
.legal-page p,
.legal-page li {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 14px;
}
.legal-page ul { padding-left: 20px; margin-bottom: 14px; }
.legal-page a { color: var(--lime); text-decoration: underline; }
.legal-page strong { color: var(--text-main); }
.legal-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0 28px;
    font-size: 0.85rem;
}
.legal-table th,
.legal-table td {
    border: 1px solid var(--border);
    padding: 10px 12px;
    text-align: left;
    color: var(--text-muted);
    vertical-align: top;
}
.legal-table th {
    color: var(--text-main);
    background-color: var(--bg-elevated);
}
.manage-cookies-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--lime);
    color: var(--lime);
    background-color: var(--lime-dim);
    font: inherit;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 10px 20px;
    border-radius: 999px;
    cursor: pointer;
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
    position: fixed;
    left: 20px;
    right: 20px;
    bottom: 20px;
    z-index: 100;
    max-width: 640px;
    margin: 0 auto;
    background-color: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}
.cookie-banner p {
    flex: 1;
    min-width: 200px;
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.5;
}
.cookie-banner a { color: var(--lime); text-decoration: underline; }
.cookie-banner-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}
@media (max-width: 480px) {
    .cookie-banner { left: 12px; right: 12px; bottom: 12px; padding: 16px 18px; }
    .cookie-banner-actions { width: 100%; }
    .cookie-banner-actions .btn { flex: 1; }
}

/* --- RESPONSIVE --- */
@media (max-width: 860px) {
    .header-inner { padding: 14px 20px; gap: 12px; }
    .main-nav { gap: 16px; }
    .header-ctas { display: none; }
    .hero-inner { grid-template-columns: 1fr; text-align: center; }
    .hero-sub { margin-left: auto; margin-right: auto; }
    .hero-actions { justify-content: center; }
    .hero-art { order: -1; margin-bottom: 20px; }
    .mascot { max-width: 220px; }
    .game-grid { grid-template-columns: 1fr; }
    .stan-item { flex-direction: column; align-items: flex-start; }
    .stan-item-side { flex-direction: row-reverse; justify-content: flex-end; align-items: center; width: 100%; }
    /* The violet section tint reads well on mobile's tighter layout but was
       too heavy against the desktop grid, so it's mobile-only. */
    .stan-central {
        background-color: #12101c;
        background-image: radial-gradient(ellipse at 50% 0%, rgba(167, 139, 250, 0.16), transparent 60%);
        border-top: 1px solid rgba(167, 139, 250, 0.25);
        border-bottom: 1px solid rgba(167, 139, 250, 0.25);
    }
    .join-card { grid-template-columns: 1fr; padding: 32px 24px; }
    .join-art { order: -1; }
    .join-mail-img { max-width: 180px; }
    .join-form { grid-template-columns: 1fr; }
    .club-benefits-grid { grid-template-columns: 1fr; }
}

/* --- JOIN LANDING PAGE (join.html) --- */
.club-hero {
    padding: 70px 0 30px;
    background-image: radial-gradient(var(--border) 1px, transparent 1px);
    background-size: 22px 22px;
}
.club-hero .hero-title { font-size: 2.5rem; }
.club-hero-sub { margin-bottom: 22px; }

.club-perks {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 0 0 26px;
    max-width: 460px;
}
.club-perks li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.45;
}
.club-perks strong { color: var(--text-main); }
.club-perks .perk-icon { flex-shrink: 0; font-size: 1.15rem; }

.club-trust-note {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.club-benefits { padding: 20px 0 90px; }
.club-benefits-title { text-align: center; font-size: 1.9rem; margin-bottom: 10px; }
.club-benefits-sub { text-align: center; margin: 0 auto 32px; max-width: 480px; }

.club-benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.club-benefit-card {
    background-color: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 28px;
}
.club-benefit-card .benefit-icon { font-size: 1.8rem; margin-bottom: 12px; display: block; }
.club-benefit-card .benefit-icon-img { width: 64px; height: 64px; object-fit: contain; margin-bottom: 12px; }
.club-benefit-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.club-benefit-card p { color: var(--text-muted); font-size: 0.9rem; }
.club-benefit-card a { color: var(--lime); font-weight: 600; font-size: 0.85rem; display: inline-block; margin-top: 10px; }

@media (max-width: 480px) {
    .header-inner { flex-wrap: wrap; justify-content: center; }
    .logo { font-size: 1.05rem; }
    .main-nav { width: 100%; justify-content: center; gap: 14px; }
    .nav-link { font-size: 0.85rem; }
    .nav-dropdown-menu { left: auto; right: 0; transform: translateY(-6px); }
    .nav-dropdown.open .nav-dropdown-menu { transform: translateY(0); }
}

/* --- GAME NIGHT GUIDES (guides hub + article pages) --- */
.guides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}
.guide-card {
    background-color: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 28px;
    display: flex;
    flex-direction: column;
}
.guide-card-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 14px;
    display: block;
    background-color: var(--lime);
    -webkit-mask-image: url('/fingerheart.png');
    mask-image: url('/fingerheart.png');
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
}
.guide-category { display: block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--lime); margin-bottom: 6px; }
.guide-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.guide-card p { color: var(--text-muted); font-size: 0.9rem; flex-grow: 1; }
.guide-tag {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    background-color: var(--bg-elevated-2);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 5px 13px;
}
.guide-tag-category { color: var(--lime); background-color: var(--lime-dim); border-color: var(--lime); }
.guide-card-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 4px; }
.guide-card-link { color: var(--lime); font-weight: 600; font-size: 0.9rem; margin-top: 16px; display: inline-block; }

/* Hub page category sections */
.guides-section { margin-bottom: 48px; }
.guides-section:last-child { margin-bottom: 0; }
.guides-section-title { font-size: 1.4rem; margin-bottom: 20px; }

/* Article page (individual guide) */
.article-page { padding: 50px 0 90px; }
.article-breadcrumb { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 24px; }
.article-breadcrumb a { color: var(--text-muted); }
.article-breadcrumb a:hover { color: var(--lime); }
.article-back { color: var(--text-muted); font-size: 0.9rem; }
.article-back:hover { color: var(--lime); }
.article-header { max-width: 760px; margin: 0 auto 36px; }
.article-title { font-size: 2.4rem; margin-bottom: 18px; }
.article-lede { color: var(--text-muted); font-size: 1.1rem; line-height: 1.7; }
.article-meta { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 0; }
.article-body { max-width: 760px; margin: 0 auto; }
.article-body h2 { font-size: 1.5rem; margin: 40px 0 14px; }
.article-body p { color: var(--text-muted); font-size: 1rem; line-height: 1.75; margin-bottom: 16px; }
.article-body p a { color: var(--lime); font-weight: 600; }
.article-body p a:hover { text-decoration: underline; }
.article-body p strong { color: var(--text-main); }
.article-watch-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.article-watch-list li { background-color: var(--bg-elevated); border: 1px solid var(--border); border-radius: 14px; padding: 16px 20px; }
.article-watch-list a { color: var(--text-main); font-weight: 600; }
.article-watch-list a:hover { color: var(--lime); }
.article-watch-list span { display: block; color: var(--text-muted); font-size: 0.85rem; margin-top: 4px; }
.article-closing { color: var(--text-muted); font-size: 1rem; line-height: 1.75; margin-top: 8px; }
.article-related { margin-top: 60px; padding-top: 40px; border-top: 1px solid var(--border); }
.article-related h2 { font-size: 1.4rem; margin-bottom: 20px; }

@media (max-width: 600px) {
    .article-title { font-size: 1.9rem; }
    .article-lede { font-size: 1rem; }
}

/* --- CONCEPT COLORS --- */
.palette-page { padding: 50px 0 30px; }

.palette-tool {
    background-color: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 40px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.palette-dropzone {
    border: 2px dashed var(--border);
    border-radius: 16px;
    padding: 48px 24px;
    text-align: center;
    color: var(--text-muted);
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}
.palette-dropzone:hover,
.palette-dropzone.is-dragover {
    border-color: var(--lime);
    background-color: var(--lime-dim);
}
.palette-dropzone:focus-visible {
    outline: 3px solid var(--lime);
    outline-offset: 4px;
}
.palette-dropzone[hidden] { display: none; }
.palette-dropzone-icon { display: block; font-size: 2.2rem; margin-bottom: 14px; }
.palette-dropzone-title { color: var(--text-main); font-weight: 700; font-size: 1.05rem; margin-bottom: 6px; }
.palette-dropzone-sub { font-size: 0.85rem; }

.palette-workspace {
    display: flex;
    flex-direction: column;
    gap: 28px;
}
.palette-workspace[hidden] { display: none; }
.palette-preview {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.palette-thumb-img {
    width: 96px;
    height: 96px;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid var(--border);
}

.palette-controls {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.palette-count-label {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-main);
    white-space: nowrap;
}
.palette-count-label span { color: var(--lime); }
#palette-count {
    flex: 1 1 160px;
    max-width: 260px;
    accent-color: var(--lime);
    cursor: pointer;
}
#palette-count:focus-visible {
    outline: 3px solid var(--lime);
    outline-offset: 4px;
}

.palette-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(84px, 1fr));
    gap: 14px;
}
.palette-swatch {
    background: none;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font: inherit;
    cursor: pointer;
    transition: transform 0.15s ease, border-color 0.15s ease;
}
.palette-swatch:hover { border-color: var(--lime); transform: translateY(-2px); }
.palette-swatch:focus-visible {
    outline: 3px solid var(--lime);
    outline-offset: 3px;
}
.palette-swatch-color {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 10px;
    background-color: var(--swatch-color);
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.palette-swatch-hex {
    font-family: "Inter", monospace;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.3px;
}
.palette-swatch.is-copied .palette-swatch-hex { color: var(--lime); }

.palette-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.palette-status {
    color: var(--lime);
    font-size: 0.85rem;
    font-weight: 600;
    min-height: 1.2em;
}
.palette-status.is-error { color: var(--pink); }

.palette-privacy-note {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.82rem;
    margin-top: 20px;
}

.palette-card-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background-color: var(--bg-elevated-2);
}
.palette-card-preview[hidden] { display: none; }
.palette-card-preview-img {
    width: 100%;
    max-width: 220px;
    border-radius: 12px;
    border: 1px solid var(--border);
}
.palette-card-preview-hint {
    color: var(--text-muted);
    font-size: 0.82rem;
    text-align: center;
}

@media (prefers-reduced-motion: reduce) {
    .palette-dropzone,
    .palette-swatch {
        transition: none;
    }
    .palette-swatch:hover { transform: none; }
}

@media (max-width: 600px) {
    .palette-tool { padding: 28px 20px; }
    .palette-dropzone { padding: 36px 18px; }
    .palette-actions { flex-direction: column; }
    .palette-actions .btn { width: 100%; }
}
