/* ═══════════════════════════════════════════════════════════
   TURTLE KNIGHT GAMES — STYLES
   Palette: ink / panel / steel / moss / frost
═══════════════════════════════════════════════════════════ */

@font-face {
    font-family: 'Awery';
    src: url('Content/Company Logo Font/Awery.woff2') format('woff2');
    font-display: swap;
    font-weight: 400 900;
}
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg:          #0C100A;
    --panel:       #15170F;
    --panel-warm:  #1C1A11;
    --steel:       #484C48;
    --silver-moss: #B0B8B0;       /* lifted from #909890 for AA on dark */
    --silver:      #D8E0D8;
    --frost:       #EAF4EA;
    --moss-dark:   #2A6040;
    --moss:        #4AB870;
    --moss-glow:   rgba(74, 184, 112, .45);

    --ease-out: cubic-bezier(.16, 1, .3, 1);
    --ease-in-out: cubic-bezier(.4, 0, .2, 1);

    --max: 1200px;
    --pad: 80px;
}

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

body {
    background-color: var(--bg);
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='70' height='120'%3E%3Cpolygon points='35,0 70,20 70,60 35,80 0,60 0,20' fill='none' stroke='%234AB870' stroke-opacity='0.07' stroke-width='1'/%3E%3Cline x1='35' y1='80' x2='35' y2='120' stroke='%234AB870' stroke-opacity='0.07' stroke-width='1'/%3E%3C/svg%3E"),
        radial-gradient(ellipse 70% 55% at 12% 38%, rgba(42,96,64,.10) 0%, transparent 100%),
        radial-gradient(ellipse 55% 45% at 88% 72%, rgba(42,96,64,.08) 0%, transparent 100%);
    background-size: 70px 120px, auto, auto;
    color: var(--silver);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Grain overlay */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: .04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.88' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
    background-size: 220px 220px;
}

/* Skip link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--moss);
    color: var(--bg);
    padding: 10px 16px;
    z-index: 200;
    text-decoration: none;
    font-weight: 700;
    font-size: .85rem;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.skip-link:focus { top: 0; }

/* ── NAV ──────────────────────────────────── */
#site-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px var(--pad);
    transition: background .3s, padding .3s, border-color .3s;
    border-bottom: 1px solid transparent;
}
#site-nav.scrolled {
    background: rgba(12, 16, 10, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 12px var(--pad);
    border-bottom: 1px solid rgba(72, 76, 72, .25);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}
.nav-logo img {
    height: 32px;
    opacity: .92;
    display: block;
    transition: opacity .2s, transform .3s var(--ease-out);
}
.nav-logo:hover img { opacity: 1; transform: rotate(-8deg); }
.nav-logo-text {
    font-family: 'Awery', sans-serif;
    font-size: 1rem;
    letter-spacing: .08em;
    color: var(--frost);
    opacity: .9;
}
@media (max-width: 640px) {
    .nav-logo-text { display: none; }
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 36px;
}
.nav-links a {
    position: relative;
    color: var(--silver-moss);
    text-decoration: none;
    font-size: .78rem;
    letter-spacing: .15em;
    text-transform: uppercase;
    transition: color .2s;
    padding: 6px 0;
}
.nav-links a::after {
    content: '';
    position: absolute;
    left: 0; right: 0;
    bottom: -2px;
    height: 2px;
    background: var(--moss);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .3s var(--ease-out);
}
.nav-links a:hover { color: var(--frost); }
.nav-links a.active { color: var(--frost); }
.nav-links a.active::after { transform: scaleX(1); }

@media (max-width: 768px) {
    :root { --pad: 20px; }
    #site-nav { padding: 18px var(--pad); }
    .nav-links { gap: 16px; }
    .nav-links a { font-size: .68rem; letter-spacing: .12em; }
}

/* ── HERO ─────────────────────────────────── */
#hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding: 100px var(--pad) 80px;
}

#hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

#hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        radial-gradient(ellipse 90% 70% at 50% 50%, rgba(12,16,10,.30) 0%, rgba(12,16,10,.78) 75%, rgba(12,16,10,.92) 100%),
        linear-gradient(to bottom, rgba(12,16,10,.45) 0%, rgba(12,16,10,.75) 100%);
}

