/* =========================================================
   pp — ppprivatejet · official links
   palette lifted from the picture: royal blue sky, hard black
   horizon, white character, black outlines.
   ========================================================= */

:root {
  --blue: #1E5EE0;
  --blue-2: #3B7BFF;
  --blue-deep: #0F3FAF;
  --blue-ink: #0A2A6E;

  /* shuffle: their theme purple, the lighter mark purple, and a deep / ink version for backgrounds */
  --shuffle: #7717FF;
  --shuffle-2: #886CFF;
  --shuffle-deep: #4C0BB5;
  --shuffle-ink: #14092A;

  --black: #0A0A0C;
  --ink: #121216;
  --ink-2: #1A1A21;
  --line: rgba(255, 255, 255, 0.10);
  --line-strong: rgba(255, 255, 255, 0.18);

  --white: #FFFFFF;
  --paper: #F4F6FB;
  --gray: #A9AEB8;
  --gray-2: #d7d7dc;
  --mute: #7A8090;

  --radius: 22px;
  --radius-sm: 14px;
  --max: 1180px;

  --font-display: "Fredoka", "Sora", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Sora", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --font-emoji: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif;

  --shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.45);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--white);
  background: var(--black);
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
b, strong { font-weight: 700; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.01em; line-height: 1.05; margin: 0; }
h2 { font-size: clamp(34px, 4.6vw, 54px); }
h3 { font-size: 24px; }
p { margin: 0; }

.wrap { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; }

/* ---------- reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.reveal.in { opacity: 1; transform: none; }

/* ---------- buttons & chips ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-display); font-weight: 600; font-size: 17px;
  padding: 14px 24px; border-radius: 999px; border: 2px solid transparent;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s, color .2s, border-color .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn:focus-visible { outline: 3px solid var(--white); outline-offset: 3px; }
.btn--lg { padding: 17px 30px; font-size: 19px; }
.btn--sm { padding: 10px 18px; font-size: 15px; }
.btn--white { background: var(--white); color: var(--black); box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.btn--white:hover { box-shadow: 0 16px 40px rgba(0,0,0,.35); }
.btn--ghost { background: rgba(255,255,255,.06); color: var(--white); border-color: rgba(255,255,255,.35); }
.btn--ghost:hover { background: rgba(255,255,255,.12); border-color: var(--white); }
.btn--shuffle { background: var(--shuffle); color: var(--white); box-shadow: 0 10px 30px rgba(119,23,255,.4); }
.btn--shuffle:hover { background: var(--shuffle-2); box-shadow: 0 16px 40px rgba(119,23,255,.5); }

.chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13.5px; font-weight: 600; letter-spacing: .01em;
  padding: 8px 14px; border-radius: 999px;
}
.chip--glass { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.28); backdrop-filter: blur(8px); }
.chip--shuffle { background: var(--shuffle); color: var(--white); border: 1px solid rgba(255,255,255,.28); box-shadow: 0 10px 30px rgba(119,23,255,.35); }
.chip--shuffle img { width: 14px; height: 16px; }

.kicker {
  font-family: var(--font-display); font-weight: 600; font-size: 15px; letter-spacing: .08em;
  color: var(--blue-2); margin-bottom: 12px;
}
.kicker--light { color: rgba(255,255,255,.75); }
.kicker--shuffle { color: var(--shuffle-2); }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  padding: 16px 0;
  transition: background .3s, padding .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled, .nav.menu-open {
  padding: 10px 0;
  background: rgba(10,10,12,.82);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand__mark { width: 42px; height: 42px; filter: drop-shadow(0 4px 10px rgba(0,0,0,.25)); transition: transform .3s var(--ease); }
.brand:hover .brand__mark { transform: rotate(-8deg) scale(1.06); }
.brand__text { font-family: var(--font-display); font-weight: 700; font-size: 26px; color: var(--white); line-height: 1; }
.brand__sub { font-size: 14px; font-weight: 600; opacity: .8; margin-left: 2px; }

.nav__links { display: flex; align-items: center; gap: 26px; }
.nav__links a:not(.btn) { font-weight: 600; font-size: 15.5px; opacity: .9; position: relative; }
.nav__links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: var(--white); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.nav__links a:not(.btn):hover::after { transform: scaleX(1); }

.nav__burger {
  display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid rgba(255,255,255,.3);
  background: rgba(255,255,255,.1); position: relative;
}
.nav__burger span { position: absolute; left: 12px; right: 12px; height: 2px; background: #fff; transition: .25s; }
.nav__burger span:nth-child(1) { top: 16px; }
.nav__burger span:nth-child(2) { top: 26px; }
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-5px) rotate(-45deg); }

/* ---------- hero: who + the links ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: 100svh;
  padding: 124px 0 0;
  background: var(--black);
  display: flex; align-items: flex-end;
}
.hero__sky {
  position: absolute; inset: 0 0 auto 0;
  height: calc(100% - 150px);
  background:
    radial-gradient(900px 500px at 15% 10%, rgba(255,255,255,.18), transparent 60%),
    radial-gradient(800px 560px at 88% 95%, rgba(119,23,255,.75), transparent 62%),   /* shuffle purple behind pp */
    var(--blue);
}
.hero__dots {
  position: absolute; inset: 0 0 150px 0;
  background-image: radial-gradient(rgba(255,255,255,.22) 1px, transparent 1.5px);
  background-size: 26px 26px;
  mask-image: linear-gradient(180deg, transparent, rgba(0,0,0,.7) 40%, transparent 95%);
  -webkit-mask-image: linear-gradient(180deg, transparent, rgba(0,0,0,.7) 40%, transparent 95%);
  opacity: .5;
}
.hero__inner {
  position: relative; z-index: 1; width: min(var(--max), calc(100% - 48px));
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  grid-template-areas: "head art" "lead art" "links art";
  column-gap: 48px; align-items: end;
}
.hero__head { grid-area: head; }
.hero__lead { grid-area: lead; }
.links { grid-area: links; }
.hero__art { grid-area: art; }

.hero__title {
  font-size: clamp(96px, 12vw, 168px);
  line-height: .9; letter-spacing: -0.04em;
  display: flex; align-items: flex-end; gap: 12px;
  text-shadow: 0 20px 60px rgba(0,0,0,.25);
  margin: 18px 0 0;
}
.hero__emoji { font-family: var(--font-emoji); font-size: .42em; line-height: 1; transform: translateY(-.25em); display: inline-block; animation: nod 3.2s ease-in-out infinite; }
@keyframes nod { 0%,100% { transform: translateY(-.25em) rotate(0); } 50% { transform: translateY(-.35em) rotate(-8deg); } }

.hero__lead { font-size: clamp(17px, 1.5vw, 20px); max-width: 560px; color: rgba(255,255,255,.92); margin: 26px 0 0; }
.hero__lead b { color: var(--white); }

