/* ==========================================================
   RHEATARD: goofy army-surplus theme
   Palette pulled from his outfit: army jacket olive, camo helmet,
   striped-shirt red and white, fart-cloud lime. The alley pink
   from the logo only shows up in the art itself.
   ========================================================== */

:root {
  --army: #3E4A1E;
  --army-deep: #232A10;
  --olive: #6B7A2A;
  --olive-light: #A3B25A;
  --khaki: #574F2E;
  --red: #E3261B;
  --red-deep: #A8170E;
  --white: #FDF9F6;
  --cream: #F4EEDC;
  --steel: #D9DCD2;
  --lime: #DBEC3C;
  --pink: #E62C83;
  --lee-pink: #FD3DAD;
  --ink: #16180C;

  --outline: 4px solid var(--ink);
  --shadow: 6px 6px 0 var(--ink);
  --shadow-red: 8px 8px 0 var(--red);
  --radius: 6px;

  --font-drip: "Rubik Wet Paint", "Impact", sans-serif;
  --font-stencil: "Black Ops One", "Stencil", "Impact", sans-serif;
  --font-marker: "Permanent Marker", "Comic Sans MS", cursive;
  --font-body: "Comic Neue", "Comic Sans MS", "Chalkboard SE", system-ui, sans-serif;

  --stripes-h: repeating-linear-gradient(180deg, var(--red) 0 26px, var(--white) 26px 52px);
  --stripes-v: repeating-linear-gradient(90deg, var(--red) 0 22px, var(--white) 22px 44px);

  --gutter: clamp(16px, 4vw, 48px);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 100px; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--army);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
code { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; }

h1, h2, h3 {
  font-family: var(--font-stencil);
  font-weight: 400;
  letter-spacing: .02em;
  line-height: 1.05;
  margin: 0;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Textures ---------- */
.camo {
  background-color: #4B5A24;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320'%3E%3Crect width='320' height='320' fill='%234B5A24'/%3E%3Cpath fill='%232A3313' d='M0 40C30 20 60 50 95 35S150 55 135 85 80 100 55 120 0 120 0 95Z'/%3E%3Cpath fill='%236B7A2A' d='M150 0C190 10 210 40 250 30S320 45 320 70 260 90 235 115 175 120 165 95 120 60 130 30 145 5 150 0Z'/%3E%3Cpath fill='%236A5A35' d='M40 160C70 140 110 165 140 150S200 160 190 195 140 215 115 240 50 255 40 225 15 180 40 160Z'/%3E%3Cpath fill='%232A3313' d='M200 170C230 150 270 175 300 165S320 200 320 230 260 245 240 270 180 285 185 255 175 190 200 170Z'/%3E%3Cpath fill='%236B7A2A' d='M0 260C25 240 60 265 85 255S135 270 120 300 70 320 40 320 0 300 0 280Z'/%3E%3Cpath fill='%232A3313' d='M150 280C170 265 200 280 215 300S190 320 160 320 135 295 150 280Z'/%3E%3Cpath fill='%236A5A35' d='M250 60C265 50 290 60 285 80S255 95 245 85 238 68 250 60Z'/%3E%3Cpath fill='%236B7A2A' d='M60 70C75 62 95 72 90 88S65 98 58 90 50 76 60 70Z'/%3E%3C/svg%3E");
  background-size: 320px 320px;
}
.canvas {
  background-color: var(--army-deep);
  background-image:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, .12) 0 1px, transparent 1px 4px);
}

