/* GONE ARENA website. Plain CSS, no build step. Colours are checked for contrast (all text pairs are 6:1 or better). */

@font-face {
  font-family: "Saira";
  src: url("/assets/fonts/saira-upright.woff") format("woff");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Saira";
  src: url("/assets/fonts/saira-italic.woff") format("woff");
  font-weight: 500 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --bg: #070b1a;
  --panel: #0e1633;
  --panel-2: #111b3d;
  --line: rgba(140, 170, 255, 0.2);
  --text: #e9eef9;
  --muted: #b3bdd3;
  --cyan: #45e1ff;
  --cyan-hover: #9cf0ff;
  --amber: #ffa53a;
  --violet: #c3a2ff;
  --focus: #ffe066;
  --maxw: 72rem;
  --font: "Saira", "Bahnschrift", "Segoe UI", system-ui, -apple-system, "Roboto", "Helvetica Neue", Arial, sans-serif;
}

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

html {
  background: var(--bg);
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(60rem 30rem at 15% 110%, rgba(69, 225, 255, 0.07), transparent 70%),
    radial-gradient(50rem 30rem at 90% 60%, rgba(195, 162, 255, 0.06), transparent 70%),
    var(--bg);
}

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

a { color: var(--cyan); text-decoration-thickness: 0.08em; text-underline-offset: 0.2em; }
a:hover { color: var(--cyan-hover); }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 0.25rem;
}

strong { font-weight: 650; }

h1, h2, h3 {
  margin: 0 0 0.5em;
  font-style: italic;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
h2 { font-size: clamp(1.6rem, 1.1rem + 2vw, 2.4rem); }
h3 { font-size: 1.2rem; font-weight: 750; }
p { margin: 0 0 1em; }

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

.skip {
  position: absolute;
  left: 1rem;
  top: -10rem;
  z-index: 10;
  padding: 0.6rem 1rem;
  background: var(--focus);
  color: #1b1400;
  font-weight: 600;
  border-radius: 0.4rem;
  text-decoration: none;
}
.skip:focus { top: 1rem; color: #1b1400; }

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

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--line); background: rgba(7, 11, 26, 0.96); }
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}
.brand { display: block; border-radius: 0.3rem; }
.brand img { width: 112px; height: auto; }
.site-nav ul { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; margin: 0; padding: 0; list-style: none; }
.site-nav a {
  display: inline-block;
  padding: 0.35rem 0;
  color: var(--text);
  font-style: italic;
  font-weight: 650;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
}
.site-nav a:hover { color: var(--cyan); }
.site-nav a[aria-current="page"] { color: var(--cyan); text-decoration: underline; }
@media (max-width: 30rem) {
  .brand img { width: 96px; }
  .site-nav a { font-size: 0.85rem; }
}

/* ---------- Hero ---------- */
.hero { position: relative; }
.hero-art { position: relative; display: block; max-width: 1600px; margin: 0 auto; }
.hero-art img { width: 100%; aspect-ratio: 1280 / 724; object-fit: cover; }
.hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(7, 11, 26, 0) 62%, var(--bg) 100%);
}
@media (min-width: 1600px) {
  .hero-art::after {
    background:
      linear-gradient(to bottom, rgba(7, 11, 26, 0) 62%, var(--bg) 100%),
      linear-gradient(to right, var(--bg) 0, rgba(7, 11, 26, 0) 6%, rgba(7, 11, 26, 0) 94%, var(--bg) 100%);
  }
}
.hero-panel {
  position: relative;
  z-index: 1;
  max-width: 46rem;
  margin: -1.5rem auto 0;
  padding: 1.5rem 1.25rem 0.5rem;
  text-align: center;
}
.hero h1 { font-size: clamp(1.55rem, 1rem + 2.4vw, 2.5rem); }
.lead { font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.25rem); color: var(--text); }
/* Narrow but short windows (a browser snapped to half the screen, a small laptop window): crop the art so the
   download stays on the first screen. Portrait phones and tablets are tall enough that this never crops them. */
@media (max-width: 55.99rem) {
  .hero-art img { max-height: max(12rem, calc(100vh - 20rem)); object-position: 50% 25%; }
}
/* Wide screens: the download must be on the first screen. The art is cropped (top and floor first) to leave room
   for the header and a compact two-column panel that overlaps the floor of the art. */