#video-toggle {
    position: absolute;
    bottom: 28px;
    right: 28px;
    z-index: 3;
    width: 44px;
    height: 44px;
    border-radius: 0;
    border: 1px solid var(--steel);
    background: rgba(12,16,10,.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--silver-moss);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .3s var(--ease-out), border-color .3s var(--ease-out), color .2s, transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
    box-shadow: 0 2px 12px rgba(0,0,0,.3);
}
/* Brand corner ticks — hard-edge frame motif from the design system */
#video-toggle::before,
#video-toggle::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    border: 1px solid var(--moss);
    border-right: none;
    border-bottom: none;
    transition: width .3s var(--ease-out), height .3s var(--ease-out);
}
#video-toggle::before { top: -1px; left: -1px; }
#video-toggle::after  { bottom: -1px; right: -1px; transform: rotate(180deg); }
#video-toggle:hover {
    border-color: rgba(74,184,112,.5);
    color: var(--frost);
    background: rgba(12,16,10,.7);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,.4), 0 0 12px rgba(74,184,112,.15);
}
#video-toggle:hover::before,
#video-toggle:hover::after { width: 9px; height: 9px; }
#video-toggle:active {
    transform: translateY(0);
    box-shadow: 0 1px 6px rgba(0,0,0,.3);
    transition-duration: .1s;
}
#video-toggle:focus-visible {
    outline: none;
    border-color: var(--moss);
    box-shadow: 0 0 0 3px var(--moss-glow), 0 4px 20px rgba(0,0,0,.4);
}
#video-toggle svg { fill: currentColor; transition: opacity .2s; }
#video-toggle .icon-play { display: none; }
#video-toggle[aria-pressed="true"] .icon-pause { display: none; }
#video-toggle[aria-pressed="true"] .icon-play { display: block; }

#hero-content {
    position: relative;
    z-index: 2;
    max-width: 880px;
}

#hero-logo {
    width: 160px;
    height: auto;
    margin-bottom: 28px;
    opacity: .95;
    filter: drop-shadow(0 4px 18px rgba(0,0,0,.5));
}

.hero-eyebrow {
    font-size: .72rem;
    color: var(--silver-moss);
    letter-spacing: .32em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

#hero h1 {
    font-family: 'Awery', sans-serif;
    font-size: clamp(2.4rem, 6.5vw, 5.2rem);
    color: var(--frost);
    line-height: 1.05;
    letter-spacing: .03em;
    margin-bottom: 24px;
    text-shadow: 0 2px 32px rgba(0,0,0,.6);
}

.hero-tagline {
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    color: var(--silver);
    line-height: 1.6;
    max-width: 620px;
    margin: 0 auto 44px;
    opacity: .92;
}

.hero-buttons {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 0;
}

/* ── BUTTONS ──────────────────────────────── */
.btn-primary, .btn-secondary {
    padding: 15px 30px;
    font-size: .85rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s, background .2s, border-color .2s, color .2s;
    border: none;
    font-family: inherit;
}
.btn-primary.small, .btn-secondary.small { padding: 11px 22px; font-size: .75rem; }

.btn-primary {
    background: var(--moss);
    color: var(--bg);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(74,184,112,.35), 0 0 0 1px var(--moss-glow);
}

.btn-secondary {
    background: transparent;
    color: var(--silver);
    border: 1px solid var(--steel);
}
.btn-secondary:hover {
    transform: translateY(-2px);
    border-color: var(--moss);
    color: var(--frost);
    background: rgba(74,184,112,.06);
}

/* ── SCROLL INDICATOR ─────────────────────── */
.scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: var(--silver-moss);
    opacity: .7;
    animation: bounce 2.2s ease-in-out infinite;
    transition: opacity .4s;
    display: block;
    line-height: 0;
}
.scroll-indicator svg { width: 26px; height: 26px; }
body.scrolled .scroll-indicator { opacity: 0; pointer-events: none; }

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(8px); }
}

