/* =========================================================================
   2high2play.com Global Stylesheet
   Phase 1 scaffold. Vanilla CSS, no preprocessors.
   Aesthetic: Frutiger Aero Archive shell + 2high2play yellow-green accent.
   Structure: Atomic Networks page patterns adapted to FA sidebar shell.
   ========================================================================= */


/* -------------------------------------------------------------------------
   1. CSS Variables
   ------------------------------------------------------------------------- */
:root {
    /* Color palette (from master_context.md design system) */
    --bg-primary:        #1a1d21;
    --bg-surface:        #23262b;
    --bg-alt:            #1c1f24;
    --bg-surface-2:      #2a2d32;

    --accent:            #c8f000;
    --accent-hover:      #d8ff00;
    --accent-soft:       rgba(200, 240, 0, 0.18);
    --accent-deep:       #5a6f00;

    --text-primary:      #ffffff;
    --text-muted:        #9ca3af;
    --text-dim:          #6b7280;

    --border:            #2e3138;
    --border-strong:     #3b3f47;
    --border-soft:       #ffffff14;

    --announcement-bg:   #c8f000;
    --announcement-text: #111111;

    --btn-primary-bg:    #c8f000;
    --btn-primary-text:  #111111;
    --btn-ghost-border:  #ffffff44;

    --badge-bg:          #2a2d32;
    --success:           #22c55e;
    --danger:            #ef4444;

    /* FA-shell-derived (translucent surfaces, gradient stops) */
    --glass-bg:          rgba(35, 38, 43, 0.72);
    --glass-bg-strong:   rgba(27, 29, 33, 0.88);
    --glass-border:      rgba(255, 255, 255, 0.08);
    --glass-inner:       rgba(255, 255, 255, 0.05);

    --header-grad-top:   rgba(40, 44, 50, 0.92);
    --header-grad-mid:   rgba(28, 31, 36, 0.92);
    --header-grad-bot:   rgba(15, 17, 20, 0.95);

    --titlebar-grad:     linear-gradient(to bottom,
                            #3a3f47 0%,
                            #2a2e35 30%,
                            #1c1f24 55%,
                            #15171b 100%);

    --section-banner-grad: linear-gradient(135deg,
                            #2a2d32 0%,
                            #1c1f24 60%,
                            #15171b 100%);

    /* Typography */
    --font-stack:        "Segoe UI", Tahoma, Geneva, Verdana, system-ui, -apple-system, sans-serif;
    --font-mono:         "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;

    /* Layout */
    --container-max:     1280px;
    --sidebar-width:     230px;
    --radius-window:     20px;
    --radius-card:       12px;
    --radius-pill:       999px;

    /* Spacing */
    --gap-xs:  4px;
    --gap-sm:  8px;
    --gap-md:  16px;
    --gap-lg:  24px;
    --gap-xl:  40px;
    --gap-2xl: 64px;

    /* Shadows */
    --shadow-window: 0 14px 28px rgba(0, 0, 0, 0.35), 0 10px 10px rgba(0, 0, 0, 0.22);
    --shadow-card:   0 6px 16px rgba(0, 0, 0, 0.35);
    --shadow-soft:   0 2px 8px rgba(0, 0, 0, 0.25);

    /* Transitions */
    --t-fast: 0.15s ease;
    --t-base: 0.25s ease;
    --t-slow: 0.4s ease;
}


/* -------------------------------------------------------------------------
   2. Reset / Normalize (lightweight)
   ------------------------------------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

body, h1, h2, h3, h4, h5, h6, p, ul, ol, dl, figure {
    margin: 0;
}

ul, ol {
    padding: 0;
    list-style: none;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--t-fast);
}
a:hover { color: var(--accent-hover); }
a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 2px;
}

img, svg, video {
    display: block;
    max-width: 100%;
    height: auto;
}

button {
    font: inherit;
    color: inherit;
    background: transparent;
    border: 0;
    cursor: pointer;
}

::selection {
    background: var(--accent);
    color: var(--announcement-text);
}


/* -------------------------------------------------------------------------
   3. Body / Background layer
   ------------------------------------------------------------------------- */
body {
    background-color: var(--bg-primary);
    /* CSS-gradient placeholder. Swap to background-image when art lands. */
    background-image:
        radial-gradient(ellipse at 20% 0%, rgba(200, 240, 0, 0.06) 0%, transparent 55%),
        radial-gradient(ellipse at 80% 100%, rgba(34, 197, 94, 0.06) 0%, transparent 55%),
        linear-gradient(160deg, #15171b 0%, #1a1d21 50%, #14161a 100%);
    background-attachment: fixed;
    background-size: cover;
    color: var(--text-primary);
    font-family: var(--font-stack);
    font-size: 15px;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

#background {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    /* Overlay layer for future bg-image hookup. Empty for now. */
}


/* -------------------------------------------------------------------------
   4. Announcement Bar
   ------------------------------------------------------------------------- */
.announcement-bar {
    background-color: var(--announcement-bg);
    color: var(--announcement-text);
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    padding: 8px 16px;
    width: 100%;
}

.announcement-bar a {
    color: var(--announcement-text);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.announcement-bar a:hover {
    color: var(--announcement-text);
    text-decoration: underline;
}

.announcement-bar .arrow {
    transition: transform var(--t-fast);
}

.announcement-bar a:hover .arrow {
    transform: translateX(3px);
}


/* -------------------------------------------------------------------------
   5. Centered Window Container
   ------------------------------------------------------------------------- */
#websiteContainer {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 16px 16px 0;
    position: relative;
}

.website-spacers {
    height: 16px;
    width: 100%;
}


/* -------------------------------------------------------------------------
   6. Header
   ------------------------------------------------------------------------- */
#mainHeader {
    background: linear-gradient(180deg,
        var(--header-grad-top) 0%,
        var(--header-grad-mid) 45%,
        var(--header-grad-bot) 100%);
    border: 1px solid var(--border-strong);
    border-bottom: 0;
    border-top-left-radius: var(--radius-window);
    border-top-right-radius: var(--radius-window);
    backdrop-filter: blur(6px) saturate(140%);
    -webkit-backdrop-filter: blur(6px) saturate(140%);
    box-shadow: var(--shadow-window);
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--gap-md);
    position: relative;
    z-index: 5;
}

.header-logo-text {
    display: flex;
    align-items: center;
    gap: 14px;
}

.header-logo-text a {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

#logo {
    color: var(--accent);
    font-weight: 800;
    font-size: 22px;
    letter-spacing: 0.5px;
    line-height: 1;
    text-shadow: 0 0 14px rgba(200, 240, 0, 0.35);
}

.header-text {
    display: flex;
    flex-direction: column;
}

.header-title {
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.1;
}

.header-motto {
    color: var(--text-muted);
    font-size: 12px;
    margin-top: 2px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Mobile hamburger toggle */
.toggle-buttons-divs {
    display: none;
    align-items: center;
    gap: 8px;
}

#hideNavbarButtonText {
    color: var(--text-muted);
    font-size: 13px;
}

#navbarToggleButton {
    width: 36px;
    height: 36px;
    border: 1px solid var(--border-strong);
    background: var(--bg-surface);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background var(--t-fast), border-color var(--t-fast);
}

