/*
 * site.css - the BULL RUN landing page.
 *
 * The colours are the game's palette (chart-runner/js/palette.js); panels and buttons copy the
 * game's pixel panels: a 4 px border drawn as four offset shadows (so the corners stay notched),
 * a light top edge, a dark bottom edge and a drop under it. Sprites come from assets/sprites/,
 * exported from the game at 4x / 6x and shown at whole multiples so the pixels stay crisp.
 */

:root {
  --n0: #070a18;
  --n1: #0d1330;
  --n2: #162048;
  --n3: #223065;
  --n4: #34488c;
  --n5: #5a74c4;
  --n6: #93a8ea;
  --ink: #04050c;
  --white: #f6f8ff;
  --silver: #c3cbe6;
  --green: #1fe58f;
  --green-2: #12b06c;
  --green-3: #0a6b47;
  --green-l: #b3ffd6;
  --red: #ff4263;
  --red-2: #c7214a;
  --red-3: #6f1233;
  --gold: #ffd84a;
  --amber: #f29a1f;
  --bronze: #a9530f;
  --gold-l: #fff4b0;
  --cyan: #4fe3ff;
  --violet: #b574ff;

  --pixel: 'Press Start 2P', ui-monospace, 'Cascadia Mono', Consolas, monospace;
  --body: 'Pixelify Sans', ui-rounded, 'Segoe UI', system-ui, sans-serif;
  --mono: ui-monospace, 'Cascadia Mono', Consolas, Menlo, monospace;

  --wrap: 1140px;
  --gutter: 20px;
  --header-h: 68px;
}

/* ---- base ---------------------------------------------------------------------------------- */

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

[hidden] {
  display: none !important;
}

html {
  background: var(--n0);
  color-scheme: dark;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--n0);
  color: var(--white);
  font: 400 19px/1.55 var(--body);
  overflow-x: hidden;
}

/* the night sky: pixel stars and a faint chart grid, fixed behind everything */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='360' height='360' shape-rendering='crispEdges'%3E%3Cg fill='%23f6f8ff'%3E%3Crect x='22' y='40' width='3' height='3' opacity='.75'/%3E%3Crect x='140' y='18' width='2' height='2' opacity='.5'/%3E%3Crect x='300' y='70' width='3' height='3' opacity='.6'/%3E%3Crect x='212' y='132' width='2' height='2' opacity='.45'/%3E%3Crect x='60' y='204' width='2' height='2' opacity='.5'/%3E%3Crect x='332' y='242' width='2' height='2' opacity='.55'/%3E%3Crect x='182' y='300' width='3' height='3' opacity='.5'/%3E%3Crect x='100' y='322' width='2' height='2' opacity='.4'/%3E%3C/g%3E%3Cg fill='%2393a8ea' opacity='.7'%3E%3Crect x='89' y='104' width='2' height='10'/%3E%3Crect x='85' y='108' width='10' height='2'/%3E%3Crect x='269' y='184' width='2' height='10'/%3E%3Crect x='265' y='188' width='10' height='2'/%3E%3C/g%3E%3Crect x='250' y='20' width='2' height='2' fill='%23ffd84a' opacity='.7'/%3E%3C/svg%3E") 0 0 / 360px 360px,
    linear-gradient(rgba(90, 116, 196, 0.06) 2px, transparent 2px) 0 0 / 100% 64px,
    linear-gradient(90deg, rgba(90, 116, 196, 0.06) 2px, transparent 2px) 0 0 / 64px 100%,
    linear-gradient(180deg, #070a18 0%, #0b1232 55%, #070a18 100%);
}

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

