/* Light theme: dark text on white reads easiest; the game's mood comes from the art (key art, screenshots, video). */
:root {
    --bg: #ffffff;
    --panel: #f6f4f0;
    --line: #e7e3dc;
    --ink: #141414;             /* headings, labels */
    --text: #262626;            /* reading text: 15:1 on white */
    --muted: #55514b;           /* secondary text: 7.8:1 on white */
    --red: #ad101c;             /* buttons + links: white on it and it on white = 7.3:1 */
    --red-deep: #8f0c17;
    --red-edge: #5a0710;
    --dark: #1c1c1e;            /* dark buttons */
    --dark-edge: #000000;
    --soft-shadow: 0 8px 20px rgba(20, 20, 20, 0.14);
    --head: 'Sofia Sans Extra Condensed', 'Arial Narrow', sans-serif;   /* only the game name + the wordmark */
    --body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { color-scheme: light; }

body {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    color: var(--text);
    font-family: var(--body);
    font-size: 1.0625rem;
    line-height: 1.6;
}

a:focus-visible, button:focus-visible, select:focus-visible {
    outline: 3px solid var(--red);
    outline-offset: 3px;
}

/* ---------- header ---------- */
.top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    max-width: 1240px;
    width: 100%;
    margin: 0 auto;
    padding: 22px 32px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.brand img { display: block; height: 60px; width: 60px; border-radius: 14px; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18); }

.brand span {
    font: 800 1.75rem/1 var(--head);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--ink);
}

.top-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lang-sel {
    font: 600 0.95rem var(--body);
    color: var(--ink);
    background: #fff;
    border: 2px solid #d9d5ce;
    box-shadow: 0 4px 0 #e4e0d9;
    border-radius: 12px;
    padding: 9px 12px;
    cursor: pointer;
}

/* ---------- buttons: a darker lip under the face that disappears when pushed in ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font: 700 1.05rem/1.2 var(--body);
    text-decoration: none;
    border: none;
    border-radius: 12px;
    padding: 13px 24px;
    cursor: pointer;
    user-select: none;
    transition: transform 0.08s ease, box-shadow 0.08s ease, background 0.15s ease;
}

.btn-red { background: var(--red); color: #fff; box-shadow: 0 5px 0 var(--red-edge), 0 10px 20px rgba(173, 16, 28, 0.22); }
.btn-red:hover { transform: translateY(-1px); box-shadow: 0 6px 0 var(--red-edge), 0 12px 24px rgba(173, 16, 28, 0.28); }
.btn-red:active { transform: translateY(5px); background: var(--red-deep); box-shadow: 0 0 0 var(--red-edge), inset 0 2px 6px rgba(0, 0, 0, 0.3); }

.btn-iron { background: var(--dark); color: #fff; box-shadow: 0 5px 0 var(--dark-edge), 0 10px 18px rgba(0, 0, 0, 0.18); }
.btn-iron:hover { transform: translateY(-1px); box-shadow: 0 6px 0 var(--dark-edge), 0 12px 22px rgba(0, 0, 0, 0.22); }
.btn-iron:active { transform: translateY(5px); background: #2c2c30; box-shadow: 0 0 0 var(--dark-edge), inset 0 2px 6px rgba(0, 0, 0, 0.35); }

.btn.is-soon { background: #ecebe7; color: #3a3833; box-shadow: 0 5px 0 #d6d3cc; cursor: default; }
.btn.is-soon:hover, .btn.is-soon:active { transform: none; background: #ecebe7; box-shadow: 0 5px 0 #d6d3cc; }

[hidden] { display: none !important; }

/* ---------- home: the game ---------- */
main.home {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 36px;
    max-width: 1240px;
    width: 100%;
    margin: 0 auto;
    padding: 16px 32px 24px;
}

.game {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 48px;
    align-items: center;
}

.game-capsule {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1232 / 706;
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(20, 20, 20, 0.28);
}

.game-info h1 {
    font: 800 3rem/1 var(--head);
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--ink);
    margin-bottom: 16px;
}

.game-info p {
    max-width: 52ch;
    font-size: 1.15rem;
    line-height: 1.75;
    color: var(--text);
    margin-bottom: 28px;
}

/* ---------- screenshots ---------- */
.shots-wrap { position: relative; }

.shots {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    margin: 0 -24px;                 /* room for the shadows, so the scroller doesn't clip them */
    padding: 8px 24px 34px;
    scroll-padding: 0 24px;
    scrollbar-width: none;
}

.shots::-webkit-scrollbar { display: none; }