#navbarToggleButton:hover {
    background: var(--bg-surface-2);
    border-color: var(--accent);
}

#navbarToggleButton .bar {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--text-primary);
    margin: 3px auto;
    border-radius: 2px;
}


/* -------------------------------------------------------------------------
   7. Nav + Content Wrapper
   ------------------------------------------------------------------------- */
#navAndContentContainer {
    display: flex;
    align-items: stretch;
    gap: 0;
    border: 1px solid var(--border-strong);
    border-top: 0;
    border-bottom-left-radius: var(--radius-window);
    border-bottom-right-radius: var(--radius-window);
    overflow: hidden;
    box-shadow: var(--shadow-window);
    background: rgba(20, 22, 26, 0.55);
}


/* -------------------------------------------------------------------------
   8. Sidebar
   ------------------------------------------------------------------------- */
#navigationMenu {
    width: var(--sidebar-width);
    flex-shrink: 0;
    background: rgba(20, 22, 26, 0.85);
    border-right: 1px solid var(--border);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    padding: 14px 12px 18px;
    overflow-y: auto;
    max-height: calc(100vh - 140px);
}

.nav-categories {
    background: rgba(26, 29, 33, 0.55);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 4px 4px 6px;
    margin-bottom: 8px;
    display: flex;
    flex-direction: column;
}

.navbar-titles {
    background: var(--titlebar-grad);
    border: 1px solid #000;
    color: var(--text-primary);
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 4px 6px 5px;
    margin: 1px 1px 6px;
    border-radius: 3px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Nav items shared */
.nav-active,
.nav-inactive {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 9px;
    margin: 0 2px 3px;
    border: 1px solid #0f0f0f;
    border-radius: 5px;
    color: var(--text-primary);
    font-size: 12.5px;
    line-height: 1.2;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: transform var(--t-fast), background var(--t-fast), color var(--t-fast);
}

/* Glossy sheen overlay (FA pattern) */
.nav-active::before,
.nav-inactive::before {
    content: "";
    position: absolute;
    top: 0;
    left: 5%;
    width: 90%;
    height: 11px;
    background: linear-gradient(to bottom,
        rgba(255, 255, 255, 0.22) 0%,
        rgba(255, 255, 255, 0.04) 100%);
    border-radius: 20px;
    opacity: 0.4;
    pointer-events: none;
}

/* Inactive default */
.nav-inactive {
    background: linear-gradient(to bottom,
        rgba(255, 255, 255, 0.06) 0%,
        rgba(80, 80, 80, 0.10) 35%,
        rgba(0, 0, 0, 0.30) 60%,
        rgba(20, 20, 20, 0.30) 100%);
}

.nav-inactive:hover {
    background: linear-gradient(to bottom,
        rgba(255, 255, 255, 0.10) 0%,
        rgba(120, 120, 120, 0.18) 35%,
        rgba(35, 35, 35, 0.35) 60%,
        rgba(60, 60, 60, 0.30) 100%);
    transform: translateX(2px);
    color: var(--text-primary);
}

/* Active page */
.nav-active {
    background: linear-gradient(to bottom,
        rgba(255, 255, 255, 0.18) 0%,
        rgba(120, 120, 120, 0.20) 25%,
        rgba(90, 110, 0, 0.35) 45%,
        rgba(200, 240, 0, 0.55) 100%);
    color: var(--accent);
    font-weight: 600;
    box-shadow: 0 0 0 1px rgba(200, 240, 0, 0.35) inset;
}

/* Coming Soon items appear muted */
.nav-inactive.is-soon {
    opacity: 0.55;
    cursor: not-allowed;
}
.nav-inactive.is-soon:hover {
    transform: none;
}
.nav-inactive .soon-tag {
    margin-left: auto;
    font-size: 9px;
    padding: 1px 6px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-pill);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Nav icon placeholder squares (real icons drop in later) */
.nav-icons {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    background: linear-gradient(135deg,
        rgba(200, 240, 0, 0.4) 0%,
        rgba(34, 197, 94, 0.25) 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 3px;
    display: inline-block;
}

.nav-label {
    flex: 1 1 auto;
}

/* Sidebar bottom area (no theme/sound toggles per Phase 1) */
.nav-bottom {
    margin-top: 14px;
    padding: 12px 4px 0;
    border-top: 1px solid var(--border);
    text-align: center;
}

.nav-bottom .nav-tagline {
    color: var(--text-dim);
    font-size: 11px;
    line-height: 1.4;
}


/* -------------------------------------------------------------------------
   9. Main Content Area
   ------------------------------------------------------------------------- */
#mainContent {
    flex: 1 1 auto;
    background: rgba(28, 31, 36, 0.78);
    backdrop-filter: blur(4px) saturate(140%);
    -webkit-backdrop-filter: blur(4px) saturate(140%);
    color: #dadada;
    padding: 18px 22px 28px;
    overflow-y: auto;
    overflow-x: hidden;
    max-height: calc(100vh - 140px);
    min-width: 0; /* prevent flex overflow */
}


/* -------------------------------------------------------------------------
   10. Headings (gradient title bar style on h1, h2, h3)
   ------------------------------------------------------------------------- */
h1, h2, h3 {
    background: var(--titlebar-grad);
    color: var(--text-primary);
    border: 1px solid #000;
    border-bottom: 1px solid #000;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10),
                0 3px 8px rgba(0, 0, 0, 0.35);
    padding: 6px 14px 7px;
    text-align: center;
    font-weight: 600;
    line-height: 1.3;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

h1 { font-size: 17px; letter-spacing: 0.4px; }
h2 { font-size: 15px; letter-spacing: 0.3px; }
h3 { font-size: 14px; letter-spacing: 0.2px; }

h4, h5, h6 {
    color: var(--text-primary);
    font-weight: 600;
    margin: 0;
}

h4 { font-size: 14px; }
h5 { font-size: 13px; }
h6 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; }

p {
    font-size: 14px;
    line-height: 1.6;
    color: #d4d4d4;
}


/* -------------------------------------------------------------------------
   11. Glass Containers
   ------------------------------------------------------------------------- */
.glass-borders {
    background: rgba(48, 50, 55, 0.10);
    border: 1px solid var(--glass-border);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.10),
        inset 0 0 8px rgba(255, 255, 255, 0.04),
        0 5px 14px rgba(0, 0, 0, 0.35);
    padding: 6px;
    margin: 12px 0;
    border-radius: 6px;
}

