/* PEGFALL — COREBREAKER "cosmic drill / acid arcade".
   Tokens mirror scripts/ui/ui_kit.gd 1:1. Sticker-flat: flat fills, thick ink
   outlines, hard offset shadows. If it has a shadow, you can push it. */

/* ------------------------------------------------------------- tokens */

:root {
  --ink: #05030A;
  --text: #F4F1FF;
  --text-dim: #B4A8D6;
  --text-faint: #8B7DB3;
  --good: #45E06F;

  --bg: #0B0714;
  --bg-deep1: #120A20;
  --bg-deep2: #1C0E2E;
  --panel: #171030;
  --panel-light: #221845;
  --panel-border: #2C1F52;

  --acid: #B8FF2E;
  --acid-deep: #5E8A12;
  --magenta: #FF3EC8;
  --magenta-deep: #8F1F72;
  --gold: #FFC93F;
  --gold-deep: #C78F12;
  --gem: #3ED6FF;
  --shard: #C08CFF;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 28px;
  --outline: 6px;
  --shadow-y: 10px;

  --shell: 1120px;
}

/* -------------------------------------------------------------- fonts */

@font-face {
  font-family: "Bungee";
  src: url("fonts/Bungee-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Chakra Petch";
  src: url("fonts/ChakraPetch-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Chakra Petch";
  src: url("fonts/ChakraPetch-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

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

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Chakra Petch", "Segoe UI", system-ui, sans-serif;
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

/* Magenta strata lines drifting behind the whole page — the shaft you fall
   down. Purely decorative, so it sits under everything and is skipped for
   anyone who asked for less motion. */
body::before {
  content: "";
  position: fixed;
  inset: -20% 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep1) 45%, var(--bg-deep2) 100%),
    repeating-linear-gradient(
      180deg,
      transparent 0 118px,
      rgba(255, 62, 200, 0.12) 118px 124px
    );
  background-blend-mode: normal;
  animation: strata 24s linear infinite;
}

@keyframes strata {
  from { transform: translateY(0); }
  to   { transform: translateY(124px); }
}

h1, h2, h3 {
  font-family: "Bungee", "Chakra Petch", sans-serif;
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 0.01em;
  margin: 0;
}

a { color: var(--acid); }
a:focus-visible,
button:focus-visible {
  outline: 4px solid var(--gem);
  outline-offset: 4px;
}

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

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

.eyebrow {
  font-family: "Bungee", sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  color: var(--magenta);
  text-transform: uppercase;
  margin: 0 0 0.75rem;
}

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

.hero {
  position: relative;
  isolation: isolate;
  padding: clamp(3.5rem, 10vw, 7rem) 0 clamp(3rem, 7vw, 5rem);
  text-align: center;
  border-bottom: var(--outline) solid var(--ink);
  overflow: hidden;
}

.hero__art {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Scrim so the logotype stays legible over the busiest part of the art. */
.hero__art::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 45%, rgba(5, 3, 10, 0.72), rgba(5, 3, 10, 0.35) 60%, transparent),
    linear-gradient(180deg, rgba(5, 3, 10, 0.45), transparent 30%, rgba(11, 7, 20, 0.85));
}

.logotype {
  font-size: clamp(3.25rem, 15vw, 8.5rem);
  color: var(--acid);
  letter-spacing: 0.02em;
  margin: 0;
  /* Ink outline + hard drop, then a magenta underlay one step further out —
     the logotype treatment from ui_kit.gd. */
  text-shadow:
    -3px 0 var(--ink), 3px 0 var(--ink), 0 -3px var(--ink), 0 3px var(--ink),
    -3px -3px var(--ink), 3px -3px var(--ink), -3px 3px var(--ink), 3px 3px var(--ink),
    8px 8px var(--magenta-deep),
    10px 10px var(--ink);
}

.hero__tagline {
  font-family: "Bungee", sans-serif;
  font-size: clamp(1rem, 3.4vw, 1.6rem);
  color: var(--gold);
  letter-spacing: 0.14em;
  margin: 1.25rem 0 0;
  text-shadow: 0 3px 0 var(--ink), 3px 0 0 var(--ink), -3px 0 0 var(--ink), 0 -3px 0 var(--ink);
}

.hero__hook {
  max-width: 42ch;
  margin: 1.5rem auto 0;
  font-size: clamp(1.05rem, 1rem + 0.5vw, 1.3rem);
  color: var(--text);
  text-shadow: 0 2px 6px rgba(5, 3, 10, 0.9);
}

/* ------------------------------------------------------------- sticker */

.sticker {
  display: inline-block;
  font-family: "Bungee", sans-serif;
  font-size: clamp(1rem, 0.95rem + 0.4vw, 1.25rem);
  letter-spacing: 0.06em;
  text-decoration: none;
  padding: 1rem 2rem;
  border: var(--outline) solid var(--ink);
  border-radius: var(--radius-lg);
  background: var(--acid);
  color: var(--ink);
  box-shadow: 0 var(--shadow-y) 0 var(--ink);
  transition: transform 90ms ease-out, box-shadow 90ms ease-out;
}

.sticker:hover { background: #C9FF54; }

/* Pressed: the shadow collapses and the content drops into it. */
.sticker:active {
  transform: translateY(var(--shadow-y));
  box-shadow: 0 0 0 var(--ink);
}

.sticker--sub {
  background: var(--panel-light);
  color: var(--text);
  font-size: 0.95rem;
  padding: 0.75rem 1.5rem;
}
.sticker--sub:hover { background: var(--panel-border); }

.hero__cta { margin-top: 2.25rem; }

.hero__note {
  margin: 1.25rem 0 0;
  font-size: 0.9rem;
  color: var(--text-dim);
  text-shadow: 0 2px 6px rgba(5, 3, 10, 0.9);
}

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

section { padding: clamp(3rem, 8vw, 5.5rem) 0; }

.section__head {
  text-align: center;
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.section__head h2 {
  font-size: clamp(1.75rem, 1.4rem + 2vw, 2.75rem);
  color: var(--text);
  text-shadow: 4px 4px 0 var(--ink);
}

.section__head p {
  max-width: 56ch;
  margin: 1rem auto 0;
  color: var(--text-dim);
}

/* ---------------------------------------------------------- shots rail */

.shots {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.5rem calc((100vw - min(100% - 2.5rem, var(--shell))) / 2) 1.75rem;
  margin-inline: calc(50% - 50vw);
  scrollbar-color: var(--magenta) var(--panel);
}

.shots figure {
  flex: 0 0 auto;
  width: min(64vw, 260px);
  margin: 0;
  scroll-snap-align: center;
}

.shots img {
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  border: var(--outline) solid var(--ink);
  border-radius: var(--radius-md);
  box-shadow: 0 var(--shadow-y) 0 var(--ink);
  background: var(--panel);
}

.shots figcaption {
  font-family: "Bungee", sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
  text-align: center;
  margin-top: 1.25rem;
}

.shots__hint {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-faint);
  margin: 0;
}

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

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
}

.card {
  background: var(--panel);
  border: var(--outline) solid var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: 0 var(--shadow-y) 0 var(--ink);
  padding: 1.75rem;
}

.card h3 {
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  color: var(--acid);
  margin-bottom: 0.85rem;
}

.card p {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.98rem;
}

.card__stat {
  display: inline-block;
  font-family: "Bungee", sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--ink);
  background: var(--gold);
  border: 3px solid var(--ink);
  border-radius: var(--radius-sm);
  padding: 0.2rem 0.6rem;
  margin-bottom: 1rem;
}

