/* Retro Reactor — site styles.
   Look: ink, paper and one red cut. The games' art does the shouting; the frame stays quiet.
   Layout: a fight card. Hero bout cut on a diagonal, game select, roster stripes, trailers,
   a paper band for the studio, press and contact. One deliberate dark look (no light theme). */

@font-face { font-family: "Dela Gothic One"; src: url("../fonts/DelaGothicOne-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "DotGothic16"; src: url("../fonts/DotGothic16-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Zen Kaku Gothic New"; src: url("../fonts/ZenKakuGothicNew-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Zen Kaku Gothic New"; src: url("../fonts/ZenKakuGothicNew-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --ink: #0E0D0C;
  --raised: #191715;
  --line: #2E2A26;
  --line-2: #3A3530;
  --paper: #ECE4D3;
  --paper-text: #3D3832;
  --paper-muted: #5E574D;
  --red: #D1222B;        /* fills: buttons, chips, markers */
  --red-hi: #FF4A4F;     /* small red text on ink */
  --blood: #A8141C;      /* small red text on paper */
  --steel: #A8A197;      /* secondary text on ink */
  --spark: #FFF3E2;      /* text and the cut line */
  --solar: #F2CF1D;      /* Rebels accent */
  --violet: #241638;     /* Rebels surface */
  --violet-line: #4A3768;
  --violet-text: #CFC6DA;

  --display: "Dela Gothic One", "Arial Black", Impact, sans-serif;
  --body: "Zen Kaku Gothic New", "Helvetica Neue", Arial, sans-serif;
  --hud: "DotGothic16", "Courier New", monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --section: clamp(64px, 8vw, 112px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--ink);
  color: var(--spark);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--spark); text-underline-offset: 3px; }