/* ── SECTION SCAFFOLD ─────────────────────── */
section {
    padding: 140px var(--pad);
    position: relative;
}
.section-head {
    max-width: 720px;
    margin: 0 auto 72px;
    text-align: center;
}
.eyebrow, .team-eyebrow {
    display: inline-block;
    font-size: .72rem;
    color: var(--moss);
    letter-spacing: .32em;
    text-transform: uppercase;
    margin-bottom: 18px;
}
.section-title {
    font-family: 'Awery', sans-serif;
    font-size: clamp(2rem, 4vw, 3.2rem);
    color: var(--frost);
    letter-spacing: .04em;
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.1;
}
.section-title.left { text-align: left; }
.section-title span {
    display: inline-block;
    position: relative;
    padding-bottom: 14px;
}
.section-title span::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 44px;
    height: 2px;
    background: var(--moss);
    transform: translateX(-50%);
}
.section-title.left span::after { left: 0; transform: none; }
.section-lede {
    color: var(--silver-moss);
    font-size: 1.02rem;
    line-height: 1.7;
    max-width: 560px;
    margin: 0 auto;
}

/* ── GAMES ────────────────────────────────── */
#games::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(ellipse 65% 50% at 50% 60%, rgba(74,184,112,.06) 0%, transparent 100%);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 820px;
    margin: 0 auto;
    position: relative;
}

/* ── FLIP CARD ────────────────────────────── */
.game-card {
    perspective: 1400px;
    cursor: pointer;
    aspect-ratio: 374/448;
    outline: none;
    border-radius: 6px;
    /* mouse-tracked CSS vars — set by main.js pointermove */
    --mx: 50%;
    --my: 50%;
    --posx: 50%;
    --posy: 50%;
    --hyp: 0;
    --o: 0;
    --tx: 0deg;
    --ty: 0deg;
    --lift: 0;
}
.game-card:focus-visible {
    box-shadow: 0 0 0 3px var(--moss-glow);
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transform:
        translateY(calc(var(--lift) * -8px))
        rotateX(var(--ty))
        rotateY(calc(var(--tx) + var(--flip, 0deg)));
    transition: transform .62s var(--ease-in-out), box-shadow .5s var(--ease-out);
    border-radius: 6px;
    box-shadow: 0 12px 32px rgba(0,0,0,.4);
    will-change: transform;
}
.game-card.flipped .card-inner {
    --flip: 180deg;
    --tx: 0deg;
    --ty: 0deg;
    --lift: 0;
}
.game-card:hover:not(.flipped) .card-inner,
.game-card:focus-visible:not(.flipped) .card-inner {
    transition: transform .15s var(--ease-out), box-shadow .5s var(--ease-out);
    box-shadow:
        0 24px 48px rgba(0,0,0,.55),
        0 0 32px rgba(74,184,112,.25),
        0 0 0 1px rgba(74,184,112,.2);
}

.card-front, .card-back {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 6px;
    overflow: hidden;
}

.card-front {
    background: var(--panel);
    border: 1px solid rgba(208,216,208,.06);
    transform: rotateY(0deg) translateZ(0.01px);
}
.game-card.flipped .card-front {
    pointer-events: none;
}
.game-card:not(.flipped) .card-back {
    pointer-events: none;
}
.card-front img {
    position: relative;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: filter .5s var(--ease-out);
    /* Normal color at rest */
    filter: saturate(.95) brightness(.96);
}
.game-card:hover .card-front img,
.game-card:focus-visible .card-front img {
    filter: saturate(1.05) brightness(1.02);
}

/* ─────────────────────────────────────────────────────────────
   HOLOGRAPHIC CARD EFFECT
   ─────────────────────────────────────────────────────────────
   Direct port of Simey's poke-holo "rare ultra full-art (no mask)"
   pattern (public/css/cards/v-full-art.css + base.css):
     https://github.com/simeydotme/pokemon-cards-css
   The TKG crest plays the role of `illusion.png`: it's used as BOTH
   the background-image foil AND the CSS mask, so the holo rainbow
   only appears inside the crest's silhouette — tiled across the card.

   Cursor-driven vars (set by main.js):
     --mx, --my       cursor in % (radial highlights)
     --posx,--posy    cursor remapped 37-63%/33-67% (foil/stripe shift)
     --hyp            0..1, distance from card center (brightness math)
     --o              0/1, fade in/out toggle
─────────────────────────────────────────────────────────────── */

