/* Scanbound public pages: the game's own night-sky palette, Oxanium for headings, the system
   sans for reading. Everything is self-hosted so a visit contacts no one but GitHub Pages. */
@font-face {
  font-family: "Oxanium";
  src: url("fonts/Oxanium-VariableFont_wght.ttf") format("truetype");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --bg: #050916;
  --bg-deep: #02040c;
  --panel: #0c1a2e;
  --panel-edge: rgba(140, 205, 240, 0.26);
  --text: #e8edf8;
  --soft: #c3cbe0;
  --muted: #8e9ab6;
  --cyan: #35e2ff;
  --cyan-soft: #bfefff;
  --gold: #ffd36a;
  --display: "Oxanium", "Trebuchet MS", system-ui, sans-serif;
  --round: "Fredoka", var(--display);
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(ellipse at top, rgba(53, 226, 255, 0.10), transparent 60%),
    linear-gradient(180deg, var(--bg), var(--bg-deep));
  background-attachment: fixed;
  color: var(--soft);
  font: 16px/1.65 var(--body);
}

.wrap {
  max-width: 46rem;
  margin: 0 auto;
  padding-inline: 1.25rem;
  padding-block: 2rem 4rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--text);
  text-decoration: none;
}

.brand img {
  width: auto;
  height: 2.1rem;
  filter: drop-shadow(0 3px 10px rgba(2, 4, 12, 0.45));
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

nav a,
.button {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--panel-edge);
  border-radius: 999px;
  background: linear-gradient(180deg, #16283f, #091626);
  color: var(--cyan-soft);
  font: 700 0.78rem/1.2 var(--display);
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

nav a[aria-current="page"] {
  border-color: rgba(53, 226, 255, 0.78);
  color: var(--cyan);
}

nav a:focus-visible,
.button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

h1, h2, h3 {
  color: var(--text);
  font-family: var(--display);
  line-height: 1.2;
  text-wrap: balance;
}

h1 {
  margin: 2.25rem 0 0.4rem;
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  font-weight: 800;
  letter-spacing: 0.02em;
}

h2 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--cyan-soft);
}

h3 {
  margin: 1rem 0 0.25rem;
  font-size: 1rem;
  font-weight: 700;
}

.lede {
  margin: 0 0 1.75rem;
  color: var(--soft);
  font-size: 1.08rem;
}

.meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

section {
  margin-top: 1rem;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--panel-edge);
  border-radius: 1rem;
  background: linear-gradient(180deg, rgba(22, 40, 63, 0.75), rgba(9, 22, 38, 0.75));
}

section > :last-child { margin-bottom: 0; }

p, ul { margin: 0 0 0.75rem; }

ul { padding-left: 1.2rem; }

li + li { margin-top: 0.35rem; }

strong { color: var(--text); }

a { color: var(--cyan); }

.summary {
  border-color: rgba(255, 211, 106, 0.5);
}

.summary h2 { color: var(--gold); }

.email {
  font-weight: 700;
  word-break: break-all;
}

footer {
  margin-top: 2.5rem;
  color: var(--muted);
  font-size: 0.85rem;
}

footer a { color: var(--soft); }

/* ---- Home ----------------------------------------------------------------------------------
   The game's own night-cloud sky, with a lineup of real Hero renders standing in the clouds. */
@font-face {
  font-family: "Fredoka";
  src: url("fonts/Fredoka-VariableFont_wdth_wght.ttf") format("truetype");
  font-weight: 300 700;
  font-display: swap;
}



.sky {
  position: relative;
  overflow: hidden;
  padding-inline: 1.25rem;
  padding-block: 1.25rem 0;
  background: #1a2a6c url("clouds.webp") center bottom / cover no-repeat;
  border-bottom: 1px solid var(--panel-edge);
}

.sky::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 30%;
  background: linear-gradient(180deg, transparent, rgba(5, 9, 22, 0.55));
  pointer-events: none;
}