a {
  color: var(--gold);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

a:hover {
  color: var(--gold-l);
}

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

p {
  margin: 0;
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.g {
  color: var(--green);
}

.r {
  color: var(--red);
}

.y {
  color: var(--gold);
}

.skip {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 100;
  padding: 12px 16px;
  background: var(--gold);
  color: var(--ink);
  font: 12px/1 var(--pixel);
  text-decoration: none;
}

.skip:focus {
  top: 12px;
}

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

/* ---- pixel parts ----------------------------------------------------------------------------- */

.px,
.spr,
.ico {
  image-rendering: crisp-edges;
  image-rendering: pixelated;
}

/* a pixel panel: notched 4 px border + drop shadow */
.panel {
  --bd: var(--n3);
  --fill: var(--n1);
  position: relative;
  margin: 4px;
  background: var(--fill);
  box-shadow:
    0 -4px 0 var(--bd),
    0 4px 0 var(--bd),
    -4px 0 0 var(--bd),
    4px 0 0 var(--bd),
    0 12px 0 rgba(4, 5, 12, 0.55);
}

.px-frame {
  --bd: var(--n4);
  position: relative;
  margin: 4px;
  background: var(--ink);
  box-shadow:
    0 -4px 0 var(--bd),
    0 4px 0 var(--bd),
    -4px 0 0 var(--bd),
    4px 0 0 var(--bd),
    0 14px 0 rgba(4, 5, 12, 0.6);
}

/* buttons, as in the game: fill, light top, dark bottom, notched border, drop */
.btn {
  --f: var(--n2);
  --hi: var(--n3);
  --lo: var(--n1);
  --bd: var(--n5);
  --fg: var(--white);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  margin: 4px 4px 8px;
  padding: 6px 22px 10px;
  border: 0;
  border-radius: 0;
  background: var(--f);
  color: var(--fg);
  font: 13px/1.2 var(--pixel);
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  box-shadow:
    inset 0 4px 0 var(--hi),
    inset 0 -4px 0 var(--lo),
    0 -4px 0 var(--bd),
    0 4px 0 var(--bd),
    -4px 0 0 var(--bd),
    4px 0 0 var(--bd),
    0 8px 0 var(--ink);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.btn:hover {
  color: var(--fg);
  filter: brightness(1.12);
}

.btn:active {
  transform: translateY(4px);
  box-shadow:
    inset 0 4px 0 var(--hi),
    inset 0 -4px 0 var(--lo),
    0 -4px 0 var(--bd),
    0 4px 0 var(--bd),
    -4px 0 0 var(--bd),
    4px 0 0 var(--bd);
}

.btn--primary {
  --f: var(--green);
  --hi: var(--green-l);
  --lo: var(--green-2);
  --bd: var(--green-3);
  --fg: var(--ink);
}

.btn--gold {
  --f: var(--gold);
  --hi: var(--gold-l);
  --lo: var(--amber);
  --bd: var(--bronze);
  --fg: var(--ink);
}

.btn--ghost {
  --f: var(--n1);
  --hi: var(--n2);
  --lo: var(--ink);
  --bd: var(--amber);
  --fg: var(--gold);
}

.btn--sm {
  min-height: 40px;
  padding: 4px 14px 8px;
  gap: 8px;
  font-size: 11px;
}

.btn--lg {
  min-height: 60px;
  padding: 8px 28px 12px;
  font-size: 15px;
}

.btn .ico {
  width: 18px;
  height: 18px;
}

.btn--primary .ico,
.btn--gold .ico {
  filter: brightness(0);
}

.btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
}

/* sprites: one sheet, all frames in a row; --w / --h = one frame, --n = frames */
.spr {
  --w: 64px;
  --h: 64px;
  --n: 1;
  --dur: 0.8s;
  display: inline-block;
  flex: none;
  width: var(--w);
  height: var(--h);
  background-repeat: no-repeat;
  background-position: 0 0;
  background-size: calc(var(--w) * var(--n)) var(--h);
}

.spr--anim {
  animation: spr var(--dur) steps(var(--n)) infinite;
}

@keyframes spr {
  to {
    background-position: calc(var(--w) * var(--n) * -1) 0;
  }
}

.spr--bull-run { --n: 6; --dur: 0.6s; background-image: url(../assets/sprites/bull_run.png); }
.spr--bull-air { --n: 3; --dur: 0.45s; background-image: url(../assets/sprites/bull_air.png); }
.spr--bull-idle { --n: 2; --dur: 1s; background-image: url(../assets/sprites/bull_idle.png); }
.spr--bull-big { --w: 128px; --h: 128px; --n: 2; --dur: 1.1s; background-image: url(../assets/sprites/bull_big.png); }
.spr--bear { --w: 64px; --h: 56px; --n: 4; --dur: 0.7s; background-image: url(../assets/sprites/bear_walk.png); }
.spr--fud { --w: 88px; --h: 48px; --n: 2; --dur: 1s; background-image: url(../assets/sprites/fud_cloud.png); }
.spr--coin { --w: 32px; --h: 32px; --n: 6; --dur: 0.8s; background-image: url(../assets/sprites/coin.png); }
.spr--rocket { --w: 48px; --h: 48px; --n: 2; --dur: 0.4s; background-image: url(../assets/sprites/pu_rocket.png); }
.spr--diamond { --w: 48px; --h: 48px; --n: 2; --dur: 0.9s; background-image: url(../assets/sprites/pu_diamond.png); }
.spr--airdrop { --w: 48px; --h: 56px; --n: 2; --dur: 0.9s; background-image: url(../assets/sprites/pu_airdrop.png); }
.spr--flame { --w: 24px; --h: 32px; --n: 4; --dur: 0.5s; background-image: url(../assets/sprites/red_flame.png); }
.spr--skull { --w: 36px; --h: 36px; background-image: url(../assets/sprites/skull.png); }
.spr--medal { --w: 64px; --h: 64px; --n: 3; --dur: 1.2s; background-image: url(../assets/sprites/badge_medal.png); }
.spr--moon { --w: 96px; --h: 96px; background-image: url(../assets/sprites/moon.png); }
.spr--skin { --w: 128px; --h: 128px; --n: 2; --dur: 1.1s; }

/* static icons (exported at 6x, shown at 3x = 27 px or 2x = 18 px) */
.ico {
  display: inline-block;
  flex: none;
  width: 27px;
  height: 27px;
}

/* ---- header ---------------------------------------------------------------------------------- */

.top {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 10, 24, 0.86);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 4px solid var(--n2);
  transition: border-color 0.2s;
}

.is-scrolled .top {
  border-bottom-color: var(--n3);
}

.top-in {
  display: flex;
  align-items: center;
  gap: 28px;
  height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--gold);
  font: 14px/1 var(--pixel);
  text-decoration: none;
  text-shadow: 3px 3px 0 var(--ink);
  white-space: nowrap;
}