/* Army patch: solid card with a stitched seam inside the edge */
.patch {
  background: var(--white);
  border: var(--outline);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  outline: 2px dashed rgba(22, 24, 12, .35);
  outline-offset: -11px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45em;
  font-family: var(--font-stencil);
  font-size: 1.15rem;
  letter-spacing: .05em;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  padding: .8em 1.15em .75em;
  border: var(--outline);
  border-radius: 4px;
  box-shadow: 4px 4px 0 var(--ink);
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease;
  white-space: nowrap;
}
.btn:hover { transform: translate(-2px, -2px) rotate(-1.5deg); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn:focus-visible { outline: 3px dashed var(--lime); outline-offset: 4px; }

.btn-red { background: var(--red); color: var(--white); }
.btn-white { background: var(--white); }
.btn-olive { background: var(--olive); color: var(--white); }
.btn-lime { background: var(--lime); }
.btn-sm { font-size: .92rem; padding: .7em .95em .65em; box-shadow: 3px 3px 0 var(--ink); }
.btn-lg { font-size: clamp(1.05rem, 3vw, 1.45rem); padding: .9em 1.4em .85em; }
.btn-icon { padding: .55em .7em; }
.x-icon { width: 1.05em; height: 1.05em; }

/* ---------- Ticker ---------- */
.ticker {
  background: var(--red);
  color: var(--white);
  overflow: hidden;
  border-bottom: var(--outline);
  font-family: var(--font-stencil);
  font-size: .95rem;
  letter-spacing: .08em;
}
.ticker-track {
  display: flex;
  gap: 1.1em;
  width: max-content;
  padding: .6em 0 .5em;
  animation: ticker 32s linear infinite;
}
.ticker .dot { color: var(--ink); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px var(--gutter);
  background: var(--white);
  border-bottom: var(--outline);
}
/* Striped-shirt trim */
.site-header::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: 100%;
  height: 12px;
  background: var(--stripes-v);
  border-bottom: var(--outline);
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.logo-head {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: var(--outline);
  background: var(--pink) url("../images/rheatard.jpg") 74% 11% / 260% no-repeat;
  box-shadow: 3px 3px 0 var(--red);
  transition: transform .2s ease;
}
.logo:hover .logo-head { transform: rotate(-14deg) scale(1.08); }

/* Ransom-note letters, because he spelled it like this */
.ransom { display: inline-flex; align-items: center; }
.ransom > span {
  display: inline-block;
  font-family: var(--font-stencil);
  font-size: 1.4rem;
  line-height: 1;
  padding: .14em .12em .06em;
  margin: 0 1px;
  border: 2px solid var(--ink);
  background: var(--white);
}
.ransom > span:nth-child(4n+1) { background: var(--red); color: var(--white); transform: rotate(-6deg); }
.ransom > span:nth-child(4n+2) { background: var(--olive); color: var(--white); transform: rotate(4deg) translateY(2px); }
.ransom > span:nth-child(4n+3) { background: var(--white); transform: rotate(-3deg) translateY(-2px); font-size: 1.15rem; }
.ransom > span:nth-child(4n)   { background: var(--army-deep); color: var(--lime); transform: rotate(7deg); }
.logo:hover .ransom > span { animation: jiggle .4s ease-in-out infinite alternate; }

.nav { display: flex; gap: 24px; }
.nav a {
  font-family: var(--font-stencil);
  font-size: 1.02rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  text-decoration: none;
  position: relative;
}
.nav a::after {
  content: "";
  position: absolute;
  left: -4px; right: -4px; bottom: -5px;
  height: 5px;
  background: var(--red);
  transform: scaleX(0) rotate(-2deg);
  transform-origin: left;
  transition: transform .2s ease;
}
.nav a:hover::after { transform: scaleX(1) rotate(-2deg); }

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

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  padding: clamp(56px, 8vw, 110px) var(--gutter) clamp(56px, 8vw, 110px);
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

/* Rubber stamp label */
.kicker {
  display: inline-block;
  margin: 0 0 18px;
  font-family: var(--font-stencil);
  font-size: .95rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--red);
  background: var(--white);
  border: 3px solid var(--red);
  outline: 2px solid var(--white);
  padding: .4em .8em .3em;
  border-radius: 4px;
  transform: rotate(-3deg);
}
.kicker-dark { color: var(--white); background: var(--red); border-color: var(--ink); outline: 0; }