a:hover { color: var(--red-hi); }
:focus-visible { outline: 2px solid var(--red-hi); outline-offset: 3px; }
h1, h2, h3, p, dl, dd { margin: 0; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap {
  max-width: 1440px;
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
.section { padding-block: var(--section); }
.section + .section { border-top: 1px solid var(--line); }
.stack { display: flex; flex-direction: column; gap: 40px; }

/* ---------- type ---------- */
.hud { font-family: var(--hud); font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; }
.eyebrow { display: flex; align-items: center; gap: 10px; font-family: var(--hud); font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--red-hi); }
.eyebrow::before { content: ""; width: 8px; height: 8px; flex: none; background: var(--red); }
.title { font-family: var(--display); font-weight: 400; font-size: clamp(36px, 4vw, 56px); line-height: 1.05; text-wrap: balance; }
.title--md { font-size: clamp(30px, 3.4vw, 48px); line-height: 1.1; }
.lede { max-width: 46ch; font-size: 19px; color: var(--steel); }
.muted { color: var(--steel); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 48px; }
.section-head > div { display: flex; flex-direction: column; gap: 14px; }
.section-head > p { max-width: 40ch; color: var(--steel); }

/* ---------- buttons and chips ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 30px;
  font-family: var(--hud); font-size: 16px; letter-spacing: 0.1em; text-transform: uppercase;
  text-decoration: none; color: var(--spark);
  transition: filter 0.15s ease, transform 0.15s ease;
}
.btn--cut { clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%); }
.btn--primary { background: var(--red); }
.btn--primary:hover { color: var(--spark); filter: brightness(1.12); }
.btn--ghost { border: 1px solid var(--spark); padding: 0 26px; }
.btn--ghost:hover { background: var(--spark); color: var(--ink); }
.btn--solar { background: var(--solar); color: var(--ink); }
.btn--solar:hover { color: var(--ink); filter: brightness(1.08); }
.btn--ink { background: var(--ink); color: var(--spark); clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%); }
.btn--ink:hover { color: var(--spark); background: #000; }
.btn--sm { min-height: 46px; padding: 0 22px; font-size: 15px; letter-spacing: 0.08em; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

.chip { display: inline-block; padding: 6px 12px; font-family: var(--hud); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; background: var(--red); color: var(--spark); }
.chip--solar { background: var(--solar); color: var(--ink); }
.chip-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.platforms { display: flex; flex-wrap: wrap; gap: 6px; font-family: var(--hud); font-size: 12px; letter-spacing: 0.08em; }
.platforms span { border: 1px solid var(--line-2); padding: 3px 8px; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--ink); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top, 0px); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; min-height: 76px; }
.logo { display: block; line-height: 0; flex: none; }
.logo img { height: 40px; width: auto; filter: invert(1); }
.nav { display: flex; align-items: center; gap: 28px; }
.nav ul { display: flex; flex-wrap: wrap; gap: 6px 28px; margin: 0; padding: 0; list-style: none; }
.nav a { font-family: var(--hud); font-size: 15px; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: 8px; }
.page-rebels .nav a[aria-current="page"] { text-decoration-color: var(--solar); }
.nav-toggle { display: none; }

@media (max-width: 1020px) {
  .nav-toggle {
    display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px;
    background: none; border: 1px solid var(--line-2); color: var(--spark);
    font-family: var(--hud); font-size: 14px; letter-spacing: 0.1em; cursor: pointer;
  }
  .nav { position: absolute; top: 100%; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; background: var(--ink); border-bottom: 1px solid var(--line); padding: 8px max(var(--gutter), env(safe-area-inset-right, 0px)) 24px max(var(--gutter), env(safe-area-inset-left, 0px)); }
  .nav.is-open { display: flex; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav ul a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 20px; }
  .site-header .wrap { position: relative; }
}

/* ---------- hero (the cut) ---------- */
.hero { border-bottom: 1px solid var(--line); }
/* The row spans the screen so the art reaches the edge; the text lines up with .wrap content. */
.hero__row { display: flex; flex-wrap: wrap; align-items: stretch; --edge: max(var(--gutter), calc((100vw - 1440px) / 2 + var(--gutter))); }
.hero__text {
  flex: 1 1 460px; min-width: 0; max-width: 760px;
  padding: 72px 40px 72px max(var(--edge), env(safe-area-inset-left, 0px));
  display: flex; flex-direction: column; justify-content: center; gap: 26px;
}
.hero__title { font-family: var(--display); font-weight: 400; font-size: clamp(44px, 5vw, 76px); line-height: 1.04; letter-spacing: -0.01em; text-wrap: balance; }
.hero__title--game { font-size: clamp(48px, 5.6vw, 88px); line-height: 1; }
.hero__art { flex: 1.25 1 560px; min-width: 0; min-height: 560px; position: relative; overflow: hidden; }
.hero__art::before { content: ""; position: absolute; inset: 0; background: var(--spark); clip-path: polygon(calc(14% - 10px) 0, calc(14% - 6px) 0, 4px 100%, 0 100%); }
.hero__art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; clip-path: polygon(14% 0, 100% 0, 100% 100%, 10px 100%); }
.hero__caption { position: absolute; right: 0; bottom: 0; z-index: 1; background: var(--ink); padding: 10px max(16px, env(safe-area-inset-right, 0px)) 10px 16px; font-family: var(--hud); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; }
/* game pages: art first, cut on its right edge */
.hero--art-left .hero__art { flex: 1 1 520px; order: -1; }
.hero--art-left .hero__art::before { clip-path: polygon(calc(100% - 4px) 0, 100% 0, calc(86% + 10px) 100%, calc(86% + 6px) 100%); }
.hero--art-left .hero__art img { clip-path: polygon(0 0, calc(100% - 10px) 0, 86% 100%, 0 100%); }
.hero--art-left .hero__text { flex: 1 1 520px; max-width: 820px; padding: 64px max(var(--edge), env(safe-area-inset-right, 0px)) 64px 32px; gap: 24px; }
.page-rebels .hero__art::before { background: var(--solar); }
@media (max-width: 1040px) {
  .hero__art { min-height: 0; aspect-ratio: 16 / 10; flex-basis: 100%; }
  .hero--art-left .hero__art { aspect-ratio: 4 / 3; }
  .hero__text, .hero--art-left .hero__text { padding: 48px max(var(--gutter), env(safe-area-inset-right, 0px)) 56px max(var(--gutter), env(safe-area-inset-left, 0px)); }
}