/* ─── SHINE LAYER ────────────────────────────────────────────
   The crest renders as a WHITE silhouette tiled across the card.
   A second, masked layer paints rainbow shimmer ONLY where the
   logo is AND only concentrated around the cursor — so it reads
   as a white holographic crest that picks up color when you tilt
   the card. The cover image stays fully visible behind.
─────────────────────────────────────────────────────────────── */
.card-shine {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    border-radius: inherit;
    overflow: hidden;

    /* Per-card shine source. Fallback = tiled TKG crest at 90%; games
       can override by setting --shine-src / --shine-size / --shine-repeat
       on .game-card (see main.js buildCard). Fallbacks live INSIDE the
       var() calls so inline overrides on .game-card take effect. */
    background-image: var(--shine-src, url("Content/LogoWhite.webp"));
    background-size: var(--shine-size, 90%);
    background-position: center center;
    background-repeat: var(--shine-repeat, space);

    /* `screen` brightens the cover where the shine source is opaque — it
       reads as white-on-cover without flattening the image. */
    mix-blend-mode: screen;
    /* Default logo strength = .27 (TKG crest is subtle). Custom per-game
       holo images set --shine-intensity: 1 to override — those images
       are expected to bake their own opacity/contrast into the asset. */
    opacity: calc(var(--o) * var(--shine-intensity, .27));
    transition: opacity .6s var(--ease-out);
}

/* Rainbow tint, masked to the logo silhouette + cursor halo.
   The mask uses the SAME tiled logo image, so colours appear only
   inside the crest shapes; the radial gradient concentrates the
   colour around the pointer. */
.card-shine::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;

    background-image: radial-gradient(
        farthest-corner circle at var(--mx) var(--my),
        hsl(295, 100%, 75%) 0%,
        hsl(220, 100%, 75%) 18%,
        hsl(180, 100%, 75%) 35%,
        hsl(60,  100%, 75%) 55%,
        hsl(0,   100%, 75%) 80%,
        transparent 110%
    );

    -webkit-mask-image: var(--shine-src, url("Content/LogoWhite.webp"));
            mask-image: var(--shine-src, url("Content/LogoWhite.webp"));
    -webkit-mask-size: var(--shine-size, 90%);
            mask-size: var(--shine-size, 90%);
    -webkit-mask-position: center center;
            mask-position: center center;
    -webkit-mask-repeat: var(--shine-repeat, space);
            mask-repeat: var(--shine-repeat, space);

    /* The rainbow stacks on top of the white logo within the masked
       logo silhouette. Opacity scales with cursor-distance-from-center
       for the "tilt to see colours move" feel. */
    opacity: calc(var(--o) * (1.1 + var(--hyp) * .8));
    transition: opacity .6s var(--ease-out);
}

/* ─── GLARE LAYER ────────────────────────────────────────────
   Soft white radial highlight at the cursor — the "wet plastic"
   surface shine sitting on top of the holo.
─────────────────────────────────────────────────────────────── */
.card-glare {
    position: absolute;
    inset: 0;
    z-index: 4;
    pointer-events: none;
    border-radius: inherit;
    overflow: hidden;

    background-image: radial-gradient(
        farthest-corner circle at var(--mx) var(--my),
        hsla(0, 0%, 100%, .8) 10%,
        hsla(0, 0%, 100%, .65) 20%,
        hsla(0, 0%, 0%, .5) 90%
    );

    mix-blend-mode: overlay;
    opacity: calc(var(--o) * .14);
    transition: opacity .6s var(--ease-out);
}

/* Hide both layers when the card is flipped (back face). */
.game-card.flipped .card-shine,
.game-card.flipped .card-glare {
    opacity: 0 !important;
}

.card-front-overlay {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    z-index: 5;
    padding: 18px 20px 16px;
    background: linear-gradient(to top, rgba(12,16,10,.95) 0%, rgba(12,16,10,.7) 60%, transparent 100%);
    display: flex;
    flex-direction: column;
    gap: 4px;
    transform: translateY(0);
    transition: opacity .4s, transform .4s var(--ease-out);
}
.game-card.flipped .card-front-overlay {
    opacity: 0;
    transform: translateY(20px);
}
.card-front-overlay .game-title {
    font-family: 'Awery', sans-serif;
    font-size: 1.15rem;
    color: var(--frost);
    letter-spacing: .04em;
}
.card-front-overlay .game-genre {
    font-size: .7rem;
    color: var(--silver-moss);
    letter-spacing: .18em;
    text-transform: uppercase;
}

