/* web3.toys shared stylesheet. Every page and every toy uses this one file.
   Values are copied from the mockups in the brief (390px phone screens). */

:root {
  /* Colors */
  --cream: #fff8e1;      /* page background */
  --yellow: #ffd93d;     /* main color, always with ink text */
  --ink: #1f1b2e;        /* all text and outlines */
  --blue: #4d9de0;
  --coral: #ff6b6b;
  --mint: #6bcb77;
  --white: #ffffff;
  --ink-soft: #3d3750;   /* body copy on cards */
  --ink-muted: #5a5470;  /* labels and small print */
  --track: #f1e9cf;      /* empty part of a meter */
  --coral-tint: #ffe3df; /* soft background for warnings */
  --mint-tint: #ddf3df;  /* soft background for good news */
  --violet: #a98bff;     /* fourth toy accent */
  --accent: var(--yellow);      /* each toy sets its own, see "Toy identities" */
  --accent-tint: var(--cream);

  /* Type */
  --font-display: 'Fredoka', 'Nunito', system-ui, sans-serif;
  --font-body: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  /* The six fonts on the site: Fredoka and Nunito, Luckiest Guy (logo and
     Genesis Block), Bungee, Bangers and Chewy (one per toy). */
  --font-toy: var(--font-display);

  /* Shape */
  --line: 3px solid var(--ink);
  --line-thin: 2px solid var(--ink);
  --radius: 16px;
  --radius-card: 18px;
  --radius-hero: 22px;
  --shadow-sm: 2px 2px 0 var(--ink);
  --shadow: 4px 4px 0 var(--ink);
  --shadow-lg: 6px 6px 0 var(--ink);
  --tap: 52px;            /* smallest tap target */

  color-scheme: light;
}

* {
  box-sizing: border-box;
}

/* Anything marked hidden stays hidden, whatever its layout class says. */
[hidden] {
  display: none !important;
}

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  overflow-x: hidden;
}

img {
  max-width: 100%;
}

a {
  color: var(--ink);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  line-height: 1.1;
  text-wrap: balance;
}

p {
  margin: 0;
}

/* Headings get focus when a new screen opens, for screen readers. No ring needed. */
[tabindex='-1']:focus {
  outline: none;
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

/* ---------- Page frame ---------- */

.page {
  max-width: 960px;
  margin: 0 auto;
  padding-block: 20px 32px;
  padding-left: max(18px, env(safe-area-inset-left, 0px));
  padding-right: max(18px, env(safe-area-inset-right, 0px));
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.page--narrow {
  max-width: 560px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.logo {
  flex: none;
  font-family: 'Luckiest Guy', var(--font-display);
  font-size: 22px;
  letter-spacing: 0.5px;
  text-decoration: none;
  color: var(--ink);
}

.site-footer {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--ink-muted);
}

/* Stack: puts its children in a column with even spacing */
.stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.stack--tight {
  gap: 12px;
}

/* ---------- Text styles ---------- */

.title-xl,
.title-lg,
.title-md,
.title-sm {
  font-family: var(--font-display);
}

.title-xl {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.05;
}

.title-lg {
  font-size: 28px;
  font-weight: 700;
}

.title-md {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.15;
}

.title-sm {
  font-size: 19px;
  font-weight: 600;
  line-height: 1.2;
}

.text {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink-soft);
}

.label {
  font-size: 13px;
  font-weight: 800;
}

.small-print {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-muted);
}

/* ---------- Pills and chips ---------- */

/* Pill: header badges such as "Step 3 of 7" or "by BuildWithAki" */
.pill {
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  background: var(--white);
  border: var(--line);
  border-radius: 999px;
  padding: 3px 12px;
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}

/* Chip: small tags such as "Trust +10" or "Coming soon" */
.chip {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  background: var(--white);
  border: var(--line-thin);
  border-radius: 999px;
  padding: 1px 9px;
  white-space: nowrap;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.is-yellow { background: var(--yellow); }
.is-mint { background: var(--mint); }
.is-coral { background: var(--coral); }
.is-blue { background: var(--blue); }
.is-white { background: var(--white); }

/* ---------- Cards ---------- */

.card {
  position: relative;
  background: var(--white);
  border: var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  padding: 14px 16px;
}

.card--yellow {
  background: var(--yellow);
}

.card--good {
  background: var(--mint-tint);
}

.card--warning {
  background: var(--coral-tint);
}

.card--hero {
  background: var(--yellow);
  border-radius: var(--radius-hero);
  box-shadow: var(--shadow-lg);
  padding: 18px 18px 20px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--tap);
  padding: 12px 22px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  color: var(--ink);
  background: var(--white);
  border: var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.08s ease, box-shadow 0.08s ease;
  -webkit-tap-highlight-color: transparent;
}

/* Main call to action: ink button with yellow text and a yellow-and-ink shadow */
.btn--ink {
  background: var(--ink);
  color: var(--yellow);
  box-shadow: 4px 4px 0 var(--yellow), 4px 4px 0 3px var(--ink);
}

.btn--yellow {
  background: var(--yellow);
  color: var(--ink);
}

.btn--block {
  display: flex;
  width: 100%;
}

/* Chunky press: the button drops onto its shadow */
.btn:active {
  transform: translate(4px, 4px);
  box-shadow: 0 0 0 var(--ink);
}

.btn--ink:active {
  box-shadow: 0 0 0 var(--yellow), 0 0 0 0 var(--ink);
}

/* Choice: a big tappable card for game answers (used by the toys) */
.choice {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  min-height: var(--tap);
  padding: 12px 14px;
  text-align: left;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink);
  background: var(--white);
  border: var(--line);
  border-radius: var(--radius-card);
  box-shadow: 3px 3px 0 var(--ink);
  cursor: pointer;
  transition: transform 0.08s ease, box-shadow 0.08s ease;
  -webkit-tap-highlight-color: transparent;
}

.choice:active {
  transform: translate(3px, 3px);
  box-shadow: 0 0 0 var(--ink);
}

.choice[aria-pressed='true'] {
  background: var(--yellow);
  box-shadow: 5px 5px 0 var(--ink);
}

/* ---------- Meters and progress (used by the toys) ---------- */

.progress {
  display: flex;
  gap: 6px;
}

.progress > span {
  flex: 1;
  height: 10px;
  background: var(--white);
  border: var(--line-thin);
  border-radius: 6px;
}

.progress > span.done {
  background: var(--yellow);
}

.meter {
  height: 12px;
  background: var(--track);
  border: var(--line-thin);
  border-radius: 7px;
  overflow: hidden;
}

.meter > span {
  display: block;
  height: 100%;
  background: var(--yellow);
}

/* ---------- Mascot slot ---------- */

/* The pictures are set in config.js under "mascot". */
.mascot {
  display: block;
  width: 84px;
  height: 84px;
  flex: none;
  object-fit: contain;
  object-position: 50% 100%;
}

.mascot--lg {
  width: 116px;
  height: 116px;
}

/* ---------- Home page ---------- */

.hero {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero .mascot {
  position: absolute;
  top: 10px;
  right: 10px;
}

.hero-copy {
  /* Leaves room for the mascot in the top right corner. */
  max-width: calc(100% - 120px);
}

.hero-text {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  max-width: 440px;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
}

.toy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.toy-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
  min-height: var(--tap);
  text-decoration: none;
  color: var(--ink);
}

.toy-card .text {
  flex: 1;
}

a.toy-card {
  transition: transform 0.08s ease, box-shadow 0.08s ease;
  -webkit-tap-highlight-color: transparent;
}

a.toy-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-lg);
}

a.toy-card:active {
  transform: translate(4px, 4px);
  box-shadow: 0 0 0 var(--ink);
}

.toy-card .go {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
}

.toy-card--soon {
  box-shadow: 3px 3px 0 var(--ink);
}

.toy-card--soon .title-sm,
.toy-card--soon .text {
  color: var(--ink-muted);
}

/* ---------- Shared bits used by the toys ---------- */

.center {
  text-align: center;
}

.text--ink {
  color: var(--ink);
}

.text a,
.small-print a {
  color: var(--ink);
  font-weight: 800;
}

/* A button that looks like a text link */
.text-button {
  display: inline;
  padding: 0;
  font: inherit;
  font-weight: 800;
  color: var(--ink);
  text-decoration: underline;
  background: none;
  border: 0;
  cursor: pointer;
}

.text-button.center {
  display: block;
  min-height: 44px;
  margin: 0 auto;
  padding: 10px 16px;
}

.choice-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  line-height: 1.2;
}

.choice-desc {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink-soft);
}

.choice.is-yellow {
  background: var(--yellow);
  box-shadow: 5px 5px 0 var(--ink);
}

.choice.is-yellow .choice-desc {
  color: var(--ink);
}

.choice--big {
  padding: 18px;
}

.choice--big .choice-title {
  font-size: 24px;
}

/* Two buttons side by side; wraps to more rows when there are four */
.btn-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 12px;
}

.btn-row .btn {
  width: 100%;
  padding: 12px 10px;
  font-size: 18px;
}

.btn-row .btn--scam,
.btn-row .btn--legit {
  min-height: 64px;
  font-size: 24px;
}

.btn--scam {
  background: var(--coral);
}

.btn--legit {
  background: var(--mint);
}

.score-line {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0;
}

.score-big {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 72px;
  line-height: 1;
}

.meter-row {
  display: grid;
  grid-template-columns: 88px 1fr 48px;
  gap: 10px;
  align-items: center;
}

.meter-row .label:last-child {
  text-align: right;
}

/* Form fields */
.field {
  width: 100%;
  min-height: var(--tap);
  padding: 11px 12px;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  background: var(--cream);
  border: var(--line);
  border-radius: 12px;
}

.field--area {
  min-height: 170px;
  line-height: 1.4;
  resize: vertical;
}

.share-preview {
  display: block;
  width: 100%;
  max-width: 420px;
  height: auto;
  margin: 0 auto;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(31, 27, 46, 0.6);
}

.modal .card {
  width: 100%;
  max-width: 440px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
}

.progress[hidden] {
  display: none;
}

/* ---------- Spot the Scam ---------- */

/* Tag buttons for red flags */
.flag-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.flag-toggle {
  min-height: 44px;
  padding: 8px 14px;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
  background: var(--white);
  border: var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform 0.08s ease, box-shadow 0.08s ease;
  -webkit-tap-highlight-color: transparent;
}

.flag-toggle[aria-pressed='true'] {
  background: var(--yellow);
}

.flag-toggle[aria-pressed='true']::before {
  content: '✓ ';
}

.flag-toggle:active {
  transform: translate(2px, 2px);
  box-shadow: 0 0 0 var(--ink);
}

.flag-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  line-height: 1.35;
}

.found-chip {
  padding: 3px 10px;
  border-radius: 12px;
  white-space: normal;
  overflow-wrap: anywhere;
}

.privacy-note {
  padding: 10px 12px;
  font-size: 14px;
  line-height: 1.35;
  background: var(--mint-tint);
  border: var(--line-thin);
  border-radius: 12px;
}

/* The fake messages and pages shown in each round */
.artifact {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  padding: 14px 16px;
  background: var(--white);
  border: var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  overflow-wrap: anywhere;
}

.artifact-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.artifact-head strong {
  display: block;
  font-size: 15px;
  font-weight: 800;
}

.handle {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-muted);
}

.avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 42px;
  height: 42px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  background: var(--blue);
  border: var(--line);
  border-radius: 50%;
}

.avatar--post {
  background: var(--yellow);
}

.bubble {
  margin: 0;
  padding: 12px 14px;
  font-size: 15px;
  line-height: 1.45;
  background: var(--cream);
  border: var(--line-thin);
  border-radius: 16px 16px 16px 4px;
}

.artifact-text {
  font-size: 15px;
  line-height: 1.45;
}

.artifact-meta {
  font-size: 12px;
  color: var(--ink-muted);
}

.mail-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  font-size: 14px;
}

.mail-row .handle {
  display: inline;
}

.mail-key {
  min-width: 58px;
  font-weight: 800;
  color: var(--ink-muted);
}

.artifact--mail .artifact-text {
  padding-top: 10px;
  border-top: 2px solid var(--track);
}

.artifact--page {
  gap: 0;
  padding: 0;
  overflow: hidden;
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: var(--track);
  border-bottom: var(--line);
}

.browser-dots {
  display: flex;
  gap: 5px;
}

.browser-dots i {
  width: 10px;
  height: 10px;
  background: var(--white);
  border: var(--line-thin);
  border-radius: 50%;
}

.browser-url {
  flex: 1;
  min-width: 0;
  padding: 2px 12px;
  font-size: 13px;
  font-weight: 800;
  background: var(--white);
  border: var(--line-thin);
  border-radius: 999px;
}

.artifact-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px 16px;
}

/* Looks like a button on the fake page, but does nothing */
.fake-btn {
  display: inline-block;
  padding: 8px 18px;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--yellow);
  background: var(--ink);
  border-radius: 12px;
  pointer-events: none;
}

/* Checker: privacy line and the highlighted message */
.privacy-line {
  margin: 0;
  padding: 8px 12px;
  font-size: 15px;
  font-weight: 800;
  background: var(--mint-tint);
  border: var(--line-thin);
  border-radius: 12px;
}

.msg-highlight {
  padding: 12px 14px;
  font-size: 15px;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: var(--cream);
  border: var(--line-thin);
  border-radius: 12px;
}

.msg-highlight mark {
  padding: 0 2px;
  color: var(--ink);
  background: var(--yellow);
  border-bottom: 3px solid var(--coral);
  border-radius: 4px;
}

/* ---------- Launch a Token Simulator ---------- */

/* Row of small stat meters under the progress bar */
.stat-meters[hidden] {
  display: none;
}

.stat-meters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.meter-card {
  min-width: 0;
  padding: 6px 8px;
  background: var(--white);
  border: var(--line);
  border-radius: 12px;
}

.meter-card-head {
  display: flex;
  justify-content: space-between;
  gap: 4px;
  font-size: 12px;
  font-weight: 800;
  color: var(--ink-muted);
}

.meter-card-head b {
  color: var(--ink);
}

.mini-meter {
  height: 8px;
  margin-top: 4px;
  background: var(--track);
  border-radius: 5px;
  overflow: hidden;
}

.mini-meter > span {
  display: block;
  height: 100%;
  border-radius: 5px;
  transition: width 0.4s ease;
}

/* Bar colours (also used by the result bars) */
.fill-yellow,
.meter > span.fill-yellow { background: var(--yellow); }
.fill-coral,
.meter > span.fill-coral { background: var(--coral); }
.fill-blue,
.meter > span.fill-blue { background: var(--blue); }
.fill-mint,
.meter > span.fill-mint { background: var(--mint); }

/* Big title with the mascot beside it */
.title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.title-row h1 {
  flex: 1;
  min-width: 0;
}

/* The green tick on a selected choice */
.choice .check {
  position: absolute;
  top: -12px;
  right: 14px;
  display: none;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--mint);
  border: var(--line);
  border-radius: 50%;
}

.choice[aria-pressed='true'] .check {
  display: flex;
}

.choice[aria-pressed='true'] .choice-desc {
  color: var(--ink);
}

.choice:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Price headline on launch week screens */
.price-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.price-head .title-md {
  font-size: 22px;
}

.chart {
  display: block;
  width: 100%;
  height: auto;
}

/* Event card with the mascot peeking over the top edge */
.event-card {
  margin-top: 30px;
}

.event-card .title-md {
  max-width: calc(100% - 92px);
  font-size: 24px;
}

.mascot--peek {
  position: absolute;
  top: -38px;
  right: 8px;
  width: 88px;
  height: 88px;
}

/* Token split sliders */
.bucket {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bucket-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}

.bucket-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
}

.bucket-rule {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-muted);
}

.bucket-rule.hot {
  color: #c2273a;
}

.stepper {
  display: grid;
  grid-template-columns: var(--tap) minmax(0, 1fr) var(--tap);
  gap: 10px;
  align-items: center;
}

.stepper button {
  height: var(--tap);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  color: var(--ink);
  background: var(--yellow);
  border: var(--line);
  border-radius: 14px;
  box-shadow: 3px 3px 0 var(--ink);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.stepper button:active {
  transform: translate(3px, 3px);
  box-shadow: 0 0 0 var(--ink);
}

.stepper input[type='range'] {
  width: 100%;
  height: 32px;
  accent-color: var(--ink);
}

/* Sticky bar at the bottom of a step, holding the main button */
.sticky-bar {
  position: sticky;
  bottom: 0;
  z-index: 2;
  margin: 0 -18px;
  padding: 12px 18px calc(14px + env(safe-area-inset-bottom, 0px));
  background: var(--cream);
  border-top: var(--line);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sticky-bar .label.bad {
  color: #c2273a;
}

.steps-list {
  margin: 0;
  padding-left: 22px;
  font-size: 15px;
  line-height: 1.6;
}

/* ---------- Home, ranks and progress ---------- */

.pill-link {
  color: var(--ink);
  text-decoration: none;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
}

.pill-link:active {
  transform: translate(2px, 2px);
  box-shadow: 0 0 0 var(--ink);
}

.shelf-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.toy-grid--soon .toy-card {
  min-height: 0;
}

.rank-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 6px 12px;
  color: var(--ink);
  text-decoration: none;
}

.rank-card .label,
.rank-card .small-print {
  grid-column: 1 / -1;
}

.rank-card .go {
  font-family: var(--font-display);
  font-weight: 700;
}

.rank-card:active {
  transform: translate(4px, 4px);
  box-shadow: 0 0 0 var(--ink);
}

.rank-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-self: start;
  padding: 4px 14px 4px 4px;
  background: var(--yellow);
  border: var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
}

.rank-level {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  color: var(--yellow);
  background: var(--ink);
  border-radius: 50%;
  font-size: 16px;
}

.rank-badge--big {
  align-self: flex-start;
  font-size: 22px;
  background: var(--white);
}

.rank-badge--big .rank-level {
  width: 40px;
  height: 40px;
  font-size: 20px;
}

.rank-ladder {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rank-ladder li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  opacity: 0.5;
}

.rank-ladder li.is-done,
.rank-ladder li.is-current {
  opacity: 1;
}

.rank-ladder li.is-current .rank-badge {
  background: var(--mint);
}

/* ---------- Toy player ---------- */

/* Aki with a speech bubble */
.guide {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.guide-face {
  position: relative;
  flex: none;
  width: 72px;
  height: 72px;
}

.guide-face-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 12%;
  background: var(--yellow);
  border: var(--line);
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
}

/* Small mood badge: thinking, worried or celebrating */
.guide-face::after {
  content: attr(data-mood);
  position: absolute;
  right: -6px;
  bottom: -2px;
  font-size: 22px;
  line-height: 1;
}

.guide-bubble {
  position: relative;
  margin: 0 0 14px;
  padding: 10px 14px;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
  background: var(--white);
  border: var(--line);
  border-radius: 16px 16px 16px 4px;
  box-shadow: var(--shadow-sm);
}

.lesson-card .title-lg {
  font-size: 26px;
}

.lesson-points {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding-left: 22px;
  font-size: 15px;
  line-height: 1.4;
}

.tip {
  margin: 0;
  padding: 10px 12px;
  font-size: 14px;
  line-height: 1.4;
  background: var(--cream);
  border: var(--line-thin);
  border-radius: 12px;
}

/* Tap-to-flip tiles */
.reveal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.reveal-tile {
  min-height: 112px;
  padding: 12px;
  font: inherit;
  color: var(--ink);
  text-align: left;
  background: var(--yellow);
  border: var(--line);
  border-radius: 14px;
  box-shadow: 3px 3px 0 var(--ink);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.reveal-tile:active {
  transform: translate(3px, 3px);
  box-shadow: 0 0 0 var(--ink);
}

.reveal-front {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.15;
}

.reveal-hint {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 800;
  color: var(--ink-soft);
}

.reveal-back {
  display: none;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

.reveal-tile[aria-pressed='true'] {
  background: var(--white);
}

.reveal-tile[aria-pressed='true'] .reveal-front {
  display: none;
}

.reveal-tile[aria-pressed='true'] .reveal-back {
  display: block;
}

/* Answers that show right or wrong */
.choice.is-right {
  background: var(--mint-tint);
}

.choice.is-wrong {
  background: var(--coral-tint);
}

.choice.is-right .choice-title::before {
  content: '✓ ';
}

.choice.is-wrong .choice-title::before {
  content: '✗ ';
}

.choice:disabled.is-right,
.choice:disabled.is-wrong {
  opacity: 1;
  cursor: default;
}

/* Tap-through steps */
.step-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step-item {
  border: var(--line);
  border-radius: 14px;
  background: var(--white);
  overflow: hidden;
}

.step-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  min-height: var(--tap);
  padding: 10px 14px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  color: var(--ink);
  text-align: left;
  background: var(--white);
  border: 0;
  cursor: pointer;
}

.step-head::after {
  content: '+';
  font-size: 22px;
}

.step-item.is-open .step-head {
  background: var(--yellow);
  border-bottom: var(--line-thin);
}

.step-item.is-open .step-head::after {
  content: '−';
}

.step-body {
  display: none;
  margin: 0;
  padding: 10px 14px 12px;
}

.step-item.is-open .step-body {
  display: block;
}

/* Trending list */
.trend-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.trend-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  background: var(--cream);
  border: var(--line-thin);
  border-radius: 12px;
}

/* ---------- Quiz and certificate ---------- */

.timer {
  position: relative;
  height: 34px;
  background: var(--white);
  border: var(--line);
  border-radius: 999px;
  overflow: hidden;
}

.timer-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 100%;
  background: var(--mint);
  transition: width 0.2s linear;
}

.timer-fill.is-low {
  background: var(--coral);
}

.timer-text {
  position: relative;
  display: block;
  line-height: 28px;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
}

.review summary {
  cursor: pointer;
  min-height: 32px;
}

.review-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.review-list li {
  padding: 10px 12px;
  border: var(--line-thin);
  border-radius: 12px;
}

.review-list li.is-right {
  background: var(--mint-tint);
}

.review-list li.is-wrong {
  background: var(--coral-tint);
}

.certificate-preview {
  max-width: 100%;
  border: var(--line);
  border-radius: 14px;
}

.card--hero .mascot--peek,
.card--good .mascot--peek,
.card--warning .mascot--peek {
  top: -30px;
}

.card--good:has(.mascot--peek),
.card--warning:has(.mascot--peek),
.card--hero:has(.mascot--peek) {
  margin-top: 26px;
}

.btn-row a.btn {
  text-align: center;
}

/* ---------- Top menu bar (built by js/site.js) ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--cream);
  border-bottom: var(--line);
}

.topbar-inner {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  min-height: 62px;
  padding: 6px max(14px, env(safe-area-inset-right, 0px)) 6px max(14px, env(safe-area-inset-left, 0px));
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-img {
  display: block;
  width: auto;
  height: 42px;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

@keyframes spin {
  to { transform: rotateY(360deg); }
}

.btn--call {
  margin-left: auto;
  min-height: 42px;
  padding: 6px 12px;
  gap: 6px;
  font-size: 16px;
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}

.btn--call .icon {
  width: 20px;
  height: 20px;
}

.btn--call:active {
  transform: translate(2px, 2px);
}

.menu-btn {
  flex: none;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: var(--white);
  border: var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.menu-lines,
.menu-lines::before,
.menu-lines::after {
  display: block;
  width: 18px;
  height: 3px;
  background: var(--ink);
  border-radius: 3px;
  transition: transform 0.15s ease;
}

.menu-lines {
  position: relative;
}

.menu-lines::before,
.menu-lines::after {
  content: '';
  position: absolute;
  left: 0;
}

.menu-lines::before { top: -6px; }
.menu-lines::after { top: 6px; }

.topbar.is-open .menu-lines { background: transparent; }
.topbar.is-open .menu-lines::before { transform: translateY(6px) rotate(45deg); }
.topbar.is-open .menu-lines::after { transform: translateY(-6px) rotate(-45deg); }

/* Phone: the menu opens as a panel under the bar */
.topnav {
  display: none;
}

.topbar.is-open .topnav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 14px 16px;
  background: var(--cream);
  border-bottom: var(--line);
  box-shadow: 0 6px 0 rgba(31, 27, 46, 0.08);
}