/* ---------- ticker strip ---------- */
.strip { border-bottom: 1px solid var(--line); }
.strip p { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; padding-block: 16px; font-family: var(--hud); font-size: 14px; letter-spacing: 0.1em; color: var(--steel); text-transform: uppercase; }
.strip strong { font-weight: 400; color: var(--spark); }
.strip .sq { width: 8px; height: 8px; background: var(--red); }
@media (max-width: 640px) {
  .strip p { flex-direction: column; align-items: flex-start; gap: 6px; }
  .strip .sq { display: none; }
}

/* ---------- game cards ---------- */
.cards { display: flex; flex-wrap: wrap; gap: 24px; }
.card { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; background: var(--raised); border: 1px solid var(--line); text-decoration: none; color: var(--spark); transition: border-color 0.2s ease; }
.card:hover { color: var(--spark); border-color: var(--line-2); }
.card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.card:hover .card__media img { transform: scale(1.03); }
.card__media .chip { position: absolute; top: 16px; left: 16px; }
.card__body { flex: 1; padding: 16px 24px 28px; display: flex; flex-direction: column; gap: 12px; }
.card__meta { font-family: var(--hud); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--steel); }
.card__title { font-family: var(--display); font-weight: 400; font-size: 30px; line-height: 1.1; }
.card__text { color: var(--steel); }
.card__cta { margin-top: auto; padding-top: 8px; font-family: var(--hud); font-size: 14px; letter-spacing: 0.1em; color: var(--red-hi); text-transform: uppercase; }
.card__cta--solar { color: var(--solar); }

/* ---------- DLC roster stripes ---------- */
.roster { display: flex; flex-direction: column; gap: 16px; }
.stripe { display: flex; flex-wrap: wrap; background: var(--raised); text-decoration: none; color: var(--spark); }
.stripe:hover { color: var(--spark); }
.stripe__label { flex: 1 1 320px; min-width: 0; padding: 28px 32px; display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.stripe__label .hud { color: var(--red-hi); }
.stripe__name { font-family: var(--display); font-weight: 400; font-size: 32px; line-height: 1.1; }
.stripe__art { flex: 3 1 480px; min-width: 0; min-height: 220px; position: relative; overflow: hidden; }
.stripe__art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; clip-path: polygon(48px 0, 100% 0, 100% 100%, 0 100%); transition: transform 0.4s ease; }
.stripe:hover .stripe__art img { transform: scale(1.02); }

/* ---------- videos ---------- */
.videos { display: flex; flex-wrap: wrap; gap: 24px; }
.video { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 14px; text-decoration: none; color: var(--spark); }
.video:hover { color: var(--spark); }
.video__thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--raised); }
.video__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.video:hover .video__thumb img { transform: scale(1.03); }
.video__play { position: absolute; left: 16px; bottom: 16px; width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; background: var(--red); }
.video__meta { font-family: var(--hud); font-size: 13px; letter-spacing: 0.12em; color: var(--steel); text-transform: uppercase; }
.video__title { font-weight: 700; font-size: 19px; line-height: 1.35; }

