/* BRRR COMICS No.1
 *
 * The whole page is a comic book: halftone dots over a collage of panels,
 * thick black ink on everything, caption boxes in the corner of each page,
 * speech bubbles, and starbursts yelling at you. Four-colour printing means
 * the palette clashes on purpose - acid green against magenta against cyan.
 *
 * It is laid out wide, in rows of unequal columns, so it reads like a spread
 * rather than a single narrow column of blog. Copy blocks and drawings sit
 * next to each other at whatever sizes look least tidy.
 */

:root {
  --green: #48ab20;
  --green-d: #24660c;
  --green-l: #7de83a;
  --mag: #ff1ea6;
  --cyan: #16e0f0;
  --yellow: #ffe400;
  --ink: #0b0b0b;
  --paper: #fdf6df;          /* newsprint, not white */
  --red: #e01b24;
  --pink: #f2a0c4;
  --w: 1560px;               /* the spread */
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--green-d);
  color: var(--ink);
  font-family: "Comic Sans MS", "Comic Sans", "Chalkboard SE", cursive;
  font-size: 17px;
  line-height: 1.48;
  overflow-x: hidden;
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='22'%3E%3Crect x='2' y='2' width='26' height='18' fill='%2386c66a' stroke='%230b0b0b' stroke-width='3'/%3E%3Ctext x='15' y='16' font-size='13' text-anchor='middle' font-family='monospace' fill='%230b0b0b'%3E%24%3C/text%3E%3C/svg%3E") 7 7, auto;
}

/* The collage sits behind everything, dimmed so copy stays readable. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background: url("art/comic-bg.jpg") center / 640px repeat;
  opacity: .5;
}
/* Halftone printing dots over the collage. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(0,0,0,.34) 1.1px, transparent 1.6px);
  background-size: 6px 6px;
}
.wrap, .topbar, .tickerbar, #gate, #player, #eggtoast, #rain, .win98 {
  position: relative;
  z-index: 2;
}
.wrap { max-width: var(--w); margin: 0 auto; padding: 0 18px 80px; }

[hidden] { display: none !important; }

/* ================================================== the cover / the gate */

#gate {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: #1a0d24;
  display: grid;
  place-items: center;
  padding: 14px;
  overflow: auto;
}
body.open #gate { display: none; }

.cover {
  width: min(470px, 96vw);
  background: var(--yellow);
  border: 7px solid var(--ink);
  box-shadow: 14px 14px 0 rgba(0,0,0,.6);
  padding: 8px;
}

.cover-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.logo-blk { line-height: .82; }
.cc-logo {
  display: block;
  font-family: "Bangers", Impact, sans-serif;
  font-size: 46px;
  letter-spacing: .02em;
  color: var(--mag);
  -webkit-text-stroke: 3px var(--ink);
  paint-order: stroke fill;
}
.cc-sub {
  display: block;
  font-family: "Anton", Impact, sans-serif;
  font-size: 17px;
  letter-spacing: .34em;
  color: var(--ink);
}
.cover-no {
  font-family: "Anton", Impact, sans-serif;
  font-size: 15px;
  padding-top: 5px;
}
.cover-no b { font-size: 25px; }
.cover-price {
  background: var(--ink);
  color: var(--yellow);
  border-radius: 50%;
  width: 62px;
  height: 62px;
  display: grid;
  place-content: center;
  text-align: center;
  font-family: "Anton", Impact, sans-serif;
  transform: rotate(-9deg);
  flex: 0 0 auto;
}
.cover-price span { font-size: 17px; line-height: 1; }
.cover-price small { font-size: 10px; }