.topnav-link {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 8px 12px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  color: var(--ink);
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: 12px;
}

.topnav-link:hover {
  background: var(--white);
  border-color: var(--ink);
}

.topnav-link[aria-current='page'] {
  background: var(--yellow);
  border-color: var(--ink);
}

@media (max-width: 370px) {
  .logo-img { height: 36px; }
  .btn--call .icon { display: none; }
  .btn--call { padding: 6px 10px; font-size: 15px; }
}

@media (min-width: 880px) {
  .logo-img { height: 48px; }

  .topnav,
  .topbar.is-open .topnav {
    position: static;
    display: flex;
    flex-direction: row;
    gap: 2px;
    margin-left: auto;
    padding: 0;
    border: 0;
    box-shadow: none;
    background: none;
  }

  .topnav-link {
    min-height: 40px;
    padding: 6px 10px;
    font-size: 16px;
  }

  .btn--call { margin-left: 6px; }
  .menu-btn { display: none; }
}

/* Footer links */
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 16px;
  margin-bottom: 6px;
}

.footer-link {
  font-size: 14px;
  font-weight: 800;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 6px 2px;
}

.footer-link:hover {
  text-decoration: underline;
}

/* ---------- Icons ---------- */

.icon {
  display: inline-block;
  flex: none;
  width: 24px;
  height: 24px;
  vertical-align: -6px;
}

.icon--lg {
  width: 40px;
  height: 40px;
}

.icon-badge {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  background: var(--accent-tint);
  border: var(--line-thin);
  border-radius: 12px;
}

/* ---------- Toy identities ---------- */
/* Each toy has a name, a cover, a heading font and an accent colour. They are
   set in data/home.json and in the data-font and data-accent of the toy page. */

[data-accent='blue'] { --accent: var(--blue); --accent-tint: #e2effb; }
[data-accent='mint'] { --accent: var(--mint); --accent-tint: var(--mint-tint); }
[data-accent='coral'] { --accent: var(--coral); --accent-tint: var(--coral-tint); }
[data-accent='violet'] { --accent: var(--violet); --accent-tint: #ece5ff; }
[data-accent='yellow'] { --accent: var(--yellow); --accent-tint: #fff1b8; }

[data-font='luckiest'] { --font-toy: 'Luckiest Guy', var(--font-display); --toy-scale: 0.92; --toy-spacing: 0.5px; }
[data-font='bungee'] { --font-toy: 'Bungee', var(--font-display); --toy-scale: 0.8; --toy-spacing: 0; }
[data-font='bangers'] { --font-toy: 'Bangers', var(--font-display); --toy-scale: 1.12; --toy-spacing: 1.2px; }
[data-font='chewy'] { --font-toy: 'Chewy', var(--font-display); --toy-scale: 1.04; --toy-spacing: 0.3px; }

.toy-font {
  font-family: var(--font-toy);
  font-weight: 400;
  letter-spacing: var(--toy-spacing, 0);
}

.title-lg.toy-font { font-size: calc(26px * var(--toy-scale, 1)); }
.title-sm.toy-font { font-size: calc(20px * var(--toy-scale, 1)); }

/* The toy's name and cover at the top of its page */
.toy-hero {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  text-decoration: none;
  color: var(--ink);
}

.toy-hero-cover {
  flex: none;
  width: 72px;
  height: 46px;
  object-fit: cover;
  border: var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  background: var(--accent);
}

.toy-hero-name {
  font-size: calc(22px * var(--toy-scale, 1));
  line-height: 1.05;
}

.toy-hero .small-print {
  font-size: 12px;
}

/* Lesson cards wear the toy's colour */
body[data-accent] .lesson-card {
  padding-top: 22px;
  box-shadow: var(--shadow), inset 0 10px 0 var(--accent);
}

body[data-accent] .progress > span.done {
  background: var(--accent);
}

body[data-accent] .guide-bubble,
body[data-accent] .tip {
  background: var(--accent-tint);
}

.card-kind {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  padding: 2px 10px 2px 4px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  background: var(--accent-tint);
  border: var(--line-thin);
  border-radius: 999px;
}

.card-kind .icon {
  width: 22px;
  height: 22px;
}

.lesson-card .doodle {
  position: absolute;
  top: 16px;
  right: 14px;
  width: 34px;
  height: 34px;
  transform: rotate(8deg);
  animation: float 3.5s ease-in-out infinite;
}

.lesson-card h1 {
  padding-right: 40px;
}

.lesson-points {
  list-style: none;
  padding-left: 0;
}

.lesson-points li {
  position: relative;
  padding-left: 26px;
}

.lesson-points li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 4px;
  width: 11px;
  height: 11px;
  background: var(--accent);
  border: 2px solid var(--ink);
  border-radius: 3px;
  transform: rotate(45deg);
}

.tip .icon {
  width: 22px;
  height: 22px;
  margin-right: 4px;
}

/* Home cards with covers */
.toy-cover {
  display: block;
  width: calc(100% + 32px);
  max-width: none;
  margin: -14px -16px 4px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-bottom: var(--line);
  border-radius: 15px 15px 0 0;
  background: var(--accent);
}

.toy-card .toy-sub {
  font-size: 13px;
  font-weight: 800;
  color: var(--ink-soft);
}

a.toy-card:hover .toy-cover {
  animation: nudge 0.5s ease;
}

/* ---------- Fun effects (js/site.js) ---------- */

.fx-confetti {
  position: fixed;
  inset: 0;
  z-index: 60;
  overflow: hidden;
  pointer-events: none;
}

.fx-confetti i {
  position: absolute;
  top: -16px;
  width: 9px;
  height: 14px;
  border: 1.5px solid var(--ink);
  border-radius: 2px;
  animation: confetti-fall 2s linear forwards;
}

@keyframes confetti-fall {
  to { transform: translate(var(--drift), 105vh) rotate(var(--spin)); }
}

.fx-coins {
  position: fixed;
  z-index: 60;
  width: 0;
  height: 0;
  pointer-events: none;
}

.fx-coins i {
  position: absolute;
  left: -13px;
  top: -13px;
  width: 26px;
  height: 26px;
  opacity: 0;
  animation: coin-pop 0.95s cubic-bezier(0.2, 0.8, 0.3, 1) forwards;
}

.fx-coins svg {
  display: block;
  width: 100%;
  height: 100%;
}

@keyframes coin-pop {
  0% { transform: translate(0, 0) scale(0.4); opacity: 0; }
  15% { opacity: 1; }
  60% { transform: translate(var(--x), var(--y)) scale(1) rotate(160deg); opacity: 1; }
  100% { transform: translate(var(--x), calc(var(--y) + 34px)) scale(0.8) rotate(320deg); opacity: 0; }
}

.fx-wobble {
  animation: wobble 0.5s ease;
}

@keyframes wobble {
  0%, 100% { translate: 0; rotate: 0deg; }
  20% { translate: -8px; rotate: -1.5deg; }
  40% { translate: 7px; rotate: 1deg; }
  60% { translate: -4px; rotate: -0.5deg; }
  80% { translate: 3px; rotate: 0deg; }
}

@keyframes nudge {
  0%, 100% { translate: 0; }
  40% { translate: 0 -4px; }
  70% { translate: 0 1px; }
}

@keyframes pop-in {
  from { scale: 0.6; opacity: 0; }
  to { scale: 1; opacity: 1; }
}

/* Gentle bounce on buttons when a mouse goes over them */
@media (hover: hover) {
  .btn:not(:disabled):hover,
  .choice:not(:disabled):hover,
  .reveal-tile:hover {
    animation: nudge 0.45s ease;
  }
}

.choice.is-right .choice-title,
.mascot--peek {
  animation: pop-in 0.35s cubic-bezier(0.3, 1.6, 0.5, 1);
}

/* ---------- Toy page with the shop panel ---------- */

.page--toy {
  max-width: 600px;
}

.toy-layout {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.toy-layout > main {
  min-width: 0;
}

.shop {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.shop:empty {
  display: none;
}

.shop-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.shop-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.shop-item {
  display: flex;
  gap: 12px;
  padding: 10px;
}

.shop-cover,
.book-cover {
  position: relative;
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 76px;
  aspect-ratio: 3 / 4;
  padding: 6px;
  overflow: hidden;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: center;
  background: var(--c, var(--yellow));
  border: var(--line);
  border-radius: 6px 12px 12px 6px;
  box-shadow: inset 6px 0 0 rgba(31, 27, 46, 0.18);
}

.shop-cover {
  align-self: flex-start;
}

.shop-cover img,
.book-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shop-cover .icon {
  width: 34px;
  height: 34px;
}

.shop-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
}

.shop-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  line-height: 1.15;
}

.price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
}

.btn--small {
  min-height: 40px;
  padding: 6px 14px;
  font-size: 16px;
  box-shadow: var(--shadow-sm);
}

.btn--small:active {
  transform: translate(2px, 2px);
}

.btn[aria-disabled='true'] {
  background: var(--track);
  color: var(--ink-muted);
  box-shadow: none;
  cursor: default;
}

@media (min-width: 980px) {
  .page--toy {
    max-width: 960px;
  }

  .toy-layout {
    display: grid;
    grid-template-columns: minmax(0, 600px) 300px;
    justify-content: space-between;
    align-items: start;
  }

  .shop {
    position: sticky;
    top: 86px;
  }
}

/* ---------- Real Toys, Books, About and Book a Call ---------- */

.page-hero {
  display: grid;
  gap: 10px;
}

.page-hero .mascot {
  position: absolute;
  right: 10px;
  bottom: 0;
}

.page-hero .page-hero-copy {
  max-width: calc(100% - 110px);
}

.concept-grid,
.book-grid,
.perk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.concept-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
}

.concept-card .toy-cover {
  aspect-ratio: 4 / 3;
}

.concept-card .lesson-points {
  flex: 1;
}

.vote[aria-pressed='true'] {
  background: var(--mint);
}

.book-card {
  display: flex;
  gap: 14px;
  height: 100%;
}

.book-card .book-cover {
  width: 100px;
  align-self: flex-start;
  font-size: 11px;
}

.book-cover .icon {
  width: 40px;
  height: 40px;
}

.book-cover b {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.1;
}

.perk {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  height: 100%;
}

.about-photo {
  display: block;
  width: min(100%, 320px);
  height: auto;
  margin: 0 auto;
}

.todo {
  background: #fff1b8;
  border: 2px dashed var(--ink);
  border-radius: 8px;
  padding: 0 4px;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-weight: 800;
}

.check-row input {
  width: 22px;
  height: 22px;
  accent-color: var(--ink);
}

/* ---------- Home page ---------- */

body.home .page,
body.home .topbar-inner {
  max-width: 1200px;
}

body.home .page {
  padding-top: 14px;
  gap: 12px;
}

.home-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.home-top .home-earn {
  flex-basis: 100%;
}

.tagline {
  flex: 1;
  min-width: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.25;
}

.rank-link {
  flex: none;
  text-decoration: none;
}

.rank-badge--name {
  padding: 4px 14px;
  font-size: 15px;
}

@media (min-width: 700px) {
  .tagline { font-size: 17px; }
}

.shelf {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 18px;
  border-top: 3px dashed rgba(31, 27, 46, 0.25);
}

/* The first section on the page needs no line above it */
.home-top + .shelf,
.home-top + .shelf-row > .shelf:first-child {
  padding-top: 4px;
  border-top: 0;
}

/* Sections marked "column" in data/home.json sit side by side on wider
   screens: one column each (--cols, set by js/home.js), cards stacked. */
.shelf-row {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.shelf-row + .shelf,
.shelf + .shelf,
.shelf + .shelf-row,
.shelf-row + .shelf-row {
  margin-top: 14px;
}

@media (min-width: 700px) {
  .shelf-row {
    display: grid;
    grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr));
    gap: 32px 16px;
    align-items: start;
  }

  .shelf-row > .shelf {
    min-width: 0;
  }

  .shelf-row > .shelf + .shelf {
    margin-top: 0;
  }

  .shelf-row .shelf-title {
    font-size: min(28px, 3.2vw);
    white-space: nowrap;
  }

  .home-top + .shelf-row > .shelf {
    padding-top: 4px;
    border-top: 0;
  }

  .shelf-row > .shelf .tile-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (min-width: 1100px) {
  .shelf-row {
    gap: 32px 22px;
  }
}

/* Coming soon: smaller cards, two across on phones */
.shelf--soon .tile-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.shelf--soon .tile-soon {
  top: 4px;
  right: 5px;
  padding: 0 5px;
  font-size: 8px;
  border-width: 1.5px;
}

@media (min-width: 700px) {
  .shelf--soon .tile-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
}

@media (min-width: 1100px) {
  .shelf--soon .tile-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
}

.shelf--blue { --shelf: var(--blue); }

.shelf-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 14px;
}

/* The section name: a big sticker in the section's colour */
.shelf-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px 4px 10px;
  font-family: 'Luckiest Guy', var(--font-display);
  font-weight: 400;
  font-size: 26px;
  letter-spacing: 0.6px;
  line-height: 1;
  color: var(--ink);
  background: var(--shelf, var(--yellow));
  border: var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  rotate: -1.5deg;
}

.shelf-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-top: -2px;
  font-size: 20px;
  background: var(--white);
  border: var(--line-thin);
  border-radius: 50%;
}

.shelf-blurb {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  color: var(--ink-soft);
}

.shelf--yellow { --shelf: var(--yellow); }
.shelf--mint { --shelf: var(--mint); }
.shelf--coral { --shelf: var(--coral); }
.shelf--violet { --shelf: var(--violet); }

@media (min-width: 700px) {
  .shelf-title { font-size: 32px; }
  .shelf-icon { width: 40px; height: 40px; font-size: 24px; }
}

.tile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 700px) {
  .tile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
}

@media (min-width: 1100px) {
  .tile-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
}

/* ---------- Toy cards: every card is its own little logo ----------
   The only thing they share is the rounded corners. Sizes use cqi (a
   percentage of the card's width) so titles scale with the card. */

.xcard {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 2.7 / 1;
  overflow: hidden;
  border-radius: 18px;
  container-type: inline-size;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.xart {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.xart * {
  transform-box: fill-box;
  transform-origin: center;
}

.xtitle {
  position: relative;
  z-index: 1;
  padding: 0 14cqi;
  text-align: center;
  line-height: 1.05;
}

.xcard .tile-img {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  opacity: 0;
}

.xcard.has-cover .tile-img {
  opacity: 1;
}

.tile-sticker {
  position: absolute;
  z-index: 4;
  font-family: var(--font-body);
  font-weight: 800;
  border: 2px solid var(--ink);
}

.tile-soon {
  top: 7px;
  right: 9px;
  padding: 1px 8px;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--white);
  border-radius: 999px;
  rotate: 5deg;
}

.tile-done {
  top: 7px;
  right: 9px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  font-size: 15px;
  background: var(--mint);
  border-radius: 50%;
}

.xcard:focus-visible {
  outline: 4px solid var(--blue);
  outline-offset: 3px;
}

/* 1. Genesis Block: pixels and a yellow glow */
.xcard--crypto-in-5 {
  background: #0b0b14;
  box-shadow: 0 0 0 3px #2a2a3d;
}

.xcard--crypto-in-5 .xtitle {
  font-size: 6.6cqi;
  line-height: 1.35;
  color: #ffe45c;
  text-shadow: 0 0 6px rgba(255, 217, 61, 0.9), 0 0 18px rgba(255, 217, 61, 0.55), 3px 3px 0 #7a5a00;
}

.xcard--crypto-in-5:hover .pblock {
  animation: px-hop 0.5s steps(2) var(--d) 2;
}

@keyframes px-hop {
  50% { transform: translateY(-3px); }
}

/* 2. Not Your Keys: white, thick yellow border, a key ring O */
.xcard--getting-started {
  background: #fff;
  border: 7px solid #ffd93d;
  box-shadow: 0 0 0 2.5px var(--ink);
}

.xcard--getting-started .xtitle {
  font-size: 9.4cqi;
  color: var(--ink);
  white-space: nowrap;
  padding: 0;
}

.keyring {
  display: inline-block;
  width: 0.78em;
  height: 0.78em;
  margin: 0 0.04em;
  vertical-align: -0.02em;
}

.keyring svg {
  display: block;
  width: 100%;
  height: 150%;
  overflow: visible;
}

.ringkey {
  transform-box: view-box;
  transform-origin: 20px 20px;
  transition: transform 0.4s cubic-bezier(0.3, 1.6, 0.5, 1);
}

.xcard--getting-started:hover .ringkey {
  transform: rotate(-35deg);
}

/* 3. Don't Get Rekt: caution stripes, red comic title, a shake */
.xcard--dont-lose-money {
  background: #ffe14d;
  box-shadow: 0 0 0 3px var(--ink);
}

.xcard--dont-lose-money .xtitle {
  font-size: 11.5cqi;
  letter-spacing: 0.04em;
  color: #e8262f;
  -webkit-text-stroke: 0.035em var(--ink);
  paint-order: stroke fill;
  text-shadow: 0.05em 0.05em 0 var(--ink);
  rotate: -3deg;
  padding: 0 20cqi;
}

.xcard--dont-lose-money:hover .xtitle {
  animation: rekt-shake 0.35s linear 2;
}

.xcard--dont-lose-money:hover .rekt-skull {
  animation: rekt-shake 0.35s linear 2 reverse;
}

@keyframes rekt-shake {
  0%, 100% { translate: 0 0; }
  25% { translate: -3px 1px; }
  50% { translate: 3px -1px; }
  75% { translate: -2px -1px; }
}

/* 4. Stack Sats: purple, gold gradient title with a hard shadow */
.xcard--earn-small {
  background: #ffe27a;
  box-shadow: 4px 4px 0 #1f1b2e;
}

.xcard--earn-small .xtitle {
  font-size: 12.5cqi;
  font-weight: 800;
  color: #1f1b2e;
  text-shadow: 3px 3px 0 #ff9ec4;
  padding: 0 27cqi;
}

.xcard--earn-small:hover .drop {
  animation: coin-drop 0.7s ease-in 1;
}

.xcard--earn-small:hover .chute {
  animation: bob 1.2s ease-in-out 1;
}

@keyframes coin-drop {
  70% { transform: translateY(20px); opacity: 1; }
  100% { transform: translateY(22px); opacity: 0; }
}

}

/* 5. Famous Web3 Hacks: a case file with a stamp */
.xcard--web3-hacks {
  background: #e8c887;
  box-shadow: 3px 4px 0 #a07c3c;
}

.xcard--web3-hacks .xtitle {
  font-size: 8.4cqi;
  color: #2b2b2b;
  padding: 0 22cqi 0 12cqi;
}

.stamp {
  position: absolute;
  bottom: -1.1em;
  right: 20cqi;
  padding: 0.05em 0.3em;
  font-size: 0.55em;
  letter-spacing: 0.12em;
  color: #c8102e;
  border: 0.12em solid #c8102e;
  border-radius: 0.15em;
  rotate: -12deg;
  opacity: 0.85;
}

.xcard--web3-hacks:hover .stamp {
  animation: thump 0.4s cubic-bezier(0.3, 1.6, 0.5, 1);
}

@keyframes thump {
  0% { scale: 1.8; opacity: 0; }
  60% { scale: 0.92; opacity: 1; }
  100% { scale: 1; }
}

/* 6. Spot the Scam: an envelope and a marker title */
.xcard--scam {
  background: #fff6e5;
  box-shadow: 3px 3px 0 #b8a37a;
}

.xcard--scam .xtitle {
  font-size: 11cqi;
  color: var(--ink);
  rotate: -2deg;
  text-decoration: underline wavy #e63946 0.06em;
  text-underline-offset: 0.18em;
}

.xcard--scam .hook {
  transform-box: view-box;
  transform-origin: 30px 0;
}

.xcard--scam:hover .hook {
  animation: sway 0.8s ease-in-out 2;
}

@keyframes sway {
  25% { transform: rotate(10deg); }
  75% { transform: rotate(-8deg); }
}

/* 7. Launch a Token Simulator: a sky and a rocket */
.xcard--token-simulator {
  background: #7cc8ff;
  box-shadow: 0 4px 0 #3b8fd0;
}

.xcard--token-simulator .xtitle {
  font-size: 7.6cqi;
  color: #ff5a5f;
  padding: 0 18cqi 0 8cqi;
}

.xcard--token-simulator:hover .rocket {
  animation: launch 0.9s ease-in forwards;
}

@keyframes launch {
  30% { translate: -2px 2px; }
  100% { translate: 40px -80px; }
}

/* 8. Fish the Dead Projects: dark water, a creepy title */
.xcard--dead-projects {
  background: #1e7f9c;
  box-shadow: 4px 4px 0 #0b3a4a;
}

.xcard--dead-projects .xtitle {
  font-size: 8.4cqi;
  line-height: 1.1;
  color: #fff;
  text-shadow: 2px 3px 0 #0b3a4a;
  padding: 0 27cqi 6cqi;
}

.xcard--dead-projects .weed {
  transform-box: fill-box;
  transform-origin: 50% 100%;
}

.xcard--dead-projects:hover .weed {
  animation: sway 1.2s ease-in-out var(--d) 2;
}

@keyframes sway {
  50% { rotate: 8deg; }
}

@media (prefers-reduced-motion: reduce) {
  .xcard--earn-small:hover .drop, .xcard--earn-small:hover .chute, .xcard--dead-projects:hover .weed { animation: none; }
}

.xcard--dead-projects:hover .line {
  animation: bob 0.9s ease-in-out 2;
}

.xcard--dead-projects:hover .bubbles {
  animation: rise 1.4s ease-out;
}

@keyframes bob {
  50% { transform: translateY(5px); }
}

@keyframes rise {
  to { transform: translateY(-18px); opacity: 0; }
}

/* 9. Ways to the Moon: neon on a night sky */
.xcard--ways-to-moon {
  background: #0b1033;
  box-shadow: 0 0 0 2px #3a2a8a;
}

.xcard--ways-to-moon .xtitle {
  font-size: 9.6cqi;
  color: #ff7ae0;
  text-shadow: 0 0 4px #ff4fd8, 0 0 14px #ff4fd8, 0 0 28px rgba(255, 79, 216, 0.6);
  padding: 0 20cqi 0 10cqi;
}

.xcard--ways-to-moon:hover .xtitle {
  animation: flicker 1s linear;
}

.xcard--ways-to-moon:hover .twinkle {
  animation: twinkle 0.8s ease-in-out var(--d) 2;
}

@keyframes flicker {
  10%, 30% { opacity: 0.4; }
  20%, 40%, 100% { opacity: 1; }
}

@keyframes twinkle {
  50% { transform: scale(2.4); }
}

/* Career in Web3 */
.xcard--first-job {
  background: #c8925a;
  box-shadow: inset 0 0 0 5px #8a5a2b;
}

.xcard--first-job .xtitle {
  font-size: 8.8cqi;
  color: #fff8e1;
  text-shadow: 2px 2px 0 #4a2a10, 0 0 1px #4a2a10;
  padding: 0 24cqi;
}

.xcard--first-job .note {
  transform-box: fill-box;
  transform-origin: top center;
}

.xcard--first-job:hover .note {
  animation: sway 0.9s ease-in-out;
}

.xcard--web3-roles {
  background: #2ec4b6;
  box-shadow: 0 5px 0 #1d6fd6;
}

.xcard--web3-roles .xtitle {
  font-size: 8cqi;
  color: #fff;
  text-shadow: 3px 3px 0 #0b3a6e;
  padding: 0 24cqi;
}

.xcard--web3-roles:hover .badge {
  animation: fan 0.5s ease;
}

@keyframes fan {
  50% { transform: rotate(14deg) translateY(-3px); }
}

.xcard--hall-of-fame {
  background: #fff8e1;
  box-shadow: 0 0 0 3px #1f1b2e, 4px 4px 0 3px #e8b923;
}

.xcard--hall-of-fame .xtitle {
  font-size: 8.4cqi;
  font-weight: 700;
  line-height: 1;
  color: #1f1b2e;
  text-shadow: 2px 2px 0 #ffd93d;
  padding: 0 24cqi;
  transform: rotate(-3deg);
}