.card-back {
    transform: rotateY(180deg);
    background:
        linear-gradient(160deg, rgba(42,96,64,.18) 0%, transparent 60%),
        var(--panel);
    border: 1px solid rgba(74,184,112,.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 32px 26px;
    text-align: center;
}
.card-back::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--moss), transparent);
}

.card-back-eyebrow {
    font-family: 'Awery', sans-serif;
    font-size: 1.3rem;
    color: var(--frost);
    letter-spacing: .04em;
    line-height: 1.2;
}
.card-back-desc {
    color: var(--silver-moss);
    font-size: .88rem;
    line-height: 1.55;
    max-width: 240px;
}

.store-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    margin-top: 4px;
}

.store-btn {
    background: transparent;
    color: var(--silver);
    border: 1px solid rgba(176,184,176,.35);
    padding: 10px 18px;
    font-size: .74rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    text-decoration: none;
    display: block;
    width: 100%;
    text-align: center;
    transition: background .2s, border-color .2s, color .2s;
    cursor: pointer;
    font-family: inherit;
}
.store-btn:hover {
    background: rgba(74,184,112,.15);
    border-color: var(--moss);
    color: var(--frost);
}
.store-btn.disabled { opacity: .35; cursor: default; pointer-events: none; }
.store-btn.presskit { border-color: rgba(74,184,112,.3); color: var(--silver-moss); }
.store-btn.details-btn { background: rgba(74,184,112,.08); border-color: var(--moss); color: var(--frost); }

/* ── NEWS ─────────────────────────────────── */
#news {
    background: linear-gradient(180deg, transparent 0%, rgba(28,26,17,.5) 50%, transparent 100%);
}
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
}
.news-card {
    background: var(--panel);
    border: 1px solid rgba(72,76,72,.3);
    padding: 28px 26px 24px;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: transform .3s var(--ease-out), border-color .3s, background .3s;
    position: relative;
    overflow: hidden;
}
.news-card::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 2px;
    background: var(--moss);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform .4s var(--ease-out);
}
.news-card:hover {
    transform: translateY(-4px);
    border-color: rgba(74,184,112,.4);
    background: rgba(28,26,17,.6);
}
.news-card:hover::before { transform: scaleY(1); }
.news-date {
    font-size: .7rem;
    color: var(--silver-moss);
    letter-spacing: .2em;
    text-transform: uppercase;
}
.news-tag {
    align-self: flex-start;
    font-size: .65rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--moss);
    border: 1px solid rgba(74,184,112,.4);
    padding: 3px 9px;
}
.news-card h3 {
    font-family: 'Awery', sans-serif;
    font-size: 1.2rem;
    color: var(--frost);
    letter-spacing: .03em;
    margin-top: 4px;
}
.news-card p {
    color: var(--silver-moss);
    font-size: .92rem;
    line-height: 1.6;
}
.news-cta {
    margin-top: auto;
    padding-top: 14px;
    font-size: .72rem;
    color: var(--moss);
    letter-spacing: .15em;
    text-transform: uppercase;
    font-weight: 700;
}