/* the links: big, stacked, tappable. exact handles shown so people can check them letter by letter. */
.links { display: grid; gap: 10px; margin-top: 26px; padding-bottom: 60px; }
.link {
  display: grid; grid-template-columns: 52px minmax(0, 1fr) auto 22px; grid-template-areas: "icon body meta arrow";
  align-items: center; column-gap: 16px;
  min-height: 78px; padding: 13px 18px 13px 13px; border-radius: 20px;
  background: rgba(255,255,255,.97); color: var(--black);
  box-shadow: 0 14px 40px rgba(0,0,0,.22);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}
.link:hover { transform: translateY(-3px); box-shadow: 0 22px 50px rgba(0,0,0,.3); }
.link:active { transform: translateY(0) scale(.99); }
.link:focus-visible { outline: 3px solid var(--white); outline-offset: 3px; }
/* the shuffle card is the primary one: purple, a little taller, ringed */
.link--shuffle {
  min-height: 88px; background: linear-gradient(120deg, var(--shuffle-2), var(--shuffle) 55%, var(--shuffle-deep)); color: var(--white);
  box-shadow: 0 0 0 3px rgba(255,255,255,.35), 0 14px 40px rgba(76,11,181,.45);
}
.link--shuffle:hover { box-shadow: 0 0 0 3px rgba(255,255,255,.6), 0 22px 50px rgba(76,11,181,.55); }
.link--shuffle .link__handle { color: rgba(255,255,255,.8); }
.link--shuffle .link__meta { color: var(--white); }
.link--shuffle .link__tag--shuffle { color: var(--white); background: rgba(255,255,255,.18); }
.link__icon { grid-area: icon; width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; color: #fff; }
.link__icon svg { width: 26px; height: 26px; }
.link--shuffle .link__icon { background: rgba(255,255,255,.16); color: var(--white); }
.link--shuffle .link__icon img { width: 22px; height: 26px; }
.link--tg .link__icon { background: #229ED9; }
.link--kick .link__icon { background: #53FC18; color: var(--black); }
.link--dc .link__icon { background: #5865F2; }
.link--x .link__icon { background: var(--black); }
.link__body { grid-area: body; min-width: 0; }
.link__name { display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-size: 20px; line-height: 1.1; }
.link__tag {
  font-family: var(--font-body); font-size: 11.5px; font-weight: 700; letter-spacing: .04em;
  color: var(--blue); background: rgba(30,94,224,.1); padding: 3px 8px; border-radius: 999px; white-space: nowrap;
}
.link__handle { display: block; margin-top: 4px; font-family: var(--font-mono); font-size: 13.5px; color: #4a4f5c; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.link__meta { grid-area: meta; font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--blue); white-space: nowrap; text-align: right; }
.link__arrow { grid-area: arrow; font-family: var(--font-display); font-weight: 700; font-size: 22px; line-height: 1; transition: transform .22s var(--ease); }
.link:hover .link__arrow { transform: translateX(4px); }

.hero__art { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; }
.hero__hint { position: absolute; bottom: 26px; font-size: 13px; letter-spacing: .1em; color: var(--mute); font-weight: 600; }

.pp-stage {
  position: relative; width: min(100%, 400px); user-select: none;
  padding-bottom: 56px;
}
.pp-glow {
  position: absolute; left: 50%; top: 40%; width: 150%; aspect-ratio: 1; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(255,255,255,.26), rgba(255,255,255,0));
  pointer-events: none;
}
/* the slot is an empty box the exact size of the character (antenna room + body); it holds the hero
   layout open. the rig sits on top of it, and on desktop script.js lifts the rig out to roam. */
.pp-slot { padding-top: 166.22%; }
.pp-rig { position: absolute; inset: 0; cursor: pointer; outline: none; }
.pp-rig:focus-visible .pp { outline: 4px solid rgba(255,255,255,.7); outline-offset: 8px; border-radius: 40px; }
.pp-float { position: relative; animation: float 4.5s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
/* pp is layers: two legs behind, torso, and the antenna which pivots where the stalk enters the head.
   numbers come from the layer-split of the reference image (tools/split-pp.py). all layers share one box. */
.pp-char { padding-top: 30.05%; transform-origin: 50% 100%; will-change: transform; }
/* one shadow on the wrapper for the whole figure, so the legs and torso never show a seam between them */
.pp-body { position: relative; filter: drop-shadow(0 30px 40px rgba(0,0,0,.35)); }
.pp { display: block; position: relative; z-index: 1; width: 100%; height: auto; -webkit-user-drag: none; }
.pp-layer { position: absolute; inset: 0; width: 100%; height: auto; z-index: 0; -webkit-user-drag: none; }
.pp-antenna {
  position: absolute; left: 35.993%; top: -22.07%; width: 26.146%; height: auto; z-index: 2;
  transform-origin: 50.95% 84.19%; will-change: transform;
  pointer-events: none; -webkit-user-drag: none;
}
.pp-rig.bounce .pp-char { animation: bounce .55s var(--ease); }
@keyframes bounce {
  0% { transform: translateY(0) scale(1, 1); }
  30% { transform: translateY(6px) scale(1.06, .94); }
  60% { transform: translateY(-14px) scale(.97, 1.04); }
  100% { transform: translateY(0) scale(1, 1); }
}

/* roaming: the rig is lifted to <body>, fixed, and placed every frame by script.js.
   z-index 2 puts him over everything on the page but under the nav (50), the rain (60) and toasts. */
.pp-rig.is-free {
  position: fixed; inset: auto; left: 0; top: 0; z-index: 2;
  transform-origin: 50% 50%; will-change: transform; pointer-events: none;
}
.pp-rig.is-free .pp-body { pointer-events: auto; filter: drop-shadow(0 18px 26px rgba(0,0,0,.35)); }
.pp-rig.is-free .pp-float { animation: none; }         /* the float is driven by script.js while roaming */

.pp-bubble {
  position: absolute; left: 68%; top: 5%; z-index: 2;
  background: var(--white); color: var(--black);
  font-family: var(--font-display); font-weight: 700; font-size: 22px; line-height: 1.1;
  padding: 14px 18px; border-radius: 18px 18px 18px 6px;
  box-shadow: 0 16px 40px rgba(0,0,0,.3);
  opacity: 0; transform: translateY(10px) scale(.85); transform-origin: left bottom;
  transition: opacity .25s var(--ease), transform .3s var(--ease);
  white-space: nowrap; pointer-events: none;
}
.pp-bubble.show { opacity: 1; transform: none; }
/* while pp roams the bubble is fixed and pinned next to his head by script.js; the tail side follows him */
.pp-bubble.is-free { position: fixed; left: 0; top: 0; z-index: 3; }
.pp-bubble.is-free[data-side="right"] { translate: 0 -100%; border-radius: 18px 18px 18px 6px; transform-origin: left bottom; }
.pp-bubble.is-free[data-side="left"]  { translate: -100% -100%; border-radius: 18px 18px 6px 18px; transform-origin: right bottom; }
.pp-bubble.is-free[data-side="below"] { translate: 0 0; border-radius: 6px 18px 18px 18px; transform-origin: left top; }
.pp-bubble.is-free[data-side="belowleft"] { translate: -100% 0; border-radius: 18px 6px 18px 18px; transform-origin: right top; }

.float-chip {
  position: absolute; z-index: 2;
  background: var(--white); color: var(--black);
  font-family: var(--font-display); font-weight: 700; font-size: 15px;
  padding: 8px 14px; border-radius: 999px;
  box-shadow: 0 12px 30px rgba(0,0,0,.3);
  animation: chip-float 5s ease-in-out infinite;
  pointer-events: none;
}
/* the chips sit around pp, not on him (while roaming he paints above the hero) and clear of the link
   cards on his left: one up at antenna height, one by the antenna ball, one down by his feet */
.float-chip--1 { left: -22%; top: 12%; animation-delay: -1s; }
.float-chip--2 { right: -8%; top: 6%; animation-delay: -2.5s; background: var(--shuffle); color: var(--white); }
.float-chip--3 { right: 2%; top: 84%; animation-delay: -4s; background: var(--ink); color: var(--white); border: 1px solid var(--line-strong); }
@keyframes chip-float { 0%,100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-10px) rotate(2deg); } }

/* ---------- marquee ---------- */
.marquee {
  position: relative; overflow: hidden; border-block: 1px solid var(--line);
  background: var(--ink); padding: 16px 0;
}
/* edge fades as plain overlays (a mask-image here makes browsers composite the moving strip through an
   offscreen surface, and on some gpus the not-yet-visible part of the strip paints late) */
.marquee::before, .marquee::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: clamp(60px, 9vw, 130px); z-index: 1; pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(90deg, var(--ink), rgba(18,18,22,0)); }
.marquee::after { right: 0; background: linear-gradient(270deg, var(--ink), rgba(18,18,22,0)); }
/* the ticker is drawn frame by frame on a canvas (script.js), so nothing is ever painted late.
   the span list underneath is the content source and the no-js fallback. */
.marquee__canvas { display: none; width: 100%; height: 44px; }
.marquee.is-canvas .marquee__canvas { display: block; }
.marquee.is-canvas .marquee__track { display: none; }
.marquee__track { display: flex; gap: 48px; width: max-content; height: 44px; align-items: center; }
.marquee__track span {
  font-family: var(--font-display); font-weight: 700; font-size: 26px; white-space: nowrap; color: var(--white);
}
.marquee__track span:nth-child(3n+2) { color: var(--blue-2); }
.marquee__track span:nth-child(3n) { color: var(--shuffle-2); }

/* ---------- sections ---------- */
.section { padding: 110px 0; position: relative; }
.section--tight { padding: 90px 0; }
.section__head { max-width: 720px; margin-bottom: 44px; }
.section__sub { font-size: 18px; color: var(--gray); margin-top: 16px; max-width: 640px; }
.section__sub b { color: var(--white); }

/* ---------- pp × shuffle ---------- */
.shuffle {
  background:
    radial-gradient(900px 520px at 100% 0%, rgba(119,23,255,.45), transparent 60%),
    radial-gradient(700px 400px at 0% 100%, rgba(76,11,181,.35), transparent 60%),
    var(--shuffle-ink);
  border-block: 1px solid rgba(136,108,255,.18);
}
.shuffle__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 40px; }
.shuffle__head .section__sub { color: rgba(255,255,255,.78); }
.shuffle__logo { flex: 0 0 auto; padding: 16px 22px; border-radius: 18px; background: rgba(255,255,255,.06); border: 1px solid rgba(136,108,255,.3); transition: background .2s, transform .2s var(--ease); }
.shuffle__logo:hover { background: rgba(255,255,255,.1); transform: translateY(-2px); }
.shuffle__logo img { width: 220px; height: auto; }
.shuffle__grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 16px; }
.scard {
  display: block; background: rgba(255,255,255,.05); border: 1px solid rgba(136,108,255,.25); border-radius: var(--radius); padding: 26px 26px 24px;
  transition: transform .3s var(--ease), border-color .3s, background .3s;
}
a.scard:hover { transform: translateY(-4px); border-color: var(--shuffle-2); background: rgba(255,255,255,.08); }
.scard--code { background: linear-gradient(135deg, rgba(136,108,255,.28), rgba(119,23,255,.18) 60%, rgba(76,11,181,.25)); border-color: rgba(136,108,255,.45); }
.scard__label { font-family: var(--font-display); font-weight: 600; font-size: 13px; letter-spacing: .1em; color: var(--shuffle-2); }
.scard h3 { font-size: 24px; margin: 10px 0 8px; }
.scard__code {
  margin: 12px 0 10px; font-family: var(--font-display); font-weight: 700; font-size: clamp(26px, 2.6vw, 38px); letter-spacing: .02em; line-height: 1.1;
  color: var(--white);
}
.scard__code.is-set { font-family: var(--font-mono); letter-spacing: .12em; text-transform: uppercase; }
.scard__text { color: rgba(255,255,255,.75); font-size: 15.5px; line-height: 1.65; }
.scard__cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.scard__more { display: inline-block; margin-top: 16px; font-family: var(--font-display); font-weight: 600; color: var(--shuffle-2); }

