/* 004games.com in Overcharge's CORE OS look: colors and fonts from Overcharge/Docs/UIDesign.md,
   section banners after the Steam page's header images. */

@font-face { font-family: "Oxanium"; src: url("../fonts/Oxanium-SemiBold.woff") format("woff"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Oxanium"; src: url("../fonts/Oxanium-Bold.woff") format("woff"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Oxanium"; src: url("../fonts/Oxanium-ExtraBold.woff") format("woff"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/Barlow-Medium.woff") format("woff"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/Barlow-SemiBold.woff") format("woff"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/Barlow-Bold.woff") format("woff"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Barlow Semi Condensed"; src: url("../fonts/BarlowSemiCondensed-SemiBold.woff") format("woff"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Semi Condensed"; src: url("../fonts/BarlowSemiCondensed-Bold.woff") format("woff"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Martian Mono"; src: url("../fonts/MartianMonoSemiCondensed-Medium.woff") format("woff"); font-weight: 500; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #04070a;
  --bg-deep: #020406;
  --plate: #06090d;
  --plate-raised: #0b1118;
  --field: #080d13;
  --text: #e8eef4;
  --text-2: #9fb0c0;
  --muted: #5c6b78;
  --blue: #4cc3ff;
  --blue-edge: #a8e6ff;
  --blue-ink: #031018;
  --blue-line: rgba(76, 195, 255, 0.28);
  --blue-faint: rgba(76, 195, 255, 0.12);
  --red: #ff4b3a;
  --amber: #ffb547;
  --gold: #ffd166;
  --green: #5ce68c;
  --display: "Oxanium", "Segoe UI", system-ui, sans-serif;
  --label: "Barlow Semi Condensed", "Arial Narrow", "Segoe UI", system-ui, sans-serif;
  --body: "Barlow", "Segoe UI", system-ui, sans-serif;
  --mono: "Martian Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --topbar: 76px;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1240px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--topbar) + 20px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(76, 195, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(76, 195, 255, 0.025) 1px, transparent 1px);
  background-size: 72px 72px;
  color: var(--text);
  font: 500 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}

main { flex: 1 0 auto; }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
button { font: inherit; color: inherit; }
::selection { background: rgba(76, 195, 255, 0.35); color: #fff; }
:focus-visible { outline: 2px solid var(--blue-edge); outline-offset: 3px; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed; left: 12px; top: -60px; z-index: 100; padding: 10px 16px;
  background: var(--blue); color: var(--blue-ink); font: 700 15px/1 var(--label); letter-spacing: 0.1em;
  text-decoration: none; transition: top 0.15s;
}
.skip-link:focus { top: 12px; }

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

/* ---------- Top banner ---------- */

.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--topbar);
  background: rgba(2, 4, 6, 0.82);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(76, 195, 255, 0.1);
  transition: background 0.2s;
}
.topbar.is-scrolled { background: rgba(2, 4, 6, 0.95); }
.topbar__inner {
  height: 100%; max-width: 1920px; margin: 0 auto; padding: 0 var(--gutter);
  display: flex; align-items: center; gap: clamp(20px, 3.2vw, 56px);
}
.brand { display: block; flex: none; }
.brand img { height: 38px; width: auto; }

.nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 36px); }
.nav a {
  position: relative; padding: 10px 0; text-decoration: none;
  font: 700 15px/1 var(--label); letter-spacing: 0.14em; color: var(--text-2);
  transition: color 0.15s;
}
.nav a:hover { color: var(--text); }
.nav a[aria-current="page"] { color: var(--text); }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px;
  background: var(--blue); box-shadow: 0 0 10px rgba(76, 195, 255, 0.8);
}
.ext { display: inline-block; width: 10px; height: 10px; margin-left: 6px; vertical-align: 1px; }

.socials { display: flex; align-items: center; gap: 6px; margin: 0 0 0 auto; padding: 0; list-style: none; }
.socials a {
  display: grid; place-items: center; width: 38px; height: 38px; color: var(--text-2);
  transition: color 0.15s, filter 0.15s;
}
.socials a:hover { color: var(--blue-edge); filter: drop-shadow(0 0 6px rgba(76, 195, 255, 0.6)); }
.socials svg { width: 20px; height: 20px; fill: currentColor; }