/* ── ABOUT ────────────────────────────────── */
#about {
    background: var(--panel-warm);
    position: relative;
    overflow: hidden;
}
#about::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 50% 40% at 20% 20%, rgba(74,184,112,.06) 0%, transparent 100%),
        radial-gradient(ellipse 40% 35% at 90% 80%, rgba(74,184,112,.04) 0%, transparent 100%);
    pointer-events: none;
}
.about-inner {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 80px;
    max-width: 1100px;
    margin: 0 auto;
    align-items: center;
    position: relative;
}
.about-text p {
    max-width: 540px;
    font-size: 1rem;
    line-height: 1.8;
    color: var(--silver);
    margin-bottom: 18px;
}
.about-text p strong {
    color: var(--frost);
    font-family: 'Awery', sans-serif;
    font-size: 1.1em;
    letter-spacing: .04em;
}
.about-stats {
    list-style: none;
    display: flex;
    gap: 40px;
    margin-top: 36px;
    padding-top: 32px;
    border-top: 1px solid rgba(72,76,72,.4);
}
.about-stats li {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.about-stats strong {
    font-family: 'Awery', sans-serif;
    font-size: 2rem;
    color: var(--moss);
    letter-spacing: .04em;
    line-height: 1;
}
.about-stats span {
    font-size: .72rem;
    color: var(--silver-moss);
    letter-spacing: .18em;
    text-transform: uppercase;
}
.about-crest {
    display: flex;
    justify-content: center;
    align-items: center;
}
.about-crest img {
    width: 240px;
    height: auto;
    opacity: .65;
    filter: drop-shadow(0 8px 30px rgba(74,184,112,.18));
    animation: float 8s ease-in-out infinite;
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-10px); }
}

.team-grid {
    max-width: 1100px;
    margin: 100px auto 0;
    text-align: center;
    position: relative;
}
.team-eyebrow {
    margin-bottom: 32px;
}
.team-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.team-card {
    background: var(--bg);
    border: 1px solid rgba(72,76,72,.35);
    padding: 28px 24px 26px;
    text-align: center;
    transition: border-color .3s, transform .3s var(--ease-out);
}
.team-card:hover { border-color: rgba(74,184,112,.35); transform: translateY(-3px); }
.team-avatar {
    width: 96px;
    height: 96px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background:
        repeating-linear-gradient(45deg, rgba(74,184,112,.08) 0 8px, transparent 8px 16px),
        var(--panel);
    border: 1px dashed rgba(74,184,112,.3);
    display: flex;
    align-items: center;
    justify-content: center;
}
.team-avatar span {
    font-family: 'SF Mono', Menlo, Consolas, monospace;
    font-size: .65rem;
    color: var(--moss);
    letter-spacing: .15em;
    text-transform: uppercase;
}
.team-avatar.has-image {
    background: var(--panel);
    border: 1px solid rgba(74,184,112,.25);
    overflow: hidden;
}
.team-avatar.has-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    transition: transform .4s var(--ease-out);
}
.team-card:hover .team-avatar.has-image img { transform: scale(1.08); }
.team-card h4 {
    font-family: 'Awery', sans-serif;
    font-size: 1.05rem;
    color: var(--frost);
    letter-spacing: .04em;
    margin-bottom: 4px;
}
.team-role {
    font-size: .72rem;
    color: var(--silver-moss);
    letter-spacing: .18em;
    text-transform: uppercase;
}

/* ── CONTACT ──────────────────────────────── */
.contact-inner {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
}
.contact-subtitle {
    color: var(--silver-moss);
    font-size: 1.02rem;
    letter-spacing: .02em;
    line-height: 1.7;
    margin-bottom: 44px;
}
.contact-email {
    display: block;
    color: var(--silver-moss);
    text-decoration: none;
    font-size: .92rem;
    letter-spacing: .05em;
    margin-top: 24px;
    min-height: 1.2em;       /* reserve space — no layout shift */
    transition: color .2s;
}
.contact-email:hover { color: var(--moss); }

.social-links {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-top: 48px;
    flex-wrap: wrap;
}
.social-link {
    color: var(--silver-moss);
    text-decoration: none;
    font-size: .76rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    padding: 10px 20px;
    border: 1px solid var(--steel);
    transition: border-color .2s, color .2s, background .2s;
}
.social-link:hover {
    border-color: var(--moss);
    color: var(--frost);
    background: rgba(74,184,112,.08);
}

/* ── FOOTER ───────────────────────────────── */
footer {
    background: var(--panel);
    padding: 32px var(--pad);
    border-top: 1px solid rgba(72,76,72,.25);
}
.footer-inner {
    max-width: var(--max);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}
.footer-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}
.footer-brand img {
    height: 28px;
    opacity: .5;
}
.footer-brand p {
    color: var(--steel);
    font-size: .8rem;
}
.footer-links { display: flex; gap: 24px; }
.footer-links a {
    color: var(--steel);
    text-decoration: none;
    font-size: .8rem;
    transition: color .2s;
}
.footer-links a:hover { color: var(--silver-moss); }

