/* public/css/landing.css
   ============================================================================
   Modern, vertically-scrollable marketing LANDING PAGE for the pre-sign-in
   surface of asteroiddominion.com. Built for the Google AdSense "Low value
   content" re-approval: a content-rich, fully-crawlable page that the bot and
   the player both see from the first byte (no content-hiding splash), with the
   live game booting behind it and a Play Now -> Google sign-in -> game flow.

   COMPARTMENTALIZATION (deliberate): EVERY rule here is scoped under
   #landing-page so nothing can leak into the in-game UI (which lives in the
   2340x1080 .game-container space styled by overlay.css / index.css). The
   landing page is a self-contained component. It reuses the EXACT brand color
   literals from content-pages.css (rgba(0,230,255,...) cyan, rgba(0,255,153,...)
   green, the gold play-now gradient, the faction colors) so it matches the rest
   of the site without sharing a stylesheet.

   Visibility is pure CSS, driven by body classes already in the bootstrap:
     - body.pre-signin            -> landing shown (covers loading + sign-in)
     - body:not(.pre-signin)      -> landing hidden (player is in-game)
     - body.loading               -> Play CTA shows "Preparing galaxy..." state
   See index.html inline <style> + frontendLoadingScreen.js (reveal()).
   ============================================================================ */

/* ---- Root container: full-viewport, vertically scrollable ---------------- */
#landing-page {
    display: none;                 /* shown only via body.pre-signin rule below */
    position: fixed;
    inset: 0;
    z-index: 7000;                 /* above the game canvas + the old sign-in
                                      chrome (.username-form-container z6000, its
                                      screens z6002) which we leave in the DOM but
                                      cover; below the mobile-fs gate (8000) +
                                      version/reconnect overlays, which only fire
                                      post-sign-in when the landing is hidden */
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    /* v1224 (2c): elevated deep-space backdrop -- nebula color depth over a vignette,
       matching the new in-game world. Stars + parallax drift live on ::before/::after.
       The #landing-page is a fixed-size scroll container, so this background does not
       scroll with the content (content scrolls over it). */
    background:
        radial-gradient(55% 45% at 22% 30%, rgba(40, 84, 168, 0.16), transparent 70%),
        radial-gradient(48% 42% at 78% 22%, rgba(96, 44, 150, 0.14), transparent 70%),
        radial-gradient(52% 46% at 62% 80%, rgba(20, 116, 126, 0.13), transparent 70%),
        radial-gradient(44% 40% at 32% 78%, rgba(60, 40, 150, 0.10), transparent 70%),
        radial-gradient(ellipse 130% 120% at 50% 38%, #00060f 0%, #000208 55%, #000 100%);
    color: #e0f0ff;
    font-family: 'Oxanium', system-ui, sans-serif;
    font-size: 15px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* allow vertical scroll/pan on touch (the game disables this globally) */
    touch-action: pan-y;
}

body.pre-signin #landing-page { display: block; }
body:not(.pre-signin) #landing-page { display: none !important; }

/* The landing page IS the new pre-sign-in surface, so the old full-screen
   loading splash is retired: it would otherwise paint over the landing during
   body.loading (z7500) and hide the content from the AdSense screenshot crawler
   (the exact "low value content" trigger we are fixing). The #loading-overlay
   element stays in the DOM (frontendLoadingScreen.js reveal()/dots reference it,
   null-guarded) but never displays. The landing's own "Preparing the galaxy..."
   note covers the brief data-gate window instead. */
#loading-overlay { display: none !important; }

/* The old sign-in "Click Anywhere" music-start hints sit at z7501 (above the
   landing) and belong to the retired sign-in screen — hide them while the
   landing is up. Music still auto-starts on the first user gesture via the
   document-level listener, so nothing is lost. */
body.pre-signin .click-anywhere-hint { display: none !important; }

/* Starfield backdrop (scoped to the landing, not body::before, so it never paints
   over the game). v1224 (2c): TWO parallax star layers -- ::before far/slow,
   ::after near/fast -- tiled so the background-position drift loops seamlessly. The
   nebula + vignette are on #landing-page's own background above. */