.xcard--hall-of-fame .frame {
  transform-box: fill-box;
  transform-origin: 50% 0;
}

.xcard--hall-of-fame:hover .frame {
  animation: hof-swing 0.6s ease-in-out 2;
}

.xcard--hall-of-fame:hover .sparkle {
  animation: twinkle 0.6s ease-in-out 2;
}

@keyframes hof-swing {
  50% { rotate: 6deg; }
}

@media (prefers-reduced-motion: reduce) {
  .xcard--hall-of-fame:hover .frame { animation: none; }
}

/* For Entrepreneurs */
.xcard--raise-first-round {
  background: #d8ebcf;
  box-shadow: 3px 3px 0 #2f5e3a;
}

.xcard--raise-first-round .xtitle {
  font-size: 9.4cqi;
  color: #234d2c;
  padding: 0 14cqi 0 20cqi;
}

.xcard--raise-first-round:hover .seal {
  animation: spin-seal 0.8s ease;
}

@keyframes spin-seal {
  to { transform: rotate(360deg); }
}

.xcard--tokenomics-basics {
  background: #1e5aa8;
  box-shadow: 0 0 0 2px #0f3a75;
}

.xcard--tokenomics-basics .xtitle {
  font-size: 7.4cqi;
  color: #fff;
  padding: 0 24cqi 0 8cqi;
}

.xcard--tokenomics-basics:hover .pie {
  animation: spin-seal 1s ease;
}

/* Play and Learn: What If You Invested $100 and Read the Token Split */
.xcard--invest-100 {
  background: #06140c;
  box-shadow: inset 0 0 22px rgba(57, 255, 136, 0.25), 0 0 0 2px #0f3a20;
}

.xcard--invest-100 .xtitle {
  font-size: 12.5cqi;
  line-height: 0.95;
  color: #39ff88;
  text-shadow: 0 0 8px rgba(57, 255, 136, 0.7);
}

.xcard--invest-100 .chart {
  stroke-dasharray: 420;
}

.xcard--invest-100:hover .chart {
  animation: draw 1.2s ease-out;
}

@keyframes draw {
  from { stroke-dashoffset: 420; }
  to { stroke-dashoffset: 0; }
}

.xcard--token-split {
  background: #fff;
  box-shadow: 3px 3px 0 #9b1c26;
}

.xcard--token-split .xtitle {
  font-size: 11cqi;
  color: #fff;
  text-shadow: -2px -2px 0 #9b1c26, 2px -2px 0 #9b1c26, -2px 2px 0 #9b1c26, 2px 2px 0 #9b1c26, 4px 4px 0 #9b1c26;
  padding: 0 22cqi;
}

.xcard--token-split:hover .slice {
  animation: pull 0.6s ease;
}

@keyframes pull {
  50% { transform: translateY(-5px) rotate(-8deg); }
}

/* Hover on every card: a small lift, each card its own way above */
a.xcard {
  transition: translate 0.2s ease;
}

a.xcard:hover {
  translate: 0 -3px;
}

a.xcard:active {
  translate: 0 1px;
}

/* ---------- Sound toggle (any toy) ---------- */

.sound-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  font-size: 18px;
  background: var(--white);
  border: var(--line);
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.sound-btn[aria-pressed='true'] {
  background: var(--yellow);
}

/* ---------- Ride the Chart ---------- */

.ride-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ride-hero-name {
  font-family: 'Luckiest Guy', var(--font-display);
  font-size: 22px;
  letter-spacing: 0.5px;
}

.ride-title {
  font-family: 'Luckiest Guy', var(--font-display);
  font-weight: 400;
  font-size: 40px;
  letter-spacing: 0.5px;
  line-height: 1;
}

.ride-intro {
  display: grid;
  gap: 8px;
}

.coin-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

@media (min-width: 560px) {
  .coin-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

.coin-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 8px 4px;
  font: inherit;
  color: var(--ink);
  background: none;
  border: 0;
  cursor: pointer;
}

.coin-face {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  font-family: 'Luckiest Guy', var(--font-display);
  font-size: 17px;
  letter-spacing: 0.5px;
  color: var(--t, var(--ink));
  background: var(--c, var(--yellow));
  border: var(--line);
  border-radius: 50%;
  box-shadow: inset 0 -6px 0 rgba(0, 0, 0, 0.18), var(--shadow);
  transition: transform 0.15s ease;
}

.coin-name {
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  line-height: 1.2;
}

.coin-btn:hover .coin-face {
  transform: translateY(-4px) rotate(-8deg);
}

.coin-btn:active .coin-face {
  transform: scale(0.94);
}

.ride-month {
  font-family: 'Luckiest Guy', var(--font-display);
  font-size: 42px;
  line-height: 1;
}

.ride-spark {
  display: block;
  width: 100%;
  height: 90px;
  background: var(--white);
  border: var(--line-thin);
  border-radius: 12px;
}

.ride-slider {
  width: 100%;
  height: 44px;
  accent-color: var(--ink);
}

.ride-wrap {
  position: relative;
  display: grid;
  gap: 10px;
}

.ride-hud {
  display: grid;
  gap: 2px;
  text-align: center;
}

.ride-value {
  font-family: 'Luckiest Guy', var(--font-display);
  font-size: 54px;
  line-height: 1;
  letter-spacing: 1px;
}

