/* Brick Run Teaser Site (2025 refresh)
   Clean neon arcade vibe, mobile-first, smooth motion.
*/

/* Base reset */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
}

:root {
    --bg0: #070916;
    --bg1: #0b1026;
    --bg2: rgba(255, 255, 255, 0.06);
    --line: rgba(255, 255, 255, 0.10);
    --text: rgba(255, 255, 255, 0.92);
    --muted: rgba(255, 255, 255, 0.70);
    --faint: rgba(255, 255, 255, 0.52);
    --accent: #00f0ff;
    --accent2: #ff2bd6;
    --accent3: #8b5cf6;
    --good: #39ff14;
    --shadow: rgba(0, 0, 0, 0.35);

    --radius: 18px;
    --radius-sm: 12px;
    --maxw: 1100px;

    --glow: 0 0 0 1px rgba(0, 240, 255, 0.12), 0 14px 44px rgba(0, 0, 0, 0.46);
    --glow-strong: 0 0 0 1px rgba(0, 240, 255, 0.22), 0 18px 60px rgba(0, 0, 0, 0.55), 0 0 42px rgba(0, 240, 255, 0.12);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
    color: var(--text);
    background:
        radial-gradient(1100px 700px at 18% 22%, rgba(139, 92, 246, 0.22) 0%, transparent 58%),
        radial-gradient(900px 640px at 90% 65%, rgba(0, 240, 255, 0.18) 0%, transparent 52%),
        linear-gradient(180deg, var(--bg0), var(--bg1));
    overflow-x: hidden;
}

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

a {
    color: inherit;
}

.container {
    width: min(var(--maxw), calc(100% - 2rem));
    margin-inline: auto;
}

.skip-link {
    position: absolute;
    left: -999px;
    top: 8px;
    background: rgba(0, 0, 0, 0.85);
    border: 1px solid var(--line);
    padding: 10px 12px;
    border-radius: 10px;
    z-index: 9999;
}

.skip-link:focus {
    left: 10px;
}

/* Reduced motion: keep things usable, drop auto-movement */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .quotes-track {
        animation: none !important;
        transform: none !important;
    }

    .hero-canvas {
        display: none;
    }
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(7, 9, 22, 0.72);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    gap: 12px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.brand img {
    width: 64px;
    height: 64px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.brand .brand-name {
    font-weight: 750;
    letter-spacing: 0.4px;
    line-height: 1;
}

.brand .brand-tag {
    display: block;
    font-size: 0.78rem;
    color: var(--muted);
    letter-spacing: 0.2px;
    margin-top: 2px;
}

.nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
}

.nav-toggle svg {
    width: 20px;
    height: 20px;
}

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

.nav a {
    text-decoration: none;
    color: var(--muted);
    padding: 10px 12px;
    border-radius: 999px;
    border: 1px solid transparent;
    transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease, color 160ms ease;
    white-space: nowrap;
}

.nav a:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.10);
    transform: translateY(-1px);
}

.nav a[aria-current="page"] {
    color: var(--text);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.2px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.30);
    transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.42);
}

.btn:focus-visible {
    outline: 2px solid rgba(0, 240, 255, 0.55);
    outline-offset: 3px;
}

.btn-primary {
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.95), rgba(255, 43, 214, 0.86));
    color: rgba(7, 9, 22, 0.98);
    border-color: rgba(0, 240, 255, 0.35);
    box-shadow: 0 18px 55px rgba(0, 240, 255, 0.16), 0 18px 55px rgba(255, 43, 214, 0.10);
}

.btn-primary:hover {
    box-shadow: 0 22px 70px rgba(0, 240, 255, 0.20), 0 22px 70px rgba(255, 43, 214, 0.14);
    border-color: rgba(255, 255, 255, 0.22);
}

.btn-soft {
    background: rgba(255, 255, 255, 0.05);
}

.btn-small {
    padding: 10px 14px;
    font-size: 0.95rem;
}

/* Mobile nav */
@media (max-width: 860px) {
    .nav {
        display: none;
        position: absolute;
        top: calc(100% + 8px);
        left: 1rem;
        right: 1rem;
        background: rgba(7, 9, 22, 0.92);
        border: 1px solid rgba(255, 255, 255, 0.10);
        border-radius: 18px;
        padding: 10px;
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
    }

    .nav.open {
        display: flex;
    }

    .nav a {
        border-radius: 14px;
    }
}

@media (min-width: 861px) {
    .nav-toggle {
        display: none;
    }
}

