/* EOS Unlimited — site styles. HUD look taken from No Piece!'s own interface.
   Self-hosted fonts only; no external requests, no scripts. */

@font-face { font-family: "Orbitron"; src: url("/assets/fonts/orbitron-black.woff2") format("woff2"); font-weight: 900; font-display: swap; }
@font-face { font-family: "Orbitron"; src: url("/assets/fonts/orbitron-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Rajdhani"; src: url("/assets/fonts/rajdhani-medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Rajdhani"; src: url("/assets/fonts/rajdhani-semibold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Rajdhani"; src: url("/assets/fonts/rajdhani-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  color-scheme: dark;

  --bg: #04070f;
  --panel: #08101f;
  --panel-2: #0c1730;
  --line: rgba(79, 216, 255, .24);
  --line-strong: rgba(79, 216, 255, .55);

  --text: #e8eef6;
  --text-muted: #9cadc2;
  --cyan: #4fd8ff;
  --gold: #f2b84b;
  --gold-hi: #ffdc8f;
  --gold-deep: #b9832a;
  --orange: #ef7a2f;   /* Robot faction */
  --blue: #4f7bff;     /* Alien faction */

  --font-display: "Orbitron", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Rajdhani", "Avenir Next Condensed", "Arial Narrow", system-ui, sans-serif;

  --cut: 14px;
  --gutter: clamp(18px, 5vw, 48px);
  --max: 1160px;
  --measure: 66ch;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1.2rem;
  line-height: 1.5;
}

/* Starfield, fixed behind everything. Star tiles use odd sizes so the repeat is hard to spot. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(1px 1px at 23px 41px, rgba(255,255,255,.7) 50%, transparent 51%) 0 0 / 263px 263px,
    radial-gradient(1px 1px at 171px 113px, rgba(255,255,255,.4) 50%, transparent 51%) 0 0 / 263px 263px,
    radial-gradient(1px 1px at 97px 211px, rgba(190,225,255,.5) 50%, transparent 51%) 0 0 / 347px 347px,
    radial-gradient(1.5px 1.5px at 281px 59px, rgba(255,255,255,.55) 50%, transparent 51%) 0 0 / 347px 347px,
    radial-gradient(1px 1px at 61px 307px, rgba(255,255,255,.35) 50%, transparent 51%) 0 0 / 419px 419px,
    radial-gradient(1.5px 1.5px at 353px 263px, rgba(255,230,180,.5) 50%, transparent 51%) 0 0 / 419px 419px,
    radial-gradient(1px 1px at 443px 137px, rgba(255,255,255,.4) 50%, transparent 51%) 0 0 / 521px 521px,
    radial-gradient(1100px 600px at 80% -15%, rgba(40, 90, 170, .30), transparent 70%),
    radial-gradient(800px 500px at -10% 60%, rgba(79, 216, 255, .05), transparent 70%);
}

/* HUD corner brackets on the screen edges, as in the game's menus. */
body::after {
  content: "";
  position: fixed;
  inset: 10px;
  z-index: 70;
  pointer-events: none;
  --c: rgba(79, 216, 255, .5);
  --b: 22px;
  --t: 2px;
  background:
    linear-gradient(var(--c), var(--c)) left top / var(--b) var(--t) no-repeat,
    linear-gradient(var(--c), var(--c)) left top / var(--t) var(--b) no-repeat,
    linear-gradient(var(--c), var(--c)) right top / var(--b) var(--t) no-repeat,
    linear-gradient(var(--c), var(--c)) right top / var(--t) var(--b) no-repeat,
    linear-gradient(var(--c), var(--c)) left bottom / var(--b) var(--t) no-repeat,
    linear-gradient(var(--c), var(--c)) left bottom / var(--t) var(--b) no-repeat,
    linear-gradient(var(--c), var(--c)) right bottom / var(--b) var(--t) no-repeat,
    linear-gradient(var(--c), var(--c)) right bottom / var(--t) var(--b) no-repeat;
}

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

a { color: var(--cyan); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: #9be9ff; text-decoration-thickness: 2px; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--gold);
  color: var(--bg);
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

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

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

/* ---------- Type ---------- */

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: .02em;
  text-transform: uppercase;
  margin: 0 0 .55em;
  text-wrap: balance;
}
h1 { font-size: clamp(1.8rem, 7.4vw, 4.4rem); }
h2 { font-size: clamp(1.4rem, 4.2vw, 2.3rem); }
h3 { font-size: clamp(.95rem, 1.6vw, 1.1rem); font-weight: 700; letter-spacing: .06em; line-height: 1.3; }

p { margin: 0 0 1em; max-width: var(--measure); }
strong { font-weight: 700; color: #fff; }

/* Small, wide-tracked label above a heading ("NEW GAME", "CHECKMATE" in the game). */
.eyebrow,
.kicker {
  display: flex;
  align-items: center;
  gap: .7em;
  margin: 0 0 .9rem;
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--cyan);
}
.eyebrow::before {
  content: "";
  flex: none;
  width: 20px;
  height: 2px;
  background: var(--gold);
}

.lede {
  font-size: clamp(1.3rem, 2.4vw, 1.55rem);
  font-weight: 600;
  line-height: 1.4;
  color: var(--text);
}
.muted { color: var(--text-muted); }

/* ---------- HUD panels: chamfered corners with a hairline edge ---------- */
/* The panel is filled with the edge colour and clipped; ::before lays the dark fill 1px inside it. */

.hud,
.card,
.feature-list li,
.facts,
.contact-card,
.note,
.placeholder-media,
.faction,
.transmission {
  --edge: var(--line);
  --fill: linear-gradient(180deg, rgba(13, 24, 48, .96), rgba(6, 11, 22, .96));
  position: relative;
  isolation: isolate;
  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));
}
.hud::before,
.card::before,
.feature-list li::before,
.facts::before,
.contact-card::before,
.note::before,
.placeholder-media::before,
.faction::before,
.transmission::before {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: -1;
  background: var(--fill);
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
}

/* ---------- Header ---------- */

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(4, 7, 15, .9);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  white-space: nowrap;
}
.brand:hover { color: var(--text); }
.brand svg { width: 30px; height: 30px; flex: none; }
.brand span span { color: var(--gold); }

.site-nav ul {
  display: flex;
  gap: clamp(2px, 1.5vw, 8px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav a {
  display: block;
  padding: 10px 12px;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  white-space: nowrap;
}
.site-nav a:hover { color: var(--text); }
.site-nav a[aria-current="page"] { color: var(--gold); box-shadow: inset 0 -2px 0 var(--gold); }

@media (max-width: 560px) {
  .site-header .wrap { flex-wrap: wrap; justify-content: center; padding-block: 12px 0; gap: 0; }
  .brand { padding-block: 4px; }
  .site-nav { width: 100%; }
  .site-nav ul { justify-content: center; }
  .site-nav a { padding: 12px 10px; letter-spacing: .14em; }
}

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

main { flex: 1; }

.section { padding-block: clamp(56px, 8vw, 104px); }
.section + .section { border-top: 1px solid; border-image: linear-gradient(90deg, transparent, var(--line), transparent) 1; }
.section--tight { padding-block: clamp(36px, 5vw, 64px); }

.hero { padding-block: clamp(48px, 8vw, 104px) clamp(40px, 6vw, 80px); }

/* ---------- Buttons ---------- */

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

.button {
  --cut: 10px;
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .7em;
  min-height: 48px;
  padding: 12px 26px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
  transition: filter .15s ease;
}
/* The clip would cut an outside focus ring, so buttons draw theirs inside. */
.button:focus-visible { outline: 2px solid var(--text); outline-offset: -6px; }
.button--primary {
  background: linear-gradient(180deg, var(--gold-hi), var(--gold) 45%, var(--gold-deep));
  color: #1a1204;
}
.button--primary:hover { color: #1a1204; filter: brightness(1.08); }
.button--ghost { background: var(--line-strong); color: var(--text); }
.button--ghost::before {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: -1;
  background: #07101f;
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
}
.button--ghost:hover { color: var(--text); filter: brightness(1.25); }
.button .arrow { font-family: var(--font-body); font-size: 1.1rem; line-height: 1; }

/* ---------- Status pill ---------- */

.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 12px;
  border: 1px solid var(--line-strong);
  background: rgba(79, 216, 255, .07);
  color: var(--text);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.status::after {
  content: "";
  order: -1;
  flex: none;
  width: 8px; height: 8px;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
}

/* ---------- Game art ---------- */

.app-art { margin: 0; }
.app-art img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 22.4%;
}

/* ---------- Home ---------- */

.home-hero h1 .accent { color: var(--gold); }

.home-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(36px, 5vw, 64px);
  align-items: center;
}
@media (min-width: 900px) {
  .home-hero-grid { grid-template-columns: 6fr 5fr; }
}
.home-hero .lede { max-width: 30ch; }

.readout {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, auto));
  justify-content: start;
  gap: 8px 32px;
  margin: 32px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.readout dt {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.readout dd { margin: 0; font-weight: 700; color: var(--text); }
@media (max-width: 480px) {
  .readout { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .readout div { display: flex; justify-content: space-between; gap: 16px; padding-block: 6px; border-bottom: 1px solid rgba(79, 216, 255, .1); }
}

/* "Incoming transmission" panel holding the game. */
.transmission {
  --edge: var(--line-strong);
  --cut: 22px;
  padding: clamp(22px, 3.5vw, 36px);
  justify-self: center;
  width: 100%;
  max-width: 460px;
}
.transmission .kicker { color: var(--gold); }
.transmission .kicker::before {
  content: "";
  flex: none;
  width: 8px; height: 8px;
  background: var(--gold);
  box-shadow: 0 0 10px var(--gold);
}
.transmission .app-art { max-width: 300px; margin: 6px auto 22px; }
.transmission h2 { font-size: clamp(1.9rem, 5vw, 2.6rem); color: var(--gold); margin-bottom: .3em; }
.transmission .lede { font-size: 1.3rem; }
.transmission .actions { margin-top: 20px; }

.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 36px;
}
.card { padding: 24px 24px 26px; }
.card h3 { margin-bottom: .6em; }
.card p { margin: 0; color: var(--text-muted); }
.card .kicker { margin-bottom: 14px; }
.card .kicker b { color: var(--gold); font-weight: 700; }

/* ---------- Game page ---------- */

.game-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(36px, 6vw, 72px);
  align-items: center;
}
.game-hero .app-art { max-width: 380px; width: 100%; justify-self: center; }
.game-hero h1 { font-size: clamp(2.6rem, 9vw, 5.6rem); color: var(--gold); margin-bottom: .25em; }
.game-hero .tagline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  letter-spacing: .06em;
  line-height: 1.45;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 1.1em;
}
@media (min-width: 860px) {
  .game-hero { grid-template-columns: 7fr 5fr; }
  .game-hero .app-art { order: 2; }
}