.shot {
    flex: 0 0 calc((100% - 36px) / 3);
    aspect-ratio: 16 / 9;
    border: none;
    border-radius: 14px;
    overflow: hidden;
    background: #e9e6e0;
    scroll-snap-align: start;
    cursor: zoom-in;
    padding: 0;
    box-shadow: var(--soft-shadow);
    transition: transform 0.25s ease;
}

.shot:hover { transform: translateY(-3px); }

.shot img { width: 100%; height: 100%; object-fit: cover; display: block; }

.shots-nav {
    position: absolute;
    top: calc(50% - 32px);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: none;
    background: #fff;
    box-shadow: 0 4px 0 #dcd8d0, 0 8px 16px rgba(20, 20, 20, 0.18);
    font: 800 1.6rem/1 var(--body);
    color: var(--ink);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease, transform 0.08s ease, box-shadow 0.08s ease;
}

.shots-nav:active { transform: translateY(4px); box-shadow: 0 0 0 #dcd8d0, inset 0 2px 5px rgba(20, 20, 20, 0.18); }
.shots-nav.prev { left: -20px; }
.shots-nav.next { right: -20px; }
.shots-nav[disabled] { opacity: 0; pointer-events: none; }

/* ---------- footer ---------- */
footer {
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    padding: 36px 24px 30px;
    color: var(--muted);
}

footer a { color: var(--red); text-decoration: none; font-weight: 800; margin-left: 6px; }
footer a:hover { text-decoration: underline; }

/* ---------- lightbox ---------- */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 200;
    align-items: center;
    justify-content: center;
}

.lightbox.open { display: flex; }

.lightbox img { max-width: 88vw; max-height: 86vh; border-radius: 12px; object-fit: contain; }

.lightbox-close, .lightbox-prev, .lightbox-next {
    position: absolute;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
    user-select: none;
    line-height: 1;
}

.lightbox-close { top: 22px; right: 30px; font-size: 2.2rem; }
.lightbox-prev, .lightbox-next { top: 50%; transform: translateY(-50%); font-size: 2.8rem; padding: 16px; }
.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }

/* ---------- press kit (/press/) ---------- */
.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 28px;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
}

.crumb { font-size: 1.05rem; font-weight: 600; color: var(--muted); }
.crumb a { color: var(--muted); text-decoration: none; }
.crumb a:hover { color: var(--ink); text-decoration: underline; }
.crumb .sep { margin: 0 8px; color: var(--muted); }
.crumb .cur { color: var(--ink); font-weight: 800; }

.hero {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    height: clamp(300px, 37vw, 440px);
    object-fit: cover;
    object-position: center;
    display: block;
}

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 28px; }

.top-grid {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 44px;
    align-items: start;
    padding-bottom: 24px;
}

.side { position: sticky; top: 80px; }
.side h1 { font: 800 2.5rem/1 var(--head); letter-spacing: 0.03em; text-transform: uppercase; color: var(--ink); margin: 22px 0 6px; }
.side .by { color: var(--muted); font-weight: 600; margin-bottom: 20px; }
.side .by a { color: var(--red); font-weight: 800; text-decoration: none; }
.side .by a:hover { text-decoration: underline; }