#landing-page::before,
#landing-page::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}
#landing-page::before {
    background-image:
        radial-gradient(1px 1px at 12% 18%, rgba(201,224,255,0.7), transparent),
        radial-gradient(1px 1px at 28% 64%, rgba(255,255,255,0.6), transparent),
        radial-gradient(1px 1px at 47% 12%, rgba(255,255,255,0.7), transparent),
        radial-gradient(1px 1px at 63% 42%, rgba(201,224,255,0.6), transparent),
        radial-gradient(1px 1px at 82% 73%, rgba(255,255,255,0.6), transparent),
        radial-gradient(1px 1px at 8% 84%,  rgba(201,224,255,0.5), transparent),
        radial-gradient(1px 1px at 91% 28%, rgba(255,255,255,0.5), transparent),
        radial-gradient(1px 1px at 38% 88%, rgba(255,255,255,0.55), transparent),
        radial-gradient(1px 1px at 55% 58%, rgba(201,224,255,0.45), transparent),
        radial-gradient(1px 1px at 73% 6%,  rgba(255,255,255,0.5), transparent),
        radial-gradient(1px 1px at 19% 47%, rgba(255,255,255,0.4), transparent),
        radial-gradient(1px 1px at 88% 92%, rgba(201,224,255,0.5), transparent);
    background-size: 240px 240px;
    animation: lp-drift-far 90s linear infinite;
}
#landing-page::after {
    background-image:
        radial-gradient(1.6px 1.6px at 22% 34%, rgba(255,255,255,0.95), transparent),
        radial-gradient(1.6px 1.6px at 68% 18%, rgba(201,224,255,0.9), transparent),
        radial-gradient(1.6px 1.6px at 84% 62%, rgba(255,255,255,0.9), transparent),
        radial-gradient(2px 2px   at 40% 76%, rgba(255,236,210,0.85), transparent),
        radial-gradient(1.6px 1.6px at 14% 58%, rgba(255,255,255,0.85), transparent),
        radial-gradient(1.6px 1.6px at 56% 44%, rgba(201,224,255,0.8), transparent);
    background-size: 430px 430px;
    animation: lp-drift-near 55s linear infinite;
}
@keyframes lp-drift-far  { to { background-position: -240px -240px; } }
@keyframes lp-drift-near { to { background-position: -430px -430px; } }
@media (prefers-reduced-motion: reduce) {
    #landing-page::before, #landing-page::after { animation: none; }
}
#landing-page > * { position: relative; z-index: 1; }

#landing-page a { color: #60b5ff; text-decoration: none; }
#landing-page a:hover { color: #8fcaff; text-decoration: underline; }

/* ---- Sticky header (mirrors content-pages.css .site-header) --------------- */
#landing-page .lp-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(0, 0, 0, 0.92);
    border-bottom: 1px solid rgba(0, 230, 255, 0.25);
    box-shadow: 0 2px 20px rgba(0, 230, 255, 0.15);
    backdrop-filter: blur(8px);
}
#landing-page .lp-header-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px 20px;
}
/* v1167: brand block = the title with the persistent Play button directly under it. */
#landing-page .lp-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    flex-shrink: 0;
}
#landing-page .lp-play-header { padding: 8px 22px; font-size: 14px; }
#landing-page .lp-logo {
    font-size: 22px;
    font-weight: bold;
    letter-spacing: 4px;
    color: #fff;
    text-shadow: 0 0 14px rgba(0,230,255,0.85), 0 0 28px rgba(0,230,255,0.4);
    white-space: nowrap;
    flex-shrink: 0;
}
#landing-page .lp-nav {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
#landing-page .lp-nav a {
    color: rgba(255,255,255,0.6);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 4px;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    text-decoration: none;
}
#landing-page .lp-nav a:hover {
    color: #fff;
    border-color: rgba(0,230,255,0.3);
    background: rgba(0,230,255,0.08);
    text-decoration: none;
}