/* Hero */
.hero {
    position: relative;
    min-height: clamp(640px, 88vh, 860px);
    display: grid;
    align-items: center;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    pointer-events: none;
    opacity: 0.98;
    z-index: 0;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(900px 600px at 35% 25%, rgba(0, 240, 255, 0.25) 0%, transparent 60%),
        radial-gradient(900px 600px at 78% 65%, rgba(255, 43, 214, 0.18) 0%, transparent 60%),
        linear-gradient(180deg, rgba(7, 9, 22, 0.40), rgba(7, 9, 22, 0.92));
    z-index: 1;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    box-shadow:
        inset 0 0 0 1px rgba(0, 240, 255, 0.20),
        inset 0 0 0 2px rgba(255, 43, 214, 0.06);
    z-index: 2;
}

.hero-countdown {
    position: absolute;
    inset: 10px;
    width: auto;
    height: auto;
    pointer-events: none;
    z-index: 2;
    opacity: 0.95;
}

.hero-countdown-path {
    fill: none;
    stroke: url(#heroCountdownGradient);
    stroke-width: 2.2;
    vector-effect: non-scaling-stroke;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 0 10px rgba(0, 240, 255, 0.18));
}

.hero-content {
    position: relative;
    padding: 64px 0;
    z-index: 3;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 26px;
    align-items: center;
}

@media (max-width: 980px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: rgba(7, 9, 22, 0.95);
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.92), rgba(139, 92, 246, 0.82));
    padding: 10px 14px;
    border-radius: 999px;
    font-weight: 800;
    letter-spacing: 0.25px;
    width: fit-content;
}

.hero-kicker .dot {
    width: 9px;
    height: 9px;
    border-radius: 99px;
    background: rgba(7, 9, 22, 0.90);
}

.hero h1 {
    margin: 14px 0 10px;
    font-size: clamp(2.2rem, 4.3vw, 3.6rem);
    line-height: 1.03;
    letter-spacing: -0.03em;
}

.hero .subhead {
    margin: 0;
    color: var(--muted);
    font-size: 1.08rem;
    line-height: 1.65;
    max-width: 56ch;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 22px;
    align-items: center;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.pill {
    padding: 10px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.10);
    color: var(--muted);
    font-weight: 650;
    font-size: 0.92rem;
}

.hero-card {
    background: rgba(7, 9, 22, 0.62);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    padding: 18px;
    box-shadow: var(--glow);
}

.watch-preview {
    border-radius: 22px;
    overflow: hidden;
    position: relative;
}

.watch-preview::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 22px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    pointer-events: none;
}

.watch-preview .thumb {
    aspect-ratio: 1 / 1;
    border-radius: 18px;
    background:
        radial-gradient(circle at 30% 30%, rgba(0, 240, 255, 0.20), transparent 55%),
        radial-gradient(circle at 75% 70%, rgba(255, 43, 214, 0.18), transparent 55%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
    display: grid;
    place-items: center;
}

.watch-preview .thumb .thumb-video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: 18px;
    filter: saturate(1.1) contrast(1.05) brightness(0.95);
}

.watch-preview .thumb img {
    width: min(210px, 65%);
    filter: drop-shadow(0 16px 30px rgba(0, 0, 0, 0.55));
}

.watch-preview .caption {
    margin-top: 12px;
    color: var(--faint);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Sections */
.section {
    padding: 84px 0;
}

.section.tight {
    padding: 64px 0;
}

.section-title {
    margin: 0;
    font-size: clamp(1.65rem, 2.7vw, 2.35rem);
    letter-spacing: -0.02em;
}

.section-lede {
    margin: 12px 0 0;
    color: var(--muted);
    max-width: 70ch;
    line-height: 1.75;
}

.grid-2 {
    margin-top: 26px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

@media (max-width: 880px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }
}

.card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 240, 255, 0.18);
    box-shadow: var(--glow-strong);
}

.card .card-title {
    margin: 0;
    font-size: 1.1rem;
    letter-spacing: -0.01em;
}

.card .card-copy {
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.7;
}

.card .tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(0, 240, 255, 0.10);
    border: 1px solid rgba(0, 240, 255, 0.22);
    color: rgba(255, 255, 255, 0.90);
    font-weight: 750;
    font-size: 0.86rem;
}

.tag .mini-dot {
    width: 7px;
    height: 7px;
    border-radius: 9px;
    background: var(--accent);
}