.aero-borders {
    border: 1px solid var(--border-strong);
    border-radius: 4px;
}

.section-banners {
    background: var(--section-banner-grad);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.35);
    border-bottom: 1px solid #000;
    border-radius: 3px 3px 0 0;
    overflow: hidden;
}

.section-banners .banner-placeholder {
    width: 100%;
    aspect-ratio: 8 / 1;
    min-height: 90px;
    background:
        linear-gradient(135deg,
            rgba(200, 240, 0, 0.10) 0%,
            rgba(34, 197, 94, 0.08) 50%,
            rgba(0, 0, 0, 0.30) 100%),
        repeating-linear-gradient(45deg,
            rgba(255, 255, 255, 0.02) 0 8px,
            rgba(0, 0, 0, 0.04) 8px 16px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.styled-containers {
    background: rgba(27, 29, 33, 0.85);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.35);
    padding: 14px;
    border-radius: 0 0 4px 4px;
}

.styled-containers-spaced {
    padding: 18px 18px 20px;
}

.styled-containers-headers {
    background: rgba(27, 29, 33, 0.78);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.35);
    padding: 12px 14px 14px;
    border-radius: 0 0 4px 4px;
}

.styled-containers-layer-2 {
    background: rgba(38, 41, 46, 0.65);
    border-radius: 4px;
    padding: 12px;
}


/* -------------------------------------------------------------------------
   12. Buttons
   ------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: var(--radius-pill);
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.3px;
    cursor: pointer;
    text-decoration: none;
    border: 1px solid transparent;
    transition: transform var(--t-fast), background var(--t-fast),
                border-color var(--t-fast), color var(--t-fast),
                box-shadow var(--t-fast);
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(180deg,
        rgba(255, 255, 255, 0.18) 0%,
        var(--accent) 18%,
        var(--accent) 100%);
    color: var(--btn-primary-text);
    border-color: var(--accent-deep);
    box-shadow: 0 3px 10px rgba(200, 240, 0, 0.25),
                inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.btn-primary:hover {
    background: linear-gradient(180deg,
        rgba(255, 255, 255, 0.25) 0%,
        var(--accent-hover) 18%,
        var(--accent-hover) 100%);
    color: var(--btn-primary-text);
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 5px 14px rgba(200, 240, 0, 0.35);
}

.btn-ghost {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--btn-ghost-border);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--text-primary);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.btn-block {
    width: 100%;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}


/* -------------------------------------------------------------------------
   13. Pills / Badges
   ------------------------------------------------------------------------- */
.eyebrow-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--accent-soft);
    color: var(--accent);
    border: 1px solid rgba(200, 240, 0, 0.35);
    border-radius: var(--radius-pill);
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin: 14px 0 0;
}

.trust-badge {
    background: var(--badge-bg);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-pill);
    padding: 6px 14px;
    font-size: 12px;
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.trust-badge .check {
    color: var(--accent);
    font-weight: 700;
}

.coming-soon-pill {
    display: inline-block;
    border: 1px solid var(--accent);
    color: var(--accent);
    background: rgba(200, 240, 0, 0.06);
    border-radius: var(--radius-pill);
    padding: 2px 10px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}


/* -------------------------------------------------------------------------
   14. Placeholder content blocks (visual scaffold)
   ------------------------------------------------------------------------- */
.placeholder-block {
    border: 1px dashed var(--border-strong);
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-muted);
    border-radius: var(--radius-card);
    padding: 28px 20px;
    text-align: center;
    margin: 14px 0;
}

.placeholder-block .ph-tag {
    display: inline-block;
    background: rgba(200, 240, 0, 0.10);
    color: var(--accent);
    border: 1px solid rgba(200, 240, 0, 0.30);
    padding: 2px 10px;
    border-radius: var(--radius-pill);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.placeholder-block h3 {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
    margin-bottom: 6px;
    color: var(--text-primary);
    font-size: 16px;
}

.placeholder-block p {
    font-size: 13px;
    color: var(--text-muted);
}

/* Card grid placeholder (for why-us 2x3, server cards, etc.) */
.ph-grid {
    display: grid;
    gap: 12px;
    margin-top: 14px;
}

.ph-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ph-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ph-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.ph-card {
    background: rgba(38, 41, 46, 0.55);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 18px;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    color: var(--text-muted);
    font-size: 12px;
}

.ph-card.is-server {
    aspect-ratio: 4 / 3;
    background:
        linear-gradient(180deg,
            rgba(200, 240, 0, 0.05) 0%,
            rgba(0, 0, 0, 0.25) 100%),
        rgba(38, 41, 46, 0.7);
}

.ph-card.is-soon {
    opacity: 0.55;
}

/* Bare placeholder (used inline inside other containers as a label/note) */
.placeholder-block.is-bare {
    border: 0;
    background: transparent;
    padding: 8px 0 0;
    margin: 0 0 8px;
}


/* -------------------------------------------------------------------------
   15. Pre-Footer CTA Banner
   ------------------------------------------------------------------------- */
.pre-footer-cta {
    margin-top: 24px;
    padding: 36px 24px;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(200, 240, 0, 0.12) 0%, transparent 60%),
        linear-gradient(180deg, var(--bg-alt) 0%, var(--bg-primary) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    text-align: center;
}

.pre-footer-cta h2 {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
    color: var(--text-primary);
    font-size: 24px;
    margin: 0 0 8px;
}

.pre-footer-cta p {
    color: var(--text-muted);
    margin: 0 auto 20px;
    max-width: 540px;
    font-size: 15px;
}

.pre-footer-cta .cta-row {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}


/* -------------------------------------------------------------------------
   16. Footer
   ------------------------------------------------------------------------- */
.site-footer {
    margin-top: 24px;
    padding: 32px 24px 16px;
    background: rgba(15, 17, 20, 0.85);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    color: var(--text-muted);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
    gap: 28px;
    margin-bottom: 24px;
}

.footer-brand .footer-logo {
    color: var(--accent);
    font-weight: 800;
    font-size: 18px;
    letter-spacing: 0.4px;
    margin-bottom: 8px;
    display: inline-block;
}

.footer-brand .footer-tagline {
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 12px;
    max-width: 240px;
}

.footer-socials {
    display: flex;
    gap: 8px;
}

.footer-socials a {
    width: 32px;
    height: 32px;
    border: 1px solid var(--border-strong);
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 13px;
    transition: border-color var(--t-fast), color var(--t-fast),
                background var(--t-fast);
}

.footer-socials a:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(200, 240, 0, 0.06);
}