/* ── MODAL ────────────────────────────────── */
.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    transition: opacity .3s var(--ease-out);
    pointer-events: none;
}
.modal[hidden] { display: none; }
.modal.open {
    opacity: 1;
    pointer-events: auto;
}
.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(6, 10, 6, .82);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: none;
    cursor: pointer;
}
.modal-panel {
    position: relative;
    background: var(--panel);
    border: 1px solid rgba(74,184,112,.2);
    border-radius: 6px;
    max-width: 960px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 30px 80px rgba(0,0,0,.6), 0 0 0 1px rgba(74,184,112,.08);
    transform: translateY(20px) scale(.98);
    transition: transform .3s var(--ease-out);
}
.modal.open .modal-panel { transform: translateY(0) scale(1); }
.modal-panel::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--moss), transparent);
}
.modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 44px;
    height: 44px;
    border-radius: 0;
    background: rgba(12,16,10,.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--steel);
    color: var(--silver-moss);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    transition: background .3s var(--ease-out), border-color .3s var(--ease-out), color .2s, box-shadow .3s var(--ease-out);
    box-shadow: 0 2px 12px rgba(0,0,0,.3);
}
/* Brand corner ticks — hard-edge frame motif from the design system */
.modal-close::before,
.modal-close::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    border: 1px solid var(--moss);
    border-right: none;
    border-bottom: none;
    transition: width .3s var(--ease-out), height .3s var(--ease-out);
}
.modal-close::before { top: -1px; left: -1px; }
.modal-close::after  { bottom: -1px; right: -1px; transform: rotate(180deg); }
.modal-close > svg { transition: transform .3s var(--ease-out); }
.modal-close:hover {
    background: rgba(74,184,112,.12);
    border-color: rgba(74,184,112,.5);
    color: var(--frost);
    box-shadow: 0 6px 20px rgba(0,0,0,.4), 0 0 12px rgba(74,184,112,.15);
}
.modal-close:hover > svg { transform: rotate(90deg); }
.modal-close:hover::before,
.modal-close:hover::after { width: 9px; height: 9px; }
.modal-close:active > svg {
    transform: rotate(90deg) scale(.9);
    transition-duration: .1s;
}
.modal-close:focus-visible {
    outline: none;
    border-color: var(--moss);
    box-shadow: 0 0 0 3px var(--moss-glow), 0 4px 20px rgba(0,0,0,.4);
}

.modal-header {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 32px;
    padding: 40px 40px 32px;
    border-bottom: 1px solid rgba(72,76,72,.3);
}
.modal-cover {
    width: 100%;
    aspect-ratio: 374/448;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid rgba(208,216,208,.08);
    box-shadow: 0 12px 28px rgba(0,0,0,.4);
}
.modal-heading {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-self: center;
}
.modal-status {
    font-size: .7rem;
    color: var(--moss);
    letter-spacing: .22em;
    text-transform: uppercase;
}
#modal-title {
    font-family: 'Awery', sans-serif;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    color: var(--frost);
    letter-spacing: .03em;
    line-height: 1.1;
}
.modal-tagline {
    color: var(--silver);
    font-size: 1rem;
    line-height: 1.6;
    margin-top: 4px;
}
.modal-genre {
    font-size: .72rem;
    color: var(--silver-moss);
    letter-spacing: .18em;
    text-transform: uppercase;
    margin-top: 6px;
}
.modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 18px;
    flex-wrap: wrap;
}

.modal-body { padding: 36px 40px 44px; }
.modal-section-title {
    font-family: 'Awery', sans-serif;
    font-size: 1rem;
    color: var(--frost);
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(72,76,72,.3);
}
.modal-section-title:not(:first-child) { margin-top: 36px; }

.modal-trailer {
    width: 100%;
    aspect-ratio: 16/9;
    background: var(--bg);
    border: 1px solid rgba(72,76,72,.3);
    border-radius: 4px;
    overflow: hidden;
}
.modal-trailer iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ── Click-to-Load trailer consent button (DSGVO) ──
   Self-hosted cover image as background; zero Google contact until clicked. */
