/* biome-ignore-all lint/style/noDescendingSpecificity: component selectors like ".risk li" and ".steps li" style unrelated elements; source order is deliberate. */
/* Meme Factory: a riso print shop for internet creatures.
   Inks are real Risograph drum colours; everything is printed on one newsprint stock. */

@font-face {
  font-family: "Gluten";
  src: url("fonts/gluten.02d21615ed.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Familjen Grotesk";
  src: url("fonts/familjen.5c2a822104.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Familjen Grotesk";
  src: url("fonts/familjen-italic.c1b76bd412.woff2") format("woff2");
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Martian Mono";
  src: url("fonts/martian.debf915472.woff2") format("woff2");
  font-weight: 100 800;
  font-stretch: 75% 112.5%;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #ecebe3;
  --paper-deep: #dfddd2;
  --ink: #231f20;
  --pink: #ff48b0;
  --blue: #0078bf;
  --yellow: #ffe800;
  --green: #00a95c;
  --orange: #ff6c2f;
  --accent: var(--pink);
  --accent-2: var(--blue);
  --display: "Gluten", "Comic Sans MS", cursive;
  --body: "Familjen Grotesk", system-ui, sans-serif;
  --mono: "Martian Mono", ui-monospace, monospace;
  /* Misregistration of the pink plate against the blue one; scroll speed pushes it. */
  --mx: 0.045em;
  --my: 0.03em;
  --gutter: 16px;
  --page: min(1240px, calc(100% - 2 * var(--gutter)));
  --wobble: 255px 18px 225px 18px / 18px 225px 18px 255px;
  --wobble-2: 18px 225px 18px 255px / 255px 18px 225px 18px;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .14 0 0 0 0 .12 0 0 0 0 .1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --halftone: radial-gradient(
    circle at center,
    currentColor 0 34%,
    transparent 36%
  );
}

@media (min-width: 720px) {
  :root {
    --gutter: 28px;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Paper grain sits over everything, like fibres in the stock. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  background-image: var(--grain);
  opacity: 0.32;
  mix-blend-mode: multiply;
}

/* Components set display, so the hidden attribute needs to win explicitly. */
[hidden] {
  /* biome-ignore lint/complexity/noImportantStyles: the hidden attribute must beat component display values. */
  display: none !important;
}

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

a {
  color: inherit;
}

:focus-visible {
  outline: 3px dashed var(--blue);
  outline-offset: 4px;
  border-radius: 6px;
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
}
.skip:focus {
  top: 12px;
}

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

.wrap {
  width: var(--page);
  margin-inline: auto;
}

/* ---------- Type ---------- */

.print {
  font-family: var(--display);
  font-weight: 900;
  line-height: 0.86;
  letter-spacing: -0.01em;
  color: var(--blue);
  text-shadow: var(--mx) var(--my) 0 var(--pink);
}
.print--ink {
  color: var(--ink);
  text-shadow:
    calc(var(--mx) * -1) 0 0 var(--blue),
    var(--mx) var(--my) 0 var(--pink);
}

.eyebrow {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-stretch: 87.5%;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
  margin-bottom: clamp(24px, 4vw, 48px);
}
.section-head h2 {
  margin: 0;
  font-size: clamp(3rem, 9vw, 6.5rem);
}
.section-head p {
  margin: 0;
  max-width: 34ch;
  font-size: 1.05rem;
}

.hand {
  font-family: var(--display);
  font-weight: 600;
}

/* ---------- Buttons, chips, stamps ---------- */

.btn {
  --btn-ink: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 22px 8px;
  border: 3px solid var(--btn-ink);
  border-radius: var(--wobble);
  background: var(--paper);
  color: var(--btn-ink);
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  top: 0;
  left: 0;
  box-shadow: 4px 4px 0 var(--btn-ink);
  transition:
    box-shadow 0.15s,
    top 0.15s,
    left 0.15s;
  -webkit-tap-highlight-color: transparent;
}
/* Hover moves with top/left so it never fights GSAP, which owns transform. */
.btn:hover {
  top: -2px;
  left: -2px;
  box-shadow: 6px 6px 0 var(--btn-ink);
}
.btn:active {
  top: 3px;
  left: 3px;
  box-shadow: 1px 1px 0 var(--btn-ink);
}
.btn--solid {
  background: var(--accent);
  color: var(--ink);
}
.btn[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
}

.chip {
  display: inline-block;
  padding: 5px 10px 4px;
  border: 2px solid currentColor;
  border-radius: var(--wobble-2);
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  font-stretch: 87.5%;
}

.stamp {
  --stamp: var(--green);
  display: inline-block;
  padding: 6px 12px 3px;
  border: 3px solid var(--stamp);
  border-radius: 6px;
  color: var(--stamp);
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  transform: rotate(-8deg);
  mix-blend-mode: multiply;
  /* Uneven ink: the stamp never lands perfectly. */
  mask-image: var(--grain), linear-gradient(#000, #000);
  mask-composite: exclude;
  -webkit-mask-composite: xor;
}
.stamp--concept,
.stamp--approved {
  --stamp: var(--blue);
}
.stamp--retired {
  --stamp: var(--ink);
}
.stamp--graduated {
  --stamp: var(--pink);
}

/* ---------- Masthead ---------- */

.mast {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(6px);
  border-bottom: 3px solid var(--ink);
}
.mast-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}
.mast-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 900;
  font-size: 1.35rem;
  line-height: 1;
  padding-top: 4px;
}
.mast-brand svg {
  width: 40px;
  height: 40px;
  flex: none;
  margin-top: -4px;
}
.mast nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 3vw, 28px);
}
.mast nav a {
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  font-stretch: 87.5%;
  padding: 6px 0;
  background:
    linear-gradient(var(--pink), var(--pink)) 0 100% / 0 3px no-repeat;
  transition: background-size 0.25s;
}
.mast nav a:hover {
  background-size: 100% 3px;
}
@media (max-width: 560px) {
  .mast-brand span {
    display: none;
  }
  .mast nav .hide-sm {
    display: none;
  }
}