/* ---- Gold Play-Now button (mirrors content-pages.css .play-now-btn) ------- */
#landing-page .lp-play-btn {
    display: inline-block;
    padding: 10px 26px;
    background: linear-gradient(135deg, rgba(255,215,0,0.6), rgba(255,140,0,0.6));
    border: 2px solid rgba(255,215,0,0.9);
    border-radius: 100px;
    color: #fff;
    font-family: 'Oxanium', system-ui, sans-serif;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 1px;
    text-decoration: none;
    text-shadow: 0 0 8px rgba(255,215,0,0.8), 0 0 3px rgba(255,255,255,0.5);
    cursor: pointer;
    animation: lp-play-pulse 2s ease-in-out infinite;
    box-shadow: 0 0 12px rgba(255,215,0,0.3);
    flex-shrink: 0;
    white-space: nowrap;
}
#landing-page .lp-play-btn:hover { text-decoration: none; filter: brightness(1.12); }
#landing-page .lp-play-btn.lp-play-lg { padding: 16px 44px; font-size: 18px; letter-spacing: 2px; }
/* v1170: HIDE the Play buttons until the game data is ready (socket + first
   galaxyMap remove body.loading). Showing an enabled-looking-but-inert button was
   confusing -- a player could click it during the ~1-3s connect window and nothing
   happened. The hero's "Preparing the galaxy..." note (.lp-prep-note) covers the
   window; the safety reveal in frontendLoadingScreen.js bounds it to <=5s, then the
   working buttons appear. (Content is always visible -- only the CTA waits.) */
body.loading #landing-page .lp-play-btn {
    display: none;
}
/* Explicit disabled/loading states keep the dimmed look (not currently applied). */
#landing-page .lp-play-btn[disabled],
#landing-page .lp-play-btn.lp-loading {
    cursor: progress;
    animation: none;
    opacity: 0.7;
    filter: grayscale(0.3);
    pointer-events: none;
}
@keyframes lp-play-pulse {
    0%, 100% { transform: scale(1);    box-shadow: 0 0 12px rgba(255,215,0,0.3); }
    50%      { transform: scale(1.04); box-shadow: 0 0 24px rgba(255,215,0,0.6); }
}

/* v1169: clicking a gold Play button GUIDES the user to the real visible Google
   button (frontendLanding.js): the button label becomes "Sign in with Google" and
   the hero Google button flashes this attention glow. (v1168's invisible overlay
   was reverted to keep the AdSense re-review free of any opacity:0 interactive
   element.) The glow uses filter:drop-shadow so it hugs the button shape. */
@keyframes lp-gsi-attn-kf {
    0%, 100% { filter: drop-shadow(0 0 2px rgba(0, 230, 255, 0.25)); }
    50%      { filter: drop-shadow(0 0 16px rgba(0, 230, 255, 0.95)); }
}
#landing-page .lp-gsi-attn { animation: lp-gsi-attn-kf 0.85s ease-in-out 5; }
/* while a Play button is showing the "Sign in with Google" hint, calm its pulse */
#landing-page .lp-play-guiding { animation: none; }

/* ---- Section scaffolding -------------------------------------------------- */
#landing-page .lp-section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 56px 24px;
}
#landing-page .lp-section-tight { padding: 32px 24px; }
#landing-page .lp-section-title {
    font-size: clamp(22px, 4vw, 34px);
    font-weight: bold;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #fff;
    text-align: center;
    text-shadow: 0 0 16px rgba(0,230,255,0.6);
    margin-bottom: 12px;
}
#landing-page .lp-section-sub {
    text-align: center;
    color: rgba(255,255,255,0.6);
    font-style: italic;
    letter-spacing: 1px;
    margin-bottom: 36px;
}
#landing-page .lp-divider {
    border: none;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(0,230,255,0.3), transparent);
    margin: 0 auto;
    max-width: 1100px;
}

