/* Bridgeroo - neon arcade bridge vs trash-talking bots.
   Token names inherited from the cropsicles base theme; VALUES are the
   bridgeroo palette (green felt + suit cards + gold trim). */

:root {
    --sky: #ff3b6b;            /* hearts/diamonds card red - primary glow */
    --grape: #6c5ce7;
    --grape-deep: #22104e;
    --lime: #2ee6a0;           /* card-table felt green - CTA */
    --lime-deep: #0e8c56;
    --magenta: #6c5ce7;        /* spade indigo - partnership accent */
    --magenta-deep: #3a2a8c;
    --corn: #ffd23f;           /* gilt trim gold - logo + main buttons */
    --corn-deep: #b07a00;
    --tangerine: #ff9f1c;
    --berry: #b34fff;
    --text: #ffffff;
    --text-dim: rgba(255, 255, 255, 0.82);
    --card: rgba(255, 255, 255, 0.10);
    --card-line: rgba(255, 255, 255, 0.26);
}

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

body {
    font-family: 'Outfit', 'Segoe UI', sans-serif;
    color: var(--text);
    overflow-x: hidden;
    background:
        radial-gradient(circle at 50% -8%, rgba(255, 90, 77, 0.14) 0%, transparent 45%),
        radial-gradient(circle at 100% 25%, rgba(255, 45, 120, 0.14) 0%, transparent 45%),
        radial-gradient(circle at 0% 55%, rgba(77, 255, 176, 0.10) 0%, transparent 42%),
        linear-gradient(180deg, #101318 0%, #0c0e13 48%, #07080c 100%);
    background-attachment: fixed;
}

.logo, .hero h1, .world-text h3, .sec-title { font-family: 'Titan One', 'Arial Black', sans-serif; font-weight: 400; letter-spacing: 0.02em; }

/* Form controls don't inherit font-family by default -> force them onto the
   Outfit body font so buttons/inputs/selects never fall back to the system
   font (the main source of cross-page font inconsistency). */
button, input, select, textarea { font-family: inherit; }

/* Nav */
nav {
    position: fixed; top: 0; width: 100%; z-index: 100;
    background: rgba(26, 28, 35, 0.82);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid rgba(166, 243, 74, 0.4);
}
.nav-inner {
    max-width: 960px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0.7rem 1.5rem;
}
.logo {
    text-decoration: none; color: var(--text);
    font-size: 0.8rem; letter-spacing: 0.05em;
    display: flex; align-items: center; gap: 0.5rem;
    text-shadow: 0 2px 0 rgba(0,0,0,0.35);
}
.logo-img {
    display: block; height: 30px; width: auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
}
.nav-links { display: flex; align-items: center; gap: 1.2rem; }
.nav-link {
    color: var(--text-dim); text-decoration: none;
    font-weight: 600; font-size: 0.92rem; letter-spacing: 0.02em;
    transition: color 0.15s;
}
.nav-link:hover { color: var(--corn); }
@media (max-width: 480px) {
    .nav-links { gap: 0.75rem; }
    .nav-link { font-size: 0.8rem; }
}
/* Glossy lime pill */
.btn-play {
    background: linear-gradient(180deg, #c4ff7a 0%, var(--lime) 45%, var(--lime-deep) 100%);
    color: #143d00;
    padding: 0.6rem 1.3rem; border-radius: 9999px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem; font-weight: 700;
    text-decoration: none; letter-spacing: 0.02em;
    box-shadow: 0 4px 0 var(--lime-deep), 0 6px 14px rgba(0,0,0,0.3),
                inset 0 2px 2px rgba(255,255,255,0.7);
    transition: transform 0.12s, box-shadow 0.12s;
}
.btn-play:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--lime-deep), 0 10px 20px rgba(0,0,0,0.35), inset 0 2px 2px rgba(255,255,255,0.7); }
.btn-play:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--lime-deep), inset 0 2px 2px rgba(255,255,255,0.6); }

/* Hero */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    text-align: center;
    padding: 5rem 1.5rem 3rem;
    overflow: hidden;
}
/* Hero backdrop: the bright cartoon card-burst key art (docs/ART-PROMPTS.md, Fight
   Night hero) shown at full brightness, no darkening layers. The looping video
   (web/index.html, same first and last frame as this image) fades in over it once
   it plays; the CSS felt beneath is the offline fallback if both fail to load. */