.title {
  font-family: var(--font-drip);
  font-size: clamp(3.2rem, 11vw, 7.6rem);
  line-height: .9;
  color: var(--white);
  -webkit-text-stroke: 3px var(--ink);
  paint-order: stroke fill;
  text-shadow: 7px 7px 0 var(--red);
  margin: 0 0 8px;
  letter-spacing: 0;
}
.wobble { display: inline-flex; flex-wrap: nowrap; }
.wobble > span {
  display: inline-block;
  animation: wobble 2.4s ease-in-out infinite;
}
.wobble > span:nth-child(odd) { transform: rotate(-5deg); }
.wobble > span:nth-child(even) { transform: rotate(4deg) translateY(.06em); }
.wobble > span:nth-child(3),
.wobble > span:nth-child(5),
.wobble > span:nth-child(6),
.wobble > span:nth-child(8) { font-size: .8em; color: var(--lime); }
.wobble > span:nth-child(1) { animation-delay: 0s; }
.wobble > span:nth-child(2) { animation-delay: .15s; }
.wobble > span:nth-child(3) { animation-delay: .3s; }
.wobble > span:nth-child(4) { animation-delay: .45s; }
.wobble > span:nth-child(5) { animation-delay: .6s; }
.wobble > span:nth-child(6) { animation-delay: .75s; }
.wobble > span:nth-child(7) { animation-delay: .9s; }
.wobble > span:nth-child(8) { animation-delay: 1.05s; }
@keyframes wobble {
  0%, 100% { translate: 0 0; rotate: 0deg; }
  50% { translate: 0 -.06em; rotate: -4deg; }
}
@keyframes jiggle {
  from { translate: 0 -1px; }
  to { translate: 0 2px; }
}

.slogan {
  font-family: var(--font-marker);
  font-size: clamp(1.6rem, 3.6vw, 2.4rem);
  color: var(--lime);
  text-shadow: 3px 3px 0 var(--ink);
  margin: 0 0 14px;
  transform: rotate(-2deg);
  transform-origin: left;
}
.lede {
  font-size: 1.22rem;
  max-width: 34em;
  margin: 0 0 26px;
  color: var(--white);
  text-shadow: 0 2px 0 rgba(22, 24, 12, .6);
}
.lede strong { background: var(--red); color: var(--white); padding: 0 .25em; border-radius: 3px; text-shadow: none; }

/* Contract box */
.ca-box {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  max-width: 560px;
  margin-bottom: 26px;
  padding: 14px 14px 14px 18px;
  color: var(--ink);
}
.ca-label {
  font-family: var(--font-stencil);
  font-size: .85rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: var(--olive);
  color: var(--white);
  padding: .4em .6em .3em;
  border-radius: 3px;
}
.ca-value {
  flex: 1 1 200px;
  min-width: 0;
  font-size: .98rem;
  overflow-wrap: anywhere;
}
.ca-wide { margin: 34px auto 0; max-width: 680px; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 24px; }

/* The brain falls out */
.brain-btn.brain-gone {
  animation: brain-fall 1.4s cubic-bezier(.5, -0.4, .8, .4) forwards;
  pointer-events: none;
}
@keyframes brain-fall {
  0% { transform: none; }
  20% { transform: translateY(-30px) rotate(-12deg); }
  100% { transform: translateY(110vh) rotate(540deg); opacity: 0; }
}
.brain-btn.brain-back { animation: brain-back .5s ease-out; }
@keyframes brain-back {
  from { transform: scale(0) rotate(-180deg); }
  to { transform: none; }
}

.safety-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  max-width: 560px;
  margin: 0;
  font-size: .95rem;
  color: var(--ink);
  background: var(--cream);
  border: 3px solid var(--ink);
  border-left: 10px solid var(--olive);
  border-radius: 4px;
  padding: 10px 14px;
}
.shield-icon { width: 22px; height: 22px; flex: 0 0 auto; color: var(--olive); margin-top: 1px; }