.menu-toggle {
  display: none; margin-left: auto; width: 44px; height: 44px; padding: 0; border: 0; background: none;
  cursor: pointer; place-items: center; color: var(--text);
}
.menu-toggle svg { width: 26px; height: 26px; stroke: currentColor; stroke-width: 2; fill: none; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

.mobile-menu {
  position: fixed; inset: var(--topbar) 0 auto 0; z-index: 49;
  padding: 20px var(--gutter) 28px;
  background: rgba(2, 4, 6, 0.97); border-bottom: 1px solid var(--blue-line);
}
.mobile-menu nav { display: grid; }
.mobile-menu nav a {
  display: block; padding: 16px 0; border-bottom: 1px solid rgba(76, 195, 255, 0.1); text-decoration: none;
  font: 700 22px/1 var(--label); letter-spacing: 0.14em; color: var(--text);
}
.mobile-menu nav a[aria-current="page"] { color: var(--blue-edge); }
.mobile-menu .socials { margin: 18px 0 0; gap: 10px; }
.mobile-menu .socials a { width: 44px; height: 44px; }

@media (max-width: 900px) {
  :root { --topbar: 64px; }
  .topbar .nav, .topbar .socials { display: none; }
  .menu-toggle { display: grid; }
  .brand img { height: 32px; }
}
@media (min-width: 901px) {
  .mobile-menu { display: none !important; }
}

/* ---------- Buttons: a chamfered plate, corner brackets on hover and focus ---------- */

.btn {
  --b: transparent;
  display: inline-block; padding: 7px; text-decoration: none; cursor: pointer;
  border: 0; background-color: transparent;
  background-image:
    linear-gradient(var(--b), var(--b)), linear-gradient(var(--b), var(--b)),
    linear-gradient(var(--b), var(--b)), linear-gradient(var(--b), var(--b)),
    linear-gradient(var(--b), var(--b)), linear-gradient(var(--b), var(--b)),
    linear-gradient(var(--b), var(--b)), linear-gradient(var(--b), var(--b));
  background-repeat: no-repeat;
  background-size: 14px 2px, 2px 14px, 14px 2px, 2px 14px, 14px 2px, 2px 14px, 14px 2px, 2px 14px;
  background-position: left top, left top, right top, right top, left bottom, left bottom, right bottom, right bottom;
}
.btn:hover, .btn:focus-visible { --b: var(--blue-edge); outline: none; }
.btn__face {
  --cut: 12px; --edge: var(--blue-line); --fill: rgba(4, 7, 10, 0.74); --ink: var(--text);
  position: relative; isolation: isolate;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 58px; min-width: 212px; padding: 0 28px;
  font: 700 19px/1 var(--label); letter-spacing: 0.13em; text-transform: uppercase; color: var(--ink);
  white-space: nowrap; transition: color 0.15s;
}
.btn__face::before, .btn__face::after {
  content: ""; position: absolute; z-index: -1;
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
  transition: background 0.15s;
}
.btn__face::before { inset: 0; background: var(--edge); z-index: -2; }
.btn__face::after { inset: 2px; background: var(--fill); }
.btn:hover .btn__face, .btn:focus-visible .btn__face { --edge: var(--blue); --fill: rgba(10, 30, 44, 0.86); }
.btn--primary .btn__face { --edge: var(--blue-edge); --fill: var(--blue); --ink: var(--blue-ink); }
.btn--primary:hover .btn__face, .btn--primary:focus-visible .btn__face { --edge: #fff; --fill: #7bd5ff; }
.btn__icon { width: 16px; height: 16px; fill: currentColor; flex: none; }
.btn[disabled], .btn.is-busy { cursor: progress; }
.btn.is-busy .btn__face { opacity: 0.75; }
.btn--small .btn__face { min-height: 48px; min-width: 0; padding: 0 22px; font-size: 16px; --cut: 10px; }

/* ---------- Hero ---------- */

.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--topbar) + 48px) var(--gutter) 110px;
}
.hero__media { position: absolute; inset: 0; z-index: -1; background: #000 url("../video/hero-poster.webp") center / cover no-repeat; }
.hero__video { width: 100%; height: 100%; object-fit: cover; }
.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 4, 7, 0.9) 0%, rgba(2, 4, 7, 0.66) 34%, rgba(2, 4, 7, 0.28) 66%, rgba(2, 4, 7, 0.4) 100%),
    linear-gradient(180deg, rgba(2, 4, 7, 0.7) 0, rgba(2, 4, 7, 0) 24%, rgba(2, 4, 7, 0) 66%, var(--bg) 100%);
}
.hero__shade::after {
  content: ""; position: absolute; inset: 0; opacity: 0.55;
  background: repeating-linear-gradient(180deg, rgba(0, 0, 0, 0.28) 0 1px, transparent 1px 3px);
}
.hero__content { width: 100%; max-width: var(--max); margin: 0 auto; }
.hero__logo { margin: 0; width: min(660px, 100%); }
.hero__logo img { width: 100%; height: auto; filter: drop-shadow(0 8px 34px rgba(0, 0, 0, 0.6)); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 6px 10px; margin: clamp(30px, 5.5vh, 60px) 0 0 -7px; }
.hero__platform {
  display: inline-flex; align-items: center; margin-top: clamp(18px, 3vh, 30px); padding: 6px 0;
  opacity: 0.92; transition: opacity 0.15s, filter 0.15s;
}
.hero__platform:hover { opacity: 1; filter: drop-shadow(0 0 10px rgba(76, 195, 255, 0.5)); }
.hero__platform img { height: 46px; width: auto; }

