/* Games by Simulator Arts / Last Squad: Zombie Run
   Self-contained stylesheet. Mirrors the tokens of /style.css (dark #030712 base,
   Inter + JetBrains Mono, glass panels, mono uppercase tags) without importing it,
   so the 80 KB homepage stylesheet and its global h1/h2/header rules never apply here. */

:root {
    --bg: #030712;
    --bg-deep: #020617;
    --panel: rgba(17, 24, 39, 0.55);
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.14);
    --text: #f9fafb;
    --text-2: #94a3b8;
    --text-3: #64748b;
    --accent-blue: #3b82f6;
    /* Game accents, taken from the app icon */
    --ls-red: #ef4444;
    --ls-red-deep: #991b1b;
    --ls-amber: #fbbf24;
    --font-main: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    --radius: 14px;
    --gutter: 16px;
    color-scheme: dark;
}

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-main);
    background-color: var(--bg);
    background-image:
        radial-gradient(ellipse 80% 50% at 50% -10%, rgba(239, 68, 68, 0.16), transparent 70%),
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 100% 100%, 48px 48px, 48px 48px;
    background-repeat: no-repeat, repeat, repeat;
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

a {
    color: var(--ls-amber);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

a:hover {
    color: #fde68a;
}

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

h1,
h2,
h3 {
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 0 0 0.5em;
    font-weight: 700;
}

p {
    margin: 0 0 1em;
}

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

.mono {
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.72rem;
}

.tag {
    display: inline-block;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.7rem;
    color: var(--ls-red);
    margin-bottom: 12px;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 8px;
    background: var(--ls-amber);
    color: #111;
    padding: 8px 12px;
    border-radius: 8px;
    z-index: 100;
}

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

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(3, 7, 18, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
}

.site-header .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 56px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    text-decoration: none;
    min-width: 0;
}

.brand:hover {
    color: var(--text);
}

.brand-mark {
    flex: none;
    width: 28px;
    height: 28px;
    border-radius: 7px;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 0.95rem;
    color: #fff;
    background: linear-gradient(135deg, var(--accent-blue), #60a5fa);
    box-shadow: 0 0 14px rgba(59, 130, 246, 0.35);
}

.brand-text {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.brand-sub {
    color: var(--text-3);
    font-weight: 400;
}

.site-nav {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.site-nav a {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-2);
    text-decoration: none;
    padding: 8px 8px;
    border-radius: 6px;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
}

.site-nav .nav-optional,
.brand-sub {
    display: none;
}

/* ---------- Hero ---------- */
.hero {
    padding: 40px 0 32px;
    text-align: center;
}

.hero-grid {
    display: grid;
    gap: 28px;
    justify-items: center;
}

.app-icon {
    width: 128px;
    height: 128px;
    border-radius: 28px;
    border: 1px solid var(--border-strong);
    box-shadow: 0 18px 50px rgba(239, 68, 68, 0.28), 0 0 0 6px rgba(255, 255, 255, 0.03);
    background: var(--ls-red-deep);
}

.hero h1 {
    font-size: clamp(2.1rem, 8vw, 3.6rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    margin-bottom: 10px;
}

.hero h1 .accent {
    background: linear-gradient(135deg, var(--ls-amber), var(--ls-red));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.tagline {
    font-size: clamp(1.1rem, 4.2vw, 1.35rem);
    font-weight: 600;
    color: var(--text);
    margin-bottom: 14px;
}

.pitch {
    color: var(--text-2);
    max-width: 620px;
    margin: 0 auto 24px;
    font-size: 1rem;
}

.meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 24px;
    padding: 0;
    list-style: none;
}

.chip {
    display: inline-block;
    white-space: nowrap;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-2);
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    padding: 5px 11px;
    background: rgba(255, 255, 255, 0.02);
}

.chip.live {
    color: var(--ls-amber);
    border-color: rgba(251, 191, 36, 0.4);
}

/* Store "coming soon" badges: deliberately not links */
.store-cta {
    display: grid;
    gap: 10px;
    justify-items: center;
}

.store-cta-label {
    color: var(--text-2);
    font-size: 0.9rem;
    margin: 0;
}

.badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.store-badge {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 168px;
    padding: 10px 18px;
    border-radius: 12px;
    border: 1px solid var(--border-strong);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
    color: var(--text);
    cursor: default;
    user-select: none;
    text-align: left;
}

.store-badge small {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ls-amber);
}

.store-badge strong {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

/* ---------- Sections ---------- */
.section {
    padding: 48px 0;
    border-top: 1px solid var(--border);
}

.section-head {
    margin-bottom: 24px;
}

.section-head h2 {
    font-size: clamp(1.5rem, 5.5vw, 2.1rem);
}

.section-head p {
    color: var(--text-2);
    max-width: 640px;
}

/* Feature grid */
.features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.feature {
    position: relative;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 20px 18px;
    overflow: hidden;
}

.feature::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: linear-gradient(180deg, var(--ls-red), var(--ls-amber));
    opacity: 0.85;
}

.feature .num {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--text-3);
    letter-spacing: 0.08em;
}