.sky__top {
  max-width: 64rem;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.sky__top nav { margin-top: 0; }

.sky__title {
  position: relative;
  z-index: 1;
  max-width: 40rem;
  margin: 0 auto;
  padding-top: clamp(2rem, 7vw, 4.5rem);
  text-align: center;
}

.sky__logo {
  width: min(100%, 26rem);
  height: auto;
  filter: drop-shadow(0 6px 18px rgba(2, 4, 12, 0.55));
}

.sky h1 {
  margin: 1.1rem 0 0.6rem;
  font-family: var(--round);
  font-size: clamp(2rem, 6vw, 3.2rem);
  font-weight: 700;
  letter-spacing: 0;
  text-shadow: 0 3px 0 rgba(2, 4, 12, 0.35);
}

.sky__title p {
  margin: 0 auto;
  max-width: 34rem;
  color: #dfe6ff;
  font-size: 1.1rem;
}


/* The App Store link under Home's tagline: the one gold button, so it reads as the thing to do. */
.store {
  display: grid;
  justify-items: center;
  gap: 0.55rem;
  margin-top: 1.4rem;
}

.button--store {
  min-height: 3rem;
  padding-inline: 1.4rem;
  border-color: rgba(255, 211, 106, 0.8);
  background: linear-gradient(180deg, #3a2c0c, #1a1204);
  color: var(--gold);
  font-size: 0.86rem;
}

.store span {
  color: var(--soft);
  font-size: 0.92rem;
}

.lineup {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  max-width: 64rem;
  margin: clamp(0.5rem, 3vw, 1.5rem) auto 0;
}

.lineup__hero {
  width: clamp(5.5rem, 15vw, 10.5rem);
  height: auto;
  margin-inline: clamp(-2.4rem, -3.2vw, -0.9rem);
  margin-bottom: -2.5%;
  filter: drop-shadow(0 10px 12px rgba(2, 4, 12, 0.45));
  animation: bob 3.6s ease-in-out infinite;
}

.lineup__hero:nth-child(2n) { animation-delay: -1.2s; }
.lineup__hero:nth-child(3n) { animation-delay: -2.4s; }

.lineup__hero--lead {
  width: clamp(7rem, 19vw, 13rem);
  z-index: 1;
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@media (max-width: 560px) {
  .lineup__hero--edge { display: none; }
  .sky__top { justify-content: center; }
}

.home .wrap {
  max-width: 64rem;
  padding-top: 2.5rem;
}

.band-title {
  margin: 0 0 1rem;
  font-family: var(--round);
  font-size: 1.6rem;
  color: var(--text);
  text-align: center;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13.5rem, 1fr));
  gap: 1rem;
  counter-reset: step;
}

.step {
  counter-increment: step;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0;
  padding: 1rem;
  border: 1px solid var(--panel-edge);
  border-radius: 1rem;
  background: linear-gradient(180deg, rgba(22, 40, 63, 0.75), rgba(9, 22, 38, 0.75));
}

.step + .step { margin-top: 0; }

.step h3 {
  margin: 0.4rem 0 0;
  font-family: var(--round);
  font-size: 1.25rem;
}

.step h3::before {
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  margin-right: 0.5rem;
  border-radius: 50%;
  background: var(--cyan);
  color: #04121c;
  font: 800 0.9rem/1 var(--display);
  vertical-align: 0.15em;
}

.step p { margin: 0; font-size: 0.95rem; }

.step__art {
  display: grid;
  place-items: center;
  height: 9.5rem;
  border-radius: 0.75rem;
  background: radial-gradient(circle at 50% 60%, rgba(53, 226, 255, 0.16), rgba(5, 9, 22, 0.4) 70%);
  overflow: hidden;
}

.step__art img {
  max-width: 100%;
  width: auto;
  height: 8.5rem;
  object-fit: contain;
}

.step__art--wide img {
  width: 100%;
  height: 9.5rem;
  object-fit: cover;
}

.step__art--scan svg {
  width: 7.5rem;
  height: 7.5rem;
  fill: none;
}

.step__art--scan path {
  stroke: var(--cyan);
  stroke-width: 7;
  stroke-linecap: round;
}

.step__art--scan .bars rect { fill: var(--text); }

.step__art--scan .laser {
  stroke: #ff5a6e;
  stroke-width: 3;
  stroke-linecap: round;
  animation: sweep 2.4s ease-in-out infinite;
}

@keyframes sweep {
  0%, 100% { transform: translateY(-18px); }
  50% { transform: translateY(18px); }
}

.step__art--duel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.step__art--duel img {
  width: auto;
  height: 9.5rem;
  max-width: 50%;
  object-fit: contain;
  transform: scale(1.3) translateY(5%);
}

.step__art--duel img:last-child { transform: scale(-1.3, 1.3) translateY(5%); }

.step__art--duel span {
  font: 800 1.1rem/1 var(--round);
  color: var(--gold);
  margin-inline: -0.5rem;
  z-index: 1;
}

.pair {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.pair section { margin-top: 0; min-width: 0; }

.facts {
  list-style: none;
  padding: 0;
}

.facts li {
  padding-left: 1.4rem;
  position: relative;
}

.facts li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.55em;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--gold);
}