/* ---------- Factory hero: the press ---------- */

.press {
  position: relative;
  padding: clamp(28px, 6vw, 72px) 0 0;
  overflow: hidden;
  isolation: isolate;
}
.press-grid {
  position: relative;
  display: grid;
  gap: 20px;
  container-type: inline-size;
}
.press .eyebrow {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}
.press-title {
  position: relative;
  z-index: 2;
  margin: 8px 0 0;
  /* "Factory" plus its indent is about 5.6em wide in Gluten Black. */
  font-size: min(14rem, 17cqi);
  line-height: 0.8;
  letter-spacing: -0.03em;
}
.press-title .line {
  display: block;
  white-space: nowrap;
}
.press-title .line:last-child {
  padding-left: 0.42em;
}
.press-lede {
  position: relative;
  z-index: 2;
  max-width: 38ch;
  margin: 12px 0 0;
  font-size: clamp(1.1rem, 2.1vw, 1.4rem);
  line-height: 1.4;
}
.press-lede em {
  font-style: normal;
  background: linear-gradient(
    transparent 58%,
    var(--yellow) 58% 92%,
    transparent 92%
  );
}
.press-actions {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

/* Mascots riding the motion path behind the title. */
.parade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.parade svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.parade path {
  fill: none;
  stroke: var(--ink);
  stroke-width: 2;
  stroke-dasharray: 2 9;
  stroke-linecap: round;
  opacity: 0.35;
}
.rider {
  position: absolute;
  left: 0;
  top: 0;
  width: clamp(88px, 11vw, 150px);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--ink);
  background: var(--paper);
  visibility: hidden;
}
.rider img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.18);
  mix-blend-mode: multiply;
}

.splat {
  position: absolute;
  z-index: 3;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  pointer-events: none;
}

.tape {
  position: relative;
  z-index: 2;
  margin-top: clamp(32px, 6vw, 64px);
  border-block: 3px solid var(--ink);
  background: var(--yellow);
  overflow: hidden;
  transform: rotate(-1.5deg);
  width: 104%;
  margin-left: -2%;
}
.tape-track {
  display: flex;
  width: max-content;
  padding: 12px 0 9px;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.1rem, 2.4vw, 1.6rem);
  line-height: 1;
  white-space: nowrap;
}
.tape-track span {
  padding-right: 2.2em;
}
.tape-track b {
  color: var(--pink);
  -webkit-text-stroke: 0.5px var(--ink);
}

