/* Ataraxia website. Colours are the game's Apollo palette; Pixelify Sans is the game's title font. */

@font-face {
  font-family: "Pixelify Sans";
  src: url("fonts/PixelifySans.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("fonts/atkinson-hyperlegible-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("fonts/atkinson-hyperlegible-latin-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("fonts/atkinson-hyperlegible-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --night: #172038;   /* sky and page */
  --deep: #253a5e;    /* panels */
  --slate: #394a50;   /* quiet panels, rules */
  --sand: #c8925a;    /* arena ground */
  --sand-dark: #ae7541;
  --crystal: #73bed3; /* number orbs, links */
  --operator: #df84a5;/* operator orbs */
  --gold: #e8c170;    /* results, strike */
  --text: #ebede9;
  --muted: #a8b5b2;

  --display: "Pixelify Sans", ui-monospace, monospace;
  --body: "Atkinson Hyperlegible", system-ui, -apple-system, sans-serif;

  --measure: 38rem;
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3rem;
  --step-2: 1.7rem;
  --step-3: 2.4rem;
  --step-4: clamp(3.2rem, 9vw, 6.5rem);
  --notch: 8px;
}

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

html { background: var(--night); color: var(--text); }

body {
  margin: 0;
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

img.pixel { image-rendering: pixelated; }

a { color: var(--crystal); text-underline-offset: 0.18em; }
a:hover { color: var(--text); }

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

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--gold);
  color: var(--night);
  padding: 0.5rem 0.9rem;
  font-weight: 700;
  z-index: 10;
}
.skip:focus { top: 1rem; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.1;
  margin: 0;
}
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); }

p { margin: 0 0 1em; }

.wrap {
  width: min(100% - 2.5rem, 68rem);
  margin-inline: auto;
}

/* Notched pixel corners, the same cut the game's UI frames use */
.notched {
  clip-path: polygon(
    var(--notch) 0, calc(100% - var(--notch)) 0, 100% var(--notch),
    100% calc(100% - var(--notch)), calc(100% - var(--notch)) 100%,
    var(--notch) 100%, 0 calc(100% - var(--notch)), 0 var(--notch));
}

/* ---------- Top bar ---------- */

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.1rem;
}
.bar .home {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--display);
  font-size: var(--step-1);
  color: var(--text);
  text-decoration: none;
}
.bar .home img { width: 36px; height: 36px; border-radius: 8px; }
.bar nav { display: flex; gap: 1.4rem; }
.bar nav a { color: var(--muted); text-decoration: none; font-weight: 700; }
.bar nav a:hover, .bar nav a[aria-current="page"] { color: var(--text); }
.bar nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; }

/* ---------- Landing: sky over sand ---------- */

.sky {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(2px 2px at 12% 18%, var(--text) 50%, transparent 51%),
    radial-gradient(2px 2px at 27% 52%, var(--muted) 50%, transparent 51%),
    radial-gradient(2px 2px at 41% 12%, var(--text) 50%, transparent 51%),
    radial-gradient(2px 2px at 63% 34%, var(--muted) 50%, transparent 51%),
    radial-gradient(2px 2px at 78% 9%, var(--text) 50%, transparent 51%),
    radial-gradient(2px 2px at 88% 46%, var(--muted) 50%, transparent 51%),
    radial-gradient(2px 2px at 54% 61%, var(--text) 50%, transparent 51%),
    var(--night);
}

.hero {
  position: relative;
  z-index: 1;
  display: grid;
  padding-block: 4rem 0;
}

.hero h1 {
  font-size: var(--step-4);
  letter-spacing: 0.01em;
}
.hero .lede {
  font-size: var(--step-1);
  max-width: 30rem;
  margin-top: 1rem;
  color: var(--text);
}
.hero .facts-line { color: var(--muted); margin-top: 0.5rem; }

.store {
  display: inline-block;
  margin-top: 1.6rem;
  padding: 0.85rem 1.3rem;
  background: var(--gold);
  color: var(--night);
  font-weight: 700;
  text-decoration: none;
}
.store[aria-disabled="true"] { background: var(--slate); color: var(--text); cursor: default; }

.ship {
  position: absolute;
  top: 0.5rem;
  right: -240px;
  width: 223px;
  animation: cross 26s linear 0.6s 1 forwards;
}
@keyframes cross {
  to { transform: translateX(calc(-100vw - 260px)); }
}