.cover-art {
  position: relative;
  border: 5px solid var(--ink);
  background: var(--green);
  aspect-ratio: 3 / 3.4;
  overflow: hidden;
  display: grid;
  align-content: center;
}
.cover-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cover-title {
  position: relative;
  margin: 0;
  text-align: center;
  font-family: "Bangers", Impact, sans-serif;
  font-size: clamp(40px, 13vw, 62px);
  line-height: .88;
  color: var(--paper);
  -webkit-text-stroke: 4px var(--ink);
  paint-order: stroke fill;
  text-shadow: 6px 6px 0 var(--mag);
  letter-spacing: .01em;
}
.cover-title em { color: var(--yellow); font-style: normal; }
.cover-bill {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: "Anton", Impact, sans-serif;
  font-size: 13px;
  letter-spacing: .04em;
  padding: 6px 8px;
  text-align: center;
}
.cover-bill b { color: var(--cyan); }

/* the starburst. twenty spikes, comic-book issue-one energy */
.burst {
  position: absolute;
  display: grid;
  place-items: center;
  background: var(--mag);
  clip-path: polygon(50% 0%, 60.2% 18.6%, 79.4% 9.5%, 76.7% 30.6%, 97.6% 34.5%,
                     83% 50%, 97.6% 65.5%, 76.7% 69.4%, 79.4% 90.5%, 60.2% 81.4%,
                     50% 100%, 39.8% 81.4%, 20.6% 90.5%, 23.3% 69.4%, 2.4% 65.5%,
                     17% 50%, 2.4% 34.5%, 23.3% 30.6%, 20.6% 9.5%, 39.8% 18.6%);
}
.burst span {
  font-family: "Bangers", Impact, sans-serif;
  color: var(--paper);
  text-align: center;
  line-height: .95;
  transform: rotate(-11deg);
}
.cover-burst {
  top: 6px;
  right: 6px;
  width: 104px;
  height: 104px;
  z-index: 3;
  animation: throb 1s steps(2) infinite;
}
.cover-burst span { font-size: 24px; }
@keyframes throb { 50% { transform: scale(1.11) rotate(7deg); } }

.cover-bot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 7px;
}
.approved {
  font-family: "Anton", Impact, sans-serif;
  font-size: 7.5px;
  line-height: 1.28;
  border: 3px solid var(--ink);
  padding: 4px 5px;
  background: var(--paper);
  text-align: center;
  flex: 0 0 auto;
}
.barcode {
  flex: 0 0 auto;
  width: 62px;
  height: 38px;
  background: repeating-linear-gradient(90deg, var(--ink) 0 2px,
              var(--paper) 2px 4px, var(--ink) 4px 5px, var(--paper) 5px 8px);
  border: 2px solid var(--ink);
}
#enter {
  flex: 1;
  font-family: "Bangers", Impact, sans-serif;
  font-size: clamp(17px, 4.6vw, 25px);
  letter-spacing: .04em;
  padding: 12px 8px;
  background: var(--red);
  color: var(--yellow);
  border: 5px solid var(--ink);
  cursor: pointer;
  animation: nudge .55s steps(2) infinite;
}
#enter:hover { background: var(--mag); color: var(--paper); }
@keyframes nudge { 50% { transform: rotate(-2deg) scale(1.03); } }
.cover-warn {
  font-family: "Press Start 2P", monospace;
  font-size: 8px;
  text-align: center;
  margin: 7px 0 0;
}

/* ============================================================= the player */

#player {
  position: fixed;
  right: 8px;
  bottom: 40px;
  z-index: 700;
  background: var(--ink);
  color: var(--green-l);
  border: 4px solid var(--cyan);
  padding: 6px 8px;
  font-family: "Press Start 2P", monospace;
  font-size: 9px;
  width: 152px;
}
.pl-top {
  margin-bottom: 4px;
  display: flex;
  justify-content: space-between;
  gap: 4px;
  white-space: nowrap;
}
#trk { font-size: 8px; align-self: flex-end; color: var(--yellow); }
#viz { display: block; background: #000; border: 1px solid var(--green-d); width: 120px; height: 26px; }
.pl-btns { display: flex; gap: 4px; margin-top: 4px; }
.pl-btns button {
  flex: 1;
  font-family: inherit;
  font-size: 8px;
  padding: 5px 2px;
  background: var(--mag);
  color: var(--paper);
  border: 2px solid var(--ink);
  cursor: pointer;
}
.pl-btns button:hover { background: var(--cyan); color: var(--ink); }