.card--magenta h3 { color: var(--magenta); }
.card--gold h3 { color: var(--gold); }
.card--gem h3 { color: var(--gem); }
.card--shard h3 { color: var(--shard); }

/* ---------------------------------------------------------------- fair */

.fair {
  background: var(--acid);
  color: var(--ink);
  border-block: var(--outline) solid var(--ink);
  text-align: center;
}

.fair h2 {
  font-size: clamp(1.6rem, 1.3rem + 1.8vw, 2.4rem);
  color: var(--ink);
}

.fair__list {
  list-style: none;
  padding: 0;
  margin: 2rem auto 0;
  max-width: 48rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.fair__list li {
  font-family: "Bungee", sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  background: var(--ink);
  color: var(--acid);
  border-radius: var(--radius-md);
  padding: 0.9rem 1rem;
}

.fair__kicker {
  margin: 2rem 0 0;
  font-weight: 700;
  font-size: 1.05rem;
}

/* -------------------------------------------------------------- closer */

.closer {
  text-align: center;
}

.closer h2 {
  font-size: clamp(2rem, 1.5rem + 3vw, 3.5rem);
  color: var(--acid);
  text-shadow: 5px 5px 0 var(--ink);
}

.closer .sticker { margin-top: 2rem; }

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

.footer {
  border-top: var(--outline) solid var(--ink);
  background: var(--panel);
  padding: 2.5rem 0;
  font-size: 0.9rem;
  color: var(--text-faint);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
  align-items: center;
  justify-content: space-between;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.footer__brand img {
  width: 44px;
  height: 44px;
  border: 3px solid var(--ink);
  border-radius: var(--radius-sm);
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer p { margin: 0; }

/* --------------------------------------------------------------- legal */

.legal .shell { width: min(100% - 2.5rem, 46rem); padding-block: 3rem 5rem; }

.legal h1 {
  font-size: clamp(1.6rem, 1.3rem + 1.6vw, 2.25rem);
  color: var(--acid);
  text-shadow: 4px 4px 0 var(--ink);
  margin-bottom: 0.5rem;
}

.legal h2 {
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  color: var(--magenta);
  margin-top: 2.5rem;
  margin-bottom: 0.5rem;
}

.legal p { color: var(--text-dim); }
.legal strong { color: var(--text); }
.legal em { color: var(--text-faint); font-style: normal; }

.legal__back {
  font-family: "Bungee", sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  margin: 0 0 2rem;
}
.legal__back a { text-decoration: none; }
.legal__back a:hover { text-decoration: underline; }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body::before { animation: none; }
  .sticker { transition: none; }
}