/* ---------- Catalogue ---------- */

.catalogue {
  padding: clamp(64px, 10vw, 128px) 0 clamp(40px, 6vw, 80px);
}
.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 36px;
}
.filters .label {
  margin-right: 4px;
}
.filter {
  min-height: 40px;
  padding: 8px 14px 6px;
  border: 2px solid var(--ink);
  border-radius: var(--wobble-2);
  background: transparent;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-stretch: 87.5%;
  cursor: pointer;
}
.filter[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
}
.filters .btn {
  margin-left: auto;
  min-height: 44px;
  font-size: 1rem;
}
/* Tossing needs room and a mouse-sized floor; phones keep the tidy grid. */
@media (max-width: 640px) {
  .filters .btn {
    display: none;
  }
  .card--next .card-body {
    min-height: 240px;
  }
  .card--next .qmark {
    font-size: 6rem;
  }
  .parade {
    bottom: auto;
    height: 42%;
  }
  .press-title .line:last-child {
    padding-left: 0.3em;
  }
}

.floor {
  position: relative;
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
  gap: clamp(24px, 3vw, 40px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.floor.is-tossed .cards {
  display: block;
  position: relative;
}
.floor.is-tossed .card--next {
  display: none;
}
.floor.is-tossed .card {
  position: absolute;
  width: min(300px, 78vw);
}

.card {
  --card-ink: var(--pink);
  position: relative;
  transform: rotate(var(--tilt, 0deg));
  perspective: 900px;
}
.card[hidden] {
  display: none;
}
.card-body {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 14px 14px 18px;
  border: 3px solid var(--ink);
  border-radius: 14px;
  background: var(--paper);
  text-decoration: none;
  box-shadow: 7px 7px 0 var(--card-ink);
  transform-style: preserve-3d;
  transition: box-shadow 0.2s;
}
.card-body:hover {
  box-shadow: 11px 11px 0 var(--card-ink);
}
.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.serial {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 600;
  font-stretch: 87.5%;
}
.card-art {
  position: relative;
  margin: 12px 0 14px;
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  color: var(--card-ink);
  background-color: color-mix(in srgb, var(--card-ink) 16%, var(--paper));
  background-image: var(--halftone);
  background-size: 9px 9px;
}
.card-art img {
  position: absolute;
  inset: 8%;
  width: 84%;
  height: 84%;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--ink);
  background: var(--paper);
}
.card-art .stamp {
  position: absolute;
  right: 10px;
  bottom: 12px;
  font-size: 1.3rem;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  mix-blend-mode: normal;
}
.card-name {
  margin: 0;
  font-size: clamp(2rem, 3.2vw, 2.4rem);
  line-height: 0.9;
}
.card-ticker {
  margin: 6px 0 0;
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 600;
}
.card-hook {
  margin: 10px 0 16px;
  font-size: 0.98rem;
  line-height: 1.4;
}
.card-meta {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 12px;
  margin: auto 0 0;
  padding-top: 12px;
  border-top: 2px dashed var(--ink);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-stretch: 87.5%;
}
.card-meta dt {
  font-weight: 600;
  text-transform: uppercase;
}
.card-meta dd {
  margin: 0;
}
.card--next .card-body {
  border-style: dashed;
  background: transparent;
  box-shadow: none;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 420px;
  gap: 12px;
}
.card--next .qmark {
  font-family: var(--display);
  font-weight: 900;
  font-size: 9rem;
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 3px var(--ink);
}
.card--next p {
  margin: 0;
  max-width: 22ch;
}
.floor-empty {
  padding: 40px;
  border: 3px dashed var(--ink);
  border-radius: var(--wobble);
  text-align: center;
  font-family: var(--display);
  font-size: 1.4rem;
}

/* ---------- Canon ---------- */

.canon {
  position: relative;
  padding: clamp(64px, 10vw, 120px) 0;
  background: var(--paper-deep);
  border-block: 3px solid var(--ink);
}
.canon::before {
  content: "";
  position: absolute;
  inset: 0;
  color: color-mix(in srgb, var(--blue) 12%, transparent);
  background-image: var(--halftone);
  background-size: 14px 14px;
  mask-image: linear-gradient(160deg, #000, transparent 55%);
  pointer-events: none;
}
.tree {
  position: relative;
  margin: 0 auto;
}
/* On phones the tree keeps a readable size and scrolls sideways inside its frame. */
@media (max-width: 640px) {
  .tree {
    margin-inline: calc(var(--gutter) * -1);
    padding: 0 var(--gutter) 8px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
  }
  .tree svg {
    min-width: 540px;
  }
}
.tree svg {
  width: 100%;
  height: auto;
  overflow: visible;
}
.edge {
  fill: none;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.edge--sequel,
.edge--spinoff {
  stroke: var(--blue);
}
.edge--spinoff {
  stroke-dasharray: 14 10;
}
.edge--rival {
  stroke: var(--pink);
}
.edge--crossover {
  stroke: var(--green);
  stroke-dasharray: 2 12;
  stroke-width: 6;
}
.edge--ally {
  stroke: var(--orange);
}
.tree .tag rect {
  fill: var(--paper);
  stroke: var(--ink);
  stroke-width: 2.5;
}
.tree .tag text {
  font-family: var(--mono);
  font-size: 17px;
  font-weight: 600;
  fill: var(--ink);
  text-anchor: middle;
  dominant-baseline: central;
  text-transform: uppercase;
}
.tree .node-ring {
  fill: var(--paper);
  stroke: var(--ink);
  stroke-width: 4;
}
.tree .node-shadow {
  fill: var(--pink);
}
.tree .node image {
  mix-blend-mode: multiply;
}
.tree .node-name,
.tree .node-ticker {
  text-anchor: middle;
  paint-order: stroke;
  stroke: var(--paper-deep);
  stroke-width: 10px;
  stroke-linejoin: round;
}
.tree .node-name {
  font-family: var(--display);
  font-weight: 900;
  font-size: 34px;
  fill: var(--ink);
}
.tree .node-ticker {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 18px;
  fill: var(--blue);
}
.tree a:focus-visible .node-ring {
  stroke: var(--blue);
  stroke-dasharray: 8 6;
}
.legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 22px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  font-stretch: 87.5%;
}
.legend li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.legend svg {
  width: 44px;
  height: 14px;
}
.cast {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 20px;
  margin: clamp(40px, 6vw, 72px) 0 0;
  padding: 0;
  list-style: none;
}
.cast li {
  padding: 18px 20px 20px;
  border: 3px solid var(--ink);
  border-radius: var(--wobble);
  background: var(--paper);
}
.cast h3 {
  margin: 0 0 4px;
  font-family: var(--display);
  font-size: 1.7rem;
  font-weight: 900;
  line-height: 1;
}
.cast h3 a {
  text-decoration: none;
}
.cast h3 a:hover {
  text-decoration: underline wavy var(--pink) 2px;
  text-underline-offset: 5px;
}
.cast .species {
  margin: 0 0 10px;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  font-stretch: 87.5%;
}
.cast p {
  margin: 0;
}
.cast .quote {
  margin-top: 10px;
  font-family: var(--display);
  font-size: 1.15rem;
  color: var(--blue);
}
.cast ul {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.95rem;
}
.cast ul li {
  padding: 0;
  border: 0;
  background: none;
}
.cast ul b {
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  font-stretch: 87.5%;
}

/* ---------- Risk box and footer ---------- */

.risk {
  position: relative;
  overflow: hidden;
  margin: clamp(56px, 8vw, 96px) auto;
  padding: clamp(22px, 4vw, 40px);
  border: 4px solid var(--ink);
  border-radius: var(--wobble-2);
  background: var(--yellow);
  box-shadow: 8px 8px 0 var(--ink);
}
.risk h2 {
  margin: 0 0 12px;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 0.95;
}
.risk p {
  margin: 0 0 10px;
  max-width: 70ch;
}
.risk ul {
  margin: 12px 0 0;
  padding-left: 1.2em;
  max-width: 70ch;
}
.risk li {
  margin-bottom: 6px;
}
.risk-seal {
  position: absolute;
  right: clamp(16px, 4vw, 64px);
  bottom: clamp(20px, 3vw, 40px);
  width: clamp(180px, 20vw, 260px);
  color: var(--pink);
  mix-blend-mode: multiply;
  pointer-events: none;
}
.risk-seal text {
  font-family: var(--display);
  font-weight: 900;
  fill: currentColor;
}
@media (min-width: 1001px) {
  .risk {
    padding-right: min(340px, calc(20vw + 100px));
  }
}
@media (max-width: 1000px) {
  .risk-seal {
    display: none;
  }
}
.risk li::marker {
  content: "\2715  ";
  font-weight: 700;
}

.foot {
  padding: 40px 0 56px;
  border-top: 3px solid var(--ink);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-stretch: 87.5%;
}
.foot-in {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
}
.foot p {
  margin: 0;
}

/* ---------- Token page ---------- */

.token-hero {
  position: relative;
  padding: clamp(24px, 5vw, 56px) 0 clamp(40px, 6vw, 72px);
}
.token-hero-grid {
  display: grid;
  gap: clamp(20px, 4vw, 48px);
  align-items: center;
}
@media (min-width: 900px) {
  .token-hero-grid {
    grid-template-columns: minmax(260px, 0.8fr) 1.2fr;
  }
}
.token-stamp {
  position: relative;
  width: min(100%, 440px);
  aspect-ratio: 1;
  margin-inline: auto;
}
.token-stamp::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  color: var(--accent);
  background: var(--halftone);
  background-size: 12px 12px;
  transform: translate(4%, 5%);
}
.token-stamp img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 5px solid var(--ink);
  background: var(--paper);
}
.token-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.token-name {
  margin: 0;
  font-size: clamp(3.6rem, 12vw, 9rem);
  line-height: 0.82;
  overflow-wrap: anywhere;
}
.token-ticker {
  display: inline-block;
  margin: 14px 0 0;
  padding: 6px 12px 4px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-weight: 600;
  transform: rotate(-2deg);
}
.token-hook {
  margin: 20px 0 0;
  max-width: 30ch;
  font-family: var(--display);
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  font-weight: 600;
  line-height: 1.1;
}
.token-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.film {
  padding: 0 0 clamp(56px, 8vw, 96px);
}
.screen {
  position: relative;
  max-width: 1040px;
  margin: 0 auto;
  padding: clamp(10px, 1.6vw, 18px);
  border: 4px solid var(--ink);
  border-radius: var(--wobble);
  background: var(--ink);
  box-shadow:
    10px 10px 0 var(--accent),
    10px 10px 0 3px var(--ink);
}
.screen video,
.screen img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 10px 30px 12px 26px / 26px 12px 30px 10px;
  background: var(--paper-deep);
}
.screen-label {
  position: absolute;
  left: 50%;
  top: 0;
  translate: -50% -60%;
  padding: 8px 16px 5px;
  border: 3px solid var(--ink);
  background: var(--yellow);
  font-family: var(--display);
  font-weight: 900;
  font-size: 1.1rem;
  line-height: 1;
  white-space: nowrap;
  transform: rotate(-2deg);
}