.feature h3 {
    font-size: 1.08rem;
    margin: 6px 0 6px;
}

.feature p {
    color: var(--text-2);
    font-size: 0.95rem;
    margin: 0;
}

/* Screenshot strip: horizontal scroll-snap on phones, 4-up on desktop */
.shots {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 62%;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 4px 0 14px;
    margin: 0;
    list-style: none;
    scrollbar-width: thin;
    scrollbar-color: #334155 transparent;
}

.shot {
    scroll-snap-align: center;
    margin: 0;
}

.shot-frame {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid var(--border-strong);
    aspect-ratio: 1170 / 2532;
    /* Neutral placeholder shown until (or if) the screenshot loads */
    background:
        linear-gradient(160deg, rgba(239, 68, 68, 0.14), rgba(17, 24, 39, 0.9) 55%),
        #0b1220;
}

.shot-frame::before {
    content: attr(data-label);
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-3);
}

.shot-frame img {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Hides alt text painting over the placeholder if the file is missing */
    color: transparent;
}

.shot figcaption {
    color: var(--text-2);
    font-size: 0.85rem;
    text-align: center;
    margin-top: 10px;
}

/* Info list */
.facts {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin: 0;
}

.facts div {
    background: var(--bg);
    padding: 14px 18px;
}

.facts dt {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-3);
}

.facts dd {
    margin: 2px 0 0;
    color: var(--text);
}

/* Game cards (games index) */
.game-list {
    display: grid;
    gap: 16px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.game-card {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 16px;
    align-items: center;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    color: var(--text);
    text-decoration: none;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.game-card:hover {
    color: var(--text);
    border-color: rgba(239, 68, 68, 0.5);
    transform: translateY(-2px);
}

.game-card img {
    width: 64px;
    height: 64px;
    border-radius: 15px;
    align-self: start;
    border: 1px solid var(--border-strong);
    background: var(--ls-red-deep);
}

.game-card h2 {
    font-size: 1.2rem;
    margin: 4px 0 4px;
}

.game-card p {
    color: var(--text-2);
    font-size: 0.92rem;
    margin: 0 0 8px;
}

.game-card .more {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ls-amber);
}

.page-head {
    padding-top: 44px;
    padding-bottom: 28px;
}

.page-head h1 {
    font-size: clamp(2rem, 8vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.03em;
}

.page-head p {
    color: var(--text-2);
    max-width: 640px;
}

/* ---------- Legal / long-form documents ---------- */
.doc {
    max-width: 780px;
    margin: 0 auto;
    padding: 8px var(--gutter) 56px;
}

.doc-meta {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-3);
}

.doc .summary {
    background: var(--panel);
    border: 1px solid var(--border);
    border-left: 3px solid var(--ls-amber);
    border-radius: 10px;
    padding: 16px 18px;
    margin: 0 0 36px;
}

.doc .summary h2 {
    font-family: var(--font-main);
    font-size: 1rem;
    border: 0;
    padding: 0;
    margin: 0 0 8px;
}

.doc .summary ul {
    margin: 0;
}

.doc section {
    margin-bottom: 36px;
    scroll-margin-top: 72px;
}

.doc h2 {
    font-family: var(--font-mono);
    font-size: 1.05rem;
    letter-spacing: -0.01em;
    padding-bottom: 10px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border-strong);
}

.doc h3 {
    font-size: 1rem;
    margin: 22px 0 8px;
}

.doc p,
.doc li {
    color: var(--text-2);
    font-size: 0.98rem;
    line-height: 1.75;
}

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

.doc ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1em;
}

.doc li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 8px;
}