/* ==================================================== marquee and ticker */

.topbar {
  background: var(--ink);
  color: var(--yellow);
  border-bottom: 5px solid var(--mag);
  font-family: "Anton", Impact, sans-serif;
  font-size: 14px;
  letter-spacing: .05em;
  padding: 6px 0;
}

/* Fake tape along the bottom. Every number on it goes up, forever. */
.tickerbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 690;
  background: #000;
  color: var(--green-l);
  border-top: 3px solid var(--green-l);
  font-family: "Press Start 2P", monospace;
  font-size: 10px;
  padding: 6px 0;
}
.tickerbar b { color: var(--yellow); }
.tickerbar i { color: var(--mag); font-style: normal; }

/* ======================================================= comic book pages */

.pg, .splash {
  position: relative;
  background: var(--paper);
  border: 6px solid var(--ink);
  box-shadow: 11px 11px 0 rgba(0,0,0,.45);
  padding: 34px 24px 22px;
  margin: 30px 0;
}
/* Every page leans a different way, like a stack of pages on a desk. */
.pg:nth-of-type(2n) { transform: rotate(-.5deg); }
.pg:nth-of-type(3n) { transform: rotate(.62deg); }
.pg:nth-of-type(5n) { transform: rotate(-.3deg); }

/* ------------------------------------------------------------ the rows --
 * Unequal columns on purpose. A page of copy next to a drawing, three
 * drawings across, a tall drawing beside a table. Nothing lines up.
 */
.row { display: grid; gap: 26px; align-items: start; margin: 30px 0; }
.row > .pg, .row > .plate { margin: 0; }
.row-crank { grid-template-columns: 1.15fr .85fr; }
.row-card  { grid-template-columns: 1.35fr .65fr; }
.row-chart { grid-template-columns: 1.4fr .6fr; }
.row-buy   { grid-template-columns: 1.25fr .75fr; }
.row-2     { grid-template-columns: 1fr 1fr; }
.row-3     { grid-template-columns: repeat(3, 1fr); }
.row-4     { grid-template-columns: repeat(4, 1fr); }
.row.flat { margin: 18px 0 0; }

/* ------------------------------------------------------- drawing plates -
 * The 36 original drawings, each in its own inked frame with a typed
 * caption underneath like a plate in an old book.
 */
.plate {
  margin: 0;
  background: var(--paper);
  border: 6px solid var(--ink);
  box-shadow: 9px 9px 0 rgba(0,0,0,.42);
  transform: rotate(.5deg);
}
.plate:nth-of-type(2n) { transform: rotate(-.75deg); }
.plate:nth-of-type(3n) { transform: rotate(.35deg); }
.plate img { width: 100%; display: block; border-bottom: 5px solid var(--ink); }
.plate figcaption {
  padding: 8px 11px 10px;
  font-size: 14px;
  line-height: 1.34;
}
.plate.tall img { aspect-ratio: 3 / 4; object-fit: cover; }
.plate:hover { transform: rotate(0) scale(1.012); }

/* the narration box, top-left, sitting on the panel border */
.cap-box {
  position: absolute;
  top: -3px;
  left: -3px;
  background: var(--yellow);
  border: 4px solid var(--ink);
  border-top: 0;
  border-left: 0;
  font-family: "Anton", Impact, sans-serif;
  font-size: 12px;
  letter-spacing: .04em;
  padding: 5px 11px 5px 9px;
  max-width: 88%;
}

.ph {
  font-family: "Bangers", Impact, sans-serif;
  font-size: clamp(32px, 5.4vw, 76px);
  line-height: .9;
  margin: 8px 0 14px;
  color: var(--mag);
  -webkit-text-stroke: 3px var(--ink);
  paint-order: stroke fill;
  text-shadow: 6px 6px 0 var(--cyan);
  letter-spacing: .01em;
}
.ph small {
  font-family: "Comic Sans MS", cursive;
  font-size: 15px;
  color: var(--ink);
  -webkit-text-stroke: 0;
  text-shadow: none;
  letter-spacing: 0;
}
.lede { font-size: 18px; }