/* Choose your side: Robots versus Aliens. */
.versus {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
  margin-top: clamp(40px, 6vw, 72px);
}
@media (min-width: 760px) {
  .versus { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 20px; }
}
.faction { --cut: 20px; padding: clamp(22px, 3vw, 32px); }
.faction h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: .2em; }
.faction .quip { font-weight: 700; font-size: 1.25rem; margin-bottom: .7em; }
.faction p:last-child { margin-bottom: 0; color: var(--text-muted); }
.faction--robots {
  --edge: linear-gradient(135deg, var(--orange), rgba(239, 122, 47, .25) 60%);
  --fill: linear-gradient(160deg, rgba(56, 30, 16, .95), rgba(8, 12, 22, .97) 60%);
}
.faction--robots h2, .faction--robots .kicker { color: var(--orange); }
.faction--aliens {
  --edge: linear-gradient(225deg, var(--blue), rgba(79, 123, 255, .25) 60%);
  --fill: linear-gradient(200deg, rgba(20, 32, 82, .95), rgba(8, 12, 22, .97) 60%);
}
.faction--aliens h2, .faction--aliens .kicker { color: #8aa6ff; }
.faction--aliens .quip { color: var(--gold); }
.vs {
  align-self: center;
  justify-self: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.3rem, 3vw, 2rem);
  letter-spacing: .08em;
  color: var(--text);
  text-shadow: 0 0 18px rgba(242, 184, 75, .6);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px 64px;
}
@media (min-width: 860px) {
  .split { grid-template-columns: 5fr 7fr; }
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}
.feature-list li { --cut: 12px; padding: 18px 22px; }
.feature-list strong {
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text);
}
.feature-list strong::before { content: "› "; color: var(--gold); }
.feature-list span { color: var(--text-muted); }