.doc li::before {
    content: "\25B9";
    position: absolute;
    left: 0;
    color: var(--ls-red);
}

.doc .caps {
    text-transform: uppercase;
    font-size: 0.9rem;
}

.toc {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px 18px;
    margin: 0 0 36px;
}

.toc ol {
    margin: 6px 0 0;
    padding-left: 22px;
    color: var(--text-3);
    columns: 1;
}

.toc li {
    padding: 0;
    margin: 2px 0;
    font-size: 0.92rem;
}

.toc li::before {
    content: none;
}

.toc a {
    color: var(--text-2);
    text-decoration: none;
}

.toc a:hover {
    color: var(--ls-amber);
}

/* FAQ */
.faq details {
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--panel);
    margin-bottom: 10px;
}

.faq summary {
    cursor: pointer;
    list-style: none;
    padding: 16px 44px 16px 18px;
    font-weight: 600;
    position: relative;
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq summary::after {
    content: "+";
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--font-mono);
    color: var(--ls-amber);
    font-size: 1.1rem;
}

.faq details[open] summary::after {
    content: "\2212";
}

.faq .answer {
    padding: 0 18px 8px;
}

.contact-card {
    background: linear-gradient(160deg, rgba(239, 68, 68, 0.12), rgba(17, 24, 39, 0.7));
    border: 1px solid rgba(239, 68, 68, 0.35);
    border-radius: var(--radius);
    padding: 22px;
    margin-top: 12px;
}

.contact-card h2 {
    border: 0;
    padding: 0;
    margin-bottom: 8px;
}

.btn {
    display: inline-block;
    font-weight: 700;
    text-decoration: none;
    color: #111827;
    background: var(--ls-amber);
    padding: 12px 18px;
    border-radius: 10px;
    margin-top: 6px;
}

.btn:hover {
    color: #111827;
    background: #fcd34d;
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--bg-deep);
    border-top: 1px solid var(--border-strong);
    padding: 28px 0 36px;
    font-family: var(--font-mono);
    position: relative;
}

.site-footer::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 0;
    width: 20%;
    height: 1px;
    background: var(--accent-blue);
    box-shadow: 0 0 10px var(--accent-blue);
}

.site-footer .wrap {
    display: grid;
    gap: 14px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.footer-links a {
    color: var(--text-2);
    text-decoration: none;
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.footer-links a:hover {
    color: var(--ls-amber);
}

.copyright {
    color: var(--text-3);
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin: 0;
}

/* ---------- Larger screens ---------- */
@media (min-width: 560px) {
    :root {
        --gutter: 24px;
    }

    .features {
        grid-template-columns: repeat(2, 1fr);
    }

    .shots {
        grid-auto-columns: 40%;
    }

    .facts {
        grid-template-columns: repeat(2, 1fr);
    }

    .site-nav .nav-optional {
        display: inline-block;
    }

    .game-card {
        grid-template-columns: 96px 1fr;
        align-items: center;
    }

    .game-card img {
        width: 96px;
        height: 96px;
        border-radius: 22px;
        align-self: center;
    }

    .brand-sub {
        display: inline;
    }
}

@media (min-width: 900px) {
    .hero {
        padding: 72px 0 56px;
        text-align: left;
    }

    .hero-grid {
        grid-template-columns: auto 1fr;
        align-items: center;
        justify-items: start;
        gap: 48px;
    }

    .app-icon {
        width: 200px;
        height: 200px;
        border-radius: 44px;
    }

    .pitch {
        margin-left: 0;
    }

    .meta-row,
    .badges {
        justify-content: flex-start;
    }

    .store-cta {
        justify-items: start;
    }

    .section {
        padding: 72px 0;
    }

    .features {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }

    .shots {
        grid-auto-flow: row;
        grid-template-columns: repeat(4, 1fr);
        grid-auto-columns: auto;
        overflow: visible;
        gap: 20px;
    }

    .facts {
        grid-template-columns: repeat(3, 1fr);
    }

    .toc ol {
        columns: 2;
        column-gap: 32px;
    }

    .game-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .site-footer .wrap {
        grid-template-columns: 1fr auto;
        align-items: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .game-card {
        transition: none;
    }

    .game-card:hover {
        transform: none;
    }
}

.list-section {
    padding-bottom: 56px;
}

.game-card .platforms {
    color: var(--text-3);
    margin: 0 0 6px;
    font-size: 0.68rem;
}
