/* SoccerIcon — the page wears the game's v3 "Broadcast" theme.
   Tokens are lifted from the game's src/index.css: carbon surfaces, volt
   floodlight green, gold for money, Barlow Condensed display type, angular
   radii and the −12° blade skew. */

:root {
    --volt: #c8f53f;
    --volt-dark: #a3cf1f;
    --gold: #f0b429;
    --live: #ff4d5e;
    --success: #34e67a;

    --bg-base: #0a0e13;
    --bg-card: #111722;
    --bg-card-alt: #151c29;
    --bg-elevated: #1b2432;

    --text-primary: #f2f6fa;
    --text-secondary: #93a1b5;
    --text-muted: #5b6b7f;
    --text-inverse: #0a0e13;

    --border: rgba(147, 161, 181, 0.14);
    --border-strong: rgba(147, 161, 181, 0.28);

    --font-body: 'Barlow', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Barlow Condensed', 'Barlow', sans-serif;

    --skew: -12deg;
    --skew-inverse: 12deg;
}

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

html { scroll-behavior: smooth; }

body {
    background: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

body.lightbox-open { overflow: hidden; }

/* `height: auto` is load-bearing: the <img> tags carry width/height
   attributes for layout stability, and without it the intrinsic height
   wins over the constrained width and every screenshot comes out squeezed. */
img { max-width: 100%; height: auto; display: block; }

.container {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ── The blade: the game's signature skewed plate ── */

.blade {
    display: inline-block;
    padding: 0.3rem 1rem;
    transform: skewX(var(--skew));
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.blade > span { display: inline-block; transform: skewX(var(--skew-inverse)); }

.blade--beta { background: var(--volt); color: var(--text-inverse); }

/* ── Top bar ─────────────────────────────────── */

.topbar {
    border-bottom: 1px solid var(--border);
    background: var(--bg-card);
}

.topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.topbar__brand {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.05rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.topbar__brand em { color: var(--volt); font-style: normal; }

.back-home {
    color: var(--text-secondary);
    font-family: var(--font-display);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-decoration: none;
}

.back-home:hover { color: var(--volt); }

/* ── Hero ────────────────────────────────────── */

.hero {
    position: relative;
    padding: 4rem 0 3rem;
    overflow: hidden;
}

/* The diagonal floodlight wash behind the title, same angle as the blade. */
.hero::before {
    content: "";
    position: absolute;
    inset: -40% -20% auto -20%;
    height: 130%;
    background: linear-gradient(100deg, transparent 38%, rgba(200, 245, 63, 0.07) 50%, transparent 62%);
    pointer-events: none;
}

.hero > * { position: relative; }

.hero h1 {
    margin: 1rem 0 0.25rem;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(3rem, 12vw, 6.5rem);
    line-height: 0.92;
    text-transform: uppercase;
    letter-spacing: -0.01em;
}

.hero h1 em { color: var(--volt); font-style: normal; }

.hero__tagline {
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-secondary);
}

.hero__lead {
    max-width: 44rem;
    margin-top: 1.5rem;
    color: var(--text-secondary);
}

/* ── Stat strip ──────────────────────────────── */

.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.6rem;
    margin-top: 2.25rem;
}

.stat {
    padding: 0.9rem 0.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 4px;
    text-align: center;
}

.stat__value {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.6rem;
    line-height: 1.1;
    color: var(--volt);
}

.stat__label {
    font-family: var(--font-display);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--text-muted);
}

/* ── Buttons ─────────────────────────────────── */

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    transform: skewX(var(--skew));
    border: 1px solid var(--volt);
    background: var(--volt);
    color: var(--text-inverse);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-decoration: none;
    transition: background 0.18s ease, box-shadow 0.18s ease;
}

.btn > span { display: inline-flex; align-items: center; gap: 0.5rem; transform: skewX(var(--skew-inverse)); }

.btn:not(.btn--off):hover {
    background: var(--volt-dark);
    box-shadow: 0 0 24px rgba(200, 245, 63, 0.22);
}

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

.btn--ghost:not(.btn--off):hover {
    background: var(--bg-elevated);
    border-color: var(--volt);
    box-shadow: none;
}

/* Not shipped yet: the plate stays, the light goes out. */
.btn--off {
    background: var(--bg-card);
    border-color: var(--border);
    color: var(--text-muted);
    cursor: not-allowed;
}

.btn__note {
    font-weight: 400;
    letter-spacing: 0.04em;
    opacity: 0.8;
}

/* ── Section heads ───────────────────────────── */

section { padding-bottom: 3.5rem; }

.section-head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    font-family: var(--font-display);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--text-secondary);
}

.section-head::before {
    content: "";
    width: 22px;
    height: 4px;
    background: var(--volt);
    transform: skewX(var(--skew));
}

/* ── Gallery: phones on a shelf ──────────────── */

.gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.shot {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    color: inherit;
    text-align: left;
    cursor: pointer;
}

.shot__frame {
    display: block;
    padding: 6px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.shot__frame img { border-radius: 4px; }

.shot:hover .shot__frame,
.shot:focus-visible .shot__frame {
    transform: translateY(-6px);
    border-color: var(--volt);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55);
}

.shot__caption {
    display: block;
    margin-top: 0.7rem;
    font-family: var(--font-display);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
}

/* ── Feature tiles ───────────────────────────── */

.tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.25rem;
}

.tile {
    position: relative;
    padding: 1.75rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

.tile::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 46px;
    height: 4px;
    background: var(--volt);
    transform: skewX(var(--skew)) translateX(6px);
}

.tile h3 {
    margin-bottom: 0.5rem;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.tile p { color: var(--text-secondary); font-size: 0.95rem; }

/* ── Closing ─────────────────────────────────── */

.closing > p { color: var(--text-secondary); }

/* ── Footer ──────────────────────────────────── */

footer {
    border-top: 1px solid var(--border);
    background: var(--bg-card);
    padding: 1.5rem 0;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-content img { height: 1.3rem; opacity: 0.5; }
.footer-content a:hover img { opacity: 1; }

.footer-content a {
    color: var(--text-secondary);
    font-family: var(--font-display);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-decoration: none;
}

.footer-content a:hover { color: var(--volt); }

.footer-copy { font-size: 0.8rem; color: var(--text-muted); }

/* ── Lightbox ────────────────────────────────── */

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.5rem;
    background: rgba(6, 9, 13, 0.94);
}

.lightbox[hidden] { display: none; }

.lightbox__figure {
    max-width: min(520px, 92vw);
    padding: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border-strong);
    border-radius: 10px;
}

.lightbox__img {
    max-height: 78vh;
    width: auto;
    border-radius: 6px;
}

.lightbox__caption {
    padding-top: 0.6rem;
    font-family: var(--font-display);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    text-align: center;
}

.lightbox__close,
.lightbox__nav {
    flex: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--border-strong);
    border-radius: 4px;
    background: var(--bg-card);
    color: var(--volt);
    font-family: var(--font-display);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
}

.lightbox__close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
}

.lightbox__close:hover,
.lightbox__nav:hover { border-color: var(--volt); }

/* ── Responsive ──────────────────────────────── */

@media (max-width: 860px) {
    .gallery { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
    .stats { grid-template-columns: repeat(2, 1fr); }
    .lightbox { padding: 0.75rem; }
    .lightbox__nav { width: 36px; height: 36px; }
    .btn { width: 100%; justify-content: center; }
}
