/* Launch pages for the games made with CiGYL (/games/<game>/).
   Each page sets its own accent on <body> (--accent, --accent-ink, --accent-soft). */

:root {
    --background: #0a0d12;
    --surface: rgba(20, 25, 33, 0.88);
    --line: rgba(196, 204, 214, 0.15);
    --text: #f1f3f6;
    --muted: #b3bcc7;
    --accent: #f0a04b;
    --accent-ink: #1a0f04;
    --accent-soft: rgba(240, 160, 75, 0.14);
    --font-main: 'Plus Jakarta Sans', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

body.game-veyritium {
    --accent: #4fd6e6;
    --accent-ink: #031417;
    --accent-soft: rgba(79, 214, 230, 0.13);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    color: var(--text);
    font-family: var(--font-main);
    background: var(--background);
}

a { color: inherit; }

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

/* ---------- Top bar (lies over the key art) ---------- */

.top-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 28px;
    background: linear-gradient(rgba(5, 7, 10, 0.75), transparent);
}

.brand { font-size: 15px; font-weight: 700; text-decoration: none; color: var(--muted); }

.brand b { color: var(--text); font-weight: 800; }

.top-nav { display: flex; align-items: center; gap: 24px; font-size: 15px; }

.top-nav a { color: var(--muted); text-decoration: none; }

.top-nav a:hover, .top-nav a:focus-visible { color: var(--text); }

.top-nav .top-nav-discord {
    padding: 7px 14px;
    border: 1px solid var(--accent);
    border-radius: 8px;
    color: var(--accent);
}

/* ---------- Hero: key art with the title on top ---------- */

.hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: min(92vh, 56.25vw + 120px);
    overflow: hidden;
}

.hero-art {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(transparent 35%, rgba(10, 13, 18, 0.7) 68%, var(--background)),
        linear-gradient(90deg, rgba(10, 13, 18, 0.55), transparent 60%);
}

.hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 28px 54px;
}

.status {
    display: inline-block;
    padding: 5px 12px;
    border: 1px solid var(--accent);
    border-radius: 999px;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    background: rgba(10, 13, 18, 0.6);
}

.franchise {
    margin: 18px 0 0;
    font-family: var(--font-mono);
    font-size: 14px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
}

h1 {
    margin: 6px 0 14px;
    font-size: clamp(42px, 7.5vw, 92px);
    font-weight: 800;
    line-height: 0.98;
    letter-spacing: -0.025em;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.6);
}

.lead {
    max-width: 620px;
    margin: 0;
    font-size: 20px;
    line-height: 1.5;
    color: #dfe4ea;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.7);
}

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.button {
    padding: 14px 26px;
    border: 1px solid var(--line);
    border-radius: 10px;
    font-size: 17px;
    font-weight: 700;
    text-decoration: none;
    background: rgba(10, 13, 18, 0.6);
    transition: border-color 0.2s ease, filter 0.2s ease;
}

.button:hover, .button:focus-visible { border-color: var(--muted); }

.button-primary { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); }

.button-primary:hover, .button-primary:focus-visible { border-color: var(--accent); filter: brightness(1.12); }

.facts {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 22px;
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--muted);
}

.facts li::before { content: '▸ '; color: var(--accent); }

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

.section {
    max-width: 1120px;
    margin: 0 auto;
    padding: 70px 28px 10px;
}

.kicker {
    margin: 0;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
}

h2 {
    margin: 10px 0 16px;
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 800;
    letter-spacing: -0.01em;
}

/* The story teaser: one quote line and a few sentences, nothing more. */
.story {
    max-width: 760px;
    padding-left: 22px;
    border-left: 3px solid var(--accent);
}

.story-line {
    margin: 0 0 14px;
    font-size: clamp(22px, 2.8vw, 30px);
    font-weight: 700;
    line-height: 1.3;
}

.story p:not(.story-line) { margin: 0 0 12px; font-size: 17px; line-height: 1.65; color: var(--muted); }

.cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-top: 28px;
}

.card {
    padding: 22px 22px 20px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
}

.card-number {
    display: block;
    margin-bottom: 14px;
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--accent);
}

.card h3 { margin: 0 0 8px; font-size: 18px; }

.card p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--muted); }

/* Five nations, one card each, in the colour of the nation's flag stripe. */
.nations {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin-top: 28px;
}

.nation {
    padding: 18px 18px 18px;
    border: 1px solid var(--line);
    border-top: 3px solid var(--nation-color);
    border-radius: 12px;
    background: var(--surface);
}

.nation-name {
    margin: 0;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--nation-color);
}

.nation h3 { margin: 6px 0 8px; font-size: 17px; }

.nation p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--muted); }

.nation-germany { --nation-color: #c9ced6; }
.nation-britain { --nation-color: #d8b56a; }
.nation-russia { --nation-color: #e06a4f; }
.nation-china { --nation-color: #67b7d1; }
.nation-usa { --nation-color: #8fbf6a; }

.note { margin: 16px 0 0; font-size: 13px; color: rgba(179, 188, 199, 0.75); }

/* ---------- Closing ---------- */

.closing {
    max-width: 1120px;
    margin: 0 auto;
    padding: 90px 28px 80px;
    text-align: center;
}

.closing h2 { margin: 12px 0 8px; }

.closing p { margin: 0; color: var(--muted); font-size: 17px; }

.closing .actions { justify-content: center; }

.other-game { margin-top: 34px; font-size: 15px; color: var(--muted); }

.other-game a { color: var(--accent); }

.footer {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    max-width: 1120px;
    margin: 0 auto;
    padding: 24px 28px;
    border-top: 1px solid var(--line);
    font-size: 13px;
    color: var(--muted);
}

/* ---------- Narrow windows and phones ---------- */

@media (max-width: 1000px) {
    .cards { grid-template-columns: 1fr 1fr; }
    .nations { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 640px) {
    .top-bar { padding: 14px 18px; }
    .top-nav { gap: 14px; font-size: 14px; }
    .top-nav a:not(.top-nav-discord) { display: none; }
    /* On phones the key art stands above the title instead of behind it. */
    .hero { display: block; min-height: 0; }
    .hero-art { position: relative; height: auto; aspect-ratio: 16 / 9; }
    .hero::after { inset: 0 0 auto; height: calc(100vw * 9 / 16); background: linear-gradient(transparent 55%, var(--background)); }
    .hero-content { margin-top: -30px; padding: 0 18px 40px; }
    .lead { font-size: 17px; }
    .section { padding: 54px 18px 6px; }
    .cards, .nations { grid-template-columns: 1fr; }
    .actions .button { flex: 1 1 100%; text-align: center; }
}

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