.footer-col h6 {
    color: var(--text-primary);
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.footer-col ul li {
    margin-bottom: 6px;
}

.footer-col a {
    color: var(--text-muted);
    font-size: 13px;
}

.footer-col a:hover {
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 14px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: var(--text-dim);
}


/* -------------------------------------------------------------------------
   17. Utility classes
   ------------------------------------------------------------------------- */
.hidden { display: none !important; }
.text-muted { color: var(--text-muted); }
.text-accent { color: var(--accent); }
.text-center { text-align: center; }
.flex-row { display: flex; gap: var(--gap-md); flex-wrap: wrap; }
.mt-md { margin-top: var(--gap-md); }
.mt-lg { margin-top: var(--gap-lg); }
.mb-md { margin-bottom: var(--gap-md); }


/* -------------------------------------------------------------------------
   18. Responsive: tablet (max-width 768px)
   ------------------------------------------------------------------------- */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }

    #websiteContainer {
        padding: 8px 8px 0;
    }

    /* Header collapses, mobile toggle visible */
    #mainHeader {
        padding: 12px 14px;
    }

    .header-title { font-size: 16px; }
    .header-motto { display: none; }

    .toggle-buttons-divs {
        display: flex;
    }

    /* Sidebar slides in on demand */
    #navAndContentContainer {
        position: relative;
    }

    #navigationMenu {
        position: absolute;
        top: 0;
        left: 0;
        bottom: 0;
        z-index: 20;
        width: min(280px, 88%);
        max-height: none;
        height: 100%;
        transform: translateX(-105%);
        transition: transform var(--t-base);
        background: rgba(15, 17, 20, 0.97);
        border-right: 1px solid var(--border-strong);
        box-shadow: 4px 0 16px rgba(0, 0, 0, 0.5);
    }

    body.nav-open #navigationMenu {
        transform: translateX(0);
    }

    /* Backdrop */
    body.nav-open::after {
        content: "";
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 15;
        pointer-events: none;
    }

    #mainContent {
        padding: 14px 14px 24px;
        max-height: none;
    }

    /* Card grids collapse */
    .ph-grid.cols-3,
    .ph-grid.cols-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    /* Footer collapses */
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}


/* -------------------------------------------------------------------------
   19. Responsive: mobile (max-width 480px)
   ------------------------------------------------------------------------- */
@media (max-width: 480px) {
    h1 { font-size: 15px; }
    h2 { font-size: 14px; }
    h3 { font-size: 13px; }

    .announcement-bar { font-size: 12px; padding: 6px 10px; }

    #logo { font-size: 18px; }

    .header-text {
        max-width: 60vw;
    }

    .ph-grid.cols-3,
    .ph-grid.cols-4,
    .ph-grid.cols-2 {
        grid-template-columns: 1fr;
    }

    .pre-footer-cta {
        padding: 26px 16px;
    }

    .pre-footer-cta h2 {
        font-size: 20px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}


/* -------------------------------------------------------------------------
   20. Hero (homepage + detail pages)
   ------------------------------------------------------------------------- */
.hero {
    background:
        radial-gradient(ellipse at 30% 0%, rgba(200, 240, 0, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 100%, rgba(34, 197, 94, 0.10) 0%, transparent 60%),
        linear-gradient(180deg, rgba(28, 31, 36, 0.85) 0%, rgba(20, 22, 26, 0.95) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 36px 28px;
    text-align: center;
    margin: 12px 0;
    position: relative;
    overflow: hidden;
}

.hero h1 {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
    color: var(--text-primary);
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin: 12px 0 10px;
    line-height: 1.15;
}

.hero .subtitle {
    color: var(--text-muted);
    font-size: 16px;
    max-width: 620px;
    margin: 0 auto 18px;
    line-height: 1.5;
}

.hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 18px;
}

.hero-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.tab-pill {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-muted);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-pill);
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--t-fast);
}

.tab-pill:hover {
    color: var(--text-primary);
    border-color: var(--text-muted);
}

.tab-pill.active {
    background: var(--accent-soft);
    color: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent) inset;
}

.scroll-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--accent);
    color: var(--accent);
    margin-top: 22px;
    animation: bounce 2.2s ease-in-out infinite;
    background: rgba(200, 240, 0, 0.06);
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}


/* -------------------------------------------------------------------------
   21. Section spacing + section heading style
   ------------------------------------------------------------------------- */
.page-section {
    margin: 24px 0;
}

.section-heading {
    text-align: center;
    margin-bottom: 14px;
}

.section-heading .section-title {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
    color: var(--accent);
    font-size: 22px;
    font-weight: 800;
    margin: 0 0 6px;
    letter-spacing: -0.2px;
}

.section-heading .section-sub {
    color: var(--text-muted);
    font-size: 14px;
    max-width: 540px;
    margin: 0 auto;
}


/* -------------------------------------------------------------------------
   22. Feature cards (why-us style, 2x3 grid)
   ------------------------------------------------------------------------- */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.feature-card {
    background: rgba(38, 41, 46, 0.7);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 18px;
    transition: border-color var(--t-base), background var(--t-base),
                transform var(--t-base);
}

.feature-card:hover {
    border-color: var(--accent);
    background: rgba(38, 41, 46, 0.9);
    transform: translateY(-2px);
}

.feature-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background:
        linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
    color: var(--btn-primary-text);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 16px;
    margin-bottom: 10px;
}

.feature-card h3 {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 6px;
    text-align: left;
    justify-content: flex-start;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 13px;
    margin: 0;
    line-height: 1.5;
}


/* -------------------------------------------------------------------------
   23. Server cards
   ------------------------------------------------------------------------- */
.server-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.server-card {
    position: relative;
    border-radius: var(--radius-card);
    border: 1px solid var(--border);
    overflow: hidden;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 22px;
    text-decoration: none;
    color: var(--text-primary);
    transition: border-color var(--t-base), transform var(--t-base);
}