/* ---- Hero ----------------------------------------------------------------- */
#landing-page .lp-hero {
    max-width: 1100px;
    margin: 0 auto;
    padding: clamp(40px, 7vw, 80px) 24px clamp(32px, 5vw, 56px);
    text-align: center;
}
#landing-page .lp-hero-title {
    font-size: clamp(34px, 8vw, 68px);
    font-weight: bold;
    letter-spacing: clamp(3px, 1vw, 8px);
    color: #fff;
    text-shadow: 0 0 22px rgba(0,230,255,0.85), 0 0 44px rgba(0,230,255,0.45);
    margin-bottom: 16px;
    line-height: 1.1;
}
#landing-page .lp-hero-tagline {
    font-size: clamp(15px, 2.4vw, 22px);
    color: rgba(255,255,255,0.82);
    max-width: 720px;
    margin: 0 auto 28px;
    line-height: 1.6;
}
#landing-page .lp-hero-tagline strong { color: rgba(0,230,255,0.95); font-weight: bold; }
#landing-page .lp-hero-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}
/* The "Preparing galaxy..." note shown until data is ready */
/* v1173: the loading note "Connecting you to the galaxy" glows like the hero title so
   the brief connect window reads as a bold, intentional loading state rather than a dead
   button. v1177 (Zeke): ~8px smaller than before (clamp 26/60) + the trailing dots now
   ANIMATE (. / . . / . . .) via frontendLanding.js startPrepDots(). Shown only during
   body.loading (the buttons are display:none then). */
#landing-page .lp-prep-note {
    font-size: clamp(18px, 5.5vw, 52px); /* v1188 (Zeke): -8 from before (was 26/7vw/60) */
    text-align: center;
    font-weight: bold;
    line-height: 1.15;
    letter-spacing: clamp(1px, 0.4vw, 4px);
    color: #fff;
    text-shadow: 0 0 22px rgba(0,230,255,0.85), 0 0 44px rgba(0,230,255,0.45);
    margin: 8px auto;
    max-width: 900px;
}
/* v1188: the label on line 1, the animated dots centered on their own line 2. */
#landing-page .lp-prep-note .lp-prep-text { display: block; }
#landing-page .lp-prep-note .lp-prep-dots { display: block; }
body:not(.loading) #landing-page .lp-prep-note { display: none; }

/* v1187 (Zeke): COMPRESS the header + hero on phones so the Google sign-in sits near the
   top / above the fold (the big title + long tagline used to push it below the first
   screen, so players had to scroll to find it). Desktop is unchanged. */
@media (max-width: 700px) {
    #landing-page .lp-header-content { padding: 8px 14px; gap: 6px 12px; }
    #landing-page .lp-logo { font-size: 17px; }
    #landing-page .lp-play-header { padding: 6px 16px; font-size: 13px; }
    #landing-page .lp-nav a { font-size: 11px; padding: 4px 8px; letter-spacing: 0.5px; }
    #landing-page .lp-hero { padding-top: 14px; padding-bottom: 18px; }
    #landing-page .lp-hero-title { font-size: clamp(24px, 7vw, 40px); letter-spacing: 2px; margin-bottom: 8px; }
    #landing-page .lp-hero-tagline { font-size: 13px; line-height: 1.45; margin-bottom: 12px; }
    #landing-page .lp-hero-cta { gap: 10px; margin-bottom: 10px; }
}

#landing-page .lp-hero-microcopy {
    font-size: 13px;
    color: rgba(255,255,255,0.55);
    letter-spacing: 0.5px;
}

/* The Google Sign-In button wrapper, parked in the hero. */
#landing-page .lp-gsi-wrap {
    display: flex;
    justify-content: center;
    min-height: 44px;
}

/* v1199: custom Google-branding-compliant "Sign in with Google" button (replaces the
   removed GSI rendered button). Click -> startGoogleSignIn() -> /auth/google-start OAuth
   redirect. Light theme per Google branding guidelines: white fill, #747775 1px stroke,
   Roboto Medium 14px #1F1F1F, the official multicolor G logo on white. */