.hero__scroll {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  display: grid; place-items: center; width: 48px; height: 48px; color: var(--text);
  animation: nudge 2.4s ease-in-out infinite;
}
.hero__scroll svg { width: 30px; height: 30px; stroke: currentColor; stroke-width: 2.5; fill: none; }
@keyframes nudge { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 7px); } }

.hero__pause {
  position: absolute; right: var(--gutter); bottom: 28px; z-index: 2;
  display: grid; place-items: center; width: 40px; height: 40px; padding: 0; cursor: pointer;
  border: 0; color: var(--text-2); background: rgba(4, 7, 10, 0.6);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  transition: color 0.15s, background 0.15s;
}
.hero__pause:hover { color: var(--blue-ink); background: var(--blue); }
.hero__pause svg { width: 14px; height: 14px; fill: currentColor; }
.hero__pause .icon-play { display: none; }
.hero__pause[aria-pressed="true"] .icon-play { display: block; }
.hero__pause[aria-pressed="true"] .icon-pause { display: none; }

@media (max-width: 700px) {
  .hero { text-align: center; padding-bottom: 96px; }
  .hero__shade {
    background:
      linear-gradient(180deg, rgba(2, 4, 7, 0.72) 0, rgba(2, 4, 7, 0.55) 40%, rgba(2, 4, 7, 0.6) 70%, var(--bg) 100%);
  }
  .hero__logo { margin: 0 auto; }
  .hero__actions { flex-direction: column; align-items: stretch; margin: 32px auto 0; max-width: 380px; }
  .hero__actions .btn__face { min-width: 0; width: 100%; }
  .hero__platform { justify-content: center; }
  .hero__platform img { height: 40px; }
  .hero__pause { bottom: 30px; }
}

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

.section { position: relative; isolation: isolate; padding: clamp(72px, 9vw, 132px) var(--gutter) 0; }
.section::before {
  content: ""; position: absolute; z-index: -1; inset: 0; pointer-events: none;
  background: radial-gradient(46% 42% at 72% 58%, rgba(76, 195, 255, 0.07), transparent 72%);
}
.section--flip::before { background: radial-gradient(46% 42% at 28% 58%, rgba(76, 195, 255, 0.07), transparent 72%); }