.server-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.server-card.theme-chill {
    background:
        linear-gradient(180deg,
            rgba(28, 31, 36, 0.55) 0%,
            rgba(20, 22, 26, 0.95) 100%),
        linear-gradient(135deg, #2d4a2d 0%, #4a8a4a 60%, #2d4a2d 100%);
}

.server-card.theme-raid {
    background:
        linear-gradient(180deg,
            rgba(28, 31, 36, 0.55) 0%,
            rgba(20, 22, 26, 0.95) 100%),
        linear-gradient(135deg, #5e2d2d 0%, #a0552d 60%, #2d2d2d 100%);
}

.server-card.theme-rust {
    background:
        linear-gradient(180deg,
            rgba(28, 31, 36, 0.6) 0%,
            rgba(20, 22, 26, 0.95) 100%),
        linear-gradient(135deg, #4a2d2d 0%, #6b3825 60%, #2d2422 100%);
}

.server-card.theme-gmod {
    background:
        linear-gradient(180deg,
            rgba(28, 31, 36, 0.6) 0%,
            rgba(20, 22, 26, 0.95) 100%),
        linear-gradient(135deg, #2d3a4a 0%, #4a5a6b 60%, #232a35 100%);
}

.server-card.is-soon {
    opacity: 0.7;
    pointer-events: none;
}

.server-card .server-eyebrow {
    color: var(--accent);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.server-card h3 {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
    color: var(--text-primary);
    font-size: 22px;
    font-weight: 800;
    text-align: left;
    justify-content: flex-start;
    margin: 0 0 6px;
}

.server-card p {
    color: #d4d4d4;
    font-size: 13px;
    margin: 0 0 12px;
}

.server-card .server-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    font-size: 12px;
    color: var(--text-muted);
}

.server-card .server-cta {
    color: var(--accent);
    font-size: 13px;
    font-weight: 700;
    margin-top: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}


/* -------------------------------------------------------------------------
   24. Status dots
   ------------------------------------------------------------------------- */
.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 4px;
    vertical-align: middle;
    background: var(--text-dim);
}

.status-dot.is-online   { background: var(--success); box-shadow: 0 0 6px var(--success); }
.status-dot.is-offline  { background: var(--danger); }
.status-dot.is-loading  { background: var(--text-dim); animation: pulse 1.4s ease-in-out infinite; }

@keyframes pulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}


/* -------------------------------------------------------------------------
   25. IP display + copy button
   ------------------------------------------------------------------------- */
.ip-display {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(15, 17, 20, 0.85);
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    padding: 8px 12px;
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--accent);
}

.copy-btn {
    background: var(--bg-surface-2);
    border: 1px solid var(--border-strong);
    color: var(--text-primary);
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--t-fast), border-color var(--t-fast);
}

.copy-btn:hover {
    background: var(--accent);
    color: var(--btn-primary-text);
    border-color: var(--accent);
}

.copy-btn.copied {
    background: var(--success);
    color: #000;
    border-color: var(--success);
}


/* -------------------------------------------------------------------------
   26. Server info card (detail page)
   ------------------------------------------------------------------------- */
.server-info {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 14px;
}

.info-cell {
    background: rgba(28, 31, 36, 0.78);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 14px;
}

.info-cell .label {
    color: var(--text-muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.info-cell .value {
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 700;
}

.info-cell .value.is-mono {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--accent);
}


/* -------------------------------------------------------------------------
   27. Step list (how-to-join)
   ------------------------------------------------------------------------- */
.step-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    counter-reset: step;
    margin: 14px 0;
}

.step {
    background: rgba(38, 41, 46, 0.6);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 18px;
    position: relative;
    counter-increment: step;
}

.step::before {
    content: counter(step);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--btn-primary-text);
    font-weight: 800;
    font-size: 14px;
    margin-bottom: 10px;
}

.step h4 {
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 6px;
}

.step p {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
}


/* -------------------------------------------------------------------------
   28. FAQ accordion
   ------------------------------------------------------------------------- */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 14px;
}

.faq-item {
    background: rgba(28, 31, 36, 0.6);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    overflow: hidden;
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: transparent;
    color: var(--text-primary);
    padding: 14px 16px;
    font-size: 14px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: background var(--t-fast);
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.03);
}

.faq-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-left: 12px;
    position: relative;
    color: var(--accent);
    transition: transform var(--t-base);
}

.faq-icon::before,
.faq-icon::after {
    content: "";
    position: absolute;
    background: currentColor;
    border-radius: 1px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.faq-icon::before { width: 12px; height: 2px; }
.faq-icon::after  { width: 2px; height: 12px; transition: transform var(--t-base); }

.faq-item.is-open .faq-icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
    opacity: 0;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--t-base) ease;
}

.faq-answer-inner {
    padding: 0 16px 14px;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.6;
}

.faq-item.is-open .faq-answer {
    max-height: 600px;
}


/* -------------------------------------------------------------------------
   29. Long-form prose (legal pages, about, FAQ)
   ------------------------------------------------------------------------- */
.prose {
    color: #d4d4d4;
    font-size: 14px;
    line-height: 1.7;
    max-width: 760px;
    margin: 0 auto;
}

.prose h2,
.prose h3 {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
    color: var(--accent);
    text-align: left;
    justify-content: flex-start;
    margin: 22px 0 8px;
}

.prose h2 { font-size: 18px; }
.prose h3 { font-size: 15px; color: var(--text-primary); }

.prose p {
    margin: 0 0 12px;
    color: #d4d4d4;
    font-size: 14px;
}

.prose ul {
    margin: 0 0 14px;
    padding-left: 18px;
    list-style: disc;
}

.prose ul li {
    margin-bottom: 6px;
    color: #d4d4d4;
}

.prose strong { color: var(--text-primary); }


/* -------------------------------------------------------------------------
   30. Gallery grid (placeholder solid-color tiles)
   ------------------------------------------------------------------------- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.gallery-tile {
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-card);
    border: 1px solid var(--border);
    background: linear-gradient(135deg, var(--bg-surface) 0%, var(--bg-alt) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dim);
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.gallery-tile.t-1 { background: linear-gradient(135deg, #2d4a2d, #1c1f24); }
.gallery-tile.t-2 { background: linear-gradient(135deg, #4a8a4a, #2d4a2d); }
.gallery-tile.t-3 { background: linear-gradient(135deg, #5e2d2d, #1c1f24); }
.gallery-tile.t-4 { background: linear-gradient(135deg, #2d3a4a, #1c1f24); }
.gallery-tile.t-5 { background: linear-gradient(135deg, #4a8a4a, #1c1f24); }
.gallery-tile.t-6 { background: linear-gradient(135deg, #6b3825, #1c1f24); }


/* -------------------------------------------------------------------------
   31. Vote / socials / support card grids
   ------------------------------------------------------------------------- */