.band {
  padding: clamp(56px, 8vw, 104px) 0;
}
.band--deep {
  background: var(--paper-deep);
  border-block: 3px solid var(--ink);
}

.story {
  display: grid;
  gap: clamp(18px, 2.5vw, 28px);
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 760px) {
  .story {
    grid-template-columns: repeat(6, 1fr);
  }
  .panel:nth-child(4n + 1) {
    grid-column: span 4;
  }
  .panel:nth-child(4n + 2) {
    grid-column: span 2;
  }
  .panel:nth-child(4n + 3) {
    grid-column: span 3;
  }
  .panel:nth-child(4n + 4) {
    grid-column: span 3;
  }
  .panel:last-child:nth-child(4n + 1),
  .panel:last-child:nth-child(4n + 3) {
    grid-column: span 6;
  }
}
.panel {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 4px solid var(--ink);
  border-radius: 6px;
  background: var(--paper);
  overflow: hidden;
  box-shadow: 6px 6px 0 var(--ink);
}
.panel:nth-child(even) {
  transform: rotate(0.8deg);
}
.panel:nth-child(odd) {
  transform: rotate(-0.6deg);
}
.panel figure {
  margin: 0;
  flex: 1;
  min-height: 200px;
  border-bottom: 4px solid var(--ink);
  overflow: hidden;
}
.panel img {
  width: 100%;
  height: 100%;
  min-height: 200px;
  max-height: 360px;
  object-fit: cover;
  mix-blend-mode: multiply;
}
.panel-caption {
  position: relative;
  padding: 16px 18px 18px;
}
.panel-num {
  position: absolute;
  top: -22px;
  left: 14px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--yellow);
  font-family: var(--display);
  font-weight: 900;
  font-size: 1.15rem;
  line-height: 1;
  padding-top: 3px;
}
.panel-caption p {
  margin: 10px 0 0;
  font-size: 1.05rem;
}
.panel--finale {
  background: var(--accent);
}
.panel--finale .panel-caption {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 32px;
  padding: 70px 22px 24px;
}
.panel--finale .panel-num {
  top: 16px;
}
.panel--finale .panel-caption p {
  flex: 1 1 280px;
  margin: 0;
}
.panel--finale .finale-stamp {
  display: block;
  width: clamp(110px, 12vw, 170px);
  aspect-ratio: 1;
  margin: 0 8px 0 auto;
  border-radius: 50%;
  border: 4px solid var(--ink);
  height: auto;
  min-height: 0;
  max-height: none;
  object-fit: cover;
  background: var(--paper);
  mix-blend-mode: normal;
  transform: rotate(-8deg);
}
.panel--finale .panel-caption p {
  font-family: var(--display);
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  font-weight: 700;
  line-height: 1.15;
}