/* The Steam page's banner: plate, edge lines fading out, the two bars, an underline at the bottom right. */
.banner {
  --cut: 14px;
  position: relative; display: flex; align-items: center; gap: clamp(16px, 2vw, 26px);
  margin: 0; padding: clamp(18px, 2.4vw, 26px) clamp(20px, 3vw, 34px);
  background:
    linear-gradient(90deg, rgba(168, 230, 255, 0.95), rgba(76, 195, 255, 0) 58%) var(--cut) 0 / 100% 2px no-repeat,
    linear-gradient(180deg, rgba(76, 195, 255, 0.95), rgba(76, 195, 255, 0.2)) 0 var(--cut) / 2px 100% no-repeat,
    linear-gradient(90deg, rgba(76, 195, 255, 0), rgba(76, 195, 255, 0.85)) right calc(var(--cut) + 2px) bottom 7px / 40% 2px no-repeat,
    linear-gradient(180deg, rgba(11, 17, 24, 0.96), rgba(6, 9, 13, 0.96));
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
  font: 700 clamp(21px, 2.7vw, 36px)/1.15 var(--display); letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text); text-shadow: 0 0 22px rgba(76, 195, 255, 0.28);
}
.banner::before {
  content: ""; position: absolute; left: 0; top: var(--cut); width: calc(var(--cut) * 1.42); height: 3px;
  background: var(--blue-edge); transform-origin: 0 0; transform: rotate(-45deg);
}
.banner::after {
  content: ""; position: absolute; right: calc(var(--cut) + 6px); bottom: 12px; width: 17px; height: 3px;
  background: repeating-linear-gradient(90deg, var(--blue) 0 3px, transparent 3px 7px);
}
.banner__bars { position: relative; flex: none; width: 26px; height: 1.15em; }
.banner__bars::before, .banner__bars::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 7px;
  background: linear-gradient(180deg, var(--blue-edge), #2c97d3);
  transform: skewX(-16deg);
}
.banner__bars::before { left: 3px; }
.banner__bars::after { left: 16px; }

.split {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 4.5vw, 72px); align-items: center; margin-top: clamp(28px, 3.5vw, 48px);
}
.split--flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.split--flip .split__text { order: 2; }
.split__text { display: grid; gap: 22px; }
.lead { font-size: clamp(18px, 1.55vw, 21px); line-height: 1.6; color: var(--text); }
.copy { color: var(--text-2); }

@media (max-width: 900px) {
  .split, .split--flip { grid-template-columns: minmax(0, 1fr); }
  .split--flip .split__text { order: 0; }
}