.brand img {
  width: 40px;
  height: 40px;
  box-shadow: 0 0 0 3px var(--n4);
}

.nav {
  display: flex;
  gap: 24px;
  margin-left: auto;
}

.nav a {
  padding: 10px 0;
  color: var(--n6);
  font: 11px/1 var(--pixel);
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav a:hover {
  color: var(--white);
}

.nav a[data-ticker] {
  color: var(--gold);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.top-actions .btn {
  margin: 0 4px 4px;
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--white);
  background: var(--n1);
  box-shadow: inset 0 0 0 3px var(--n3);
}

.icon-btn:hover {
  color: var(--white);
  background: var(--n2);
}

.icon-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

@media (max-width: 960px) {
  .nav {
    display: none;
  }

  .top-actions {
    margin-left: auto;
  }
}

@media (max-width: 420px) {
  .brand span {
    font-size: 12px;
  }

  .top-in {
    gap: 12px;
  }
}

/* ---- ticker tape ----------------------------------------------------------------------------- */

.tape {
  overflow: hidden;
  background: var(--n1);
  border-bottom: 4px solid var(--n2);
}

.tape-track {
  display: flex;
  width: max-content;
  animation: tape 60s linear infinite;
}

.tape-track span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  color: var(--silver);
  font: 10px/1 var(--pixel);
  text-transform: uppercase;
  white-space: nowrap;
}

.tape-track span::before {
  content: "";
  width: 10px;
  height: 10px;
  background: url(../assets/sprites/arrow_up.png) 0 0 / 10px 10px;
  image-rendering: crisp-edges;
  image-rendering: pixelated;
}