.sheet {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 280px));
  justify-content: center;
  gap: clamp(20px, 3vw, 36px);
  margin: 0;
  padding: clamp(18px, 3vw, 36px);
  list-style: none;
  border: 3px dashed var(--ink);
  border-radius: 18px;
  background:
    linear-gradient(
      90deg,
      color-mix(in srgb, var(--blue) 14%, transparent) 1px,
      transparent 1px
    )
    0 0 / 28px 28px,
    linear-gradient(
      color-mix(in srgb, var(--blue) 14%, transparent) 1px,
      transparent 1px
    )
    0 0 / 28px 28px;
}
.sticker {
  position: relative;
  transform: rotate(var(--tilt, 0deg));
  touch-action: none;
}
.sticker-img {
  padding: 8px;
  border: 3px solid var(--ink);
  border-radius: 16px;
  background: #fff;
  box-shadow: 5px 6px 0 color-mix(in srgb, var(--ink) 30%, transparent);
  cursor: grab;
}
.sticker-img img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 9px;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}
.sticker .btn {
  margin-top: 12px;
  width: 100%;
  min-height: 42px;
  font-size: 1rem;
  box-shadow: 3px 3px 0 var(--ink);
}
.sheet-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
}
.sheet-actions p {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-stretch: 87.5%;
}