/* The dune: a stepped pixel edge between sky and ground */
.ground {
  height: 64px;
  margin-top: 3rem;
  margin-bottom: -1px;   /* no hairline seam against the sand section below */
  background: var(--sand);
  clip-path: polygon(0 40%, 8% 40%, 8% 25%, 19% 25%, 19% 10%, 34% 10%, 34% 30%, 47% 30%, 47% 15%, 61% 15%, 61% 0, 76% 0, 76% 22%, 90% 22%, 90% 38%, 100% 38%, 100% 100%, 0 100%);
}

/* ---------- Try a chain: the arena and processor, as in the game ---------- */

.demo { position: relative; z-index: 1; padding-top: 3.5rem; }
.demo-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.4rem 1.2rem; margin-bottom: 1rem; }
.demo-head h2 { font-size: var(--step-2); }
.demo-head p { margin: 0; color: var(--muted); }

.arena {
  --pw: clamp(150px, 21cqw, 250px);   /* processor width */
  --e: 40px;                          /* sprite size, set by chain.js */
  position: relative;
  container-type: inline-size;
  aspect-ratio: 2000 / 921;
  overflow: hidden;
  background:
    radial-gradient(ellipse 22% 16% at 18% 26%, rgba(174, 117, 65, 0.45), transparent 70%),
    radial-gradient(ellipse 18% 22% at 62% 74%, rgba(174, 117, 65, 0.4), transparent 70%),
    radial-gradient(ellipse 26% 14% at 80% 18%, rgba(222, 170, 110, 0.35), transparent 70%),
    radial-gradient(ellipse 14% 10% at 40% 88%, rgba(222, 170, 110, 0.35), transparent 70%),
    #c8925a;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
.arena p { margin: 0; }

.foes, .fx { position: absolute; inset: 0; pointer-events: none; }
.fx { z-index: 2000; }
.fx-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.fx-svg polyline {
  fill: none;
  stroke: #ffe14d;
  stroke-width: 3;
  stroke-linejoin: bevel;
  filter: drop-shadow(0 0 4px #ffe14d);
  animation: fade 0.45s ease-out forwards;
}

/* Sprites: the game's own sheets, stepped frame by frame */
.foe, .oreivax {
  position: absolute;
  left: 0;
  top: 0;
  image-rendering: pixelated;
  background-repeat: no-repeat;
}
.foe {
  width: var(--e);
  height: var(--e);
  margin: calc(var(--e) / -2) 0 0 calc(var(--e) / -2);
  background-image: url("img/sprites/tumbleweed.png");
  background-size: calc(var(--e) * 8) var(--e);
  animation: roll 0.8s steps(8) infinite;
  will-change: transform;
}
.foe.hit { animation: roll 0.8s steps(8) infinite, flash 0.18s steps(1); }
.foe.burning { filter: drop-shadow(0 0 3px #ff7a1a) drop-shadow(0 0 1px #ffb15c) sepia(0.6); }
.foe.slowed { filter: drop-shadow(0 0 3px #7fe3c4); }
.foe.stunned { animation-play-state: paused; filter: drop-shadow(0 0 4px #ffe14d) brightness(1.5) sepia(1) saturate(3); }
.foe.dead { animation: die 0.35s ease-in forwards; }
@keyframes roll { to { background-position-x: calc(var(--e) * -8); } }
@keyframes flash { 0% { filter: brightness(3); } }
@keyframes die { to { opacity: 0; scale: 0.3; } }

.oreivax {
  width: calc(var(--e) * 1.6);
  height: calc(var(--e) * 1.6);
  margin: calc(var(--e) * -1.1) 0 0 calc(var(--e) * -0.8);
  background-image: url("img/sprites/oreivax-idle.png");
  background-size: calc(var(--e) * 1.6 * 6) calc(var(--e) * 1.6);
  animation: idle 0.9s steps(6) infinite;
}
.oreivax::after {   /* the green health bar under him, as in the game */
  content: "";
  position: absolute;
  left: 22%;
  right: 22%;
  bottom: -8%;
  height: 7%;
  background: #8fd14f;
  border: 2px solid #10141f;
}
@keyframes idle { to { background-position-x: calc(var(--e) * -1.6 * 6); } }

.crystals {
  position: absolute;
  top: 2.2cqw;
  right: 2.2cqw;
  z-index: 2001;
  display: flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.25em 0.7em 0.25em 1em;
  background: #1b2333;
  border: 3px solid #10141f;
  border-radius: 999px;
  font: 700 clamp(15px, 1.8cqw, 24px) var(--display);
  color: #fff;
}
.crystals::after {
  content: "";
  width: 0.7em;
  height: 0.7em;
  background: linear-gradient(135deg, #ebede9 40%, #73bed3 41%);
  transform: rotate(45deg);
}

/* Damage numbers and mix names */
.pop {
  position: absolute;
  transform: translate(-50%, -50%);
  font: 700 clamp(15px, 2.1cqw, 28px) var(--display);
  color: #f6e7c1;
  text-shadow: 2px 0 #10141f, -2px 0 #10141f, 0 2px #10141f, 0 -2px #10141f, 2px 2px #10141f;
  white-space: nowrap;
  animation: rise 0.8s ease-out forwards;
}
.pop.burn { color: #ff9a3d; font-size: clamp(12px, 1.5cqw, 20px); }
.pop.zap { color: #ffe14d; font-size: clamp(12px, 1.5cqw, 20px); }
.pop.mixname { font-size: clamp(18px, 3cqw, 40px); text-transform: uppercase; letter-spacing: 0.04em; color: #73bed3; animation-duration: 1.3s; }
.pop.c-ff7a1a { color: #ff7a1a; }
.pop.c-7fe3c4 { color: #7fe3c4; }
.pop.c-ffe14d { color: #ffe14d; }
@keyframes rise {
  0% { opacity: 0; transform: translate(-50%, -20%) scale(0.7); }
  15% { opacity: 1; transform: translate(-50%, -60%) scale(1.1); }
  100% { opacity: 0; transform: translate(-50%, -180%) scale(1); }
}

/* Strike: the beam sheet, its ring, fire zones */
.beam {
  position: absolute;
  width: var(--bw);
  height: calc(var(--bw) * 2);
  background: url("img/sprites/raybeam.png") 0 0 / calc(var(--bw) * 14) 100% no-repeat;
  image-rendering: pixelated;
  animation: beam 0.62s steps(14) forwards;
}
.beam.ult { animation-duration: 0.8s; }
.beam.tint-ff7a1a { filter: hue-rotate(200deg) saturate(3.2) brightness(1.05); }
.beam.tint-7fe3c4 { filter: hue-rotate(-28deg) saturate(1.4) brightness(1.1); }
.beam.tint-ffe14d { filter: hue-rotate(215deg) saturate(3) brightness(1.35); }
@keyframes beam { to { background-position-x: calc(var(--bw) * -14); } }

.ring-fx {
  position: absolute;
  border-radius: 50%;
  border: max(3px, 0.45cqw) dashed var(--c);
  background: radial-gradient(circle, transparent 45%, color-mix(in srgb, var(--c) 35%, transparent) 70%, transparent 71%);
  transform: translate(-50%, -50%) scale(0.2);
  animation: ring 0.5s ease-out forwards;
}
.ring-fx.big { border-width: max(4px, 0.7cqw); animation-duration: 0.7s; }
.ring-fx.small { animation-duration: 0.35s; }
.ring-fx.well { animation: well 0.8s ease-in forwards; }
@keyframes ring {
  0% { opacity: 1; transform: translate(-50%, -50%) scale(0.2); }
  60% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1); }
}
@keyframes well {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(1.1) rotate(0); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(0.2) rotate(200deg); }
}

.zone {
  position: absolute;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255, 177, 92, 0.55), rgba(255, 122, 26, 0.35) 55%, transparent 70%);
  animation: zonein 0.4s ease-out, fade 2s linear forwards;
}
@keyframes zonein { from { transform: translate(-50%, -50%) scale(0.3); } }
@keyframes fade { 0%, 70% { opacity: 1; } 100% { opacity: 0; } }

/* Readout: the operation as it is built, and the mix it makes */
.readout {
  position: absolute;
  z-index: 2001;
  right: calc(var(--pw) + 3cqw);
  bottom: calc(var(--pw) * 0.42);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.2rem;
  text-align: right;
  pointer-events: none;
  font-family: var(--display);
  color: #fff;
  text-shadow: 2px 0 #10141f, -2px 0 #10141f, 0 2px #10141f, 0 -2px #10141f;
}
.eq { font-family: var(--body); font-size: clamp(20px, 2.8cqw, 36px); font-weight: 700; letter-spacing: 0.04em; min-height: 1.2em; }
.mix b {
  display: block;
  font-size: clamp(16px, 2.2cqw, 30px);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  text-shadow: none;
  filter: drop-shadow(2px 2px 0 #10141f);
}
.mix span { display: block; font-size: clamp(12px, 1.4cqw, 18px); }
.fire {
  pointer-events: auto;
  margin-top: 0.3rem;
  padding: 0.35rem 0.9rem;
  border: 3px solid #10141f;
  background: var(--gold);
  color: #10141f;
  font: 700 clamp(14px, 1.5cqw, 18px) var(--display);
  text-shadow: none;
  cursor: pointer;
}
.fire:disabled { background: #6f7a7d; color: #222; cursor: default; }

/* Reserve: five more orbs that slide in after a cast */
.reserve {
  position: absolute;
  z-index: 2001;
  right: 2cqw;
  bottom: calc(var(--pw) + 2.6cqw);
  display: flex;
  align-items: center;
  gap: 0.6em;
  font: 700 clamp(10px, 1.1cqw, 14px) var(--display);
  color: rgba(255, 255, 255, 0.75);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.reserve-orbs { display: flex; gap: 0.35em; }
.reserve-orbs .r {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(22px, 2.9cqw, 36px);
  aspect-ratio: 1;
  border-radius: 50%;
  font: 700 clamp(12px, 1.6cqw, 20px)/1 var(--body);
  color: #10141f;
  letter-spacing: 0;
}
.reserve-orbs .r.empty { background: rgba(16, 20, 31, 0.55); }

/* The processor: five slots on a pentagon ring */
.proc {
  position: absolute;
  z-index: 2001;
  right: 1.5cqw;
  bottom: 1.5cqw;
  width: var(--pw);
  aspect-ratio: 1;
  container-type: inline-size;
  touch-action: none;
}
.proc::before {   /* charges up behind the slots while a valid chain is held */
  content: "";
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--charge, #73bed3) 45%, transparent), transparent 68%);
  opacity: 0;
  transition: opacity 0.2s;
}
.proc.charged::before { opacity: 1; }
.proc.ult::before { animation: spin 3s linear infinite; background: conic-gradient(from 0deg, transparent, color-mix(in srgb, var(--charge) 60%, transparent), transparent 30%, color-mix(in srgb, var(--charge) 60%, transparent) 50%, transparent 65%); -webkit-mask: radial-gradient(circle, transparent 52%, #000 54%, #000 66%, transparent 68%); mask: radial-gradient(circle, transparent 52%, #000 54%, #000 66%, transparent 68%); }
@keyframes spin { to { rotate: 1turn; } }

.proc svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.proc .track-shadow { fill: none; stroke: #10141f; stroke-width: 4.2; }
.proc .track { fill: none; stroke: #73bed3; stroke-width: 2.2; }
.proc .links { fill: none; stroke: #73bed3; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 1.5px #fff); }

.slot {
  position: absolute;
  width: 27%;
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  font: 700 14cqw/1 var(--body);
  color: #10141f;
  cursor: grab;
  box-shadow: inset 0 0 0 1cqw #10141f, inset 0 -2.2cqw 0 rgba(0, 0, 0, 0.18);
  transition: transform 0.12s;
}
.slot.empty { cursor: default; box-shadow: inset 0 0 0 0.8cqw rgba(164, 221, 219, 0.45); background: rgba(16, 20, 31, 0.45); }
.slot.kind-o.empty { box-shadow: inset 0 0 0 0.8cqw rgba(223, 132, 165, 0.5); }

.slot.number, .r.number { background: #73bed3; }
.slot.operator, .r.operator { background: #df84a5; }

/* Elemental numbers: the game's orb art behind the digit */
.slot.el, .r.el { background: transparent; box-shadow: none; }
.slot.el::before, .r.el::before {
  content: "";
  position: absolute;
  inset: -12%;
  z-index: -1;
  background: url("img/sprites/element-orbs.png") 0 0 / 300% 100% no-repeat;
  image-rendering: pixelated;
}
.slot.el { isolation: isolate; }
.r.el { isolation: isolate; }
.heat::before { background-position-x: 0 !important; }
.electric::before { background-position-x: 50% !important; }
.wind::before { background-position-x: 100% !important; }

/* Selected: dark orb, coloured rim, white digit */
.slot.sel { background: #10141f; color: #fff; transform: translate(-50%, -50%) scale(1.06); box-shadow: inset 0 0 0 1.4cqw #73bed3; }
.slot.operator.sel { box-shadow: inset 0 0 0 1.4cqw #df84a5; }
.slot.el.sel { background: transparent; text-shadow: 0 0 2px #10141f, 2px 2px 0 #10141f; }
.slot.el.sel::before { filter: brightness(0.55); }
.slot.el.sel::after {
  content: "";
  position: absolute;
  inset: 4%;
  border-radius: 50%;
  border: 1.2cqw solid #fff;
}

.arrive { animation: arrive 0.35s cubic-bezier(0.3, 1.6, 0.5, 1); }
.slot.arrive { animation: arrive-slot 0.35s cubic-bezier(0.3, 1.6, 0.5, 1); }
@keyframes arrive { from { scale: 0.3; opacity: 0; } }
@keyframes arrive-slot { from { transform: translate(-50%, -50%) scale(0.3); opacity: 0; } }

.legend { margin: 0.8rem 0 0; color: var(--muted); font-size: var(--step--1); }
.legend span { font-weight: 700; }
.legend .heat { color: #ff9a3d; }
.legend .wind { color: #7fe3c4; }
.legend .electric { color: #ffe14d; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-width: 640px) {
  .arena { aspect-ratio: 3 / 4; --pw: 52cqw; }
  .readout { right: 3cqw; bottom: calc(var(--pw) + 12cqw); }
  .reserve { bottom: calc(var(--pw) + 3cqw); }
  .crystals { font-size: 15px; }
}

/* ---------- Sections on the ground ---------- */

.field { background: var(--sand); color: #1a1420; padding-block: 4.5rem 4rem; }
.field a { color: #1a1420; }
.field h2 { color: #1a1420; }

.run {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
  counter-reset: step;
}
.run li {
  counter-increment: step;
  border-top: 4px solid #1a1420;
  padding-top: 0.8rem;
}
.run li::before {
  content: counter(step);
  font-weight: 700;
  font-size: var(--step-2);
  display: block;
  line-height: 1;
  margin-bottom: 0.4rem;
}
.run h3 { font-size: var(--step-0); font-family: var(--body); font-weight: 700; margin-bottom: 0.3rem; }
.run p { font-size: var(--step--1); margin: 0; }

.shots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
}
.shots figure { margin: 0; }
.shots .frame {
  aspect-ratio: 2622 / 1206;
  background: var(--sand-dark);
  border: 4px solid #1a1420;
  display: grid;
  place-items: center;
  font-size: var(--step--1);
  text-align: center;
  padding: 0.5rem;
}
.shots img { width: 100%; height: auto; display: block; border: 4px solid #1a1420; }
.shots figcaption { font-size: var(--step--1); margin-top: 0.4rem; }

/* ---------- Night sections ---------- */

.band { padding-block: 4.5rem; }
.band + .band { border-top: 4px solid var(--slate); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 18rem) minmax(0, 1fr);
  gap: 1.5rem 3rem;
}
.split > div > p:first-child { margin-top: 0.3rem; }

.ways-note { color: var(--muted); }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.chips li {
  padding: 0.5rem 0.9rem;
  background: var(--deep);
  border-left: 4px solid var(--crystal);
  font-weight: 700;
}

.facts {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.55rem 2rem;
  margin: 0;
}
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 700; }

/* ---------- Reading pages (privacy, support) ---------- */

.page { padding-block: 3rem 5rem; }
.page header { max-width: var(--measure); margin-bottom: 2.5rem; }
.page h1 { font-size: var(--step-3); margin-bottom: 0.6rem; }
.page .updated { color: var(--muted); }
.prose { max-width: var(--measure); }
.prose h2 { font-size: var(--step-1); margin: 2.4rem 0 0.7rem; color: var(--gold); }
.prose ul { padding-left: 1.2rem; margin: 0 0 1em; }
.prose li { margin-bottom: 0.4rem; }

.contact {
  background: var(--deep);
  padding: 1.3rem 1.4rem;
  margin: 0 0 2.5rem;
  max-width: var(--measure);
}
.contact p { margin: 0; }
.contact a { font-weight: 700; font-size: var(--step-1); }

details {
  border-bottom: 2px solid var(--slate);
  max-width: var(--measure);
}
summary {
  cursor: pointer;
  padding: 1rem 0;
  font-weight: 700;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+";
  font-family: var(--display);
  color: var(--crystal);
  font-size: 1.4rem;
  line-height: 1;
}
details[open] summary::after { content: "\2212"; }
details > div { padding-bottom: 1rem; }

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

.foot {
  border-top: 4px solid var(--slate);
  padding-block: 2rem 2.5rem;
  color: var(--muted);
  font-size: var(--step--1);
}
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.foot nav { display: flex; gap: 1.4rem; }
.foot a { color: var(--muted); }

/* ---------- Small screens ---------- */

@media (max-width: 860px) {
  .hero { padding-top: 2rem; }
  .run { grid-template-columns: 1fr 1fr; }
  .shots { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .run { grid-template-columns: 1fr; }
  .bar nav { gap: 1rem; }
}

@media (max-width: 600px) {
  .ship { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .ship { animation: none; right: 4%; }
  .slot, .slot.sel { transition: none; }
  .proc.ult::before { animation: none; }
}

/* Long addresses (the support email) wrap instead of overflowing on narrow phones. */
a[href^="mailto:"] { overflow-wrap: anywhere; }