.tape-track .dn {
  color: var(--red);
}

.tape-track .dn::before {
  background-image: url(../assets/sprites/arrow_down.png);
}

.tape-track .hl {
  color: var(--gold);
}

@keyframes tape {
  to {
    transform: translateX(-50%);
  }
}

/* ---- hero ------------------------------------------------------------------------------------ */

.hero {
  padding: 32px 0 0;
}

.hero-art img {
  width: 100%;
  aspect-ratio: 1280 / 511;
  object-fit: cover;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  margin-top: 52px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  color: var(--green);
  font: 10px/1.6 var(--pixel);
  text-transform: uppercase;
}

.live-dot {
  flex: none;
  width: 10px;
  height: 10px;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(31, 229, 143, 0.25);
  animation: blink 1.2s steps(1) infinite;
}

@keyframes blink {
  50% {
    opacity: 0.25;
  }
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--pixel);
  font-weight: 400;
  text-transform: uppercase;
  text-shadow: 4px 4px 0 var(--ink);
}

h1 {
  font-size: clamp(22px, 3.5vw, 40px);
  line-height: 1.3;
}

h1 .vs {
  color: var(--gold);
}

.lead {
  max-width: 34em;
  margin-top: 24px;
  color: var(--silver);
  font-size: clamp(19px, 2vw, 22px);
}

.hero-copy .actions {
  margin-top: 32px;
}

/* the token card next to the headline */
.token-card {
  --bd: var(--bronze);
  padding: 26px 24px 24px;
}

.tc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.tc-ticker {
  color: var(--gold);
  font: clamp(26px, 3vw, 34px)/1 var(--pixel);
  text-shadow: 4px 4px 0 var(--ink);
}

.chip {
  padding: 7px 9px 6px;
  color: var(--n6);
  font: 9px/1 var(--pixel);
  text-transform: uppercase;
  background: var(--n2);
  box-shadow: inset 0 0 0 2px var(--n4);
}

.tc-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 18px;
}

.tc-links:empty {
  display: none;
}

.tc-daily {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 3px dashed var(--n3);
  color: var(--silver);
  font-size: 18px;
  line-height: 1.4;
}

.tc-daily b {
  color: var(--white);
  font-weight: 600;
}

.tc-daily .ico {
  width: 27px;
  height: 27px;
}

.mono-time {
  font-variant-numeric: tabular-nums;
}

/* contract address box (filled by js/site.js) */
.ca {
  margin-top: 20px;
}

.ca-label {
  display: block;
  margin-bottom: 10px;
  color: var(--n6);
  font: 9px/1.4 var(--pixel);
  text-transform: uppercase;
}

.ca-row {
  display: flex;
  align-items: stretch;
  background: var(--ink);
  box-shadow: 0 0 0 3px var(--n3);
}

.ca-addr {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  color: var(--white);
  font: 600 15px/1.35 var(--mono);
  overflow-wrap: anywhere;
  -webkit-user-select: all;
  user-select: all;
}

.ca-row--soon .ca-addr {
  color: var(--n6);
  font: 12px/1.5 var(--pixel);
  -webkit-user-select: none;
  user-select: none;
}

.ca-tag {
  display: grid;
  place-items: center;
  padding: 0 12px;
  color: var(--ink);
  font: 9px/1 var(--pixel);
  text-transform: uppercase;
  background: var(--n6);
}

.ca-copy {
  flex: none;
  min-width: 92px;
  padding: 0 14px;
  border: 0;
  color: var(--ink);
  font: 10px/1 var(--pixel);
  text-transform: uppercase;
  background: var(--gold);
  box-shadow: inset 0 3px 0 var(--gold-l), inset 0 -3px 0 var(--amber);
  cursor: pointer;
}

.ca-copy:hover {
  filter: brightness(1.08);
}

.ca-copy.is-done {
  background: var(--green);
  box-shadow: inset 0 3px 0 var(--green-l), inset 0 -3px 0 var(--green-2);
}