/* A line that needs to land. Big, hand-lettered, not a heading. */
.bigsay {
  font-family: "Bangers", Impact, sans-serif;
  font-size: clamp(21px, 2.5vw, 34px);
  line-height: 1.08;
  letter-spacing: .02em;
  background: var(--yellow);
  border: 5px solid var(--ink);
  padding: 14px 18px;
  margin: 20px 0 4px;
}
.say {
  font-family: "Bangers", Impact, sans-serif;
  font-size: clamp(19px, 2vw, 28px);
  color: var(--red);
  -webkit-text-stroke: 1px var(--ink);
  paint-order: stroke fill;
  letter-spacing: .02em;
  margin: 10px 0;
}

/* ============================================================= the splash */

.splash { overflow: hidden; text-align: center; padding: 40px 24px 32px; }
.splash-vid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .28;
  pointer-events: none;
}
.splash > *:not(.splash-vid) { position: relative; }
.splash-h {
  font-family: "Bangers", Impact, sans-serif;
  font-size: clamp(44px, 10.4vw, 168px);
  line-height: .84;
  margin: 10px 0 16px;
  color: var(--paper);
  -webkit-text-stroke: 5px var(--ink);
  paint-order: stroke fill;
  text-shadow: 11px 11px 0 var(--mag), -5px -5px 0 var(--cyan);
}
.splash-h em { color: var(--yellow); font-style: normal; display: block; }

/* speech bubbles */
.bub {
  display: inline-block;
  position: relative;
  background: var(--paper);
  border: 4px solid var(--ink);
  border-radius: 46% / 62%;
  padding: 14px 30px;
  font-family: "Bangers", Impact, sans-serif;
  font-size: 21px;
  letter-spacing: .03em;
  margin: 8px 0 18px;
}
.bub::after {                          /* the tail */
  content: "";
  position: absolute;
  left: 26%;
  bottom: -19px;
  width: 0;
  height: 0;
  border: 11px solid transparent;
  border-top: 20px solid var(--ink);
}
.bub-big { font-size: clamp(18px, 2.6vw, 32px); background: var(--cyan); }
.bub-huge {
  display: block;
  font-size: clamp(23px, 5vw, 60px);
  background: var(--yellow);
  text-align: center;
  margin: 24px auto 30px;
  max-width: 780px;
}
.printed { background: var(--green-l); font-size: clamp(17px, 2.4vw, 30px); }
#printed { color: var(--ink); }

/* the contract box */
.cabox {
  background: var(--ink);
  border: 5px solid var(--yellow);
  padding: 12px;
  margin: 0 auto 17px;
  max-width: 760px;
}
.ca-lab {
  font-family: "Anton", Impact, sans-serif;
  font-size: 12px;
  letter-spacing: .07em;
  color: var(--yellow);
  margin-bottom: 6px;
}
#ca {
  display: block;
  font-family: monospace;
  font-size: clamp(10px, 1.5vw, 17px);
  color: var(--green-l);
  word-break: break-all;
  background: #000;
  padding: 9px;
  border: 2px solid var(--green-d);
}
#copyca {
  margin-top: 7px;
  font-family: "Anton", Impact, sans-serif;
  font-size: 14px;
  letter-spacing: .06em;
  padding: 8px 16px;
  background: var(--yellow);
  border: 3px solid var(--paper);
  cursor: pointer;
}