/* Hero art */
.hero-art { position: relative; display: flex; flex-direction: column; align-items: center; }
.sticker {
  position: relative;
  width: min(100%, 480px);
  border: 8px solid var(--white);
  outline: 4px solid var(--ink);
  border-radius: 6px;
  box-shadow: 14px 14px 0 var(--red), 14px 14px 0 4px var(--ink);
  transform: rotate(3deg);
  cursor: pointer;
  transition: transform .2s ease;
  background: var(--pink);
}
.sticker img { border-radius: 2px; }
.sticker:hover { transform: rotate(1deg) scale(1.02); }
.sticker:focus-visible { outline: 4px dashed var(--lime); outline-offset: 6px; }
.sticker.shake { animation: shake .45s ease; }
@keyframes shake {
  0%, 100% { transform: rotate(3deg); }
  20% { transform: rotate(-2deg) translateX(-8px); }
  40% { transform: rotate(6deg) translateX(8px); }
  60% { transform: rotate(0deg) translateX(-5px); }
  80% { transform: rotate(5deg) translateX(4px); }
}
/* Strips of olive duct tape */
.tape {
  position: absolute;
  width: 110px;
  height: 30px;
  background: rgba(107, 122, 42, .92);
  border-left: 3px dotted rgba(22, 24, 12, .35);
  border-right: 3px dotted rgba(22, 24, 12, .35);
  z-index: 2;
}
.tape-tl { top: -16px; left: -28px; transform: rotate(-38deg); }
.tape-br { bottom: -14px; right: -26px; transform: rotate(-36deg); }

.burst {
  position: absolute;
  left: -26px;
  top: 52%;
  font-family: var(--font-stencil);
  font-size: clamp(1.2rem, 2.6vw, 1.7rem);
  letter-spacing: .04em;
  background: var(--lime);
  border: var(--outline);
  padding: .4em .6em .3em;
  border-radius: 4px;
  box-shadow: 4px 4px 0 var(--ink);
  transform: rotate(-12deg);
  z-index: 3;
  color: var(--ink);
}

.graffiti-tag {
  position: absolute;
  right: 6px;
  top: -18px;
  z-index: 4;
  font-family: var(--font-marker);
  font-size: 1.25rem;
  color: var(--white);
  background: none;
  border: 0;
  padding: 4px 6px;
  transform: rotate(-14deg);
  text-shadow: 2px 2px 0 var(--ink);
  cursor: pointer;
  opacity: .92;
  transition: transform .2s ease, opacity .2s ease;
}
.graffiti-tag .heart { color: var(--red); }
.graffiti-tag:hover,
.graffiti-tag:focus-visible { opacity: 1; transform: rotate(-14deg) scale(1.2); }
.graffiti-tag:focus-visible { outline: 3px dashed var(--lime); }

.poke-hint {
  font-family: var(--font-marker);
  font-size: 1.15rem;
  margin: 28px 0 0;
  color: var(--lime);
  transform: rotate(-2deg);
}

/* Floating junk */
.floater { position: absolute; pointer-events: none; opacity: .95; }
.floater-banana { width: 110px; height: 74px; left: 3%; bottom: 7%; animation: bob 6s ease-in-out infinite; }
.floater-tp { width: 120px; height: 90px; right: 3%; bottom: 6%; animation: bob 7s ease-in-out infinite reverse; }
.floater-puff { width: 140px; height: 105px; left: 42%; top: 6%; opacity: .9; animation: bob 9s ease-in-out infinite; }
@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(-6deg); }
  50% { transform: translateY(-16px) rotate(6deg); }
}