.buy {
  display: grid;
  gap: clamp(28px, 4vw, 56px);
}
@media (min-width: 900px) {
  .buy {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}
.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps li {
  position: relative;
  padding: 0 0 34px 64px;
  counter-increment: step;
  min-height: 48px;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -6px;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding-top: 4px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--accent);
  font-family: var(--display);
  font-weight: 900;
  font-size: 1.4rem;
  line-height: 1;
}
.steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 22px;
  top: 44px;
  bottom: 2px;
  border-left: 3px dotted var(--ink);
}

.ticket {
  position: relative;
  padding: 22px clamp(18px, 3vw, 28px) 24px;
  border: 3px solid var(--ink);
  border-radius: 14px;
  background: var(--paper);
  box-shadow: 8px 8px 0 var(--accent-2);
}
.ticket::before,
.ticket::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 26px;
  height: 26px;
  margin-top: -13px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--paper-deep);
}
.ticket::before {
  left: -15px;
  clip-path: inset(0 0 0 50%);
}
.ticket::after {
  right: -15px;
  clip-path: inset(0 50% 0 0);
}
.ticket h3 {
  margin: 0 0 14px;
  font-family: var(--display);
  font-size: 1.6rem;
  font-weight: 900;
  line-height: 1;
}
.ca {
  display: flex;
  align-items: stretch;
  gap: 10px;
  flex-wrap: wrap;
}
.ca code {
  flex: 1 1 260px;
  min-width: 0;
  padding: 12px 14px;
  border: 2px dashed var(--ink);
  border-radius: 8px;
  background: #fff;
  font-family: var(--mono);
  font-size: clamp(0.72rem, 1.5vw, 0.84rem);
  font-weight: 600;
  line-height: 1.45;
  word-break: break-all;
  text-wrap: balance;
  font-stretch: 75%;
}
.ca .btn {
  flex: 0 0 auto;
  min-width: 120px;
}
.ticket-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 600;
  font-stretch: 87.5%;
}
.ticket-links a {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.ticket-links a:hover {
  text-decoration-color: var(--pink);
}
.not-yet {
  margin: 0;
  font-family: var(--display);
  font-size: 1.35rem;
  line-height: 1.2;
}
.copied {
  position: absolute;
  right: 18px;
  top: -18px;
  pointer-events: none;
  visibility: hidden;
}

.market {
  display: grid;
  gap: 24px;
}
.stats[hidden] {
  display: none;
}
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
  gap: 14px;
  margin: 0;
}
.stat {
  padding: 14px 16px 12px;
  border: 3px solid var(--ink);
  border-radius: var(--wobble-2);
  background: var(--paper);
}
.stat dt {
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 600;
  text-transform: uppercase;
  font-stretch: 87.5%;
}
.stat dd {
  margin: 4px 0 0;
  font-family: var(--display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 900;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat .up {
  color: var(--green);
}
.stat .down {
  color: var(--pink);
}
.chart {
  position: relative;
  border: 4px solid var(--ink);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  min-height: 200px;
}
.chart iframe {
  display: block;
  width: 100%;
  height: clamp(420px, 60vh, 620px);
  border: 0;
}
.chart-empty {
  display: grid;
  place-items: center;
  min-height: 240px;
  padding: 32px;
  text-align: center;
  font-family: var(--display);
  font-size: 1.35rem;
  line-height: 1.25;
  background: var(--paper);
}
.chart-empty p {
  max-width: 36ch;
  margin: 0;
}
.chart-empty small {
  display: block;
  margin-top: 10px;
  font-family: var(--body);
  font-size: 0.95rem;
}

.kin {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.kin a {
  display: grid;
  grid-template-columns: 76px 1fr;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 3px solid var(--ink);
  border-radius: var(--wobble);
  background: var(--paper);
  text-decoration: none;
  box-shadow: 5px 5px 0 var(--accent-2);
  transition:
    transform 0.15s,
    box-shadow 0.15s;
}
.kin a:hover {
  transform: translate(-2px, -2px) rotate(-1deg);
  box-shadow: 8px 8px 0 var(--accent-2);
}
.kin img {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  border: 3px solid var(--ink);
  object-fit: cover;
}
.kin b {
  display: block;
  font-family: var(--display);
  font-size: 1.35rem;
  line-height: 1;
}
.kin span {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  font-stretch: 87.5%;
}
.kin em {
  display: block;
  margin-top: 4px;
  font-size: 0.9rem;
  font-style: normal;
}

/* ---------- Motion gating ---------- */

.motion [data-hide] {
  visibility: hidden;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    /* biome-ignore lint/complexity/noImportantStyles: reduced motion must override every component transition. */
    transition-duration: 0.01ms !important;
    /* biome-ignore lint/complexity/noImportantStyles: as above. */
    animation-duration: 0.01ms !important;
    /* biome-ignore lint/complexity/noImportantStyles: as above. */
    scroll-behavior: auto !important;
  }
}