/* ---------- is it really pp? ---------- */
.rules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.rule {
  background: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 26px 24px;
  transition: transform .3s var(--ease), border-color .3s;
}
.rule:hover { transform: translateY(-4px); border-color: rgba(59,123,255,.6); }
.rule__num { font-family: var(--font-display); font-weight: 700; color: var(--blue-2); font-size: 15px; letter-spacing: .1em; }
.rule h3 { font-size: 22px; margin: 10px 0 10px; }
.rule p { color: var(--gray); font-size: 15.5px; line-height: 1.7; }
.rule code {
  font-family: var(--font-mono); font-size: 13px; color: var(--white);
  background: rgba(255,255,255,.08); border: 1px solid var(--line-strong); padding: 2px 7px; border-radius: 7px; white-space: nowrap;
}
.rule a { color: var(--blue-2); font-weight: 600; border-bottom: 1px solid rgba(59,123,255,.4); }

/* ---------- leaderboard (soon) ---------- */
.lb { padding-top: 90px; }
.lbcard {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 44px; align-items: center;
  background:
    radial-gradient(600px 300px at 100% 0%, rgba(255,255,255,.18), transparent 60%),
    linear-gradient(135deg, var(--shuffle-2), var(--shuffle) 45%, var(--shuffle-deep));
  border-radius: 30px; padding: 48px; box-shadow: 0 30px 80px rgba(119,23,255,.3); overflow: hidden; position: relative;
}
.lbcard::after {
  content: "🏆"; position: absolute; right: -30px; bottom: -80px; font-size: 300px; line-height: 1; opacity: .07;
  font-family: var(--font-emoji); pointer-events: none;
}
.lbcard__copy { position: relative; z-index: 1; }
.lbcard h2 { font-size: clamp(32px, 3.3vw, 46px); }
.lbcard__text { font-size: 18px; color: rgba(255,255,255,.92); max-width: 540px; margin-top: 14px; }
.lbcard__text b { color: var(--white); }
.lbcard__cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }
.lbcard__fine { margin-top: 18px; font-size: 13px; letter-spacing: .04em; color: rgba(255,255,255,.7); line-height: 1.6; }
.lb__facts {
  list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, auto); gap: 10px 26px; justify-content: start;
}
.lb__facts li { display: flex; flex-direction: column; }
.lb__facts b { font-family: var(--font-display); font-weight: 700; font-size: 24px; line-height: 1.1; letter-spacing: -.01em; }
.lb__facts span { font-size: 12.5px; letter-spacing: .04em; color: rgba(255,255,255,.7); margin-top: 3px; }
.lbcard__art { position: relative; z-index: 1; padding-top: 14px; }
/* the board: rank · player · wagered · prize. real rows from leaderboard.js, open slots underneath */
.board__head, .board__row { display: grid; grid-template-columns: 36px minmax(0, 1fr) 104px 76px; align-items: center; gap: 12px; }
.board__head {
  padding: 0 16px 8px;
  font-family: var(--font-display); font-weight: 600; font-size: 12.5px; letter-spacing: .1em; color: rgba(255,255,255,.7);
}
.board__head span:nth-child(3), .board__head span:nth-child(4), .board__wager, .board__prize { text-align: right; }
.board__rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.board__row {
  background: rgba(10,10,12,.35); border: 1px solid rgba(255,255,255,.14); border-radius: 14px; padding: 11px 16px;
  font-size: 15px;
}
.board__row--1 { padding: 16px; background: rgba(255,255,255,.96); color: var(--shuffle-deep); border-color: transparent; box-shadow: 0 16px 40px rgba(0,0,0,.25); font-size: 17px; }
.board__row--open { opacity: .5; }
.board__rank { font-family: var(--font-display); font-weight: 700; font-size: 18px; }
.board__row--1 .board__rank { font-size: 22px; }
.board__name { font-family: var(--font-mono); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.board__row--open .board__name { font-family: var(--font-body); font-style: italic; }
.board__wager { font-family: var(--font-display); font-weight: 700; white-space: nowrap; }
.board__prize { font-family: var(--font-display); font-weight: 600; white-space: nowrap; color: rgba(255,255,255,.85); }
.board__row--1 .board__prize, .board__row--1 .board__name, .board__row--1 .board__wager, .board__row--1 .board__rank { color: var(--shuffle-deep); }
.board__row--1 .board__name { font-weight: 700; }
.board__note { margin-top: 12px; font-size: 13px; color: rgba(255,255,255,.75); text-align: center; }
.board__more { display: block; margin-top: 10px; text-align: center; font-family: var(--font-display); font-weight: 600; color: var(--white); opacity: .9; }
.board__more:hover { opacity: 1; text-decoration: underline; }
/* top three get their metal */
.board__row--2 { border-color: rgba(220,224,235,.55); }
.board__row--3 { border-color: rgba(205,127,50,.65); }
.board__row--2 .board__rank { color: #e2e6f0; }
.board__row--3 .board__rank { color: #e0a06a; }
.lbcard__stamp {
  position: absolute; right: -8px; top: -30px; transform: rotate(8deg);
  font-family: var(--font-display); font-weight: 700; font-size: 22px;
  background: var(--white); color: var(--black); padding: 8px 14px; border-radius: 12px; box-shadow: 0 12px 30px rgba(0,0,0,.3);
}

/* ---------- /leaderboard: the race page ---------- */
.race-page { background: var(--shuffle-ink); }
.racehero {
  position: relative; overflow: hidden; padding: 150px 0 70px;
  background:
    radial-gradient(900px 560px at 85% 10%, rgba(119,23,255,.55), transparent 62%),
    radial-gradient(700px 500px at 0% 100%, rgba(76,11,181,.45), transparent 60%),
    var(--shuffle-ink);
  border-bottom: 1px solid rgba(136,108,255,.18);
}
.racehero__inner { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 40px; align-items: end; }
.racehero__title { font-size: clamp(50px, 6.3vw, 90px); line-height: .95; letter-spacing: -.03em; margin: 14px 0 0; display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; }
/* pp's trophy (assets/trophy.svg): sits in the heading like the emoji did, with a little life on hover */
.trophy {
  display: inline-block; height: .92em; width: auto; vertical-align: bottom; margin-left: .04em;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.4)); transform-origin: 50% 90%;
  transition: transform .35s var(--ease);
}
.trophy:hover { transform: rotate(-8deg) scale(1.08); }
.trophy--sm { height: 1.05em; }
.lbcard__title { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.racehero__lead { font-size: clamp(17px, 1.5vw, 20px); color: rgba(255,255,255,.88); max-width: 620px; margin-top: 22px; }
.racehero__lead b { color: var(--white); }
.racehero__cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.racehero .lbcard__fine { color: rgba(255,255,255,.6); }
.lb__facts--big { margin-top: 28px; gap: 12px 34px; }
.lb__facts--big b { font-size: 30px; }
.racehero__art { display: flex; justify-content: center; align-items: flex-end; }
.racehero__art .pp-stage { width: min(100%, 320px); padding-bottom: 0; }
.racehero__art .pp-bubble { left: 62%; top: 4%; }

.race-board { padding-top: 70px; }
.section__head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; max-width: none; margin-bottom: 28px; }
.lbcard__stamp--inline { position: static; transform: rotate(-4deg); font-size: 20px; }
.board--full {
  background: rgba(255,255,255,.04); border: 1px solid rgba(136,108,255,.25); border-radius: var(--radius); padding: 18px 18px 16px;
}
.board--full .board__head, .board--full .board__row { grid-template-columns: 52px minmax(0, 1fr) 150px 120px; }
.board--full .board__row { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.08); font-size: 16px; padding: 12px 16px; }
.board--full .board__row--1 { font-size: 19px; padding: 18px 16px; background: rgba(255,255,255,.96); border-color: transparent; }
.board--full .board__name { font-size: 15px; }
.board--full .board__row--open { opacity: .45; }
.board--full .board__note { margin-top: 16px; }