/* ---------- Live numbers on the striped shirt ---------- */
.live {
  background: var(--stripes-h);
  padding: 44px var(--gutter) 34px;
  border-top: var(--outline);
  border-bottom: var(--outline);
}
.notes {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.note {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 20px 16px;
  border: var(--outline);
  border-radius: 4px;
  box-shadow: 5px 5px 0 var(--ink);
}
.note:nth-child(1) { transform: rotate(-2deg); }
.note:nth-child(2) { transform: rotate(1.5deg); }
.note:nth-child(3) { transform: rotate(-1deg); }
.note:nth-child(4) { transform: rotate(2.5deg); }
.note-white { background: var(--white); }
.note-lime { background: var(--lime); }
.note-olive { background: var(--olive); color: var(--white); }
.note-army { background: var(--army-deep); color: var(--white); }
.note-label {
  font-family: var(--font-stencil);
  font-size: .82rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.note-value {
  font-family: var(--font-stencil);
  font-size: clamp(1.35rem, 2.5vw, 1.9rem);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.note-value sub { font-size: .55em; vertical-align: -.15em; }
.note-value.up { color: #2E6B0A; }
.note-value.down { color: var(--red-deep); }
.note-army .note-value.up { color: var(--lime); }
.note-army .note-value.down { color: #FF7A70; }

.live-status,
.supply-status {
  display: block;
  width: fit-content;
  margin: 26px auto 0;
  padding: 6px 14px;
  font-size: .95rem;
  color: var(--white);
  background: var(--ink);
  border-radius: 4px;
}
.live-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #8B8F7E;
  margin-right: 4px;
}
.is-live .live-dot { background: var(--lime); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(219, 236, 60, .7); }
  50% { box-shadow: 0 0 0 7px rgba(219, 236, 60, 0); }
}

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 120px) var(--gutter); }
.section-head {
  max-width: 760px;
  margin: 0 auto clamp(36px, 5vw, 56px);
  text-align: center;
}
.section-head h2 {
  font-size: clamp(2.3rem, 6.4vw, 4.2rem);
  color: var(--white);
  -webkit-text-stroke: 2px var(--ink);
  paint-order: stroke fill;
  text-shadow: 5px 5px 0 var(--red);
  transform: rotate(-1.5deg);
  text-transform: uppercase;
}
.section-head p {
  font-family: var(--font-marker);
  font-size: 1.3rem;
  margin: 14px 0 0;
}
.section-head-light p { color: var(--lime); }

/* Crossed-out spelling with a red-pen fix */
.oops {
  position: relative;
  display: inline-block;
  text-decoration: line-through;
  text-decoration-color: var(--red);
  text-decoration-thickness: .12em;
}
.fix {
  position: absolute;
  left: 50%;
  top: -.8em;
  transform: translateX(-50%) rotate(-8deg);
  font-family: var(--font-marker);
  font-size: .42em;
  color: var(--red);
  -webkit-text-stroke: 0;
  text-shadow: none;
  white-space: nowrap;
  text-decoration: none;
  text-transform: none;
  letter-spacing: 0;
}

/* ---------- Lore ---------- */
.lore {
  background-color: var(--cream);
  background-image: radial-gradient(rgba(107, 122, 42, .22) 2px, transparent 2.4px);
  background-size: 18px 18px;
}
.lore .section-head h2 { color: var(--olive); text-shadow: 5px 5px 0 var(--ink); }
.lore .section-head h2 .fix { color: var(--red); }
.lore-grid {
  max-width: 1150px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
.lore-story { display: grid; gap: 22px; }
.paper {
  margin: 0;
  background: var(--white);
  border: 3px solid var(--ink);
  border-radius: 4px;
  padding: 20px 22px;
  box-shadow: 6px 6px 0 var(--olive);
  font-size: 1.12rem;
}
.paper:nth-child(1) { transform: rotate(-1.5deg); }
.paper:nth-child(2) { transform: rotate(1deg); margin-left: 18px; box-shadow: 6px 6px 0 var(--red); }
.paper:nth-child(3) { transform: rotate(-.5deg); background: var(--lime); box-shadow: 6px 6px 0 var(--ink); }

.report {
  background-color: var(--white);
  background-image:
    linear-gradient(90deg, transparent 54px, rgba(227, 38, 27, .5) 54px 56px, transparent 56px),
    linear-gradient(rgba(62, 74, 30, .16) 1px, transparent 1px);
  background-size: 100% 100%, 100% 34px;
  border: var(--outline);
  border-radius: 4px;
  box-shadow: 10px 10px 0 var(--army);
  padding: 26px 24px 22px 70px;
  transform: rotate(1deg);
}
.report-head { margin-bottom: 14px; }
.report-school {
  font-family: var(--font-stencil);
  font-size: .85rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--olive);
}
.report-head h3 { font-size: clamp(1.9rem, 4vw, 2.5rem); text-transform: uppercase; }
.report-student { font-size: 1.05rem; }
.marker { font-family: var(--font-marker); color: var(--red-deep); font-size: 1.15em; }

.report-table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.report-table th,
.report-table td {
  text-align: left;
  padding: 8px 8px 6px 0;
  border-bottom: 2px dashed rgba(22, 24, 12, .25);
  vertical-align: middle;
}
.report-table thead th {
  font-family: var(--font-stencil);
  font-weight: 400;
  font-size: .82rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.report-table tbody th { font-weight: 700; white-space: nowrap; }
.grade {
  font-family: var(--font-marker);
  font-size: 1.7rem;
  line-height: 1;
  text-align: center !important;
  width: 3.4em;
}
.grade.bad { color: var(--red); transform: rotate(-8deg); }
.grade.good { color: var(--olive); transform: rotate(6deg); }
.report-sign { margin: 18px 0 0; font-size: .98rem; }
.report-aside { font-size: .85rem; opacity: .7; }

.egg-link {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  text-align: left;
  cursor: pointer;
  text-decoration: underline wavy rgba(227, 38, 27, .5);
  text-underline-offset: 4px;
}
.egg-link:hover { color: var(--red); }
.egg-link:focus-visible { outline: 3px dashed var(--ink); outline-offset: 3px; }

/* ---------- Tokenomics ---------- */
.tokenomics { border-top: var(--outline); border-bottom: var(--outline); }
.stats {
  max-width: 1050px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  padding: 26px 20px 22px;
}
.stat:nth-child(odd) { transform: rotate(-1.2deg); }
.stat:nth-child(even) { transform: rotate(1.2deg); }
.stat:nth-child(3) {
  background: var(--red);
  color: var(--white);
  outline-color: rgba(253, 249, 246, .55);
}
.stat:nth-child(3) .stat-label { color: var(--white); }
.stat-label {
  font-family: var(--font-stencil);
  font-size: .82rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--olive);
}
.stat-value {
  font-family: var(--font-stencil);
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.stat-value-sm { font-size: clamp(1.2rem, 2.4vw, 1.55rem); }
.stat-sub { font-size: .9rem; }

/* ---------- How to buy: dog tags ---------- */
.how {
  background-color: var(--red);
  background-image: repeating-linear-gradient(180deg, rgba(253, 249, 246, .09) 0 26px, transparent 26px 52px);
}
.how .section-head h2 { text-shadow: 5px 5px 0 var(--ink); }
.how .section-head h2 .fix { color: var(--lime); }
.how .section-head h2 .oops { text-decoration-color: var(--ink); }
.how .section-head p { color: var(--white); }
.steps {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 1150px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}
.step {
  position: relative;
  padding: 56px 22px 24px;
  background: linear-gradient(135deg, #F1F3EC 0%, var(--steel) 45%, #BFC3B6 100%);
  border: var(--outline);
  border-radius: 30px;
  box-shadow: var(--shadow);
}
/* The hole the chain goes through */
.step::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 50%;
  width: 22px;
  height: 22px;
  margin-left: -11px;
  border-radius: 50%;
  background: var(--red);
  border: 3px solid var(--ink);
  box-shadow: inset 2px 2px 0 rgba(0, 0, 0, .25);
}
.step:nth-child(odd) { transform: rotate(-2deg); }
.step:nth-child(even) { transform: rotate(2deg); margin-top: 22px; }
.step h3 { font-size: 1.3rem; margin-bottom: 8px; text-transform: uppercase; }
.step p { margin: 0; font-size: 1rem; }
.step-no {
  position: absolute;
  top: 16px;
  left: 22px;
  font-family: var(--font-stencil);
  font-size: 1rem;
  letter-spacing: .08em;
  color: var(--red-deep);
}
.step-no::before { content: "NO. "; }
.how-cta { text-align: center; margin-top: 52px; }

/* ---------- Footer ---------- */
.site-footer {
  color: var(--white);
  padding: 56px var(--gutter) 36px;
  text-align: center;
}
.footer-tag {
  font-family: var(--font-drip);
  font-size: clamp(2.2rem, 8vw, 5rem);
  line-height: 1;
  color: var(--red);
  -webkit-text-stroke: 2px var(--ink);
  paint-order: stroke fill;
  margin: 0 0 30px;
  transform: rotate(-3deg);
}
.socials { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 36px; }
.safety-box {
  max-width: 760px;
  margin: 0 auto 30px;
  text-align: left;
  color: var(--ink);
  padding: 24px 28px;
  box-shadow: var(--shadow-red);
}
.safety-box h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.35rem;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.safety-box h2 .shield-icon { width: 28px; height: 28px; }
.safety-box ul { margin: 0; padding-left: 1.2em; font-size: 1rem; }
.safety-box li + li { margin-top: 6px; }
.safety-box code { overflow-wrap: anywhere; background: var(--lime); padding: 0 .3em; border-radius: 3px; }
.disclaimer { max-width: 760px; margin: 0 auto 16px; font-size: .85rem; line-height: 1.55; color: #C9CCBC; }
.copyright { margin: 0; font-family: var(--font-marker); color: var(--lime); }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 200;
  transform: translate(-50%, calc(100% + 40px)) rotate(-2deg);
  visibility: hidden;
  background: var(--army-deep);
  color: var(--white);
  border: var(--outline);
  border-radius: 4px;
  box-shadow: 6px 6px 0 var(--red);
  padding: 13px 20px 11px;
  font-family: var(--font-stencil);
  font-size: 1rem;
  letter-spacing: .04em;
  max-width: calc(100vw - 32px);
  text-align: center;
  transition: transform .3s cubic-bezier(.3, 1.6, .5, 1), visibility .3s;
  pointer-events: none;
}
.toast.show { transform: translate(-50%, 0) rotate(-2deg); visibility: visible; }

/* ---------- Fart FX ---------- */
.fx-puff {
  position: fixed;
  width: 110px;
  height: 82px;
  pointer-events: none;
  z-index: 150;
  animation: puff 1.1s ease-out forwards;
}
.fx-puff svg { width: 100%; height: 100%; }
@keyframes puff {
  0% { transform: translate(0, 0) scale(.2); opacity: 1; }
  70% { opacity: .95; }
  100% { transform: translate(var(--dx), var(--dy)) scale(var(--s)); opacity: 0; }
}
.fx-word {
  position: fixed;
  z-index: 151;
  pointer-events: none;
  font-family: var(--font-drip);
  font-size: 2.6rem;
  color: var(--lime);
  -webkit-text-stroke: 2px var(--ink);
  paint-order: stroke fill;
  text-shadow: 3px 3px 0 var(--ink);
  animation: word 1s ease-out forwards;
}
@keyframes word {
  0% { transform: translate(-50%, -50%) scale(.3) rotate(-15deg); opacity: 0; }
  20% { transform: translate(-50%, -80%) scale(1.15) rotate(-8deg); opacity: 1; }
  100% { transform: translate(-50%, -180%) scale(1) rotate(-4deg); opacity: 0; }
}

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; translate: 0 26px; transition: opacity .5s ease, translate .5s ease; }
.reveal.in { opacity: 1; translate: 0 0; }

/* ---------- Easter egg ---------- */
.egg {
  width: min(760px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  padding: 0;
  border: var(--outline);
  border-radius: 6px;
  box-shadow: 10px 10px 0 var(--red), 10px 10px 0 4px var(--ink);
  background: var(--cream);
  color: var(--ink);
  overflow: auto;
}
.egg::backdrop { background: rgba(22, 24, 12, .78); }
.egg[open] { animation: egg-in .35s cubic-bezier(.3, 1.5, .5, 1); }
@keyframes egg-in {
  from { opacity: 0; scale: .7; rotate: -6deg; }
  to { opacity: 1; scale: 1; rotate: 0deg; }
}
.egg-inner { position: relative; padding: 26px clamp(16px, 4vw, 30px) 22px; }
.egg h2 { font-size: clamp(1.6rem, 4.6vw, 2.4rem); margin: 4px 0 4px; text-transform: uppercase; }
.egg-sub { margin: 0 0 16px; font-family: var(--font-marker); font-size: 1.1rem; }
.egg-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 44px;
  height: 44px;
  font-size: 1.8rem;
  line-height: 1;
  background: var(--white);
  border: 3px solid var(--ink);
  border-radius: 4px;
  cursor: pointer;
  box-shadow: 3px 3px 0 var(--ink);
}
.egg-close:focus-visible { outline: 3px dashed var(--red); outline-offset: 3px; }

.stage {
  position: relative;
  aspect-ratio: 2 / 1;
  background: var(--lee-pink);
  border: var(--outline);
  border-radius: 4px;
  overflow: hidden;
}
.stage-lee {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 100%;
  width: auto;
  transform-origin: 30% 90%;
}
.stage-lee.blast { animation: lee-blast .5s ease; }
@keyframes lee-blast {
  0%, 100% { transform: none; }
  30% { transform: scaleX(1.04) translateX(4px) rotate(-1.5deg); }
  60% { transform: scaleX(.98) rotate(1deg); }
}
/* Full-body sticker cutout, flipped so he faces Lee */
.stage-rhea {
  --x: 78;
  position: absolute;
  z-index: 1;
  left: calc(var(--x) * 1%);
  bottom: 5%;
  height: 88%;
  aspect-ratio: 173 / 485;
  transition: left .28s cubic-bezier(.3, 1.4, .6, 1);
}
.stage-rhea-body {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(-1);
  transform-origin: 50% 100%;
  filter: drop-shadow(4px 4px 0 rgba(22, 24, 12, .35));
}
.stage-rhea.waddling .stage-rhea-body { animation: waddle .28s ease; }
@keyframes waddle {
  0%, 100% { transform: scaleX(-1) rotate(0); }
  50% { transform: scaleX(-1) rotate(8deg) translateY(-5%); }
}
.stage-rhea.flying { transition: left .7s cubic-bezier(.2, .8, .3, 1); }
.stage-rhea.flying .stage-rhea-body { transform-origin: 50% 50%; animation: tumble .7s linear; }
@keyframes tumble {
  from { transform: scaleX(-1) rotate(0) translateY(0); }
  50% { transform: scaleX(-1) rotate(-400deg) translateY(-35%); }
  to { transform: scaleX(-1) rotate(-720deg) translateY(0); }
}
.stage-ground {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 14%;
  background: repeating-linear-gradient(90deg, rgba(22, 24, 12, .12) 0 18px, transparent 18px 36px);
  border-top: 3px dashed rgba(22, 24, 12, .3);
}

.egg-msg {
  min-height: 1.6em;
  margin: 14px 0 12px;
  font-family: var(--font-stencil);
  font-size: 1.1rem;
  letter-spacing: .03em;
}
.egg-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  align-items: center;
  justify-content: space-between;
}
.egg-score { display: flex; gap: 18px; font-size: 1rem; }
.egg-score strong { font-family: var(--font-stencil); font-weight: 400; font-size: 1.15rem; }
.egg-foot { margin: 16px 0 0; font-size: .9rem; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .sticker { width: min(86%, 420px); }
  .lore-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .notes { grid-template-columns: repeat(2, 1fr); }
  .floater-puff { display: none; }
  .floater-tp { display: none; }
}
@media (max-width: 720px) {
  .nav { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .report { padding: 22px 16px 18px 40px; }
  .report { background-image:
    linear-gradient(90deg, transparent 26px, rgba(227, 38, 27, .5) 26px 28px, transparent 28px),
    linear-gradient(rgba(62, 74, 30, .16) 1px, transparent 1px); }
  .report-table thead tr { display: none; }
  .report-table tr { display: grid; grid-template-columns: 1fr auto; }
  .report-table tbody td:last-child { grid-column: 1 / -1; padding-top: 0; font-size: .95rem; border-bottom: 0; }
  .report-table tbody th,
  .report-table tbody .grade { border-bottom: 0; }
  .report-table tbody tr { border-bottom: 2px dashed rgba(22, 24, 12, .25); }
  .paper:nth-child(2) { margin-left: 0; }
  .floater-tp { width: 80px; height: 60px; }
  .floater-banana { width: 76px; height: 52px; }
}
@media (max-width: 520px) {
  body { font-size: 17px; }
  .logo-text { display: none; }
  .header-actions .btn-icon { display: none; }
  .steps { grid-template-columns: 1fr; }
  .step:nth-child(even) { margin-top: 0; }
  .stats { grid-template-columns: 1fr; }
  .notes { gap: 16px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .tape { width: 80px; height: 24px; }
  .tape-tl { left: -18px; }
  .tape-br { right: -16px; }
  .burst { left: -8px; }
  .graffiti-tag { right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .ticker-track { animation: none; }
  .reveal { opacity: 1; translate: none; }
}