.option-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 14px;
}

.option-card {
    background: rgba(28, 31, 36, 0.78);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 22px 18px;
    text-align: center;
    color: var(--text-primary);
    text-decoration: none;
    transition: border-color var(--t-base), transform var(--t-base);
    display: block;
}

.option-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    color: var(--text-primary);
}

.option-card .option-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    margin: 0 auto 12px;
    background:
        linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
    color: var(--btn-primary-text);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 18px;
}

.option-card h3 {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
    color: var(--text-primary);
    font-size: 15px;
    margin: 0 0 6px;
}

.option-card p {
    color: var(--text-muted);
    font-size: 12px;
    margin: 0;
}


/* -------------------------------------------------------------------------
   32. Changelog / list views
   ------------------------------------------------------------------------- */
.changelog-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 14px;
}

.changelog-entry {
    background: rgba(28, 31, 36, 0.7);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 16px 18px;
}

.changelog-entry .entry-meta {
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 4px;
    letter-spacing: 0.4px;
}

.changelog-entry h3 {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
    color: var(--text-primary);
    text-align: left;
    justify-content: flex-start;
    font-size: 15px;
    margin: 0 0 6px;
}

.changelog-entry p {
    color: var(--text-muted);
    font-size: 13px;
    margin: 0;
}


/* -------------------------------------------------------------------------
   33. Coming Soon stub
   ------------------------------------------------------------------------- */
.soon-stub {
    text-align: center;
    padding: 40px 20px;
}

.soon-stub .soon-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background:
        linear-gradient(135deg, rgba(200, 240, 0, 0.25) 0%, rgba(34, 197, 94, 0.18) 100%);
    border: 1px solid var(--accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-weight: 800;
    font-size: 20px;
    margin-bottom: 16px;
}

.soon-stub h2 {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
    color: var(--text-primary);
    font-size: 26px;
    margin: 0 0 10px;
}

.soon-stub p {
    color: var(--text-muted);
    max-width: 500px;
    margin: 0 auto 16px;
}


/* -------------------------------------------------------------------------
   34. Embed wrappers (Discord, etc.)
   ------------------------------------------------------------------------- */
.embed-wrap {
    background: rgba(28, 31, 36, 0.78);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 16px;
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
}


/* -------------------------------------------------------------------------
   35. Two-column callout (raid mechanics on 2high2try)
   ------------------------------------------------------------------------- */
.callout-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 14px;
}

.callout {
    background: rgba(28, 31, 36, 0.78);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 18px;
}

.callout h4 {
    color: var(--accent);
    font-size: 13px;
    margin: 0 0 6px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.callout p,
.callout li {
    color: #d4d4d4;
    font-size: 13px;
    line-height: 1.6;
    margin: 0 0 6px;
}

.callout ul {
    list-style: disc;
    padding-left: 18px;
    margin: 6px 0 0;
}

.callout code {
    background: rgba(15, 17, 20, 0.85);
    border: 1px solid var(--border-strong);
    border-radius: 4px;
    padding: 1px 6px;
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 12px;
}


/* -------------------------------------------------------------------------
   36. Sitemap page list
   ------------------------------------------------------------------------- */
.sitemap-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 14px;
}

.sitemap-col h3 {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
    color: var(--accent);
    text-align: left;
    justify-content: flex-start;
    font-size: 14px;
    margin: 0 0 8px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.sitemap-col ul {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sitemap-col a {
    color: #d4d4d4;
    font-size: 13px;
    text-decoration: none;
}

.sitemap-col a:hover {
    color: var(--accent);
}


/* -------------------------------------------------------------------------
   37. Toast (copy feedback)
   ------------------------------------------------------------------------- */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--accent);
    color: var(--btn-primary-text);
    padding: 10px 18px;
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--t-base), transform var(--t-base);
    z-index: 100;
}

.toast.is-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}


/* -------------------------------------------------------------------------
   37b. Scroll reveal
   ------------------------------------------------------------------------- */
