:root {
    --red-primary: #c01433;
    --red-deep: #7a0e22;
    --cyan-glow: #00e5ff;
    --ink: #0a0a0d;
    --bone: #f3efe9;
    --font-display: 'Bebas Neue', Impact, 'Arial Narrow', sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
    /* Header height used everywhere we need to offset below it.
     Update this one value if the header padding or logo size changes. */
    --header-h: 102px;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    background: var(--ink);
    color: var(--bone);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ---------- HEADER ---------- */
.site-header {
    background: var(--red-primary);
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 1rem 1.5rem;
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    /* Needed so the mobile dropdown nav (position:absolute; top:100%)
     positions itself relative to the header, not the viewport */
    isolation: isolate;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

    .brand img {
        height: 78px;
        width: auto;
        display: block;
        flex-shrink: 0;
    }

.brand__name {
    font-family: var(--font-display);
    font-size: 2rem;
    letter-spacing: 0.04em;
    color: var(--bone);
    line-height: 1;
    white-space: nowrap;
}

    .brand__name span {
        color: var(--cyan-glow);
    }

/* nav buttons, right of logo, inside the header */
.site-nav {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-btn {
    font-family: 'Russo One', Impact, 'Arial Narrow', sans-serif;
    font-size: 1rem;
    letter-spacing: 0.06em;
    color: #ffffff;
    background: var(--ink);
    border: 1.5px solid rgba(0,229,255,0.0);
    border-radius: 6px;
    padding: 0.6rem 1.3rem;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

/* Higher-specificity backup so this wins even if another stylesheet
   (e.g. Bootstrap or an auto-generated bundle loaded after this file)
   declares a competing color on anchor tags. */
.site-header .nav-btn,
.site-footer .nav-btn {
    color: #ffffff;
}

.nav-btn:hover,
.nav-btn:focus-visible {
    color: var(--ink);
    background: var(--cyan-glow);
    border-color: var(--cyan-glow);
    box-shadow: 0 0 14px rgba(0,229,255,0.55);
}

.nav-btn:focus-visible {
    outline: 2px solid var(--bone);
    outline-offset: 2px;
}

/* hamburger toggle for small screens */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    margin-left: auto;
}

    .nav-toggle span {
        display: block;
        width: 26px;
        height: 3px;
        background: var(--bone);
        margin: 5px 0;
        border-radius: 2px;
    }

/* ---------- GLOW DIVIDER ---------- */
/* Attached to the header itself as a pseudo-element rather than a separate
   <hr>, so it's structurally part of the header and scrolls with it (the
   header is position:sticky -- a sibling element underneath it would not
   stay attached when the page scrolls, but this pseudo-element does). */
.site-header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -4px;
    height: 4px;
    background: var(--cyan-glow);
    box-shadow: 0 0 6px 1px rgba(0,229,255,0.85), 0 0 18px 4px rgba(0,229,255,0.5), 0 5px 12px rgba(0,0,0,0.55); /* drop shadow, cast downward */
}

/* ---------- HERO BANNER ---------- */
/* Accepts source images up to 4K (3840x2160). The frame caps at that native
   width and uses background-size:cover so any image up to and including
   4K resolution scales cleanly without distortion or pixel loss. Swap the
   url() below for your asset. */
.hero-banner {
    /* Break out of any parent container or padding constraints so the
     carousel always spans the full viewport width with no side gaps */
    width: 100vw;
    position: relative;
    left: 50%;
    margin-left: -50vw;
    background: var(--ink);
}

.hero-banner__frame {
    width: 100%;
    aspect-ratio: 16/9;
    position: relative;
    overflow: hidden;
    background: var(--ink);
}


.hero-banner__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.hero-banner__placeholder-copy {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.5rem;
    padding: 1rem;
}

    .hero-banner__placeholder-copy h1 {
        font-family: var(--font-display);
        font-size: clamp(1.8rem, 5vw, 3.6rem);
        letter-spacing: 0.05em;
        margin: 0;
        color: var(--bone);
    }

    .hero-banner__placeholder-copy p {
        font-family: var(--font-body);
        font-size: clamp(0.85rem, 1.2vw, 1.05rem);
        color: rgba(243,239,233,0.7);
        margin: 0;
        max-width: 32rem;
    }

/* ---------- HERO BANNER CAROUSEL (SEGA-style) ---------- */
/* The track holds all slides in a horizontal row. JS shifts it via
   translateX. overflow:visible here is intentional -- the frame's
   own overflow:hidden does the clipping, keeping the arrows inside
   the frame and slides cropping correctly. */
.hero-banner__track {
    position: absolute;
    inset: 0;
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.55s cubic-bezier(0.4,0,0.2,1);
}

.hero-banner__slide {
    position: relative;
    flex: 0 0 100%; /* each slide takes exactly one frame-width */
    width: 100%;
    height: 100%;
}

    .hero-banner__slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        display: block;
    }

/* ---------- SLIDE OVERLAY (bottom-left text + buttons) ---------- */
.hero-banner__overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 0 4rem 2.8rem 2.5rem;
    pointer-events: none;
}