.ride-value.is-up { color: #1f8a3a; }
.ride-value.is-down { color: #c2273a; }

.ride-meta {
  font-weight: 800;
  font-size: 14px;
  color: var(--ink-soft);
}

.ride-stage {
  overflow: hidden;
  background: var(--cream);
  border: var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  transition: background 0.4s ease;
}

.ride-svg {
  display: block;
  width: 100%;
  height: auto;
}

.ride-base {
  stroke: var(--ink);
  stroke-width: 2;
  stroke-dasharray: 8 8;
  opacity: 0.45;
}

.ride-base-label {
  font: 800 22px var(--font-body);
  fill: var(--ink);
  opacity: 0.6;
}

.ride-supports line {
  stroke: #8a7a5a;
  stroke-width: 4;
  opacity: 0.55;
}

.ride-rail-under {
  fill: none;
  stroke: var(--ink);
  stroke-width: 14;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.ride-rail {
  fill: none;
  stroke: var(--yellow);
  stroke-width: 5;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.ride-fog {
  fill: rgba(255, 255, 255, 0.55);
}

.ride-cart.is-ghost {
  opacity: 0.45;
}

.ride-pause {
  position: absolute;
  left: 8px;
  right: 8px;
  top: 40%;
  z-index: 3;
  display: grid;
  gap: 8px;
  text-align: center;
  background: var(--white);
  box-shadow: var(--shadow-lg);
  animation: pop-in 0.3s cubic-bezier(0.3, 1.6, 0.5, 1);
}

.ride-go {
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.ride-rank .title-lg {
  font-family: 'Luckiest Guy', var(--font-display);
  font-weight: 400;
  letter-spacing: 0.5px;
}

.ride-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.ride-stat {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
}

.ride-stat-big {
  font-family: 'Luckiest Guy', var(--font-display);
  font-size: 28px;
  line-height: 1.05;
}

.ride-sample {
  background: #fff1b8;
}

/* ---------- The Vault Dive ---------- */

.vtop {
  display: grid;
  gap: 12px;
  text-align: center;
}

.vtitle {
  font-family: 'Luckiest Guy', var(--font-display);
  font-weight: 400;
  font-size: 44px;
  letter-spacing: 0.5px;
  line-height: 1;
}

.vtop-art {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 10px;
}

.vtop-art .vdoor-svg {
  width: 150px;
}

.vtop-art .vpile-svg {
  width: 150px;
}

/* The coin pile and running total stay at the top while you scroll */
.vhud {
  position: sticky;
  top: 70px;
  z-index: 5;
  display: grid;
  grid-template-columns: 64px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  background: var(--white);
  border: var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.vpile-svg {
  display: block;
  width: 100%;
}

.vhud-lost {
  font-family: 'Luckiest Guy', var(--font-display);
  font-size: 30px;
  line-height: 1;
  color: #c2273a;
}

.vhud-side {
  text-align: right;
}

.vfloors {
  display: grid;
  margin: 0 -18px;
}

/* Each floor gets darker the deeper you go */
.vfloor {
  display: grid;
  gap: 14px;
  justify-items: center;
  min-height: 92vh;
  align-content: center;
  padding: 40px 18px;
  background: color-mix(in srgb, #0b1033 calc(var(--depth) * 92%), #fff8e1);
  border-top: 3px dashed rgba(31, 27, 46, 0.2);
}

.vfloor.is-deep {
  color: #fff8e1;
}

.vlevel {
  font-family: 'Luckiest Guy', var(--font-display);
  font-size: 22px;
  letter-spacing: 1px;
  opacity: 0.8;
}

.vdoor {
  width: 150px;
  perspective: 600px;
}

.vdoor-svg {
  display: block;
  width: 100%;
  height: auto;
}

.vdoor .vdoor-svg {
  transform-origin: left center;
  transition: transform 0.9s cubic-bezier(0.3, 1.2, 0.5, 1), opacity 0.9s ease;
}

.vdoor-wheel {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 0.5s ease;
}

.vdoor.is-open .vdoor-wheel {
  transform: rotate(180deg);
}

.vdoor.is-open .vdoor-svg {
  transform: rotateY(-75deg);
  opacity: 0.5;
  transition-delay: 0.35s;
}

.vcard {
  width: 100%;
  max-width: 520px;
  color: var(--ink);
}

.vguess-amount {
  font-family: 'Luckiest Guy', var(--font-display);
  font-size: 40px;
  line-height: 1;
  text-align: center;
}

.vscale {
  display: flex;
  justify-content: space-between;
  margin-top: -8px;
}

.vcard--open {
  animation: pop-in 0.4s cubic-bezier(0.3, 1.6, 0.5, 1);
}

.vlost {
  font-family: 'Luckiest Guy', var(--font-display);
  font-size: 38px;
  line-height: 1;
  color: #c2273a;
}

.vpoints {
  font-weight: 800;
  padding: 4px 10px;
  justify-self: start;
  background: var(--coral-tint);
  border: var(--line-thin);
  border-radius: 999px;
}

.vpoints.is-good {
  background: var(--mint-tint);
}

.vscroll {
  font-weight: 800;
  animation: float 1.6s ease-in-out infinite;
}

.vbottom {
  padding: 40px 18px;
  background: #0b1033;
}

.vbottom .section-title {
  color: #fff8e1;
}

/* ---------- Rug or Real ---------- */

.split-intro {
  text-align: center;
}

.split-title {
  font-family: 'Luckiest Guy', var(--font-display);
  font-weight: 400;
  font-size: 44px;
  letter-spacing: 0.5px;
  line-height: 1;
}

.split-demo {
  display: flex;
  justify-content: center;
  gap: 18px;
  padding: 10px 0;
}

.split-demo .split-stamp {
  position: static;
  opacity: 1;
}

.split-top {
  display: flex;
  justify-content: space-between;
  font-weight: 800;
}

.split-deck {
  position: relative;
  touch-action: pan-y;
  /* Cards fly off sideways; clip them so the page never gets wider than the
     phone. The padding keeps the card's shadow visible. */
  overflow-x: clip;
  padding: 0 8px 8px 0;
  margin-right: -8px;
}

.split-card {
  position: relative;
  display: grid;
  gap: 10px;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.split-card.is-dragging {
  cursor: grabbing;
  transition: none;
}

.split-card.is-flying-left { transform: translateX(-120%) rotate(-18deg); opacity: 0; }
.split-card.is-flying-right { transform: translateX(120%) rotate(18deg); opacity: 0; }
.split-card.is-flying-down { transform: translateY(40px) scale(0.92); opacity: 0.3; }

.split-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
}

.split-ticker {
  font-size: 16px;
  color: var(--ink-muted);
}

.split-chart {
  display: grid;
  grid-template-columns: 150px 1fr;
  align-items: center;
  gap: 12px;
}

.split-pie {
  width: 150px;
  height: 150px;
}

.split-pct {
  font: 800 15px var(--font-body);
  fill: #1f1b2e;
  paint-order: stroke;
  stroke: #fff;
  stroke-width: 3px;
}

.split-legend {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  font-weight: 700;
}

.split-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 6px;
  vertical-align: -1px;
  border: 2px solid var(--ink);
  border-radius: 3px;
}

.split-stamp {
  position: absolute;
  top: 18px;
  z-index: 2;
  padding: 2px 12px;
  font-family: 'Luckiest Guy', var(--font-display);
  font-size: 30px;
  letter-spacing: 2px;
  border: 4px solid currentColor;
  border-radius: 10px;
  opacity: 0;
  pointer-events: none;
}

.split-stamp.is-rug { right: 16px; color: #c2273a; rotate: 12deg; }
.split-stamp.is-real { left: 16px; color: #1f8a3a; rotate: -12deg; }

.split-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.split-btn--rug { background: var(--coral-tint); }
.split-btn--real { background: var(--mint-tint); }

.split-result {
  animation: pop-in 0.3s cubic-bezier(0.3, 1.6, 0.5, 1);
}

@media (max-width: 380px) {
  .split-chart { grid-template-columns: 120px 1fr; }
  .split-pie { width: 120px; height: 120px; }
}

/* ---------- Coins ---------- */

/* The counter in the menu bar: computers only; on phones it is in the menu */
.coin-count {
  display: none;
  align-items: center;
  gap: 4px;
  padding: 4px 10px 4px 6px;
  font-weight: 800;
  font-size: 15px;
  color: var(--ink);
  text-decoration: none;
  background: var(--white);
  border: var(--line-thin);
  border-radius: 999px;
}

.coin-count .icon {
  width: 22px;
  height: 22px;
}

@media (min-width: 880px) {
  .coin-count:not([hidden]) {
    display: inline-flex;
    margin-left: 6px;
  }

  .menu-coins {
    display: none !important;
  }
}

.coin-pop {
  position: fixed;
  z-index: 70;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 10px 3px 8px;
  font: 800 16px var(--font-body);
  color: var(--ink);
  background: var(--yellow);
  border: var(--line-thin);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  pointer-events: none;
  animation: coin-float 1.5s ease-out forwards;
}

.coin-pop .icon {
  width: 20px;
  height: 20px;
}

@keyframes coin-float {
  0% { translate: 0 8px; opacity: 0; scale: 0.7; }
  15% { translate: 0 0; opacity: 1; scale: 1; }
  75% { translate: 0 -26px; opacity: 1; }
  100% { translate: 0 -40px; opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .coin-pop {
    animation: coin-fade 1.5s steps(1) forwards !important;
  }
}

@keyframes coin-fade {
  to { opacity: 0; }
}



.coins-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.coins-balance {
  font-family: 'Luckiest Guy', var(--font-display);
  font-size: 30px;
  line-height: 1;
}

.coins-history ul {
  display: grid;
  gap: 4px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
}

.coins-history li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.coins-history b { color: #1f8a3a; }
.coins-history b.is-spent { color: #c2273a; }






.coins-choices {
  margin: 0;
  padding: 0;
  border: 0;
}

.check-row.is-locked {
  color: var(--ink-muted);
}

/* ---------- Fish the Dead Projects ---------- */

.fish-intro {
  text-align: center;
}

.fish-title {
  font-family: 'Luckiest Guy', var(--font-display);
  font-weight: 400;
  font-size: 38px;
  letter-spacing: 0.5px;
  line-height: 1;
}

.fish-hud {
  display: flex;
  justify-content: space-between;
  font-weight: 800;
}

.fish-stage {
  overflow: hidden;
  border: var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  background: #03121b;
}

.fish-scene {
  display: block;
  width: 100%;
  height: auto;
}

.fish-float-inner {
  transform-box: fill-box;
  transform-origin: center;
}

.fish-line,
.fish-float {
  transition: transform 0.5s cubic-bezier(0.3, 1.2, 0.5, 1), d 0.5s ease;
}

.is-waiting .fish-float-inner {
  animation: bob-float 1.4s ease-in-out infinite;
}

.is-bite .fish-float-inner {
  animation: dip 0.35s ease-in-out infinite;
}

.is-reeling .fish-float-inner {
  animation: dip 0.6s ease-in-out infinite;
}

@keyframes bob-float {
  50% { transform: translateY(2px); }
}

@keyframes dip {
  50% { transform: translateY(9px); }
}

.fish-power,
.fish-reel {
  position: relative;
  height: 30px;
  overflow: hidden;
  background: var(--white);
  border: var(--line);
  border-radius: 999px;
}

.fish-power span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: linear-gradient(90deg, var(--mint), var(--yellow), var(--coral));
}

.fish-zone {
  position: absolute;
  top: 0;
  bottom: 0;
  background: var(--mint);
  border-left: 2px solid var(--ink);
  border-right: 2px solid var(--ink);
}

.fish-marker {
  position: absolute;
  top: -2px;
  bottom: -2px;
  width: 8px;
  margin-left: -4px;
  background: var(--ink);
  border-radius: 4px;
}

.fish-hits {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 20px;
}

.fish-dot {
  width: 16px;
  height: 16px;
  background: var(--white);
  border: var(--line-thin);
  border-radius: 50%;
}

.fish-dot.is-hit {
  background: var(--mint);
}

.fish-miss {
  margin-left: 6px;
  font-weight: 800;
  color: #c2273a;
}

.fish-act {
  min-height: 64px;
  font-size: 22px;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.fish-act--wait {
  background: var(--track);
}

.fish-card {
  animation: pop-in 0.35s cubic-bezier(0.3, 1.6, 0.5, 1);
}

.fish-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.fish-icon {
  flex: none;
  width: 72px;
  height: 36px;
}

.fish-card--r2 { background: #e2effb; }
.fish-card--r3 { background: #fff1b8; }

.fish-box {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.fish-box li {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 2px;
  min-height: 72px;
  padding: 6px;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  color: var(--ink-muted);
  background: var(--track);
  border: var(--line-thin);
  border-radius: 12px;
}

.fish-box li.is-caught {
  color: var(--ink);
  background: var(--white);
}

.fish-box li.fish-card--r2 { background: #e2effb; }
.fish-box li.fish-card--r3 { background: #fff1b8; }

.fish-box .fish-icon {
  width: 52px;
  height: 26px;
}

/* ---------- Fish the Dead Projects: shark dive ---------- */

.dive-hud {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 800;
}

.dive-year {
  font-family: 'Luckiest Guy', var(--font-display);
  font-size: 22px;
}

.dive-ocean {
  --depth: 0;
  position: relative;
  height: min(52vh, 520px);
  overflow: hidden;
  border: var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  background: color-mix(in srgb, #020a10 calc(var(--depth) * 100%), #2a8bb0);
  touch-action: none;
}

.dive-world {
  position: absolute;
  inset: 0 0 auto 0;
  will-change: transform;
}

.dive-mark {
  position: absolute;
  left: 8px;
  right: 8px;
  padding-top: 4px;
  font-family: 'Luckiest Guy', var(--font-display);
  font-size: 18px;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.75);
  border-top: 2px dashed rgba(255, 255, 255, 0.35);
}

.dfish {
  position: absolute;
  display: grid;
  justify-items: center;
  width: 34%;
  max-width: 150px;
  text-align: center;
  transition: transform 0.25s ease, opacity 0.25s ease;
  animation: swim 2.4s ease-in-out infinite alternate;
}

.dfish:nth-child(odd) { animation-delay: -1.2s; }

@keyframes swim {
  from { translate: -6px 0; }
  to { translate: 6px 0; }
}

.dfish-svg {
  width: 84px;
  height: 42px;
}

.dfish--r1 .dfish-fill { fill: #b7c9a8; }
.dfish--r2 .dfish-fill { fill: #8fc8f0; }
.dfish--r3 .dfish-fill { fill: #ffd93d; }
.dfish.is-fresh .dfish-fill { fill: #ff9f8f; }

.dfish-num {
  margin-top: -6px;
  padding: 0 8px;
  font: 800 13px var(--font-body);
  color: var(--ink);
  background: var(--yellow);
  border: 2px solid var(--ink);
  border-radius: 999px;
}

.dfish-name {
  margin-top: 2px;
  font: 800 13px/1.15 var(--font-body);
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.dfish.is-eaten {
  transform: scale(0.2);
  opacity: 0;
}

.dive-shark {
  position: absolute;
  top: 22%;
  left: 30%;
  z-index: 2;
  width: 64px;
  margin-left: -32px;
  margin-top: -40px;
  transition: left 0.35s ease;
  filter: drop-shadow(3px 4px 0 rgba(0, 0, 0, 0.35));
}

.shark-svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.shark-tail {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: tail 0.5s ease-in-out infinite alternate;
}

@keyframes tail {
  from { transform: rotate(-12deg); }
  to { transform: rotate(12deg); }
}

.shark-jaw {
  transform-box: fill-box;
  transform-origin: 50% 0;
}

.dive-shark.is-chomping .shark-jaw {
  animation: chomp 0.25s ease;
}

@keyframes chomp {
  50% { transform: scaleY(1.6); }
}

.dive-toast {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  z-index: 3;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 12px;
  font: inherit;
  text-align: left;
  color: var(--ink);
  cursor: pointer;
  animation: pop-in 0.25s ease;
}

.dive-toast-num {
  flex: none;
  font-family: 'Luckiest Guy', var(--font-display);
  font-size: 24px;
}

.dive-toast-body {
  display: grid;
  gap: 2px;
}

.dive-toast-line {
  font-size: 14px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.dive-go {
  min-height: 64px;
  font-size: 22px;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.dive-go.is-holding {
  transform: translate(4px, 4px);
  box-shadow: 0 0 0 var(--yellow), 0 0 0 0 var(--ink);
}

.dive-log {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dive-log summary {
  cursor: pointer;
  padding: 6px 0;
}

.dive-log details[open] {
  padding-bottom: 8px;
  border-bottom: 2px dashed var(--track);
}

/* "+10" on share buttons (js/site.js) */
.coin-tag {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-left: 6px;
  padding: 1px 7px 1px 6px;
  font: 800 13px var(--font-body);
  color: var(--ink);
  background: var(--yellow);
  border: 2px solid var(--ink);
  border-radius: 999px;
  white-space: nowrap;
}

.coin-tag .icon {
  width: 16px;
  height: 16px;
}

.btn:has(.coin-tag) {
  white-space: nowrap;
  padding-left: 14px;
  padding-right: 14px;
}

.coin-tag.is-done {
  background: var(--mint-tint);
}

/* ---------- Builder tools ---------- */

.page--tool {
  max-width: 760px;
}

.tool-head {
  text-align: left;
}

.tool-title {
  font-family: 'Luckiest Guy', var(--font-display);
  font-weight: 400;
  font-size: 36px;
  letter-spacing: 0.5px;
  line-height: 1.05;
}

.tool-privacy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  padding: 3px 12px 3px 6px;
  font-weight: 800;
  font-size: 14px;
  background: var(--mint-tint);
  border: var(--line-thin);
  border-radius: 999px;
}

.tool-privacy .icon {
  width: 20px;
  height: 20px;
}

.tool-disclaimer {
  font-size: 13px;
  font-weight: 800;
  color: var(--ink-muted);
}

.tool-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip-btn {
  padding: 6px 14px;
  font: 800 15px var(--font-body);
  color: var(--ink);
  background: var(--yellow);
  border: var(--line-thin);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.chip-btn:active {
  transform: translate(2px, 2px);
  box-shadow: none;
}

.tool-grid3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

@media (min-width: 560px) {
  .tool-grid3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.tool-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px;
  background: var(--yellow);
  border: var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
}

.tool-actions .btn {
  flex: 1 1 40%;
}

.tool-msg {
  flex-basis: 100%;
  min-height: 1em;
}

/* Tokenomics Generator */
.tk-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.tk-total-num {
  font-family: 'Luckiest Guy', var(--font-display);
  font-size: 28px;
  color: #1f8a3a;
}

.tk-total-num.is-off {
  color: #c2273a;
}

.tk-group {
  display: grid;
  gap: 6px;
  box-shadow: var(--shadow), inset 8px 0 0 var(--c);
  padding-left: 22px;
}

.tk-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tk-row label {
  flex: 1;
}

.tk-pct {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 800;
}

.tk-num {
  width: 84px;
  padding: 6px 8px;
  text-align: right;
}

.tk-dot {
  display: inline-block;
  flex: none;
  width: 14px;
  height: 14px;
  margin-right: 6px;
  vertical-align: -2px;
  background: var(--c);
  border: 2px solid var(--ink);
  border-radius: 4px;
}

.tk-slider {
  width: 100%;
  height: 36px;
  accent-color: var(--ink);
}

.tk-vest summary {
  cursor: pointer;
  font-weight: 800;
  font-size: 14px;
  padding: 4px 0;
}

.tk-vest[open] summary {
  margin-bottom: 8px;
}

.tk-pie-wrap {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 12px;
}

@media (min-width: 560px) {
  .tk-pie-wrap { grid-template-columns: 220px 1fr; justify-items: start; align-items: center; }
}

.tk-pie {
  width: 200px;
  height: 200px;
}

.tk-legend {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-weight: 700;
}

.tk-chart {
  display: block;
  width: 100%;
  height: auto;
  border: var(--line-thin);
  border-radius: 10px;
}

.tk-warns {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tk-warn {
  padding: 8px 12px;
  font-weight: 700;
  border: var(--line-thin);
  border-radius: 12px;
}

.tk-warn.is-bad { background: var(--coral-tint); }
.tk-warn.is-warn { background: #fff1b8; }
.tk-warn.is-good { background: var(--mint-tint); }

.tk-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.tk-table th,
.tk-table td {
  padding: 5px 6px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

/* Market Cap and FDV Calculator */
.mc-results {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 560px) {
  .mc-results { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.mc-big {
  display: grid;
  gap: 2px;
}

.mc-big.is-mint { background: var(--mint-tint); }
.mc-big.is-blue { background: #e2effb; }
.mc-big.is-coral { background: var(--coral-tint); }

.mc-value {
  font-family: 'Luckiest Guy', var(--font-display);
  font-size: 36px;
  line-height: 1;
}

.mc-meaning {
  background: #fff1b8;
}

.mc-berg {
  display: block;
  width: 100%;
  height: auto;
  border: var(--line-thin);
  border-radius: 12px;
}

.xcard--tool-mcap-fdv {
  background: #dff3ff;
  box-shadow: 0 0 0 3px var(--ink), 4px 4px 0 3px #1d6fd6;
}

.xcard--tool-mcap-fdv .xtitle {
  font-size: 8.6cqi;
  line-height: 1;
  color: #fff;
  text-shadow: -2px -2px 0 var(--ink), 2px -2px 0 var(--ink), -2px 2px 0 var(--ink), 2px 2px 0 var(--ink), 4px 4px 0 var(--ink);
  padding: 0 30cqi 0 4cqi;
  white-space: nowrap;
}

.xcard--tool-mcap-fdv:hover .mc-berg-card {
  animation: bob 1s ease-in-out 2;
}

.xcard--tool-launch-budget {
  background: #ff9f43;
  box-shadow: 0 0 0 3px var(--ink), 4px 4px 0 3px var(--ink);
}

.xcard--tool-launch-budget .xtitle {
  font-size: 10cqi;
  line-height: 1;
  color: var(--ink);
  text-shadow: 3px 3px 0 #fff;
  padding: 0 24cqi 0 12cqi;
}

.xcard--tool-launch-budget:hover .bd-rocket {
  animation: launch 0.9s ease-in forwards;
}

/* Launch Budget Planner */
.bd-slider {
  position: relative;
}

.bd-band {
  position: absolute;
  top: 12px;
  height: 12px;
  background: rgba(107, 203, 119, 0.45);
  border: 2px solid #1f8a3a;
  border-radius: 6px;
  pointer-events: none;
}

.bd-slider .tk-slider {
  position: relative;
}

.bd-gauge {
  display: block;
  width: min(100%, 360px);
  height: auto;
  margin: 0 auto;
}

/* Pitch Deck Builder */
.deck-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.deck-step {
  width: 34px;
  height: 34px;
  font: 800 14px var(--font-body);
  color: var(--ink);
  background: var(--white);
  border: var(--line-thin);
  border-radius: 50%;
  cursor: pointer;
}

.deck-step.is-done { background: var(--mint-tint); }
.deck-step.is-now { background: var(--yellow); box-shadow: var(--shadow-sm); }

.deck-styles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.deck-style {
  display: grid;
  gap: 6px;
  width: 100%;
  padding: 0;
  font: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

.deck-style .slide {
  border-radius: 10px;
}

.deck-style.is-on .slide {
  outline: 4px solid var(--blue);
  outline-offset: 2px;
}

.deck-style-name {
  font-weight: 800;
}

.deck-list {
  display: grid;
  gap: 16px;
}

.deck-item {
  display: grid;
  gap: 6px;
  margin: 0;
}

/* A 16:9 slide. Sizes are in cqi (a share of the slide width) so the same
   slide works as a thumbnail, on a phone and in the PDF. */
.slide {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  container-type: inline-size;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2.2cqi;
  padding: 6cqi 8cqi;
  color: var(--fg);
  background: var(--bg);
  border: 3px solid var(--ink);
  border-radius: 14px;
  font-family: var(--bf), system-ui, sans-serif;
  text-align: left;
}

.slide > * {
  position: relative;
  z-index: 1;
  margin: 0;
}

.slide-kicker {
  font-weight: 700;
  font-size: 2.6cqi;
  letter-spacing: 0.2cqi;
  text-transform: uppercase;
  color: var(--ac);
}

.slide-title {
  font-family: var(--tf), system-ui, sans-serif;
  font-weight: var(--tw);
  font-size: 5cqi;
  line-height: 1.1;
}

.slide--cover .slide-title {
  font-size: 8cqi;
}

.slide-sub {
  font-size: 3.2cqi;
}

.slide-points {
  display: grid;
  gap: 1.2cqi;
  padding: 0;
  list-style: none;
  font-size: 2.7cqi;
  line-height: 1.3;
}

.slide-points li {
  position: relative;
  padding-left: 3.4cqi;
}

.slide-points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.9cqi;
  width: 1.6cqi;
  height: 1.6cqi;
  background: var(--ac);
  border-radius: 0.3cqi;
}

.slide-stats {
  display: flex;
  gap: 5cqi;
}

.slide-stats div {
  display: grid;
}

.slide-stats b {
  font-family: var(--tf), system-ui, sans-serif;
  font-weight: var(--tw);
  font-size: 5.5cqi;
  color: var(--ac);
  line-height: 1.05;
}

.slide-stats span {
  font-size: 2.2cqi;
}

.slide-foot {
  position: absolute !important;
  left: 8cqi;
  bottom: 3cqi;
  font-size: 1.8cqi;
  opacity: 0.7;
}

.slide-deco {
  position: absolute !important;
  inset: 0;
  z-index: 0 !important;
  pointer-events: none;
}

/* The 10 decorations */
.deco-sunny .slide-deco { background: radial-gradient(circle at 92% 12%, var(--ac) 0 14cqi, transparent 14.2cqi); }
.deco-sunny .slide-deco::after { content: ''; position: absolute; left: 0; bottom: 0; width: 100%; height: 2cqi; background: var(--ac2); }
.deco-glow .slide-deco { background: radial-gradient(circle at 85% 20%, color-mix(in srgb, var(--ac2) 60%, transparent), transparent 40%), radial-gradient(circle at 10% 90%, color-mix(in srgb, var(--ac) 30%, transparent), transparent 35%); }
.deco-grid .slide-deco { background-image: linear-gradient(rgba(255,255,255,.18) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.18) 1px, transparent 1px); background-size: 4cqi 4cqi; }
.deco-dots .slide-deco { background-image: radial-gradient(var(--ac) 0.7cqi, transparent 0.8cqi); background-size: 6cqi 6cqi; opacity: 0.35; }
.deco-paper .slide-deco { border: 1.2cqi solid var(--ac2); outline: 0.3cqi solid var(--ac); outline-offset: -2.4cqi; }
.deco-terminal .slide-deco { background: repeating-linear-gradient(0deg, rgba(57,255,136,.07) 0 0.4cqi, transparent 0.4cqi 0.9cqi); }
.deco-bold .slide-deco { background: linear-gradient(90deg, var(--ac) 0 3cqi, transparent 3cqi); }
.deco-bold .slide-deco::after { content: ''; position: absolute; right: -6cqi; top: -6cqi; width: 26cqi; height: 26cqi; background: var(--ac2); transform: rotate(18deg); }
.deco-waves .slide-deco { background: radial-gradient(120% 40% at 50% 115%, var(--ac) 60%, transparent 61%), radial-gradient(120% 40% at 30% 125%, var(--ac2) 60%, transparent 61%); }
.deco-pixels .slide-deco { background-image: linear-gradient(90deg, var(--ac) 0 2cqi, transparent 2cqi 4cqi, var(--ac2) 4cqi 6cqi, transparent 6cqi); background-size: 8cqi 2cqi; background-repeat: repeat-x; background-position: 0 100%; }
.deco-blocks .slide-deco { background: linear-gradient(var(--ac), var(--ac)) 88% 14% / 9cqi 9cqi no-repeat, linear-gradient(var(--ac2), var(--ac2)) 96% 30% / 6cqi 6cqi no-repeat; }
.deco-pixels .slide-title { font-size: 3.6cqi; line-height: 1.5; }
.deco-pixels.slide--cover .slide-title { font-size: 5.4cqi; }

@media print {
  body.is-printing-deck #print-sheet h1,
  body.is-printing-deck .print-foot {
    display: none;
  }

  #print-sheet .print-deck .slide {
    width: 100%;
    margin: 0 0 6mm;
    border-radius: 0;
    break-inside: avoid;
    page-break-after: always;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
}

@page deck {
  size: landscape;
}

.print-deck {
  page: deck;
}

.xcard--tool-pitch-deck {
  background: #fbf6ec;
  box-shadow: 0 0 0 3px var(--ink), 4px 4px 0 3px #c0392b;
}

.xcard--tool-pitch-deck .xtitle {
  font-size: 9.4cqi;
  line-height: 1;
  color: #2b2620;
  padding: 0 34cqi 0 6cqi;
}

.xcard--tool-pitch-deck:hover .pd-slides {
  animation: nudge 0.5s ease;
}

.xcard--tool-cap-table {
  background: #f4f1ff;
  box-shadow: 0 0 0 3px var(--ink), 4px 4px 0 3px #a98bff;
}

.xcard--tool-cap-table .xtitle {
  font-size: 12cqi;
  line-height: 0.95;
  letter-spacing: 0.04em;
  color: var(--ink);
  padding: 0 38cqi 0 4cqi;
}

.xcard--tool-cap-table:hover .cap-bars rect {
  animation: nudge 0.5s ease;
}

/* Cap Table and Dilution Simulator */
.cap-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cap-row .field:first-child {
  flex: 1;
}

.cap-x {
  flex: none;
  width: 36px;
  height: 36px;
  margin-left: auto;
  font: 800 20px var(--font-body);
  color: var(--ink);
  background: var(--white);
  border: var(--line-thin);
  border-radius: 50%;
  cursor: pointer;
}

.cap-x:disabled {
  opacity: 0.35;
}

.xcard--tool-agreements {
  background: #fff4d6;
  box-shadow: 0 0 0 3px var(--ink), 4px 4px 0 3px #ffd23f;
}

.xcard--tool-agreements .xtitle {
  font-size: 10.5cqi;
  font-weight: 900;
  font-style: italic;
  line-height: 1;
  color: var(--ink);
  padding: 0 40cqi 0 4cqi;
}

.xcard--tool-agreements:hover .ag-pen {
  animation: nudge 0.5s ease;
}

/* SAFT and Agreement Templates */
.ag-warn {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  background: #ffe1e1;
  border: var(--line);
  border-radius: var(--radius);
  box-shadow: 4px 4px 0 var(--ink);
}

.ag-warn span {
  font-size: 30px;
}

.ag-warn p {
  margin: 0;
  font: 800 clamp(17px, 4.6vw, 21px) / 1.25 var(--font-body);
  color: var(--ink);
}

.ag-pick {
  display: grid;
  gap: 10px;
}

@media (min-width: 700px) {
  .ag-pick {
    grid-template-columns: repeat(3, 1fr);
  }
}

.ag-tab {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 10px;
  align-items: center;
  padding: 12px 14px;
  text-align: left;
  font: 800 16px var(--font-body);
  color: var(--ink);
  background: var(--white);
  border: var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}

.ag-tab .ag-emoji {
  grid-row: span 2;
  font-size: 28px;
}

.ag-tab.is-on {
  background: var(--yellow);
  box-shadow: 4px 4px 0 var(--ink);
}

.ag-wide {
  grid-column: 1 / -1;
}

.ag-doc {
  max-height: 70vh;
  overflow-y: auto;
  padding: 16px;
  background: #fffdf6;
  border: var(--line-thin);
  border-radius: 12px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
}

.ag-doc h1 {
  font-size: 20px;
  margin: 12px 0;
}

.ag-doc h2 {
  font-size: 16px;
  margin: 16px 0 4px;
}

.ag-doc p {
  margin: 0 0 8px;
}

.ag-doc-warn {
  padding: 10px;
  border: 3px solid var(--ink);
  background: #ffe1e1;
}

.ag-doc mark {
  padding: 0 2px;
  border-radius: 3px;
}

.ag-filled {
  background: #dff7e2;
}

.ag-blank {
  background: #fff1a8;
  color: #6b5a00;
}

#print-sheet .ag-doc-warn {
  padding: 8px;
  border: 2px solid #000;
  font-size: 14px;
}

#print-sheet .ag-sign {
  margin-top: 18px;
}

.xcard--tool-meme-kit {
  background: #e8ffe1;
  box-shadow: 0 0 0 3px var(--ink), 4px 4px 0 3px #6bcb77;
}

.xcard--tool-meme-kit .xtitle {
  font-size: 9cqi;
  line-height: 1;
  color: #ffd23f;
  -webkit-text-stroke: 1.2cqi var(--ink);
  paint-order: stroke fill;
  text-shadow: 0.8cqi 0.8cqi 0 var(--ink);
  padding: 0 40cqi 0 4cqi;
}

.xcard--tool-meme-kit:hover .mk-coin {
  animation: wobble 0.6s ease;
  transform-origin: 218px 52px;
}

/* Meme Coin Launch Kit */
.mk-names {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

@media (min-width: 700px) {
  .mk-names {
    grid-template-columns: repeat(5, 1fr);
  }
}

.mk-name {
  display: grid;
  gap: 2px;
  padding: 10px;
  text-align: left;
  font: 800 15px var(--font-body);
  color: var(--ink);
  background: var(--white);
  border: var(--line-thin);
  border-radius: 12px;
  cursor: pointer;
}

.mk-name span {
  font-size: 13px;
  color: var(--ink-soft, #5a5470);
}

.mk-name.is-on {
  background: var(--yellow);
  border: var(--line);
  box-shadow: 3px 3px 0 var(--ink);
}

.mk-copy {
  margin-left: auto;
}

.mk-logo-wrap {
  display: grid;
  gap: 16px;
}

@media (min-width: 700px) {
  .mk-logo-wrap {
    grid-template-columns: 220px 1fr;
    align-items: start;
  }
}

.mk-logo {
  width: min(220px, 60vw);
  margin: 0 auto;
}

.mk-logo svg {
  display: block;
  width: 100%;
  height: auto;
}

.mk-swatches,
.mk-emojis {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mk-swatch {
  width: 36px;
  height: 36px;
  background: var(--c);
  border: var(--line-thin);
  border-radius: 50%;
  cursor: pointer;
}

.mk-swatch.is-on,
.mk-emoji.is-on {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

.mk-emoji {
  width: 44px;
  height: 44px;
  font-size: 24px;
  line-height: 1;
  background: var(--white);
  border: var(--line-thin);
  border-radius: 10px;
  cursor: pointer;
}

.mk-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font: 700 15px / 1.35 var(--font-body);
  color: var(--ink);
  cursor: pointer;
}

.mk-check input {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  accent-color: var(--ink);
}

.mk-check--big {
  padding: 10px 12px;
  background: var(--white);
  border: var(--line-thin);
  border-radius: 12px;
  font-size: 16px;
}

.mk-respo {
  background: #fff1a8;
}

.mk-respo.is-done {
  background: #dff7e2;
}

.mk-sheet td {
  word-break: break-word;
}

.tool-actions .is-locked {
  opacity: 0.55;
}

.xcard--tool-kol-scorecard {
  background: #ffefe6;
  box-shadow: 0 0 0 3px var(--ink), 4px 4px 0 3px #ff9f45;
}

.xcard--tool-kol-scorecard .xtitle {
  font-size: 9cqi;
  line-height: 1.05;
  color: var(--ink);
  padding: 0 38cqi 0 4cqi;
}

.xcard--tool-kol-scorecard:hover .kol-mag {
  animation: nudge 0.5s ease;
}

/* KOL Vetting Scorecard */
.kol-top {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  align-items: center;
}

.kol-dial {
  width: 140px;
  height: 140px;
}

.kol-grade {
  display: inline-block;
  justify-self: start;
  margin: 0;
  padding: 4px 12px;
  font: 700 22px var(--font-display);
  color: var(--ink);
  background: var(--c);
  border: var(--line);
  border-radius: 999px;
}

.kol-flags {
  background: #ffe1e1;
}

.kol-list {
  margin: 0;
  padding-left: 20px;
  font: 700 16px / 1.4 var(--font-body);
  color: var(--ink);
}

.kol-list li + li {
  margin-top: 6px;
}

.kol-reasons {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.kol-reasons li {
  padding: 10px 12px;
  background: var(--white);
  border: var(--line-thin);
  border-left-width: 8px;
  border-radius: 12px;
}

.kol-reasons li.is-good {
  border-left-color: #6bcb77;
}

.kol-reasons li.is-bad {
  border-left-color: #ff6b6b;
}

.kol-reasons p {
  margin: 4px 0 0;
}

.kol-line {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  align-items: baseline;
  font: 700 15px var(--font-body);
  color: var(--ink);
}

.kol-pts {
  margin-left: auto;
  font-weight: 900;
}

.xcard--tool-airdrop-planner {
  background: #e6f4ff;
  box-shadow: 0 0 0 3px var(--ink), 4px 4px 0 3px #4d9de0;
}

.xcard--tool-airdrop-planner .xtitle {
  font-size: 13cqi;
  line-height: 0.95;
  color: #1d6fd6;
  padding: 0 40cqi 0 4cqi;
}

@media (prefers-reduced-motion: no-preference) {
  .xcard--tool-airdrop-planner .ad-chute {
    animation: ad-float 3s ease-in-out infinite;
  }

  .xcard--tool-airdrop-planner .ad-chute--2 {
    animation-delay: -1.5s;
  }
}

@keyframes ad-float {
  50% {
    transform: translateY(5px);
  }
}

/* Airdrop Campaign Planner */
.ad-rule {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.ad-n {
  flex: none;
  width: 84px;
}

.xcard--tool-links-checker {
  background: #f0fff4;
  box-shadow: 0 0 0 3px var(--ink), 4px 4px 0 3px #6bcb77;
}

.xcard--tool-links-checker .xtitle {
  font-size: 9.5cqi;
  font-weight: 700;
  line-height: 1;
  color: var(--ink);
  padding: 0 40cqi 0 4cqi;
}

.xcard--tool-links-checker:hover .lk-chain {
  animation: nudge 0.5s ease;
}

/* Official Links Checker */
.lk-row {
  display: flex;
  gap: 8px;
}

.lk-row .field {
  flex: 1;
  min-width: 0;
}

.lk-result {
  border-color: var(--ink);
  box-shadow: 6px 6px 0 var(--c);
}

.lk-badge {
  justify-self: start;
  margin: 0;
  padding: 6px 14px;
  font: 700 clamp(18px, 5vw, 24px) var(--font-display);
  color: var(--ink);
  background: var(--c);
  border: var(--line);
  border-radius: 999px;
}

.lk-host {
  margin: 0;
  font: 700 18px / 1.3 ui-monospace, Menlo, Consolas, monospace;
  color: var(--ink);
  word-break: break-all;
}

.lk-always {
  margin: 0;
  padding: 12px 14px;
  font: 800 15px / 1.4 var(--font-body);
  color: var(--ink);
  background: #fff1a8;
  border: var(--line-thin);
  border-radius: 12px;
}

.lk-recent {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  font: 700 15px var(--font-body);
  word-break: break-all;
}

.lk-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 8px;
  background: var(--c);
  border: 2px solid var(--ink);
  border-radius: 50%;
}

.lk-list summary {
  cursor: pointer;
}

.lk-list ul {
  margin: 4px 0 12px;
  padding-left: 18px;
  font: 600 14px / 1.5 var(--font-body);
}

.xcard--tool-gas-converter {
  background: #fff0f6;
  box-shadow: 0 0 0 3px var(--ink), 4px 4px 0 3px #ff6b6b;
}

.xcard--tool-gas-converter .xtitle {
  font-size: 11cqi;
  line-height: 1;
  color: var(--ink);
  padding: 0 40cqi 0 4cqi;
}

.xcard--tool-gas-converter:hover .gas-pump {
  animation: nudge 0.5s ease;
}

/* Gas and Unit Converter */
.gas-num {
  font-variant-numeric: tabular-nums;
}

.gas-num.is-bad {
  border-color: #e23d3d;
  background: #ffe1e1;
}

.gas-val {
  word-break: break-all;
}

.xcard--tool-launch-checklist {
  background: #eef0ff;
  box-shadow: 0 0 0 3px var(--ink), 4px 4px 0 3px #a98bff;
}

.xcard--tool-launch-checklist .xtitle {
  font-size: 10cqi;
  line-height: 1;
  color: var(--ink);
  padding: 0 40cqi 0 4cqi;
}

.xcard--tool-launch-checklist:hover .lc-rocket {
  animation: nudge 0.5s ease;
}

/* Launch Readiness Checklist */
.lc-progress {
  position: sticky;
  top: 72px;
  z-index: 5;
  width: fit-content;
  margin: 0 auto;
  padding: 6px 14px;
  font: 800 15px var(--font-body);
  color: var(--ink);
  background: var(--yellow);
  border: var(--line-thin);
  border-radius: 999px;
}

.lc-check {
  padding: 10px 0 12px;
  border-top: 2px dashed #e4dcc3;
}

.lc-check:first-of-type {
  border-top: 0;
}

.lc-text {
  margin: 0;
  font: 800 16px / 1.35 var(--font-body);
  color: var(--ink);
}

.lc-check .small-print {
  margin: 2px 0 8px;
}

.lc-seg {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.lc-btn {
  min-height: 42px;
  font: 800 15px var(--font-body);
  color: var(--ink);
  background: var(--white);
  border: var(--line-thin);
  border-radius: 10px;
  cursor: pointer;
}

.lc-btn--yes.is-on {
  background: #6bcb77;
}

.lc-btn--partly.is-on {
  background: #ffd23f;
}

.lc-btn--no.is-on {
  background: #ff8a8a;
}

.lc-btn.is-on {
  box-shadow: 3px 3px 0 var(--ink);
}

.lc-gaps {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lc-gaps li {
  padding: 10px 12px;
  background: var(--white);
  border: var(--line-thin);
  border-radius: 12px;
}

.lc-gaps p {
  margin: 4px 0 0;
}

.lc-tag {
  margin-left: auto;
  padding: 1px 8px;
  font-size: 13px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: #f1e9cf;
}

.lc-tag--no {
  background: #ff8a8a;
}

.lc-tag--partly {
  background: #ffd23f;
}

.lc-cta {
  background: #eef0ff;
}

/* The Tools page */
.tool-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tool-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

a.tool-item:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-lg);
}

.tool-item.is-soon {
  box-shadow: 3px 3px 0 var(--ink);
  color: var(--ink-muted);
}

.tool-num {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  font-family: 'Luckiest Guy', var(--font-display);
  font-size: 18px;
  background: var(--yellow);
  border: var(--line-thin);
  border-radius: 50%;
}

.tool-item.is-soon .tool-num {
  background: var(--track);
}

.tool-list-body {
  display: grid;
  gap: 2px;
  flex: 1;
}

.tool-item .go {
  font-family: var(--font-display);
  font-weight: 700;
}

/* Homepage card for the Tokenomics Generator */
.xcard--tool-tokenomics {
  background: #fff;
  box-shadow: 4px 4px 0 #1d6fd6, 0 0 0 3px var(--ink);
}

.xcard--tool-tokenomics .xtitle {
  font-size: 8.4cqi;
  color: var(--ink);
  padding: 0 24cqi 0 22cqi;
  text-shadow: 3px 3px 0 #9ccbf0;
}

.tk-pie-card {
  transform-origin: 232px 50px;
  transform-box: view-box;
  transition: transform 0.6s ease;
}

.xcard--tool-tokenomics:hover .tk-pie-card {
  transform: rotate(120deg);
}

/* The one page sheet made by Download PDF (the browser's print window) */
#print-sheet {
  display: none;
}

@media print {
  body.is-printing > *:not(#print-sheet) {
    display: none !important;
  }

  body.is-printing {
    background: #fff;
  }

  body.is-printing #print-sheet {
    display: block;
    color: #1f1b2e;
    font-family: Nunito, sans-serif;
    font-size: 12px;
  }

  #print-sheet h1 {
    font-size: 24px;
    margin: 0 0 4px;
  }

  #print-sheet h2 {
    font-size: 15px;
    margin: 14px 0 6px;
  }

  #print-sheet .print-row {
    display: grid;
    grid-template-columns: 170px 1fr;
    gap: 16px;
    align-items: center;
  }

  #print-sheet .tk-pie {
    width: 160px;
    height: 160px;
  }

  #print-sheet .tk-chart {
    width: 100%;
    max-height: 210px;
    border: 1px solid #ccc;
  }

  #print-sheet ul {
    margin: 0;
    padding-left: 18px;
  }

  .print-foot {
    margin-top: 14px;
    font-size: 10px;
    color: #5a5470;
  }

  @page {
    margin: 12mm;
  }
}

/* ---------- 404: this page got rugged ---------- */

.lost {
  text-align: center;
}

.lost-art svg {
  display: block;
  width: min(100%, 360px);
  margin: 0 auto;
  overflow: visible;
}

.lost-title {
  font-family: 'Luckiest Guy', var(--font-display);
  font-weight: 400;
  font-size: 40px;
  letter-spacing: 0.5px;
  line-height: 1.05;
}

.lost-rug {
  animation: rug-pull 2.6s ease-in-out infinite;
}

.lost-hand {
  animation: rug-pull 2.6s ease-in-out infinite;
}

.lost-page {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: page-tumble 2.6s ease-in-out infinite;
}

@keyframes rug-pull {
  0%, 30% { transform: translateX(0); }
  45%, 70% { transform: translateX(40px); }
  100% { transform: translateX(0); }
}

@keyframes page-tumble {
  0%, 32% { transform: rotate(0); }
  45% { transform: rotate(-24deg) translateY(6px); }
  60% { transform: rotate(-18deg) translateY(4px); }
  100% { transform: rotate(0); }
}

/* ---------- Project Academy ---------- */

.ac-filter {
  display: grid;
  gap: 6px;
}

.chip-btn.is-on {
  background: var(--ink);
  color: var(--yellow);
}

.ac-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ac-card {
  display: grid;
  padding: 0;
  overflow: hidden;
  color: var(--ink);
  text-decoration: none;
}

a.ac-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-lg);
}

.ac-card-top {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: var(--p);
  border-bottom: var(--line);
}

.ac-card-body {
  display: grid;
  gap: 8px;
  padding: 12px 16px 16px;
}

.ac-logo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #fff;
  border: var(--line);
}

.ac-sponsored {
  margin-left: auto;
  padding: 2px 10px;
  font: 800 11px var(--font-body);
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ink);
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 999px;
}

.ac-done {
  position: absolute;
  top: 8px;
  left: 54px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  font-weight: 800;
  background: var(--mint);
  border: 2px solid var(--ink);
  border-radius: 50%;
}

.ac-pro-preview {
  font-size: 13px;
  font-weight: 800;
}

.pro-tag {
  display: inline-block;
  padding: 3px 12px;
  font: 800 13px var(--font-body);
  color: var(--a, var(--yellow));
  background: var(--p, var(--ink));
  border: 2px solid var(--ink);
  border-radius: 999px;
  box-shadow: 2px 2px 0 var(--ink);
  text-decoration: none;
}

.pro-tag::before {
  content: '★ ';
}

.pro-tag--big {
  padding: 6px 18px;
  font-size: 24px;
}

.ac-list {
  display: grid;
  gap: 4px;
  color: var(--ink);
  text-decoration: none;
  background: var(--mint-tint);
}

.ac-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  color: var(--t);
  background: var(--p);
  border: var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
}

.ac-head a {
  color: var(--t);
}

.ac-head-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.1;
}

.ac-head-meta {
  color: var(--t);
  opacity: 0.85;
}

.ac-sponsor-line {
  font-size: 13px;
  font-weight: 800;
  color: var(--ink-muted);
}

.ac-progress {
  display: flex;
  gap: 6px;
}

.ac-progress span {
  flex: 1;
  height: 10px;
  background: var(--white);
  border: var(--line-thin);
  border-radius: 999px;
}

.ac-progress span.is-seen {
  background: var(--a);
}

.ac-progress span.is-now {
  background: var(--p);
}

.ac-lesson {
  box-shadow: var(--shadow), inset 0 8px 0 var(--p);
  padding-top: 20px;
}

.ac-lesson-img {
  display: block;
  width: 100%;
  height: auto;
  border: var(--line-thin);
  border-radius: 12px;
}

.ac-checklist {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ac-checklist li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-weight: 700;
}

.xcard--academy {
  background: #2f4f3a;
  box-shadow: 0 0 0 3px var(--ink), 4px 4px 0 3px #8b5a2b;
}

.xcard--academy .xtitle {
  font-size: 10.5cqi;
  color: #f4f7ee;
  text-shadow: 0 0 1px #fff;
  padding: 0 26cqi 0 10cqi;
}

.xcard--academy:hover .ac-cap {
  animation: cap-toss 0.7s ease;
}

@keyframes cap-toss {
  40% { transform: translateY(-12px) rotate(-14deg); }
}

/* ---------- About Aki box (sidebar) ---------- */

.aki-box {
  display: grid;
  gap: 10px;
  background: var(--yellow);
}

.aki-box-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.aki-box-face {
  flex: none;
  width: 56px;
  height: 56px;
  object-fit: cover;
  object-position: 50% 12%;
  background: #fff;
  border: var(--line-thin);
  border-radius: 50%;
}

.aki-box-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  font-weight: 800;
}

.aki-box-links a:not(.btn) {
  color: var(--ink);
}

/* ---------- Wider screens ---------- */

@media (min-width: 700px) {
  .page {
    gap: 28px;
    padding-block: 28px 40px;
  }

  .title-xl {
    font-size: 48px;
  }

  .hero-copy {
    max-width: calc(100% - 160px);
  }

  .hero .mascot--lg {
    width: 150px;
    height: 150px;
    top: 14px;
    right: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ---------- Accounts ---------- */
.acct-chip {
  display: inline-flex;
  text-decoration: none;
  flex: none;
  border-radius: 50%;
  border: var(--line-thin);
  overflow: hidden;
}

.acct-avatar {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  object-fit: cover;
  border-radius: 50%;
  background: var(--yellow);
  font: 800 16px var(--font-body);
  color: var(--ink);
}

.acct-avatar--big {
  width: 56px;
  height: 56px;
  font-size: 26px;
  border: var(--line);
}

.acct-row {
  display: flex;
  gap: 12px;
  align-items: center;
}

.acct-who p {
  margin: 0;
}

.acct-settings summary {
  cursor: pointer;
}

.acct-settings[open] summary {
  margin-bottom: 10px;
}

.acct-danger {
  color: #b42318;
  border-color: #b42318;
}

.acct-consent a {
  color: inherit;
}

.acct-way:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.legal ul {
  margin: 0;
  padding-left: 20px;
  font: 600 16px / 1.55 var(--font-body);
  color: var(--ink);
}

.legal li + li {
  margin-top: 6px;
}

.legal-links a {
  color: inherit;
}

.acct-modal {
  z-index: 60;
}

/* Brand: footer icon and loading screen */
.footer-mark {
  align-self: center;
  display: inline-flex;
}

.footer-mark img {
  display: block;
  width: 44px;
  height: 44px;
}

.page-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50vh;
  font: 800 16px var(--font-body);
  color: var(--ink-soft, #5a5470);
}

.page-loader img {
  width: 72px;
  height: 72px;
}

@media (prefers-reduced-motion: no-preference) {
  .page-loader img {
    animation: loader-hop 0.9s ease-in-out infinite;
  }
}

@keyframes loader-hop {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-10px) rotate(8deg); }
}

/* Coins: extras */
.cx-nocash {
  margin: 0;
  padding: 10px 12px;
  font: 800 15px / 1.4 var(--font-body);
  color: var(--ink);
  background: #fff1a8;
  border: var(--line-thin);
  border-radius: 12px;
}

.cx-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cx-item {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 10px 6px;
  text-align: center;
  font: 800 14px var(--font-body);
  color: var(--ink);
  background: var(--white);
  border: var(--line-thin);
  border-radius: 12px;
}

.cx-item.is-on {
  border: var(--line);
  box-shadow: 3px 3px 0 var(--ink);
}

.cx-item .btn {
  padding: 4px 10px;
  font-size: 13px;
}

.cx-swatch {
  display: block;
  width: 44px;
  height: 44px;
  background: var(--sw);
  border: var(--line-thin);
  border-radius: 10px;
}

.cx-swatch--frame {
  border-radius: 50%;
  background: radial-gradient(circle, var(--white) 0 52%, transparent 54%), var(--sw);
}

/* Badge frames around the cartoon picture */
.acct-avatar.frame-blue { padding: 3px; background: #4d9de0; }
.acct-avatar.frame-rainbow { padding: 3px; background: conic-gradient(#ff6b6b, #ffd93d, #6bcb77, #4d9de0, #a98bff, #ff6b6b); }
.acct-avatar.frame-gold { padding: 3px; background: linear-gradient(135deg, #b8860b, #ffe7a3, #e8b84a); }

/* Profile themes on My Progress */
body[data-theme='theme-mint'] { background: #e8fff1; }
body[data-theme='theme-sky'] { background: #e6f4ff; }
body[data-theme='theme-night'] { background: #2b2550; }
body[data-theme='theme-night'] .section-title,
body[data-theme='theme-night'] .site-footer,
body[data-theme='theme-night'] .site-footer a,
body[data-theme='theme-night'] #coins > .small-print,
body[data-theme='theme-night'] #coins > .text { color: #fff; }

/* Leaderboard */
.lb-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lb-row {
  display: grid;
  grid-template-columns: 28px 40px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 8px 12px;
  background: var(--white);
  border: var(--line-thin);
  border-radius: 14px;
}

.lb-row.is-me {
  background: #fff1a8;
  border: var(--line);
}

.lb-row .acct-avatar {
  width: 40px;
  height: 40px;
}

.lb-pos {
  font: 700 18px var(--font-display);
  text-align: center;
}

.lb-who {
  display: grid;
  min-width: 0;
}

.lb-who b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lb-coins {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  font-weight: 800;
}

/* ---------- My Progress: compact profile ---------- */
.pf-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 4px 12px;
  align-items: center;
  padding: 14px;
}

.pf-avatar {
  width: 64px;
  height: 64px;
  border: var(--line-thin);
}

.pf-who {
  display: grid;
  gap: 4px;
  justify-items: start;
  min-width: 0;
}

.pf-name {
  margin: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font: 700 clamp(20px, 5.4vw, 26px) / 1.1 var(--font-display);
  color: var(--ink);
}

.pf-who .rank-badge {
  font-size: 13px;
}

.pf-coins {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  align-self: start;
  padding: 4px 10px 4px 6px;
  font: 800 16px var(--font-body);
  color: var(--ink);
  text-decoration: none;
  background: var(--yellow);
  border: var(--line-thin);
  border-radius: 999px;
}

.pf-next {
  grid-column: 1 / -1;
  display: grid;
  gap: 4px;
  margin-top: 6px;
}

.pf-next .meter {
  height: 10px;
}

.pf-next .small-print {
  margin: 0;
}

.pf-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pf-stats li {
  display: grid;
  justify-items: center;
  padding: 8px 4px;
  text-align: center;
  background: var(--white);
  border: var(--line-thin);
  border-radius: 12px;
}

.pf-stats b {
  font: 700 18px / 1.1 var(--font-display);
  color: var(--ink);
}

.pf-stats span {
  font: 700 11px / 1.2 var(--font-body);
  color: var(--ink-soft, #5a5470);
}

.pf-h {
  margin: 0 0 6px;
  font: 700 16px var(--font-display);
  color: var(--ink);
}

.pf-h .small-print {
  font-family: var(--font-body);
  font-weight: 600;
}

/* Rows that scroll sideways */
.pf-row {
  display: flex;
  gap: 10px;
  margin: 0 -16px 12px;
  padding: 2px 16px 8px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-padding-inline: 16px;
  list-style: none;
  -webkit-overflow-scrolling: touch;
}

.pf-row > li {
  flex: none;
  scroll-snap-align: start;
}

.pf-toy {
  width: 190px;
  border-radius: 14px;
  box-shadow: 0 0 0 2px var(--ink);
}

.pf-cert {
  display: grid;
  gap: 2px;
  width: 168px;
  padding: 10px 12px;
  background: var(--yellow);
  border: var(--line-thin);
  border-radius: 14px;
  box-shadow: 3px 3px 0 var(--ink);
}

.pf-cert--pro {
  background: #e6dcff;
}

.pf-cert b {
  font: 700 15px / 1.2 var(--font-display);
  color: var(--ink);
}

.pf-cert .small-print {
  margin: 0;
}

.pf-cert-score {
  justify-self: start;
  padding: 0 8px;
  font: 800 12px var(--font-body);
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 999px;
}

.pf-cert-links {
  font: 700 13px var(--font-body);
}

.pf-cert-links a {
  color: var(--ink);
}

.pf-row--cx .cx-item {
  width: 104px;
}

/* Tabs */
.pf-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 4px;
  background: var(--white);
  border: var(--line-thin);
  border-radius: 999px;
}

.pf-tab {
  min-height: 38px;
  padding: 4px 2px;
  font: 800 13px var(--font-body);
  color: var(--ink);
  background: none;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}

.pf-tab.is-on {
  background: var(--ink);
  color: var(--yellow);
}

.pf-panel {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.pf-empty {
  margin: 0 0 8px;
}

.pf-empty-box {
  display: grid;
  gap: 10px;
  justify-items: start;
  padding: 14px;
  background: var(--white);
  border: 2px dashed var(--ink);
  border-radius: 14px;
}

.pf-more summary {
  cursor: pointer;
}

.pf-setting {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: var(--white);
  border: var(--line-thin);
  border-radius: 12px;
}

.pf-say:empty {
  display: none;
}

@media (min-width: 700px) {
  .pf-stats span {
    font-size: 13px;
  }

  .pf-tab {
    font-size: 15px;
  }
}

body[data-theme='theme-night'] .pf-h,
body[data-theme='theme-night'] .pf-panel > .small-print,
body[data-theme='theme-night'] .pf-panel > .text,
body[data-theme='theme-night'] .pf-more summary,
body[data-theme='theme-night'] .pf-say { color: #fff; }
body[data-theme='theme-night'] .pf-panel a { color: #ffd93d; }

.pf-row-wrap .pf-row {
  margin-bottom: -8px;
}

body[data-theme='theme-night'] .pf-h .small-print { color: #d9d4f0; }

/* Payments */
.pay-modal {
  z-index: 60;
}

.pay-price {
  margin: 0;
  font: 700 34px var(--font-display);
  color: var(--ink);
}

.pay-modal.is-busy [data-close] {
  visibility: hidden;
}

.pf-buys {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pf-buys li {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: var(--white);
  border: var(--line-thin);
  border-radius: 12px;
}

.pf-buys li div {
  display: grid;
  min-width: 0;
}

.pf-buys .small-print {
  margin: 0;
}

/* ---------- Admin dashboard ---------- */
.page--wide {
  max-width: 1200px;
}

.adm-head {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.adm-days {
  display: flex;
  gap: 8px;
  align-items: center;
  font: 700 14px var(--font-body);
}

.adm-days .field {
  width: auto;
  padding: 6px 10px;
}

.adm-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  overflow-x: auto;
  background: var(--white);
  border: var(--line-thin);
  border-radius: 999px;
}

.adm-tabs .pf-tab {
  flex: none;
  padding: 4px 14px;
}

.adm-panel {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.adm-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.adm-tiles li {
  display: grid;
  padding: 10px 12px;
  background: var(--white);
  border: var(--line-thin);
  border-radius: 12px;
}

.adm-tiles b {
  font: 700 22px var(--font-display);
  color: var(--ink);
}

.adm-tiles span {
  font: 700 12px var(--font-body);
  color: var(--ink-soft);
}

.adm-scroll {
  overflow-x: auto;
  background: var(--white);
  border: var(--line-thin);
  border-radius: 12px;
}

.adm-table {
  min-width: 720px;
  font-size: 13px;
}

.adm-table td,
.adm-table th {
  white-space: nowrap;
}

.adm-pre {
  max-height: 240px;
  overflow: auto;
  padding: 8px;
  font-size: 12px;
  background: #fff8e1;
  border-radius: 8px;
  white-space: pre-wrap;
}

.adm-check {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  border: 0;
}

.adm-req .field[data-status] {
  width: auto;
}

.adm-review {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.adm-review li {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: var(--white);
  border: var(--line-thin);
  border-left-width: 8px;
  border-radius: 12px;
}

.adm-review li div {
  display: grid;
  min-width: 0;
}

.adm-review li.is-approved {
  border-left-color: #6bcb77;
}

.adm-review li.is-changed {
  border-left-color: #ff9f45;
}

.adm-review .small-print {
  margin: 0;
}

.adm-note {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.adm-panel .btn-row,
.adm-req .btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.adm-panel .btn-row .btn,
.adm-panel .btn-row .field {
  flex: none;
  width: auto;
}

/* Earn coins tasks */
.qs-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.qs-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  background: var(--white);
  border: var(--line-thin);
  border-radius: 12px;
}

.qs-row.is-done {
  opacity: 0.65;
}

.qs-row div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.qs-row .small-print {
  margin: 0;
}

.qs-coins {
  min-width: 46px;
  padding: 2px 6px;
  font: 800 13px var(--font-body);
  text-align: center;
  background: var(--yellow);
  border: 2px solid var(--ink);
  border-radius: 999px;
}

.qs-proof {
  margin-top: 6px;
}

.qs-invite {
  display: grid;
  gap: 8px;
  padding: 12px;
  background: #e8fff1;
  border: var(--line-thin);
  border-radius: 14px;
}

.qs-invite .small-print {
  margin: 0;
}

.qs-item {
  width: 150px;
  text-align: center;
}

.home-earn {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  font: 800 15px var(--font-body);
  color: var(--ink);
  text-decoration: none;
  background: var(--yellow);
  border: var(--line);
  border-radius: 14px;
  box-shadow: 3px 3px 0 var(--ink);
}

/* Small phones: logo, Book a Call, avatar and menu must fit in one row */
@media (max-width: 420px) {
  .topbar-inner {
    gap: 6px;
  }

  .acct-chip .acct-avatar {
    width: 30px;
    height: 30px;
  }
}

@media (max-width: 340px) {
  .logo-img {
    height: 30px;
  }
}

.pf-say {
  margin: 0;
  padding: 8px 12px;
  font: 800 15px var(--font-body);
  color: var(--ink);
  background: #dff7e2;
  border: var(--line-thin);
  border-radius: 12px;
}

/* Paid offers on finish screens */
.offers {
  background: #fffdf3;
}

.offers .small-print {
  margin: 0;
}

.offer-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.offer {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 10px;
  align-items: center;
  padding: 10px 12px;
  background: var(--white);
  border: var(--line-thin);
  border-radius: 12px;
}

.offer div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.offer-icon {
  font-size: 24px;
}

.offer-price {
  font: 800 14px var(--font-body);
  color: var(--ink);
}

.offer.is-owned {
  background: #e8fff1;
}

#print-sheet .report-qs li {
  margin-bottom: 10px;
  break-inside: avoid;
}

#print-sheet .report-qs p,
#print-sheet .report-check li {
  margin: 2px 0;
}

#print-sheet .report-check {
  list-style: none;
  padding-left: 0;
}

#print-sheet .print-brand {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: 10px;
  font-size: 14px;
}

#print-sheet .print-brand img {
  max-height: 48px;
  max-width: 180px;
}

.brand-preview {
  max-height: 80px;
  max-width: 220px;
  object-fit: contain;
}

.brand-on {
  flex-basis: 100%;
  margin: 0;
  font-weight: 800;
}

.offer > .btn {
  grid-column: 1 / -1;
  justify-self: stretch;
}

@media (min-width: 600px) {
  .offer {
    grid-template-columns: auto 1fr auto;
  }

  .offer > .btn {
    grid-column: auto;
  }
}

/* ---------- Work with us (js/work-app.js) ---------- */
.wk-packs { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.wk-pack { width: 100%; text-align: left; display: grid; gap: 6px; font: inherit; color: inherit; cursor: pointer; }
.wk-pack.is-on { background: var(--yellow); }
.wk-pack:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.wk-name { font-family: var(--font-display, inherit); font-weight: 800; font-size: 18px; }
.wk-price { font-weight: 800; font-size: 22px; }
.wk-points { display: grid; gap: 4px; font-size: 14px; }
.wk-points span { display: flex; gap: 6px; align-items: flex-start; }
.wk-points svg { flex: none; width: 16px; height: 16px; margin-top: 2px; }
.wk-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.wk-steps li { font-size: 12px; font-weight: 800; border: var(--line-thin); border-radius: 999px; padding: 1px 8px; background: var(--white); opacity: .55; }
.wk-steps li.is-done { background: var(--mint); opacity: 1; }
@media (min-width: 600px) { .wk-packs { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .wk-packs { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Scheduled releases (js/releases.js, js/home.js, soon/) ---------- */
.tile-locked { display: grid; gap: 4px; }
.xcard.is-locked { filter: saturate(.75); }
.tile-lock { top: 6px; right: 8px; display: grid; place-items: center; width: 26px; height: 26px; font-size: 13px; background: var(--white); border-radius: 50%; }
.tile-new { top: 7px; left: 9px; padding: 1px 8px; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; background: var(--coral, #ff8a7a); border-radius: 999px; rotate: -5deg; }
.tile-when { margin: 0; font-size: 12px; line-height: 1.3; }
.tile-when span { display: block; font-weight: 700; font-variant-numeric: tabular-nums; }
.tile-when span:empty { display: none; }
.tile-notify { justify-self: start; font-size: 12px; font-weight: 800; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; padding: 4px 0; }
.soon-hero { display: grid; gap: 14px; }
.soon-hero .xcard { max-width: 420px; width: 100%; }
.soon-count { display: flex; flex-wrap: wrap; gap: 8px; }
.soon-count span { display: grid; place-items: center; min-width: 64px; padding: 8px 6px; border: var(--line-thin); border-radius: 14px; background: var(--white); font-weight: 800; font-size: 22px; font-variant-numeric: tabular-nums; }
.soon-count small { display: block; font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }

/* ---------- Floating Earn coins button (js/earn-fab.js) ---------- */
.earn-fab { position: fixed; z-index: 40; right: 14px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); display: flex; align-items: flex-start; }
.earn-fab[hidden] { display: none; }
.earn-fab-btn { font: inherit; font-weight: 800; font-size: 15px; color: var(--ink); background: var(--yellow); border: var(--line-thin, 2px solid var(--ink)); border-radius: 999px; padding: 10px 16px; box-shadow: 0 4px 0 var(--ink); cursor: pointer; }
.earn-fab-btn:active { translate: 0 2px; box-shadow: 0 2px 0 var(--ink); }
.earn-fab-x { margin-left: -10px; margin-top: -8px; width: 24px; height: 24px; display: grid; place-items: center; font: inherit; font-weight: 800; font-size: 15px; line-height: 1; color: var(--ink); background: var(--white); border: 2px solid var(--ink); border-radius: 50%; cursor: pointer; }
.earn-panel { position: fixed; z-index: 45; left: 0; right: 0; bottom: 0; max-height: 78vh; overflow-y: auto; padding: 16px 16px calc(80px + env(safe-area-inset-bottom, 0px)); background: var(--cream, #fff8e1); border-top: 3px solid var(--ink); border-radius: 22px 22px 0 0; box-shadow: 0 -8px 30px rgba(0, 0, 0, .18); display: grid; gap: 10px; align-content: start; }
.earn-panel[hidden] { display: none; }
.earn-panel-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.earn-panel-head .small-print { font-weight: 600; margin-left: 4px; }
.earn-panel-close { width: 34px; height: 34px; font: inherit; font-size: 20px; font-weight: 800; background: var(--white); border: 2px solid var(--ink); border-radius: 50%; cursor: pointer; color: var(--ink); }
.earn-panel .qs-list { margin: 0; }
.earn-panel-more { font-weight: 800; color: var(--ink); }
@media (min-width: 900px) {
  .earn-panel { left: auto; top: auto; bottom: 84px; right: 22px; width: 380px; max-height: calc(100vh - 170px); padding: 16px; border: 3px solid var(--ink); border-radius: 22px; }
  .earn-fab { right: 22px; bottom: 22px; }
}
@media (prefers-reduced-motion: no-preference) {
  .earn-panel:not([hidden]) { animation: earn-up .22s ease-out; }
  @keyframes earn-up { from { translate: 0 24px; opacity: 0; } to { translate: 0 0; opacity: 1; } }
}
@media print { .earn-fab, .earn-panel { display: none !important; } }

/* ---------- Who Built It? (js/hof-app.js) ---------- */
.hof-face { position: relative; display: inline-grid; place-items: center; width: 88px; aspect-ratio: 1; border-radius: 50%; overflow: hidden; flex: none; }
.hof-face img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.hof-face .hof-sketch { width: 100%; height: 100%; }
.hof-face--sm { width: 56px; }
.hof-face--lg { width: 112px; }
.hof-face--empty { background: var(--white); border: 2px dashed rgba(31, 27, 46, .35); font-weight: 800; font-size: 20px; color: rgba(31, 27, 46, .4); }
.hof-row { display: flex; justify-content: center; }
.hof-row .hof-face { margin: 0 -6px; }
.hof-quote { margin: 0; padding: 14px 16px; font-size: 19px; font-weight: 700; line-height: 1.4; background: var(--white); border: var(--line-thin); border-radius: 16px; }
.hof-choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.hof-choice { display: grid; justify-items: center; gap: 6px; padding: 10px 4px; font: inherit; font-weight: 800; font-size: 13px; line-height: 1.2; color: var(--ink); text-align: center; background: var(--white); border: var(--line-thin); border-radius: 16px; cursor: pointer; }
.hof-choice .hof-face { width: min(72px, 100%); }
.hof-choice:disabled { cursor: default; opacity: .55; }
.hof-choice.is-right { background: var(--mint); opacity: 1; }
.hof-choice.is-wrong { background: var(--coral-tint); opacity: 1; }
.hof-result { margin: 0; font-weight: 800; font-size: 18px; }
.hof-result.is-good { color: #1d7a35; }
.hof-result.is-bad { color: #b3261e; }
.hof-card-top { display: flex; gap: 14px; align-items: center; }
.hof-card.is-caution { background: var(--coral-tint); }
.hof-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.hof-wall { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 10px 6px; }
.hof-tile { display: grid; justify-items: center; gap: 4px; width: 100%; padding: 0; font: inherit; font-size: 11px; font-weight: 700; line-height: 1.2; text-align: center; color: var(--ink); background: none; border: 0; cursor: pointer; }
.hof-tile.is-empty { cursor: default; color: rgba(31, 27, 46, .45); }
@media (min-width: 600px) { .hof-choice { font-size: 15px; } .hof-quote { font-size: 21px; } }
.hof-face--xs { width: 40px; }
.hof-pct { font-weight: 700; }
.hof-loved { margin: 0; padding: 0; list-style: none; counter-reset: loved; display: grid; gap: 6px; }
.hof-loved li { counter-increment: loved; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.hof-loved a { display: flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; }
.hof-loved a::before { content: counter(loved); width: 22px; font-weight: 800; text-align: right; }
.hof-vote { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 6px; }
.hof-vote-btn { display: flex; align-items: center; gap: 8px; padding: 6px 8px; font: inherit; font-weight: 700; font-size: 13px; line-height: 1.2; text-align: left; color: var(--ink); background: var(--white); border: var(--line-thin); border-radius: 14px; cursor: pointer; }
.hof-vote-btn.is-on { background: var(--pink, #FF7AB6); }
.hof-more { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.hof-more a { display: grid; justify-items: center; gap: 4px; font-size: 12px; font-weight: 700; text-align: center; color: var(--ink); text-decoration: none; }

/* ---------- Early Bird (js/earlybird.js) ---------- */
.tile-eb { margin: 4px 2px 0; font-size: 12px; font-weight: 800; line-height: 1.3; }
.tile-eb.is-mine, .eb-pill.is-mine, .eb-line.is-mine { color: #1d7a35; }
.eb-pill { margin: 6px 0 0; display: inline-block; padding: 3px 12px; font-size: 13px; font-weight: 800; background: var(--yellow); border: var(--line-thin); border-radius: 999px; }
.eb-pill.is-mine { background: var(--mint); color: var(--ink); }
.eb-line { margin: 0; padding: 10px 14px; font-weight: 800; background: var(--yellow); border: var(--line-thin); border-radius: 16px; }
.eb-line.is-mine { background: var(--mint); color: var(--ink); }
.pf-eb { justify-self: start; }
.eb-toast { position: fixed; z-index: 70; left: 50%; top: 84px; translate: -50% 0; width: min(92vw, 420px); display: grid; gap: 4px; padding: 14px 16px; background: var(--yellow); border: 3px solid var(--ink); border-radius: 18px; box-shadow: 0 6px 0 var(--ink); transition: opacity .5s, translate .5s; }
.eb-toast b { font-size: 18px; }
.eb-toast.is-out { opacity: 0; translate: -50% -20px; }
@media (prefers-reduced-motion: reduce) { .eb-toast { transition: none; } }
@media print { .eb-toast, .eb-pill, .eb-line { display: none !important; } }
.hof-story { display: grid; gap: 4px; }
.hof-story .label { margin: 0; }
.hof-known { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; }

/* ---------- My Progress: a dashboard that fits the first screen ---------- */
.page--progress { max-width: 1120px; }
#app > .pf-head { padding: 12px 14px; }
.pf-head .pf-stats { grid-column: 1 / -1; display: flex; gap: 14px; margin: 4px 0 0; }
.pf-head .pf-stats li { display: flex; gap: 5px; align-items: baseline; padding: 0; background: none; border: 0; }
.pf-head .pf-stats b { font-size: 15px; }
.pf-head .pf-stats span { font-size: 12px; }
.pf-head .pf-next { margin-top: 2px; }
.pf-dash { display: grid; gap: 12px; align-items: start; }
.pf-card { display: grid; gap: 8px; align-content: start; padding: 12px; min-width: 0; }
.pf-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pf-card-title { margin: 0; font: 700 18px / 1.1 var(--font-display); color: var(--ink); }
.pf-count { padding: 1px 9px; font: 800 13px var(--font-body); background: var(--yellow); border: 2px solid var(--ink); border-radius: 999px; }
.pf-card .qs-row { padding: 6px 8px; gap: 8px; font-size: 14px; }
.pf-card .qs-row .btn--small { padding: 4px 10px; font-size: 13px; }
.pf-card .qs-coins { min-width: 40px; font-size: 12px; }
.pf-card-foot { margin: 0; }
.pf-toggle { font: 800 13px var(--font-body); color: var(--ink); }
.pf-card--invite { background: #e8fff1; }
.pf-card--invite .small-print { margin: 0; }
.pf-invite-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pf-certs { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.pf-certs .pf-cert { width: auto; display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center; padding: 6px 8px; box-shadow: none; border-radius: 12px; }
.pf-cert-main { display: grid; min-width: 0; }
.pf-cert-main b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-cert-links { display: flex; gap: 8px; font-size: 13px; }
.pf-eb { font-weight: 800; color: var(--ink); }
.pf-section { display: grid; gap: 8px; min-width: 0; }
.pf-section--play .pf-toy { width: 160px; }
@media (max-width: 759px) {
  #app > .pf-head { gap: 2px 10px; padding: 10px 12px; }
  #app > .pf-head .pf-avatar { width: 48px; height: 48px; }
  #app > .pf-head .pf-name { font-size: 19px; }
  #app > .pf-head .rank-badge { font-size: 11px; }
  #app > .pf-head .pf-stats { gap: 10px; }
  .pf-card--invite .lk-row .btn, .pf-invite-foot .btn { padding: 4px 12px; }
}
.pf-more summary { font: 700 13px var(--font-body); }
#app > .pf-say { margin: -4px 0; }
body[data-theme='theme-night'] .pf-card-title, body[data-theme='theme-night'] .pf-section .pf-card-title { color: inherit; }
@media (min-width: 760px) {
  .pf-dash { grid-template-columns: 1fr 1fr; }
  .pf-card--earn { grid-row: span 2; }
  #app > .pf-head { grid-template-columns: auto auto auto 1fr auto; }
  #app > .pf-head .pf-next { grid-column: auto; margin: 0 8px; }
  #app > .pf-head .pf-stats { grid-column: auto; margin: 0; }
}
@media (min-width: 1040px) {
  .pf-dash { grid-template-columns: 1.15fr 1fr 1fr; }
  .pf-card--earn { grid-row: auto; }
}

/* My Progress pop-ups */
.pf-actions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.pf-action { padding: 10px 12px; font: 800 15px var(--font-body); color: var(--ink); text-align: left; background: var(--white); border: var(--line-thin); border-radius: 14px; box-shadow: 3px 3px 0 var(--ink); cursor: pointer; }
.pf-action:hover { background: var(--yellow); }
body.has-sheet { overflow: hidden; }
.pf-modal { z-index: 50; padding: 0; place-items: end center; }
.pf-modal .pf-sheet { max-width: 640px; max-height: 86vh; border-radius: 22px 22px 0 0; padding: 16px 16px calc(20px + env(safe-area-inset-bottom, 0px)); }
.pf-sheet .pf-say:empty { display: none; }
@media (min-width: 760px) {
  .pf-actions { grid-template-columns: repeat(4, 1fr); }
  .pf-modal { padding: 24px; place-items: center; }
  .pf-modal .pf-sheet { border-radius: 22px; max-height: calc(100vh - 48px); }
}
@media (prefers-reduced-motion: no-preference) {
  .pf-modal .pf-sheet { animation: earn-up .2s ease-out; }
}

/* "New on web3.toys" line on the home page (js/home.js) */
.home-notice { display: flex; align-items: center; gap: 10px; margin: 0; padding: 10px 12px; font: 700 14px/1.35 var(--font-body); background: var(--yellow); border: var(--line-thin); border-radius: 16px; box-shadow: 3px 3px 0 var(--ink); }
.home-notice a { color: var(--ink); font-weight: 800; white-space: nowrap; }
.home-notice > span:first-child { font-size: 20px; }
.home-notice > span:nth-child(2) { flex: 1; }
.home-notice-x { width: 28px; height: 28px; flex: none; font: 800 16px var(--font-body); color: var(--ink); background: var(--white); border: 2px solid var(--ink); border-radius: 50%; cursor: pointer; }

/* ---------- For Projects menu and Launch CTA (js/site.js) ---------- */
.btn--cta { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; font: 800 15px var(--font-body); color: var(--ink); text-decoration: none; white-space: nowrap; background: linear-gradient(135deg, #ffd93d, #ff9f45); border: var(--line-thin); border-radius: 999px; box-shadow: 3px 3px 0 var(--ink); }
.btn--cta:active { translate: 2px 2px; box-shadow: 1px 1px 0 var(--ink); }
.btn--cta .cta-long { display: none; }
.topnav-group { position: relative; }
.topnav-group > summary { list-style: none; cursor: pointer; }
.topnav-group > summary::-webkit-details-marker { display: none; }
.topnav-group > summary::after { content: '▾'; margin-left: 6px; font-size: 13px; }
.topnav-group[data-here] > summary { background: var(--yellow); border-color: var(--ink); }
.topnav-drop { display: grid; gap: 2px; padding: 4px 0 4px 14px; }
.topnav-drop .topnav-link { font-size: 16px; min-height: 40px; }
.footer-group { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 16px; width: 100%; font-size: 14px; color: var(--ink-soft); }
@media (min-width: 430px) {
  .btn--cta .cta-long { display: inline; }
  .btn--cta .cta-short { display: none; }
}
@media (max-width: 370px) {
  .btn--cta { padding: 6px 10px; font-size: 13px; }
}
@media (min-width: 880px) {
  .btn--cta { margin-left: 6px; }
  .topnav-drop { position: absolute; top: calc(100% + 6px); left: 0; z-index: 30; min-width: 230px; padding: 8px; background: var(--white); border: var(--line-thin); border-radius: 16px; box-shadow: 4px 4px 0 var(--ink); }
}

/* ---------- For Projects pages (js/biz-*.js) ---------- */
.biz-hero { gap: 14px; }
.biz-title { margin: 0; font: 400 clamp(30px, 7.5vw, 52px) / 1.05 'Luckiest Guy', var(--font-display); color: var(--ink); letter-spacing: .5px; }
.biz-why { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.biz-why .card { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; align-items: center; padding: 10px 12px; }
.biz-why .card:last-child { background: var(--yellow); }
.biz-why-icon { grid-row: span 2; font-size: 28px; }
.biz-why .small-print { margin: 0; }
.biz-examples, .biz-tiers, .biz-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.biz-example { display: grid; gap: 8px; align-content: start; position: relative; }
.biz-example--coral { background: #ffe3df; }
.biz-example--mint { background: #e8fff1; }
.biz-example--blue { background: #e2effb; }
.biz-tag { justify-self: start; background: var(--white); }
.biz-example-head { display: flex; gap: 10px; align-items: center; }
.biz-example-head .small-print { margin: 0; }
.biz-example-icon { font-size: 34px; }
.demo { display: grid; gap: 8px; }
.demo-q { margin: 0; font: 700 15px/1.4 var(--font-body); }
.demo-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.demo-opts--col { flex-direction: column; }
.demo-opts--col .btn { justify-content: flex-start; text-align: left; }
.demo-opts .btn.is-done { background: var(--mint); }
.demo-bar { position: relative; height: 14px; background: var(--white); border: 2px solid var(--ink); border-radius: 999px; overflow: hidden; }
.demo-bar span { position: absolute; inset: 0 auto 0 0; background: var(--coral); }
.demo-bar i { position: absolute; top: 0; bottom: 0; width: 3px; background: var(--ink); }
.demo-result { display: grid; gap: 4px; padding: 10px 12px; border: 2px solid var(--ink); border-radius: 14px; background: var(--white); }
.demo-result.is-good { background: var(--mint); }
.demo-result.is-bad { background: #ffd0c9; }
.demo-result .text-button { justify-self: start; font-weight: 800; }
.biz-tier { display: grid; gap: 6px; align-content: start; position: relative; }
.biz-tier.is-popular { background: #fff7d1; box-shadow: 6px 6px 0 var(--ink); }
.biz-popular { justify-self: start; }
.biz-price { margin: 0; font: 700 38px / 1 var(--font-display); color: var(--ink); }
.biz-tier .small-print { margin: 0; }
.biz-feats { list-style: none; margin: 4px 0; padding: 0; display: grid; gap: 4px; }
.biz-feats li { display: flex; gap: 6px; align-items: flex-start; font-size: 14px; }
.biz-feats svg { flex: none; width: 16px; height: 16px; margin-top: 2px; }
.biz-steps .card { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; align-items: center; padding: 10px 12px; }
.biz-step-n { grid-row: span 2; display: grid; place-items: center; width: 34px; height: 34px; font: 700 18px var(--font-display); background: var(--yellow); border: 2px solid var(--ink); border-radius: 50%; }
.biz-steps .small-print { margin: 0; }
.biz-faq { display: grid; gap: 8px; }
.biz-faq details { padding: 10px 14px; }
.biz-faq summary { cursor: pointer; }
.biz-faq .text { margin: 8px 0 0; }
.biz-form { gap: 12px; }
.biz-mine-title { margin: 16px 0 8px; }
.biz-req { margin-bottom: 8px; }
.biz-req .small-print { margin: 0; }
@media (min-width: 760px) {
  .biz-why { grid-template-columns: repeat(3, 1fr); }
  .biz-why .card { grid-template-columns: 1fr; text-align: left; }
  .biz-why-icon { grid-row: auto; }
  .biz-examples, .biz-tiers { grid-template-columns: repeat(3, 1fr); }
  .biz-steps { grid-template-columns: repeat(4, 1fr); }
  .biz-steps .card { grid-template-columns: 1fr; }
  .biz-step-n { grid-row: auto; }
}

/* ---------- Sponsor cards (js/sponsor.js) ---------- */
.sponsor-start, .sponsor-result { display: block; }
.sponsor-card { display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto; gap: 2px 10px; align-items: center; padding: 8px 12px; color: var(--ink); text-decoration: none; background: var(--white); border: 2px dashed rgba(31, 27, 46, .45); border-radius: 14px; }
.sponsor-card:hover { border-style: solid; }
.sponsor-label { grid-column: 1 / -1; font: 800 10px var(--font-body); letter-spacing: 1px; text-transform: uppercase; color: var(--ink-soft, #5a5470); }
.sponsor-logo { width: 40px; height: 40px; object-fit: contain; border-radius: 8px; background: #fff; }
.sponsor-logo--house { display: grid; place-items: center; font-size: 24px; background: var(--yellow); }
.sponsor-text { display: grid; min-width: 0; font-size: 13px; line-height: 1.3; }
.sponsor-text b { font-size: 14px; }
.sponsor-go { font-weight: 800; }
.sponsor-start { margin-top: 14px; }
@media print { .sponsor-start, .sponsor-result { display: none !important; } }

/* ---------- Advertise (js/biz-advertise.js, js/biz-adstats.js) ---------- */
.ad-audience { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ad-audience .card { display: grid; gap: 2px; padding: 10px 12px; }
.ad-audience b { font: 700 26px / 1.1 var(--font-display); color: var(--ink); }
.ad-audience .small-print { margin: 0; }
.ad-price { font-size: 26px; }
.ad-prices summary { cursor: pointer; }
.ad-prices ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; }
.ad-prices li { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.ad-cal-wrap { overflow-x: auto; margin: 0 -16px; padding: 0 16px 6px; }
.ad-cal { border-collapse: separate; border-spacing: 4px; font-size: 13px; }
.ad-cal th { text-align: left; font-weight: 800; white-space: nowrap; padding: 2px 6px; }
.ad-cell { display: block; min-width: 64px; padding: 6px 8px; font: 800 12px var(--font-body); text-align: center; color: var(--ink); background: var(--mint); border: 2px solid var(--ink); border-radius: 10px; cursor: pointer; }
.ad-cell.is-taken { background: #eee; color: #8a8698; border-color: #c8c4d4; cursor: default; }
.ad-row { display: grid; gap: 12px; }
.ad-preview { display: grid; gap: 4px; }
.ad-preview .small-print { margin: 0; }
@media (min-width: 760px) {
  .ad-audience { grid-template-columns: repeat(4, 1fr); }
  .ad-slots { grid-template-columns: repeat(4, 1fr); }
  .ad-row { grid-template-columns: 1fr 1fr; }
  .ad-row:has(> :nth-child(3)) { grid-template-columns: 1fr 1fr 1fr; }
}

/* ---------- Test Your Product (js/biz-test.js, js/biz-testers.js, js/test-report.js) ---------- */
.biz-safe { background: var(--mint-tint); }
.trep-wrap summary { cursor: pointer; }
.trep { display: grid; gap: 14px; margin-top: 12px; }
.trep-sample { justify-self: start; margin: 0; padding: 4px 10px; font: 800 12px var(--font-body); letter-spacing: .5px; text-transform: uppercase; background: var(--coral-tint); border: var(--line-thin); border-radius: 999px; }
.trep-head { display: grid; gap: 4px; }
.trep-head > * { margin: 0; }
.trep-kpis { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.trep-kpis li { display: grid; gap: 2px; padding: 8px 10px; background: var(--cream); border: var(--line-thin); border-radius: 12px; }
.trep-kpis b { font: 700 20px / 1.15 var(--font-display); color: var(--ink); overflow-wrap: anywhere; }
.trep-kpis span { font-size: 12px; color: var(--ink-muted); }
.trep-task { display: grid; gap: 6px; padding-top: 10px; border-top: 2px dashed rgba(31, 27, 46, .2); }
.trep-task > * { margin: 0; }
.trep-bar { display: flex; height: 14px; overflow: hidden; background: var(--track); border: var(--line-thin); border-radius: 999px; }
.trep-bar span { display: block; height: 100%; }
.trep-bar .is-done { background: var(--mint); }
.trep-bar .is-stuck { background: var(--yellow); }
.trep-bar .is-gave { background: var(--coral); }
.trep-comments { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14px; }
.trep-comments li { padding: 6px 8px; background: var(--white); border: 1px solid rgba(31, 27, 46, .2); border-radius: 10px; }
.trep-comments .chip { margin-right: 4px; font-size: 11px; }
.trep-shot { display: block; max-width: 100%; max-height: 220px; margin-top: 6px; border: var(--line-thin); border-radius: 8px; }
.trep-foot { margin: 0; }
#print-sheet .trep { margin: 0; }
#print-sheet .trep-task, #print-sheet .trep-comments li { break-inside: avoid; }
#print-sheet .trep-bar span, #print-sheet .trep-sample { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
#print-sheet .trep-shot { max-height: 160px; }
.tst-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tst-list .small-print, .tst-list .text { margin: 0; }
.tst-progress { height: 8px; background: var(--track); border-radius: 999px; overflow: hidden; }
.tst-progress span { display: block; height: 100%; background: var(--ink); }
.tst-timer { font: 700 22px var(--font-display); font-variant-numeric: tabular-nums; }
.tst-outcome, .tst-stars { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; border: 0; }
.tst-outcome legend, .tst-stars legend { width: 100%; margin-bottom: 6px; }
.tst-star { width: 46px; height: 46px; font-size: 26px; line-height: 1; color: #c8c4d4; background: var(--white); border: var(--line-thin); border-radius: 12px; cursor: pointer; }
.tst-star.is-on { color: var(--ink); background: var(--yellow); }
.tst-review { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.tst-review li span { display: block; }
.tst-safety .mk-check { align-items: flex-start; }
.adm-tasks { font-family: ui-monospace, monospace; font-size: 13px; }
@media (min-width: 760px) {
  .trep-kpis { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Sponsored rounds (js/player.js, js/scam-app.js) ---------- */
.card-kind--sponsored { background: var(--white); border-style: dashed; font-weight: 800; }
.chip--sponsored { border-style: dashed; }
.pf-refund { display: block; margin-top: 2px; padding: 0; font-size: 13px; text-align: left; }
.ct-form { margin-top: 12px; padding-top: 12px; border-top: 2px dashed rgba(31, 27, 46, .2); }
.ct-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Operations home (js/admin-ops.js) ---------- */
.ops-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; flex-wrap: wrap; }
.ops-top .title-md, .ops-top .small-print { margin: 0; }
.ops-red-text { color: #c0392b; }
.ops-sample { font-size: 14px; }
.ops-sample-note { margin: 0; padding: 6px 10px; font: 800 12px var(--font-body); text-transform: uppercase; letter-spacing: .5px; background: var(--coral-tint); border: var(--line-thin); border-radius: 10px; }
.ops-queues { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ops-q { display: grid; grid-template-columns: auto 1fr auto auto; gap: 10px; align-items: center; padding: 8px 10px; background: var(--white); border: var(--line-thin); border-left-width: 8px; border-radius: 14px; }
.ops-q.is-green { border-left-color: var(--mint); }
.ops-q.is-amber { border-left-color: #f5a623; background: #fff7e6; }
.ops-q.is-red { border-left-color: #e74c3c; background: var(--coral-tint); }
.ops-q.is-clear { border-left-color: #d9d4e4; opacity: .75; }
.ops-q-icon { font-size: 22px; }
.ops-q-body { display: grid; min-width: 0; }
.ops-q-body b { font-size: 14px; line-height: 1.25; }
.ops-q-body .small-print { margin: 0; }
.ops-q-count { min-width: 34px; text-align: center; font: 700 22px var(--font-display); }
.ops-legend { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; margin: 0; }
.ops-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; border: 1px solid var(--ink); }
.ops-dot.is-green { background: var(--mint); }
.ops-dot.is-amber { background: #f5a623; }
.ops-dot.is-red { background: #e74c3c; }
.ops-today { display: grid; gap: 8px; }
.ops-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ops-list li { display: flex; gap: 8px; align-items: center; justify-content: space-between; font-size: 14px; }
.ops-list li > span:first-child { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.ops-list .small-print, .ops-list .tk-warn { margin: 0; }
.ops-meter { flex: 0 0 70px; height: 8px; background: var(--track); border-radius: 999px; overflow: hidden; }
.ops-meter i { display: block; height: 100%; background: var(--ink); }
.ops-nums { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ops-nums .card { display: grid; gap: 2px; padding: 8px 10px; }
.ops-nums b { font: 700 22px / 1.1 var(--font-display); overflow-wrap: anywhere; }
.ops-nums .small-print { margin: 0; }
.ops-up { color: #1e8449; font-weight: 800; font-size: 13px; }
.ops-down { color: #c0392b; font-weight: 800; font-size: 13px; }
.ops-detail { margin: 6px 0 0; padding-left: 18px; display: grid; gap: 6px; font-size: 14px; overflow-wrap: anywhere; }
.ops-health summary, .ops-todo summary { cursor: pointer; }
.ops-todo-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ops-todo-list .mk-check span { display: grid; gap: 2px; }
.ops-todo-list .chip { justify-self: start; font-size: 11px; }
.ops-todo-list.is-done li { font-size: 14px; }
.ops-subs { flex-wrap: wrap; }
.ops-msg { white-space: pre-wrap; overflow-wrap: anywhere; }
@media (min-width: 760px) {
  .ops-queues { grid-template-columns: 1fr 1fr; }
  .ops-today { grid-template-columns: repeat(3, 1fr); }
  .ops-nums { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Profile pages (js/page-view.js, js/page-edit.js) ---------- */
.pg-hero { --pg-color: var(--yellow); display: grid; gap: 10px; padding-bottom: 14px; background: var(--white); border: var(--line); border-radius: var(--radius-hero); box-shadow: var(--shadow); overflow: hidden; }
.pg-hero > :not(.pg-banner) { margin-left: 16px; margin-right: 16px; }
.pg-banner { aspect-ratio: 3 / 1; background: var(--pg-color) center / cover no-repeat; background-image: linear-gradient(135deg, var(--pg-color), color-mix(in srgb, var(--pg-color) 55%, #fff)); border-bottom: var(--line); }
.pg-banner--small { width: 100%; max-width: 300px; border: var(--line-thin); border-radius: 12px; }
.pg-head { display: flex; gap: 12px; align-items: flex-end; margin-top: -44px; }
.pg-avatar { flex: none; width: 88px; height: 88px; object-fit: cover; border: var(--line); border-radius: 22px; background: var(--white); }
.pg-avatar--letter { display: grid; place-items: center; font: 700 40px var(--font-display); color: var(--ink); background: var(--pg-color, var(--yellow)); }
.pg-names { min-width: 0; padding-bottom: 4px; }
.pg-names .title-lg { margin: 0; overflow-wrap: anywhere; line-height: 1.05; }
.pg-names .small-print { margin: 2px 0 0; }
.pg-chips { margin-top: -2px; }
.pg-verified { font-weight: 800; }
.pg-unclaimed { border-style: dashed; }
.pg-bio { margin: 0; white-space: pre-line; overflow-wrap: anywhere; }
.pg-links { flex-wrap: wrap; }
.pg-toys { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pg-toy { display: grid; gap: 2px; color: var(--ink); text-decoration: none; }
.pg-toy .small-print { margin: 0; }
.pg-play { justify-self: start; margin-top: 4px; padding: 4px 12px; font-weight: 800; font-size: 14px; color: var(--yellow); background: var(--ink); border-radius: 999px; }
.pg-owner { background: #fff7d1; }
.pg-foot { text-align: center; }
.pg-foot .text-button { font-size: 13px; }
.pg-types { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; }
.pg-type { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; cursor: pointer; }
.pg-type span { display: grid; gap: 2px; }
.pg-pics { display: grid; gap: 14px; }
.pg-picks { display: grid; gap: 4px; margin-bottom: 6px; }
.pg-swatches { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pg-swatch { width: 38px; height: 38px; border: var(--line-thin); border-radius: 50%; cursor: pointer; }
.pg-swatch.is-on { outline: 3px solid var(--ink); outline-offset: 2px; }
.pg-edit input[type=color], .adm-page-form input[type=color] { width: 52px; height: 40px; padding: 2px; border: var(--line-thin); border-radius: 10px; background: var(--white); }
@media (min-width: 760px) {
  .pg-toys { grid-template-columns: repeat(3, 1fr); }
  .pg-pics { grid-template-columns: auto 1fr; }
  .pg-avatar { width: 112px; height: 112px; }
}
.pg-cta { margin-top: 2px; width: auto; }
.pg-fans { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.pg-fans li { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 3px; font-size: 14px; font-weight: 700; background: var(--cream); border: var(--line-thin); border-radius: 999px; }
.pg-face { width: 32px; height: 32px; flex: none; border-radius: 50%; }
.pg-face--anon { display: inline-grid; place-items: center; font-size: 18px; background: var(--track); }
.pg-board { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pg-board li { display: grid; grid-template-columns: 28px auto 1fr; gap: 2px 8px; align-items: center; }
.pg-board .small-print { grid-column: 3; margin: -4px 0 0; }
.pg-rank { grid-row: span 2; font: 700 18px var(--font-display); text-align: center; }
.pg-board .pg-face { grid-row: span 2; }
.pg-name { font-weight: 800; overflow-wrap: anywhere; }
.pg-badges { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.pg-pro { font-weight: 800; }
.pg-embeds { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pg-embeds li { display: grid; gap: 4px; }
.pg-embed { font-family: ui-monospace, monospace; font-size: 12px; }
.pg-chart { display: grid; grid-template-columns: repeat(30, 1fr); gap: 2px; align-items: end; height: 90px; padding: 6px; background: var(--cream); border: var(--line-thin); border-radius: 12px; }
.pg-chart span { position: relative; height: 100%; display: flex; gap: 1px; align-items: flex-end; }
.pg-chart i { flex: 1; min-height: 1px; border-radius: 2px 2px 0 0; }
.pg-chart .is-views, .pg-key.is-views { background: var(--blue); }
.pg-chart .is-plays, .pg-key.is-plays { background: var(--ink); }
.pg-key { display: inline-block; width: 10px; height: 10px; border-radius: 3px; vertical-align: middle; }
.pf-consents { display: grid; gap: 6px; }
.pf-consents .title-sm, .pf-consents .small-print { margin: 0; }
.pf-share { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pf-share li { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 8px 10px; background: var(--white); border: var(--line-thin); border-radius: 12px; }
.pf-share li div { display: grid; gap: 2px; min-width: 0; }
.consent-modal .pay-box { max-width: 460px; }
.dir-tools { display: grid; gap: 8px; }
.dir-filters { flex-wrap: wrap; }
.dir-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.dir-card { position: relative; display: grid; gap: 8px; color: var(--ink); text-decoration: none; border-top: 8px solid var(--pg-color); }
.dir-card.is-featured { box-shadow: 6px 6px 0 var(--ink); background: #fffbe6; }
.dir-card.is-unclaimed { opacity: .85; }
.dir-feat { position: absolute; top: 8px; right: 8px; }
.dir-head { display: flex; gap: 10px; align-items: center; }
.dir-head .pg-avatar { width: 52px; height: 52px; border-radius: 14px; }
.dir-head .pg-avatar--letter { font-size: 24px; }
.dir-names { display: grid; min-width: 0; }
.dir-names b { overflow-wrap: anywhere; }
.dir-names .small-print, .dir-bio { margin: 0; }
html.is-embed .topbar, html.is-embed .site-footer, html.is-embed .earn-fab, html.is-embed .sponsor-start, html.is-embed .sponsor-result, html.is-embed .page-loader { display: none !important; }
html.is-embed body { padding-top: 0; }
@media (min-width: 760px) {
  .dir-grid { grid-template-columns: repeat(3, 1fr); }
  .dir-tools { grid-template-columns: 1fr auto; align-items: center; }
  .dir-filters { grid-column: 1 / -1; }
}
body:has(.pay-modal) .earn-fab { display: none; }

/* ---------- The full report PDF (js/quiz.js report(), printed) ---------- */
@media print {
  @page { size: A4; margin: 12mm 12mm 16mm; }
  #print-sheet .rp, #print-sheet .rp * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  #print-sheet .rp { --rp-accent: #FFD93D; font: 600 11.5px/1.45 'Nunito', sans-serif; color: #1f1b2e; }
  #print-sheet .rp-cover { position: relative; padding: 16px 18px 18px; background: #FFD93D; border: 3px solid #1f1b2e; border-radius: 18px; box-shadow: 5px 5px 0 #1f1b2e; margin-bottom: 14px; break-inside: avoid; }
  #print-sheet .rp-top { display: flex; justify-content: space-between; align-items: center; }
  #print-sheet .rp-logo { height: 42px; width: auto; }
  #print-sheet .rp-tag { padding: 4px 12px; font: 800 11px 'Nunito', sans-serif; letter-spacing: 1px; text-transform: uppercase; color: #FFD93D; background: #1f1b2e; border-radius: 999px; }
  #print-sheet .rp-hero { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: end; margin-top: 8px; }
  #print-sheet .rp-kicker { margin: 0; font: 800 11px 'Nunito', sans-serif; letter-spacing: 1px; text-transform: uppercase; }
  #print-sheet h1.rp-title { margin: 2px 0 4px; font: 700 28px/1.05 'Fredoka', 'Nunito', sans-serif; }
  #print-sheet .rp-meta { margin: 0; font-size: 12px; }
  #print-sheet .rp-aki { width: 110px; height: 110px; object-fit: contain; }
  #print-sheet .rp-stats { display: grid; grid-template-columns: auto 1fr 1fr 1fr; gap: 8px; margin-top: 10px; }
  #print-sheet .rp-score, #print-sheet .rp-stat { display: grid; align-content: center; padding: 8px 12px; background: #fff; border: 2px solid #1f1b2e; border-radius: 12px; }
  #print-sheet .rp-score { background: #1f1b2e; color: #FFD93D; text-align: center; min-width: 90px; }
  #print-sheet .rp-score b { font: 700 30px/1 'Fredoka', sans-serif; }
  #print-sheet .rp-stat b { font: 700 16px/1.15 'Fredoka', sans-serif; }
  #print-sheet .rp-score span, #print-sheet .rp-stat span { font-size: 10px; text-transform: uppercase; letter-spacing: .5px; }
  #print-sheet .rp-cert { display: grid; grid-template-columns: 300px 1fr; gap: 12px; align-items: center; margin-top: 10px; padding: 8px; background: #fff; border: 2px solid #1f1b2e; border-radius: 12px; }
  #print-sheet .rp-cert img { width: 300px; height: auto; border-radius: 8px; border: 1px solid #ddd; }
  #print-sheet .rp-cert p { margin: 0; font-size: 11px; }
  #print-sheet .rp-intro { margin: 0 0 6px; font-size: 12px; }
  #print-sheet h2.rp-h2 { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin: 14px 0 8px; padding-bottom: 4px; font: 700 17px 'Fredoka', sans-serif; border-bottom: 3px solid var(--rp-accent); }
  #print-sheet h2.rp-h2 span { font: 700 11px 'Nunito', sans-serif; color: #5a5470; }
  #print-sheet ol.rp-qs { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
  #print-sheet .rp-q { padding: 9px 12px; background: #fff; border: 2px solid #1f1b2e; border-left-width: 8px; border-radius: 12px; break-inside: avoid; }
  #print-sheet .rp-q.is-right { border-left-color: #6BCB77; }
  #print-sheet .rp-q.is-wrong { border-left-color: #FF6B6B; background: #fff7f6; }
  #print-sheet .rp-q-head { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: start; }
  #print-sheet .rp-n { display: grid; place-items: center; width: 22px; height: 22px; font: 700 12px 'Fredoka', sans-serif; background: var(--rp-accent); border: 2px solid #1f1b2e; border-radius: 50%; }
  #print-sheet .rp-mark { font: 800 10px 'Nunito', sans-serif; text-transform: uppercase; white-space: nowrap; }
  #print-sheet .rp-q.is-right .rp-mark { color: #1e8449; }
  #print-sheet .rp-q.is-wrong .rp-mark { color: #c0392b; }
  #print-sheet .rp-ans { margin: 5px 0 0 30px; }
  #print-sheet .rp-chip { display: inline-block; padding: 1px 8px; margin-right: 4px; font: 800 9.5px 'Nunito', sans-serif; text-transform: uppercase; border: 1.5px solid #1f1b2e; border-radius: 999px; }
  #print-sheet .rp-chip.is-right { background: #ddf3df; }
  #print-sheet .rp-chip.is-wrong { background: #ffe3df; }
  #print-sheet .rp-why { margin: 6px 0 0 30px; padding: 6px 10px; background: #fff8e1; border-radius: 8px; }
  #print-sheet .rp-box { margin-top: 6px; padding: 4px 14px 12px; background: #fff; border: 2px solid #1f1b2e; border-radius: 14px; break-inside: avoid; }
  #print-sheet ul.rp-check { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
  #print-sheet .rp-check li { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; }
  #print-sheet .rp-tick { width: 14px; height: 14px; margin-top: 1px; border: 2px solid #1f1b2e; border-radius: 4px; background: #fff; }
  #print-sheet .rp-next ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
  #print-sheet .rp-next li { display: grid; padding: 8px 10px; background: var(--rp-accent); border: 2px solid #1f1b2e; border-radius: 10px; }
  #print-sheet .rp-next li span { font-size: 10px; }
  #print-sheet .rp-close { margin: 14px 0 0; font-size: 12px; text-align: center; }
  #print-sheet .rp-foot { position: fixed; bottom: -10mm; left: 0; right: 0; display: flex; justify-content: space-between; font-size: 9px; color: #5a5470; border-top: 1px solid #d9d4e4; padding-top: 3px; }
}

/* Compact "Take it further" rows (one line each, button on the right). */
.offer { grid-template-columns: auto minmax(0, 1fr) auto; gap: 4px 10px; padding: 8px 10px; }
.offer-icon { font-size: 20px; }
.offer > .btn { grid-column: auto; justify-self: end; white-space: nowrap; }
.offer div > .small-print { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.offer-price { font-size: 13px; }

/* ---------- Simpler layout: wider main column, sidebar only when it has something ---------- */
.page { max-width: 1080px; }
.shop[hidden] { display: none !important; }
@media (min-width: 980px) {
  .toy-layout { grid-template-columns: minmax(0, 1fr) 280px; gap: 32px; }
  .toy-layout:has(> .shop[hidden]), .toy-layout:has(> .shop:empty) { grid-template-columns: minmax(0, 760px); justify-content: center; }
}
.topnav-link, .topnav-group summary { white-space: nowrap; }

/* ---------- Calmer pages: one level of boxes ----------
   Only the main cards keep the thick cartoon outline and shadow. Things
   inside a card are soft tinted rows; notes are plain lines. */
.card .card, .card .qs-row, .card .offer, .card .shop-item, .card .tk-row, .card .biz-req, .card .pg-toy, .card .pf-share li {
  border: 0;
  box-shadow: none;
  background: rgba(31, 27, 46, .045);
}
.qs-row, .offer { border: 0; background: rgba(31, 27, 46, .045); }
.offer.is-owned { background: var(--mint-tint); }
.offers { background: var(--white); }
.tip { padding: 0; background: transparent; border: 0; font-size: 14px; color: var(--ink-soft); }
.eb-line { padding: 8px 12px; background: #fff3c4; border: 0; font-size: 15px; }
.eb-line.is-mine { background: var(--mint-tint); }
.certificate-preview { border: 0; border-radius: 0; }
.pf-action { box-shadow: none; border-width: 2px; }
.pf-action:hover { background: var(--cream); }
/* Smaller shadows on second-level things (chips, small buttons, pills). */
.btn--small { box-shadow: 2px 2px 0 var(--ink); }
.pf-card { box-shadow: 3px 3px 0 var(--ink); }
/* Lists of points (benefits, how it works, perks, audience): icon and text,
   no box each. Questions: lines between them, not a box each. */
.perk-grid .card, .biz-why .card, .biz-steps .card, .ad-audience .card, .tst-list .card.perk {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 6px 0;
}
.biz-why .card:last-child { background: transparent; }
.perk-grid .icon-badge { box-shadow: none; }
.biz-faq { gap: 0; border-top: 2px solid rgba(31, 27, 46, .15); }
.biz-faq details.card { background: transparent; border: 0; border-bottom: 2px solid rgba(31, 27, 46, .15); border-radius: 0; box-shadow: none; padding: 12px 2px; }
body:has([data-offers]) .earn-fab { display: none; }

/* ---------- For Projects pages: no floating Earn button ---------- */
body:is([data-page="launch-your-toy"], [data-page="test-your-product"], [data-page="advertise"], [data-page="list-your-project"]) .earn-fab { display: none !important; }

/* ---------- Test Your Product (js/biz-test.js) ---------- */
.tp-founding { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; justify-content: space-between; padding: 10px 14px; font-size: 15px; background: var(--yellow); border: var(--line-thin); border-radius: 14px; }
.tp-hero { gap: 10px; }
.tp-hero .biz-title { font-size: clamp(34px, 8vw, 56px); }
.tp-sub { margin: -4px 0 0; font: 700 clamp(19px, 4.4vw, 24px) / 1.25 var(--font-display); color: var(--ink); }
.tp-preview .title-md { margin: 0; }
.tp-sample { padding: 2px 10px; font: 800 11px var(--font-body); letter-spacing: .6px; text-transform: uppercase; background: var(--coral-tint); border: 2px solid var(--ink); border-radius: 999px; white-space: nowrap; }
.tp-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tp-bars li { display: grid; grid-template-columns: minmax(0, 1fr) 46px 64px; grid-template-areas: "task task task" "bar pct time"; gap: 2px 8px; align-items: center; }
.tp-task { grid-area: task; font-weight: 800; font-size: 14px; }
.tp-bar { grid-area: bar; height: 12px; background: var(--track); border-radius: 999px; overflow: hidden; }
.tp-bar i { display: block; height: 100%; background: var(--mint); border-right: 2px solid var(--ink); }
.tp-bars b { grid-area: pct; font-size: 14px; text-align: right; }
.tp-bars .small-print { grid-area: time; margin: 0; text-align: right; }
.tp-quotes { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 6px; }
.tp-quotes li { display: grid; gap: 1px; padding: 8px 10px; font-weight: 700; background: rgba(31, 27, 46, .045); border-radius: 12px; }
.tp-quotes .small-print { margin: 0; font-weight: 600; }
.tp-preview .text-button { justify-self: start; }
.tp-video-ph { display: grid; place-items: center; gap: 4px; aspect-ratio: 16 / 9; max-height: 260px; background: rgba(31, 27, 46, .06); border: 2px dashed rgba(31, 27, 46, .3); border-radius: 16px; font-size: 36px; text-align: center; }
.tp-video-ph p { margin: 0; }
.tp-video video { width: 100%; border: var(--line-thin); border-radius: 16px; }
.tp-guarantee { margin: 0; font-weight: 800; }
.tp-compare-wrap { overflow-x: auto; margin: 0 -16px; padding: 0 16px 4px; }
.tp-compare { width: 100%; min-width: 560px; border-collapse: separate; border-spacing: 0; font-size: 14px; }
.tp-compare th, .tp-compare td { padding: 8px 10px; text-align: left; vertical-align: top; border-bottom: 1px solid rgba(31, 27, 46, .12); }
.tp-compare thead th { font: 800 13px var(--font-body); }
.tp-compare .is-us { background: #fff7d1; font-weight: 700; }
.tp-compare thead .is-us { border-radius: 12px 12px 0 0; }
.tp-safe .title-md { margin: 0; }
.tp-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tp-list li { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; }
.tp-who { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; }
.tp-who .label, .tp-who .small-print { margin: 0; }
.tp-face { width: 72px; height: 72px; border-radius: 50%; border: var(--line-thin); background: var(--yellow); object-fit: cover; }
.tp-cases { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tp-progress { height: 8px; background: var(--track); border-radius: 999px; overflow: hidden; }
.tp-progress span { display: block; height: 100%; background: var(--ink); transition: width .3s; }
.tp-form [data-steplabel] { margin: -4px 0 0; font-weight: 800; }
.tp-submit { display: grid; gap: 6px; }
.tp-submit .small-print { margin: 0; }
.tp-submit .text-button { justify-self: start; }
.tp-msg { margin: 0; }
.tp-next { margin: 0; padding-left: 20px; display: grid; gap: 4px; }
.tp-mine { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tp-mine li { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 8px 10px; background: rgba(31, 27, 46, .045); border-radius: 12px; }
.tp-mine li div { display: grid; min-width: 0; }
.tp-tester { padding-top: 6px; border-top: 2px solid rgba(31, 27, 46, .12); }
.tp-tester .title-sm, .tp-tester .small-print { margin: 0; }
.tp-tester .text-button { justify-self: start; }
.tp-modal .pay-box { max-width: 680px; max-height: 88vh; overflow-y: auto; }
.tp-close { justify-self: end; }
.tp-sticky { position: fixed; left: 16px; right: 16px; bottom: max(14px, env(safe-area-inset-bottom)); z-index: 25; text-align: center; box-shadow: 4px 4px 0 var(--ink), 0 6px 24px rgba(0, 0, 0, .18); }
@media (min-width: 700px) {
  .tp-tiers { grid-template-columns: repeat(3, 1fr); }
  .tp-sticky { display: none !important; }
  .tp-bars li { grid-template-columns: 200px minmax(0, 1fr) 46px 64px; grid-template-areas: "task bar pct time"; }
}
.pf-tester { justify-self: start; font-weight: 800; }
.adm-funnel-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.adm-funnel-list li { display: grid; grid-template-columns: 110px minmax(0, 1fr) 44px 40px; gap: 8px; align-items: center; font-size: 14px; }
.adm-funnel-bar { height: 12px; background: var(--track); border-radius: 999px; overflow: hidden; }
.adm-funnel-bar i { display: block; height: 100%; background: var(--ink); }
.adm-funnel-list b { text-align: right; }
.tp-video-ph, .tp-video video { max-width: 560px; }
.tp-video-ph { max-height: 220px; }
.tp-who .btn-row { justify-content: flex-start; }
.tp-who .btn-row .btn { flex: 0 0 auto; width: auto; }
.tp-bars li { grid-template-columns: minmax(0, 1fr) 46px 84px; }
.tp-bars .small-print { white-space: nowrap; }
@media (min-width: 700px) { .tp-bars li { grid-template-columns: 200px minmax(0, 1fr) 46px 84px; } }

/* ---------- For Projects kit (js/biz-kit.js) ----------
   Each section is one bordered card with a title; inside, things are flat.
   Pairs of sections sit side by side from 900px. */
.bk-sec { display: grid; gap: 12px; align-content: start; padding: 16px 18px; }
.bk-h { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font: 700 20px / 1.15 var(--font-display); color: var(--ink); }
.bk-pair { display: grid; gap: 20px; align-items: stretch; }
.bk-hero { gap: 10px; align-content: center; }
.bk-hero .label { margin: 0; }
.bk-hero .biz-title { font-size: clamp(32px, 7.5vw, 54px); margin: 0; }
.bk-sub { margin: 0; font: 700 clamp(18px, 4.2vw, 23px) / 1.25 var(--font-display); color: var(--ink); }
.bk-hero .text { margin: 0; }
.bk-banner { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; justify-content: space-between; padding: 10px 14px; font-size: 15px; background: var(--yellow); border: var(--line); border-radius: var(--radius-card); box-shadow: var(--shadow); }
.bk-tag { padding: 2px 10px; font: 800 11px var(--font-body); letter-spacing: .6px; text-transform: uppercase; background: var(--coral-tint); border: 2px solid var(--ink); border-radius: 999px; }
.bk-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.bk-bars li { display: grid; grid-template-columns: minmax(0, 1fr) 44px 58px; grid-template-areas: "task task task" "bar pct time"; gap: 2px 8px; align-items: center; }
.bk-task { grid-area: task; font-weight: 800; font-size: 14px; }
.bk-bar { grid-area: bar; height: 12px; background: var(--track); border-radius: 999px; overflow: hidden; }
.bk-bar i { display: block; height: 100%; background: var(--mint); border-right: 2px solid var(--ink); }
.bk-bars b { grid-area: pct; font-size: 14px; text-align: right; }
.bk-bars .small-print { grid-area: time; margin: 0; text-align: right; white-space: nowrap; }
.bk-quotes { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.bk-quotes li { display: grid; gap: 1px; padding: 8px 10px; font-weight: 700; font-size: 14px; background: rgba(31, 27, 46, .045); border-radius: 12px; }
.bk-quotes .small-print { margin: 0; font-weight: 600; }
.bk-sec > .text-button { justify-self: start; }
.bk-tiers { grid-template-columns: 1fr; }
.bk-tier { position: relative; display: grid; gap: 6px; align-content: start; padding: 14px; background: rgba(31, 27, 46, .035); border-radius: 16px; }
.bk-tier.is-popular { background: #fff3c4; outline: 3px solid var(--ink); }
.bk-tier .small-print { margin: 0; }
.bk-guarantee { margin: 0; font-weight: 800; }
.bk-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.bk-steps li { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: center; }
.bk-steps li div { display: grid; }
.bk-steps .small-print { margin: 0; }
.bk-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.bk-list li { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; font-size: 15px; }
.bk-compare-wrap { overflow-x: auto; margin: 0 -18px; padding: 0 18px 4px; }
.bk-compare { width: 100%; min-width: 560px; border-collapse: separate; border-spacing: 0; font-size: 14px; }
.bk-compare th, .bk-compare td { padding: 8px 10px; text-align: left; vertical-align: top; border-bottom: 1px solid rgba(31, 27, 46, .12); }
.bk-compare thead th { font: 800 13px var(--font-body); }
.bk-compare .is-us { background: #fff3c4; font-weight: 700; }
.bk-video-ph { display: grid; place-items: center; gap: 4px; min-height: 150px; height: 100%; background: rgba(31, 27, 46, .05); border: 2px dashed rgba(31, 27, 46, .3); border-radius: 14px; font-size: 34px; text-align: center; }
.bk-video-ph p { margin: 0; }
.bk-video { width: 100%; border-radius: 14px; }
.bk-who { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; }
.bk-who .small-print { margin: 0; }
.bk-who .btn-row { justify-content: flex-start; }
.bk-who .btn-row .btn { flex: 0 0 auto; width: auto; }
.bk-face { width: 64px; height: 64px; border-radius: 50%; border: var(--line-thin); background: var(--yellow); object-fit: cover; }
.bk-faq details { padding: 10px 0; border-bottom: 1px solid rgba(31, 27, 46, .14); }
.bk-faq details:last-child { border-bottom: 0; }
.bk-faq summary { cursor: pointer; font-weight: 800; }
.bk-faq .small-print { margin: 6px 0 0; }
.bk-cases { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.bk-progress { height: 8px; background: var(--track); border-radius: 999px; overflow: hidden; }
.bk-progress span { display: block; height: 100%; background: var(--ink); transition: width .3s; }
.bk-steplabel { margin: -4px 0 0; font-weight: 800; }
.bk-submit { display: grid; gap: 6px; }
.bk-submit .small-print { margin: 0; }
.bk-submit .text-button { justify-self: start; }
.bk-msg { margin: 0; }
.bk-thanks { gap: 10px; }
.bk-next { margin: 0; padding-left: 20px; display: grid; gap: 4px; }
.bk-thanks .text-button { justify-self: start; }
.bk-mine-h { margin: 8px 0 0; }
.bk-mine { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.bk-mine li { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 8px 10px; background: rgba(31, 27, 46, .045); border-radius: 12px; }
.bk-mine li div { display: grid; min-width: 0; }
.bk-foot { margin: 0; font-size: 14px; color: var(--ink-soft); }
.bk-modal .pay-box { max-width: 680px; max-height: 88vh; overflow-y: auto; }
.bk-close { justify-self: end; }
.bk-sticky { position: fixed; left: 16px; right: 16px; bottom: max(14px, env(safe-area-inset-bottom)); z-index: 25; text-align: center; box-shadow: 4px 4px 0 var(--ink), 0 6px 24px rgba(0, 0, 0, .18); }
@media (min-width: 700px) {
  .bk-tiers { grid-template-columns: repeat(3, 1fr); }
  .bk-sticky { display: none !important; }
  .bk-bars li { grid-template-columns: 170px minmax(0, 1fr) 44px 58px; grid-template-areas: "task bar pct time"; }
}
@media (min-width: 900px) {
  .bk-pair { grid-template-columns: 1fr 1fr; }
  .bk-steps { grid-template-columns: 1fr 1fr; }
}
.bk-examples { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.bk-example { display: grid; gap: 8px; align-content: start; padding: 12px; border-radius: 14px; background: rgba(31, 27, 46, .04); }
.bk-example.is-coral { background: #ffe3df; }
.bk-example.is-mint { background: #e8fff1; }
.bk-example.is-blue { background: #e2effb; }
.bk-example-head { display: flex; gap: 10px; align-items: center; font-size: 26px; }
.bk-example-head div { display: grid; font-size: 16px; }
.bk-example-head .small-print { margin: 0; }
@media (min-width: 700px) { .bk-examples { grid-template-columns: repeat(3, 1fr); } }
.bk-slots { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.bk-slots li { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; padding: 10px 12px; background: rgba(31, 27, 46, .04); border-radius: 14px; }
.bk-slots li div { display: grid; gap: 2px; }
.bk-slots .small-print { margin: 0; }
.bk-slot-icon { font-size: 24px; }
.bk-sec .ad-cal-wrap { margin: 0 -18px; padding: 0 18px 6px; }
@media (min-width: 700px) { .bk-slots { grid-template-columns: repeat(4, 1fr); } }
.bk-who .btn-row { display: flex; flex-wrap: wrap; gap: 8px; } .bk-who .btn-row .btn { flex: 0 0 auto; width: auto; min-width: 0; padding-inline: 18px; }

/* Paired cards are the same height; lists inside stay compact. */
.bk-pair > .bk-sec { display: flex; flex-direction: column; gap: 12px; }
.bk-pair > .bk-hero { justify-content: center; }
.bk-pair > .bk-sec > .bk-list, .bk-pair > .bk-sec > .bk-steps { align-content: start; gap: 10px; }
.bk-pair > .bk-sec > .bk-video-ph { flex: 1; }
/* Prices during a sale */
.bk-was { margin-right: 4px; font-size: .62em; font-weight: 700; color: var(--ink-muted); text-decoration-thickness: 2px; }
.bk-off { background: var(--mint-tint); }
/* Tabs: one group of sections at a time on long pages */
.bk-tabs-top { height: 0; scroll-margin-top: 8px; }
.bk-tabs { position: sticky; top: 0; z-index: 20; display: flex; gap: 8px; margin: 0 -18px; padding: 10px 18px; overflow-x: auto; scrollbar-width: none; background: var(--cream); border-bottom: 2px solid rgba(31, 27, 46, .12); }
.bk-tabs::-webkit-scrollbar { display: none; }
.bk-tab { flex: none; min-height: 44px; padding: 0 18px; font: 700 16px var(--font-display); color: var(--ink); background: var(--white); border: var(--line-thin); border-radius: 999px; cursor: pointer; }
.bk-tab[aria-selected="true"] { background: var(--ink); color: var(--yellow); }
.bk-panel { display: grid; gap: 20px; }
.bk-panel[hidden] { display: none; }
#app > .bk-tabs + .bk-panel { margin-top: -6px; }
@media (min-width: 700px) {
  .bk-tabs { justify-content: center; margin: 0; padding-inline: 0; }
  .bk-tab { padding: 0 22px; font-size: 17px; }
}
/* Readable titles and descriptions across the site: page titles use the
   rounded font instead of the all-capitals one, and body text is a touch
   bigger and darker. The logo and the toys keep their own fonts. */
.tool-title, .biz-title { font-family: var(--font-display); font-weight: 700; letter-spacing: 0; line-height: 1.1; }
.text { font-size: 15px; line-height: 1.45; }
.small-print { font-size: 13px; line-height: 1.45; color: #4d4764; }
.tool-disclaimer { color: #4d4764; }
/* Quests: the two filters sit on one row. */
.ac-filters { display: flex; flex-wrap: wrap; gap: 14px 36px; }
.bk-hero .biz-title { font-size: clamp(32px, 6.5vw, 46px); }
.bk-pair > .bk-sec > .bk-list li { font-size: 16px; }
/* Your date preview (admin): a small bar at the bottom of every page. */
.rel-preview { position: fixed; left: 50%; bottom: 12px; transform: translateX(-50%); z-index: 60; display: flex; gap: 10px; align-items: center; padding: 8px 12px; font-size: 14px; font-weight: 800; color: var(--yellow); background: var(--ink); border-radius: 999px; box-shadow: var(--shadow); }
.rel-preview button { font: inherit; font-size: 13px; padding: 4px 10px; color: var(--ink); background: var(--yellow); border: 0; border-radius: 999px; cursor: pointer; }
.adm-preview .btn-row { align-items: center; }
.adm-preview .field { max-width: 200px; }
/* Not out yet: the cover is blurred behind a big lock; the name and the
   unlock day sit under the card. */
.xcard.is-locked .xart, .xcard.is-locked .xtitle, .xcard.is-locked .tile-img { filter: blur(5px) saturate(.85); transform: scale(1.08); }
.xcard.is-locked::after { content: ''; position: absolute; inset: 0; z-index: 3; background: rgba(255, 248, 225, .18); }
.xcard.is-locked .tile-lock { top: 50%; left: 50%; right: auto; width: 46px; height: 46px; font-size: 22px; translate: -50% -50%; box-shadow: var(--shadow-sm); }
.tile-when .tile-name { display: block; font-size: 13px; font-weight: 800; color: var(--ink); }
.tile-when .tile-name + b { display: block; }
.soon-hero .xcard.is-locked .tile-lock { width: 60px; height: 60px; font-size: 28px; }

/* ---------- For Projects page banners (js/home-cards.js, js/page-cover.js) ---------- */
.page-cover .xtitle { padding: 0 42cqi 0 5cqi; text-align: left; }
.xcard--launch-your-toy { background: #7b5cff; box-shadow: 0 0 0 3px var(--ink), 4px 4px 0 3px #ffd93d; }
.xcard--launch-your-toy .xtitle { font-size: 11cqi; color: #ffd93d; text-shadow: 3px 3px 0 var(--ink); }
.xcard--launch-your-toy:hover .lt-rocket { animation: nudge .5s ease; }
.xcard--test-your-product { background: #e8fff1; box-shadow: 0 0 0 3px var(--ink), 4px 4px 0 3px #6bcb77; }
.xcard--test-your-product .xtitle { font-size: 11cqi; color: var(--ink); letter-spacing: -.02em; }
.xcard--test-your-product:hover .ty-glass { animation: nudge .5s ease; }
.xcard--advertise { background: #ff6b6b; box-shadow: 0 0 0 3px var(--ink), 4px 4px 0 3px #ffd93d; }
.xcard--advertise .xtitle { font-size: 9cqi; line-height: 1.15; color: #fff8e1; text-shadow: 2px 2px 0 var(--ink); }
.xcard--advertise:hover .ad-horn { animation: nudge .5s ease; }
.xcard--list-your-project { background: #1f4d3a; box-shadow: 0 0 0 3px var(--ink), 4px 4px 0 3px #ffe9a8; }
.xcard--list-your-project .xtitle { font-size: 10cqi; color: #ffe9a8; text-shadow: 2px 2px 0 #0e2a1f; }
.xcard--list-your-project:hover .lq-map { animation: nudge .5s ease; }
.xcard--my-page { background: #ddeeff; box-shadow: 0 0 0 3px var(--ink), 4px 4px 0 3px #4d9de0; }
.xcard--my-page .xtitle { font-size: 10cqi; line-height: 1.25; color: var(--ink); }
.xcard--my-page:hover .mp-card { animation: nudge .5s ease; }
.xcard--pages { background: #ffd93d; box-shadow: 0 0 0 3px var(--ink), 4px 4px 0 3px var(--ink); }
.xcard--pages .xtitle { font-size: 12cqi; color: var(--ink); }
.xcard--pages:hover .pg-stack { animation: nudge .5s ease; }
.xcard--book-a-call { background: #fff3c4; box-shadow: 0 0 0 3px var(--ink), 4px 4px 0 3px #ff6b6b; }
.xcard--book-a-call .xtitle { font-size: 13cqi; line-height: .95; color: var(--ink); }
.xcard--book-a-call:hover .bc-phone { animation: nudge .5s ease; }
.xcard--testers { background: #14213d; box-shadow: 0 0 0 3px var(--ink), 4px 4px 0 3px #6bcb77; }
.xcard--testers .xtitle { font-size: 8.5cqi; line-height: 1.3; color: #6bcb77; text-shadow: 0 0 8px rgba(107, 203, 119, .6); }
.xcard--testers:hover .ts-flask { animation: nudge .5s ease; }
.bk-aud { margin: 2px 0 4px; }

/* ---------- Claim My Page: what you can do, and the sample page ---------- */
.cm-pin { display: inline-grid; place-items: center; flex: none; width: 20px; height: 20px; margin: 0 4px; font: 800 11px/1 var(--font-body); color: var(--ink); background: var(--yellow); border: 2px solid var(--ink); border-radius: 50%; vertical-align: middle; }
.cm-intro .bk-list li { grid-template-columns: auto 1fr; align-items: start; }
.cm-intro .bk-list .cm-pin { margin: 1px 0 0; }
.cm-switch { display: flex; gap: 8px; }
.cm-switch button { min-height: 40px; padding: 0 14px; font: 700 15px var(--font-display); color: var(--ink); background: var(--white); border: var(--line-thin); border-radius: 999px; cursor: pointer; }
.cm-switch [aria-selected="true"] { color: var(--yellow); background: var(--ink); }
.cm-frame { display: grid; gap: 10px; padding: 12px; background: var(--cream); border: 2px dashed rgba(31, 27, 46, .3); border-radius: 16px; pointer-events: none; user-select: none; }
.cm-url { justify-self: start; display: flex; align-items: center; padding: 4px 12px 4px 4px; font: 800 13px var(--font-body); background: var(--white); border: 2px solid var(--ink); border-radius: 999px; }
.cm-frame .pg-hero { margin: 0; }
.cm-banner { position: relative; display: flex; justify-content: flex-end; align-items: flex-start; padding: 6px; }
.cm-bio { margin: 0; }
.cm-links .btn { width: auto; min-height: 34px; padding: 0 12px; }
.cm-play { position: relative; }
.cm-block { display: grid; gap: 6px; padding: 10px 12px; background: var(--white); border: 2px solid rgba(31, 27, 46, .15); border-radius: 14px; }
.cm-block > b { display: flex; align-items: center; }
.cm-toys, .cm-board { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.cm-toys li, .cm-board li { display: flex; justify-content: space-between; gap: 8px; padding: 6px 10px; font-size: 14px; background: rgba(31, 27, 46, .045); border-radius: 10px; }
.cm-toys span, .cm-board span { font-size: 12px; color: var(--ink-muted); }
.cm-join .btn { justify-self: start; width: auto; }

/* Page banners sit inside the page's first block: above the title on
   phones, beside it on wider screens (no empty space on the right). */
.page-cover { width: 100%; border-radius: 18px; }
.has-cover > .page-cover { margin-bottom: 6px; }
@media (min-width: 860px) {
  .has-cover { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 400px); column-gap: 32px; align-items: start; align-content: center; }
  .has-cover > * { grid-column: 1; }
  .has-cover > .page-cover { grid-column: 2; grid-row: 1 / span var(--cover-rows, 1); align-self: center; margin: 0; }
  .has-cover .btn-row { justify-content: flex-start; }
  .has-cover .btn-row .btn { flex: 0 1 auto; width: auto; min-width: 180px; }
  .has-cover > .mascot, .has-cover > img.mascot { display: none; }
}
/* A list in a card of its own flows into columns instead of one long line. */
#app > .bk-sec > .bk-list, .bk-panel > .bk-sec > .bk-list { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); column-gap: 28px; row-gap: 10px; }
.bk-preview .bk-quotes { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 8px; }
@media (min-width: 900px) { .bk-preview .bk-bars { grid-template-columns: 1fr 1fr; column-gap: 28px; } }
/* Claim My Page: the list, the claim box and the rules beside the sample. */
.cm-left { display: grid; gap: 20px; align-content: start; }
.cm-intro .bk-list { gap: 8px; }

/* ---------- Footer: brand, link columns, small print ---------- */
.site-footer { margin-top: 28px; padding-top: 24px; gap: 18px; text-align: left; border-top: 2px solid rgba(31, 27, 46, .12); }
.footer-top { display: grid; gap: 22px; }
.footer-brand { display: grid; gap: 8px; align-content: start; font-size: 14px; color: var(--ink-soft); }
.footer-brand p { margin: 0; max-width: 300px; }
.footer-brand .footer-mark { align-self: start; justify-self: start; display: inline-flex; align-items: center; gap: 10px; font: 700 20px var(--font-display); color: var(--ink); text-decoration: none; }
.footer-social { display: flex; flex-wrap: wrap; gap: 8px; }
.footer-social a { padding: 6px 12px; font-size: 13px; font-weight: 800; color: var(--ink); text-decoration: none; background: var(--white); border: 2px solid var(--ink); border-radius: 999px; }
.footer-social a:hover { background: var(--yellow); }
.footer-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; margin: 0; justify-content: stretch; }
.footer-col { display: grid; gap: 2px; align-content: start; }
.footer-col > b { margin-bottom: 4px; font: 700 14px var(--font-display); color: var(--ink); letter-spacing: .2px; }
.footer-col .footer-link { padding: 4px 0; font-size: 14px; }
.footer-col .footer-link[aria-current] { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding-top: 14px; border-top: 1px solid rgba(31, 27, 46, .1); }
.footer-bottom p { margin: 0; }
@media (min-width: 860px) {
  .footer-top { grid-template-columns: minmax(200px, 1fr) 3fr; gap: 32px; }
  .footer-nav { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 699px) {
  .footer-bottom { padding-bottom: 64px; }
  .footer-col .footer-link { padding: 3px 0; }
}
/* ---------- Invite and earn (js/affiliate.js) ---------- */
.aff-link { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.aff-link code { flex: 1 1 220px; min-width: 0; padding: 10px 12px; font-size: 14px; overflow-wrap: anywhere; background: var(--cream); border: 2px solid var(--ink); border-radius: 12px; }
.aff-link .btn { width: auto; }
.aff-nums { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; }
.aff-nums li { display: grid; gap: 2px; padding: 10px 12px; background: rgba(31, 27, 46, .045); border-radius: 12px; }
.aff-nums b { font: 700 22px var(--font-display); }
.aff-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.aff-list li { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 8px 10px; font-size: 14px; background: rgba(31, 27, 46, .045); border-radius: 10px; }
.aff-list .small-print { grid-column: 1 / -1; margin: 0; }
.aff-wallet summary, .aff-wallet + details summary { cursor: pointer; }
.cm-earn { margin: 0; padding: 10px 12px; font-weight: 800; background: var(--mint-tint); border: 2px solid var(--ink); border-radius: 12px; }
/* Project Quests that nobody paid for (our own explainers). */
.ac-sponsored.is-editorial { background: var(--mint-tint); }
.ac-draft { font-weight: 800; background: var(--yellow); }
/* Course pages have their own Back / Next bar at the bottom: no Earn button over it. */
body[data-course-page] .earn-fab { display: none !important; }
/* ---------- Pro membership (js/pro.js, js/pro-page.js, js/claim.js) ---------- */
.topnav-pro::before { content: '★'; margin-right: 4px; color: var(--violet); }
.pro-badge { display: inline-flex; align-items: center; gap: 3px; padding: 1px 8px; font: 700 12px/1.6 var(--font-display); letter-spacing: .6px; color: var(--ink); background: var(--violet); border: 2px solid var(--ink); border-radius: 999px; vertical-align: middle; white-space: nowrap; }
.pro-badge::before { content: '★'; }
.pro-badge--big { padding: 3px 12px; font-size: 16px; }
.pro-2x { padding: 0 6px; font: 700 12px var(--font-display); background: var(--violet); border-radius: 999px; }
.pro-hero { background: linear-gradient(135deg, #efe8ff, var(--cream)); }
.pro-plans { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.pro-plan { position: relative; display: grid; gap: 8px; align-content: start; }
.pro-plan.is-best { background: #f3eeff; }
.pro-plan .pro-price { margin: 0; font: 700 34px var(--font-display); color: var(--ink); }
.pro-plan .pro-price small { font-size: 16px; font-weight: 600; color: var(--ink-muted); }
.pro-ribbon { position: absolute; top: -12px; right: 12px; padding: 2px 10px; font: 700 13px var(--font-display); background: var(--yellow); border: 2px solid var(--ink); border-radius: 999px; }
.pro-perks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.pro-perks li { display: grid; grid-template-columns: 32px 1fr; gap: 2px 10px; align-items: start; padding: 12px; background: var(--white); border: 2px solid var(--ink); border-radius: 14px; }
.pro-perks li > span { grid-row: span 2; font-size: 24px; line-height: 1; }
.pro-perks b { font-family: var(--font-display); }
.pro-perks p { margin: 0; font-size: 14px; color: var(--ink-soft); }
.pro-preview { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 12px; background: var(--white); border: 2px dashed var(--ink); border-radius: 14px; }
.pro-faq details { padding: 10px 12px; background: var(--white); border: 2px solid var(--ink); border-radius: 12px; }
.pro-faq details + details { margin-top: 8px; }
.pro-faq summary { cursor: pointer; font: 700 16px var(--font-display); }
.pro-faq p { margin: 8px 0 0; }
.pro-banner { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; justify-content: space-between; padding: 10px 14px; font-weight: 700; background: #efe8ff; border: 2px solid var(--ink); border-radius: 14px; }
.pro-banner .btn { width: auto; }
.pro-card { background: #f6f2ff; }
.pro-card .pro-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pro-early { display: inline-block; padding: 1px 8px; font: 700 12px var(--font-display); background: var(--violet); border: 2px solid var(--ink); border-radius: 999px; }
.claim-code { display: flex; flex-wrap: wrap; gap: 8px; }
.claim-code input { flex: 1 1 180px; min-width: 0; min-height: 48px; padding: 8px 12px; font: 700 20px var(--font-display); letter-spacing: 1px; text-transform: uppercase; border: var(--line-thin); border-radius: 12px; }
.claim-code .btn { width: auto; }
.quiz-limit { background: #f3eeff; }
.tile-notify.tile-pro { text-decoration-color: var(--violet); }
.tile-sticker.tile-pro-early { background: var(--violet); }
.adm-form-row { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.adm-form-row .label { display: grid; gap: 4px; }
.pro-ending { margin: 0 auto 12px; max-width: 1100px; }
.pro-ending .btn-row { display: flex; gap: 6px; align-items: center; }