.reveal-init {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal-init.is-revealed {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .reveal-init,
    .reveal-init.is-revealed,
    .scroll-arrow {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
        transition: none !important;
    }
}


/* -------------------------------------------------------------------------
   38. Responsive overrides for new components
   ------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .hero { padding: 28px 18px; }
    .hero h1 { font-size: 24px; }
    .hero .subtitle { font-size: 14px; }

    .feature-grid,
    .step-list,
    .option-grid,
    .gallery-grid,
    .sitemap-grid,
    .server-info {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .server-grid,
    .callout-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 20px; }
    .hero .subtitle { font-size: 13px; }

    .feature-grid,
    .step-list,
    .option-grid,
    .gallery-grid,
    .sitemap-grid,
    .server-info {
        grid-template-columns: 1fr;
    }
}





/* =========================================================================
   MOBILE OVERRIDES (appended after dedupe)
   Tightens the windowed shell on small screens, drops the chrome,
   single-column stacks, full-width CTAs, larger tap targets.
   ========================================================================= */

@media (max-width: 768px) {
    body {
        background: var(--bg-primary);
        font-size: 14px;
    }

    /* Container goes edge-to-edge, ditch the windowed look */
    #websiteContainer {
        padding: 0;
        max-width: 100%;
    }

    .website-spacers { display: none; }

    /* Header: drop the title + motto, just logo + actions */
    #mainHeader {
        border-radius: 0;
        border-left: 0;
        border-right: 0;
        border-top: 0;
        padding: 10px 12px;
        flex-wrap: nowrap;
        gap: 8px;
    }

    .header-text {
        display: none;
    }

    #logo {
        font-size: 18px;
    }

    .header-actions {
        gap: 6px;
        flex-shrink: 0;
    }

    .header-actions .btn,
    .header-actions .btn-sm {
        padding: 8px 12px;
        font-size: 12px;
    }

    .toggle-buttons-divs { display: flex; }

    /* Window container shell loses its rounded look on mobile */
    #navAndContentContainer {
        border-radius: 0;
        border-left: 0;
        border-right: 0;
        border-bottom: 0;
        box-shadow: none;
    }

    #mainContent {
        padding: 14px 12px 24px;
        max-height: none;
    }

    /* Sidebar slide-in keeps existing behavior, but ensure backdrop covers */
    #navigationMenu {
        position: absolute;
        top: 0;
        left: 0;
        bottom: 0;
        z-index: 20;
        width: min(300px, 88%);
        max-height: none;
        height: 100%;
        transform: translateX(-105%);
        transition: transform var(--t-base);
        background: rgba(15, 17, 20, 0.97);
        border-right: 1px solid var(--border-strong);
        box-shadow: 4px 0 16px rgba(0, 0, 0, 0.5);
    }

    body.nav-open #navigationMenu {
        transform: translateX(0);
    }

    body.nav-open::after {
        content: "";
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 15;
        pointer-events: none;
    }

    /* Larger tap targets in the sidebar */
    .nav-active,
    .nav-inactive {
        padding: 9px 10px;
        font-size: 14px;
    }

    .nav-icons {
        width: 18px;
        height: 18px;
    }

    .navbar-titles {
        padding: 6px 8px;
        font-size: 12px;
    }

    /* Hero */
    .hero {
        padding: 24px 16px;
    }

    .hero h1 {
        font-size: 22px;
        margin: 8px 0;
        line-height: 1.2;
    }

    .hero .subtitle {
        font-size: 14px;
        margin-bottom: 14px;
    }

    .trust-badges {
        gap: 6px;
        margin-top: 10px;
    }

    .trust-badge {
        padding: 4px 10px;
        font-size: 11px;
    }

    .hero-tabs {
        margin-top: 18px;
        gap: 6px;
    }

    .tab-pill {
        padding: 7px 14px;
        font-size: 12px;
    }

    /* Buttons: stack and go full-width in CTA rows */
    .hero-actions,
    .cta-row {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .hero-actions .btn,
    .cta-row .btn {
        width: 100%;
    }

    .btn {
        padding: 11px 18px;
        font-size: 14px;
    }

    /* Section heading sizes down */
    .section-heading .section-title {
        font-size: 18px;
    }

    .section-heading .section-sub {
        font-size: 13px;
    }

    /* Grids collapse */
    .feature-grid,
    .step-list,
    .option-grid,
    .gallery-grid,
    .sitemap-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .server-grid {
        grid-template-columns: 1fr;
    }

    .server-info {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .callout-grid {
        grid-template-columns: 1fr;
    }

    /* Server card scale */
    .server-card {
        min-height: 170px;
        padding: 18px;
    }

    .server-card h3 {
        font-size: 18px;
    }

    /* Feature card padding */
    .feature-card {
        padding: 14px;
    }

    /* FAQ readability */
    .faq-question {
        padding: 12px 14px;
        font-size: 13px;
    }

    .faq-answer-inner {
        padding: 0 14px 12px;
        font-size: 13px;
    }

    /* Pre-footer CTA */
    .pre-footer-cta {
        padding: 24px 16px;
        border-radius: 12px;
    }

    .pre-footer-cta h2 {
        font-size: 20px;
    }

    /* Footer */
    .site-footer {
        padding: 22px 14px 14px;
        border-radius: 12px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 18px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    /* Section title bars (h1 h2 h3 baseline) shrink */
    h1 { font-size: 14px; }
    h2 { font-size: 13px; }
    h3 { font-size: 12px; }

    /* Banner placeholder taller on mobile feels less squashed */
    .section-banners .banner-placeholder {
        min-height: 70px;
        font-size: 10px;
    }

    /* Announcement bar wraps cleanly */
    .announcement-bar {
        font-size: 12px;
        padding: 7px 10px;
        line-height: 1.4;
    }

    /* Coming Soon stub */
    .soon-stub {
        padding: 30px 16px;
    }

    .soon-stub h2 {
        font-size: 22px;
    }
}


@media (max-width: 480px) {
    .hero {
        padding: 20px 14px;
    }

    .hero h1 {
        font-size: 19px;
    }

    .hero .subtitle {
        font-size: 13px;
    }

    .section-heading .section-title {
        font-size: 16px;
    }

    /* Single-column everything */
    .feature-grid,
    .server-grid,
    .step-list,
    .option-grid,
    .gallery-grid,
    .sitemap-grid,
    .server-info,
    .callout-grid {
        grid-template-columns: 1fr;
    }

    /* Trust badges stack */
    .trust-badges {
        flex-direction: column;
        align-items: stretch;
    }

    .trust-badge {
        justify-content: center;
    }

    /* Hero tabs go full width too */
    .hero-tabs {
        flex-direction: column;
    }

    .tab-pill {
        width: 100%;
    }

    /* Tighter mainContent padding */
    #mainContent {
        padding: 12px 10px 20px;
    }

    /* Sidebar full width when open */
    body.nav-open #navigationMenu {
        width: 100%;
    }

    /* Footer single column */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* Server card */
    .server-card {
        min-height: 150px;
        padding: 16px;
    }

    .server-card h3 {
        font-size: 17px;
    }

    /* Feature icon doesn't need to be huge */
    .feature-icon {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    /* Logo a notch smaller */
    #logo {
        font-size: 16px;
    }

    .header-actions .btn,
    .header-actions .btn-sm {
        padding: 7px 10px;
        font-size: 11px;
    }
}


/* =========================================================================
   HEADER REWORK + HAMBURGER (appended last, wins on cascade)
   ========================================================================= */

/* Hamburger button base style. Hidden on desktop, visible on mobile. */
#navbarToggleButton {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    cursor: pointer;
    flex-shrink: 0;
    padding: 0;
    transition: background var(--t-fast), border-color var(--t-fast);
}

#navbarToggleButton:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent);
}

#navbarToggleButton .bar {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--text-primary);
    margin: 2px auto;
    border-radius: 2px;
    transition: transform var(--t-base), opacity var(--t-base);
}

/* Animate to X when nav is open */
body.nav-open #navbarToggleButton .bar:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}
body.nav-open #navbarToggleButton .bar:nth-child(2) {
    opacity: 0;
}
body.nav-open #navbarToggleButton .bar:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}