.hero-banner__eyebrow {
    font-family: 'Russo One', Impact, sans-serif;
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #ffffff;
    margin: 0 0 0.4rem;
    opacity: 0.85;
}

.hero-banner__title {
    font-family: 'Russo One', Impact, sans-serif;
    font-size: clamp(2rem, 5vw, 3.8rem);
    letter-spacing: 0.01em;
    color: #ffffff;
    margin: 0 0 1.1rem;
    line-height: 1;
    text-shadow: 0 2px 20px rgba(0,0,0,0.7);
}

.hero-banner__subtitle {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
    margin: 0 0 1.1rem;
}

.hero-banner__actions {
    display: flex;
    gap: 0;
    flex-wrap: wrap;
    pointer-events: auto;
}

.hero-banner__btn {
    font-family: 'Russo One', Impact, sans-serif;
    font-size: 0.82rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.65rem 1.4rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border: 2px solid transparent;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.hero-banner__btn--primary {
    background: var(--cyan-glow);
    color: var(--ink);
    border-color: var(--cyan-glow);
}

    .hero-banner__btn--primary:hover,
    .hero-banner__btn--primary:focus-visible {
        background: #ffffff;
        border-color: #ffffff;
        box-shadow: 0 0 18px rgba(0,229,255,0.5);
        color: var(--ink);
    }

.hero-banner__btn--secondary {
    background: rgba(10,10,13,0.55);
    color: #ffffff;
    border-color: #ffffff;
}

    .hero-banner__btn--secondary:hover,
    .hero-banner__btn--secondary:focus-visible {
        background: rgba(255,255,255,0.15);
        box-shadow: 0 0 12px rgba(255,255,255,0.2);
    }

/* ---------- ARROW BUTTONS ---------- */
/* Thin white-border circle, dark semi-transparent fill, white chevron --
   matches the SEGA screenshot exactly. Sit inside the frame near each edge,
   vertically centered. The frame's overflow:hidden keeps them from sticking
   out, which also means no clipping trick needed on the track. */
.hero-banner__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.75);
    background: rgba(10,10,13,0.45);
    color: #ffffff;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(4px);
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

    .hero-banner__arrow:hover,
    .hero-banner__arrow:focus-visible {
        border-color: var(--cyan-glow);
        background: rgba(0,229,255,0.15);
        box-shadow: 0 0 14px rgba(0,229,255,0.5);
        transform: translateY(-50%) scale(1.08);
    }

.hero-banner__arrow--prev {
    left: 1rem;
}

.hero-banner__arrow--next {
    right: 1rem;
}