#landing-page .g-signin-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 42px;
    padding: 0 16px;
    background: #FFFFFF;
    border: 1px solid #747775;
    border-radius: 100px;
    color: #1F1F1F;
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    letter-spacing: 0.25px;
    cursor: pointer;
    transition: background 0.15s ease, box-shadow 0.15s ease;
}
#landing-page .g-signin-btn:hover { background: #F7F8F8; box-shadow: 0 1px 3px rgba(60,64,67,0.3); }
#landing-page .g-signin-btn:active { background: #EEF0F1; }
#landing-page .g-signin-btn:focus-visible { outline: 2px solid #0b57d0; outline-offset: 2px; }
#landing-page .g-signin-btn .g-signin-icon { display: inline-flex; width: 18px; height: 18px; flex: 0 0 auto; }
#landing-page .g-signin-btn .g-signin-text { white-space: nowrap; }

/* ---- Media frame (hero video / screenshots / placeholders) ---------------- */
#landing-page .lp-media {
    position: relative;
    width: 100%;
    border: 1px solid rgba(0,230,255,0.25);
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(10,30,40,0.85), rgba(3,10,18,0.95));
    box-shadow: 0 0 30px rgba(0,230,255,0.12);
}
#landing-page .lp-media-16x9 { aspect-ratio: 16 / 9; }
#landing-page .lp-media-3x2  { aspect-ratio: 3 / 2; }
#landing-page .lp-media img,
#landing-page .lp-media video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}
/* Screenshots are wider/squarer than the 16:9 frame; CONTAIN shows the whole
   game screen (no cropped sides) — the dark .lp-media background letterboxes it.
   A future 16:9 hero video matches the frame, so it keeps cover. */
#landing-page .lp-media img { object-fit: contain; }
#landing-page .lp-media video { object-fit: cover; }
/* Placeholder shown until a real asset is dropped in */
#landing-page .lp-media-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
    padding: 16px;
    color: rgba(0,230,255,0.55);
    background-image:
        repeating-linear-gradient(135deg, rgba(0,230,255,0.05) 0 12px, transparent 12px 24px);
}
#landing-page .lp-media-placeholder .lp-ph-icon { font-size: 30px; opacity: 0.8; }
#landing-page .lp-media-placeholder .lp-ph-label {
    font-size: 13px; letter-spacing: 1px; text-transform: uppercase; font-weight: bold;
}
#landing-page .lp-media-placeholder .lp-ph-dim { font-size: 11px; color: rgba(255,255,255,0.4); }
#landing-page .lp-hero-media { margin-top: 36px; }

/* ---- Social-proof strip --------------------------------------------------- */
#landing-page .lp-proof {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 8px 24px 8px;
}
#landing-page .lp-proof-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border: 1px solid rgba(0,230,255,0.2);
    border-radius: 100px;
    background: rgba(0,230,255,0.05);
    font-size: 13px;
    letter-spacing: 0.5px;
    color: rgba(255,255,255,0.85);
    white-space: nowrap;
}
#landing-page .lp-proof-item b { color: rgba(0,230,255,0.95); }

/* ---- Card + grid system --------------------------------------------------- */
#landing-page .lp-card {
    background: linear-gradient(to bottom, rgba(10,30,40,0.6), rgba(5,15,25,0.6));
    border: 1px solid rgba(0,230,255,0.2);
    border-radius: 10px;
    padding: 26px 28px;
    box-shadow: 0 0 12px rgba(0,230,255,0.08);
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}
#landing-page .lp-card:hover {
    border-color: rgba(0,230,255,0.4);
    box-shadow: 0 0 22px rgba(0,230,255,0.16);
    transform: translateY(-3px);
}
#landing-page .lp-card-title {
    font-size: 18px;
    font-weight: bold;
    color: rgba(0,230,255,0.92);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(0,230,255,0.4);
}
#landing-page .lp-card p { color: rgba(255,255,255,0.78); margin-bottom: 10px; }
#landing-page .lp-card p:last-child { margin-bottom: 0; }
#landing-page .lp-card .lp-readmore {
    display: inline-block;
    margin-top: 6px;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 1px;
    color: rgba(0,230,255,0.9);
    text-transform: uppercase;
}
#landing-page .lp-card .lp-readmore::after { content: ' \203A'; }

#landing-page .lp-grid {
    display: grid;
    gap: 22px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
