/* MoxensGameDev - shared site styles (homepage, game pages, imprint).
   Per-game colour: set --accent (and optionally --accent-2) on <body> or a card. */

:root {
    --bg: #0b0b12;
    --bg-raise: #11111b;
    --card: #171726;
    --card-hi: #1f1f33;
    --line: rgba(255, 255, 255, 0.08);
    --line-hi: rgba(255, 255, 255, 0.18);
    --cyan: #7DD3E8;
    --orange: #E8A838;
    --orange-deep: #C4892E;
    --green: #6fd08c;
    --text: #f2f2f5;
    --text-dim: #a9a9bb;
    --text-faint: #72728a;
    --accent: var(--cyan);
    --accent-2: var(--orange);
    --radius: 14px;
    --radius-sm: 8px;
    --wrap: 1200px;
    --gutter: clamp(16px, 4vw, 32px);
    --nav-h: 64px;
    --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-pixel: 'Press Start 2P', ui-monospace, monospace;
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }

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

img, video { display: block; max-width: 100%; }
a { color: inherit; }
ul { list-style: none; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-link {
    position: absolute; left: 16px; top: -60px; z-index: 2000;
    background: var(--accent); color: #000; padding: 0.6rem 1rem; border-radius: var(--radius-sm);
    font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.ico { width: 1.15em; height: 1.15em; fill: currentColor; flex-shrink: 0; }

/* ---------- Navigation ---------- */

.site-nav {
    position: fixed; inset: 0 0 auto 0; z-index: 1000;
    height: var(--nav-h);
    background: linear-gradient(to bottom, rgba(11, 11, 18, 0.9), rgba(11, 11, 18, 0));
    transition: background 0.25s, box-shadow 0.25s;
}
.site-nav.is-solid,
.site-nav.is-open {
    background: rgba(11, 11, 18, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 var(--line);
}

.nav-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }

.brand {
    display: inline-flex; align-items: center; gap: 0.6rem;
    font-family: var(--font-pixel); font-size: 0.72rem; color: var(--cyan);
    text-decoration: none; white-space: nowrap;
}
.brand img { width: 28px; height: 28px; image-rendering: pixelated; }

.nav-menu { display: flex; align-items: center; gap: 1.75rem; }
.nav-links { display: flex; align-items: center; gap: 0.25rem; }
.nav-links > li { position: relative; }
.nav-links > li > a {
    display: inline-flex; align-items: center; gap: 0.3rem;
    padding: 0.5rem 0.75rem; border-radius: var(--radius-sm);
    font-size: 0.92rem; font-weight: 500; color: var(--text); text-decoration: none;
    transition: color 0.2s, background 0.2s;
}
.nav-links > li > a:hover,
.nav-links > li > a[aria-current="page"] { color: var(--cyan); }
.nav-links .caret { width: 0.8em; height: 0.8em; fill: none; stroke: currentColor; stroke-width: 2.5; opacity: 0.7; }

.drop {
    position: absolute; top: calc(100% + 6px); left: 0; min-width: 240px;
    background: var(--card); border: 1px solid var(--line-hi); border-radius: var(--radius);
    padding: 0.5rem; box-shadow: var(--shadow);
    opacity: 0; visibility: hidden; transform: translateY(-4px);
    transition: opacity 0.18s, transform 0.18s, visibility 0.18s;
}
.drop::before { content: ''; position: absolute; inset: -10px 0 auto 0; height: 10px; } /* hover bridge */
.has-drop:hover > .drop,
.has-drop:focus-within > .drop { opacity: 1; visibility: visible; transform: translateY(0); }
.drop a {
    display: flex; align-items: center; gap: 0.7rem;
    padding: 0.55rem 0.7rem; border-radius: var(--radius-sm);
    font-size: 0.9rem; color: var(--text); text-decoration: none;
}
.drop a:hover, .drop a[aria-current="page"] { background: var(--card-hi); color: var(--cyan); }
.drop .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.drop small { margin-left: auto; color: var(--text-faint); font-size: 0.72rem; white-space: nowrap; }

.nav-social { display: flex; gap: 0.4rem; }
.icon-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.05); color: var(--text-dim); text-decoration: none;
    transition: background 0.2s, color 0.2s;
}
.icon-btn:hover { background: var(--cyan); color: #000; }
.icon-btn .ico { width: 18px; height: 18px; }

.nav-toggle {
    display: none; width: 44px; height: 44px; border: 0; border-radius: var(--radius-sm);
    background: transparent; color: var(--text); cursor: pointer; position: relative;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
    position: absolute; left: 11px; width: 22px; height: 2px; background: currentColor;
    border-radius: 2px; transition: transform 0.2s, opacity 0.2s; content: '';
}
.nav-toggle span { top: 21px; }
.nav-toggle span::before { left: 0; top: -7px; }
.nav-toggle span::after { left: 0; top: 7px; }
.site-nav.is-open .nav-toggle span { background: transparent; }
.site-nav.is-open .nav-toggle span::before { transform: translateY(7px) rotate(45deg); }
.site-nav.is-open .nav-toggle span::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 960px) {
    .nav-toggle { display: block; }
    .nav-menu {
        position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0;
        flex-direction: column; align-items: stretch; gap: 1.5rem;
        padding: 1rem var(--gutter) 2rem; overflow-y: auto;
        background: rgba(11, 11, 18, 0.98);
        opacity: 0; visibility: hidden; transform: translateY(-8px);
        transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
    }
    .site-nav.is-open .nav-menu { opacity: 1; visibility: visible; transform: none; }
    .nav-links { flex-direction: column; align-items: stretch; gap: 0; }
    .nav-links > li { border-bottom: 1px solid var(--line); }
    .nav-links > li > a { padding: 0.9rem 0.25rem; font-size: 1.05rem; }
    .nav-links .caret { display: none; }
    .drop {
        position: static; opacity: 1; visibility: visible; transform: none;
        background: transparent; border: 0; box-shadow: none; padding: 0 0 0.75rem 0.25rem; min-width: 0;
    }
    .drop::before { display: none; }
    .nav-social { justify-content: flex-start; }
    body.nav-locked { overflow: hidden; }
}