/* Mobile (<= 768px): show hamburger, reorder header */
@media (max-width: 768px) {

    #navbarToggleButton {
        display: flex;
        flex-direction: column;
    }

    #mainHeader {
        gap: 10px;
        padding: 10px 12px;
        align-items: center;
        justify-content: space-between;
    }

    /* Order: hamburger left, logo center, actions right */
    #navbarToggleButton {
        order: 1;
    }

    .header-logo-text {
        order: 2;
        flex: 1 1 auto;
        justify-content: center;
        text-align: center;
        min-width: 0;
        gap: 0;
    }

    .header-logo-text a {
        justify-content: center;
        gap: 0;
    }

    /* Hide the secondary text on mobile, just show the wordmark */
    .header-text {
        display: none;
    }

    .header-actions {
        order: 3;
        flex-shrink: 0;
    }

    /* Discord button compact on mobile */
    .header-actions .btn {
        padding: 8px 12px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    #mainHeader {
        gap: 6px;
        padding: 9px 10px;
    }

    #navbarToggleButton {
        width: 38px;
        height: 38px;
    }

    #logo {
        font-size: 16px;
    }

    .header-actions .btn {
        padding: 7px 10px;
        font-size: 11px;
    }
}


/* Make sure the sidebar slide-in works on mobile */
@media (max-width: 768px) {

    #navAndContentContainer {
        position: relative;
        overflow: visible;
    }

    #navigationMenu {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        width: min(320px, 80%);
        height: 100vh;
        max-height: none;
        z-index: 30;
        transform: translateX(-105%);
        transition: transform var(--t-base);
        background: rgba(15, 17, 20, 0.97);
        border-right: 1px solid var(--border-strong);
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.6);
        padding-top: 20px;
        overflow-y: auto;
    }

    body.nav-open #navigationMenu {
        transform: translateX(0);
    }

    body.nav-open::before {
        content: "";
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 25;
    }

    /* Lock body scroll when nav is open */
    body.nav-open {
        overflow: hidden;
    }
}


/* =========================================================================
   HEADER FINAL OVERRIDES
   Authoritative header rules. Wins all earlier mobile rules in cascade.
   Goal: predictable layout at every width from 320px up, no overflow,
   no duplicate brand text, hamburger only on mobile.
   ========================================================================= */

/* #logo is the wordmark, .header-motto is the tagline. .header-title was
   a third copy of the brand name in a different case — redundant. Hide it
   everywhere so we never see "2HIGH2PLAY  2high2play" side by side. */
.header-title {
    display: none;
}

/* Hamburger: hidden on desktop, shown on mobile. Uses block layout (not
   flex) so the three bars always stack vertically — flex-direction has
   bitten this header twice already. !important on display so no earlier
   rule can resurrect it on desktop or flatten it on mobile. */
#navbarToggleButton {
    display: none !important;
    width: 40px;
    height: 40px;
    padding: 9px 11px;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    cursor: pointer;
    flex-shrink: 0;
    transition: background var(--t-fast), border-color var(--t-fast);
    position: relative;
}

#navbarToggleButton:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent);
}

#navbarToggleButton .bar {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    margin: 0 0 4px 0;
    border-radius: 2px;
    transition: transform var(--t-base), opacity var(--t-base);
}

#navbarToggleButton .bar:last-child {
    margin-bottom: 0;
}

body.nav-open #navbarToggleButton .bar:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}
body.nav-open #navbarToggleButton .bar:nth-child(2) {
    opacity: 0;
}
body.nav-open #navbarToggleButton .bar:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* Discord button must never overflow its column, regardless of width */
.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex-shrink: 0;
}

.header-actions .btn {
    white-space: nowrap;
    flex-shrink: 0;
}

/* Mobile + tablet portrait (≤ 900): switch header to a stable 3-column grid
   so brand stays centered, hamburger is pinned left, actions pinned right.
   Sidebar becomes off-canvas and slides in. */
@media (max-width: 900px) {

    #navbarToggleButton {
        display: block !important;
    }

    /* Hide tagline on mobile, just keep the wordmark */
    .header-motto {
        display: none;
    }

    /* Grid uses 1fr on BOTH sides so the brand column is centered to the
       viewport, not just to the leftover space. Side columns absorb their
       own width difference. */
    #mainHeader {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        grid-template-areas: "toggle brand actions";
        align-items: center;
        gap: 8px;
        padding: 10px 14px;
        border-radius: 0;
        border-left: 0;
        border-right: 0;
        border-top: 0;
    }

    #navbarToggleButton {
        grid-area: toggle;
        justify-self: start;
    }

    .header-logo-text {
        grid-area: brand;
        justify-self: center;
        min-width: 0;
        max-width: 100%;
        gap: 0;
        overflow: hidden;
        text-align: center;
    }

    .header-logo-text a {
        justify-content: center;
        gap: 0;
        max-width: 100%;
    }

    #logo {
        font-size: 18px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .header-actions {
        grid-area: actions;
        justify-self: end;
        gap: 6px;
    }

    .header-actions .btn,
    .header-actions .btn-sm {
        padding: 8px 12px;
        font-size: 12px;
    }

    /* Sidebar becomes off-canvas drawer */
    #navAndContentContainer {
        position: relative;
        overflow: visible;
    }

    #navigationMenu {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        width: min(320px, 85%);
        height: 100vh;
        max-height: none;
        z-index: 30;
        transform: translateX(-105%);
        transition: transform var(--t-base);
        background: rgba(15, 17, 20, 0.97);
        border-right: 1px solid var(--border-strong);
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.6);
        padding-top: 20px;
        overflow-y: auto;
    }

    body.nav-open #navigationMenu {
        transform: translateX(0);
    }

    body.nav-open::before {
        content: "";
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 25;
    }

    body.nav-open {
        overflow: hidden;
    }
}

/* Phone (≤ 640): tighter padding, smaller logo + button */
@media (max-width: 640px) {
    #mainHeader {
        padding: 9px 12px;
        gap: 8px;
    }

    #logo {
        font-size: 16px;
    }

    .header-actions .btn,
    .header-actions .btn-sm {
        padding: 7px 11px;
        font-size: 11px;
    }
}

/* Small phone (≤ 420) */
@media (max-width: 420px) {
    #mainHeader {
        padding: 8px 10px;
        gap: 6px;
    }

    #logo {
        font-size: 15px;
    }

    #navbarToggleButton {
        width: 36px;
        height: 36px;
    }

    .header-actions .btn,
    .header-actions .btn-sm {
        padding: 6px 9px;
        font-size: 11px;
        letter-spacing: 0;
    }
}

/* Very small phone (≤ 360): squeeze further so nothing clips */
@media (max-width: 360px) {
    #mainHeader {
        padding: 7px 8px;
        gap: 5px;
    }

    #logo {
        font-size: 14px;
    }

    #navbarToggleButton {
        width: 34px;
        height: 34px;
    }

    .header-actions .btn,
    .header-actions .btn-sm {
        padding: 6px 8px;
        font-size: 10px;
    }
}