@media (min-width: 56rem) {
  .hero-art img { max-height: max(24rem, calc(100vh - 12rem)); object-position: 50% 25%; }
  .hero-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem 2.5rem;
    align-items: center;
    max-width: 68rem;
    margin: -5.5rem auto 0;
    padding: 1.5rem 2rem;
    text-align: left;
    background: rgba(7, 11, 26, 0.88);
    border: 1px solid var(--line);
    border-radius: 1rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  }
  .hero-panel h1 { font-size: clamp(1.5rem, 0.8rem + 1.5vw, 2.2rem); margin-bottom: 0.3em; }
  .hero-panel .lead { margin: 0; }
  .hero-panel .get { margin-top: 0; max-width: 27rem; text-align: center; }
  .hero-panel .btn-play { white-space: nowrap; }
}

/* ---------- Play area ---------- */
/* PLAY NOW (the browser version at /play/) is the main button on every computer. The Windows download is not released yet:
   only the small "Windows download coming soon" line stands for it. Phones and tablets get the notice + Copy link instead. */
.get { margin-top: 1.25rem; }
.btn-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  max-width: 100%;
  padding: 1.05rem 2rem;
  color: #1a0d00;
  background: linear-gradient(180deg, #ffc061 0%, #ff9426 100%);
  border-radius: 0.7rem;
  box-shadow: inset 0 0 0 1px rgba(255, 214, 150, 0.7), 0 10px 30px rgba(255, 140, 30, 0.3);
  font-style: italic;
  font-weight: 850;
  font-size: clamp(1.15rem, 0.9rem + 1.2vw, 1.6rem);
  line-height: 1.1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
}
.btn-play svg { flex: none; width: 1.3em; height: 1.3em; }
.btn-play:hover { color: #1a0d00; background: linear-gradient(180deg, #ffc061 0%, #ff9426 100%); box-shadow: inset 0 0 0 1px rgba(255, 230, 190, 0.9), 0 12px 36px rgba(255, 150, 40, 0.5); }
.btn-play:focus-visible { outline-offset: 4px; }
@media (prefers-reduced-motion: no-preference) {
  .btn-play { transition: transform 0.15s ease, box-shadow 0.15s ease; }
  .btn-play:hover { transform: translateY(-2px); }
}
.dl-meta { margin: 0.85rem 0 0; color: var(--muted); font-size: 0.95rem; }
.dl-meta span + span::before { content: "\00B7"; margin: 0 0.5em; color: var(--muted); }
.play-sub { margin: 0.6rem 0 0; color: var(--muted); }
.play-soon { margin: 0.5rem 0 0; font-size: 0.9rem; color: var(--muted); }

.dl-device { display: none; }
.device-msg {
  margin: 0 0 0.5rem;
  font-style: italic;
  font-weight: 800;
  font-size: clamp(1.2rem, 1rem + 1vw, 1.5rem);
  line-height: 1.25;
  text-transform: uppercase;
}
.device-sub { color: var(--muted); }
.only-windows, .only-mac, .only-chromeos, .only-linux { display: none; }
.btn-copy {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.6rem;
  color: #071019;
  background: var(--cyan);
  border: 0;
  border-radius: 0.6rem;
  font: italic 800 1.15rem/1.1 var(--font);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}
.btn-copy svg { width: 1.2em; height: 1.2em; }
.btn-copy:hover { background: var(--cyan-hover); }
.copy-status { min-height: 1.6em; margin: 0.6rem 0 0; font-weight: 600; }
.dl-anyway { margin: 0.5rem 0 0; font-size: 0.9rem; color: var(--muted); }

/* Set by /js/site.js before the page draws: without the script everybody sees PLAY NOW.
   .is-device = a phone or tablet (the notice instead of PLAY NOW); .is-windows / .is-mac / ... add words for that computer */
.is-device .play-web { display: none; }
.is-device .dl-device { display: block; }
.is-windows .only-windows, .is-mac .only-mac, .is-chromeos .only-chromeos, .is-linux .only-linux { display: inline; }

.offscreen { position: fixed; top: 0; left: -9999px; opacity: 0; }

/* ---------- Sections ---------- */
.section { padding: 4rem 0; }
.section-intro { max-width: 44rem; color: var(--muted); }

.band { position: relative; isolation: isolate; margin-top: 3rem; }
.band-art img { width: 100%; aspect-ratio: 1280 / 724; object-fit: cover; }
.band-inner { padding-top: 2rem; }
.band-inner p { max-width: 38rem; }
@media (min-width: 56rem) {
  .band { min-height: 34rem; display: flex; align-items: center; }
  .band-art { position: absolute; inset: 0; z-index: -1; }
  .band-art img { height: 100%; aspect-ratio: auto; object-position: 75% 50%; }
  .band-art::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
      linear-gradient(90deg, rgba(7, 11, 26, 0.94) 0%, rgba(7, 11, 26, 0.82) 38%, rgba(7, 11, 26, 0.2) 66%, rgba(7, 11, 26, 0) 80%),
      linear-gradient(180deg, var(--bg) 0, rgba(7, 11, 26, 0) 14%, rgba(7, 11, 26, 0) 86%, var(--bg) 100%);
  }
  .band-inner { padding-top: 5rem; padding-bottom: 5rem; }
}
.kicker {
  margin: 0 0 0.4rem;
  color: var(--cyan);
  font-style: italic;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr));
  gap: 1rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}