.help {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.help h2, .help p { margin-bottom: 0.25rem; }

@media (prefers-reduced-motion: reduce) {
  .lineup__hero,
  .step__art--scan .laser { animation: none; }
}

/* Step 2: a Hero standing in the gold burst the reveal plays in the game. */
.step__art--reveal {
  background:
    radial-gradient(circle at 50% 55%, rgba(255, 211, 106, 0.55), rgba(255, 211, 106, 0.08) 45%, transparent 62%),
    radial-gradient(circle at 50% 60%, rgba(53, 226, 255, 0.16), rgba(5, 9, 22, 0.4) 70%);
}

.step__art--reveal img {
  height: 9.5rem;
  transform: scale(1.35) translateY(5%);
  filter: drop-shadow(0 0 14px rgba(255, 211, 106, 0.55));
}

/* ---- Press kit ------------------------------------------------------------------------------
   Wider than the reading pages so screenshots and videos can sit side by side. */
.press .wrap { max-width: 64rem; }

.feature-video { margin: 0 0 1rem; }

.feature-video video,
.media-grid video {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--panel-edge);
  border-radius: 1rem;
  background: var(--bg-deep);
}

.downloads { margin: 0 0 1rem; }

.factsheet {
  display: grid;
  grid-template-columns: minmax(7rem, max-content) 1fr;
  gap: 0.45rem 1.25rem;
  margin: 0;
}

.factsheet dt { color: var(--muted); font: 700 0.78rem/1.9 var(--display); letter-spacing: 0.08em; text-transform: uppercase; }
.factsheet dd { margin: 0; color: var(--text); min-width: 0; }

@media (max-width: 560px) {
  .factsheet { grid-template-columns: 1fr; gap: 0; }
  .factsheet dd { margin-bottom: 0.6rem; }
}

.kit-title { margin: 2rem 0 0.75rem; font-size: 1.35rem; color: var(--text); }

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
  gap: 0.75rem;
}

.media-grid--two { grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); }

.media-grid figure { margin: 0; min-width: 0; }

.media-grid figcaption { margin-top: 0.4rem; font-size: 0.9rem; }

.media-grid > a { display: block; min-width: 0; }

.media-grid > a > img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--panel-edge);
  border-radius: 0.75rem;
}

.media-grid--heroes { grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); }

.media-grid--heroes > a {
  padding: 0.75rem 0.5rem 0.6rem;
  border: 1px solid var(--panel-edge);
  border-radius: 1rem;
  background: radial-gradient(circle at 50% 45%, rgba(53, 226, 255, 0.18), rgba(9, 22, 38, 0.75) 70%);
  color: var(--text);
  font: 700 0.85rem/1.2 var(--display);
  text-align: center;
  text-decoration: none;
}

.media-grid--heroes > a > img {
  height: 12rem;
  width: 100%;
  object-fit: contain;
  border: 0;
  border-radius: 0;
  filter: drop-shadow(0 8px 10px rgba(2, 4, 12, 0.45));
}

.media-grid--heroes span { display: block; margin-top: 0.4rem; }

.media-grid--brand { grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }

.swatch img {
  display: block;
  width: 100%;
  height: 7rem;
  padding: 1.25rem;
  object-fit: contain;
  border: 1px solid var(--panel-edge);
  border-radius: 0.75rem;
}

.swatch--dark img { background: var(--panel); }
.swatch--light img { background: #f2f5fb; }
.swatch--icon img { background: var(--panel); padding: 0.75rem; }

.press .help { margin-top: 2rem; }

/* ---- Inner pages ----------------------------------------------------------------------------
   Every page opens with the same sky and the same top bar as Home, so the logo and menu never
   move; inner pages trade Home's lineup for a short title band. */
.sky--page .sky__title { padding-block: clamp(1.75rem, 5vw, 3rem) clamp(1.75rem, 4vw, 2.5rem); }

.sky--page h1 { margin: 0 0 0.4rem; font-size: clamp(1.9rem, 5vw, 2.6rem); }



/* The title band is one line on every inner page, so moving between them never shifts the content. */
.sky--page h1 { white-space: nowrap; margin-bottom: 0; }
