/* Overscan Studios — site styles.
   Amber CRT phosphor (studio) + gold pixel / candlestick palette (games). */

@font-face {
  font-family: "VT323";
  src: url("/assets/fonts/VT323-Regular.woff2?v=20261101163430") format("woff2");
  font-display: swap;
}

:root {
  --bg:        #0b0d12;
  --bg-2:      #10131a;
  --panel:     #141822;
  --line:      #222936;
  --line-2:    #2c3544;
  --text:      #d9dee7;
  --muted:     #8b94a5;
  --amber:     #ffb347;
  --amber-hi:  #ffd78a;
  --gold:      #e2a72e;
  --gold-hi:   #ffe9a8;
  --green:     #35d07f;
  --red:       #e2554c;
  --teal:      #4fc3c9;

  --mono: "VT323", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 32px);
  --radius: 6px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--amber); text-underline-offset: 3px; }
a:hover { color: var(--amber-hi); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 2px; }

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

.skip {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--amber); color: #000; padding: 8px 14px; border-radius: var(--radius);
}
.skip:focus { left: 8px; }

/* ── Labels / headings ─────────────────────────────────────────────── */
.label {
  margin: 0 0 14px;
  font: 400 22px/1 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--teal);
}
.label--amber { color: var(--amber); }
.h2 {
  margin: 0 0 20px;
  font: 400 clamp(40px, 6vw, 60px)/1 var(--mono);
  color: var(--gold-hi);
  letter-spacing: .02em;
}

/* ── Top bar ───────────────────────────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 13, 18, .86);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar__inner { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 16px; }
.brand { display: flex; align-items: baseline; gap: 10px; text-decoration: none; }
.brand__name {
  font: 400 30px/1 var(--mono); letter-spacing: .1em; color: var(--amber);
  text-shadow: 0 0 6px rgba(255, 179, 71, .55), 0 0 18px rgba(255, 140, 0, .25);
}
.brand__sub { font: 400 16px/1 var(--mono); letter-spacing: .32em; color: var(--muted); }
.nav { display: flex; gap: clamp(14px, 3vw, 28px); }
.nav a {
  font: 400 21px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); text-decoration: none; padding: 6px 0;
}
.nav a:hover { color: var(--amber); }
@media (max-width: 480px) {
  .brand__sub { display: none; }
  .brand__name { font-size: 26px; }
  .nav { gap: 12px; }
  .nav a { font-size: 19px; }
}

/* ── Hero: CRT screen ──────────────────────────────────────────────── */
.hero { padding: clamp(32px, 7vw, 72px) 0 clamp(40px, 8vw, 88px); }
.crt {
  position: relative;
  padding: clamp(10px, 2vw, 18px);
  background: linear-gradient(#1a1d24, #0f1116);
  border: 1px solid var(--line-2);
  border-radius: 28px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .04);
}
.crt__screen {
  position: relative; overflow: hidden;
  min-height: clamp(320px, 52vw, 470px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 40px 20px; text-align: center;
  border-radius: 22px / 26px;
  background: radial-gradient(ellipse at center, #1b1408 0%, #0b0906 55%, #050403 100%);
  box-shadow: inset 0 0 90px rgba(0, 0, 0, .9), inset 0 0 22px rgba(0, 0, 0, .8);
  animation: power-on 1.1s cubic-bezier(.2, .7, .2, 1) both;
}
/* scanlines + phosphor vignette */
.crt__screen::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(0, 0, 0, .28) 0 1px, transparent 1px 3px);
  mix-blend-mode: multiply;
}
.crt__screen::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(255, 170, 60, .07), transparent 65%);
  animation: flicker 6s infinite steps(1);
}
.crt__boot {
  margin: 0 0 18px; font: 400 18px/1 var(--mono); letter-spacing: .14em; color: rgba(255, 179, 71, .55);
}
.crt__title { margin: 0; display: flex; flex-direction: column; align-items: center; font-weight: 400; }
.crt__big, .crt__small {
  font-family: var(--mono); color: var(--amber-hi);
  text-shadow: 0 0 4px rgba(255, 200, 120, .9), 0 0 16px rgba(255, 150, 30, .6), 0 0 42px rgba(255, 120, 0, .35);
}
.crt__big { font-size: clamp(64px, 15vw, 150px); line-height: .9; letter-spacing: .06em; }
.crt__small { font-size: clamp(22px, 4.6vw, 44px); letter-spacing: .62em; margin-right: -.62em; margin-top: 6px; }
.crt__tag { margin: 26px 0 0; max-width: 44ch; text-wrap: balance; color: #c9b48f; font-size: clamp(16px, 2.2vw, 19px); position: relative; }
.crt__now {
  margin: 22px 0 0; position: relative;
  font: 400 21px/1.3 var(--mono); letter-spacing: .04em; color: var(--muted);
}
.crt__now a { color: var(--gold-hi); }
.dot {
  display: inline-block; width: 8px; height: 8px; margin-right: 8px; vertical-align: 2px;
  border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green);
  animation: blink 1.6s infinite;
}