.cta { display: flex; gap: 11px; justify-content: center; flex-wrap: wrap; margin-bottom: 15px; }
.btn {
  font-family: "Bangers", Impact, sans-serif;
  font-size: clamp(19px, 1.8vw, 26px);
  letter-spacing: .04em;
  padding: 12px 22px;
  background: var(--paper);
  color: var(--ink);
  border: 4px solid var(--ink);
  text-decoration: none;
  display: inline-block;
  box-shadow: 5px 5px 0 var(--ink);
  cursor: pointer;
}
.btn:hover { transform: translate(-2px, -2px) rotate(-1.6deg); box-shadow: 8px 8px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn.buy { background: var(--red); color: var(--yellow); }
.btn.buy:hover { background: var(--mag); color: var(--paper); }
.btn.big-btn { font-size: clamp(23px, 2.4vw, 34px); padding: 16px 30px; }
.btn[aria-disabled="true"] { opacity: .5; }

.badges { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.badge {
  font-family: "Anton", Impact, sans-serif;
  font-size: 13px;
  letter-spacing: .05em;
  padding: 7px 12px;
  background: var(--paper);
  border: 3px solid var(--ink);
  transform: rotate(-1.4deg);
}
.badge:nth-child(2n) { transform: rotate(1.7deg); background: var(--yellow); }
.badge.bad { background: var(--red); color: var(--paper); }
.badge.cyan { background: var(--cyan); }

/* ============================================================== the crank */

.pg-crank { background: var(--yellow); text-align: center; }
.crankwrap { position: relative; z-index: 2; }
#crank {
  font-family: "Bangers", Impact, sans-serif;
  font-size: clamp(30px, 5vw, 74px);
  letter-spacing: .05em;
  padding: 20px 52px;
  background: var(--red);
  color: var(--yellow);
  border: 7px solid var(--ink);
  box-shadow: 9px 9px 0 var(--ink);
  cursor: pointer;
  /* Inked, so the label survives both background colours and whatever money
   * happens to be falling past it. */
  -webkit-text-stroke: 3px var(--ink);
  paint-order: stroke fill;
}
#crank:active { transform: translate(6px, 6px); box-shadow: 1px 1px 0 var(--ink); }
body.cranking #crank { background: var(--mag); color: var(--yellow); }

.gauge {
  height: 30px;
  background: var(--ink);
  border: 4px solid var(--ink);
  margin: 18px auto;
  max-width: 540px;
  overflow: hidden;
}
#gaugefill {
  height: 100%;
  width: 0;
  background: repeating-linear-gradient(90deg, var(--green-l) 0 11px, var(--cyan) 11px 22px);
  transition: width .1s linear;
}
.crank-burst {
  bottom: -22px;
  right: -14px;
  width: 118px;
  height: 118px;
  background: var(--cyan);
  z-index: 1;
}
.crank-burst span { font-size: 26px; color: var(--ink); }
body.cranking .crank-burst { animation: throb .16s steps(2) infinite; }

/* ================================================== wheel of policy ==== */

.pg-wheel { background: var(--cyan); text-align: center; }
.wheelwrap { position: relative; display: inline-block; margin: 8px 0 14px; }
#wheelc {
  display: block;
  width: min(420px, 82vw);
  height: auto;
  border: 7px solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
  transition: transform 4.2s cubic-bezier(.13, .82, .06, 1);
}
.wheel-pin {
  position: absolute;
  top: -16px;
  left: 50%;
  margin-left: -13px;
  width: 26px;
  height: 34px;
  background: var(--red);
  border: 4px solid var(--ink);
  clip-path: polygon(50% 100%, 0 0, 100% 0);
}
.verdict {
  font-family: "Bangers", Impact, sans-serif;
  font-size: clamp(19px, 2.6vw, 36px);
  letter-spacing: .02em;
  background: var(--ink);
  color: var(--yellow);
  border: 5px solid var(--ink);
  padding: 12px 16px;
  margin: 16px 0 0;
}

/* ======================================================= the origin strip */

.strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 11px; margin: 14px 0 22px; }
.strip figure { margin: 0; border: 5px solid var(--ink); background: var(--paper); }
.strip img { width: 100%; display: block; aspect-ratio: 4 / 3; object-fit: cover; }
.strip figcaption {
  background: var(--yellow);
  border-top: 4px solid var(--ink);
  font-family: "Anton", Impact, sans-serif;
  font-size: 11px;
  letter-spacing: .03em;
  padding: 5px 7px;
}
.strip figure:nth-child(3n) { transform: rotate(-1.1deg); }
.strip figure:nth-child(4n) { transform: rotate(1.3deg); }

.two { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }

/* ====================================================== the trading card */