/* Move lists (DODGE / PARRY / CHARGE, ASCENSION / GAUNTLET) */
.moves { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.move {
  position: relative; padding: 14px 18px 15px 22px;
  background: linear-gradient(90deg, rgba(11, 17, 24, 0.9), rgba(11, 17, 24, 0.35));
  border-left: 2px solid rgba(76, 195, 255, 0.25);
  transition: background 0.25s, border-color 0.25s;
}
.move.is-active {
  background: linear-gradient(90deg, rgba(76, 195, 255, 0.16), rgba(76, 195, 255, 0.02) 85%);
  border-left-color: var(--blue);
}
.move__title { margin: 0; font: 700 19px/1.2 var(--display); letter-spacing: 0.14em; color: var(--text); }
.move__title button {
  padding: 0; border: 0; background: none; cursor: pointer; font: inherit; letter-spacing: inherit; color: inherit;
  text-align: left;
}
.move__title button::after { content: ""; position: absolute; inset: 0; }
.move__title button:focus-visible { outline: none; }
.move:has(button:focus-visible) { outline: 2px solid var(--blue-edge); outline-offset: 2px; }
.move.is-active .move__title { color: var(--blue-edge); text-shadow: 0 0 16px rgba(76, 195, 255, 0.45); }
.move p { margin-top: 6px; color: var(--text-2); }
.move:hover { border-left-color: var(--blue-edge); }

/* ---------- Media frames and carousels ---------- */

.media {
  --b: var(--blue-line);
  position: relative; padding: 10px;
  background-image:
    linear-gradient(var(--b), var(--b)), linear-gradient(var(--b), var(--b)),
    linear-gradient(var(--b), var(--b)), linear-gradient(var(--b), var(--b));
  background-repeat: no-repeat;
  background-size: 22px 2px, 2px 22px, 22px 2px, 2px 22px;
  background-position: left top, left top, right bottom, right bottom;
}
.frame {
  --cut: 18px;
  position: relative; padding: 2px;
  background: linear-gradient(135deg, var(--blue-edge), rgba(76, 195, 255, 0.35) 28%, rgba(76, 195, 255, 0.1) 55%, rgba(76, 195, 255, 0.55));
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
}
.frame__view {
  position: relative; overflow: hidden; background: #000;
  clip-path: polygon(calc(var(--cut) - 1px) 0, 100% 0, 100% calc(100% - var(--cut) + 1px), calc(100% - var(--cut) + 1px) 100%, 0 100%, 0 calc(var(--cut) - 1px));
}
.frame__view > img { width: 100%; height: auto; }

.carousel .frame__view { aspect-ratio: 16 / 9; touch-action: pan-y; }
.carousel__slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 0.55s ease; }
.carousel__slide.is-active { opacity: 1; z-index: 1; }
.carousel__slide img { width: 100%; height: 100%; object-fit: cover; }
.carousel__arrow {
  position: absolute; top: 50%; z-index: 3; transform: translateY(-50%);
  display: grid; place-items: center; width: 46px; height: 46px; padding: 0; border: 0; cursor: pointer;
  color: var(--text); background: rgba(4, 7, 10, 0.72);
  clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px);
  transition: background 0.15s, color 0.15s;
}
.carousel__arrow svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 2.6; fill: none; }
.carousel__arrow:hover { background: var(--blue); color: var(--blue-ink); }
.carousel__arrow:focus-visible { outline: none; background: var(--blue); color: var(--blue-ink); }
.carousel__arrow--prev { left: 12px; }
.carousel__arrow--next { right: 12px; }
.carousel__count {
  position: absolute; left: 16px; bottom: 14px; z-index: 3; padding: 6px 8px 5px;
  font: 500 11px/1 var(--mono); letter-spacing: 0.08em; color: var(--text); background: rgba(4, 7, 10, 0.7);
}
.carousel__charge { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; height: 3px; background: rgba(76, 195, 255, 0.16); }
.carousel__charge i {
  display: block; height: 100%; transform: scaleX(0); transform-origin: left center;
  background: var(--blue); box-shadow: 0 0 10px var(--blue);
}
.carousel__charge.is-running i { animation: charge var(--interval, 5s) linear forwards; }
@keyframes charge { to { transform: scaleX(1); } }
.carousel__dots { display: flex; justify-content: center; gap: 4px; margin-top: 12px; }
.carousel__dot { width: 34px; height: 22px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.carousel__dot::before {
  content: ""; width: 26px; height: 4px; background: rgba(159, 176, 192, 0.35);
  clip-path: polygon(3px 0, 100% 0, calc(100% - 3px) 100%, 0 100%); transition: background 0.2s;
}
.carousel__dot:hover::before { background: rgba(168, 230, 255, 0.7); }
.carousel__dot[aria-current="true"]::before { background: var(--blue); }

/* ---------- Closing call to action and footer ---------- */

.cta { position: relative; isolation: isolate; padding: clamp(96px, 12vw, 168px) var(--gutter) clamp(72px, 9vw, 120px); text-align: center; }
.cta::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(40% 50% at 50% 50%, rgba(76, 195, 255, 0.1), transparent 70%);
}
.cta__logo { width: min(520px, 86vw); height: auto; margin: 0 auto; }
.cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 10px; margin-top: 36px; }
.cta .hero__platform { margin-top: 18px; }