.ladder { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.ladder__row {
  display: flex; flex-direction: column; gap: 4px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(136,108,255,.25); border-radius: 16px; padding: 16px 18px;
}
.ladder__row--1 { grid-column: span 2; background: linear-gradient(135deg, var(--shuffle-2), var(--shuffle) 55%, var(--shuffle-deep)); border-color: transparent; box-shadow: 0 20px 50px rgba(119,23,255,.35); }
.ladder__row:last-child { grid-column: 1 / -1; flex-direction: row; align-items: baseline; gap: 14px; }
.ladder__row--1 .ladder__prize { font-size: 44px; }
.ladder__row--2 { border-color: rgba(220,224,235,.5); }
.ladder__row--3 { border-color: rgba(205,127,50,.6); }
.ladder__place { font-family: var(--font-display); font-weight: 600; font-size: 13px; letter-spacing: .08em; color: rgba(255,255,255,.75); }
.ladder__prize { font-family: var(--font-display); font-weight: 700; font-size: 26px; letter-spacing: -.01em; line-height: 1.05; }
.ladder__each { font-size: 12px; color: rgba(255,255,255,.6); }

.rules-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: rule; max-width: 820px; }
.rules-list li {
  position: relative; padding: 16px 18px 16px 58px; background: rgba(255,255,255,.04); border: 1px solid rgba(136,108,255,.2); border-radius: 16px;
  color: rgba(255,255,255,.8); font-size: 15.5px; line-height: 1.6;
}
.rules-list li::before {
  counter-increment: rule; content: counter(rule, decimal-leading-zero);
  position: absolute; left: 18px; top: 18px; font-family: var(--font-display); font-weight: 700; font-size: 14px; letter-spacing: .1em; color: var(--shuffle-2);
}
.rules-list b { color: var(--white); }
.rules-list code { font-family: var(--font-mono); font-size: 13px; color: var(--white); background: rgba(255,255,255,.08); border: 1px solid var(--line-strong); padding: 2px 7px; border-radius: 7px; }
.rules-list a { color: var(--shuffle-2); font-weight: 600; border-bottom: 1px solid rgba(136,108,255,.4); }