/* ---------- BOTTOM BAR + INDICATORS ---------- */
.hero-banner__bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 3;
    height: 36px;
    background: rgba(10,10,13,0.75);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.hero-banner__dot {
    width: 28px;
    height: 3px;
    border-radius: 2px;
    background: rgba(255,255,255,0.25);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

    .hero-banner__dot.is-active {
        background: var(--cyan-glow);
        box-shadow: 0 0 6px rgba(0,229,255,0.8);
    }

@media (max-width:760px) {
    .hero-banner__overlay {
        padding: 0 2rem 3rem 1.25rem;
    }

    .hero-banner__arrow {
        width: 34px;
        height: 34px;
        font-size: 0.85rem;
    }

    .hero-banner__title {
        font-size: 1.8rem;
    }
}

@media (max-width:480px) {
    .hero-banner__arrow {
        display: none;
    }

    .hero-banner__overlay {
        padding: 0 1rem 3rem;
    }
}


/* ---------- OUR GAMES ---------- */
.our-games {
    max-width: 1280px;
    margin: 0 auto;
    padding: 3.5rem 1.5rem 4rem;
}

.our-games__heading {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    letter-spacing: 0.05em;
    margin: 0 0 1.75rem;
    position: relative;
    display: inline-block;
}

    .our-games__heading::after {
        content: "";
        display: block;
        height: 3px;
        width: 64px;
        margin-top: 0.5rem;
        background: var(--cyan-glow);
        box-shadow: 0 0 8px rgba(0,229,255,0.7);
    }

.games-grid {
    display: grid;
    /* auto-fill + a 360px cap keeps a lone card at card size instead of
     stretching it across the whole row; more cards simply flow in beside it */
    grid-template-columns: repeat(auto-fill, minmax(230px, 360px));
    gap: 1.75rem;
}

.game-card {
    display: block;
    background: #120307;
    border: 1px solid rgba(192,20,51,0.45);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

    .game-card:hover {
        transform: translateY(-4px);
        border-color: var(--cyan-glow);
        box-shadow: 0 8px 22px rgba(0,0,0,0.5), 0 0 16px rgba(0,229,255,0.25);
    }

/* Swap each game-card__image's empty src for a real image (any resolution). */
.game-card__image-wrap {
    aspect-ratio: 4/3;
    position: relative;
    background: linear-gradient(135deg, rgba(192,20,51,0.35), transparent 65%), var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
}

    .game-card__image-wrap img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.game-card__placeholder-label {
    font-family: var(--font-body);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(243,239,233,0.45);
    border: 1px dashed rgba(243,239,233,0.3);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
}

.game-card__title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    letter-spacing: 0.04em;
    padding: 0.9rem 1rem 1.1rem;
    margin: 0;
}

/* ---------- FOOTER ---------- */
.site-footer {
    background: var(--ink);
    border-top: 1px solid rgba(0,229,255,0.3);
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

.site-footer__nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.site-footer__copy {
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: rgba(243,239,233,0.5);
    text-align: center;
    margin: 0;
}

/* ============================================================
   RESPONSIVE — mobile-first, three breakpoints
   480px  → small phones
   760px  → large phones / small tablets
   1024px → tablets / small laptops
   ============================================================ */

/* ---- 1024px and below (tablets) ---- */
@media (max-width:1024px) {
    /* Header */
    .brand img {
        height: 64px;
    }

    .brand__name {
        font-size: 1.75rem;
    }

    /* Carousel overlay */
    .hero-banner__overlay {
        padding: 0 3rem 2.5rem 2rem;
    }

    .hero-banner__title {
        font-size: clamp(1.6rem, 4vw, 2.8rem);
    }

    /* Games grid — 3 columns max */

    /* About */
    .about-page {
        padding: 3rem 1.5rem 4rem;
    }

    .about-mission {
        gap: 2.5rem;
    }
}

/* ---- 760px and below (phones / small tablets) ---- */
@media (max-width:760px) {
    /* Root override */
    :root {
        --header-h: 82px;
    }

    /* Header — collapse nav into hamburger */
    .site-header {
        padding: 0.75rem 1rem;
        gap: 1rem;
    }

    .brand img {
        height: 52px;
    }

    .brand__name {
        font-size: 1.4rem;
    }

    .site-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        background: var(--red-primary);
        padding: 0.75rem 1rem 1rem;
        gap: 0.4rem;
        display: none;
        z-index: 100;
        box-shadow: 0 8px 24px rgba(0,0,0,0.5);
    }

        .site-nav.is-open {
            display: flex;
        }

    .nav-toggle {
        display: block;
    }

    /* Nav buttons full-width inside the dropdown */
    .site-nav .nav-btn {
        width: 100%;
        text-align: center;
        padding: 0.7rem 1rem;
    }

    /* Carousel */
    .hero-banner__overlay {
        padding: 0 1rem 3.5rem 1rem;
    }

    .hero-banner__title {
        font-size: clamp(1.3rem, 5vw, 2rem);
    }

    .hero-banner__eyebrow {
        font-size: 0.7rem;
    }

    .hero-banner__subtitle {
        font-size: 0.82rem;
    }

    .hero-banner__btn {
        font-size: 0.75rem;
        padding: 0.55rem 1rem;
    }

    .hero-banner__arrow {
        width: 34px;
        height: 34px;
        font-size: 0.85rem;
    }

    .hero-banner__arrow--prev {
        left: 0.4rem;
    }

    .hero-banner__arrow--next {
        right: 0.4rem;
    }

    .hero-banner__bar {
        height: 28px;
    }

    .hero-banner__dot {
        width: 20px;
    }

    /* Games section */
    .our-games {
        padding: 2.5rem 1rem 3rem;
    }

    .our-games__heading {
        font-size: 1.6rem;
    }

    /* Footer */
    .site-footer {
        padding: 1.5rem 1rem;
        gap: 1rem;
    }

    .site-footer__nav {
        gap: 0.5rem;
    }

    .site-footer .nav-btn {
        padding: 0.5rem 0.9rem;
        font-size: 0.8rem;
    }

    /* About page */
    .page-hero {
        padding: 3.5rem 1rem 3rem;
    }

        .page-hero::before {
            width: 320px;
            height: 180px;
        }

    .about-page {
        padding: 2.5rem 1rem 3.5rem;
    }

    .about-mission {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 3rem;
    }

    .about-mission__visual {
        order: -1;
    }

        .about-mission__visual img {
            max-width: 200px;
        }

    .about-stats {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
        margin-bottom: 3rem;
    }

    .about-stat {
        padding: 1.5rem 1rem;
    }
}

/* ---- 480px and below (small phones) ---- */
@media (max-width:480px) {
    /* Header */
    .brand img {
        height: 42px;
    }

    .brand__name {
        font-size: 1.15rem;
    }

    .site-header {
        padding: 0.6rem 0.75rem;
    }

    /* Carousel — switch to portrait-friendly taller ratio on tiny screens */
    .hero-banner__frame {
        aspect-ratio: 4/3;
    }

    .hero-banner__overlay {
        padding: 0 0.75rem 3rem 0.75rem;
    }

    .hero-banner__title {
        font-size: clamp(1.1rem, 6vw, 1.6rem);
    }

    .hero-banner__actions {
        gap: 0;
        flex-wrap: wrap;
    }

    .hero-banner__btn {
        font-size: 0.72rem;
        padding: 0.5rem 0.85rem;
    }
    /* Hide arrows on very small screens — swipe handles navigation */
    .hero-banner__arrow {
        display: none;
    }

    /* Games grid — single column on small phones */
    .our-games {
        padding: 2rem 0.75rem 2.5rem;
    }

    /* Footer */
    .site-footer__nav {
        flex-direction: column;
        align-items: center;
    }

    .site-footer .nav-btn {
        width: 100%;
        text-align: center;
    }

    /* About */
    .page-hero {
        padding: 3rem 0.75rem 2.5rem;
    }

    .about-page {
        padding: 2rem 0.75rem 3rem;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .about-stat {
        padding: 1.25rem 1rem;
    }

    .about-mission {
        margin-bottom: 2.5rem;
    }
}


/* ============================================================
   ABOUT PAGE
   ============================================================ */

/* Shared page hero -- used at the top of inner pages like About */
.page-hero {
    width: 100%;
    background: linear-gradient(to bottom, rgba(192,20,51,0.35) 0%, transparent 70%), linear-gradient(180deg, #150307 0%, var(--ink) 100%);
    padding: 5rem 1.5rem 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

    /* Subtle red glow behind the heading */
    .page-hero::before {
        content: "";
        position: absolute;
        top: -60px;
        left: 50%;
        transform: translateX(-50%);
        width: 600px;
        height: 300px;
        border-radius: 50%;
        background: radial-gradient(ellipse, rgba(192,20,51,0.4) 0%, transparent 70%);
        pointer-events: none;
    }

.page-hero__eyebrow {
    font-family: 'Russo One', Impact, sans-serif;
    font-size: 0.78rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--cyan-glow);
    text-shadow: 0 0 10px rgba(0,229,255,0.5);
    margin: 0 0 0.75rem;
}

.page-hero__title {
    font-family: 'Russo One', Impact, sans-serif;
    font-size: clamp(2.2rem, 5vw, 4rem);
    letter-spacing: 0.02em;
    color: #ffffff;
    margin: 0 0 1rem;
    line-height: 1;
}

.page-hero__subtitle {
    font-family: var(--font-body);
    font-size: clamp(0.95rem, 1.5vw, 1.1rem);
    color: rgba(243,239,233,0.7);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.65;
}

/* Cyan underline accent below the hero title, matching section headings */
.page-hero__title-wrap {
    display: inline-block;
    margin-bottom: 1rem;
}

    .page-hero__title-wrap::after {
        content: "";
        display: block;
        height: 3px;
        width: 80px;
        margin: 0.6rem auto 0;
        background: var(--cyan-glow);
        box-shadow: 0 0 10px rgba(0,229,255,0.7);
    }

/* ---- About wrapper ---- */
.about-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 4rem 1.5rem 5rem;
}

/* ---- Mission / intro block ---- */
.about-mission {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: center;
    margin-bottom: 5rem;
}

.about-mission__text h2 {
    font-family: 'Russo One', Impact, sans-serif;
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    color: #ffffff;
    margin: 0 0 1rem;
    position: relative;
    display: inline-block;
}

    .about-mission__text h2::after {
        content: "";
        display: block;
        height: 3px;
        width: 48px;
        margin-top: 0.5rem;
        background: var(--cyan-glow);
        box-shadow: 0 0 8px rgba(0,229,255,0.7);
    }

.about-mission__text p {
    font-family: var(--font-body);
    font-size: 1rem;
    color: rgba(243,239,233,0.75);
    line-height: 1.75;
    margin: 1rem 0 0;
}

/* Logo/image panel on the right side of the mission block */
.about-mission__visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .about-mission__visual img {
        width: 100%;
        max-width: 340px;
        height: auto;
        display: block;
        filter: drop-shadow(0 0 32px rgba(192,20,51,0.5)) drop-shadow(0 0 64px rgba(0,229,255,0.15));
    }

/* ---- Stats row ---- */
.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 5rem;
}

.about-stat {
    background: #120307;
    border: 1px solid rgba(192,20,51,0.45);
    border-radius: 10px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

    .about-stat:hover {
        border-color: var(--cyan-glow);
        box-shadow: 0 0 20px rgba(0,229,255,0.15);
    }

.about-stat__number {
    font-family: 'Russo One', Impact, sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--cyan-glow);
    text-shadow: 0 0 16px rgba(0,229,255,0.5);
    display: block;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.about-stat__label {
    font-family: var(--font-body);
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(243,239,233,0.6);
}

/* ---- Team section ---- */
.about-team__heading {
    font-family: 'Russo One', Impact, sans-serif;
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    color: #ffffff;
    margin: 0 0 2rem;
    display: inline-block;
    position: relative;
}

    .about-team__heading::after {
        content: "";
        display: block;
        height: 3px;
        width: 48px;
        margin-top: 0.5rem;
        background: var(--cyan-glow);
        box-shadow: 0 0 8px rgba(0,229,255,0.7);
    }

.team-grid {
    display: grid;
    /* Fixed 240px tracks: cards never stretch or shrink with the row,
     they just wrap onto the next line when the screen runs out of room */
    grid-template-columns: repeat(auto-fill, 240px);
    justify-content: start;
    gap: 1.75rem;
}

.team-card {
    width: 240px;
    max-width: 100%;
    background: #120307;
    border: 1px solid rgba(192,20,51,0.45);
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

    .team-card:hover {
        transform: translateY(-4px);
        border-color: var(--cyan-glow);
        box-shadow: 0 8px 22px rgba(0,0,0,0.5), 0 0 16px rgba(0,229,255,0.2);
    }

.team-card__photo {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    object-position: top;
    display: block;
    background: linear-gradient(135deg, rgba(192,20,51,0.35), transparent 65%), var(--ink);
}

/* Placeholder shown when no photo is supplied */
.team-card__photo-placeholder {
    width: 100%;
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(192,20,51,0.3), transparent 65%), #120307;
    font-size: 3rem;
    color: rgba(243,239,233,0.15);
}

.team-card__info {
    /* Fixed height so every card is exactly the same size, whatever the
     name or role length */
    height: 88px;
    padding: 0.75rem 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.team-card__name {
    font-family: 'Russo One', Impact, sans-serif;
    font-size: 1rem;
    color: #ffffff;
    margin: 0 0 0.3rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.team-card__role {
    font-family: var(--font-body);
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--cyan-glow);
    margin: 0;
}

/* ---- Responsive (handled in main responsive block above) ---- */



/* ============================================================
   GAME PAGE (Shawarma Hell)
   ============================================================ */
/* Video backdrop: pinned to the viewport so it stays put while the page
   scrolls over it. The dark layer's opacity is driven by scroll (see the
   script in ShawarmaHell.cshtml via the --dim variable). */
.game-backdrop {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background: radial-gradient(circle at 50% 35%, rgba(192,20,51,0.45), transparent 60%), linear-gradient(180deg, #150307 0%, var(--ink) 100%);
}

    .game-backdrop video {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.game-backdrop__dim {
    position: absolute;
    inset: 0;
    background: #000000;
    opacity: var(--dim, 0.15);
    pointer-events: none;
}

/* Everything that scrolls over the backdrop sits above it */
.game-hero,
.game-page,
.site-footer {
    position: relative;
    z-index: 1;
}

/* First screen: video shows through, title and Steam button bottom-left */
.game-hero {
    min-height: calc(100vh - var(--header-h));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 0 2.5rem 3rem;
}

.game-hero__eyebrow {
    font-family: 'Russo One', Impact, sans-serif;
    font-size: 0.78rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--cyan-glow);
    text-shadow: 0 0 10px rgba(0,229,255,0.5), 0 2px 8px rgba(0,0,0,0.8);
    margin: 0 0 0.5rem;
}

.game-hero__title {
    font-family: 'Russo One', Impact, sans-serif;
    font-size: clamp(2.2rem, 6vw, 4.5rem);
    color: #ffffff;
    margin: 0 0 1.5rem;
    line-height: 1;
    text-shadow: 0 2px 20px rgba(0,0,0,0.8);
}

.game-hero__actions {
    display: flex;
}

.game-page {
    max-width: 960px;
    margin: 0 auto;
    padding: 3.5rem 1.5rem 5rem;
}

.game-page__heading {
    font-family: 'Russo One', Impact, sans-serif;
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    color: #ffffff;
    margin: 0 0 1rem;
    display: inline-block;
}

    .game-page__heading::after {
        content: "";
        display: block;
        height: 3px;
        width: 48px;
        margin-top: 0.5rem;
        background: var(--cyan-glow);
        box-shadow: 0 0 8px rgba(0,229,255,0.7);
    }

.game-about p {
    font-family: var(--font-body);
    font-size: 1rem;
    color: rgba(243,239,233,0.75);
    line-height: 1.75;
    margin: 1rem 0 0;
}

.game-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin: 3rem 0;
}

.game-feature {
    background: #120307;
    border: 1px solid rgba(192,20,51,0.45);
    border-radius: 10px;
    padding: 1.5rem 1.25rem;
    text-align: center;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

    .game-feature:hover {
        border-color: var(--cyan-glow);
        box-shadow: 0 0 20px rgba(0,229,255,0.15);
    }

.game-feature__title {
    font-family: 'Russo One', Impact, sans-serif;
    font-size: 1.05rem;
    color: var(--cyan-glow);
    margin: 0 0 0.5rem;
}

.game-feature__text {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: rgba(243,239,233,0.7);
    line-height: 1.6;
    margin: 0;
}

.game-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 1px;
    background: rgba(192,20,51,0.45);
    border: 1px solid rgba(192,20,51,0.45);
    border-radius: 10px;
    overflow: hidden;
}

.game-fact {
    background: #120307;
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.game-fact__label {
    font-family: var(--font-body);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(243,239,233,0.5);
}

.game-fact__value {
    font-family: 'Russo One', Impact, sans-serif;
    font-size: 0.9rem;
    color: #ffffff;
}

@media (max-width:760px) {
    .game-hero {
        padding: 0 1rem 2rem;
    }

    .game-page {
        padding: 2.5rem 1rem 3.5rem;
    }

    .game-features {
        grid-template-columns: 1fr;
        margin: 2rem 0;
    }
}