/* "Transmission incoming" screen for the screenshots that don't exist yet. */
.placeholder-media {
  --cut: 20px;
  --fill:
    repeating-linear-gradient(180deg, rgba(79, 216, 255, .05) 0 1px, transparent 1px 4px),
    radial-gradient(closest-side at 50% 50%, rgba(79, 216, 255, .1), transparent),
    #050a15;
  display: grid;
  place-content: center;
  justify-items: center;
  min-height: 260px;
  padding: 40px 24px;
  text-align: center;
  color: var(--text-muted);
}
.placeholder-media .kicker { justify-content: center; color: var(--gold); margin-bottom: 10px; }
.placeholder-media p { margin: 0 auto; }

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin: 0;
  --fill: rgba(6, 11, 22, .96);
}
.facts div {
  padding: 18px 24px;
  border-bottom: 1px solid rgba(79, 216, 255, .12);
}
.facts dt {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 4px;
}
.facts dd { margin: 0; color: var(--text); font-weight: 600; }

/* ---------- Prose pages ---------- */

.page-head { padding-block: clamp(48px, 8vw, 96px) clamp(12px, 2vw, 24px); }
.page-head h1 { font-size: clamp(1.7rem, 6vw, 3.6rem); }

.page-head + .section--tight { padding-top: 8px; }