.card {
  padding: 1.25rem 1.25rem 0.5rem;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-radius: 0.9rem;
}
.card h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.6rem; }
.card p { color: var(--muted); }
.card .icon { width: 2.5rem; height: 2.5rem; margin-bottom: 0.75rem; color: var(--cyan); }
.card.amber .icon { color: var(--amber); }
.card.violet .icon { color: var(--violet); }
.tag {
  display: inline-block;
  padding: 0.1rem 0.55rem;
  color: var(--violet);
  border: 1px solid currentColor;
  border-radius: 999px;
  font-style: normal;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.specs-title { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.6rem; margin: 2rem 0 0; color: var(--text); }
.specs { display: grid; gap: 0; margin: 1rem 0 1rem; border-top: 1px solid var(--line); }
.specs > div { display: grid; grid-template-columns: 1fr; gap: 0.1rem 1.5rem; padding: 0.9rem 0; border-bottom: 1px solid var(--line); }
.specs dt { font-style: italic; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--cyan); }
.specs dd { margin: 0; }
@media (min-width: 40rem) {
  .specs > div { grid-template-columns: 11rem 1fr; }
}
.fine { color: var(--muted); font-size: 0.95rem; max-width: 50rem; }

.updates {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  padding: 2rem 1.5rem;
  background: linear-gradient(120deg, rgba(69, 225, 255, 0.1), rgba(195, 162, 255, 0.08));
  border: 1px solid var(--line);
  border-radius: 1rem;
}
.updates p:last-child { margin-bottom: 0; }
.updates .icon { width: 3.5rem; height: 3.5rem; color: var(--cyan); }
@media (min-width: 40rem) {
  .updates { grid-template-columns: auto 1fr; padding: 2rem 2.5rem; }
}

.final-cta { text-align: center; padding: 3rem 0 4rem; }
.final-cta h2 { margin-bottom: 0.25rem; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 2rem; padding: 2rem 0 2.5rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.95rem; }
.site-footer ul { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin: 0 0 1rem; padding: 0; list-style: none; }
.site-footer a { color: var(--text); }
.site-footer a:hover { color: var(--cyan); }
.site-footer .tm { font-size: 0.85rem; }

/* ---------- Legal pages ---------- */
.legal { max-width: 46rem; padding-top: 2.5rem; padding-bottom: 2rem; }
.legal h1 { font-size: clamp(1.8rem, 1.2rem + 2.4vw, 2.6rem); }
.legal h2 { font-size: 1.35rem; margin-top: 2.2em; }
.legal h3 { font-size: 1.1rem; margin-top: 1.6em; }
.legal ul { padding-left: 1.3rem; }
.legal li { margin-bottom: 0.4em; }
.legal .updated { color: var(--muted); }
.summary {
  padding: 1.25rem 1.5rem 0.5rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 0.8rem;
}
.summary h2 { margin-top: 0; }
.legal table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; font-size: 0.98rem; }
.legal th, .legal td { padding: 0.6rem 0.75rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.legal th { color: var(--cyan); font-weight: 650; }
.legal thead th { font-style: italic; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.85rem; }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: 3rem 1.25rem 4rem; }
.notfound img { width: min(360px, 80vw); margin: 0 auto 1.5rem; }
.notfound .code { margin: 0; color: var(--violet); font-style: italic; font-weight: 900; font-size: 1.1rem; letter-spacing: 0.3em; }
.btn-home {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.8rem 1.5rem;
  color: #071019;
  background: var(--cyan);
  border-radius: 0.6rem;
  font-style: italic;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
}
.btn-home:hover { color: #071019; background: var(--cyan-hover); }

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

@media print {
  .site-header, .site-footer, .hero-art, .band-art, .get, .skip { display: none !important; }
  body { color: #000; background: #fff; }
}