/* Quote marquee */
.quotes {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

.quotes-wrap {
    overflow: hidden;
    padding: 22px 0;
}

.quotes-track {
    display: flex;
    gap: 16px;
    width: max-content;
    animation: marquee 40s linear infinite;
}

.quotes:hover .quotes-track {
    animation-play-state: paused;
}

.quotes:focus-within .quotes-track {
    animation-play-state: paused;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.quote {
    width: min(440px, calc(100vw - 3rem));
    background: rgba(7, 9, 22, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 16px;
    padding: 16px 16px 14px;
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.26);
}

.quote p {
    margin: 0;
    color: rgba(255, 255, 255, 0.90);
    line-height: 1.55;
}

.quote .who {
    margin-top: 10px;
    color: var(--faint);
    font-weight: 650;
}

/* Gallery */
.gallery-screenshots {
    margin-top: 32px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 48px;
}

.screenshot-item {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.15), rgba(255, 43, 214, 0.12));
    padding: 4px;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.40),
        0 0 40px rgba(0, 240, 255, 0.08),
        inset 0 0 0 1px rgba(255, 255, 255, 0.12);
    transition: transform 280ms ease, box-shadow 280ms ease;
}

.screenshot-item::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.20), rgba(139, 92, 246, 0.15), rgba(255, 43, 214, 0.18));
    opacity: 0;
    transition: opacity 280ms ease;
}

.screenshot-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.50),
        0 0 60px rgba(0, 240, 255, 0.15),
        0 0 40px rgba(255, 43, 214, 0.10);
}

.screenshot-item:hover::before {
    opacity: 1;
}

.screenshot-item img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

@media (max-width: 768px) {
    .gallery-screenshots {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .screenshot-item {
        max-width: 320px;
        margin: 0 auto;
    }
}

.gallery-subtitle {
    margin: 0 0 8px;
    font-size: 1.25rem;
    color: var(--muted);
    font-weight: 700;
    letter-spacing: 0.02em;
}

.gallery-grid {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 16px;
}

.gallery-item {
    grid-column: span 6;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(7, 9, 22, 0.60);
    box-shadow: 0 18px 64px rgba(0, 0, 0, 0.30);
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.gallery-item:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 240, 255, 0.25);
    box-shadow: var(--glow-strong);
}

.gallery-item.wide {
    grid-column: span 12;
}

@media (max-width: 900px) {
    .gallery-item {
        grid-column: span 12;
    }
}

.gallery-item img,
.gallery-item video {
    width: 100%;
    height: auto;
    display: block;
}

.gallery-item video {
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.08), rgba(255, 43, 214, 0.06));
}

.gallery-item .cap {
    padding: 14px 16px;
    color: var(--muted);
    font-size: 0.95rem;
    font-weight: 600;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.15);
}

/* Highscore board */
.board {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(7, 9, 22, 0.55);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
}

.board header {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.board header .label {
    font-weight: 800;
    letter-spacing: 0.2px;
}

.board header .hint {
    color: var(--faint);
    font-size: 0.92rem;
}

.board table {
    width: 100%;
    border-collapse: collapse;
}

.board th,
.board td {
    text-align: left;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.board th {
    color: var(--faint);
    font-size: 0.9rem;
    font-weight: 750;
}

.board td {
    color: var(--muted);
}

.board td strong {
    color: var(--text);
}

/* FAQ */
.faq {
    margin-top: 18px;
}

.faq details {
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 14px 14px;
    margin-bottom: 12px;
}

.faq summary {
    cursor: pointer;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.92);
    letter-spacing: 0.1px;
}

.faq summary::marker {
    color: rgba(0, 240, 255, 0.70);
}

.faq .answer {
    margin-top: 10px;
    color: var(--muted);
    line-height: 1.75;
}

/* Footer */
.site-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 40px 0;
    color: var(--muted);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 16px;
    align-items: start;
}

@media (max-width: 860px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-links a {
    color: var(--muted);
    text-decoration: none;
    padding: 8px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(255, 255, 255, 0.04);
}

.footer-links a:hover {
    color: var(--text);
    border-color: rgba(0, 240, 255, 0.20);
}

/* Page wrapper (non-home) */
.page-hero {
    padding: 70px 0 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.page-hero h1 {
    margin: 0;
    font-size: clamp(2rem, 3.6vw, 3rem);
    letter-spacing: -0.02em;
}

.page-hero p {
    margin: 10px 0 0;
    color: var(--muted);
    max-width: 70ch;
    line-height: 1.75;
}

.prose {
    padding: 50px 0 84px;
}

.prose h2 {
    margin: 0 0 12px;
    letter-spacing: -0.01em;
}

.prose p,
.prose li {
    color: var(--muted);
    line-height: 1.85;
}

.prose a {
    color: rgba(0, 240, 255, 0.92);
}

.prose a:hover {
    color: rgba(255, 43, 214, 0.92);
}