/* Limit line length on the children, so prose lines up with the page title instead of centring. */
.prose > * { max-width: 74ch; }
.prose h2 { font-size: clamp(1.1rem, 2.6vw, 1.45rem); margin-top: 2.2em; color: var(--text); }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--gold); content: "› "; }

.contact-card {
  --edge: var(--line-strong);
  --cut: 20px;
  display: grid;
  justify-items: start;
  gap: 10px;
  padding: clamp(24px, 4vw, 40px);
  max-width: 640px;
}
.contact-card .label {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--cyan);
}
.contact-card .email {
  font-family: var(--font-display);
  font-size: clamp(1rem, 3.6vw, 1.6rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--gold);
  text-decoration: none;
  overflow-wrap: anywhere;
}
.contact-card .email:hover { color: var(--gold-hi); text-decoration: underline; }
.contact-card p { margin: 0; }

.note {
  --edge: linear-gradient(90deg, var(--cyan) 0 3px, var(--line) 3px);
  --cut: 10px;
  padding: 16px 20px 16px 24px;
  max-width: 74ch;
  margin-bottom: 1.4em;
}
.note p:last-child { margin-bottom: 0; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(4, 7, 15, .7);
  padding-block: 36px 48px;
  color: var(--text-muted);
  font-size: 1.05rem;
}
.site-footer .wrap { display: grid; gap: 24px; }
@media (min-width: 760px) {
  .site-footer .wrap { grid-template-columns: 1fr auto; align-items: start; }
}
.site-footer p { margin: 0 0 .3em; }
.site-footer .legal-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .14em;
  color: var(--text);
}
.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-footer a {
  color: var(--text-muted);
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-decoration: none;
}
.site-footer a:hover { color: var(--gold); }
.site-footer .fine { font-size: .9rem; opacity: .85; margin-top: 12px; }

/* ---------- Motion and accessibility ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}

@media (forced-colors: active) {
  .hud, .card, .feature-list li, .facts, .contact-card, .note, .placeholder-media, .faction, .transmission, .button {
    clip-path: none;
    border: 1px solid CanvasText;
  }
  body::after { display: none; }
}

/* "Built to teach" list on the game page: gold edge, and a tag for features still in the works. */
.feature-list--learn { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.feature-list--learn li { --edge: linear-gradient(135deg, rgba(242, 184, 75, .7), var(--line) 45%); }
.feature-list em {
  display: inline-block;
  margin-left: .6em;
  padding: 2px 8px;
  border: 1px solid var(--line-strong);
  font-family: var(--font-body);
  font-style: normal;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .2em;
  vertical-align: middle;
  color: var(--cyan);
}
.feature-list .is-planned { --edge: var(--line); }
.feature-list .is-planned strong::before { color: var(--cyan); }