.ca-note {
  margin-top: 12px;
  color: var(--n6);
  font-size: 16px;
  line-height: 1.45;
}

/* ---- running strip --------------------------------------------------------------------------- */

.runner {
  position: relative;
  height: 160px;
  margin-top: 64px;
  overflow: hidden;
}

.runner-ground {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 96px;
  background: url(../assets/ground.svg) 0 0 / 640px 96px repeat-x;
  animation: ground 4s linear infinite;
}

@keyframes ground {
  to {
    background-position: -640px 0;
  }
}

/* the red candle (centre 608 px into the tile) passes the bull's centre (128 px) at 3 s = 75 % */
.runner-bull {
  position: absolute;
  left: 96px;
  bottom: 56px;
  animation: spr 0.6s steps(6) infinite, hop 4s linear infinite;
}

@keyframes hop {
  0%, 60%, 90%, 100% { transform: translateY(0); }
  64% { transform: translateY(-40px); }
  68% { transform: translateY(-64px); }
  72% { transform: translateY(-76px); }
  75% { transform: translateY(-80px); }
  78% { transform: translateY(-76px); }
  82% { transform: translateY(-64px); }
  86% { transform: translateY(-40px); }
}

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

.section {
  padding-top: 104px;
}

.sec-head {
  max-width: 780px;
  margin-bottom: 40px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  color: var(--green);
  font: 10px/1 var(--pixel);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* a tiny green candle */
.eyebrow::before {
  content: "";
  flex: none;
  width: 10px;
  height: 16px;
  background: var(--green-2);
  box-shadow: inset 0 3px 0 var(--green), 0 -4px 0 -3px var(--green-3);
}

h2 {
  font-size: clamp(20px, 3.1vw, 32px);
  line-height: 1.3;
}

.sec-sub {
  margin-top: 18px;
  color: var(--silver);
  font-size: 20px;
}

/* ---- play ------------------------------------------------------------------------------------ */

.game-shell {
  aspect-ratio: 16 / 9;
}

.game-shell iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: var(--n0);
}

.game-shell:fullscreen {
  width: 100vw;
  height: 100vh;
  margin: 0;
  aspect-ratio: auto;
  box-shadow: none;
}

.play-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  margin-top: 24px;
}

.keys {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 22px;
  color: var(--silver);
  font-size: 18px;
}

.key {
  display: inline-block;
  margin-right: 8px;
  padding: 7px 9px 9px;
  color: var(--white);
  font: 10px/1 var(--pixel);
  background: var(--n2);
  box-shadow: inset 0 -3px 0 var(--n1), 0 0 0 3px var(--n4);
}

@media (max-width: 720px) {
  .game-shell {
    aspect-ratio: auto;
    height: 72vh;
    height: 72svh;
    min-height: 440px;
    max-height: 680px;
  }
}

/* ---- how to play ----------------------------------------------------------------------------- */

.how-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.how-card {
  padding-bottom: 26px;
}

.how-card h3 {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 24px 24px 10px;
  font-size: 14px;
  line-height: 1.4;
}

.how-card p {
  margin: 0 24px;
  color: var(--silver);
  font-size: 18px;
}

.step {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 28px;
  height: 28px;
  color: var(--ink);
  font-size: 11px;
  text-shadow: none;
  background: var(--gold);
  box-shadow: inset 0 -3px 0 var(--amber);
}

/* little scenes drawn with candles and game sprites; positions are in a 320 x 180 box */
.scene {
  position: relative;
  height: 180px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--n1), var(--n2));
  border-bottom: 4px solid var(--n3);
}

.scene-in {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 320px;
  margin-left: -160px;
}

.cd {
  position: absolute;
  bottom: 0;
  width: 44px;
  height: 44px;
  background: var(--green-2);
  box-shadow: inset 0 6px 0 var(--green), inset 0 -14px 0 var(--green-3);
}

.cd::after {
  content: "";
  position: absolute;
  left: 18px;
  top: 14px;
  width: 8px;
  height: 12px;
  background: var(--green);
}