@keyframes power-on {
  0%   { transform: scale(1, .004); filter: brightness(4); opacity: .2; }
  35%  { transform: scale(1, .004); filter: brightness(4); opacity: 1; }
  60%  { transform: scale(1, 1.04); filter: brightness(1.6); }
  100% { transform: scale(1, 1);    filter: none; }
}
@keyframes flicker { 0%, 100% { opacity: 1; } 47% { opacity: .82; } 48% { opacity: 1; } 79% { opacity: .9; } }
@keyframes blink { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) {
  .crt__screen, .crt__screen::after, .dot { animation: none; }
}

/* ── Featured game ─────────────────────────────────────────────────── */
/* The game section takes the game's own night palette (sky + in-game UI)
   and its logo colours, by re-scoping the shared tokens. */
.game {
  --night:   #0c0a1d;
  --panel:   #1a1733;
  --line:    #29244c;
  --line-2:  #3a3468;
  --muted:   #9a95b8;
  --teal:    #3fd2dc;
  --gold:    #ffb43a;
  --gold-hi: #ffd88a;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, var(--night), #110e24 40%, #0f0d20);
}
.game__banner { position: relative; }
.game__pic { position: relative; display: block; }
.game__art {
  width: 100%; height: clamp(250px, 32.3vw, 640px);
  object-fit: cover; object-position: center 62%;
}
/* fade the art's road into the section so the logo can sit on it */
.game__pic::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(12, 10, 29, .35) 0%, transparent 18%, transparent 62%, var(--night) 100%);
}
.game__banner-inner {
  position: relative; z-index: 1; text-align: center;
  margin-top: calc(-1 * clamp(56px, 9vw, 130px));
  padding-bottom: clamp(44px, 7vw, 80px);
  display: flex; flex-direction: column; align-items: center;
}
.game__logo { margin: 0 0 14px; width: clamp(260px, 58vw, 640px); max-width: 100%; }
.game__logo img { width: 100%; filter: drop-shadow(0 10px 28px rgba(0, 0, 0, .65)); }
.game__banner-inner .label { margin-bottom: 14px; }
.game .btn:not(.btn--primary) { background: rgba(26, 23, 51, .85); }
.badge {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 20px;
  padding: 6px 14px; border: 1px solid rgba(53, 208, 127, .45); border-radius: 999px;
  background: rgba(53, 208, 127, .08);
  font: 400 21px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--green);
}
.badge__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }
.game__pitch { margin: 0 0 28px; max-width: 58ch; font-size: clamp(17px, 2.1vw, 20px); color: #e6e9ef; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 22px;
  border: 1px solid var(--line-2); border-radius: var(--radius);
  background: rgba(20, 24, 34, .8); color: var(--text); text-decoration: none;
  font: 400 23px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase;
  transition: border-color .15s, background .15s, color .15s;
}
.btn:hover { border-color: var(--amber); color: var(--amber-hi); }
.btn--primary { background: var(--gold); border-color: var(--gold); color: #1b1203; }
.btn--primary:hover { background: var(--gold-hi); border-color: var(--gold-hi); color: #1b1203; }
.btn--block { width: 100%; }

.trailer { padding-top: clamp(8px, 2vw, 16px); }
.trailer__frame {
  position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #000;
  border: 1px solid var(--line); border-radius: var(--radius);
}
.trailer__frame img, .trailer__frame iframe { display: block; width: 100%; height: 100%; border: 0; object-fit: cover; }
.trailer__play {
  position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; transform: translate(-50%, -50%);
  border-radius: 50%; background: var(--gold); box-shadow: 0 6px 28px rgba(0, 0, 0, .6); transition: background .15s;
}
.trailer__play::after {
  content: ""; position: absolute; left: 33px; top: 24px;
  border-style: solid; border-width: 18px 0 18px 28px; border-color: transparent transparent transparent #1b1203;
}
.trailer__frame:hover .trailer__play { background: var(--gold-hi); }

.game__body {
  display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(28px, 5vw, 64px);
  padding-top: clamp(40px, 6vw, 64px); padding-bottom: clamp(40px, 6vw, 56px);
}
.game__about > p { margin: 0 0 28px; color: var(--text); max-width: 62ch; }

.features { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.features li {
  padding: 16px 18px 16px 44px; position: relative;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
}
.features li::before {
  content: ">"; position: absolute; left: 18px; top: 13px;
  font: 400 24px/1 var(--mono); color: var(--green);
}
.features h4 { margin: 0 0 4px; font: 400 24px/1.1 var(--mono); letter-spacing: .03em; color: var(--gold-hi); }
.features p { margin: 0; color: var(--muted); font-size: 16px; }

.game__side { display: flex; flex-direction: column; gap: 18px; }
.capsule { border-radius: var(--radius); border: 1px solid var(--line); }
.facts { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.facts > div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; border-top: 1px solid var(--line); }
.facts > div:first-child { border-top: 0; }
.facts dt { font: 400 19px/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 0; text-align: right; font-size: 15px; }
.facts .up { color: var(--green); }

@media (max-width: 860px) {
  .game__body { grid-template-columns: 1fr; }
  .game__side { display: grid; grid-template-columns: 180px 1fr; align-items: start; }
  .game__side .btn--block { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .game__side { grid-template-columns: 1fr; }
  .capsule { max-width: 240px; }
}

/* screenshots */
.shots {
  list-style: none; margin: 0 0 24px; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px;
}
/* ten shots: two rows of two, then two rows of three, with no orphan */
@media (min-width: 861px) {
  .shots--ten { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .shots--ten li { grid-column: span 2; }
  .shots--ten li:nth-child(-n+4) { grid-column: span 3; }
}
.shots a {
  display: block; text-decoration: none; color: var(--muted);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--panel);
  transition: border-color .15s, transform .15s;
}
.shots a:hover { border-color: var(--amber); transform: translateY(-2px); color: var(--amber-hi); }
.shots img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.shots span { display: block; padding: 8px 12px; font: 400 20px/1.1 var(--mono); letter-spacing: .04em; }
@media (max-width: 860px) { .shots { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .shots { grid-template-columns: 1fr; } }

/* system requirements */
.reqs { margin: 0 0 clamp(40px, 6vw, 56px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.reqs summary {
  cursor: pointer; padding: 14px 18px; list-style: none;
  font: 400 22px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--teal);
}
.reqs summary::-webkit-details-marker { display: none; }
.reqs summary::before { content: "+ "; color: var(--green); }
.reqs[open] summary::before { content: "− "; }
.reqs__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 4px 18px 18px; }
.reqs h4 { margin: 0 0 8px; font: 400 22px/1 var(--mono); color: var(--gold-hi); }
.reqs dl { margin: 0; }
.reqs dl > div { display: flex; gap: 12px; padding: 6px 0; border-top: 1px solid var(--line); font-size: 15px; }
.reqs dt { width: 92px; flex: none; color: var(--muted); }
.reqs dd { margin: 0; }
@media (max-width: 620px) { .reqs__grid { grid-template-columns: 1fr; } }

/* empty slot, styled like the game's workbench drop zones */
.slot {
  margin-bottom: clamp(48px, 8vw, 80px); padding: clamp(28px, 5vw, 44px) 24px; text-align: center;
  border: 2px dashed var(--line-2); border-radius: var(--radius);
}
.slot__tag { margin: 0 0 6px; font: 400 20px/1 var(--mono); letter-spacing: .14em; color: var(--muted); }
.slot__title { margin: 0 0 8px; font: 400 clamp(32px, 5vw, 44px)/1 var(--mono); color: var(--text); }
.slot__text { margin: 0 auto; max-width: 52ch; color: var(--muted); }

/* ── Studio + contact ──────────────────────────────────────────────── */
.studio { padding: clamp(56px, 9vw, 104px) 0; border-top: 1px solid var(--line); }
.studio__inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(20px, 5vw, 64px); }
.studio__text p { margin: 0 0 16px; max-width: 60ch; }
.studio__text em { color: var(--amber-hi); font-style: normal; }
@media (max-width: 760px) { .studio__inner { grid-template-columns: 1fr; } }

.contact { padding: clamp(56px, 9vw, 104px) 0; border-top: 1px solid var(--line); background: var(--bg-2); text-align: center; }
.contact__text { margin: 0 0 22px; color: var(--muted); }
.mail {
  display: inline-block; max-width: 100%; overflow-wrap: anywhere;
  font: 400 clamp(28px, 6vw, 52px)/1.1 var(--mono); letter-spacing: .02em;
  color: var(--amber-hi); text-decoration: none;
  text-shadow: 0 0 10px rgba(255, 170, 60, .35);
  border-bottom: 2px solid rgba(255, 179, 71, .35); padding-bottom: 4px;
}
.contact__social { margin: 26px 0 0; }
.mail:hover { color: #fff; border-color: var(--amber); }

/* ── Footer ────────────────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--line); padding: 22px 0; color: var(--muted); font-size: 15px; }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.footer p { margin: 0; }
.footer a { color: var(--muted); }
.footer a:hover { color: var(--amber); }

/* ── Lightbox ──────────────────────────────────────────────────────── */
.lightbox {
  width: min(96vw, 1400px); max-height: 94vh; padding: 0;
  border: 1px solid var(--line-2); border-radius: var(--radius);
  background: #07080b; color: var(--text);
}
.lightbox::backdrop { background: rgba(0, 0, 0, .82); }
.lightbox__img { width: 100%; max-height: calc(94vh - 64px); object-fit: contain; background: #000; }
.lightbox__nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 10px; }
.lightbox__cap { margin: 0; font: 400 22px/1 var(--mono); letter-spacing: .04em; color: var(--gold-hi); text-align: center; }
.lightbox button {
  min-width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: var(--radius);
  background: var(--panel); color: var(--text); font: 400 28px/1 var(--mono); cursor: pointer;
}
.lightbox button:hover { border-color: var(--amber); color: var(--amber-hi); }
.lightbox__close { position: absolute; top: 10px; right: 10px; z-index: 1; }