/* ---------- Buttons, badges, chips ---------- */

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
    padding: 0.85rem 1.5rem; border-radius: var(--radius-sm); border: 2px solid transparent;
    font: 600 0.98rem/1.2 var(--font); text-decoration: none; cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s, border-color 0.2s;
    white-space: nowrap;
}
.btn-primary { background: linear-gradient(135deg, var(--orange), var(--orange-deep)); color: #111; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(232, 168, 56, 0.3); }
.btn-accent { background: var(--accent); color: #0b0b12; }
.btn-accent:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35); filter: brightness(1.08); }
.btn-ghost { background: rgba(11, 11, 18, 0.35); color: var(--text); border-color: var(--line-hi); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: 0.55rem 1rem; font-size: 0.88rem; }
.btn[aria-disabled="true"] { opacity: 0.55; pointer-events: none; }

.badge {
    display: inline-flex; align-items: center; gap: 0.4rem;
    padding: 0.3rem 0.65rem; border-radius: 999px;
    font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
    background: rgba(11, 11, 18, 0.75); border: 1px solid var(--line-hi); color: var(--text);
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.badge::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--text-faint); }
.badge--live::before { background: var(--green); box-shadow: 0 0 8px var(--green); }
.badge--wishlist::before { background: var(--orange); }
.badge--soon::before { background: var(--cyan); }
.badge--dev::before { background: #b58cff; }

.tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tags li {
    font-size: 0.78rem; color: var(--text-dim);
    padding: 0.2rem 0.6rem; border-radius: 6px; background: rgba(255, 255, 255, 0.05);
}

.store-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.store-chip {
    position: relative; z-index: 2;
    display: inline-flex; align-items: center; gap: 0.45rem;
    padding: 0.45rem 0.75rem; border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line);
    font-size: 0.82rem; font-weight: 600; color: var(--text); text-decoration: none;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}