#landing-page .lp-grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

/* Feature card icon (v1166: replaced the empty media thumb with a clean glyph so
   the grid reads as finished, not under-construction). */
#landing-page .lp-feature-icon {
    font-size: 34px;
    line-height: 1;
    margin-bottom: 14px;
    filter: drop-shadow(0 0 10px rgba(0, 230, 255, 0.5));
}
/* (kept for when real feature images return: a media thumb above the title) */
#landing-page .lp-feature .lp-media { margin-bottom: 16px; }

/* ---- Steps (how to play) -------------------------------------------------- */
#landing-page .lp-steps { counter-reset: lp-step; display: grid; gap: 14px; }
#landing-page .lp-step {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 16px 18px;
    border: 1px solid rgba(0,230,255,0.15);
    border-radius: 8px;
    background: rgba(0,230,255,0.03);
}
#landing-page .lp-step::before {
    counter-increment: lp-step;
    content: counter(lp-step);
    flex-shrink: 0;
    width: 34px; height: 34px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(0,230,255,0.5);
    color: rgba(0,230,255,0.95);
    font-weight: bold;
    box-shadow: 0 0 10px rgba(0,230,255,0.25);
}
#landing-page .lp-step-body h3 { color: rgba(0,230,255,0.85); font-size: 15px; letter-spacing: 1px; margin-bottom: 4px; }
#landing-page .lp-step-body p { color: rgba(255,255,255,0.72); font-size: 14px; }
#landing-page .key-badge {
    display: inline-block;
    padding: 1px 7px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 3px;
    font-size: 12px;
    color: #fff;
    font-weight: bold;
}

/* ---- Faction cards -------------------------------------------------------- */
#landing-page .lp-faction {
    border-radius: 10px;
    padding: 22px 24px;
    border: 1px solid rgba(255,255,255,0.12);
    background: linear-gradient(to bottom, rgba(10,18,28,0.7), rgba(4,8,14,0.7));
}
#landing-page .lp-faction h3 { font-size: 18px; letter-spacing: 1.5px; margin-bottom: 6px; }
#landing-page .lp-faction .lp-faction-meta { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: rgba(255,255,255,0.5); margin-bottom: 10px; }
#landing-page .lp-faction p { color: rgba(255,255,255,0.78); font-size: 14px; }
#landing-page .lp-faction.f-concordium { border-color: rgba(0,183,255,0.5); }
#landing-page .lp-faction.f-concordium h3 { color: #00B7FF; text-shadow: 0 0 10px rgba(0,183,255,0.5); }
#landing-page .lp-faction.f-unbound { border-color: rgba(230,255,0,0.45); }
#landing-page .lp-faction.f-unbound h3 { color: #E6FF00; text-shadow: 0 0 10px rgba(230,255,0,0.4); }
#landing-page .lp-faction.f-bonecollectors { border-color: rgba(255,68,68,0.5); }
#landing-page .lp-faction.f-bonecollectors h3 { color: #FF4444; text-shadow: 0 0 10px rgba(255,68,68,0.5); }
#landing-page .lp-faction.f-outlaws { border-color: rgba(160,255,208,0.5); }
#landing-page .lp-faction.f-outlaws h3 { color: #A0FFD0; text-shadow: 0 0 10px rgba(160,255,208,0.4); }

/* ---- Gallery -------------------------------------------------------------- */
#landing-page .lp-gallery {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* ---- FAQ (native <details> accordion = AdSense-friendly, no JS) ----------- */
#landing-page .lp-faq { max-width: 820px; margin: 0 auto; }
#landing-page .lp-faq details {
    border: 1px solid rgba(0,230,255,0.18);
    border-radius: 8px;
    background: rgba(0,230,255,0.03);
    margin-bottom: 12px;
    overflow: hidden;
}
#landing-page .lp-faq summary {
    list-style: none;
    cursor: pointer;
    padding: 16px 20px;
    font-weight: bold;
    letter-spacing: 0.5px;
    color: rgba(0,230,255,0.9);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}