.card { display: grid; grid-template-columns: 300px 1fr; gap: 22px; align-items: start; }
.card-pic { border: 6px solid var(--ink); background: var(--cyan); position: relative; }
.card-pic img { width: 100%; display: block; }
.card-name {
  background: var(--ink);
  color: var(--yellow);
  font-family: "Bangers", Impact, sans-serif;
  font-size: 27px;
  letter-spacing: .05em;
  text-align: center;
  padding: 3px;
}
.stats { width: 100%; border-collapse: collapse; }
.stats td { border-bottom: 3px solid var(--ink); padding: 8px 9px; font-size: 16px; }
.stats td:first-child {
  font-family: "Anton", Impact, sans-serif;
  font-size: 12px;
  letter-spacing: .05em;
  width: 34%;
  background: var(--green-l);
  white-space: nowrap;
}

/* =============================================================== tables */

.tbl { width: 100%; border-collapse: collapse; margin: 14px 0; }
.tbl th, .tbl td { border: 3px solid var(--ink); padding: 9px 11px; text-align: left; font-size: 16px; }
.tbl th {
  background: var(--ink);
  color: var(--yellow);
  font-family: "Anton", Impact, sans-serif;
  font-size: 13px;
  letter-spacing: .06em;
}
.tbl tr:nth-child(even) td { background: var(--green-l); }
.pg-facts { background: var(--cyan); }
.pg-facts .tbl tr:nth-child(even) td { background: var(--paper); }
.pg-facts .tbl td { background: #d8fbff; }

.steps { padding-left: 30px; font-size: 18px; }
.steps li { margin: 11px 0; }
.pg-buy { background: var(--green-l); }

.q {
  font-family: "Bangers", Impact, sans-serif;
  font-size: 27px;
  letter-spacing: .03em;
  color: var(--mag);
  -webkit-text-stroke: 1px var(--ink);
  paint-order: stroke fill;
  margin: 20px 0 2px;
}
.q::before { content: "Q. "; }

.pg-dark { background: #1b1b1b; color: var(--paper); border-color: var(--yellow); }
.pg-dark .ph { color: var(--yellow); text-shadow: 6px 6px 0 var(--red); }
.pg-dark .plate { background: #2a2a2a; color: var(--paper); }
.pg-dark .bigsay { color: var(--ink); }

/* =========================================================== the ad page */

.pg-ads { background: var(--paper); }
.adgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ad {
  position: relative;
  border: 5px solid var(--ink);
  background: var(--paper);
  padding: 26px 13px 13px;
  font-size: 14px;
}
.ad img {
  width: 100%;
  display: block;
  border: 4px solid var(--ink);
  margin-bottom: 9px;
}
.ad:nth-child(2n) { background: #fff8e2; transform: rotate(-.7deg); }
.ad:nth-child(3n) { transform: rotate(.8deg); }
.ad h3 {
  font-family: "Bangers", Impact, sans-serif;
  font-size: 28px;
  line-height: .96;
  letter-spacing: .02em;
  margin: 0 0 7px;
  color: var(--red);
  -webkit-text-stroke: 1px var(--ink);
  paint-order: stroke fill;
}
.ad p { margin: 6px 0; }
.ad-shout {
  position: absolute;
  top: -13px;
  left: -9px;
  background: var(--mag);
  color: var(--paper);
  font-family: "Bangers", Impact, sans-serif;
  font-size: 17px;
  letter-spacing: .05em;
  padding: 3px 10px;
  border: 3px solid var(--ink);
  transform: rotate(-7deg);
  z-index: 2;
}
.ad-price {
  font-family: "Anton", Impact, sans-serif;
  font-size: 19px;
  background: var(--yellow);
  border: 3px solid var(--ink);
  text-align: center;
  padding: 5px;
}
.ad-price small { display: block; font-size: 11px; font-family: "Comic Sans MS", cursive; }
.ad-warn { font-size: 12px; border-top: 2px dashed var(--ink); padding-top: 5px; }

/* ======================================================== letters page */

.pg-letters { background: #fffdf2; }
.letters { columns: 2; column-gap: 30px; }
.letter {
  break-inside: avoid;
  border-bottom: 3px dashed var(--ink);
  padding: 12px 0;
}
.from { margin: 0 0 5px; font-style: italic; }
.reply {
  margin: 0;
  background: var(--green-l);
  border-left: 7px solid var(--ink);
  padding: 9px 12px;
}

/* =========================================================== the wall ---
 * Captions are laid over the drawings in CSS rather than burned into the
 * files, so one drawing can carry a different joke every time it appears and
 * the art directory does not double in size.
 */

.pg-wall { background: var(--mag); }
.pg-wall .lede { color: var(--paper); }
#wall { columns: 4; column-gap: 14px; }
.tile {
  position: relative;
  break-inside: avoid;
  margin-bottom: 14px;
  border: 5px solid var(--ink);
  background: var(--ink);
  overflow: hidden;
  cursor: pointer;
}
.tile img { width: 100%; display: block; }
.tile:nth-child(4n) { transform: rotate(-1.4deg); }
.tile:nth-child(7n) { transform: rotate(1.6deg); }
.tile:hover { transform: rotate(1.2deg) scale(1.03); z-index: 3; }
.tile.crop img { object-fit: cover; height: 150px; }
.tile.fried img { filter: saturate(3.2) contrast(1.75) hue-rotate(14deg); }

.tile b, .tile i {
  position: absolute;
  left: 3%;
  right: 3%;
  font-family: Impact, "Anton", sans-serif;
  font-weight: normal;
  font-style: normal;
  text-transform: uppercase;
  text-align: center;
  color: #fff;
  line-height: .98;
  font-size: clamp(13px, 2vw, 25px);
  letter-spacing: .01em;
  -webkit-text-stroke: 4px #000;
  paint-order: stroke fill;
  text-shadow: 0 3px 5px rgba(0,0,0,.7);
  pointer-events: none;
}
.tile b { top: 3%; }
.tile i { bottom: 3%; }

#onlyup { width: 100%; height: auto; border: 5px solid var(--ink); background: #050f00; display: block; }

/* ========================================================= hidden pages */

.pg-hidden { background: #16022b; color: var(--pink); border-color: var(--mag); }
.pg-hidden .ph { color: var(--cyan); text-shadow: 6px 6px 0 var(--mag); }
.pg-hidden .cap-box { background: var(--mag); color: var(--paper); }
.pg-hidden .bub-huge { background: var(--mag); color: var(--paper); }
.pg-hidden b { color: var(--yellow); }

/* ============================================================ the shouts */

#eggtoast {
  position: fixed;
  left: 50%;
  top: 16px;
  transform: translateX(-50%) scale(.7) rotate(-3deg);
  z-index: 800;
  background: var(--mag);
  color: var(--paper);
  border: 5px solid var(--ink);
  padding: 12px 22px;
  font-family: "Bangers", Impact, sans-serif;
  font-size: 27px;
  letter-spacing: .04em;
  opacity: 0;
  pointer-events: none;
  transition: opacity .16s, transform .16s;
  text-align: center;
  box-shadow: 7px 7px 0 var(--ink);
}
#eggtoast.up { opacity: 1; transform: translateX(-50%) scale(1) rotate(-3deg); }
#eggtoast .tiny { display: block; font-family: "Comic Sans MS", cursive; font-size: 13px; letter-spacing: 0; }

#rain { position: fixed; inset: 0; pointer-events: none; z-index: 650; overflow: hidden; }
.drop { position: absolute; top: -70px; font-size: 34px; animation: fall linear forwards; will-change: transform; }
.drop img { width: 58px; height: 58px; display: block; }
@keyframes fall { to { transform: translateY(122vh) rotate(560deg); } }

@keyframes shake {
  0%,100% { transform: translate(0,0); }
  25% { transform: translate(-4px, 3px) rotate(.12deg); }
  50% { transform: translate(4px, -3px) rotate(-.12deg); }
  75% { transform: translate(-3px, -4px); }
}
body.cranking .wrap { animation: shake .08s linear infinite; }

/* ======================================================== fake windows */

.win98 {
  position: fixed;
  z-index: 750;
  width: 320px;
  background: #c0c0c0;
  border: 3px outset #fff;
  font-family: "Press Start 2P", monospace;
  font-size: 9px;
  color: #000;
}
.win98 .bar {
  background: #000080;
  color: #fff;
  padding: 4px 5px;
  display: flex;
  justify-content: space-between;
  cursor: move;
}
.win98 .bar b { font-weight: normal; }
.win98 .bar span { cursor: pointer; padding: 0 3px; background: #c0c0c0; color: #000; border: 1px outset #fff; }
.win98 .body { padding: 12px 10px; line-height: 1.7; }
.win98 button {
  font-family: inherit;
  font-size: 9px;
  margin: 4px 4px 8px;
  padding: 5px 10px;
  border: 2px outset #fff;
  background: #c0c0c0;
  cursor: pointer;
}

footer {
  text-align: center;
  border-top: 6px solid var(--yellow);
  margin-top: 30px;
  padding: 18px 0 40px;
  color: var(--paper);
}
.fbig {
  font-family: "Bangers", Impact, sans-serif;
  font-size: 40px;
  letter-spacing: .04em;
  color: var(--yellow);
  -webkit-text-stroke: 2px var(--ink);
  paint-order: stroke fill;
  margin: 0 0 4px;
}
footer .tiny { color: #f0ffe0; }

.tiny { font-size: 13px; }
kbd {
  font-family: "Press Start 2P", monospace;
  font-size: 12px;
  background: var(--ink);
  color: var(--yellow);
  padding: 4px 7px;
  border: 2px solid var(--ink);
}
a { color: var(--mag); font-weight: bold; }
::selection { background: var(--yellow); color: var(--ink); }

/* ================================================================ phones */

@media (max-width: 1250px) {
  #wall { columns: 3; }
  .row-4 { grid-template-columns: 1fr 1fr; }
  .three { grid-template-columns: 1fr; }
}
@media (max-width: 1000px) {
  .row-crank, .row-card, .row-chart, .row-buy, .row-2, .row-3 {
    grid-template-columns: 1fr;
  }
  .adgrid { grid-template-columns: 1fr 1fr; }
  .strip { grid-template-columns: repeat(2, 1fr); }
  .card { grid-template-columns: 1fr; }
  .card-pic { max-width: 320px; }
  .letters { columns: 1; }
  .plate.tall img { aspect-ratio: 16 / 10; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .two, .adgrid, .row-4 { grid-template-columns: 1fr; }
  #wall { columns: 2; }
  .pg, .splash { padding: 28px 13px 16px; }
  .pg:nth-of-type(2n), .pg:nth-of-type(3n), .pg:nth-of-type(5n) { transform: none; }
  .plate, .plate:nth-of-type(2n), .plate:nth-of-type(3n) { transform: none; }
  .topbar { font-size: 11px; }
  .tickerbar { font-size: 8px; }
  #player { width: 124px; font-size: 8px; bottom: 34px; }
  #viz { width: 96px; }
  .tbl th, .tbl td { font-size: 13px; padding: 5px 6px; }
  .stats td { font-size: 14px; }
  .cap-box { font-size: 10px; padding: 4px 8px; }
  .crank-burst { width: 84px; height: 84px; right: -6px; bottom: -14px; }
  .crank-burst span { font-size: 18px; }
  #eggtoast { font-size: 19px; padding: 9px 14px; max-width: 92vw; }
  .row, .pg, .splash { margin: 18px 0; }
  .tile b, .tile i { -webkit-text-stroke: 3px #000; }
}

/* All of the above assumes motion is welcome. Where it is not, kill it. The
 * jokes survive being still; a migraine was never part of the bit. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .pg, .ad, .badge, .plate, .strip figure, .tile { transform: none !important; }
  body.cranking .wrap { animation: none !important; }
  #rain { display: none; }
  #wheelc { transition: transform 1.4s ease-out !important; }
}