a.store-chip:hover { border-color: var(--accent); color: var(--accent); }
.store-chip small { font-weight: 500; color: var(--text-faint); font-size: 0.74rem; }
.store-chip.is-soon { color: var(--text-dim); border-style: dashed; }

/* Big store buttons on game pages */
.store-btn {
    display: inline-flex; align-items: center; gap: 0.75rem;
    padding: 0.65rem 1.15rem 0.65rem 0.95rem; border-radius: 10px;
    background: #000; border: 1px solid var(--line-hi); color: #fff; text-decoration: none;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.store-btn .ico { width: 26px; height: 26px; }
.store-btn span { display: flex; flex-direction: column; line-height: 1.15; }
.store-btn small { font-size: 0.68rem; color: #c9c9d6; text-transform: uppercase; letter-spacing: 0.06em; }
.store-btn strong { font-size: 1.05rem; font-weight: 700; }
a.store-btn:hover { transform: translateY(-2px); border-color: var(--accent); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4); }
.store-btn.is-soon { background: rgba(0, 0, 0, 0.45); border-style: dashed; color: #d8d8e2; cursor: default; }
.store-btn.is-primary { background: var(--accent); color: #0b0b12; border-color: transparent; }
.store-btn.is-primary small { color: rgba(11, 11, 18, 0.7); }

/* ---------- Sections ---------- */

.section { padding: clamp(4rem, 9vw, 7rem) 0; }
.section--raise { background: var(--bg-raise); border-block: 1px solid var(--line); }

.section-head { margin-bottom: clamp(2rem, 4vw, 3rem); max-width: 720px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker {
    display: inline-block; margin-bottom: 1rem;
    font-family: var(--font-pixel); font-size: 0.68rem; line-height: 1.6;
    color: var(--accent); letter-spacing: 0.04em; text-transform: uppercase;
}
.section-title { font-size: clamp(1.75rem, 3.6vw, 2.6rem); line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; }
.section-lead { margin-top: 0.9rem; color: var(--text-dim); font-size: 1.08rem; }

/* ---------- Homepage hero ---------- */

.hero {
    position: relative; min-height: min(100svh, 980px); display: flex; align-items: flex-end;
    padding: calc(var(--nav-h) + 3rem) 0 0; overflow: hidden; isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.hero::after {
    content: ''; position: absolute; inset: 0; z-index: -1;
    background:
        linear-gradient(90deg, rgba(11, 11, 18, 0.88) 0%, rgba(11, 11, 18, 0.55) 45%, rgba(11, 11, 18, 0.1) 75%),
        linear-gradient(to bottom, rgba(11, 11, 18, 0) 55%, var(--bg) 100%);
}
.hero-content { padding-bottom: clamp(3rem, 7vw, 5rem); max-width: 640px; }
.hero-logo { width: min(440px, 85%); height: auto; margin: 0.25rem 0 1.25rem; filter: drop-shadow(0 0 28px rgba(91, 192, 222, 0.35)); }
.hero-tagline { font-size: clamp(1.05rem, 1.8vw, 1.22rem); color: var(--text); text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7); margin-bottom: 1.75rem; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero-meta { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }

.studio-strip { position: relative; z-index: 1; border-top: 1px solid var(--line); background: rgba(11, 11, 18, 0.7); }
.studio-strip .wrap {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem;
    padding-top: 1.1rem; padding-bottom: 1.1rem;
}
.studio-strip p { color: var(--text-dim); font-size: 0.95rem; }
.studio-strip strong { color: var(--text); }
.strip-stats { display: flex; gap: 1.75rem; }
.strip-stats a { text-decoration: none; display: flex; align-items: baseline; gap: 0.45rem; color: var(--text-dim); font-size: 0.9rem; }
.strip-stats a:hover { color: var(--cyan); }
.strip-stats b { font-family: var(--font-pixel); font-size: 1rem; color: var(--orange); }

@media (max-width: 700px) {
    .hero::after, .game-hero::after {
        background:
            radial-gradient(ellipse at 20% 100%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 60%),
            linear-gradient(to bottom, rgba(11, 11, 18, 0.25) 0%, rgba(11, 11, 18, 0.72) 42%, rgba(11, 11, 18, 0.9) 75%, var(--bg) 100%);
    }
}

/* ---------- Game cards (homepage + "more games") ---------- */

.card-grid { display: grid; gap: clamp(1rem, 2.4vw, 1.75rem); }
.card-grid--pc { grid-template-columns: repeat(3, 1fr); }
.card-grid--mobile { grid-template-columns: repeat(2, 1fr); }
.card-grid--more { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
@media (max-width: 900px) { .card-grid--pc { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .card-grid--pc, .card-grid--mobile { grid-template-columns: 1fr; } }

.card {
    position: relative; display: flex; flex-direction: column;
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
    transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 70%, transparent); box-shadow: var(--shadow); }
.card-media { position: relative; display: block; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.card--app .card-media { aspect-ratio: 1024 / 500; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.card:hover .card-media img { transform: scale(1.04); }
.card-body .badge { align-self: flex-start; background: rgba(255, 255, 255, 0.04); backdrop-filter: none; -webkit-backdrop-filter: none; }
.card-media::after {
    content: ''; position: absolute; inset: auto 0 0 0; height: 40%;
    background: linear-gradient(to bottom, transparent, var(--card));
}
.card-body { display: flex; flex-direction: column; gap: 0.8rem; padding: 1.15rem 1.25rem 1.3rem; flex-grow: 1; }
.card h3 { font-size: 1.22rem; line-height: 1.25; font-weight: 750; }
.card h3 a { text-decoration: none; }
.card h3 a::after { content: ''; position: absolute; inset: 0; z-index: 1; } /* whole card is the link */
.card p { color: var(--text-dim); font-size: 0.95rem; flex-grow: 1; }
.card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-top: 0.2rem; }
.card-more { margin-left: auto; font-size: 0.85rem; font-weight: 600; color: var(--accent); white-space: nowrap; }

.card--app .card-body { padding-top: 0; }
.app-head { display: flex; align-items: flex-end; gap: 0.9rem; margin-top: -30px; position: relative; z-index: 1; }
.app-icon {
    width: 68px; height: 68px; border-radius: 16px; flex-shrink: 0;
    border: 3px solid var(--card); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45); background: var(--card-hi);
}
.app-head > div { display: flex; flex-direction: column; align-items: flex-start; gap: 0.45rem; }
.app-head h3 { padding-bottom: 0.15rem; }

/* Featured flagship card (homepage) */
.feature-card-xl {
    display: grid; grid-template-columns: 1.15fr 1fr; overflow: hidden;
    background: var(--card); border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px);
}
.feature-card-xl .media { position: relative; min-height: 320px; }
.feature-card-xl .media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.feature-card-xl .body { padding: clamp(1.5rem, 4vw, 3rem); display: flex; flex-direction: column; gap: 1rem; justify-content: center; }
@media (max-width: 860px) { .feature-card-xl { grid-template-columns: 1fr; } .feature-card-xl .media { min-height: 0; aspect-ratio: 16 / 9; } }

/* ---------- Press quotes ---------- */

.quote-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.quote {
    position: relative; display: flex; flex-direction: column; gap: 1rem;
    padding: 1.75rem 1.75rem 1.5rem; border-radius: var(--radius);
    background: linear-gradient(135deg, var(--card), var(--card-hi)); border: 1px solid var(--line);
}
.quote::before {
    content: '\201C'; position: absolute; top: 0.6rem; right: 1.25rem;
    font: 800 4.5rem/1 Georgia, serif; color: color-mix(in srgb, var(--accent) 35%, transparent);
}
.quote blockquote { font-size: 1.08rem; line-height: 1.55; color: var(--text); padding-right: 2.5rem; }
.quote .translation { font-size: 0.85rem; color: var(--text-faint); font-style: italic; }
.quote figcaption { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-size: 0.85rem; }
.quote cite { font-style: normal; font-weight: 700; color: var(--accent); letter-spacing: 0.03em; }
.quote figcaption a { color: var(--text-dim); text-decoration: none; }
.quote figcaption a:hover { color: var(--accent); }

/* ---------- About / contact ---------- */

.about-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.about-text p { color: var(--text-dim); margin-bottom: 1rem; font-size: 1.05rem; }
.about-text p strong { color: var(--text); }
.value-list { display: grid; gap: 0.9rem; }
.value-list li {
    display: flex; gap: 0.9rem; padding: 1rem 1.15rem;
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
}
.value-list .num { font-family: var(--font-pixel); font-size: 0.75rem; color: var(--orange); padding-top: 0.25rem; }
.value-list h3 { font-size: 1rem; margin-bottom: 0.15rem; }
.value-list p { color: var(--text-dim); font-size: 0.92rem; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }

.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.contact-card {
    display: flex; flex-direction: column; gap: 0.5rem; padding: 1.5rem;
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    text-decoration: none; transition: border-color 0.2s, transform 0.2s;
}
.contact-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.contact-card .ico { width: 28px; height: 28px; color: var(--accent); margin-bottom: 0.4rem; }
.contact-card strong { font-size: 1.05rem; }
.contact-card span { color: var(--text-dim); font-size: 0.9rem; }

/* ---------- Game page ---------- */

.game-hero {
    position: relative; min-height: min(88svh, 860px); display: flex; align-items: flex-end;
    padding: calc(var(--nav-h) + 4rem) 0 clamp(2.5rem, 6vw, 4.5rem); overflow: hidden; isolation: isolate;
}
.game-hero-bg { position: absolute; inset: 0; z-index: -2; }
.game-hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: var(--hero-pos, center); }
@media (max-width: 700px) { .game-hero-bg img { object-position: var(--hero-pos-phone, var(--hero-pos, center)); } }
.game-hero::after {
    content: ''; position: absolute; inset: 0; z-index: -1;
    background:
        radial-gradient(ellipse at 20% 100%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 60%),
        linear-gradient(90deg, rgba(11, 11, 18, 0.9) 0%, rgba(11, 11, 18, 0.55) 50%, rgba(11, 11, 18, 0.15) 100%),
        linear-gradient(to bottom, rgba(11, 11, 18, 0.2) 40%, var(--bg) 100%);
}
.game-hero-inner { max-width: 660px; }
.game-hero .crumbs { margin-bottom: 1.25rem; font-size: 0.85rem; color: var(--text-dim); }
.game-hero .crumbs a { color: var(--text-dim); text-decoration: none; }
.game-hero .crumbs a:hover { color: var(--accent); }
.game-logo { width: min(460px, 88%); height: auto; max-height: 260px; object-fit: contain; object-position: left center; margin-bottom: 1.25rem; filter: drop-shadow(0 6px 24px rgba(0, 0, 0, 0.55)); }
.game-title { font-size: clamp(2.4rem, 6vw, 4rem); line-height: 1.05; font-weight: 850; letter-spacing: -0.02em; margin-bottom: 1rem; text-shadow: 0 4px 24px rgba(0, 0, 0, 0.6); }
.game-app-title { display: flex; align-items: center; gap: 1.1rem; margin-bottom: 1.25rem; }
.game-app-title .app-icon { width: 96px; height: 96px; border-radius: 22px; border-width: 0; }
.game-app-title .game-title { margin-bottom: 0; }
.game-tagline { font-size: clamp(1.05rem, 1.8vw, 1.25rem); color: var(--text); margin-bottom: 1.5rem; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7); }
.game-hero .badges { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; }
.game-hero .store-row { gap: 0.75rem; }
.game-hero .note { margin-top: 1rem; font-size: 0.88rem; color: var(--text-dim); }

.intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.intro-grid.media-right > .intro-media { order: 2; }
.intro-text h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.2; font-weight: 800; color: var(--accent-2); margin-bottom: 1rem; letter-spacing: -0.01em; }
.intro-text p { color: var(--text-dim); margin-bottom: 1rem; font-size: 1.05rem; }
.intro-text .tags { margin-top: 1.25rem; }
.intro-media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #000; }
.intro-media img, .intro-media video { width: 100%; height: auto; }
.intro-media--phone { max-width: 340px; justify-self: center; border-radius: 28px; border: 6px solid #1c1c2a; }
.intro-media--phone .trailer-link { aspect-ratio: 9 / 16; }
@media (max-width: 860px) { .intro-grid { grid-template-columns: 1fr; } .intro-grid.media-right > .intro-media { order: 0; } }

.trailer-link { position: relative; display: block; aspect-ratio: 16 / 9; }
.trailer-link img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.trailer-link:hover img { transform: scale(1.03); }
.play-btn {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 84px; height: 84px; border-radius: 50%; background: var(--accent);
    display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: transform 0.25s;
}
.play-btn svg { width: 34px; height: 34px; fill: #0b0b12; margin-left: 5px; }
.trailer-link:hover .play-btn { transform: translate(-50%, -50%) scale(1.1); }
.trailer-link .caption {
    position: absolute; left: 1rem; bottom: 1rem; font-size: 0.82rem; font-weight: 600;
    background: rgba(0, 0, 0, 0.7); padding: 0.3rem 0.65rem; border-radius: 6px;
}

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.feature-grid:has(> :nth-child(4):last-child) { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .feature-grid, .feature-grid:has(> :nth-child(4):last-child) { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .feature-grid, .feature-grid:has(> :nth-child(4):last-child) { grid-template-columns: 1fr; } }
.feature {
    padding: 1.5rem; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line);
    transition: border-color 0.25s, transform 0.25s;
}
.feature:hover { border-color: color-mix(in srgb, var(--accent) 70%, transparent); transform: translateY(-3px); }
.feature .num { display: block; font-family: var(--font-pixel); font-size: 0.7rem; color: var(--accent); margin-bottom: 0.9rem; }
.feature h3 { font-size: 1.1rem; margin-bottom: 0.5rem; color: var(--text); }
.feature p { color: var(--text-dim); font-size: 0.95rem; }

/* Galleries: phone = horizontal scroller, wide = grid */
.gallery-wrap { position: relative; }
.gallery-phone {
    display: grid; grid-auto-flow: column; grid-auto-columns: clamp(200px, 22vw, 260px); gap: 1rem;
    overflow-x: auto; scroll-snap-type: x mandatory; padding: 0.25rem 0 1rem;
    scrollbar-width: thin; scrollbar-color: var(--line-hi) transparent;
}
.gallery-phone a { scroll-snap-align: start; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: #000; }
.gallery-phone img { width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; transition: transform 0.35s; }
.gallery-wide { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 1rem; }
.gallery-wide a { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #000; }
.gallery-wide img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 0.35s; }
.gallery-phone a:hover img, .gallery-wide a:hover img { transform: scale(1.03); }
@media (max-width: 420px) { .gallery-wide { grid-template-columns: 1fr; } }
.gallery-nav { display: flex; gap: 0.5rem; justify-content: flex-end; margin-top: 0.5rem; }
.gallery-nav button {
    width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-hi);
    background: var(--card); color: var(--text); cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
}
.gallery-nav button:hover { border-color: var(--accent); color: var(--accent); }
.gallery-nav svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.5; }

.facts-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 860px) { .facts-grid { grid-template-columns: 1fr; } }
.factsheet { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.factsheet div { display: grid; grid-template-columns: 150px 1fr; gap: 1rem; padding: 0.85rem 1.25rem; border-bottom: 1px solid var(--line); }
.factsheet div:last-child { border-bottom: 0; }
.factsheet div:nth-child(odd) { background: rgba(255, 255, 255, 0.02); }
.factsheet dt { color: var(--text-faint); font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; padding-top: 0.15rem; }
.factsheet dd { color: var(--text); font-size: 0.97rem; }
@media (max-width: 480px) { .factsheet div { grid-template-columns: 1fr; gap: 0.15rem; } }

.side-box { padding: 1.5rem; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.side-box + .side-box { margin-top: 1rem; }
.side-box h3 { font-size: 1.05rem; margin-bottom: 0.6rem; }
.side-box p { color: var(--text-dim); font-size: 0.93rem; margin-bottom: 0.9rem; }
.side-box ul { display: grid; gap: 0.45rem; }
.side-box li a { color: var(--accent); text-decoration: none; font-size: 0.93rem; font-weight: 600; }
.side-box li a:hover { text-decoration: underline; }

.cta-band {
    text-align: center; padding: clamp(2.5rem, 6vw, 4rem) var(--gutter);
    border-radius: calc(var(--radius) + 6px); border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent);
    background:
        radial-gradient(ellipse at 50% 0%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 70%),
        var(--card);
}
.cta-band h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 800; margin-bottom: 0.6rem; }
.cta-band p { color: var(--text-dim); margin: 0 auto 1.75rem; max-width: 560px; }
.cta-band .store-row { justify-content: center; }

/* ---------- Lightbox (built by site.js) ---------- */

.lightbox {
    border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh;
    width: 100vw; height: 100vh; color: var(--text);
}
.lightbox::backdrop { background: rgba(5, 5, 10, 0.92); }
.lightbox-stage { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 64px 72px; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 10px; box-shadow: var(--shadow); }
.lightbox button {
    position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-hi);
    background: rgba(23, 23, 38, 0.9); color: var(--text); cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
}
.lightbox button:hover { border-color: var(--accent); color: var(--accent); }
.lightbox button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.5; }
.lightbox .lb-close { top: 12px; right: 12px; }
.lightbox .lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-count { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); font-size: 0.85rem; color: var(--text-dim); }
@media (max-width: 600px) { .lightbox-stage { padding: 64px 12px; } .lightbox .lb-prev, .lightbox .lb-next { top: auto; bottom: 8px; transform: none; } }