#landing-page .lp-faq summary::-webkit-details-marker { display: none; }
#landing-page .lp-faq summary::after { content: '+'; font-size: 20px; color: rgba(0,230,255,0.7); flex-shrink: 0; }
#landing-page .lp-faq details[open] summary::after { content: '\2013'; }
#landing-page .lp-faq .lp-faq-body { padding: 0 20px 18px; color: rgba(255,255,255,0.78); font-size: 14px; }

/* ---- Final CTA band ------------------------------------------------------- */
#landing-page .lp-final {
    text-align: center;
    background: linear-gradient(to bottom, rgba(0,30,40,0.5), rgba(0,12,20,0.5));
    border-top: 1px solid rgba(0,230,255,0.2);
    border-bottom: 1px solid rgba(0,230,255,0.2);
}
#landing-page .lp-final .lp-section-title { text-shadow: 0 0 20px rgba(0,230,255,0.7); }

/* ---- Footer (short, deduped per AdSense note) ----------------------------- */
#landing-page .lp-footer {
    border-top: 1px solid rgba(0,230,255,0.2);
    background: rgba(0,0,0,0.85);
    padding: 26px 24px 40px;
    text-align: center;
}
#landing-page .lp-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 18px;
    margin-bottom: 14px;
}
#landing-page .lp-footer-links a {
    display: inline-block;
    padding: 8px 10px;             /* comfortable mobile tap target (v1166) */
    font-size: 13px;
    letter-spacing: 0.5px;
    color: rgba(255,255,255,0.65);
    text-transform: uppercase;
}
#landing-page .lp-footer-meta { font-size: 13px; color: rgba(255,255,255,0.5); line-height: 1.7; }
#landing-page .lp-footer-meta a { color: rgba(0,230,255,0.8); }

/* ---- Responsive ----------------------------------------------------------- */
@media (max-width: 768px) {
    /* center the brand (title + Play) and let the nav wrap below it */
    #landing-page .lp-header-content { justify-content: center; gap: 10px; }
    #landing-page .lp-brand { align-items: center; }
    #landing-page .lp-nav { order: 3; justify-content: center; width: 100%; }
    #landing-page .lp-section { padding: 40px 18px; }
    #landing-page .lp-footer-links { gap: 6px 12px; }
}

/* ---- "Tap for sound" affordance (pre-sign-in; autoplay needs a gesture) -----
   Unique id, intentionally body-gated (not scoped under #landing-page) so it can
   key off body.pre-signin / body.music-started. It only exists in the landing
   markup and hides the instant music starts, so it never reaches the in-game UI. */
#sound-on-chip {
    position: fixed; top: 14px; right: 14px; z-index: 7600;
    display: none; align-items: center; gap: 6px;
    font-family: 'Oxanium', system-ui, sans-serif; font-size: 13px; letter-spacing: 0.03em;
    color: #dff2ff; background: rgba(8, 20, 38, 0.72);
    border: 1px solid rgba(0, 230, 255, 0.5); border-radius: 9px; padding: 8px 12px;
    cursor: pointer; -webkit-tap-highlight-color: transparent;
    box-shadow: 0 0 12px rgba(0, 230, 255, 0.22); backdrop-filter: blur(2px);
    animation: soundChipPulse 2.4s ease-in-out infinite;
}
#sound-on-chip:hover { background: rgba(18, 40, 68, 0.85); border-color: rgba(0, 230, 255, 0.85); }
/* visible only before sign-in AND before music has started; auto-hides once music plays */
body.pre-signin:not(.music-started) #sound-on-chip { display: inline-flex; }
@keyframes soundChipPulse {
    0%, 100% { box-shadow: 0 0 8px rgba(0, 230, 255, 0.18); }
    50%      { box-shadow: 0 0 16px rgba(0, 230, 255, 0.42); }
}

/* Respect reduced-motion: kill the pulse + any autoplay emphasis */
@media (prefers-reduced-motion: reduce) {
    #landing-page .lp-play-btn { animation: none; }
    #landing-page .lp-card { transition: none; }
    #sound-on-chip { animation: none; }
}