.footer { flex: none; margin-top: auto; background: var(--bg-deep); border-top: 1px solid rgba(76, 195, 255, 0.12); padding: 36px var(--gutter) 30px; }
.footer__inner {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 22px 40px;
}
.footer .brand img { height: 32px; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 6px 28px; }
.footer__nav a {
  padding: 6px 0; text-decoration: none; font: 700 14px/1 var(--label); letter-spacing: 0.14em; color: var(--text-2);
}
.footer__nav a:hover { color: var(--text); }
.footer .socials { margin: 0; }
.footer__legal { grid-column: 1 / -1; font-size: 13px; line-height: 1.5; color: var(--muted); }
@media (max-width: 760px) {
  .footer__inner { grid-template-columns: minmax(0, 1fr); justify-items: start; }
  .footer .socials { margin-left: -9px; }
}

/* ---------- Trailer pop-up ---------- */

.trailer { width: min(1280px, 94vw); max-width: none; max-height: none; padding: 0; border: 0; background: transparent; overflow: visible; }
.trailer::backdrop { background: rgba(0, 0, 0, 0.88); }
.trailer__frame { position: relative; aspect-ratio: 16 / 9; background: #000; outline: 2px solid var(--blue-line); }
.trailer__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.trailer__close {
  position: absolute; right: 0; top: -54px; display: grid; place-items: center; width: 44px; height: 44px;
  padding: 0; border: 0; cursor: pointer; color: var(--text); background: rgba(4, 7, 10, 0.8);
  clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px);
}
.trailer__close:hover, .trailer__close:focus-visible { outline: none; background: var(--blue); color: var(--blue-ink); }
.trailer__close svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 2.6; fill: none; }
body:has(.trailer[open]) { overflow: hidden; }

/* ---------- Inner pages (contact, privacy, 404) ---------- */

.page { position: relative; isolation: isolate; padding: calc(var(--topbar) + clamp(40px, 6vw, 80px)) var(--gutter) clamp(72px, 9vw, 120px); }
.page::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 520px; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 70% at 50% 0%, rgba(76, 195, 255, 0.1), transparent 72%);
}
.page__inner { max-width: 920px; margin: 0 auto; }
.page__intro { margin-top: 22px; color: var(--text-2); font-size: 18px; }

/* Tabs */
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 34px; }
.tab {
  --cut: 12px;
  display: flex; align-items: center; gap: 10px; padding: 17px 26px 16px; border: 0; cursor: pointer;
  font: 700 17px/1 var(--label); letter-spacing: 0.13em; text-transform: uppercase; color: var(--text-2);
  background: rgba(11, 17, 24, 0.92);
  clip-path: polygon(var(--cut) 0, 100% 0, 100% 100%, 0 100%, 0 var(--cut));
  transition: background 0.15s, color 0.15s;
}
.tab:hover { color: var(--text); background: rgba(20, 32, 44, 0.95); }
.tab[aria-selected="true"] { color: var(--blue-ink); background: var(--blue); }
.tab:focus-visible { outline: none; box-shadow: inset 0 -3px 0 var(--blue-edge); color: var(--text); }
.tab[aria-selected="true"]:focus-visible { color: var(--blue-ink); box-shadow: inset 0 -3px 0 #fff; }
.tab__sub { font: 500 11px/1 var(--mono); letter-spacing: 0.06em; opacity: 0.75; text-transform: none; }
@media (max-width: 480px) {
  .tab { padding: 15px 16px 14px; font-size: 15px; }
  .tab__sub { display: none; }
}

/* Window: the game's glass plate with edge lines */
.window {
  --cut: 16px;
  position: relative; padding: clamp(22px, 3.4vw, 40px);
  background:
    linear-gradient(90deg, rgba(76, 195, 255, 0.85), rgba(76, 195, 255, 0) 62%) 0 0 / 100% 2px no-repeat,
    linear-gradient(180deg, rgba(76, 195, 255, 0.7), rgba(76, 195, 255, 0.08)) 0 0 / 2px 100% no-repeat,
    linear-gradient(180deg, rgba(11, 17, 24, 0.97), rgba(6, 9, 13, 0.97));
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%);
}
.tabs + .window { margin-top: 0; }
.window__title { margin: 0 0 6px; font: 700 clamp(20px, 2.2vw, 26px)/1.2 var(--display); letter-spacing: 0.12em; text-transform: uppercase; }
.window__intro { color: var(--text-2); margin-bottom: 28px; }
.window__intro a, .copy a, .prose a, .form__status a { color: var(--blue-edge); text-underline-offset: 3px; }
.js-tabs [role="tabpanel"][hidden] { display: none; }