.cd--red {
  height: 64px;
  background: var(--red-2);
  box-shadow: inset 0 6px 0 var(--red), inset 0 -14px 0 var(--red-3);
}

.cd--red::after {
  background: var(--red);
}

.cd--tall {
  height: 64px;
}

.scene .spr {
  position: absolute;
}

.dot {
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--gold);
}

.dot--ghost {
  background: var(--n5);
}

.tag {
  position: absolute;
  padding: 6px 7px 5px;
  font: 9px/1 var(--pixel);
  text-transform: uppercase;
}

.tag--g {
  color: var(--ink);
  background: var(--green);
}

.tag--r {
  color: var(--white);
  background: var(--red-2);
}

/* things on the chart */
.bestiary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px 28px;
  margin-top: 48px;
}

.beast {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 20px;
}

.beast .slot {
  display: grid;
  place-items: center;
  flex: none;
  width: 92px;
  height: 64px;
}

.beast b {
  display: block;
  margin-bottom: 6px;
  font: 11px/1.4 var(--pixel);
  font-weight: 400;
}

.beast span {
  color: var(--silver);
  font-size: 17px;
  line-height: 1.4;
}

.beast--bad {
  --bd: var(--red-3);
}

.beast--bad b {
  color: var(--red);
}

.beast--good {
  --bd: var(--green-3);
}

.beast--good b {
  color: var(--green);
}

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

.shots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.shot img {
  width: 100%;
  aspect-ratio: 16 / 9;
}

.shot figcaption {
  margin-top: 20px;
  color: var(--silver);
  font-size: 18px;
}

.shot figcaption b {
  display: block;
  margin-bottom: 6px;
  color: var(--white);
  font: 11px/1.4 var(--pixel);
  font-weight: 400;
  text-transform: uppercase;
}

.shot figure {
  margin: 0;
}

/* ---- features -------------------------------------------------------------------------------- */

.feat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}

.feat {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px 28px 30px;
}

.feat-head {
  display: flex;
  align-items: center;
  gap: 16px;
}

.feat-head .ico {
  width: 54px;
  height: 54px;
}

.feat h3 {
  font-size: 15px;
  line-height: 1.4;
}

.feat p {
  color: var(--silver);
  font-size: 18px;
}

.feat .actions {
  margin-top: 4px;
}

.feat .quote {
  color: var(--gold);
  font: 10px/1.7 var(--pixel);
  text-transform: uppercase;
}

/* leverage ladder */
.lev {
  display: grid;
  gap: 10px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}

.lev li {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  background: var(--n0);
  box-shadow: inset 0 0 0 2px var(--n3);
}

.lev-x {
  color: var(--white);
  font: 14px/1 var(--pixel);
  text-align: center;
}

.lev-name {
  display: block;
  color: var(--white);
  font: 10px/1.4 var(--pixel);
}

.lev-req {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--n6);
  font-size: 16px;
  line-height: 1.35;
}

.lev-req .ico {
  width: 18px;
  height: 18px;
}

.lev li:nth-child(2) .lev-x { color: var(--cyan); }
.lev li:nth-child(3) .lev-x { color: var(--gold); }
.lev li:nth-child(4) .lev-x { color: var(--red); }

/* ranks */
.ranks {
  margin-top: 56px;
  padding: 26px 24px 24px;
}

.ranks h3 {
  margin-bottom: 18px;
  font-size: 13px;
}

.rank-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rank-list li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--silver);
  font: 9px/1.4 var(--pixel);
  text-transform: uppercase;
}

.rank-list li + li::before {
  content: "";
  width: 10px;
  height: 10px;
  background: url(../assets/sprites/arrow_up.png) 0 0 / 10px 10px;
  transform: rotate(90deg);
  image-rendering: crisp-edges;
  image-rendering: pixelated;
}

.rank-list span {
  padding: 7px 8px 6px;
  background: var(--n2);
  box-shadow: inset 0 0 0 2px var(--n4);
}

.rank-list li:last-child span {
  color: var(--ink);
  background: var(--gold);
  box-shadow: inset 0 -3px 0 var(--amber);
}