#factsheet { margin-bottom: 24px; }
.fact-label { font-weight: 700; color: var(--ink); margin-top: 20px; }
.fact-label:first-child { margin-top: 0; }
.fact-value { color: var(--text); margin-top: 2px; line-height: 1.5; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.btn-sm { font-size: 1rem; padding: 11px 18px; }
.btn .ico { font-size: 1.05rem; line-height: 1; letter-spacing: 0; }
.btn-wide { width: 100%; }
.btn-zip { width: 100%; margin-bottom: 18px; }

#descriptions { padding-top: 48px; }
.content p { margin-bottom: 14px; line-height: 1.75; }
.content ul { list-style: none; margin: 6px 0 12px; }
.content li { margin-bottom: 12px; line-height: 1.7; }
.content a:not(.btn), .media-title a { color: var(--red); font-weight: 800; }

h2.sec { font: 800 1.8rem/1.2 var(--body); letter-spacing: -0.01em; color: var(--ink); margin-bottom: 16px; }
.content h2.sec { margin-top: 30px; }
.content h2.sec:first-child { margin-top: 0; }
h3.sub { font: 700 1.25rem/1.3 var(--body); color: var(--ink); margin: 24px 0 12px; }

.block { padding: 30px 0; border-top: 1px solid var(--line); }
.block-inner { margin-left: 344px; }
.block-inner > p { line-height: 1.75; margin-bottom: 14px; max-width: 75ch; }

/* the trailer card: poster + play button, becomes a <video> on click */
.embed {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 14px;
    overflow: hidden;
    background: #000;
    display: block;
    margin-bottom: 8px;
    border: none;
    padding: 0;
    cursor: pointer;
    box-shadow: var(--soft-shadow);
}

.embed img { width: 100%; height: 100%; object-fit: cover; display: block; }
.embed .play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.embed .play span {
    width: 76px;
    height: 54px;
    background: var(--red);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 0 var(--red-edge), 0 12px 28px rgba(0, 0, 0, 0.45);
    transition: transform 0.12s ease;
}
.embed:hover .play span { transform: scale(1.06); }
.embed .play span::after { content: ''; border-style: solid; border-width: 12px 0 12px 20px; border-color: transparent transparent transparent #fff; margin-left: 4px; }
.embed .tag { position: absolute; right: 12px; bottom: 10px; color: #fff; font: 700 0.95rem var(--body); background: rgba(0, 0, 0, 0.78); padding: 4px 10px; border-radius: 6px; }
.embed.is-soon { cursor: default; }
.embed.is-soon .play { display: none; }
.media-title { font-weight: 800; color: var(--ink); margin: 6px 0 16px; }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid2 .shot { flex: none; width: 100%; }

.logo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.logo-cell {
    border-radius: 14px;
    padding: 28px;
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    background-image: linear-gradient(45deg, #ece9e3 25%, transparent 25%), linear-gradient(-45deg, #ece9e3 25%, transparent 25%),
                      linear-gradient(45deg, transparent 75%, #ece9e3 75%), linear-gradient(-45deg, transparent 75%, #ece9e3 75%);
    background-size: 22px 22px;
    background-position: 0 0, 0 11px, 11px -11px, -11px 0;
    border: 1px solid var(--line);
}
.logo-cell.dark { background: #0b0b0c; background-image: none; border-color: #0b0b0c; }
.logo-cell img { max-width: 82%; max-height: 180px; }

#legal h2.sec { font-size: 1.5rem; }
.legal-card { background: #faf9f6; border: 1px solid var(--line); border-radius: 14px; padding: 26px 30px; font-size: 1rem; color: #33312d; }
.legal-card p { margin-bottom: 14px; line-height: 1.7; }
.legal-card strong { color: var(--ink); }
.legal-card .prohibited { color: var(--red-deep); font-weight: 800; letter-spacing: 0.05em; margin: 18px 0 8px; }
.legal-card ul { list-style: disc; padding-left: 22px; margin: 6px 0 12px; }
.legal-card li { margin-bottom: 10px; line-height: 1.7; }
.legal-note { background: #fff6e0; border: 1px solid #f0d9a0; border-radius: 10px; padding: 14px 18px; margin-top: 8px; color: #5c430c; }

footer.press-foot { border-top: 1px solid var(--line); }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
    .game { grid-template-columns: 1fr; gap: 24px; }
    .game-info p { max-width: none; }
    .shot { flex-basis: calc((100% - 18px) / 2); }
}

@media (max-width: 920px) {
    .top-grid { grid-template-columns: 1fr; gap: 26px; }
    #descriptions { padding-top: 0; }
    .side { position: static; }
    .block-inner { margin-left: 0; }
    .hero { height: auto; aspect-ratio: 2360 / 880; }   /* whole header: a cover-crop would cut the logo on the left */
    .grid2, .logo-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .topbar { padding: 12px 16px; }
    .wrap { padding: 0 16px; }
    .crumb { font-size: 1rem; }
}

@media (max-width: 600px) {
    .top { padding: 14px 16px; gap: 8px; }
    .brand img { height: 44px; width: 44px; border-radius: 11px; }
    .brand span { display: none; }
    .top-right { gap: 8px; }
    .lang-sel { font-size: 0.9rem; padding: 8px 8px; max-width: 120px; }
    .top .btn { padding: 10px 14px; font-size: 1rem; }
    main.home { justify-content: flex-start; padding: 4px 16px 36px; gap: 26px; }
    .game-info h1 { font-size: 2.3rem; }
    .game-info p { font-size: 1.08rem; }
    .game-info .btn { width: 100%; }
    .shots { margin: 0 -16px; padding: 8px 16px 34px; scroll-padding: 0 16px; }   /* bleed only as far as the page padding */
    .shots .shot { flex-basis: 82%; }
    .shots-nav { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .shots { scroll-behavior: auto; }
    .btn, .shot, .shots-nav, .embed .play span { transition: none; }
    .shot:hover { transform: none; }
}