/* Forms */
.form { display: grid; gap: 22px; }
.form__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; }
@media (max-width: 640px) { .form__row { grid-template-columns: minmax(0, 1fr); } }
.field { display: grid; gap: 8px; align-content: start; min-width: 0; border: 0; margin: 0; padding: 0; }
.field[hidden] { display: none; }
.field__label {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 0;
  font: 600 14px/1.25 var(--label); letter-spacing: 0.13em; text-transform: uppercase; color: var(--text-2);
}
.field__opt { font-size: 12px; letter-spacing: 0.1em; color: var(--muted); }
.field__hint { font-size: 14px; line-height: 1.45; color: var(--muted); }
.field__count { font: 500 11px/1 var(--mono); letter-spacing: 0.04em; color: var(--muted); text-align: right; }
.field__count.is-near { color: var(--amber); }

.box {
  --cut: 8px; --edge: rgba(76, 195, 255, 0.24);
  position: relative; padding: 2px; background: var(--edge);
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
  transition: background 0.15s;
}
.box:hover { --edge: rgba(76, 195, 255, 0.45); }
.box:focus-within { --edge: var(--blue); }
.box > input, .box > select, .box > textarea {
  display: block; width: 100%; margin: 0; padding: 13px 14px; border: 0; border-radius: 0; outline: none;
  background: var(--field); color: var(--text); font: 500 17px/1.4 var(--body);
  clip-path: polygon(calc(var(--cut) - 1px) 0, 100% 0, 100% calc(100% - var(--cut) + 1px), calc(100% - var(--cut) + 1px) 100%, 0 100%, 0 calc(var(--cut) - 1px));
}
.box > textarea { min-height: 170px; resize: vertical; }
.box > select {
  appearance: none; -webkit-appearance: none; padding-right: 46px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234cc3ff' stroke-width='2.6'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px;
}
.box > select:invalid, .box > select:has(option[value=""]:checked) { color: #6c7c89; }
.box option { background: var(--plate-raised); color: var(--text); }
::placeholder { color: #4d5b67; opacity: 1; }
.was-validated .box:has(:invalid) { --edge: rgba(255, 75, 58, 0.85); }

/* Tick boxes (other platforms) */
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.check {
  display: flex; align-items: center; gap: 10px; padding: 11px 12px; cursor: pointer;
  background: var(--field); border: 2px solid rgba(76, 195, 255, 0.14);
  font: 600 15px/1 var(--label); letter-spacing: 0.09em; text-transform: uppercase; color: var(--text-2);
  transition: border-color 0.15s, color 0.15s;
}
.check[hidden] { display: none; }
.check:hover { border-color: rgba(76, 195, 255, 0.4); color: var(--text); }
.check input {
  appearance: none; -webkit-appearance: none; flex: none; display: grid; place-items: center;
  width: 18px; height: 18px; margin: 0; border: 2px solid rgba(159, 176, 192, 0.6); background: transparent; cursor: pointer;
}
.check input:checked { background: var(--blue); border-color: var(--blue); }
.check input:checked::after {
  content: ""; width: 9px; height: 5px; margin-top: -2px;
  border-left: 2px solid var(--blue-ink); border-bottom: 2px solid var(--blue-ink); transform: rotate(-45deg);
}
.check input:focus-visible { outline: 2px solid var(--blue-edge); outline-offset: 2px; }
.check:has(input:checked) { border-color: rgba(76, 195, 255, 0.6); color: var(--text); }
.other-names { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 22px; }
.other-names:not(:has(.field:not([hidden]))) { display: none; }
@media (max-width: 640px) { .other-names { grid-template-columns: minmax(0, 1fr); } }

/* Key count chips */
.keys { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; border: 0; }
.keys input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.keys label {
  --edge: rgba(76, 195, 255, 0.24); --fill: var(--field);
  position: relative; isolation: isolate;
  display: grid; place-items: center; width: 58px; height: 50px; cursor: pointer;
  font: 700 21px/1 var(--display); color: var(--text-2); background: var(--edge);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  transition: background 0.15s, color 0.15s;
}
.keys label::before {
  content: ""; position: absolute; inset: 2px; z-index: -1; background: var(--fill);
  clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px);
}
.keys label:hover { --edge: rgba(76, 195, 255, 0.55); color: var(--text); }
.keys input:checked + label { --edge: var(--blue); --fill: var(--blue); color: var(--blue-ink); }
.keys input:focus-visible + label { --edge: var(--blue-edge); color: var(--text); }
.keys input:checked:focus-visible + label { --edge: #fff; color: var(--blue-ink); }
.was-validated .keys:has(input:invalid) label { --edge: rgba(255, 75, 58, 0.85); }

.form__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; margin-top: 4px; }
.form__foot .btn { margin: -7px; }
.form__note { font-size: 14px; color: var(--muted); }
.turnstile-slot:empty { display: none; }
.form__status:empty { display: none; }
.form__status {
  padding: 13px 16px; border-left: 3px solid var(--red); background: rgba(255, 75, 58, 0.1); color: #ffd6d1; font-size: 16px;
}
.form__status.is-info { border-color: var(--blue); background: rgba(76, 195, 255, 0.1); color: var(--text); }
.trap { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.sent { display: grid; justify-items: start; gap: 16px; padding: 8px 0; }
.sent[hidden] { display: none; }
.sent__badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 9px 14px 8px;
  font: 700 15px/1 var(--label); letter-spacing: 0.16em; color: var(--blue-ink); background: var(--green);
  clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px);
}
.sent__title { margin: 0; font: 700 clamp(22px, 2.6vw, 30px)/1.2 var(--display); letter-spacing: 0.1em; text-transform: uppercase; }
.sent p { color: var(--text-2); }