.trailer-consent {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    width: 100%;
    height: 100%;
    padding: 24px;
    background-color: var(--bg);
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(72,76,72,.3);
    border-radius: 4px;
    color: var(--frost);
    cursor: pointer;
    overflow: hidden;
    text-align: center;
    transition: border-color .25s ease;
}
.trailer-consent:hover,
.trailer-consent:focus-visible {
    border-color: rgba(74,184,112,.55);
    outline: none;
}
.trailer-consent-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(12,16,10,.55) 0%, rgba(12,16,10,.85) 100%);
    transition: background .25s ease;
}
.trailer-consent:hover .trailer-consent-scrim {
    background: linear-gradient(180deg, rgba(12,16,10,.45) 0%, rgba(12,16,10,.8) 100%);
}
.trailer-consent-play {
    position: relative;
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(74,184,112,.18);
    border: 1.5px solid rgba(74,184,112,.7);
    color: var(--frost);
    transition: transform .25s var(--ease-out), background .25s ease, border-color .25s ease;
}
.trailer-consent-play svg { margin-left: 4px; }
.trailer-consent:hover .trailer-consent-play {
    transform: scale(1.08);
    background: rgba(74,184,112,.32);
    border-color: rgba(74,184,112,1);
}
.trailer-consent-text {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 520px;
}
.trailer-consent-title {
    font-family: 'Awery', sans-serif;
    font-size: 1.15rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--frost);
}
.trailer-consent-note {
    font-size: .78rem;
    line-height: 1.5;
    color: var(--silver-moss);
    letter-spacing: .02em;
}
@media (max-width: 600px) {
    .trailer-consent-play { width: 56px; height: 56px; }
    .trailer-consent-play svg { width: 22px; height: 22px; }
    .trailer-consent-note { font-size: .72rem; }
}

.modal-shots {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}
.modal-shot {
    aspect-ratio: 16/9;
    background: var(--bg);
    border: 1px solid rgba(72,76,72,.3);
    border-radius: 4px;
    overflow: hidden;
}
.modal-shot img { width: 100%; height: 100%; object-fit: cover; display: block; }

.placeholder-media {
    width: 100%;
    height: 100%;
    background:
        repeating-linear-gradient(135deg, rgba(74,184,112,.06) 0 12px, transparent 12px 24px),
        var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed rgba(74,184,112,.25);
    border-radius: 4px;
}
.placeholder-label {
    font-family: 'SF Mono', Menlo, Consolas, monospace;
    font-size: .72rem;
    color: var(--moss);
    letter-spacing: .15em;
    text-transform: uppercase;
    text-align: center;
    padding: 0 12px;
}

/* ── RESPONSIVE ───────────────────────────── */
@media (max-width: 900px) {
    .about-inner { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .about-text p { margin-left: auto; margin-right: auto; }
    .section-title.left { text-align: center; }
    .section-title.left span::after { left: 50%; transform: translateX(-50%); }
    .about-stats { justify-content: center; }
    .about-crest { order: -1; }
    .about-crest img { width: 160px; }
    .news-grid { grid-template-columns: 1fr; }
    .team-cards { grid-template-columns: 1fr; max-width: 320px; margin: 0 auto; }
    .modal-header { grid-template-columns: 1fr; gap: 24px; padding: 36px 24px 28px; text-align: center; }
    .modal-cover { max-width: 200px; margin: 0 auto; }
    .modal-actions { justify-content: center; }
    .modal-shots { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    section { padding: 90px var(--pad); }
    .section-head { margin-bottom: 48px; }
    .games-grid { grid-template-columns: 1fr; max-width: 360px; gap: 18px; }
    .hero-buttons { flex-direction: column; align-items: center; }
    .btn-primary, .btn-secondary { width: 240px; text-align: center; }
    .modal-body { padding: 28px 22px 36px; }
    .modal-shots { grid-template-columns: 1fr; }
    .about-stats { flex-wrap: wrap; gap: 24px; }
    .footer-inner { flex-direction: column; gap: 16px; text-align: center; }
    .footer-brand { flex-direction: column; gap: 8px; }
    #hero { padding: 100px var(--pad) 60px; }
    #hero-logo { width: 120px; margin-bottom: 20px; }
    #video-toggle { bottom: 16px; right: 16px; width: 40px; height: 40px; border-radius: 0; }
}