/* ---- skins ----------------------------------------------------------------------------------- */

.skins {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 28px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.skin {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 18px 14px 20px;
  text-align: center;
}

.skin b {
  margin-top: 10px;
  color: var(--white);
  font: 10px/1.5 var(--pixel);
  font-weight: 400;
  text-transform: uppercase;
}

.skin span {
  margin-top: 8px;
  color: var(--n6);
  font-size: 16px;
  line-height: 1.35;
}

.skins-note {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 36px;
  color: var(--n6);
  font-size: 17px;
}

/* ---- token ----------------------------------------------------------------------------------- */

.token-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: center;
}

.token-art {
  --bd: var(--bronze);
}

.token-art img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.token-title {
  color: var(--gold);
  font-size: clamp(34px, 6vw, 64px);
  line-height: 1.1;
  text-shadow: 5px 5px 0 var(--bronze), 9px 9px 0 var(--ink);
}

.token-copy .lead {
  margin-top: 26px;
}

.token-copy p + p {
  margin-top: 14px;
}

.token-copy .body {
  color: var(--silver);
  font-size: 18px;
}

.token-copy .ca {
  max-width: 560px;
  margin-top: 28px;
}

.token-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  margin-top: 24px;
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.facts li {
  padding: 8px 10px 7px;
  color: var(--white);
  font: 9px/1.4 var(--pixel);
  text-transform: uppercase;
  background: var(--n2);
  box-shadow: inset 0 0 0 2px var(--n4);
}

/* ---- final call ------------------------------------------------------------------------------ */

.final {
  padding-top: 120px;
}

.final-in {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 48px 24px 44px;
  text-align: center;
}

.final h2 {
  margin-top: 18px;
}

.final .actions {
  justify-content: center;
  margin-top: 30px;
}

/* ---- footer ---------------------------------------------------------------------------------- */

.foot {
  margin-top: 96px;
  padding: 40px 0 48px;
  background: var(--n1);
  border-top: 4px solid var(--n2);
}

.foot-in {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px 40px;
  align-items: center;
}

.foot-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--gold);
  font: 12px/1 var(--pixel);
}

.foot-brand img {
  width: 32px;
  height: 32px;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 26px;
}

.foot-links a {
  color: var(--n6);
  font: 10px/1 var(--pixel);
  text-decoration: none;
  text-transform: uppercase;
}

.foot-links a:hover {
  color: var(--white);
}

.disclaimer {
  grid-column: 1 / -1;
  max-width: 900px;
  color: var(--n6);
  font-size: 15px;
  line-height: 1.5;
}

.copyright {
  grid-column: 1 / -1;
  color: var(--n5);
  font: 9px/1 var(--pixel);
}

/* ---- responsive ------------------------------------------------------------------------------ */

@media (max-width: 960px) {
  .hero-grid,
  .token-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  .token-art {
    max-width: 420px;
  }

  .how-grid,
  .feat-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .bestiary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  body {
    font-size: 18px;
  }

  .section {
    padding-top: 80px;
  }

  .hero {
    padding-top: 20px;
  }

  .hero-grid {
    margin-top: 36px;
  }

  .shots {
    grid-template-columns: minmax(0, 1fr);
  }

  .bestiary {
    grid-template-columns: minmax(0, 1fr);
  }

  .skins {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 16px;
  }

  .skin span {
    font-size: 15px;
  }

  .foot-in {
    grid-template-columns: minmax(0, 1fr);
  }

  .foot-links {
    justify-content: flex-start;
  }

  .btn--lg {
    min-height: 56px;
    padding: 8px 20px 12px;
    font-size: 13px;
  }

  .feat {
    padding: 24px 20px 26px;
  }
}

@media (max-width: 400px) {
  :root {
    --gutter: 16px;
  }

  .hero-copy .actions .btn {
    flex: 1 1 100%;
  }
}

/* ---- motion ---------------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .tape-track,
  .runner-ground,
  .runner-bull,
  .spr--anim,
  .live-dot {
    animation: none;
  }
}