.alt-contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-top: 26px; }
.alt-contact a {
  display: block; padding: 16px 18px; text-decoration: none; background: rgba(11, 17, 24, 0.8);
  border-left: 2px solid rgba(76, 195, 255, 0.35); transition: border-color 0.15s, background 0.15s;
}
.alt-contact a:hover { border-left-color: var(--blue); background: rgba(20, 32, 44, 0.9); }
.alt-contact strong { display: block; font: 700 13px/1.2 var(--label); letter-spacing: 0.14em; color: var(--text-2); }
.alt-contact span { display: block; margin-top: 4px; color: var(--text); }

/* Privacy text */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 {
  margin: 44px 0 14px; padding-left: 14px; border-left: 3px solid var(--blue);
  font: 700 clamp(19px, 2vw, 23px)/1.25 var(--display); letter-spacing: 0.1em; text-transform: uppercase;
}
.prose h3 { margin: 24px 0 8px; font: 700 17px/1.3 var(--label); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text); }
.prose p, .prose li { color: var(--text-2); }
.prose p + p { margin-top: 12px; }
.prose ul { margin: 10px 0 0; padding-left: 22px; }
.prose li + li { margin-top: 6px; }
.prose .stamp { margin-top: 18px; font: 500 12px/1 var(--mono); letter-spacing: 0.06em; color: var(--muted); }

.lost { text-align: center; padding-top: 6vh; }
.lost__code { font: 800 clamp(64px, 12vw, 140px)/1 var(--display); letter-spacing: 0.08em; color: var(--blue); text-shadow: 0 0 40px rgba(76, 195, 255, 0.45); }
.lost p { margin: 14px 0 32px; color: var(--text-2); font-size: 18px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
  .hero__scroll { animation: none; }
}