/* ---------- Footer ---------- */

.site-footer { background: var(--bg-raise); border-top: 1px solid var(--line); padding: 4rem 0 2rem; margin-top: 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2.5rem; }
.footer-brand .brand { margin-bottom: 1rem; }
.footer-brand p { color: var(--text-dim); font-size: 0.92rem; margin-bottom: 1.25rem; max-width: 320px; }
.footer-col h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-faint); margin-bottom: 1rem; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a { color: var(--text-dim); text-decoration: none; font-size: 0.92rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--cyan); }
.footer-bottom {
    margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line);
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
    color: var(--text-faint); font-size: 0.85rem;
}
.footer-bottom a { color: var(--text-faint); text-decoration: none; }
.footer-bottom a:hover { color: var(--cyan); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Plain text pages (imprint) ---------- */

.text-page { max-width: 760px; margin: 0 auto; padding: calc(var(--nav-h) + 3rem) var(--gutter) 4rem; }
.text-page h1 { font-family: var(--font-pixel); font-size: 1.2rem; color: var(--cyan); margin-bottom: 2rem; line-height: 1.5; }
.text-page h2 { font-size: 1.1rem; color: var(--orange); margin: 2rem 0 0.75rem; }
.text-page p { color: var(--text-dim); margin-bottom: 1rem; line-height: 1.8; }
.text-page a { color: var(--cyan); }
.text-page .legal-text { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); font-size: 0.9rem; }
.text-page .legal-text h2:first-child { margin-top: 0; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
}