/* ---------- paper band ---------- */
.paper { background: var(--paper); color: var(--ink); }
/* text links only: buttons on paper keep their own colors */
.paper a:not(.btn) { color: var(--ink); }
.paper a:not(.btn):hover { color: var(--blood); }
.paper .eyebrow { color: var(--blood); }
.paper .eyebrow::before { background: var(--blood); }
.paper .body { color: var(--paper-text); max-width: 58ch; }
.studio { display: flex; flex-wrap: wrap; align-items: center; gap: 48px 72px; }
.studio__logo { flex: 1 1 400px; min-width: 0; }
.studio__logo img { width: 100%; max-width: 580px; }
.studio__text { flex: 1.2 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.stats { display: flex; flex-wrap: wrap; gap: 24px; padding-top: 8px; }
.stat { flex: 1 1 140px; min-width: 0; border-top: 2px solid var(--ink); padding-top: 12px; display: flex; flex-direction: column; gap: 4px; }
.stat__num { font-family: var(--display); font-size: clamp(28px, 2.5vw, 36px); line-height: 1.1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stat__label { font-size: 14px; line-height: 1.4; color: var(--paper-muted); }
.stats--grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; }
.stats--grid .stat__num { font-size: clamp(36px, 3.6vw, 52px); }
.stats--grid .stat__label { font-size: 15px; }

/* ---------- press and contact ---------- */
.split { display: flex; flex-wrap: wrap; gap: 64px 72px; }
.split > * { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.split > .stats--grid { display: grid; gap: 28px 24px; }
.kit-list { display: flex; flex-direction: column; gap: 12px; }
.kit { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; min-height: 72px; padding: 16px 24px; border: 1px solid var(--line); background: var(--raised); text-decoration: none; color: var(--spark); }
.kit:hover { color: var(--spark); border-color: var(--line-2); }
.kit__name { font-family: var(--display); font-size: 22px; line-height: 1.2; }
.kit__go { font-family: var(--hud); font-size: 14px; letter-spacing: 0.1em; color: var(--red-hi); }
.email { align-self: flex-start; font-weight: 700; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.3; text-decoration-thickness: 2px; overflow-wrap: anywhere; }
.selectable { user-select: all; color: var(--spark); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); }
.site-footer .wrap { padding-block: 40px 48px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; }
.site-footer__brand { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.site-footer__brand img { height: 32px; width: auto; filter: invert(1); }
.site-footer__brand p { font-size: 14px; color: var(--steel); }
.social { display: flex; flex-wrap: wrap; gap: 0 20px; margin: 0; padding: 0; list-style: none; }
.social a { display: inline-block; padding-block: 12px; font-family: var(--hud); font-size: 14px; letter-spacing: 0.1em; text-decoration: none; }

/* ---------- game page parts ---------- */
.buy-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.buy { flex: 1 1 calc(50% - 5px); min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 0 18px; border: 1px solid var(--line-2); background: var(--raised); text-decoration: none; color: var(--spark); }
.buy:hover { color: var(--spark); border-color: var(--steel); }
.buy b { font-weight: 700; }
.buy span { font-family: var(--hud); font-size: 13px; letter-spacing: 0.1em; color: var(--red-hi); white-space: nowrap; }
@media (max-width: 520px) { .buy { flex-basis: 100%; } }
.buy--feature { flex-basis: 100%; background: var(--red); border-color: var(--red); }
.buy--feature span { color: var(--spark); }
.buy--feature:hover { border-color: var(--red); filter: brightness(1.1); }
.facts { border-bottom: 1px solid var(--line); }
.facts dl { display: flex; flex-wrap: wrap; gap: 16px 48px; padding-block: 20px; font-family: var(--hud); font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase; }
.facts dl div { display: flex; gap: 10px; }
.facts dt { color: var(--steel); }
.dlc-cards { display: flex; flex-wrap: wrap; gap: 24px; }
.dlc { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; background: var(--raised); border: 1px solid var(--line); }
.dlc__media { aspect-ratio: 16 / 9; overflow: hidden; clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%); }
.dlc__media img { width: 100%; height: 100%; object-fit: cover; }
.dlc__body { flex: 1; padding: 16px 24px 24px; display: flex; flex-direction: column; gap: 10px; }
.dlc__body .hud { font-size: 13px; color: var(--red-hi); }
.dlc__name { font-family: var(--display); font-weight: 400; font-size: 28px; line-height: 1.1; }
.store-row { margin-top: auto; padding-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.store-row a { flex: 1 1 90px; display: flex; align-items: center; justify-content: center; min-height: 44px; border: 1px solid var(--line-2); text-decoration: none; font-family: var(--hud); font-size: 13px; letter-spacing: 0.08em; }
.store-row a:hover { border-color: var(--red-hi); }
@media (max-width: 480px) { .store-row a { flex-basis: calc(50% - 4px); } }
.shots { display: flex; flex-wrap: wrap; gap: 16px; }
.shots img { flex: 1 1 460px; min-width: 0; aspect-ratio: 16 / 9; object-fit: cover; }
.shots--3 img { flex-basis: 380px; }
.shots--rebels img { flex-basis: 300px; }
.cta-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px 64px; }
.cta-band > :first-child { flex: 1 1 420px; min-width: 0; }
.band-red { background: var(--red); }
.band-red .buy-grid a { flex: 1 1 150px; display: flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 18px; background: var(--ink); text-decoration: none; font-family: var(--hud); font-size: 15px; letter-spacing: 0.1em; }
.band-red .buy-grid a:hover { color: var(--spark); background: #000; }

/* ---------- Rebels sub-brand ---------- */
.page-rebels a:hover { color: var(--solar); }
.page-rebels :focus-visible { outline-color: var(--solar); }
.page-rebels .eyebrow { color: var(--solar); }
.page-rebels .eyebrow::before { background: var(--solar); }
.world { background: var(--violet); }
.world__row { display: flex; flex-wrap: wrap; align-items: center; gap: 48px 72px; }
.world__row > * { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.world p.body { max-width: 56ch; color: var(--violet-text); }
.corps { display: flex; flex-wrap: wrap; gap: 12px; }
.corps div { flex: 1 1 160px; min-width: 0; padding: 20px; border: 1px solid var(--violet-line); font-family: var(--display); font-size: 22px; line-height: 1.15; }
.corps-side { padding: 20px; background: var(--solar); color: var(--ink); display: flex; flex-direction: column; gap: 4px; }
.corps-side strong { font-family: var(--display); font-weight: 400; font-size: 22px; line-height: 1.15; }
.features { display: flex; flex-wrap: wrap; gap: 24px; align-items: stretch; }
.features > img { flex: 1.4 1 560px; min-width: 0; aspect-ratio: 16 / 9; object-fit: cover; }
.features ul { flex: 1 1 360px; min-width: 0; margin: 0; padding: 0; list-style: none; }
.features li { padding: 20px 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.features li:last-child { border-bottom: 1px solid var(--line); }
.features h3 { font-family: var(--display); font-weight: 400; font-size: 21px; line-height: 1.2; }
.features p { color: var(--steel); }
.solar-band { background: var(--solar); color: var(--ink); }
.solar-band .stat { border-top-width: 3px; flex-basis: 160px; }
.solar-band .stat__num { font-size: clamp(40px, 4vw, 60px); line-height: 1; }
.solar-band .stat__label { font-size: 16px; font-weight: 700; color: var(--ink); }

/* ---------- simple pages ---------- */
.page-intro { padding-block: clamp(56px, 7vw, 96px) 0; display: flex; flex-direction: column; gap: 20px; }
.prose { max-width: 62ch; display: flex; flex-direction: column; gap: 16px; color: var(--steel); }
.prose h2 { font-family: var(--display); font-weight: 400; font-size: 24px; line-height: 1.2; color: var(--spark); margin-top: 16px; }
.list-plain { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.list-plain li { display: flex; gap: 12px; align-items: baseline; }
.list-plain li::before { content: ""; width: 8px; height: 8px; flex: none; background: var(--red); transform: translateY(-2px); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