/* ---------- /game: pp run ---------- */
.gamehero { padding: 124px 0 40px; }
.gamehero__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 18px; }
.gamehero__title { font-size: clamp(44px, 6vw, 84px); letter-spacing: -.03em; line-height: .95; margin-top: 6px; }
.gamehero__lead { color: var(--gray); font-size: 17px; max-width: 620px; margin-top: 14px; }
.gamehero__lead b { color: var(--white); }
.gamehud { display: flex; gap: 22px; flex: 0 0 auto; }
.gamehud div { display: flex; flex-direction: column; align-items: flex-end; min-width: 84px; }
.gamehud span { font-size: 12px; letter-spacing: .1em; color: var(--mute); font-weight: 600; }
.gamehud b { font-family: var(--font-display); font-weight: 700; font-size: 34px; line-height: 1.05; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.gmute {
  align-self: flex-end; width: 48px; height: 48px; border-radius: 14px; border: 1px solid var(--line-strong); background: var(--ink);
  font-family: var(--font-emoji); font-size: 20px; display: grid; place-items: center; transition: transform .2s var(--ease), border-color .2s;
}
.gmute:hover { transform: translateY(-2px); border-color: var(--white); }
.gmute[aria-pressed="true"] { opacity: .6; }
.gstage {
  position: relative; border-radius: 26px; overflow: hidden; background: var(--blue);
  border: 1px solid var(--line-strong); box-shadow: var(--shadow-lg);
  touch-action: none; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent;
}
.gstage canvas { display: block; width: 100%; height: auto; cursor: pointer; }
.gstage__hint { display: none; margin-top: 12px; font-size: 13px; color: var(--mute); text-align: center; }
.goverlay {
  position: absolute; inset: 0; display: grid; place-items: center; padding: 16px;
  background: rgba(10,10,12,.35); backdrop-filter: blur(2px);
}
.goverlay--quiet { background: rgba(10,10,12,.55); }
.goverlay__card {
  background: var(--white); color: var(--black); border-radius: 22px; padding: 22px 26px; text-align: center;
  box-shadow: var(--shadow-lg); max-width: min(92%, 420px); cursor: pointer;
}
.goverlay__card--over { cursor: default; }
.goverlay__kicker { font-family: var(--font-display); font-weight: 700; font-size: 14px; letter-spacing: .1em; color: var(--shuffle); }
.goverlay__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(24px, 3vw, 34px); line-height: 1.1; margin: 4px 0 6px; }
.goverlay small { display: block; color: #555a66; font-size: 13.5px; }
.gform { display: flex; gap: 8px; margin: 16px 0 10px; }
.gform__input {
  flex: 1; min-width: 0; font: inherit; font-weight: 600; font-size: 16px; padding: 12px 14px; border-radius: 999px;
  border: 2px solid #d7d7dc; background: var(--paper); color: var(--black); outline: none;
}
.gform__input:focus { border-color: var(--blue); }
.gform__input.shake { animation: shake .35s; border-color: #FF3B5C; }
@keyframes shake { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.gform .btn { white-space: nowrap; }
.gform__saved { font-family: var(--font-display); font-weight: 700; font-size: 17px; color: var(--blue); margin: 14px 0 10px; }
.goverlay__card .btn--ghost { color: var(--black); border-color: rgba(10,10,12,.3); background: transparent; }
.goverlay__card .btn--ghost:hover { border-color: var(--black); background: rgba(10,10,12,.05); }

.gboard { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; max-width: 720px; }
.gboard__row {
  display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 12px;
  background: var(--ink); border: 1px solid var(--line); border-radius: 14px; padding: 11px 16px;
}
.gboard__row--1 { background: var(--white); color: var(--black); border-color: transparent; padding: 16px; box-shadow: 0 16px 40px rgba(0,0,0,.25); }
.gboard__row--2 { border-color: rgba(220,224,235,.5); }
.gboard__row--3 { border-color: rgba(205,127,50,.6); }
.gboard__row--me { outline: 2px solid var(--blue-2); outline-offset: -2px; }
.gboard__rank { font-family: var(--font-display); font-weight: 700; font-size: 18px; }
.gboard__row--1 .gboard__rank { font-size: 24px; }
.gboard__name { font-family: var(--font-display); font-weight: 600; font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gboard__score { font-family: var(--font-display); font-weight: 700; font-size: 19px; font-variant-numeric: tabular-nums; }
.gboard__empty { color: var(--gray); font-size: 15px; padding: 12px 4px; }
.gboard__tag { transform: rotate(-3deg); }

/* ---------- home: the play card ---------- */
.playcard {
  display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center;
  background: var(--ink); border: 1px solid var(--line); border-radius: 30px; padding: 34px 38px; position: relative; overflow: hidden;
  transition: transform .3s var(--ease), border-color .3s;
}
.playcard:hover { transform: translateY(-4px); border-color: rgba(59,123,255,.6); }
.playcard::after {
  content: "😎"; position: absolute; right: -10px; bottom: -70px; font-size: 240px; line-height: 1; opacity: .06;
  font-family: var(--font-emoji); pointer-events: none;
}
.playcard h2 { font-size: clamp(30px, 3.6vw, 46px); margin-bottom: 10px; }
.playcard p { color: var(--gray); font-size: 17px; max-width: 560px; }
.playcard p b { color: var(--white); }
.playcard__art { width: 300px; border-radius: 18px; border: 1px solid var(--line-strong); box-shadow: 0 20px 50px rgba(0,0,0,.4); position: relative; z-index: 1; }
.playcard__cta { margin-top: 22px; display: flex; gap: 12px; flex-wrap: wrap; position: relative; z-index: 1; }

/* ---------- the army (paper section) ---------- */
.section--paper { background: var(--paper); color: var(--black); }
.section--paper h2, .section--paper h3 { color: var(--black); }
.section--paper .section__sub { color: #4a4f5c; }
.section--paper .section__sub b { color: var(--black); }

.lobby {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 300px 1fr; gap: 36px; align-items: center;
  background: var(--black); color: var(--white); border-radius: 30px; padding: 30px;
  box-shadow: var(--shadow-lg);
}
.lobby::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(600px 300px at 90% 10%, rgba(30,94,224,.45), transparent 60%);
  pointer-events: none;
}
.lobby__img { position: relative; border-radius: 22px; overflow: hidden; aspect-ratio: 1; border: 4px solid var(--white); }
.lobby__img img, .lobby__img video { width: 100%; height: 100%; object-fit: cover; display: block; background: var(--ink); }
.lobby__body { position: relative; }
.lobby__label { font-size: 13px; font-weight: 600; letter-spacing: .1em; color: var(--blue-2); }
.lobby h3.lobby__title { font-size: clamp(30px, 3.4vw, 42px); margin: 8px 0 6px; color: var(--white); }
.lobby__members { font-family: var(--font-display); font-weight: 600; font-size: 22px; color: var(--gray); }
.lobby__count { font-size: clamp(44px, 5vw, 64px); font-weight: 700; color: var(--white); letter-spacing: -.03em; line-height: 1; margin-right: 6px; }
.lobby__desc { margin-top: 14px; color: var(--gray); font-size: 16.5px; max-width: 560px; }
.lobby__desc b { color: var(--white); }
.lobby__cta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 24px; }
.lobby__online { font-size: 14px; color: var(--gray); display: inline-flex; align-items: center; gap: 8px; }
.lobby__online:not(:empty)::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 4px rgba(61,220,132,.2); }
.lobby__stamp {
  position: absolute; right: 28px; top: 24px; font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: .12em;
  border: 3px solid rgba(255,255,255,.7); color: rgba(255,255,255,.85); padding: 6px 12px; border-radius: 10px; transform: rotate(6deg);
}

.ranks { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.rank { background: var(--white); border: 1px solid #e3e6ee; border-radius: var(--radius); padding: 26px 26px 24px; position: relative; }
.rank__num { font-family: var(--font-display); font-weight: 700; color: var(--blue); font-size: 15px; letter-spacing: .1em; }
.rank h3 { font-size: 22px; margin: 10px 0 8px; }
.rank p { color: #4a4f5c; font-size: 15.5px; }
.rank p b { color: var(--black); }

.forces__head { margin: 64px 0 18px; }
.forces__head h3 { font-size: 30px; }
.forces__head p { color: #4a4f5c; margin-top: 6px; font-size: 15px; }

/* every force visible at once: a grid, nothing hidden in a carousel */
.forces { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 16px; }
.force {
  background: var(--white); border: 1px solid #e3e6ee; border-radius: 22px; overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.force:hover { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(10,10,12,.16); }
.force__img { position: relative; aspect-ratio: 1; background: var(--ink); }
.force__img img { width: 100%; height: 100%; object-fit: cover; display: block; -webkit-user-drag: none; user-select: none; }
.force__noimg { display: grid; place-items: center; height: 100%; font-size: 80px; font-family: var(--font-emoji); }
.force__flag { position: absolute; left: 12px; bottom: 12px; font-family: var(--font-emoji); font-size: 22px; background: rgba(255,255,255,.92); border-radius: 10px; padding: 4px 8px; line-height: 1; display: grid; place-items: center; }
.force__flag--img { padding: 5px 6px; }
.force__flag img { width: 28px; height: 20px; object-fit: cover; border-radius: 3px; display: block; }
.force__short { position: absolute; right: 12px; top: 12px; font-family: var(--font-display); font-weight: 700; font-size: 12px; letter-spacing: .1em; background: rgba(10,10,12,.8); color: #fff; border-radius: 8px; padding: 5px 8px; }
.force__body { padding: 16px 18px 18px; }
.force__name { font-family: var(--font-display); font-weight: 700; font-size: 20px; line-height: 1.1; }
.force__members { color: #4a4f5c; font-size: 14.5px; margin-top: 6px; }
.force__members b { color: var(--black); font-family: var(--font-display); font-size: 17px; }
.force__links { display: flex; gap: 8px; margin-top: 14px; }
.force__tg {
  flex: 1; min-height: 44px; display: grid; place-items: center; text-align: center; font-family: var(--font-display); font-weight: 600; font-size: 14.5px;
  background: var(--blue); color: #fff; border-radius: 999px; padding: 10px 14px; transition: background .2s;
}
.force__tg:hover { background: var(--blue-2); }
.force__x { width: 44px; min-height: 44px; display: grid; place-items: center; border-radius: 999px; border: 2px solid var(--black); font-weight: 700; transition: background .2s, color .2s; }
.force__x:hover { background: var(--black); color: #fff; }

.army__totals {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 8px;
  background: var(--white); border: 1px solid #e3e6ee; border-radius: var(--radius); padding: 22px 26px;
}
.army__totals div { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.army__totals b { font-family: var(--font-display); font-weight: 700; font-size: 34px; letter-spacing: -.02em; line-height: 1; color: var(--blue); }
.army__totals span { color: #4a4f5c; font-size: 14.5px; }

/* falling emoji rain */
#rain { position: fixed; inset: 0; pointer-events: none; z-index: 60; overflow: hidden; }
.drop {
  position: absolute; top: -12vh; font-family: var(--font-emoji); line-height: 1;
  animation: fall var(--d, 3s) linear forwards; will-change: transform;
  filter: drop-shadow(0 6px 10px rgba(0,0,0,.3));
}
@keyframes fall {
  from { transform: translate3d(0, 0, 0) rotate(0deg); }
  to { transform: translate3d(var(--x, 0px), 125vh, 0) rotate(var(--r, 360deg)); }
}

/* ---------- footer ---------- */
.footer { padding: 40px 0 48px; border-top: 1px solid var(--line); background: var(--black); }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
/* pp ends his walk standing bottom right on desktop — keep the tagline out from under his feet */
html.pp-roams .footer__inner { padding-right: 280px; }
.footer__links { display: flex; gap: 18px; }
.footer__links a { font-weight: 600; font-size: 14.5px; color: var(--gray); }
.footer__links a:hover { color: var(--white); }
.footer__tag { font-family: var(--font-display); font-weight: 700; font-size: 20px; }
.footer__legal { font-size: 13px; color: var(--mute); width: 100%; }

/* ---------- the coming-soon curtain (curtain.js) ---------- */
html.curtain, html.curtain body { overflow: hidden; height: 100%; }
html.curtain body > *:not(.curtain):not(#rain) { display: none !important; }   /* the real site waits underneath */
html.curtain #rain { z-index: 1001; }
.curtain {
  position: fixed; inset: 0; z-index: 1000; overflow: hidden;
  background: var(--blue); color: var(--white);
  display: flex; align-items: center; justify-content: center;
}
.curtain__sky {
  position: absolute; inset: 0 0 var(--ground, 150px) 0;
  background:
    radial-gradient(900px 500px at 15% 10%, rgba(255,255,255,.18), transparent 60%),
    radial-gradient(700px 500px at 85% 90%, rgba(10,42,110,.55), transparent 60%),
    var(--blue);
}
.curtain__dots {
  position: absolute; inset: 0 0 var(--ground, 150px) 0;
  background-image: radial-gradient(rgba(255,255,255,.22) 1px, transparent 1.5px); background-size: 26px 26px;
  mask-image: linear-gradient(180deg, transparent, rgba(0,0,0,.7) 40%, transparent 95%);
  -webkit-mask-image: linear-gradient(180deg, transparent, rgba(0,0,0,.7) 40%, transparent 95%);
  opacity: .5;
}
.curtain__ground { position: absolute; left: 0; right: 0; bottom: 0; height: var(--ground, 150px); background: var(--black); }
.curtain__inner {
  position: relative; z-index: 2; width: min(var(--max), calc(100% - 48px)); text-align: center;
  padding-bottom: calc(var(--ground, 150px) + 140px);         /* keeps the links above pp's antenna as he walks past */
}
.curtain__brand { justify-content: center; margin-bottom: 18px; }
.curtain__kicker { font-family: var(--font-display); font-weight: 600; font-size: 15px; letter-spacing: .12em; opacity: .85; }
.curtain__title {
  font-size: clamp(110px, 18vw, 220px); line-height: .9; letter-spacing: -.04em; margin: 6px 0 .26em;   /* the p descenders need the room below */
  display: flex; align-items: flex-end; justify-content: center; gap: 12px; text-shadow: 0 20px 60px rgba(0,0,0,.25);
}
.curtain__pp { display: inline-block; }
.curtain__baseline { display: inline-block; width: 0; height: 0; vertical-align: baseline; }   /* marks the baseline, so pp can stand on the letters' ink */
.curtain__emoji { font-family: var(--font-emoji); font-size: .42em; line-height: 1; transform: translateY(-.25em); display: inline-block; animation: nod 3.2s ease-in-out infinite; }
.curtain__lead { font-size: clamp(17px, 1.6vw, 21px); color: rgba(255,255,255,.9); margin-top: 0; }
.curtain__lead b { color: var(--white); }
.curtain__links { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 30px; }
.clink {
  display: flex; align-items: center; gap: 12px; text-align: left;
  background: rgba(255,255,255,.96); color: var(--black); border-radius: 18px; padding: 10px 18px 10px 10px; min-height: 64px;
  box-shadow: 0 14px 40px rgba(0,0,0,.22); transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}
.clink:hover { transform: translateY(-3px); box-shadow: 0 22px 50px rgba(0,0,0,.3); }
.clink__icon { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; flex: 0 0 44px; }
.clink__icon svg { width: 22px; height: 22px; }
.clink__body b { display: block; font-family: var(--font-display); font-size: 18px; line-height: 1.1; }
.clink__body small { display: block; font-family: var(--font-mono); font-size: 12px; color: #4a4f5c; margin-top: 3px; }
.curtain__note { margin-top: 18px; font-size: 13.5px; color: rgba(255,255,255,.75); }
.curtain__walker {
  position: absolute; left: 0; bottom: calc(var(--ground, 150px) - 6px); z-index: 3;
  --pp-max: 160; width: 160px;                                /* curtain.js sets the real width: --pp-max, or less if he'd hit the text */
  transform-origin: 50% 100%; will-change: transform; outline: none;
  cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
}
.curtain__walker.is-held { cursor: grabbing; }
.curtain__walker.is-held .pp-body { filter: drop-shadow(0 34px 34px rgba(0,0,0,.3)); }
.curtain__walker .pp-char { transform-origin: 50% 50%; }     /* he spins about his middle when thrown */
.curtain__walker .pp-body { filter: drop-shadow(0 18px 24px rgba(0,0,0,.4)); transition: filter .25s; }
.curtain__walker img { pointer-events: none; }               /* the whole box is the grab handle */
.curtain__walker:focus-visible .pp { outline: 4px solid rgba(255,255,255,.7); outline-offset: 8px; border-radius: 40px; }
.curtain__bubble { left: 70%; top: 8%; font-size: 18px; padding: 10px 14px; border-radius: 16px 16px 16px 6px; white-space: nowrap; }
.curtain__bubble[data-side="left"] { left: auto; right: 70%; border-radius: 16px 16px 6px 16px; transform-origin: right bottom; }
.curtain__legal { position: absolute; left: 0; right: 0; bottom: 18px; z-index: 2; text-align: center; font-size: 12.5px; color: var(--mute); }
@media (max-width: 900px) {
  .curtain { --ground: 110px; align-items: flex-start; }
  .curtain__inner { padding: 36px 0 0; }
  .curtain__brand { margin-bottom: 10px; }
  .curtain__brand .brand__mark { width: 34px; height: 34px; }
  .curtain__brand .brand__text { font-size: 22px; }
  .curtain__kicker { font-size: 13px; }
  .curtain__title { font-size: clamp(84px, 24vw, 120px); }
  .curtain__lead { margin-top: 10px; font-size: 16px; }
  .curtain__links { display: grid; grid-template-columns: 1fr; gap: 7px; max-width: 360px; margin: 14px auto 0; }
  .clink { min-height: 50px; padding: 6px 14px 6px 8px; border-radius: 14px; }
  .clink__icon { width: 38px; height: 38px; flex-basis: 38px; border-radius: 11px; }
  .clink__body b { font-size: 16px; }
  .clink__body small { font-size: 11.5px; }
  .curtain__note { margin-top: 10px; font-size: 12.5px; }
  .curtain__walker { --pp-max: 96; }
  .curtain__bubble { font-size: 14px; padding: 7px 11px; left: 62%; top: 22%; }
  .curtain__bubble[data-side="left"] { right: 62%; }
  .curtain__legal { bottom: 10px; font-size: 11.5px; }
}
@media (max-width: 900px) and (max-height: 700px) {  /* short phones: everything a notch tighter so pp still has a lane */
  .curtain { --ground: 84px; }
  .curtain__inner { padding-top: 22px; }
  .curtain__kicker { display: none; }
  .curtain__title { font-size: 72px; margin-top: 0; }
  .curtain__lead { font-size: 15px; margin-top: 6px; }
  .curtain__links { margin-top: 10px; gap: 6px; }
  .clink { min-height: 44px; padding: 4px 12px 4px 6px; }
  .clink__icon { width: 34px; height: 34px; flex-basis: 34px; }
  .clink__body small { margin-top: 1px; }
  .curtain__note { margin-top: 8px; font-size: 12px; }
  .curtain__legal { bottom: 6px; }
}
@media (max-height: 800px) and (min-width: 901px) {   /* laptops: tighter type, pp a touch smaller */
  .curtain { align-items: safe center; }
  .curtain__brand { margin-bottom: 8px; }
  .curtain__title { font-size: 104px; }
  .curtain__lead { margin-top: 8px; }
  .curtain__links { margin-top: 16px; }
  .curtain__walker { --pp-max: 130; }
}

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); z-index: 70;
  background: var(--white); color: var(--black); font-family: var(--font-display); font-weight: 700; font-size: 18px;
  padding: 12px 20px; border-radius: 999px; box-shadow: var(--shadow-lg);
  opacity: 0; transition: opacity .25s var(--ease), transform .3s var(--ease); pointer-events: none;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- responsive ---------- */
@media (max-width: 1060px) {
  .ladder { grid-template-columns: repeat(3, 1fr); }
  .ladder__row--1 { grid-column: span 3; }
  .board--full .board__head, .board--full .board__row { grid-template-columns: 44px minmax(0, 1fr) 120px 96px; }
  .shuffle__grid { grid-template-columns: 1fr; }
  .shuffle__head { flex-direction: column; align-items: flex-start; }
  .shuffle__logo img { width: 180px; }
  .rules { grid-template-columns: 1fr; }
  .rule { padding: 22px 22px 20px; }
  .lobby { grid-template-columns: 240px 1fr; gap: 28px; }
  .forces { grid-template-columns: repeat(3, 1fr); }
  .army__totals { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .lbcard { grid-template-columns: 1fr; gap: 32px; padding: 36px; }
  .lbcard__art { max-width: 520px; }
}

@media (max-width: 900px) {
  .nav__links {
    position: fixed; inset: 70px 16px auto 16px; flex-direction: column; align-items: stretch; gap: 6px;
    background: var(--black); border: 1px solid var(--line-strong); border-radius: 20px; padding: 16px;
    box-shadow: 0 30px 80px rgba(0,0,0,.6);
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: .25s var(--ease);
  }
  .nav__links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav__links a:not(.btn) { padding: 12px 14px; border-radius: 12px; }
  .nav__links a:not(.btn)::after { display: none; }
  .nav__links a:not(.btn):hover { background: rgba(255,255,255,.06); }
  .nav__links .btn { margin-top: 8px; }
  .nav__burger { display: block; }

  /* phone hero: title next to a smaller pp, then the lead, then the links — links land within the first screen */
  .hero { padding-top: 92px; display: block; min-height: 0; }
  .hero__sky { height: calc(100% - 120px); }
  .hero__dots { inset: 0 0 120px 0; }
  .hero__inner {
    grid-template-columns: minmax(0, 1fr) 38%;
    grid-template-areas: "head art" "lead lead" "links links";
    column-gap: 10px;
  }
  .hero__title { font-size: clamp(78px, 22vw, 120px); margin-top: 14px; }
  .hero__lead { margin-top: 14px; font-size: 16.5px; }
  .chip__more { display: none; }
  .links { margin-top: 20px; padding-bottom: 40px; gap: 8px; }
  .link {
    grid-template-columns: 46px minmax(0, 1fr) 18px; grid-template-areas: "icon body arrow" "icon meta arrow";
    row-gap: 2px; column-gap: 12px; min-height: 74px; padding: 12px 14px 12px 12px;
  }
  .link--tg { min-height: 80px; }
  .link__icon { width: 46px; height: 46px; border-radius: 13px; }
  .link__icon svg { width: 23px; height: 23px; }
  .link__name { font-size: 18px; }
  .link__handle { font-size: 12.5px; white-space: normal; word-break: break-all; }
  .link__meta { text-align: left; font-size: 13px; margin-top: 2px; }
  .hero__art { align-self: end; }
  .pp-stage { width: 100%; padding-bottom: 0; }
  .hero__hint, .float-chip { display: none; }
  .pp-bubble {
    left: 40%; top: -6%; font-size: 15px; padding: 9px 12px;
    border-radius: 16px 16px 16px 6px; transform-origin: left bottom;
  }

  .section { padding: 84px 0; }
  .section--tight { padding: 72px 0; }
  .lb { padding-top: 72px; }

  .gamehero { padding: 96px 0 28px; }
  .gamehero__head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .gamehud { align-self: stretch; justify-content: space-between; }
  .gamehud div { align-items: flex-start; }
  .gamehud b { font-size: 28px; }
  .gstage { border-radius: 18px; }
  .gstage__hint { display: block; }
  .goverlay__card { padding: 16px 18px; }
  .gform { flex-direction: column; }
  .playcard { grid-template-columns: 1fr; padding: 26px 22px; }
  .playcard__art { width: 100%; max-width: 420px; }

  .racehero { padding: 110px 0 48px; }
  .racehero__inner { grid-template-columns: 1fr; gap: 28px; }
  .racehero__art { order: -1; justify-content: flex-start; }
  .racehero__art .pp-stage { width: 150px; }
  .racehero__title { font-size: clamp(44px, 12vw, 72px); }
  .lb__facts--big { grid-template-columns: 1fr 1fr; }
  .lb__facts--big b { font-size: 26px; }
  .race-board { padding-top: 56px; }
  .section__head--row { flex-direction: column; align-items: flex-start; }
  .board--full { padding: 12px 10px 12px; }
  .board--full .board__head, .board--full .board__row { grid-template-columns: 32px minmax(0, 1fr) 90px 70px; gap: 8px; }
  .board--full .board__row { font-size: 14px; padding: 10px 12px; }
  .board--full .board__row--1 { font-size: 16px; padding: 14px 12px; }
  .board--full .board__name { font-size: 12.5px; }
  .ladder { grid-template-columns: 1fr 1fr; }
  .ladder__row--1 { grid-column: span 2; }
  .ladder__row--1 .ladder__prize { font-size: 38px; }
  .ladder__prize { font-size: 22px; }
  .rules-list li { padding: 14px 14px 14px 50px; font-size: 14.5px; }
  .rules-list li::before { left: 14px; top: 16px; }
  .scard { padding: 22px 20px 20px; }
  .lbcard { padding: 28px; border-radius: 26px; }
  .lbcard::after { font-size: 220px; right: -40px; bottom: -60px; }
  .lbcard__stamp { right: 0; top: -26px; font-size: 18px; }
  .lbcard__art { padding-top: 26px; }
  .board__head, .board__row { grid-template-columns: 30px minmax(0, 1fr) 84px 58px; gap: 8px; }
  .board__row { padding: 10px 12px; font-size: 14px; }
  .board__row--1 { padding: 14px 12px; font-size: 15px; }
  .board__name { font-size: 12.5px; }
  .lb__facts { grid-template-columns: 1fr 1fr; gap: 12px 18px; }
  .lobby { grid-template-columns: 1fr; padding: 22px; }
  .lobby__img { max-width: 260px; }
  .lobby__stamp { display: none; }
  .ranks { grid-template-columns: 1fr; }
  .forces__head { margin-top: 48px; }
  .forces { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .force__body { padding: 12px 12px 14px; }
  .force__name { font-size: 17px; }
  .force__members { font-size: 13.5px; }
  .force__links { flex-direction: column; gap: 8px; }
  .force__tg { font-size: 14px; padding: 10px 12px; }
  .force__x { width: 100%; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap, .hero__inner { width: calc(100% - 32px); }
  .section { padding: 72px 0; }
  .army__totals { grid-template-columns: 1fr 1fr; padding: 18px; }
  .army__totals b { font-size: 28px; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
  .marquee__track { gap: 36px; }
  .marquee__track span { font-size: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .pp-float, .pp-char, .float-chip, .hero__emoji { animation: none !important; }
}