.hero-bg {
    position: absolute; inset: 0; z-index: 0;
    background-color: #128a5c;
    background-image:
        url('https://prodmedia.tyga.host/public/tyga.cloud/landing/bridgeroo.com/bridgeroo_image.jpg'),
        radial-gradient(circle at 50% 40%, #1c9e6d 0%, #128a5c 44%, #0c6b47 100%);
    background-size: cover, cover;
    background-position: center, center;
    background-repeat: no-repeat, no-repeat;
}
.hero-video {
    position: absolute; inset: 0; z-index: 1;
    width: 100%; height: 100%; object-fit: cover;
    opacity: 0; transition: opacity .6s ease;
    pointer-events: none;
}
.hero-video.is-live { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .hero-video { display: none; } }
/* No overlay on the bright art: the copy carries its own shadow for legibility. */
.hero .hero-wordmark, .hero .tagline, .hero .hero-sub, .hero .hero-note, .hero .practice-link {
    color: #fff;
    text-shadow: 0 2px 0 rgba(6, 40, 26, .55), 0 4px 18px rgba(0, 0, 0, .55);
}
/* Giant floating playing cards (the four suits) over the felt */
.hero-pieces {
    position: absolute; inset: 0; z-index: 2;
    pointer-events: none;
}
.hero-pieces span {
    position: absolute; display: grid; place-items: center;
    border-radius: 0.55rem;
    background: linear-gradient(160deg, #ffffff 0%, #eef1f6 100%);
    border: 1px solid rgba(0,0,0,0.12);
    opacity: 0.22;
    box-shadow: 0 10px 30px rgba(0,0,0,0.45), inset 0 0 0 2px rgba(255,255,255,0.6);
    animation: disc-drift 8s ease-in-out infinite alternate;
}
.hero-pieces span::before {
    content: '\2660'; /* spade */
    font-size: 2.6rem; line-height: 1; color: var(--magenta);
    text-shadow: 0 1px 2px rgba(0,0,0,0.25);
}
.hero-pieces .p1 { top: 12%; left: 8%;  width: 5.4rem; height: 7.6rem; --tilt: -11deg; transform: rotate(var(--tilt)); }
.hero-pieces .p2 { top: 55%; left: 16%; width: 4.2rem; height: 5.9rem; --tilt: 8deg; transform: rotate(var(--tilt)); animation-delay: -2.5s; }
.hero-pieces .p2::before { content: '\2665'; color: var(--sky); } /* heart */
.hero-pieces .p3 { top: 18%; right: 10%; width: 4.8rem; height: 6.7rem; --tilt: 13deg; transform: rotate(var(--tilt)); animation-delay: -4s; }
.hero-pieces .p3::before { content: '\2666'; color: var(--sky); } /* diamond */
.hero-pieces .p4 { top: 58%; right: 18%; width: 6rem; height: 8.4rem; --tilt: -7deg; transform: rotate(var(--tilt)); animation-delay: -6s; }
.hero-pieces .p4::before { content: '\2663'; color: var(--magenta); font-size: 3rem; } /* club */
@keyframes disc-drift { to { transform: translateY(-20px) rotate(var(--tilt, 0deg)); } }

/* Hero music toggle: bottom-right, above the vignette. Default = off. */
.hero-audio-toggle {
    position: absolute; right: 1.2rem; bottom: 1.2rem; z-index: 5;
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.5rem 0.9rem; cursor: pointer;
    border: 2px solid var(--card-line); border-radius: 9999px;
    background: rgba(20, 22, 27, 0.6); backdrop-filter: blur(6px);
    color: var(--text-dim); font-family: 'Outfit', sans-serif;
    font-size: 0.8rem; letter-spacing: 0.02em;
    transition: color 0.15s, border-color 0.15s, transform 0.12s;
}
.hero-audio-toggle:hover { transform: translateY(-1px); border-color: var(--sky); color: var(--text); }
.hero-audio-toggle .ha-icon { font-size: 1rem; line-height: 1; }
.hero-audio-toggle.is-on { color: var(--corn); border-color: var(--sky); }
.hero-audio-toggle.is-on .ha-icon { color: var(--sky); }
@media (max-width: 480px) { .hero-audio-toggle .ha-label { display: none; } }

/* Candy sparkle drift */
.stars {
    position: absolute; inset: 0;
    background:
        radial-gradient(5px 5px at 18% 26%, #fff 60%, transparent 62%),
        radial-gradient(4px 4px at 78% 18%, var(--corn) 60%, transparent 62%),
        radial-gradient(6px 6px at 64% 72%, var(--magenta) 60%, transparent 62%),
        radial-gradient(4px 4px at 30% 66%, var(--lime) 60%, transparent 62%),
        radial-gradient(5px 5px at 88% 55%, #fff 60%, transparent 62%),
        radial-gradient(4px 4px at 22% 84%, var(--berry) 60%, transparent 62%);
    opacity: 0.9;
    animation: drift 9s ease-in-out infinite alternate;
}
@keyframes drift { to { transform: translateY(-24px); } }


.hero-bg-overlay {
    position: absolute; inset: 0; z-index: 3;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(20,22,27,0.15) 55%,
        rgba(20,22,27,0.5) 100%
    );
}

.hero h1 {
    font-size: 3.4rem;
    color: var(--corn);
    letter-spacing: 0.05em;
    text-shadow:
        0 0 40px rgba(255,210,63,0.5),
        3px 3px 0 var(--magenta),
        6px 6px 0 rgba(0,0,0,0.35);
    margin-bottom: 1.2rem;
}
.hero h1 .tm { font-size: 1rem; vertical-align: top; color: var(--lime); }
.hero-wordmark { font-size: clamp(3rem, 9vw, 5.4rem); margin-bottom: 1rem; }

.tagline {
    font-size: 1.25rem;
    color: var(--text);
    font-weight: 500;
    line-height: 1.5;
    margin-bottom: 1rem;
    letter-spacing: 0.01em;
    text-shadow: 0 2px 0 rgba(0,0,0,0.3);
}
.hero-sub {
    font-size: 1rem;
    color: var(--text-dim);
    line-height: 1.6;
    margin: 0 auto 2rem;
    max-width: 480px;
}

/* Blinking cursor */
.cursor {
    display: inline-block;
    width: 0.5em; height: 1em;
    background: var(--corn);
    margin-left: 3px;
    vertical-align: text-bottom;
    animation: blink 1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* Glossy logo-gold PLAY pill (main CTA colour = the BRIDGEROO wordart gold) */
.btn-primary {
    display: inline-block;
    background: linear-gradient(180deg, #fff3b0 0%, var(--corn) 45%, #e8a800 100%);
    color: #3a2400;
    padding: 1.1rem 2.8rem;
    border-radius: 9999px;
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.02em;
    text-shadow: 0 1px 0 rgba(255,255,255,0.45);
    box-shadow: 0 6px 0 var(--corn-deep), 0 10px 22px rgba(0,0,0,0.4),
                inset 0 2px 3px rgba(255,255,255,0.6);
    transition: transform 0.12s, box-shadow 0.12s;
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 9px 0 var(--corn-deep), 0 16px 30px rgba(0,0,0,0.45), inset 0 2px 3px rgba(255,255,255,0.6);
}
.btn-primary:active {
    transform: translateY(3px);
    box-shadow: 0 3px 0 var(--corn-deep), inset 0 2px 3px rgba(255,255,255,0.5);
}

.hero-note {
    color: var(--text-dim);
    font-size: 0.85rem;
    margin-top: 1.1rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

/* Hero wordart logo (neon BRIDGEROO). Sized to dominate the fold. */
.hero-logo {
    display: block;
    width: min(90vw, 640px);
    height: auto;
    margin: 0 auto 1.4rem;
    filter: drop-shadow(0 0 42px rgba(255,210,63,0.35)) drop-shadow(0 6px 14px rgba(0,0,0,0.5));
}

/* Nav items relocated into the hero as glassy pill CTAs (this landing drops the
   top nav so the wordart owns the fold - keeps the games portfolio varied). */
.hero-cta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.7rem;
    margin-top: 1.2rem;
}
.hero-cta-btn {
    display: inline-block;
    padding: 0.6rem 1.4rem;
    border-radius: 9999px;
    border: 2px solid var(--card-line);
    background: rgba(20,22,27,0.55);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    color: var(--text);
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.01em;
    transition: transform 0.12s, border-color 0.12s, color 0.12s;
}
.hero-cta-btn:hover { transform: translateY(-2px); border-color: var(--corn); color: var(--corn); }

/* Feature tiles */
/* World cards: the four splash images as feature cards, game-feature copy laid
   over a bottom gradient (splash art has its own UFO, unlike the hero). */
.worlds {
    padding: 4rem 1.5rem;
}
.worlds-inner {
    max-width: 1040px; margin: 0 auto;
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem;
}
.world-card {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 20px;
    overflow: hidden;
    border: 2px solid var(--card-line);
    background-size: cover; background-position: center;
    background-color: #14161b;
    box-shadow: 0 8px 22px rgba(0,0,0,0.3);
    transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.world-card:hover {
    transform: translateY(-5px);
    border-color: var(--corn);
    box-shadow: 0 14px 34px rgba(0,0,0,0.4), 0 0 30px rgba(255,210,63,0.22);
}
.world-card.w1 { background-image: linear-gradient(135deg, #123, #0a0c11), repeating-conic-gradient(rgba(255,90,77,0.12) 0% 25%, transparent 0% 50%); background-size: cover, 48px 48px; }
.world-card.w2 { background-image: linear-gradient(135deg, #2a1030, #0a0c11), repeating-conic-gradient(rgba(255,45,120,0.10) 0% 25%, transparent 0% 50%); background-size: cover, 48px 48px; }
.world-card.w3 { background-image: linear-gradient(135deg, #0f2c22, #0a0c11), repeating-conic-gradient(rgba(255,210,63,0.12) 0% 25%, transparent 0% 50%); background-size: cover, 48px 48px; }
.world-card.w4 { background-image: linear-gradient(135deg, #2c230f, #0a0c11), repeating-conic-gradient(rgba(255,210,63,0.10) 0% 25%, transparent 0% 50%); background-size: cover, 48px 48px; }
.world-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(10,11,15,0.92) 0%, rgba(10,11,15,0.55) 38%, rgba(10,11,15,0) 68%);
}
.world-text {
    position: absolute; left: 0; right: 0; bottom: 0;
    padding: 1.4rem 1.5rem;
    text-align: left;
}
.world-text h3 {
    font-size: 0.9rem; color: var(--corn);
    margin-bottom: 0.6rem; letter-spacing: 0.02em;
    text-shadow: 0 2px 6px rgba(0,0,0,0.6);
}
.world-text p {
    font-size: 0.95rem; color: var(--text);
    line-height: 1.55;
    text-shadow: 0 1px 4px rgba(0,0,0,0.7);
}

/* Hook Section */
.hook {
    padding: 4rem 1.5rem 5rem;
    text-align: center;
}
.hook-inner { max-width: 640px; margin: 0 auto; }
.fragment {
    font-size: 1.2rem;
    color: var(--text);
    line-height: 1.6;
    margin: 0 auto 2rem;
    max-width: 520px;
    font-weight: 500;
    text-shadow: 0 2px 0 rgba(0,0,0,0.3);
}
.fragment.last { margin-bottom: 2.5rem; }

.btn-secondary {
    display: inline-block;
    background: linear-gradient(180deg, #c4ff7a 0%, var(--lime) 45%, var(--lime-deep) 100%);
    color: #143d00;
    padding: 1rem 2.4rem;
    border-radius: 9999px;
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem; font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.02em;
    box-shadow: 0 5px 0 var(--lime-deep), 0 8px 18px rgba(0,0,0,0.35), inset 0 2px 2px rgba(255,255,255,0.6);
    transition: transform 0.12s, box-shadow 0.12s;
}
.btn-secondary:hover { transform: translateY(-3px); box-shadow: 0 8px 0 var(--lime-deep), 0 14px 26px rgba(0,0,0,0.4), inset 0 2px 2px rgba(255,255,255,0.6); }
.btn-secondary:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--lime-deep), inset 0 2px 2px rgba(255,255,255,0.5); }

/* Footer */
footer {
    padding: 2rem 1.5rem;
    text-align: center;
    color: var(--text-dim);
    font-size: 0.8rem;
    letter-spacing: 0.02em;
    background: rgba(26, 28, 35, 0.7);
    border-top: 2px solid rgba(166, 243, 74, 0.28);
}
footer a { color: var(--text-dim); text-decoration: none; }
footer a:hover { color: var(--corn); }
footer .sep { margin: 0 0.5rem; opacity: 0.4; }
.footer-powered { margin-top: 0.6rem; }
.footer-powered a { color: var(--corn); text-decoration: underline; font-weight: 600; }
.footer-powered a:hover { color: var(--magenta); }
.footer-powered .studio { color: var(--text-dim); }

/* Mobile */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.2rem; }
    .tagline { font-size: 1rem; }
    .btn-primary { font-size: 1.05rem; padding: 0.9rem 2rem; }
    .worlds-inner { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .hero h1 { font-size: 1.7rem; letter-spacing: 0.03em; }
    .tagline { font-size: 0.9rem; }
}

/* ── Meet the Bots band ── */
.bots { padding: 4.5rem 1.5rem; }
.bots-inner { max-width: 1080px; margin: 0 auto; }
.bots .sec-head { text-align: center; margin-bottom: 2.4rem; }
.bots-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem;
}
@media (max-width: 900px) { .bots-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .bots-grid { grid-template-columns: 1fr; } }
.bot-card {
    position: relative;
    background: var(--card); border: 2px solid var(--card-line);
    border-radius: 18px; padding: 1.5rem 1.4rem 1.4rem;
    transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.bot-card:hover {
    transform: translateY(-4px);
    border-color: var(--magenta);
    box-shadow: 0 12px 30px rgba(0,0,0,0.4), 0 0 26px rgba(255,45,120,0.18);
}
.bot-glyph {
    font-family: 'Times New Roman', serif;
    font-size: 2.6rem; line-height: 1;
    display: block; margin-bottom: 0.7rem;
    text-shadow: 0 0 18px rgba(63,216,255,0.5);
}
.bot-name {
    font-family: 'Titan One', 'Arial Black', sans-serif; font-weight: 400;
    font-size: 1.05rem; color: var(--corn);
    margin-bottom: 0.2rem;
}
.bot-tier {
    font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em;
    text-transform: uppercase; color: var(--sky);
    margin-bottom: 0.8rem;
}
.bot-bubble {
    position: relative;
    background: rgba(255, 45, 120, 0.12);
    border: 1.5px solid rgba(255, 45, 120, 0.45);
    border-radius: 12px; padding: 0.7rem 0.9rem;
    font-size: 0.95rem; font-style: italic; color: var(--text-dim);
}
.bot-bubble::before {
    content: ''; position: absolute; top: -9px; left: 22px;
    width: 14px; height: 14px; transform: rotate(45deg);
    background: inherit;
    border-left: 1.5px solid rgba(255, 45, 120, 0.45);
    border-top: 1.5px solid rgba(255, 45, 120, 0.45);
}

/* Hero content sits above the bg/overlay layers */
.hero-content { position: relative; z-index: 4; max-width: 720px; }

/* Section headings (shared by landing + league) */
.sec-kicker {
    font-size: 0.85rem; font-weight: 700; letter-spacing: 0.22em;
    color: var(--magenta); text-transform: uppercase; margin-bottom: 0.6rem;
}
.sec-title { font-size: 2rem; color: var(--corn); margin-bottom: 0.7rem; }
.sec-sub { font-size: 1rem; color: var(--text-dim); max-width: 560px; margin: 0 auto; }

/* The hidden attribute always wins over a class display rule (gated links like #tz-join). */
[hidden] { display: none !important; }

/* The landing's second door: Practice (the solo Slam Run) under the clash CTA. */
.practice-link { display: block; margin-top: 0.9rem; color: #fff; font-weight: 700; letter-spacing: .03em;
    opacity: .88; text-decoration: underline; text-underline-offset: 4px; text-shadow: 0 2px 8px rgba(0,0,0,.6); }
.practice-link:hover, .practice-link:focus-visible { opacity: 1; color: var(--corn); }

/* The landing is ONE full-screen hero (GDD 16): title, the play CTA, and the legal
   and site links pinned along its bottom edge. Everything that explains the game
   lives in-game (web/js/howto.js). */
body.landing { overflow: hidden; }
.landing .hero { min-height: 100vh; min-height: 100svh; height: 100vh; height: 100svh; padding: 1.5rem; }
.hero-legal {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 4;
    padding: 0.9rem 1rem calc(0.9rem + env(safe-area-inset-bottom));
    text-align: center; font-size: 0.78rem; line-height: 1.7; color: #fff;
    text-shadow: 0 1px 0 rgba(6, 40, 26, .6), 0 2px 10px rgba(0, 0, 0, .55);
}
.hero-legal a { color: #fff; text-decoration: none; font-weight: 600; }
.hero-legal a:hover, .hero-legal a:focus-visible { color: var(--corn); }
.hero-legal .sep { margin: 0 0.45rem; opacity: 0.6; }
.hero-legal .footer-powered { margin-top: 0.2rem; }
.hero-legal .footer-powered a { color: var(--corn); }
@media (max-width: 600px) { .hero-legal { font-size: 0.7rem; } .hero-legal .sep { margin: 0 0.3rem; } }
