/* ==========================================================================
   StickWit Shorts — "Big ideas. Tiny limbs."
   Palette sampled from the channel banner. Thick ink outlines + white sticker borders.
   ========================================================================== */

:root {
  --sky: #52abfd;
  --sky-deep: #3a9ced;
  --sky-dark: #1f6fc1;
  --sun: #fed504;
  --sun-deep: #f5b800;
  --ink: #111111;
  --paper: #f4f1ee;
  --white: #ffffff;
  --yt: #d9002b;
  --fb: #1263cc;
  --heart: #ff3d6e;

  --font-display: 'Fredoka', 'Baloo 2', 'Arial Rounded MT Bold', system-ui, sans-serif;
  --font-body: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --radius: 22px;
  --radius-sm: 14px;
  --line: 4px;
  --shadow: 6px 6px 0 var(--ink);
  --shadow-lg: 10px 10px 0 var(--ink);
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1200px;
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--sky);
  overflow-x: clip;
}
img, svg { max-width: 100%; }
img { height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.08; margin: 0; }
p { margin: 0 0 1em; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 4px solid var(--ink); outline-offset: 3px; box-shadow: 0 0 0 8px var(--sun); border-radius: 8px; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--sun); border: var(--line) solid var(--ink); padding: 8px 14px; border-radius: 12px; font-weight: 800; text-decoration: none; }
.skip-link:focus { top: 12px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.icon { width: 1.25em; height: 1.25em; flex: none; }

/* ---------- Outlined "sticker" text: white fill, thick ink outline, thin white rim, ink drop ---------- */
.outlined, .hero__char, .hero__tagline, .section__title, .page-hero__title, .stat__num, .watch__title {
  color: var(--white);
  -webkit-text-stroke: 0.13em var(--ink);
  paint-order: stroke fill;
  letter-spacing: 0.02em;
  filter:
    drop-shadow(0.03em 0 0 var(--white)) drop-shadow(-0.03em 0 0 var(--white))
    drop-shadow(0 0.03em 0 var(--white)) drop-shadow(0 -0.03em 0 var(--white))
    drop-shadow(0.04em 0.06em 0 var(--ink));
}
.hero__word { filter: drop-shadow(0.03em 0 0 var(--white)) drop-shadow(-0.03em 0 0 var(--white)) drop-shadow(0 0.03em 0 var(--white)) drop-shadow(0 -0.03em 0 var(--white)) drop-shadow(0.04em 0.06em 0 var(--ink)); }
.hero__char { filter: none; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--white);
  --btn-fg: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  padding: 0.8em 1.3em;
  font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; line-height: 1;
  color: var(--btn-fg); background: var(--btn-bg);
  border: var(--line) solid var(--ink); border-radius: 999px;
  box-shadow: 4px 4px 0 var(--ink);
  text-decoration: none; cursor: pointer;
  transition: transform 0.18s var(--ease-bounce), box-shadow 0.18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translate(-2px, -2px) rotate(-1deg); box-shadow: 7px 7px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn--yt { --btn-bg: var(--yt); --btn-fg: var(--white); }
.btn--sun { --btn-bg: var(--sun); }
.btn--paper { --btn-bg: var(--white); }
.btn--ink { --btn-bg: var(--ink); --btn-fg: var(--sun); }
.btn--sm { font-size: 0.92rem; padding: 0.6em 1em; box-shadow: 3px 3px 0 var(--ink); }
.btn--lg { font-size: clamp(1.05rem, 1.6vw, 1.25rem); padding: 0.9em 1.5em; }

/* ---------- Scroll progress pencil ---------- */
.scroll-progress { position: fixed; inset: 0 0 auto 0; height: 7px; z-index: 60; pointer-events: none; }
.scroll-progress__bar { height: 100%; background: var(--sun); border-bottom: 2px solid var(--ink); transform-origin: left; transform: scaleX(0); }
.scroll-progress__pencil { position: absolute; top: -6px; left: 0; font-size: 18px; transform: translateX(-50%) rotate(45deg); }
html:not(.js) .scroll-progress { display: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 10px; z-index: 50;
  display: flex; align-items: center; gap: 10px; flex-wrap: nowrap;
  max-width: var(--max); margin: 10px auto 0; padding: 8px 10px 8px 12px;
  background: var(--white); border: var(--line) solid var(--ink); border-radius: 999px;
  box-shadow: var(--shadow);
  width: calc(100% - 2 * var(--gutter));
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand__logo { width: 44px; height: 44px; border-radius: 50%; transition: transform 0.4s var(--ease-bounce); }
.brand:hover .brand__logo { transform: rotate(-14deg) scale(1.08); }
.brand__name { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; display: flex; align-items: center; gap: 6px; }
.brand__pill { background: var(--sun); border: 3px solid var(--ink); border-radius: 999px; padding: 0 10px; font-size: 0.95rem; line-height: 1.6; }
.site-nav { display: flex; gap: 4px; }
.site-nav :is(a, .nav-more > summary) {
  font-family: var(--font-display); font-weight: 600; text-decoration: none;
  padding: 6px 8px; border-radius: 999px; border: 3px solid transparent;
  transition: background 0.15s, border-color 0.15s, transform 0.2s var(--ease-bounce);
}
.site-nav :is(a, .nav-more > summary):hover { background: var(--sun); border-color: var(--ink); transform: rotate(-3deg); }
.site-nav .nav-more[data-current] summary, .site-nav a[aria-current='page'] { background: var(--sky); color: var(--ink); border-color: var(--ink); }

.nav-toggle { display: none; }

@media (max-width: 1279px) {
  .site-header { flex-wrap: wrap; border-radius: 26px; top: 6px; margin-top: 6px; gap: 6px 10px; padding: 6px 8px 6px 8px; }
  .brand__name { font-size: 1.1rem; }
  .brand__logo { width: 38px; height: 38px; }

  /* Without JS, the navigation wraps and disclosures stay inside the header. */
  .site-nav { order: 3; width: 100%; flex-wrap:wrap; padding: 2px 0 4px; }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav :is(a, .nav-more > summary) { flex: none; font-size: 0.95rem; padding: 4px 10px; }

  /* With JS: one slim row + a menu button that drops the links down. */
  html.js .nav-toggle {
    display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none; cursor: pointer;
    background: var(--sun); border: 3px solid var(--ink); border-radius: 50%; box-shadow: 2px 2px 0 var(--ink); padding: 0;
    transition: transform 0.2s var(--ease-bounce);
  }
  html.js .nav-toggle:active { transform: scale(0.92); }
  .nav-toggle__bars { position: relative; width: 20px; height: 14px; display: block; }
  .nav-toggle__bars span { position: absolute; left: 0; width: 100%; height: 3px; border-radius: 3px; background: var(--ink); transition: transform 0.25s var(--ease-bounce), opacity 0.2s, top 0.25s; }
  .nav-toggle__bars span:nth-child(1) { top: 0; }
  .nav-toggle__bars span:nth-child(2) { top: 5.5px; }
  .nav-toggle__bars span:nth-child(3) { top: 11px; }
  .site-header.is-open .nav-toggle__bars span:nth-child(1) { top: 5.5px; transform: rotate(45deg); }
  .site-header.is-open .nav-toggle__bars span:nth-child(2) { opacity: 0; transform: scaleX(0); }
  .site-header.is-open .nav-toggle__bars span:nth-child(3) { top: 5.5px; transform: rotate(-45deg); }

  html.js .site-nav { display: none; }
  html.js .site-header.is-open .site-nav {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px; overflow: visible; padding: 8px 2px 6px;
    border-top: 3px dashed var(--ink); margin-top: 2px;
  }
  html.js .site-header.is-open .site-nav :is(a, .nav-more > summary) {
    font-size: 1.1rem; padding: 10px 14px; text-align: center; background: var(--paper); border: 3px solid var(--ink); border-radius: 16px;
  }
  html.js .site-header.is-open .site-nav a[aria-current='page'] { background: var(--sky); color: var(--ink); }
  html.js .site-header.is-open .site-nav a:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .site-header .btn--yt span { display: none; }
  .site-header .btn--yt { padding: 0.55em 0.75em; }
  .brand__pill { font-size: 0.85rem; padding: 0 8px; }
}

/* ---------- Layout ---------- */
.section { position: relative; max-width: var(--max); margin: 0 auto; padding: clamp(56px, 9vw, 110px) var(--gutter); }
.section--tight { padding-top: 24px; }
.section__head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 6px 20px; margin-bottom: clamp(24px, 4vw, 40px); }
.section__head .kicker { width: 100%; }
.section__title { font-size: clamp(2.1rem, 5.4vw, 3.6rem); font-weight: 700; }
.kicker {
  display: inline-block; margin: 0 0 6px; font-family: var(--font-display); font-weight: 600;
  font-size: 1rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink);
}
.kicker::before { content: '💡 '; }
.link-more { font-family: var(--font-display); font-weight: 600; margin-left: auto; background: var(--white); border: 3px solid var(--ink); border-radius: 999px; padding: 4px 14px; text-decoration: none; box-shadow: 3px 3px 0 var(--ink); transition: transform 0.2s var(--ease-bounce); }
.link-more:hover { transform: rotate(-3deg) scale(1.05); }
.link-more--sun { background: var(--sun); }
.list-title .link-more { font-size: 0.9rem; }
.list-title { flex-wrap: wrap; }
.notice {
  background: var(--white); border: 3px dashed var(--ink); border-radius: var(--radius-sm);
  padding: 12px 16px; font-weight: 700; margin: 0 0 28px; max-width: 760px;
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(64px, 8vw, 110px) var(--gutter) clamp(80px, 9vw, 120px); }
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; }
.blob--sun { background: var(--sun); }
.blob--deep { background: var(--sky-deep); }
.blob--tl { width: 34vw; height: 34vw; left: -14vw; top: -10vw; min-width: 260px; min-height: 260px; }
.blob--br { width: 30vw; height: 30vw; right: -10vw; bottom: -14vw; min-width: 240px; min-height: 240px; }
.blob--tr { width: 26vw; height: 26vw; right: 8vw; top: -16vw; min-width: 200px; min-height: 200px; }
.blob--bl { width: 22vw; height: 22vw; left: 26vw; bottom: -16vw; min-width: 180px; min-height: 180px; }
.hero__inner {
  position: relative; max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: center; gap: clamp(20px, 4vw, 56px);
}
.hero__art { position: relative; justify-self: center; width: min(100%, 470px); }
.hero__avatar-wrap { border-radius: 50%; filter: drop-shadow(10px 12px 0 rgba(17, 17, 17, 0.9)); }
.hero__avatar { width: 100%; border-radius: 50%; animation: bob 4s ease-in-out infinite; }
.hero__bulb-art { display: block; width: 100%; height: auto; pointer-events: none; }
.hero__bulb { display: block; padding: 0; border: 0; background: transparent; cursor: pointer; position: absolute; width:clamp(54px,7vw,88px); right:4%; top:0; transform: rotate(14deg); filter: drop-shadow(4px 4px 0 var(--ink)); z-index: 1; }
.hero__copy { position: relative; }
.hero__title { display: flex; flex-wrap: wrap; align-items: center; gap: 0.1em 0.3em; font-weight: 700; line-height: 0.95; }
.hero__word { display: inline-flex; font-size: clamp(3.4rem, 10.5vw, 8.4rem); }
.hero__char { display: inline-block; transform-origin: 50% 100%; }
.hero__pill {
  display: inline-block; font-size: clamp(2.3rem, 6.6vw, 5.2rem); color: var(--ink);
  background: var(--sun); border: 6px solid var(--ink); border-radius: 999px; padding: 0.04em 0.42em 0.1em;
  box-shadow: 0 0 0 6px var(--white), 8px 10px 0 6px var(--ink);
  transform: rotate(-3deg); margin: 0.12em 0 0.2em 0.1em;
}
.hero__tagline { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.8rem, 4.4vw, 3.2rem); margin: 0.3em 0 0.4em; }
.hero__sub span {
  display: inline-block; background: var(--white); border: var(--line) solid var(--ink); border-radius: 999px;
  padding: 0.4em 1.1em; font-weight: 800; font-size: clamp(0.98rem, 1.6vw, 1.2rem); box-shadow: var(--shadow);
}
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.hero__doodle { position: absolute; right: -10px; bottom: -110px; width: 200px; pointer-events: none; filter: drop-shadow(3px 3px 0 var(--ink)); }
.hero__q { font-family: var(--font-display); font-weight: 700; font-size: 64px; fill: var(--sun); stroke: var(--ink); stroke-width: 7px; paint-order: stroke fill; }
.hero__scroll { position: absolute; left: 50%; bottom: 12px; width: 34px; height: 54px; margin-left: -17px; border: var(--line) solid var(--ink); border-radius: 20px; background: var(--white); }
.hero__scroll span { position: absolute; left: 50%; top: 9px; width: 8px; height: 12px; margin-left: -4px; border-radius: 4px; background: var(--ink); animation: scroll-dot 1.6s ease-in-out infinite; }

@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__art { width: min(72vw, 340px); order: -1; }
  .hero__title, .hero__ctas { justify-content: center; }
  .hero__doodle { display: none; }
  .hero__bulb { right: 1%; top: 0; }
  .hero__scroll { display: none; }
}

/* ---------- Ticker ---------- */
.ticker { background: var(--sun); border-block: var(--line) solid var(--ink); transform: rotate(-1.6deg) scale(1.03); overflow: hidden; position: relative; z-index: 2; box-shadow: 0 8px 0 var(--ink); }
.ticker__track { display: flex; width: max-content; animation: ticker 32s linear infinite; }
.ticker__track span { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.1rem, 2.2vw, 1.5rem); padding: 12px 26px; white-space: nowrap; }
.ticker__track span::after { content: '★'; margin-left: 52px; }

/* ---------- Video cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 215px), 1fr)); gap: clamp(18px, 2.4vw, 30px); }
.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--white); border: var(--line) solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow);
  transition: transform 0.25s var(--ease-bounce), box-shadow 0.25s ease;
}
.card:hover { transform: translate(-4px, -6px) rotate(-1.2deg); box-shadow: var(--shadow-lg); }
.card:nth-child(even):hover { transform: translate(-4px, -6px) rotate(1.2deg); }
.card__link { text-decoration: none; display: block; }
.card__thumb { position: relative; display: block; aspect-ratio: 9 / 16; max-height: 420px; width: 100%; overflow: hidden; border-radius: calc(var(--radius) - 6px) calc(var(--radius) - 6px) 0 0; border-bottom: var(--line) solid var(--ink); background: var(--sky-deep); }
.card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.card:hover .card__thumb img { transform: scale(1.06); }
.card__badge { position: absolute; left: 10px; top: 10px; background: var(--sun); border: 3px solid var(--ink); border-radius: 999px; padding: 1px 10px; font-family: var(--font-display); font-weight: 600; font-size: 0.82rem; }
.card__soon { position: absolute; right: 10px; bottom: 10px; background: var(--ink); color: var(--sun); border-radius: 999px; padding: 2px 10px; font-weight: 800; font-size: 0.8rem; }
.card__playicon {
  position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; display: grid; place-items: center;
  background: var(--sun); border: var(--line) solid var(--ink); border-radius: 50%; font-size: 1.5rem; padding-left: 4px;
  box-shadow: 3px 3px 0 var(--ink); transform: scale(0.85); opacity: 0.92; transition: transform 0.25s var(--ease-bounce);
}
.card:hover .card__playicon { transform: scale(1.1) rotate(-8deg); opacity: 1; }
.card__title { font-size: 1.12rem; font-weight: 600; padding: 12px 14px 6px; }

/* Long-form "Full Breakdown" cards: 16:9 */
.cards--wide { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.card--wide .card__thumb { aspect-ratio: 16 / 9; max-height: none; }
.card--wide .card__title { font-size: 1.25rem; }
.card__format {
  position: absolute; right: 10px; bottom: 10px; background: var(--ink); color: var(--sun);
  border: 2px solid var(--sun); border-radius: 999px; padding: 2px 10px; font-family: var(--font-display); font-weight: 600; font-size: 0.82rem;
}
.list-title { font-size: clamp(1.5rem, 3vw, 2rem); margin: 10px 0 18px; display: flex; align-items: center; gap: 10px; }
.list-title small { font-size: 0.9rem; background: var(--ink); color: var(--sun); border-radius: 999px; padding: 2px 10px; }
.cards + .list-title { margin-top: 48px; }
@media (max-width: 520px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .cards--wide { grid-template-columns: 1fr; }
  .card__format { font-size: 0.7rem; right: 6px; bottom: 6px; }
  .card { border-width: 3px; box-shadow: 4px 4px 0 var(--ink); border-radius: 18px; }
  .card__thumb { max-height: 300px; border-bottom-width: 3px; border-radius: 14px 14px 0 0; }
  .card__title { font-size: 0.98rem; padding: 10px 10px 4px; }
  .card__actions { padding: 4px 8px 10px; gap: 6px; }
  .card__badge { font-size: 0.7rem; left: 6px; top: 6px; padding: 0 7px; }
  .card__playicon { width: 48px; height: 48px; margin: -24px 0 0 -24px; font-size: 1.1rem; }
  .card__play, .like, .share__btn { font-size: 0.85rem; padding: 3px 9px; }
  .share__btn span { display: none; }
  .share__menu { position: fixed; left: 16px; right: 16px; bottom: 16px; top: auto; min-width: 0; z-index: 70; }
  .share__item { padding: 12px 14px; font-size: 1.05rem; }
}
.card__actions { display: flex; align-items: center; gap: 8px; padding: 6px 12px 14px; margin-top: auto; flex-wrap: wrap; }
.card__play {
  font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; cursor: pointer; text-decoration: none;
  background: var(--ink); color: var(--sun); border: 3px solid var(--ink); border-radius: 999px; padding: 5px 12px;
  transition: transform 0.2s var(--ease-bounce);
}
.card__play:hover { transform: scale(1.06) rotate(-2deg); }
.card__play--soon { background: var(--sun); color: var(--ink); }

/* ---------- Like + share ---------- */
.like {
  display: inline-flex; align-items: center; gap: 5px; cursor: pointer;
  background: var(--white); border: 3px solid var(--ink); border-radius: 999px; padding: 4px 10px 4px 8px;
  font-weight: 800; font-size: 0.95rem; transition: transform 0.2s var(--ease-bounce), background 0.2s;
}
.like:hover { transform: scale(1.06); }
.like__heart { width: 20px; height: 20px; fill: transparent; stroke: var(--ink); stroke-width: 2.4; transition: fill 0.2s, transform 0.3s var(--ease-bounce); }
.like[aria-pressed='true'] { background: #ffe1ea; }
.like[aria-pressed='true'] .like__heart { fill: var(--heart); transform: scale(1.15); }
.share { position: relative; }
.share__btn {
  list-style: none; display: inline-flex; align-items: center; gap: 5px; cursor: pointer;
  background: var(--white); border: 3px solid var(--ink); border-radius: 999px; padding: 4px 10px; font-weight: 800; font-size: 0.95rem;
}
.share__btn::-webkit-details-marker { display: none; }
.share__btn .icon { width: 18px; height: 18px; }
.share__menu {
  position: absolute; z-index: 30; right: 0; bottom: calc(100% + 8px); min-width: 190px;
  display: grid; background: var(--white); border: var(--line) solid var(--ink); border-radius: var(--radius-sm); box-shadow: var(--shadow); padding: 6px;
}
.share__item { display: block; text-align: left; background: none; border: 0; border-radius: 10px; padding: 8px 10px; font-weight: 800; text-decoration: none; cursor: pointer; }
.share__item:hover { background: var(--sun); }
html:not(.js) .share__copy { display: none; }

/* ---------- Topics ---------- */
.topic-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: clamp(18px, 2.6vw, 30px); }
.topic-card {
  position: relative; display: flex; flex-direction: column; gap: 10px; padding: 28px 26px 24px; text-decoration: none;
  border: var(--line) solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); background: var(--white);
  transition: transform 0.3s var(--ease-bounce), box-shadow 0.3s;
}
.topic-card:hover { transform: translate(-4px, -6px) rotate(-2deg); box-shadow: var(--shadow-lg); }
.topic-card--current-events { background: var(--sun); }
.topic-card--science { background: var(--white); }
.topic-card--history { background: var(--sky-deep); color: var(--ink); }
.topic-card--true-crime { background: var(--ink); color: var(--white); }
.topic-card--true-crime .topic-card__count { background: var(--sun); color: var(--ink); }
.topic-card__emoji { width: 76px; height: 76px; display: grid; place-items: center; font-size: 2.4rem; background: var(--white); border: var(--line) solid var(--ink); border-radius: 50%; box-shadow: 3px 3px 0 var(--ink); transition: transform 0.4s var(--ease-bounce); }
.topic-card:hover .topic-card__emoji { transform: rotate(-16deg) scale(1.12); }
.topic-card__label { font-family: var(--font-display); font-weight: 700; font-size: 1.7rem; }
.topic-card__blurb { font-weight: 700; }
.topic-card__count { margin-top: auto; font-family: var(--font-display); font-weight: 600; align-self: flex-start; background: var(--ink); color: var(--sun); border-radius: 999px; padding: 4px 14px; }

/* ---------- Process ---------- */
.process { max-width: none; background: var(--paper); border-block: var(--line) solid var(--ink); background-image: radial-gradient(rgba(17, 17, 17, 0.12) 1.6px, transparent 1.6px); background-size: 22px 22px; }
.process > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.process__track { position: relative; }
.process__path { position: absolute; left: 0; right: 0; top: 30px; width: 100%; height: 160px; }
.process__ink { stroke-dasharray: 1; stroke-dashoffset: 1; }
html:not(.js) .process__ink, .reduced .process__ink { stroke-dashoffset: 0; }
.process__steps { position: relative; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 2.4vw, 30px); }
.step { position: relative; background: var(--white); border: var(--line) solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); padding: 66px 18px 18px; margin-top: 40px; }
.step:nth-child(even) { margin-top: 110px; }
.step h3 { font-size: 1.5rem; margin-bottom: 6px; }
.step p { margin: 0; font-weight: 600; }
.step__icon { position: absolute; top: -40px; left: 18px; width: 86px; height: 86px; display: grid; place-items: center; font-size: 2.6rem; background: var(--sun); border: var(--line) solid var(--ink); border-radius: 50%; box-shadow: 4px 4px 0 var(--ink); }
.step__num { position: absolute; top: 12px; right: 14px; font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; width: 34px; height: 34px; display: grid; place-items: center; background: var(--ink); color: var(--sun); border-radius: 50%; }
@media (max-width: 900px) {
  .process__path { display: none; }
  .process__steps { grid-template-columns: 1fr 1fr; }
  .step:nth-child(even) { margin-top: 40px; }
}
@media (max-width: 540px) { .process__steps { grid-template-columns: 1fr; } }

/* ---------- Stats ---------- */
.stats { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: clamp(16px, 2.4vw, 28px); }
.stat { text-align: center; background: var(--white); border: var(--line) solid var(--ink); border-radius: 50% 50% 46% 54% / 54% 46% 54% 46%; box-shadow: var(--shadow); padding: 38px 14px; transition: transform 0.3s var(--ease-bounce); }
.stat:nth-child(odd) { background: var(--sun); transform: rotate(-3deg); }
.stat:nth-child(even) { transform: rotate(2deg); }
.stat:hover { transform: rotate(0) scale(1.05); }
.stat__num { display: block; font-family: var(--font-display); font-weight: 700; font-size: clamp(3rem, 6vw, 4.4rem); line-height: 1; }
.stat__label { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; margin-top: 8px; }

/* ---------- Newsletter ---------- */
.newsletter__card {
  position: relative; display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); align-items: center; gap: clamp(20px, 4vw, 48px);
  background: var(--sun); border: 5px solid var(--ink); border-radius: 34px; box-shadow: var(--shadow-lg); padding: clamp(26px, 5vw, 56px);
}
.newsletter--compact .newsletter__card { grid-template-columns: 1fr; max-width: 760px; margin: 0 auto; }
.newsletter__art { display: grid; place-items: center; }
.envelope { width: min(100%, 300px); overflow: visible; filter: drop-shadow(6px 6px 0 var(--ink)); }
.newsletter__copy p { font-weight: 700; font-size: 1.1rem; }
.nl-form { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.nl-form__input {
  flex: 1 1 240px; min-width: 0; font: inherit; font-weight: 700; font-size: 1.1rem; padding: 14px 20px;
  border: var(--line) solid var(--ink); border-radius: 999px; background: var(--white); box-shadow: inset 3px 3px 0 rgba(17, 17, 17, 0.12);
}
.nl-form__input:focus { outline: none; box-shadow: 0 0 0 5px var(--white), 0 0 0 9px var(--ink); }
.nl-form__btn { --btn-bg: var(--ink); --btn-fg: var(--sun); }
.nl-form__btn[aria-busy='true'] { opacity: 0.7; pointer-events: none; }
.nl-form.is-paused .nl-form__input, .nl-form.is-paused .nl-form__btn { opacity: 0.55; cursor: not-allowed; }
.nl-form__msg { width: 100%; min-height: 1.6em; margin: 4px 0 0; font-weight: 800; }
.nl-form__msg.is-error { color: #b0001f; }
@media (max-width: 760px) { .newsletter__card { grid-template-columns: 1fr; text-align: center; } .newsletter__art .envelope { width: 200px; } }

/* ---------- Follow ---------- */
.follow__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: clamp(18px, 3vw, 34px); }
.follow-card {
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto auto; column-gap: 20px; align-items: center;
  padding: 28px; color: var(--white); text-decoration: none; border: 5px solid var(--ink); border-radius: 30px; box-shadow: var(--shadow-lg);
  transition: transform 0.3s var(--ease-bounce);
}
.follow-card:hover { transform: translate(-4px, -6px) rotate(-1.5deg); }
.follow-card--yt { background: var(--yt); }
.follow-card--fb { background: var(--fb); }
.follow-card__icon { grid-row: 1 / span 3; width: clamp(70px, 9vw, 100px); height: auto; filter: drop-shadow(3px 3px 0 var(--ink)); }
.follow-card__name { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.8rem, 3.4vw, 2.5rem); line-height: 1.05; }
.follow-card__handle { font-weight: 800; opacity: 0.95; }
.follow-card__cta { justify-self: start; margin-top: 8px; font-family: var(--font-display); font-weight: 600; background: var(--white); color: var(--ink); border: 3px solid var(--ink); border-radius: 999px; padding: 4px 14px; }

/* ---------- Page heroes (videos / topic / about / 404) ---------- */
.page-hero { max-width: var(--max); margin: 0 auto; padding: clamp(40px, 7vw, 80px) var(--gutter) 10px; }
.page-hero__title { font-size: clamp(2.6rem, 7vw, 5rem); font-weight: 700; margin: 10px 0 14px; }
.page-hero__lede { font-weight: 700; font-size: clamp(1.05rem, 1.8vw, 1.3rem); max-width: 720px; background: var(--white); border: var(--line) solid var(--ink); border-radius: var(--radius-sm); padding: 14px 18px; box-shadow: var(--shadow); }
.crumbs { font-weight: 800; font-size: 0.95rem; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.crumbs a { background: var(--white); border: 3px solid var(--ink); border-radius: 999px; padding: 0 10px; text-decoration: none; }
.crumbs [aria-current] { opacity: 0.85; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60vw; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.chip { font-family: var(--font-display); font-weight: 600; text-decoration: none; background: var(--white); border: 3px solid var(--ink); border-radius: 999px; padding: 6px 14px; box-shadow: 3px 3px 0 var(--ink); transition: transform 0.2s var(--ease-bounce); }
.chip small { background: var(--ink); color: var(--sun); border-radius: 999px; padding: 0 7px; margin-left: 4px; font-size: 0.8rem; }
.chip:hover { transform: rotate(-3deg) scale(1.05); }
.chip[aria-current='page'] { background: var(--sun); }
.empty { text-align: center; padding: 40px 0; font-weight: 800; font-size: 1.2rem; }
.mascot--empty, .mascot--lost { width: 150px; margin: 0 auto 10px; display: block; overflow: visible; }
.lost { text-align: center; }
.lost .page-hero__lede { margin: 0 auto 20px; }
.about-ctas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: inherit; }
.lost .about-ctas { justify-content: center; }
.error-detail { white-space: pre-wrap; background: var(--white); border: 3px solid var(--ink); padding: 10px; border-radius: 10px; text-align: left; }

.about-hero__grid { display: grid; grid-template-columns: minmax(0, 0.6fr) minmax(0, 1.4fr); align-items: center; gap: 30px; }
.mascot--about { width: min(100%, 260px); overflow: visible; margin: 0 auto; display: block; filter: drop-shadow(6px 8px 0 rgba(17, 17, 17, 0.25)); }
.about-body { padding-top: 30px; }
.prose { background: var(--white); border: var(--line) solid var(--ink); border-radius: 28px; box-shadow: var(--shadow-lg); padding: clamp(24px, 5vw, 54px); max-width: 860px; }
.prose h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 1.2em 0 0.4em; }
.prose h2:first-child { margin-top: 0; }
.prose a { font-weight: 800; text-decoration-color: var(--sky-deep); text-decoration-thickness: 3px; }
.about-topics { padding-left: 1.2em; }
.about-topics li { margin-bottom: 8px; }
@media (max-width: 700px) { .about-hero__grid { grid-template-columns: 1fr; text-align: center; } .about-hero__grid .page-hero__lede { text-align: left; } }

/* ---------- Watch page ---------- */
.watch { max-width: var(--max); margin: 0 auto; padding: clamp(30px, 5vw, 60px) var(--gutter) 20px; }
.watch__grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(22px, 4vw, 54px); align-items: start; margin-top: 18px; }
.watch__player { position: sticky; top: 100px; }
.facade, .watch__soon, .watch__iframe {
  position: relative; display: block; width: 100%; max-width: 420px; margin: 0 auto; aspect-ratio: 9 / 16; max-height: 78vh;
  border: 5px solid var(--ink); border-radius: 28px; overflow: hidden; background: var(--ink); box-shadow: var(--shadow-lg);
}
.facade__img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.facade:hover .facade__img { transform: scale(1.05); }
.facade__play {
  position: absolute; left: 50%; top: 50%; width: 96px; height: 96px; margin: -48px 0 0 -48px; display: grid; place-items: center; padding-left: 6px;
  font-size: 2.4rem; background: var(--sun); border: 5px solid var(--ink); border-radius: 50%; box-shadow: 5px 5px 0 var(--ink);
  transition: transform 0.3s var(--ease-bounce);
}
.facade:hover .facade__play { transform: scale(1.12) rotate(-8deg); }
.watch__iframe iframe { width: 100%; height: 100%; border: 0; display: block; }
.watch--wide .watch__grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
.watch--wide .facade, .watch--wide .watch__iframe { aspect-ratio: 16 / 9; max-width: none; max-height: none; }
.badge--ink { background: var(--ink); color: var(--sun); margin-left: 6px; }
.watch__soon { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 10px; padding: 18px; background: var(--white); text-align: center; }
.watch__soon img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.35; }
.watch__soon > :not(img) { position: relative; }
.watch__soon p { background: var(--white); border: 3px solid var(--ink); border-radius: 14px; padding: 8px 12px; font-weight: 700; margin: 0; }
.badge { display: inline-block; font-family: var(--font-display); font-weight: 600; text-decoration: none; background: var(--sun); border: 3px solid var(--ink); border-radius: 999px; padding: 2px 12px; box-shadow: 3px 3px 0 var(--ink); }
.watch__title { font-size: clamp(2rem, 4.6vw, 3.4rem); margin: 14px 0 8px; }
.watch__meta { font-weight: 800; }
.watch__actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 14px 0 22px; }
.watch__actions .like, .watch__actions .share__btn { font-size: 1.05rem; padding: 7px 14px; }
.watch__actions .share__menu { bottom: auto; top: calc(100% + 8px); left: 0; right: auto; }
.watch__desc { background: var(--white); border: var(--line) solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px; font-weight: 600; overflow-wrap: anywhere; }
.watch__desc a { font-weight: 800; }
.watch__cta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 22px; background: var(--sun); border: var(--line) solid var(--ink); border-radius: var(--radius); padding: 14px 18px; box-shadow: var(--shadow); }
.watch__cta img { border-radius: 50%; }
.watch__cta p { margin: 0; flex: 1 1 180px; font-weight: 700; }
@media (max-width: 820px) { .watch__grid { grid-template-columns: 1fr; } .watch__player { position: static; } .facade, .watch__soon, .watch__iframe { max-height: 72vh; width: auto; } }

/* ---------- Footer ---------- */
.site-footer { position: relative; margin-top: clamp(80px, 10vw, 140px); background: var(--ink); color: var(--white); border-top: 6px solid var(--sun); }
.site-footer__ledge { position: absolute; right: clamp(20px, 10vw, 140px); top: 0; transform: translateY(-96%); width: 110px; }
.mascot--footer { width: 100%; overflow: visible; display: block; }
.site-footer__inner { max-width: var(--max); margin: 0 auto; padding: 50px var(--gutter) 20px; display: grid; grid-template-columns: 1.3fr 1.4fr auto; gap: 30px; align-items: start; }
.site-footer__brand { display: flex; gap: 14px; align-items: center; }
.site-footer__brand img { border-radius: 50%; border: 3px solid var(--sun); }
.site-footer__name { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; margin: 0; }
.site-footer__tag { margin: 0; opacity: 0.85; font-weight: 600; }
.site-footer__nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.site-footer__nav a { font-weight: 800; text-decoration: none; }
.site-footer__nav a:hover { color: var(--sun); }
.site-footer__social { display: flex; gap: 12px; }
.social { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; border: 3px solid var(--white); transition: transform 0.25s var(--ease-bounce); }
.social svg { width: 26px; height: 26px; }
.social--yt { background: var(--yt); }
.social--fb { background: var(--fb); }
.social:hover { transform: rotate(-12deg) scale(1.1); }
.site-footer__copy { text-align: center; padding: 18px var(--gutter) 30px; margin: 0; opacity: 0.7; font-weight: 600; font-size: 0.95rem; }
@media (max-width: 860px) { .site-footer__inner { grid-template-columns: 1fr; } .site-footer__ledge { width: 84px; } }

/* ---------- Mascot SVG ---------- */
.mascot { overflow: visible; }
.m-limb { stroke: var(--ink); stroke-linecap: round; fill: none; }
.m-limb--leg { stroke-width: 9; }
.m-limb--sleeve { stroke-width: 13; stroke: #1d1d1f; }
.m-stripe { stroke: var(--sun); stroke-width: 3; stroke-linecap: round; }
.m-hand { fill: #1d1d1f; stroke: var(--ink); stroke-width: 3; }
.m-shoe { fill: var(--ink); stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; }

/* ---------- Walking stickman ---------- */
.walker { position: fixed; left: 0; bottom: 0; z-index: 45; width: 84px; pointer-events: none; display: none; will-change: transform; }
html.js:not(.reduced) .walker { display: block; }
.mascot--walker { width: 100%; display: block; filter: drop-shadow(3px 3px 0 rgba(17, 17, 17, 0.25)); }
@media (max-width: 600px) { .walker { width: 62px; } }
/* A member's Stick Me: drawn on a wider canvas, so a little wider to stand as tall as Stick. */
.walker--me, .walker--buddy { width: 95px; }
.walker--buddy { z-index: 44; bottom: 3px; }
.walker--me { bottom: 3px; }
@media (max-width: 600px) { .walker--me, .walker--buddy { width: 70px; } }
@media (hover: hover) and (pointer: fine) { .walker--buddy .mascot--walker { pointer-events: auto; cursor: pointer; } }
@media (max-height: 560px) { html.js .walker { display: none; } }
.speech {
  position: absolute; left: 50%; bottom: calc(100% + 40px); transform: translateX(-18%); width: max-content; max-width: 220px;
  background: var(--white); border: var(--line) solid var(--ink); border-radius: 18px; padding: 8px 12px;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem; line-height: 1.25; box-shadow: 4px 4px 0 var(--ink);
}
.speech::after { content: ''; position: absolute; left: 12%; bottom: -14px; width: 20px; height: 20px; background: var(--white); border-right: var(--line) solid var(--ink); border-bottom: var(--line) solid var(--ink); transform: rotate(45deg) skew(10deg, 10deg); }
.speech.is-flipped { transform: translateX(-82%); }
.speech.is-flipped::after { left: auto; right: 12%; }

/* ---------- Floating clickable bulbs ---------- */
.float-bulb { position: absolute; z-index: 1; width: 46px; height: 64px; padding: 0; border: 0; background: none; cursor: pointer; filter: drop-shadow(3px 3px 0 var(--ink)); }
.float-bulb svg { width: 100%; height: 100%; }
.float-bulb:focus-visible { box-shadow: none; }

/* ---------- Burst particles ---------- */
.burst-bit { position: fixed; z-index: 90; left: 0; top: 0; pointer-events: none; font-size: 22px; line-height: 1; will-change: transform, opacity; }
.burst-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--sun); border: 2px solid var(--ink); }

/* ---------- Lightbox ---------- */
.lightbox { padding: 0; border: 0; background: transparent; overflow: visible; max-width: 96vw; max-height: 96vh; }
.lightbox::backdrop { background: rgba(17, 17, 17, 0.82); backdrop-filter: blur(3px); }
.lightbox__frame { position: relative; height: min(86vh, 820px); aspect-ratio: 9 / 16; max-width: 92vw; border: 6px solid var(--ink); border-radius: 26px; overflow: hidden; background: var(--ink); box-shadow: 0 0 0 6px var(--sun), 12px 14px 0 6px var(--ink); }
.lightbox__frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.lightbox--wide .lightbox__frame { height: auto; width: min(92vw, 1120px, calc(82vh * 16 / 9)); aspect-ratio: 16 / 9; max-width: none; }
.lightbox__close { position: absolute; top: -18px; right: -18px; width: 52px; height: 52px; border-radius: 50%; background: var(--sun); border: var(--line) solid var(--ink); font-size: 1.4rem; font-weight: 900; cursor: pointer; box-shadow: 3px 3px 0 var(--ink); transition: transform 0.2s var(--ease-bounce); }
.lightbox__close:hover { transform: rotate(90deg) scale(1.1); }
@media (max-width: 600px) { .lightbox__close { top: 8px; right: 8px; } }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 95; transform: translateX(-50%); background: var(--ink); color: var(--sun); border: 3px solid var(--sun); border-radius: 999px; padding: 10px 20px; font-family: var(--font-display); font-weight: 600; box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.35); }

/* ---------- Reveal (initial hidden state only when JS animations will run) ---------- */
html.js:not(.reduced):not(.reveal-all) :is(.reveal, .section__head):not(.is-in) { opacity: 0; }
html.js:not(.reduced):not(.reveal-all) :is(.hero__char, .hero__pill, .hero__tagline, .hero__sub, .hero__ctas, .hero__bulb-art, .page-hero__title, .page-hero__lede) { opacity: 0; }
html.js:not(.reduced):not(.reveal-all) .hero__doodle .draw { opacity: 0; }
@media (min-height: 561px) { html.js:not(.reduced) .site-footer__ledge { visibility: hidden; } }
/* Only pokeable with a mouse — on touch screens Stick must never steal taps from buttons underneath. */
@media (hover: hover) and (pointer: fine) { .mascot--walker { pointer-events: auto; cursor: pointer; } }

/* ---------- Keyframes ---------- */
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-12px) rotate(1.5deg); } }
@keyframes ticker { to { transform: translateX(-50%); } }
@keyframes scroll-dot { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(18px); opacity: 0; } 100% { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* ---------- Subscriber goal meter ---------- */
.goal__card {
  position: relative; text-align: center; background: var(--white); border: 5px solid var(--ink); border-radius: 34px;
  box-shadow: var(--shadow-lg); padding: clamp(26px, 5vw, 56px) clamp(16px, 4vw, 56px);
  background-image: radial-gradient(rgba(17, 17, 17, 0.08) 1.6px, transparent 1.6px); background-size: 22px 22px;
}
.goal__head .kicker::before { content: '🧠 '; }
.goal .section__head, .goal__head { margin-bottom: 18px; }
.odometer { display: inline-flex; flex-wrap: wrap; align-items: flex-end; justify-content: center; gap: clamp(4px, 1vw, 10px); margin: 6px 0 4px; font-family: var(--font-display); font-weight: 700; font-size: clamp(2.6rem, 10vw, 6.6rem); }
.odometer__digit {
  position: relative; display: inline-block; width: 0.74em; height: 1.12em; overflow: hidden; line-height: 1.12em;
  background: var(--sun); border: 5px solid var(--ink); border-radius: 0.2em; box-shadow: 5px 6px 0 var(--ink);
}
.odometer__digit::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 3px; background: rgba(17, 17, 17, 0.25); }
.odometer__strip { display: flex; flex-direction: column; transform: translateY(calc(var(--d) * -10%)); transition: transform 1.4s cubic-bezier(0.2, 1.4, 0.4, 1); transition-delay: calc(var(--i) * 90ms); }
.odometer__strip span { height: 1.12em; text-align: center; }
.odometer__sep { line-height: 1; padding-bottom: 0.1em; }
.odometer__label { flex-basis: 100%; font-size: 1.1rem; letter-spacing: 0.2em; text-transform: uppercase; margin-top: 12px; }

.climb { max-width: 860px; margin: 26px auto 0; }
.climb__track { position: relative; height: 34px; margin: 96px 34px 12px 10px; background: var(--white); border: 4px solid var(--ink); border-radius: 999px; box-shadow: 4px 4px 0 var(--ink); }
.climb__fill {
  position: absolute; left: 0; top: 0; bottom: 0; width: var(--progress); border-radius: 999px;
  background: repeating-linear-gradient(-45deg, var(--sun) 0 14px, #ffe45c 14px 28px); border-right: 4px solid var(--ink);
  transition: width 1.8s cubic-bezier(0.3, 1.2, 0.4, 1) 0.3s;
}
.climb__bulb { position: absolute; top: 50%; transform: translate(-50%, -50%); font-size: 1.5rem; filter: grayscale(1) opacity(0.45); transition: filter 0.4s, transform 0.4s var(--ease-bounce); }
.climb__bulb.is-lit { filter: drop-shadow(0 0 6px rgba(254, 213, 4, 0.9)); transform: translate(-50%, -50%) scale(1.2); }
.climb__stick { position: absolute; bottom: calc(100% - 4px); left: var(--progress); width: 58px; transform: translateX(-50%); transition: left 1.8s cubic-bezier(0.3, 1.2, 0.4, 1) 0.3s; }
.mascot--climb { width: 100%; display: block; overflow: visible; }
.climb__flag { position: absolute; right: -30px; bottom: calc(100% + 2px); font-size: 2.4rem; line-height: 1; }
.climb__flag b { position: absolute; left: 50%; top: -1.5em; transform: translateX(-30%); font-family: var(--font-display); font-size: 1rem; background: var(--ink); color: var(--sun); border-radius: 999px; padding: 2px 10px; white-space: nowrap; }
.climb__meta { font-weight: 800; font-size: 1.1rem; margin: 6px 0 0; }
.climb__meta strong { font-family: var(--font-display); font-size: 1.4rem; background: var(--sun); border: 3px solid var(--ink); border-radius: 10px; padding: 0 8px; }
.goal__ctas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; align-items: center; margin-top: 26px; }
.goal__ctas .share__btn { font-size: 1.05rem; padding: 10px 16px; }
.goal__ctas .share__menu { bottom: auto; top: calc(100% + 8px); }
.goal__note { margin: 16px 0 0; font-weight: 700; font-size: 0.95rem; opacity: 0.75; }
@media (max-width: 520px) { .odometer__digit { border-width: 3px; box-shadow: 3px 4px 0 var(--ink); } .climb__stick { width: 44px; } .climb__flag { right: -20px; font-size: 1.9rem; } }

/* Before the meter scrolls into view (animated mode only): digits at 0, bar empty. */
html.js:not(.reduced):not(.reveal-all) .goal:not(.is-counting) .odometer__strip { transform: translateY(0); transition: none; }
html.js:not(.reduced):not(.reveal-all) .goal:not(.is-counting) .climb__fill { width: 0; }
html.js:not(.reduced):not(.reveal-all) .goal:not(.is-counting) .climb__stick { left: 0; }
html.js:not(.reduced):not(.reveal-all) .goal:not(.is-counting) .climb__bulb { filter: grayscale(1) opacity(0.45); transform: translate(-50%, -50%); }

/* ---------- Stick News ---------- */
.news-masthead { text-align: center; border-block: 5px double var(--ink); padding: 14px 0 18px; margin-top: 10px; background: var(--paper); border-radius: 20px; box-shadow: var(--shadow); border-inline: 4px solid var(--ink); }
.news-masthead__edition { font-family: var(--font-display); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; margin: 0; font-size: 0.9rem; }
.news-masthead .page-hero__lede { margin: 6px auto 0; box-shadow: none; border-width: 3px; }
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: clamp(16px, 2.4vw, 28px); }
.news-card {
  position: relative; display: flex; flex-direction: column; gap: 8px; padding: 22px 20px 18px; text-decoration: none; color: var(--ink);
  background: var(--white); border: var(--line) solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow);
  background-image: repeating-linear-gradient(transparent 0 31px, rgba(58, 156, 237, 0.12) 31px 32px);
  transition: transform 0.25s var(--ease-bounce), box-shadow 0.25s;
}
.news-card:hover { transform: translate(-4px, -6px) rotate(-1deg); box-shadow: var(--shadow-lg); }
.news-card__emoji { position: absolute; top: -22px; right: 16px; width: 54px; height: 54px; display: grid; place-items: center; font-size: 1.8rem; background: var(--sun); border: var(--line) solid var(--ink); border-radius: 50%; box-shadow: 3px 3px 0 var(--ink); }
.news-card__meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-weight: 800; font-size: 0.85rem; }
.news-card__tag { background: var(--ink); color: var(--sun); border-radius: 999px; padding: 1px 10px; }
.news-card__headline { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; line-height: 1.15; }
.news-card__dek { font-weight: 600; }
.news-card__source { margin-top: auto; font-weight: 800; font-size: 0.85rem; color: var(--sky-dark); }
.news-disclaimer { margin: 26px auto 0; max-width: 760px; text-align: center; font-weight: 700; font-size: 0.9rem; opacity: 0.8; }
.news-disclaimer a { font-weight: 800; }

.story { max-width: 880px; margin: 0 auto; padding: clamp(30px, 5vw, 60px) var(--gutter) 20px; }
.story__head { position: relative; margin-top: 16px; background: var(--white); border: 5px solid var(--ink); border-radius: 28px; box-shadow: var(--shadow-lg); padding: clamp(22px, 4vw, 40px); }
.story__emoji { position: absolute; top: -30px; right: 24px; width: 72px; height: 72px; display: grid; place-items: center; font-size: 2.4rem; background: var(--sun); border: var(--line) solid var(--ink); border-radius: 50%; box-shadow: 4px 4px 0 var(--ink); }
.story__title { font-size: clamp(2rem, 5vw, 3.2rem); margin: 14px 0 10px; }
.story__dek { font-size: 1.25rem; font-weight: 700; }
.story__meta { margin: 0; font-weight: 700; opacity: 0.85; }
.story__meta a { font-weight: 800; }
.story__beats { display: grid; gap: 18px; margin-top: 26px; }
.beat { background: var(--white); border: var(--line) solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 20px 12px; }
.beat:nth-child(2) { background: var(--sun); }
.beat:nth-child(3) { transform: rotate(-0.6deg); }
.beat__label { display: inline-block; font-size: 1.05rem; text-transform: uppercase; letter-spacing: 0.06em; background: var(--ink); color: var(--sun); border-radius: 999px; padding: 3px 14px; margin-bottom: 8px; }
.beat p { font-size: 1.12rem; font-weight: 600; margin: 0 0 6px; }
.story__take { display: flex; gap: 16px; align-items: center; margin-top: 26px; background: var(--sky-deep); color: var(--white); border: var(--line) solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 20px; }
.story__take p { margin: 0; font-family: var(--font-display); font-size: 1.25rem; }
.mascot--take { width: 70px; flex: none; overflow: visible; }
.story__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 26px; }
.story__actions .share__menu { bottom: auto; top: calc(100% + 8px); }

.story__hook { position: relative; margin: 26px 0 0; padding: 18px 22px 18px 64px; font-family: var(--font-display); font-size: clamp(1.2rem, 2.6vw, 1.5rem); line-height: 1.3; background: var(--sun); border: var(--line) solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); }
.story__hook-mic { position: absolute; left: 16px; top: 16px; font-size: 1.8rem; }

.story__body { margin-top: 26px; background: var(--white); border: var(--line) solid var(--ink); border-radius: 28px; box-shadow: var(--shadow); padding: clamp(20px, 4vw, 40px); }
.chapter + .chapter, .never-believe + .chapter { margin-top: 26px; }
.chapter__heading { font-size: clamp(1.4rem, 3vw, 1.85rem); line-height: 1.15; margin: 0 0 10px; }
.chapter__heading::before { content: ''; display: inline-block; width: 14px; height: 14px; margin-right: 10px; border-radius: 50%; background: var(--sun); border: 3px solid var(--ink); vertical-align: 0.05em; }
.chapter p { font-size: 1.14rem; line-height: 1.65; font-weight: 600; margin: 0 0 12px; max-width: 68ch; }
.never-believe { margin: 28px -8px 0; background: var(--sun); border: var(--line) solid var(--ink); border-radius: var(--radius); box-shadow: 6px 6px 0 var(--ink); padding: 18px 22px; transform: rotate(-0.8deg); }
.never-believe__label { display: inline-block; margin: 0 0 8px; font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; background: var(--ink); color: var(--sun); border-radius: 999px; padding: 3px 14px; }
.never-believe p:last-child { margin: 0; font-family: var(--font-display); font-size: clamp(1.2rem, 2.6vw, 1.45rem); line-height: 1.35; }
.quick-facts { margin-top: 26px; background: var(--sky-deep); color: var(--white); border: var(--line) solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 22px; }
.quick-facts__title { font-size: 1.35rem; margin: 0 0 8px; color: var(--sun); }
.quick-facts ul { margin: 0; padding-left: 1.2em; }
.quick-facts li { font-weight: 700; font-size: 1.05rem; line-height: 1.5; margin: 4px 0; }

/* ==========================================================================
   Hidden games: bulbs, blackout + power line, meltdown, trophy case
   ========================================================================== */
@media (max-width: 700px) { .float-bulb { width: 32px; height: 44px; } }
.float-bulb.is-popped { opacity: 0; transition: opacity 0.2s; }

/* Brown-out warning at 15 pops: a gentle dim, well under 3 dips per second. */
body::after { content: ''; position: fixed; inset: 0; z-index: 150; background: #000; opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: no-preference) {
  html.brownout body::after { animation: brownout 1.4s ease-in-out; }
}
@keyframes brownout { 0% { opacity: 0; } 30% { opacity: 0.32; } 55% { opacity: 0.12; } 80% { opacity: 0.28; } 100% { opacity: 0; } }

/* The full-screen fade used for the lights going out / coming back. */
.power-fx { position: fixed; inset: 0; z-index: 200; background: #05070d; opacity: 0; pointer-events: none; }

/* ---------- Blackout: same site, night look ---------- */
html.blackout {
  --sky: #0a0f1f;
  --sky-deep: #121b36;
  --sky-dark: #8fc3ff;
  --ink: #e9edf7;
  --paper: #161d33;
  --white: #1b2340;
  --shadow: 0 0 0 2px rgba(254, 213, 4, 0.28), 0 0 22px rgba(254, 213, 4, 0.16);
  --shadow-lg: 0 0 0 2px rgba(254, 213, 4, 0.32), 0 0 30px rgba(254, 213, 4, 0.2);
  color-scheme: dark;
}
html.blackout body {
  background-color: var(--sky);
  background-image: radial-gradient(rgba(255, 255, 255, 0.5) 1px, transparent 1.6px), radial-gradient(rgba(254, 213, 4, 0.28) 1.2px, transparent 2px);
  background-size: 140px 140px, 290px 290px;
  background-position: 0 0, 70px 110px;
}
html.blackout img:not(.brand__logo) { filter: brightness(0.7) saturate(0.85); }
html.blackout :is(.float-bulb, .hero__bulb) { filter: drop-shadow(0 0 10px #fed504) drop-shadow(0 0 24px rgba(254, 213, 4, 0.6)); }
html.blackout .toast { background: #05070d; color: var(--sun); }
html.blackout .site-header { box-shadow: 0 0 24px rgba(254, 213, 4, 0.18); }
.blackout-dim { position: fixed; inset: 0; z-index: 49; pointer-events: none; background: rgba(2, 4, 12, 0.22); }
.blackout-dim.has-light {
  background: radial-gradient(circle 260px at var(--fx, 50%) var(--fy, 45%), rgba(255, 240, 180, 0.07) 0, rgba(0, 0, 0, 0.12) 45%, rgba(2, 4, 12, 0.5) 100%);
}

/* ---------- The broken power line ---------- */
.powerline { position: fixed; inset: 0; z-index: 85; pointer-events: none; }
.powerline__hint {
  position: fixed; top: 86px; left: 50%; transform: translateX(-50%); width: max-content; max-width: min(640px, calc(100vw - 32px));
  pointer-events: auto; text-align: center; background: #10162a; color: #fff; border: 3px solid var(--sun); border-radius: 18px;
  padding: 10px 16px; font-weight: 800; line-height: 1.4; box-shadow: 0 0 26px rgba(254, 213, 4, 0.3);
}
.powerline__hint strong { color: var(--sun); }
.powerline__breaker { background: none; border: 0; padding: 0 0 0 6px; color: #9fd0ff; text-decoration: underline; font-weight: 800; cursor: pointer; }
.powerline__wire { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.powerline__cable { fill: none; stroke: #8a93a8; stroke-width: 7; stroke-linecap: round; filter: drop-shadow(0 0 4px rgba(254, 213, 4, 0.55)); }
.powerline.is-connected .powerline__cable { stroke: var(--sun); filter: drop-shadow(0 0 10px #fed504); }
.powerline__pole { position: absolute; bottom: 20vh; width: 60px; height: 200px; }
.powerline__pole svg { width: 100%; height: 100%; display: block; }
.powerline__pole--left { left: 0; }
.powerline__pole--right { right: 0; }
.powerline__socket { position: absolute; top: 2%; left: -18px; width: 34px; height: 34px; border-radius: 50%; border: 3px dashed var(--sun); box-shadow: 0 0 16px rgba(254, 213, 4, 0.7); }
.powerline__plug {
  position: absolute; left: 0; top: 0; width: 48px; height: 48px; padding: 0; border: 0; background: none; pointer-events: auto;
  touch-action: none; cursor: grab; filter: drop-shadow(0 0 8px rgba(254, 213, 4, 0.8));
}
.powerline__plug.is-dragging { cursor: grabbing; }
.powerline__plug svg { width: 100%; height: 100%; display: block; }
@media (prefers-reduced-motion: no-preference) {
  .powerline__socket { animation: socket-pulse 1.6s ease-in-out infinite; }
}
@keyframes socket-pulse { 50% { transform: scale(1.18); box-shadow: 0 0 26px rgba(254, 213, 4, 0.95); } }
@media (max-width: 700px) {
  .powerline__pole { width: 42px; height: 140px; bottom: 26vh; }
  .powerline__hint { top: 76px; font-size: 0.9rem; }
}

/* ---------- Meltdown ---------- */
html.melting, html.melting body { overflow: hidden; }
.fall-word { display: inline-block; white-space: nowrap; }
.fall-char { display: inline-block; will-change: transform; }
.meltdown-ui {
  position: fixed; left: 50%; top: 42%; z-index: 120; transform: translate(-50%, -50%); width: min(440px, calc(100vw - 32px));
  text-align: center; background: #fed504; color: #111; border: 5px solid #111; border-radius: 26px; box-shadow: 10px 10px 0 #111; padding: 22px 20px 20px;
}
.meltdown-ui__title { font-family: var(--font-display); font-weight: 700; font-size: 1.7rem; margin: 0 0 4px; }
.meltdown-ui__sub { font-weight: 700; margin: 0 0 14px; }
.meltdown-ui .btn { color: #111; background: #fff; border-color: #111; }

/* ---------- Trophy case ---------- */
.trophy-btn {
  position: fixed; right: 16px; bottom: 16px; z-index: 60; width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center;
  font-size: 1.7rem; background: #fed504; border: 4px solid #111; box-shadow: 4px 4px 0 #111; cursor: pointer; padding: 0;
}
.trophy-btn__count { position: absolute; bottom: -8px; left: 50%; transform: translateX(-50%); background: #111; color: #fed504; font: 800 0.72rem/1 var(--font-body); padding: 3px 7px; border-radius: 999px; white-space: nowrap; }
.trophies {
  width: min(760px, calc(100vw - 24px)); max-height: calc(100vh - 40px); padding: 26px clamp(16px, 4vw, 30px); color: #111;
  background: #f4f1ee; border: 5px solid #111; border-radius: 28px; box-shadow: 10px 10px 0 #111;
}
.trophies::backdrop { background: rgba(8, 16, 36, 0.6); }
.trophies .kicker { color: #111; }
.trophies__title { font-size: clamp(1.8rem, 4vw, 2.4rem); margin: 0 0 16px; }
.trophies__close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; border: 3px solid #111; background: #fff; cursor: pointer; font-weight: 800; }
.trophies__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 12px; }
.trophy { display: grid; gap: 2px; padding: 12px 14px; background: #fff; border: 3px dashed #9a9a9a; border-radius: 16px; color: #555; }
.trophy.is-on { border: 3px solid #111; box-shadow: 4px 4px 0 #111; color: #111; background: #fffbe0; }
.trophy__emoji { font-size: 1.8rem; }
.trophy__name { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; }
.trophy__desc { font-weight: 700; font-size: 0.92rem; line-height: 1.35; }
.trophies__reset { margin-top: 16px; background: none; border: 0; padding: 0; color: #666; text-decoration: underline; font-weight: 700; cursor: pointer; }

/* Completionist reward: Stick's hoodie turns gold. */
.gold-hoodie .mascot:not(.mascot--me) .m-torso > path:first-child, .gold-hoodie .mascot:not(.mascot--me) .m-head > path:first-child { fill: #e8b517; }
html.blackout .site-nav a[aria-current='page'], html.blackout .site-header.is-open .site-nav a[aria-current='page'] { background: var(--sun); color: #0a0f1f; border-color: var(--sun); }
html.blackout .chip[aria-current='page'] { color: #0a0f1f; }

/* ==========================================================================
   Accounts: header login/avatar + bell, login card, member dashboard
   ========================================================================== */
.acct { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-weight: 800; color: var(--ink); background: var(--white); border: 3px solid var(--ink); border-radius: 999px; padding: 3px 12px 3px 4px; white-space: nowrap; }
.acct__face { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--sun); border: 2px solid var(--ink); font-family: var(--font-display); font-size: 0.95rem; }
.acct__label { max-width: 96px; overflow: hidden; text-overflow: ellipsis; }
.bell { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--white); border: 3px solid var(--ink); text-decoration: none; font-size: 1.1rem; }
.bell[hidden] { display: none; }
.bell__count { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--yt); color: #fff; font: 800 0.72rem/20px var(--font-body); text-align: center; border: 2px solid var(--ink); }
@media (max-width: 1099px) { .acct__label { display: none; } .acct { padding: 3px; } }

.auth { display: grid; place-items: center; }
.auth__card { position: relative; width: min(560px, 100%); background: var(--white); border: 5px solid var(--ink); border-radius: 28px; box-shadow: var(--shadow-lg); padding: clamp(22px, 4vw, 36px); text-align: center; }
.mascot--auth { width: 80px; margin: -10px auto 6px; display: block; }
.auth__title { font-size: clamp(1.8rem, 4vw, 2.4rem); margin: 0 0 8px; }
.auth__lede { font-weight: 700; margin: 0 0 16px; }
.auth__big { font-size: 3rem; margin: 0; }
.auth__form { display: grid; gap: 10px; text-align: left; }
.auth__label { font-weight: 800; }
.auth__input { font: inherit; font-weight: 700; padding: 12px 14px; border: 3px solid var(--ink); border-radius: 14px; background: var(--paper); color: var(--ink); }
.auth__check { display: flex; gap: 8px; align-items: center; font-weight: 800; }
.auth__check input { width: 20px; height: 20px; accent-color: var(--sun-deep); }
.auth__btn { justify-self: center; margin-top: 6px; }
.auth__error { color: #b00020; font-weight: 800; margin: 0; }
.auth__notice { font-weight: 800; background: var(--sun); border: 3px solid var(--ink); border-radius: 14px; padding: 10px 14px; }
.auth__perks { list-style: none; padding: 0; margin: 18px 0 10px; display: grid; gap: 6px; font-weight: 800; text-align: left; }
.auth__fine { font-size: 0.88rem; font-weight: 700; opacity: 0.8; margin: 0; }

.me__welcome { background: var(--sun); border: 3px solid var(--ink); border-radius: 16px; padding: 10px 16px; font-weight: 800; box-shadow: var(--shadow); }
.me__nick { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 6px 0 14px; }
.me__nick input { font: inherit; font-weight: 800; padding: 6px 10px; border: 3px solid var(--ink); border-radius: 12px; background: var(--white); color: var(--ink); width: 16ch; }
.me__msg { font-weight: 800; font-size: 0.9rem; }
.me__stats { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.me__stats li { background: var(--white); border: 4px solid var(--ink); border-radius: 18px; box-shadow: var(--shadow); padding: 12px 14px; display: grid; }
.me__stats b { font-family: var(--font-display); font-size: 2rem; line-height: 1; }
.me__stats span { font-weight: 800; font-size: 0.9rem; }
.me-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: clamp(14px, 2vw, 22px); align-items: start; }
.me-panel { background: var(--white); border: 4px solid var(--ink); border-radius: 22px; box-shadow: var(--shadow); padding: 18px 20px; }
.me-panel h2 { font-size: 1.4rem; margin: 0 0 10px; }
.me-panel__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.me-panel .pill { font: 800 0.8rem var(--font-body); background: var(--yt); color: #fff; border-radius: 999px; padding: 2px 9px; vertical-align: middle; }
.me-empty, .me-fine { font-weight: 700; opacity: 0.85; }
.notes, .follows { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.note a { display: grid; gap: 2px; text-decoration: none; padding: 10px 12px; border: 2px solid rgba(0, 0, 0, 0.15); border-radius: 14px; }
.note.is-new a { border: 3px solid var(--ink); background: #fffbe0; }
.note b { font-family: var(--font-display); }
.note span { font-weight: 700; }
.note time { font-size: 0.8rem; font-weight: 800; opacity: 0.7; }
.follows a { font-weight: 800; text-transform: capitalize; }
.me-prefs { display: grid; gap: 10px; font-weight: 700; }
.me-prefs input { width: 18px; height: 18px; accent-color: var(--sun-deep); margin-right: 6px; vertical-align: -3px; }
.link-btn { background: none; border: 0; padding: 0; font-weight: 800; text-decoration: underline; cursor: pointer; color: var(--ink); }
.link-btn--danger { color: #b00020; margin-top: 8px; }
html.blackout .note.is-new a { background: #242c4a; }

/* ==========================================================================
   Riddle Vault: riddle cards, vault sockets, hall of big brains
   ========================================================================== */
.riddle-slot { display: grid; gap: 18px; padding-bottom: 48px; }
.riddle-card { position: relative; max-width: 760px; margin: 0 auto; width: 100%; background: var(--white); border: 5px solid var(--ink); border-radius: 26px; box-shadow: var(--shadow-lg); padding: clamp(18px, 3vw, 28px); }
.riddle-card::before { content: '?'; position: absolute; top: -22px; right: 22px; width: 44px; height: 44px; display: grid; place-items: center; font: 700 1.6rem var(--font-display); background: var(--sun); border: 4px solid var(--ink); border-radius: 50%; transform: rotate(10deg); }
.riddle-card.is-solved::before { content: '✓'; background: #7be08a; }
.riddle-card__head { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-weight: 800; font-size: 0.9rem; margin-bottom: 8px; }
.riddle-card__num { background: var(--ink); color: var(--white); border-radius: 999px; padding: 2px 10px; }
.riddle-card__chain { border: 2px solid var(--ink); border-radius: 999px; padding: 1px 9px; }
.riddle-card__tier { margin-left: auto; letter-spacing: -2px; }
.riddle-card__title { font-size: clamp(1.4rem, 3vw, 1.9rem); margin: 0 0 10px; }
.riddle-card__prompt { white-space: pre-line; font-weight: 700; font-size: 1.08rem; background: var(--paper); border: 3px dashed var(--ink); border-radius: 16px; padding: 14px 16px; overflow-wrap: anywhere; }
.riddle-card__form { display: flex; gap: 10px; flex-wrap: wrap; }
.riddle-card__input { flex: 1 1 200px; min-width: 0; font: inherit; font-weight: 800; padding: 10px 14px; border: 3px solid var(--ink); border-radius: 14px; background: var(--white); color: var(--ink); }
.riddle-card__feedback { min-height: 1.6em; font-weight: 800; margin: 8px 0 4px; }
.riddle-card__hints { margin-bottom: 10px; }
.riddle-card__hintlist { margin: 8px 0 0; padding-left: 1.4em; font-weight: 700; display: grid; gap: 4px; }
.riddle-card__hintlist:empty { display: none; }
.riddle-card__solved { display: grid; grid-template-columns: 90px 1fr; gap: 14px; align-items: start; background: #eafbe9; border: 3px solid var(--ink); border-radius: 18px; padding: 12px 14px; margin: 6px 0 12px; }
.riddle-card__solved[hidden] { display: none; }
.riddle-card__bulb svg { width: 90px; height: auto; display: block; }
.riddle-card__win { font-family: var(--font-display); font-size: 1.15rem; margin: 0 0 6px; }
.riddle-card__explain { font-weight: 700; margin: 0 0 6px; }
.riddle-card__next { font-weight: 800; margin: 0; }
.riddle-card__next:empty, .riddle-card__explain:empty { display: none; }
.riddle-card__link { font-weight: 800; font-size: 0.9rem; }
.riddle-card.is-solved .riddle-card__form, .riddle-card.is-solved .riddle-card__hints { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .riddle-card.is-wrong { animation: riddle-shake 0.4s; }
  .riddle-card.is-solved .riddle-card__bulb svg { animation: riddle-pop 0.7s var(--ease-bounce); }
}
@keyframes riddle-shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
@keyframes riddle-pop { from { transform: scale(0) rotate(-30deg); } to { transform: scale(1) rotate(0); } }
@media (max-width: 520px) { .riddle-card__solved { grid-template-columns: 64px 1fr; } .riddle-card__bulb svg { width: 64px; } }

/* Riddles that only exist in the dark. */
.riddle-card--dark { display: none; }
html.blackout .riddle-card--dark { display: block; box-shadow: 0 0 0 3px var(--sun), 0 0 40px rgba(254, 213, 4, 0.45); }
html.blackout .riddle-card__solved { background: #1d3a2a; }
html.blackout .riddle-card__num { color: #0a0f1f; }
.riddle-slot:not(:has(.riddle-card:not(.riddle-card--dark))) { padding: 0; }
html.blackout .riddle-slot { padding: 24px var(--gutter) 48px; }

/* Vault */
.vault-stats { list-style: none; padding: 0; margin: 18px 0 12px; display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; max-width: 720px; }
.vault-stats li { background: var(--white); border: 4px solid var(--ink); border-radius: 18px; box-shadow: var(--shadow); padding: 10px 14px; display: grid; }
.vault-stats b { font-family: var(--font-display); font-size: 2rem; line-height: 1; }
.vault-stats span { font-weight: 800; font-size: 0.9rem; }
.vault-drop { font-weight: 800; background: var(--sun); border: 3px solid var(--ink); border-radius: 14px; padding: 10px 14px; display: inline-block; color: #111; }
.vault-drop a { color: #111; }
.season { background: var(--white); border: 4px solid var(--ink); border-radius: 24px; box-shadow: var(--shadow); padding: 16px 18px; margin-bottom: 18px; opacity: 0.75; }
.season.is-open { opacity: 1; }
.season__title { font-size: clamp(1.25rem, 2.6vw, 1.6rem); margin: 0 0 4px; }
.season__meta { font-weight: 700; margin: 0; }
.sockets { list-style: none; padding: 0; margin: 14px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 8px; }
.socket { position: relative; display: grid; place-items: center; aspect-ratio: 3 / 4; border: 3px solid var(--ink); border-radius: 12px; background: var(--paper); text-decoration: none; overflow: hidden; }
.socket__num { position: absolute; bottom: 2px; left: 0; right: 0; text-align: center; font: 800 0.66rem var(--font-body); }
.socket__bulb { width: 70%; }
.socket__bulb svg { display: block; width: 100%; height: auto; }
a.socket { background: #fffbe0; }
a.socket::before { content: '?'; font: 700 1.3rem var(--font-display); }
a.socket.is-found { background: #fff2a8; }
a.socket.is-solved { background: #eafbe9; }
a.socket.is-solved::before { content: none; }
a.socket:hover { transform: translateY(-2px) rotate(-3deg); box-shadow: 3px 3px 0 var(--ink); }
.socket--locked { border-style: dashed; background:var(--paper); color:var(--ink); }
.riddle-index { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.riddle-index li { background: var(--white); border: 3px solid var(--ink); border-radius: 16px; padding: 10px 14px; display: grid; gap: 2px; }
.riddle-index li.is-solved { background: #eafbe9; }
.riddle-index li.is-solved b::after { content: ' ✅'; }
.riddle-index span { font-weight: 700; font-size: 0.92rem; }
.riddle-solo__more { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 22px; }
html.blackout :is(.vault-stats li, .season, .riddle-index li) { background: var(--white); }
html.blackout :is(a.socket, a.socket.is-found) { background: #242c4a; }
html.blackout :is(a.socket.is-solved, .riddle-index li.is-solved) { background: #1d3a2a; }

/* Hall of Big Brains */
.hall-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: clamp(14px, 2vw, 22px); align-items: start; }
.leaders { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.leaders li { display: grid; grid-template-columns: 44px 1fr auto; gap: 10px; align-items: center; border: 2px solid rgba(0, 0, 0, 0.15); border-radius: 14px; padding: 8px 12px; font-weight: 800; }
.leaders li:first-child { border: 3px solid var(--ink); background: #fffbe0; }
.leaders__rank { font-size: 1.3rem; text-align: center; }
html.blackout .leaders li:first-child { background: #242c4a; }
html.blackout .btn--sun { --btn-fg: #0a0f1f; }
html.blackout .btn--yt { --btn-fg: #fff; }
/* Phones: logo, login, subscribe and menu all fit on one row. */
@media (max-width: 480px) {
  .site-header { gap: 6px; }
  .brand { gap: 6px; }
  .brand__logo { width: 34px; height: 34px; }
  .brand__name { font-size: 1rem; gap: 4px; }
  .brand__pill { font-size: 0.78rem; padding: 0 6px; border-width: 2px; }
  .acct__face { width: 28px; height: 28px; }
  .bell { width: 36px; height: 36px; font-size: 1rem; }
  html.js .nav-toggle { width: 40px; height: 40px; }
}
@media (max-width: 389px) { .brand__pill { display: none; } }
@media (max-width: 440px) { .site-header:has(.bell:not([hidden])) .brand__pill { display: none; } }
@media (max-width: 340px) { .site-header:has(.bell:not([hidden])) .brand__name { display: none; } }

/* ==========================================================================
   Case Files: hub, court calendar, case pages, timeline, admin desk
   ========================================================================== */
.court-cal { background: var(--white); border: 5px solid var(--ink); border-radius: 26px; box-shadow: var(--shadow-lg); padding: clamp(16px, 3vw, 26px); }
.court-cal__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.court-cal__title { font-size: clamp(1.4rem, 3vw, 1.9rem); }
.court-cal__empty { font-weight: 700; margin: 0; }
.court-cal__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.court-date { display: grid; grid-template-columns: 74px 1fr auto; gap: 12px; align-items: center; border: 3px solid var(--ink); border-radius: 16px; padding: 8px 12px; background: var(--paper); }
.court-date__day { display: grid; text-align: center; background: var(--sun); border: 3px solid var(--ink); border-radius: 12px; padding: 4px; line-height: 1.1; color: #111; }
.court-date__day b { font-family: var(--font-display); font-size: 1.1rem; }
.court-date__day small { font-weight: 800; font-size: 0.75rem; }
.court-date__what { display: grid; min-width: 0; }
.court-date__what a { font-weight: 800; text-decoration: none; }
.court-date__what a:hover { text-decoration: underline; }
.court-date__what small { font-weight: 700; opacity: 0.8; }
.court-date__when { font: 700 0.9rem var(--font-display); background: var(--ink); color: var(--white); border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
@media (max-width: 520px) { .court-date { grid-template-columns: 60px 1fr; } .court-date__when { grid-column: 2; justify-self: start; } }

.case-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: clamp(14px, 2vw, 22px); }
.case-card { position: relative; background: var(--white); border: 4px solid var(--ink); border-radius: 22px; box-shadow: var(--shadow); padding: 16px 18px; display: grid; gap: 8px; align-content: start; }
.case-card::before { content: ''; position: absolute; top: -14px; left: 22px; width: 90px; height: 18px; background: var(--sun); border: 4px solid var(--ink); border-bottom: 0; border-radius: 10px 10px 0 0; }
.case-card p { margin: 0; }
.case-card__stage { font-weight: 800; font-size: 0.88rem; }
.case-card__title { font-size: 1.35rem; }
.case-card__title a { text-decoration: none; }
.case-card__title a:hover { text-decoration: underline; }
.case-card__where, .case-card__followers { font-weight: 700; font-size: 0.92rem; opacity: 0.85; }
.case-card__summary { font-weight: 600; }
.case-card__next { font-weight: 800; background: var(--paper); border: 2px dashed var(--ink); border-radius: 12px; padding: 6px 10px; }
.case-card__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.stage-dots { list-style: none; margin: 0; padding: 0; display: flex; gap: 5px; }
.stage-dots li { flex: 1; height: 8px; border-radius: 99px; background: var(--paper); border: 2px solid var(--ink); }
.stage-dots li.is-done { background: var(--sky); }
.stage-dots li.is-now { background: var(--sun); }
[data-follow][aria-pressed='true'] { --btn-bg: #7be08a; }

.case-rules { background: var(--white); border: 4px solid var(--ink); border-radius: 22px; box-shadow: var(--shadow); padding: 16px 20px; }
.case-rules h2 { font-size: 1.4rem; margin: 0 0 8px; }
.case-rules ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; font-weight: 600; }

.case-hero__stage { display: inline-block; font-weight: 800; background: var(--sun); border: 3px solid var(--ink); border-radius: 999px; padding: 2px 12px; margin: 0 0 10px; color: #111; }
.case-hero__where { font-weight: 800; margin: 10px 0 14px; }
.case-hero__actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.case-hero__followers { font-weight: 700; margin: 12px 0 0; max-width: 680px; }
.case-body { display: grid; gap: 20px; max-width: 900px; }
.case-notice { margin: 0; font-weight: 700; background: #fffbe0; border: 3px solid var(--ink); border-radius: 16px; padding: 12px 16px; }
.stage-track { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; counter-reset: st; }
.stage-track li { display: grid; justify-items: center; gap: 2px; text-align: center; font-size: 1.3rem; padding: 8px 2px; border: 3px solid var(--ink); border-radius: 14px; background: var(--white); opacity: 0.55; }
.stage-track b { font-size: 0.72rem; font-family: var(--font-body); font-weight: 800; line-height: 1.1; }
.stage-track li.is-done { opacity: 1; background: #dff0ff; }
.stage-track li.is-now { opacity: 1; background: var(--sun); color: #111; transform: translateY(-4px); box-shadow: 3px 3px 0 var(--ink); }
@media (max-width: 640px) { .stage-track { grid-template-columns: repeat(4, 1fr); } }
.next-date { background: var(--ink); color: var(--white); border-radius: 22px; padding: 16px 20px; box-shadow: 6px 6px 0 var(--sun); }
.next-date p { margin: 0; }
.next-date__label { font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8rem; color: var(--sun); }
.next-date__big { font: 700 clamp(1.5rem, 4vw, 2.3rem) var(--font-display); margin: 4px 0 !important; }
.next-date__what { font-weight: 700; }
.next-date__what a { color: inherit; }
.case-summary { background: var(--white); border: 4px solid var(--ink); border-radius: 22px; box-shadow: var(--shadow); padding: 16px 20px; }
.case-summary h2 { font-size: 1.4rem; margin: 0 0 8px; }
.case-summary p { margin: 0; font-weight: 600; font-size: 1.08rem; }
.timeline__heading { font-size: 1.5rem; color: var(--white); -webkit-text-stroke: 0.1em var(--ink); paint-order: stroke fill; }
.timeline__heading small { font-size: 0.9rem; -webkit-text-stroke: 0; color: var(--ink); }
.timeline { list-style: none; margin: 0; padding: 0 0 0 26px; position: relative; display: grid; gap: 14px; }
.timeline::before { content: ''; position: absolute; left: 12px; top: 6px; bottom: 6px; width: 5px; border-radius: 9px; background: var(--ink); }
.tl { position: relative; scroll-margin-top: 110px; }
.tl__dot { position: absolute; left: -30px; top: 10px; width: 40px; height: 40px; display: grid; place-items: center; background: var(--white); border: 4px solid var(--ink); border-radius: 50%; font-size: 1.1rem; z-index: 1; }
.tl__card { margin-left: 20px; background: var(--white); border: 4px solid var(--ink); border-radius: 18px; box-shadow: var(--shadow); padding: 12px 16px; }
.tl--upcoming .tl__card { background: #fffbe0; }
.tl--upcoming .tl__dot { background: var(--sun); }
.tl:target .tl__card { outline: 4px solid var(--sun); outline-offset: 3px; }
.tl__meta { font-weight: 800; font-size: 0.88rem; margin: 0 0 4px; }
.tl__tag { background: var(--ink); color: var(--white); border-radius: 999px; padding: 1px 8px; font-size: 0.75rem; }
.tl__title { font-size: 1.2rem; margin: 0 0 6px; }
.tl__body { font-weight: 600; margin: 0 0 6px; }
.tl__source { font-weight: 700; font-size: 0.88rem; margin: 0; }
.tl.is-new .tl__card::after { content: 'NEW'; position: absolute; top: -10px; right: 14px; font: 700 0.75rem var(--font-display); background: var(--yt); color: #fff; border: 3px solid var(--ink); border-radius: 999px; padding: 1px 8px; }
.tl__card { position: relative; }
.case-cta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: center; text-align: center; background: var(--sun); border: 4px solid var(--ink); border-radius: 22px; box-shadow: var(--shadow); padding: 16px 20px; color: #111; }
.case-cta p { margin: 0; width: 100%; font-weight: 800; font-size: 1.1rem; }

.case-box { background: #fffbe0; border: 4px solid var(--ink); border-radius: 18px; box-shadow: var(--shadow); padding: 12px 16px; margin: 14px 0; color: #111; }
.case-box p { margin: 0 0 6px; }
.case-box__kicker { font-weight: 800; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; }
.case-box__title { font: 700 1.25rem var(--font-display); }
.case-box__next { font-weight: 700; }
.case-box__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }

/* Admin desk */
.flash { font-weight: 800; border: 3px solid var(--ink); border-radius: 14px; padding: 10px 14px; background: #eafbe9; max-width: 760px; }
.flash--err { background: #ffe1e6; }
.admin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 18px; align-items: start; }
.admin-wide { grid-column: 1 / -1; }
.admin-list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; }
.admin-list li { display: grid; gap: 2px; border: 2px solid rgba(0, 0, 0, 0.15); border-radius: 12px; padding: 8px 12px; }
.admin-list span { font-weight: 700; font-size: 0.9rem; }
.admin-list__btns { display: flex; gap: 10px; align-items: center; margin-top: 4px; }
.admin-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.admin-form label { display: grid; gap: 4px; font-weight: 800; }
.admin-form small { font-weight: 700; opacity: 0.75; }
.admin-form :is(input:not([type='checkbox']), select, textarea) { font: inherit; font-weight: 700; padding: 8px 12px; border: 3px solid var(--ink); border-radius: 12px; background: var(--paper); color: var(--ink); width: 100%; }
.admin-form__wide { grid-column: 1 / -1; }
.admin-form__check { display: flex !important; align-items: center; gap: 8px; }
.admin-form__check input { width: 20px; height: 20px; accent-color: var(--sun-deep); }
.admin-form p { margin: 0; }
@media (max-width: 640px) { .admin-form { grid-template-columns: 1fr; } }
html.blackout :is(.case-notice, .case-box, .tl--upcoming .tl__card) { background: #242c4a; color: var(--ink); }
html.blackout .court-date__when { color: #0a0f1f; background: var(--sun); }
.auth__code { font: 800 2rem/1 'Courier New', monospace; letter-spacing: 0.35em; text-align: center; padding: 14px 10px; }
.auth__resend { margin-top: 14px; }
.stick-facts { display: grid; gap: 6px; padding-left: 1.2em; font-weight: 700; }
.kind-key { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 8px; max-width: 900px; }
.kind-key li { background: var(--white); border: 3px solid var(--ink); border-radius: 14px; padding: 8px 12px; font-weight: 700; font-size: 0.92rem; display: grid; }
.kind-key b { font-family: var(--font-display); font-size: 1.02rem; }

/* ==========================================================================
   Coming Soon + "NEW since your last visit" stickers
   ========================================================================== */
.soon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: clamp(14px, 2vw, 22px); }
.soon-card { position: relative; background: var(--white); border: 4px solid var(--ink); border-radius: 22px; box-shadow: var(--shadow); padding: 16px 18px; display: grid; gap: 8px; align-content: start; scroll-margin-top: 110px; }
.soon-card:target { outline: 4px solid var(--sun); outline-offset: 3px; }
.soon-card p { margin: 0; }
.soon-card__art { display: grid; place-items: center; height: 110px; font-size: 3.4rem; border: 3px dashed var(--ink); border-radius: 16px; background: repeating-linear-gradient(-45deg, var(--paper), var(--paper) 12px, #fffbe0 12px, #fffbe0 24px); filter: saturate(1.1); }
.soon-card__format { font-weight: 800; font-size: 0.88rem; }
.soon-card__title { font-size: 1.3rem; }
.soon-card__teaser { font-weight: 600; }
.soon-card__actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.soon-card__waiting { font-weight: 800; font-size: 0.9rem; opacity: 0.85; }
.soon-empty { text-align: center; background: var(--white); border: 4px solid var(--ink); border-radius: 22px; box-shadow: var(--shadow); padding: 24px; max-width: 640px; margin: 0 auto; font-weight: 700; }
.soon-empty__big { font-size: 3rem; margin: 0; }
.soon-out { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.soon-out li { background: var(--white); border: 3px solid var(--ink); border-radius: 14px; padding: 10px 14px; font-weight: 700; }
.soon-out small { opacity: 0.8; }
.soon-home .section__head .btn { margin-left: auto; }
.admin-edit summary { cursor: pointer; font-weight: 800; margin: 6px 0; }
html.blackout .soon-card__art { background: repeating-linear-gradient(-45deg, #161d33, #161d33 12px, #242c4a 12px, #242c4a 24px); }

[data-fresh].is-new { position: relative; }
.new-sticker { position: absolute; top: -12px; left: -10px; z-index: 3; font: 700 0.8rem var(--font-display); letter-spacing: 0.04em; background: var(--yt); color: #fff; border: 3px solid var(--ink); border-radius: 999px; padding: 2px 10px; transform: rotate(-8deg); box-shadow: 2px 2px 0 var(--ink); pointer-events: none; }
@media (prefers-reduced-motion: no-preference) { .new-sticker { animation: new-pop 0.5s var(--ease-bounce) both 0.3s; } }
@keyframes new-pop { from { transform: rotate(-8deg) scale(0); } to { transform: rotate(-8deg) scale(1); } }
.yt-chip { display: inline-block; font: 800 0.75rem var(--font-body); background: var(--yt); color: #fff; border-radius: 6px; padding: 1px 7px; margin-right: 4px; vertical-align: 1px; }
.soon-card__drop { font-weight: 800; }
.soon-card__countdown { display: inline-block; background: var(--ink); color: var(--white); border-radius: 999px; padding: 1px 9px; font-size: 0.82rem; margin-left: 4px; }
.soon-card__countdown:empty { display: none; }
.soon-card__case { font-weight: 700; font-size: 0.92rem; }
html.blackout .soon-card__countdown { background: var(--sun); color: #0a0f1f; }
.cases-hero__links { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 0; }

/* ==========================================================================
   Polls, share buttons, phone notifications, trophy pages, phone tap targets
   ========================================================================== */
.poll { background: var(--white); border: 4px solid var(--ink); border-radius: 22px; box-shadow: var(--shadow); padding: 16px 20px; margin: 14px 0; }
.poll[hidden] { display: none; }
.poll__kicker { margin: 0; font-weight: 800; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; }
.poll__q { font-size: clamp(1.2rem, 2.6vw, 1.5rem); margin: 4px 0 12px; }
.poll__options { display: grid; gap: 8px; }
.poll__option { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 10px; text-align: left; font: 800 1rem var(--font-body); padding: 12px 14px; min-height: 48px; border: 3px solid var(--ink); border-radius: 14px; background: var(--paper); color: var(--ink); cursor: pointer; }
.poll__option:hover { background: #fffbe0; }
.poll__bar { position: absolute; inset: 0 auto 0 0; background: rgba(82, 171, 253, 0.35); transition: width 0.6s var(--ease-bounce); }
.poll__option.is-mine .poll__bar { background: rgba(254, 213, 4, 0.7); }
.poll__label, .poll__pct { position: relative; }
.poll__foot { margin: 10px 0 0; font-weight: 700; font-size: 0.9rem; opacity: 0.85; }
.poll.is-busy { opacity: 0.6; pointer-events: none; }
.riddle-card__share { margin-top: 8px; }
.trophy__share { justify-self: start; font: 800 0.8rem var(--font-body); background: var(--sun); color: #111; border: 2px solid var(--ink); border-radius: 999px; padding: 3px 10px; cursor: pointer; margin-top: 4px; }
.push-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0; }
.push-nudge { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 60; width: min(560px, calc(100% - 24px)); display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; background: var(--white); border: 4px solid var(--ink); border-radius: 18px; box-shadow: var(--shadow-lg); padding: 12px 16px; }
.push-nudge p { margin: 0; flex: 1 1 100%; font-weight: 800; }
.trophy-page__emoji { font-size: 4.5rem; margin: 0; }
.trophy-page__hint { font-weight: 700; background: var(--paper); border: 2px dashed var(--ink); border-radius: 12px; padding: 8px 12px; }
.admin-search { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; margin-bottom: 12px; font-weight: 800; }
.admin-search input { font: inherit; padding: 6px 10px; border: 3px solid var(--ink); border-radius: 10px; }
html.blackout .poll__option { background: #242c4a; }
html.blackout .push-nudge { background: #1b2340; }

/* Phones: Stick walks over the page, so he isn't tappable; a Poke button stands in for him. */
.poke-btn { display: none; }
@media (pointer: coarse) { .poke-btn { display: inline-flex; } }

/* Fingers are bigger than mouse pointers. */
@media (pointer: coarse) {
  .site-footer__nav a, .crumbs a, .riddle-card__link, .tl__source a, .follows a, .case-card__title a { display: inline-block; padding-block: 8px; }
  .link-btn { min-height: 40px; padding: 8px 2px; }
  .crumbs { line-height: 2.2; }
}

.riddle-card__story { margin: .5rem 0; font-weight: 700; }

/* ---------- Stick-Tok (vertical Shorts feed) ---------- */
.page-watch { overflow: hidden; background: var(--ink); }
.page-watch :is(.site-footer, .walker, .scroll-progress, .trophy-btn) { display: none !important; }
.page-watch main { display: contents; }
.feed { position: fixed; inset: 0; z-index: 40; overflow-y: auto; overscroll-behavior: contain; scroll-snap-type: y mandatory; background: var(--ink); scrollbar-width: none; outline: none; }
.feed::-webkit-scrollbar { display: none; }
.feed__slide { height: 100vh; height: 100dvh; scroll-snap-align: start; scroll-snap-stop: always; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 86px 12px 16px; color: var(--white); }
.feed__stage { display: flex; align-items: flex-end; gap: 14px; min-height: 0; flex: 1; max-height: 100%; }
.feed__screen { position: relative; height: 100%; max-height: 100%; aspect-ratio: 9 / 16; max-width: calc(100vw - 24px); border: 5px solid var(--white); border-radius: 26px; overflow: hidden; background: #000; box-shadow: 0 0 0 5px var(--sun); }
.feed__thumb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.feed__screen iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 2; }
.feed__start { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 1; display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; font: 700 1.15rem var(--font-display); background: var(--sun); color: var(--ink); border: 4px solid var(--ink); border-radius: 999px; box-shadow: 4px 4px 0 var(--ink); cursor: pointer; transition: transform 0.2s var(--ease-bounce); }
.feed__start:hover { transform: translate(-50%, -50%) scale(1.08) rotate(-3deg); }
.feed__slide.is-playing .feed__start { display: none; }
.feed__side { display: flex; flex-direction: column; gap: 12px; align-items: center; padding-bottom: 8px; }
.feed__side .like, .feed__side .share__btn, .feed__btn { color: var(--ink); }
.feed__btn { display: grid; place-items: center; width: 56px; min-height: 56px; padding: 4px; background: var(--white); border: 3px solid var(--ink); border-radius: 18px; font-size: 1.4rem; text-decoration: none; cursor: pointer; box-shadow: 3px 3px 0 var(--sun); }
.feed__btn small { font: 700 0.65rem var(--font-display); line-height: 1.1; text-align: center; }
.feed__side .share__menu { right: calc(100% + 8px); bottom: 0; }
.feed__caption { display: flex; flex-direction: column; align-items: center; gap: 6px; max-width: min(560px, 100%); text-align: center; }
.feed__title { margin: 0; font: 700 clamp(1.05rem, 2.4vw, 1.4rem) var(--font-display); line-height: 1.2; }
.feed__title a { color: var(--white); text-decoration: none; }
.feed__title a:hover { text-decoration: underline; }
.feed__end { justify-content: center; }
.feed__endcard { max-width: 520px; padding: 28px; text-align: center; background: var(--white); color: var(--ink); border: 5px solid var(--ink); border-radius: 28px; box-shadow: 0 0 0 5px var(--sun); }
.feed__endemoji { font-size: 3rem; margin: 0; }
.feed__endlinks { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.feed-hud { position: fixed; z-index: 45; left: 12px; bottom: 14px; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; color: var(--white); pointer-events: none; }
.feed-hud > * { pointer-events: auto; }
.feed-hud__title { margin: 0; padding: 4px 12px; font: 700 1rem var(--font-display); background: var(--sun); color: var(--ink); border: 3px solid var(--ink); border-radius: 999px; }
.feed-hud__tip { margin: 0; font-size: 0.8rem; opacity: 0.8; }
.feed-hud__auto { font-size: 0.85rem; font-weight: 700; display: flex; gap: 6px; align-items: center; }
@media (max-width: 700px) {
  .feed__slide { padding: 74px 8px 10px; gap: 6px; }
  .feed__stage { position: relative; width: 100%; justify-content: center; }
  .feed__screen { max-width: 100%; border-width: 3px; box-shadow: 0 0 0 3px var(--sun); }
  .feed__side { position: absolute; right: 10px; bottom: 74px; z-index: 3; gap: 8px; }
  .feed__btn { width: 48px; min-height: 48px; font-size: 1.2rem; }
  .feed__slide.is-playing .feed__side { opacity: 0.85; }
  /* Phones: the Up next overlay has the auto-play switch; keep the screen clear. */
  .feed-hud { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (max-height: 560px) { .feed__caption .badge { display: none; } }

/* ---------- Up next + quizzes ---------- */
.upnext { position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: 18px; background: rgba(17, 17, 17, 0.9); color: var(--white); text-align: center; overflow-y: auto; }
.upnext__done { margin: 0; font: 700 1.3rem var(--font-display); color: var(--sun); }
.upnext__next { display: flex; gap: 10px; align-items: center; text-align: left; background: var(--white); color: var(--ink); border: 3px solid var(--sun); border-radius: 16px; padding: 8px; }
.upnext__next img { width: 84px; height: 63px; object-fit: cover; border-radius: 10px; border: 2px solid var(--ink); flex: none; }
.upnext__label { margin: 0; font-size: 0.8rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.03em; }
.upnext__title { margin: 2px 0 0; font: 700 0.95rem var(--font-display); line-height: 1.2; }
.upnext__row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center; }
.upnext .link-btn { color: var(--white); }
.upnext__auto { font-size: 0.85rem; display: inline-flex; gap: 6px; align-items: center; }
.quiz-cta { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; margin: 16px 0; padding: 14px 16px; background: var(--sun); border: 4px solid var(--ink); border-radius: 18px; box-shadow: 4px 4px 0 var(--ink); }
.quiz-cta p { margin: 0; }
.quiz { width: min(520px, calc(100vw - 24px)); padding: 24px; border: 5px solid var(--ink); border-radius: 26px; background: var(--white); box-shadow: 0 0 0 5px var(--sun), 10px 10px 0 5px var(--ink); }
.quiz::backdrop { background: rgba(17, 17, 17, 0.75); }
.quiz__close { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border-radius: 50%; border: 3px solid var(--ink); background: var(--sun); font-weight: 900; cursor: pointer; }
.quiz__q { margin: 6px 44px 14px 0; font: 700 1.35rem var(--font-display); line-height: 1.25; }
.quiz__choices { display: grid; gap: 10px; }
.quiz__choice { text-align: left; padding: 12px 16px; min-height: 48px; font: 600 1rem var(--font-body); background: var(--paper); color: var(--ink); border: 3px solid var(--ink); border-radius: 14px; cursor: pointer; transition: transform 0.15s var(--ease-bounce), background 0.15s; }
.quiz__choice:not(:disabled):hover { background: var(--sun); transform: translateX(4px); }
.quiz__choice.is-right { background: #7be08a; }
.quiz__choice.is-wrong { background: #ff9aa9; }
.quiz__choice:disabled { cursor: default; }
.quiz__why { min-height: 1.4em; font-weight: 700; }
.quiz__score { font-size: 2rem; margin: 0; letter-spacing: 4px; }
.quiz__gain { font: 700 1.1rem var(--font-display); color: var(--sky-dark); }
.quiz__nav { margin: 8px 0 0; display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.btn-swipe { margin-left: 10px; }

/* ---------- Daily Spark ---------- */
.daily { position: relative; max-width: 760px; margin: 0 auto; padding: clamp(18px, 3vw, 28px); background: var(--white); border: 5px solid var(--ink); border-radius: 26px; box-shadow: 0 0 0 5px var(--sun), var(--shadow-lg); }
.daily__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.daily__streak { margin: 0; padding: 3px 12px; background: var(--ink); color: var(--sun); border-radius: 999px; font: 700 0.95rem var(--font-display); }
.daily__q { margin: 8px 0 14px; font: 700 clamp(1.25rem, 3vw, 1.7rem) var(--font-display); line-height: 1.2; }
.daily__choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 10px; }
.daily__choice { min-height: 52px; padding: 10px 14px; font: 700 1.05rem var(--font-display); background: var(--paper); color: var(--ink); border: 3px solid var(--ink); border-radius: 16px; cursor: pointer; transition: transform 0.15s var(--ease-bounce), background 0.15s; }
.daily__choice:not(:disabled):hover { background: var(--sun); transform: translateY(-3px) rotate(-1deg); }
.daily__choice:disabled { cursor: default; }
.daily__choice.is-right { background: #7be08a; }
.daily__choice.is-wrong { background: #ff9aa9; }
.daily__result { min-height: 1.4em; margin: 12px 0 4px; font-weight: 800; }
.daily__fine { margin: 6px 0 0; font-size: 0.88rem; color: #444; }

/* ---------- Seasonal hunts ---------- */
.event-banner { display: flex; gap: 18px; align-items: flex-start; max-width: 900px; margin: 0 auto; padding: 18px 22px; background: #fff4d6; border: 4px solid var(--ink); border-radius: 22px; box-shadow: var(--shadow); }
.event-banner--thanksgiving { background: #ffe3c2; }
.event-banner--holiday { background: #e3f6e6; }
.event-banner--halloween { background: #ffd9b0; }
.event-banner--valentines { background: #ffe0ea; }
.event-banner__emoji { font-size: clamp(2.6rem, 6vw, 3.6rem); line-height: 1; animation: bob 3s ease-in-out infinite; }
.event-banner__title { margin: 2px 0 6px; font: 700 clamp(1.3rem, 3vw, 1.7rem) var(--font-display); }
.event-banner p { margin: 0 0 8px; }
.event-banner__progress { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.event-dot { font-size: 1.5rem; filter: grayscale(1); opacity: 0.35; transition: filter 0.3s, opacity 0.3s, transform 0.3s var(--ease-bounce); }
.event-dot.is-on { filter: none; opacity: 1; transform: scale(1.15) rotate(-8deg); }
.event-thing { position: absolute; z-index: 30; width: 48px; height: 48px; padding: 0; font-size: 32px; line-height: 1; background: none; border: 0; cursor: pointer; filter: drop-shadow(2px 3px 0 rgba(0, 0, 0, 0.3)); animation: event-peek 3.2s ease-in-out infinite; }
.event-thing.is-found { opacity: 0.35; filter: grayscale(1); animation: none; }
.event-thing.is-found::after { content: '✓'; position: absolute; right: -2px; bottom: -2px; font: 700 16px var(--font-display); color: #127a2c; }
.event-thing--hero { top: 610px; left: 3%; }
.event-thing--list { top: 330px; right: 2.5%; }
.event-thing--about { top: 760px; left: 2%; }
.event-thing--hunt { top: 520px; right: 3%; }
.event-thing--cases { top: 880px; left: 2.5%; }
@media (max-width: 700px) {
  .event-thing { width: 42px; height: 42px; font-size: 28px; }
  .event-thing--hero, .event-thing--about, .event-thing--cases { left: 6px; }
  .event-thing--list, .event-thing--hunt { right: 6px; }
  .event-banner { flex-direction: column; gap: 6px; padding: 16px; }
}
html:not(.js) .event-thing { display: none; }
html.reduced .event-thing, html.reduced .event-banner__emoji { animation: none; }
@keyframes event-peek { 0%, 70%, 100% { transform: rotate(0); } 78% { transform: rotate(-14deg) scale(1.1); } 86% { transform: rotate(12deg) scale(1.1); } }

/* ---------- Hall boards ---------- */
.hall-points { font-weight: 700; }
.hall-grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.hall-crowns { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.crown-card { display: flex; gap: 14px; align-items: center; padding: 14px 20px; background: var(--sun); border: 4px solid var(--ink); border-radius: 20px; box-shadow: var(--shadow); }
.crown-card--week { background: var(--white); }
.crown-card__icon { font-size: 2.6rem; }
.crown-card p { margin: 0; }
.crown-card__nick { font: 700 1.4rem var(--font-display); }
.crown-card__pts { font-weight: 700; }

/* ---------- This Week in Court ---------- */
.week-recent { list-style: none; margin: 0 auto; padding: 0; max-width: 900px; display: grid; gap: 12px; }
.week-recent__item { background: var(--white); border: 4px solid var(--ink); border-radius: 18px; padding: 14px 18px; box-shadow: 4px 4px 0 var(--ink); }
.week-recent__item p { margin: 0 0 6px; }
.week-recent__case { font: 700 0.9rem var(--font-display); text-transform: uppercase; letter-spacing: 0.03em; }
.week-recent__body { color: #333; }

/* ---------- Bonus trophies ---------- */
.trophy--bonus { border-style: dashed; }
.trophy__rare { display: inline-block; margin-left: 4px; padding: 0 8px; border-radius: 999px; background: var(--ink); color: var(--sun); font-size: 0.72rem; text-transform: uppercase; }

/* ---------- Profiles, invites, reactions ---------- */
.profile-card { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.profile-card__avatar { flex: none; width: 120px; height: 120px; display: grid; place-items: center; overflow: hidden; font: 700 3.4rem var(--font-display); background: var(--sun); border: 5px solid var(--ink); border-radius: 50%; box-shadow: var(--shadow); }
.profile-card__avatar svg { width: 100%; height: 100%; }
.profile-card__nick { margin: 0 0 10px; }
.profile-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.shelf { list-style: none; margin: 0 0 12px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.shelf__item a { display: flex; gap: 8px; align-items: center; padding: 10px 12px; background: var(--paper); border: 3px solid var(--ink); border-radius: 14px; font-weight: 800; text-decoration: none; color: inherit; }
.shelf__item--rare a { background: #fff4c2; border-style: dashed; }
.shelf__emoji { font-size: 1.6rem; }
.join-hero { text-align: center; }
.join-hero__emoji { font-size: 4rem; margin: 0; }
.join-perks { list-style: none; padding: 0; margin: 16px auto; max-width: 520px; display: grid; gap: 8px; text-align: left; }
.join-perks li { background: var(--white); border: 3px solid var(--ink); border-radius: 14px; padding: 10px 14px; font-weight: 700; }
.join-hero__ctas { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.join-hero__note { font-weight: 700; }
.invite-link { display: flex; gap: 8px; flex-wrap: wrap; }
.invite-link input { flex: 1 1 220px; min-width: 0; padding: 8px 12px; font: 600 0.95rem var(--font-body); border: 3px solid var(--ink); border-radius: 12px; background: var(--paper); }
.leaders__link { color: inherit; text-decoration: none; }
.leaders__link:hover { text-decoration: underline; }
.timeline__hint { font-size: 0.9rem; font-weight: 700; margin: -6px 0 12px; }
.react { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.react__btn { display: inline-flex; align-items: center; gap: 4px; min-height: 40px; padding: 4px 10px; font: 700 0.9rem var(--font-body); background: var(--paper); color: var(--ink); border: 2px solid rgba(0, 0, 0, 0.25); border-radius: 999px; cursor: pointer; transition: transform 0.15s var(--ease-bounce); }
.react__btn:hover { transform: scale(1.08); }
.react__btn b { min-width: 0.6em; }
.react__btn:not(.has-count) b { opacity: 0.45; }
.react__btn[aria-pressed='true'] { background: var(--sun); border-color: var(--ink); }

/* ---------- Explained + FAQs ---------- */
.explain-list { list-style: none; margin: 0 auto; padding: 0; max-width: 900px; display: grid; gap: 10px; }
.explain-item a { display: flex; gap: 14px; align-items: flex-start; padding: 14px 18px; background: var(--white); border: 4px solid var(--ink); border-radius: 18px; box-shadow: 4px 4px 0 var(--ink); text-decoration: none; color: inherit; transition: transform 0.2s var(--ease-bounce); }
.explain-item a:hover { transform: translate(-2px, -3px) rotate(-0.5deg); }
.explain-item__emoji { font-size: 1.8rem; line-height: 1; }
.explain-item b { display: block; font: 700 1.15rem var(--font-display); }
.explain-item__short { display: block; color: #333; margin-top: 2px; }
.explain-body { max-width: 760px; margin: 0 auto; padding: clamp(18px, 3vw, 28px); background: var(--white); border: 4px solid var(--ink); border-radius: 22px; box-shadow: var(--shadow); font-size: 1.08rem; line-height: 1.6; }
.explain-body p { margin: 0 0 14px; }
.explain-body p:last-child { margin-bottom: 0; }
.explain-nav { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.explain-disclaimer { max-width: 760px; margin: 14px auto 0; font-size: 0.88rem; text-align: center; color: #333; }
.faq { max-width: 760px; margin: 0 auto; padding: clamp(16px, 3vw, 24px); background: var(--white); border: 4px solid var(--ink); border-radius: 22px; box-shadow: var(--shadow); }
.faq h2 { margin: 0 0 10px; font: 700 1.4rem var(--font-display); }
.faq__item { border-top: 2px solid rgba(0, 0, 0, 0.12); padding: 10px 0; }
.faq__item summary { cursor: pointer; font-weight: 800; list-style-position: outside; }
.faq__item p { margin: 8px 0 0; line-height: 1.5; }
.tl__explain { font-weight: 700; }
.quick { margin: 16px 0; padding: 16px 18px; background: var(--white); border: 4px solid var(--ink); border-radius: 18px; box-shadow: 4px 4px 0 var(--ink); }
.quick__title { margin: 0 0 8px; font: 700 1.2rem var(--font-display); }
.quick__summary { margin: 0 0 8px; font-weight: 700; }
.quick__facts { margin: 0 0 8px; padding-left: 20px; display: grid; gap: 4px; }

/* ---------- Stick Me ---------- */
.stickme { display: grid; grid-template-columns: minmax(260px, 380px) minmax(0, 1fr); gap: clamp(18px, 3vw, 36px); align-items: start; max-width: var(--max); margin: 0 auto; }
.stickme__stage { position: sticky; top: 100px; display: grid; gap: 10px; }
.stickme__preview { aspect-ratio: 200 / 214; border: 6px solid var(--ink); border-radius: 30px; overflow: hidden; box-shadow: 0 0 0 6px var(--sun), var(--shadow-lg); background: var(--sky); }
.stickme__preview svg { display: block; width: 100%; height: 100%; }
.stickme__actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin: 6px 0 0; }
.stickme__msg { min-height: 1.3em; margin: 0; text-align: center; font-weight: 700; }
.stickme__card { background: var(--white); border: 4px solid var(--ink); border-radius: 18px; padding: 12px 14px; }
.stickme__card label { font-weight: 800; display: block; margin-bottom: 4px; }
.stickme__card input { width: 100%; padding: 8px 12px; font: 600 1rem var(--font-body); border: 3px solid var(--ink); border-radius: 12px; }
.stickme__card p { margin: 8px 0 0; }
.stickme__options { display: grid; gap: 12px; }
.stickme__group { margin: 0; padding: 12px 14px; background: var(--white); border: 4px solid var(--ink); border-radius: 18px; }
.stickme__group legend { padding: 0 6px; font: 700 1.05rem var(--font-display); }
.stickme__choices { display: flex; flex-wrap: wrap; gap: 8px; }
.stickme__opt { position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 6px 12px; font: 700 0.9rem var(--font-body); background: var(--paper); color: var(--ink); border: 3px solid rgba(0, 0, 0, 0.2); border-radius: 999px; cursor: pointer; transition: transform 0.15s var(--ease-bounce); }
.stickme__opt:hover { transform: translateY(-2px); }
.stickme__opt[aria-pressed='true'] { background: var(--sun); border-color: var(--ink); }
.stickme__swatch { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--ink); }
.stickme__opt.is-locked { opacity: 0.55; }
.stickme__opt:not(.is-locked) .stickme__lock { display: none; }
.acct__face--avatar { overflow: hidden; padding: 0; background: var(--sky); }
.acct__face--avatar svg { width: 100%; height: 100%; display: block; }
.me__top { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.me__avatar { flex: none; width: 110px; height: 110px; border-radius: 50%; overflow: hidden; border: 5px solid var(--ink); box-shadow: var(--shadow); background: var(--sun); display: grid; place-items: center; text-decoration: none; color: inherit; text-align: center; font-size: 2rem; }
.me__avatar svg { width: 100%; height: 100%; display: block; }
.me__avatar small { display: block; font: 700 0.7rem var(--font-display); }
.leaders__av { display: inline-block; width: 28px; height: 28px; margin-right: 8px; vertical-align: middle; border-radius: 50%; overflow: hidden; border: 2px solid var(--ink); }
.leaders__av svg { width: 100%; height: 100%; display: block; }
@media (max-width: 820px) { .stickme { grid-template-columns: 1fr; } .stickme__stage { position: static; max-width: 360px; margin: 0 auto; width: 100%; } }

/* ---------- My StickWit HQ ---------- */
.hq__split { display: grid; grid-template-columns: minmax(240px, 320px) minmax(0, 1fr); gap: clamp(18px, 3vw, 40px); align-items: start; }
.hq__card { display: grid; gap: 4px; position: sticky; top: 96px; }
.hq__card .tcard-stage { padding: 4px 0 8px; }
.hq__card-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 0; }
.hq__hello .page-hero__title { margin-bottom: 6px; }
.hq__level { display: inline-flex; flex-wrap: wrap; gap: 4px; align-items: center; margin: 0 0 14px; padding: 6px 12px; border: 3px solid var(--ink); border-radius: 999px; background: var(--white); font-weight: 700; font-size: .95rem; box-shadow: var(--shadow); }
.hq__level--uncommon { background: #d8f7e6; } .hq__level--rare { background: #d9ecff; } .hq__level--epic { background: #efe0ff; } .hq__level--legendary { background: var(--sun); }
.hq__stats { list-style: none; padding: 0; margin: 0 0 18px; display: grid; grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); gap: 10px; }
.hq__stats li { background: var(--white); border: 3px solid var(--ink); border-radius: 16px; padding: 8px 12px; display: grid; box-shadow: var(--shadow); }
.hq__stats b { font-family: var(--font-display); font-size: 1.6rem; line-height: 1.1; }
.hq__stats span { font-weight: 800; font-size: .82rem; }
.hq__today-title { font-size: 1.3rem; margin: 0 0 8px; }
.hq__today { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 12px; }
.today-tile { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; min-height: 72px; padding: 12px 14px; text-decoration: none; color: var(--ink); background: var(--white); border: 4px solid var(--ink); border-radius: 18px; box-shadow: var(--shadow); transition: transform .15s var(--ease-bounce); }
.today-tile:hover, .today-tile:focus-visible { transform: translateY(-3px) rotate(-.4deg); }
.today-tile__icon { grid-row: 1 / span 2; font-size: 1.9rem; }
.today-tile b { font-family: var(--font-display); font-size: 1.05rem; }
.today-tile span:not(.today-tile__icon) { font-weight: 700; font-size: .88rem; }
.today-tile.is-ready { background: var(--sun); }
.today-tile.is-done { background: #eef6ee; }
.today-tile.is-done b::after { content: ' ✓'; }
.hq-body { display: grid; gap: 16px; }
.hq-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 8px; scrollbar-width: none; position: sticky; top: 70px; z-index: 5; background: var(--sky); border-radius: 0 0 16px 16px; }
.hq-tabs::-webkit-scrollbar { display: none; }
.hq-tabs [role="tab"] { flex: none; min-height: 44px; padding: 8px 16px; font: 800 .95rem var(--font-body); color: var(--ink); background: var(--white); border: 3px solid var(--ink); border-radius: 999px; cursor: pointer; }
.hq-tabs [role="tab"][aria-selected="true"] { background: var(--ink); color: var(--white); }
.hq-tabs .pill { font: 800 .75rem var(--font-body); background: var(--yt); color: #fff; border-radius: 999px; padding: 1px 7px; }
.hq-panel[hidden] { display: none !important; }
.hq-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: clamp(14px, 2vw, 22px); align-items: start; }
.hq-meter { height: 14px; margin: 4px 0 8px; border: 3px solid var(--ink); border-radius: 999px; background: var(--white); overflow: hidden; }
.hq-meter span { display: block; height: 100%; min-width: 4px; background: linear-gradient(90deg, var(--sun), #ff9f1c); }
.hq-sub { font-size: 1.05rem; margin: 12px 0 8px; }
.hq-showcase { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.hq-showcase .tcard { max-width: 150px; }
.hq-btns { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
html.blackout .today-tile.is-done { background: #242c4a; }
@media (max-width: 760px) {
  .hq__split { grid-template-columns: 1fr; }
  .hq__card { position: static; max-width: 300px; margin: 0 auto; width: 100%; }
  .hq-tabs { top: 62px; }
}
/* Invite landing: the inviter's card next to the pitch */
.join-split { display: grid; grid-template-columns: minmax(220px, 300px) minmax(0, 1fr); gap: clamp(18px, 3vw, 40px); align-items: center; text-align: left; }
.join-split__cap { text-align: center; margin: 0; }
@media (max-width: 760px) { .join-split { grid-template-columns: 1fr; text-align: center; } .join-split__card { max-width: 280px; margin: 0 auto; } }
/* Cards hub: your own card */
.cards-me { display: grid; grid-template-columns: minmax(200px, 260px) minmax(0, 1fr); gap: clamp(16px, 3vw, 36px); align-items: center; max-width: 900px; margin: 0 auto; background: var(--white); border: 4px solid var(--ink); border-radius: 26px; box-shadow: var(--shadow-lg); padding: clamp(14px, 2.5vw, 26px); }
.cards-me__text .section__title { margin-top: 0; }
@media (max-width: 680px) { .cards-me { grid-template-columns: 1fr; text-align: center; } .cards-me__card { max-width: 240px; margin: 0 auto; width: 100%; } .cards-me .hq-btns { justify-content: center; } }
.hq__hello .page-hero__title { font-size: clamp(2rem, 4.2vw, 3.4rem); overflow-wrap: anywhere; }
@media (min-width: 761px) { .hq__today { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* HQ: desktop = card on the left, greeting then stats/today on the right; phone = greeting, card, the rest. */
.hq__split { grid-template-areas: "card hello" "card body"; grid-template-rows: auto 1fr; }
.hq__card { grid-area: card; } .hq__hello { grid-area: hello; } .hq__body { grid-area: body; }
@media (max-width: 760px) {
  .hq__split { grid-template-areas: "hello" "card" "body"; grid-template-rows: none; }
  .hq__card { max-width: 250px; }
  .hq__hello { text-align: center; }
}
.hq__split { row-gap: 0; }
@media (max-width: 760px) { .hq__level-hint { display: none; } .hq__split { row-gap: 14px; } }
/* ---------- Admin ---------- */
.admin-nav { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: center; margin: 0 auto 14px; padding: 8px; background: var(--white); border: 3px solid var(--ink); border-radius: 18px; box-shadow: var(--shadow); max-width: 1100px; }
.admin-nav a { padding: 6px 12px; border-radius: 999px; font-weight: 800; text-decoration: none; color: var(--ink); border: 2px solid transparent; }
.admin-nav a:hover { border-color: var(--ink); }
.admin-nav a[aria-current="page"] { background: var(--ink); color: var(--white); }
.admin-nav__role { padding: 6px 12px; border-radius: 999px; background: var(--sun); border: 2px solid var(--ink); font-weight: 800; }
.admin-body { display: grid; gap: 18px; }
.kpis { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.kpis li { background: var(--white); border: 4px solid var(--ink); border-radius: 18px; box-shadow: var(--shadow); padding: 12px 14px; display: grid; gap: 2px; }
.kpis b { font-family: var(--font-display); font-size: 2rem; line-height: 1; }
.kpis span { font-weight: 800; }
.kpis small { font-weight: 700; opacity: .8; }
.admin-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 18px; align-items: start; }
.bars { display: grid; grid-template-columns: repeat(14, 1fr); gap: 4px; align-items: end; height: 140px; }
.bars__col { display: grid; grid-template-rows: 1fr auto; height: 100%; align-items: end; text-align: center; }
.bars__col span { display: block; min-height: 3px; background: var(--sky); border: 2px solid var(--ink); border-radius: 6px 6px 2px 2px; }
.bars__col small { font-weight: 800; font-size: .7rem; }
.table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-weight: 700; }
.admin-table th, .admin-table td { text-align: left; padding: 8px 10px; border-bottom: 2px solid rgba(0, 0, 0, .1); vertical-align: middle; }
.admin-table th { font-family: var(--font-display); font-size: .95rem; white-space: nowrap; }
.admin-who { display: flex; gap: 10px; align-items: center; }
.admin-who__av { flex: none; width: 36px; height: 36px; border-radius: 50%; overflow: hidden; border: 2px solid var(--ink); display: grid; place-items: center; background: var(--sun); }
.admin-who__av svg { width: 100%; height: 100%; display: block; }
.admin-who small { display: block; font-weight: 700; opacity: .75; }
.role-form { display: flex; gap: 6px; align-items: center; }
.role-form select, .admin-search input, .admin-search select { font: 700 .95rem var(--font-body); padding: 6px 10px; border: 3px solid var(--ink); border-radius: 12px; background: var(--white); color: var(--ink); }
.admin-search { display: flex; flex-wrap: wrap; gap: 8px; }
.admin-search input { flex: 1 1 220px; }
.role-chip { display: inline-block; padding: 3px 10px; border-radius: 999px; border: 2px solid var(--ink); font-weight: 800; font-size: .85rem; background: var(--paper); }
.role-chip--owner { background: var(--sun); } .role-chip--admin { background: #ffd0d8; } .role-chip--staff { background: #d9ecff; } .role-chip--volunteer { background: #d8f7e6; }
.svc { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.svc li { display: grid; gap: 2px; padding: 8px 10px; border-radius: 12px; border: 2px solid rgba(0, 0, 0, .12); }
.svc li.is-off { background: #fff6d6; }
.svc span { font-weight: 700; font-size: .9rem; }
.roles-help summary { font-family: var(--font-display); font-size: 1.1rem; cursor: pointer; }
html.blackout .svc li.is-off { background: #3a3420; }
.admin-hero .page-hero__title { font-size: clamp(2rem, 4vw, 3rem); overflow-wrap: anywhere; }
.svc { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.kpis li.kpi--live { background: #e6fbe9; }
.kpis li.kpi--alert { background: #ffe1e1; }
/* ---------- People: social bar, online strip, people lists ---------- */
.social-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; }
.social-bar__online { font-weight: 800; }
.rel-badge { padding: 3px 10px; border-radius: 999px; border: 2px solid var(--ink); background: #d8f7e6; font-weight: 800; font-size: .85rem; }
.hall-grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.online-strip { display: grid; gap: 8px; }
.online-strip__title { font-size: 1.3rem; margin: 0; }
.online-strip__people { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.online-strip__people a { display: grid; justify-items: center; gap: 4px; text-decoration: none; color: var(--ink); width: 76px; }
.online-strip__av, .person__av { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; overflow: hidden; border: 3px solid var(--ink); background: var(--sun); box-shadow: 0 0 0 3px #39d353; font-weight: 800; }
.person__av { width: 38px; height: 38px; box-shadow: none; flex: none; }
.online-strip__av svg, .person__av svg { width: 100%; height: 100%; display: block; }
.online-strip__nick { font-weight: 800; font-size: .78rem; max-width: 76px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.online-strip__more { align-self: center; font-weight: 800; }
.people-list { list-style: none; padding: 0; margin: 0 0 6px; display: grid; gap: 6px; }
.people-list li { display: flex; align-items: center; gap: 6px; }
.person { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); }
.person__on { font-size: .8rem; }
/* ---------- Messages ---------- */
.msgs { display: grid; grid-template-columns: minmax(220px, 300px) minmax(0, 1fr); gap: 16px; min-height: 520px; }
.msgs__list, .msgs__chat { background: var(--white); border: 4px solid var(--ink); border-radius: 22px; box-shadow: var(--shadow); padding: 12px; }
.msgs__title { font-size: 1.2rem; margin: 2px 4px 8px; }
.msgs__sub { font-size: 1rem; margin: 12px 4px 6px; }
.msgs__threads { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.thread { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px; background: none; border: 2px solid transparent; border-radius: 14px; cursor: pointer; text-align: left; font: inherit; color: var(--ink); }
.thread:hover, .thread.is-on { border-color: var(--ink); background: #fffbe0; }
.thread__txt { display: grid; min-width: 0; flex: 1; }
.thread__txt span { font-size: .85rem; font-weight: 700; opacity: .8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thread .pill, .msgs .pill { font: 800 .75rem var(--font-body); background: var(--yt); color: #fff; border-radius: 999px; padding: 1px 7px; }
.msgs__chat { display: grid; }
.msgs__empty { display: grid; place-items: center; text-align: center; font-weight: 800; }
.msgs__big { font-size: 3rem; margin: 0; }
.msgs__thread { display: grid; grid-template-rows: auto 1fr auto auto auto; gap: 8px; min-height: 0; }
.msgs__head { display: flex; align-items: center; gap: 8px; padding-bottom: 6px; border-bottom: 2px solid rgba(0, 0, 0, .1); }
.msgs__who { font-family: var(--font-display); font-size: 1.2rem; color: var(--ink); }
.msgs__back { display: none; font-size: 1.3rem; }
.msgs__log { list-style: none; margin: 0; padding: 6px; display: flex; flex-direction: column; gap: 6px; overflow-y: auto; max-height: 52vh; min-height: 240px; }
.bubble { align-self: flex-start; max-width: 78%; background: var(--paper); border: 2px solid var(--ink); border-radius: 16px 16px 16px 4px; padding: 6px 10px; display: grid; gap: 2px; }
.bubble--mine { align-self: flex-end; background: var(--sun); border-radius: 16px 16px 4px 16px; }
.bubble__txt { font-weight: 700; overflow-wrap: anywhere; }
.bubble__meta { font-size: .72rem; font-weight: 800; opacity: .7; }
.bubble__flag { background: none; border: 0; cursor: pointer; font-size: .8rem; padding: 0 2px; }
.msgs__quick { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: thin; }
.chip { flex: none; padding: 6px 10px; border: 2px solid var(--ink); border-radius: 999px; background: var(--white); font: 800 .85rem var(--font-body); cursor: pointer; color: var(--ink); }
.chip:disabled { opacity: .5; cursor: not-allowed; }
.msgs__form { display: flex; gap: 8px; }
.msgs__form input { flex: 1; min-width: 0; font: 700 1rem var(--font-body); padding: 8px 12px; border: 3px solid var(--ink); border-radius: 14px; }
.msgs__note { margin: 0; font-size: .82rem; }
@media (max-width: 720px) {
  .msgs { grid-template-columns: 1fr; }
  .msgs.is-chatting .msgs__list { display: none; }
  .msgs:not(.is-chatting) .msgs__chat { display: none; }
  .msgs__back { display: inline-block; }
}
/* ---------- Reports ---------- */
.report { border: 3px solid var(--ink); border-radius: 16px; padding: 10px 12px; margin: 10px 0; background: #fffdf3; }
.report__ctx { list-style: none; padding: 8px; margin: 8px 0; background: var(--white); border-radius: 12px; display: grid; gap: 4px; font-weight: 700; }
.report__ctx .is-flagged { background: #ffe1e1; border-radius: 8px; padding: 2px 6px; }
.report__ctx .is-hidden { text-decoration: line-through; opacity: .6; }
html.blackout .thread:hover, html.blackout .thread.is-on { background: #242c4a; }
html.blackout .bubble { background: #1d2440; }
html.blackout .report, html.blackout .report__ctx { background: #1d2440; }
.page-messages :is(.walker, .trophy-btn) { display: none !important; }
/* ---------- Membership, donations, the Club ---------- */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 18px; align-items: stretch; }
.plan { position: relative; display: grid; grid-template-rows: auto auto auto 1fr auto; gap: 8px; background: var(--white); border: 4px solid var(--ink); border-radius: 24px; box-shadow: var(--shadow); padding: 20px; }
.plan--member { background: #fffbe0; }
.plan--vip { background: linear-gradient(160deg, #f4e9ff, #fff7d6); border-width: 5px; }
.plan__badge { position: absolute; top: -14px; right: 18px; margin: 0; padding: 4px 12px; border: 3px solid var(--ink); border-radius: 999px; background: var(--sun); font-weight: 800; }
.plan__emoji { font-size: 2.4rem; margin: 0; }
.plan__name { font-size: 1.6rem; margin: 0; }
.plan__price { margin: 0; font-weight: 700; } .plan__price b { font-family: var(--font-display); font-size: 2rem; }
.plan__perks { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; font-weight: 700; }
.plan form, .plan > .btn { margin-top: 8px; }
.plan .btn { width: 100%; justify-content: center; }
.plan-fine { margin-top: 18px; }
.donate { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 18px; align-items: start; }
.donate__form { display: grid; gap: 12px; }
.donate__amounts { display: flex; flex-wrap: wrap; gap: 8px; }
.donate__amt input { position: absolute; opacity: 0; pointer-events: none; }
.donate__amt span { display: inline-block; min-width: 72px; text-align: center; padding: 10px 14px; border: 3px solid var(--ink); border-radius: 16px; font: 800 1.1rem var(--font-display); background: var(--white); cursor: pointer; }
.donate__amt input:checked + span { background: var(--sun); transform: translateY(-2px); }
.donate__amt input:focus-visible + span { outline: 3px solid var(--sky-deep); outline-offset: 2px; }
.donate__custom, .donate__wall { font-weight: 700; display: grid; gap: 4px; }
.donate__wall { display: flex; gap: 8px; align-items: center; }
.donate__custom input { font: 700 1rem var(--font-body); padding: 8px 12px; border: 3px solid var(--ink); border-radius: 12px; max-width: 160px; }
.wall { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.wall li { padding: 4px 10px; border: 2px solid var(--ink); border-radius: 999px; background: #fff7d6; font-weight: 800; }
.club-body { display: grid; gap: 18px; }
.early-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.early { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 3px solid rgba(0, 0, 0, .15); border-radius: 16px; }
.early.is-open { border-color: var(--ink); background: #fffbe0; }
.early__emoji { font-size: 1.8rem; }
.early__txt { flex: 1; display: grid; } .early__txt small { font-weight: 700; opacity: .8; }
.early-player { max-width: 900px; margin: 0 auto 12px; border: 5px solid var(--ink); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-lg); background: #000; aspect-ratio: 16 / 9; }
.early-player iframe, .early-player video { width: 100%; height: 100%; border: 0; display: block; }
.soon-card__early { margin: 6px 0 0; font-weight: 800; }
.soon-card__early a { display: inline-block; padding: 4px 10px; border: 2px solid var(--ink); border-radius: 999px; background: #fffbe0; text-decoration: none; color: var(--ink); }
.tier-chip { display: inline-block; vertical-align: middle; font: 800 1rem var(--font-body); padding: 4px 10px; border: 3px solid var(--ink); border-radius: 999px; background: #fffbe0; text-shadow: none; -webkit-text-stroke: 0; }
.tier-chip--vip { background: linear-gradient(135deg, #f4e9ff, #ffe98a); }
.tier-dot { font-size: .85em; }
.hq-club { background: #fffbe0; } .hq-club--vip { background: linear-gradient(160deg, #f4e9ff, #fff7d6); }
.tcard__ribbon { position: absolute; z-index: 3; top: 7cqw; right: -2cqw; transform: rotate(8deg); padding: 1.2cqw 3.5cqw; border: .9cqw solid #111; border-radius: 2cqw; background: #FFD21F; font: 800 4cqw/1 var(--font-body); color: #111; box-shadow: 0 1cqw 0 rgba(0,0,0,.25); }
.tcard__ribbon--vip { background: linear-gradient(135deg, #c9a7ff, #ffe98a); }
html.blackout .plan, html.blackout .plan--member, html.blackout .plan--vip, html.blackout .hq-club, html.blackout .early.is-open { background: #1d2440; }
.perk-links a { text-transform: none; }

/* Admin: videos & quizzes */
.quiz-chip { display: inline-block; font-weight: 800; font-size: .85rem; padding: 2px 10px; border-radius: 999px; border: 2px solid var(--ink); background: var(--paper); white-space: nowrap; }
.quiz-chip--none { background: #ffe1e6; }
.quiz-chip--ai { background: #fff3c4; }
.quiz-chip--custom, .quiz-chip--built-in { background: #eafbe9; }
.quiz-desc { white-space: pre-wrap; font-weight: 600; max-height: 320px; overflow: auto; }
.quiz-edit { display: grid; gap: 16px; }
.quiz-edit__q { border: 3px solid var(--ink); border-radius: 14px; padding: 12px 14px; display: grid; gap: 8px; margin: 0; }
.quiz-edit__q legend { font-family: var(--font-display); padding: 0 6px; }
.quiz-edit label { display: grid; gap: 4px; font-weight: 800; }
.quiz-edit input:not([type='radio']) { font: inherit; font-weight: 700; padding: 8px 12px; border: 3px solid var(--ink); border-radius: 12px; background: var(--paper); color: var(--ink); width: 100%; }
.quiz-edit__choice { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: center; }
.quiz-edit__right { display: flex !important; align-items: center; gap: 6px; font-size: .9rem; }
.quiz-edit__right input { width: 20px; height: 20px; accent-color: var(--sun-deep); }
.admin-body .muted { font-weight: 700; opacity: .8; margin: 4px 0 12px; }
.binder-slot--vault { cursor: pointer; text-decoration: none; text-align: center; padding: 8px; font-size: .9rem; color: var(--ink); }
.binder-slot--vault:hover { border-color: var(--ink); background: #fff3c4; }

/* Card auction house */
.auction-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.auction-grid--small { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
.auction-tile { display: grid; gap: 6px; text-decoration: none; color: var(--ink); border: 3px solid var(--ink); border-radius: 14px; padding: 8px; background: var(--white); box-shadow: 3px 3px 0 var(--ink); transition: transform .15s; }
.auction-tile:hover, .auction-tile:focus-visible { transform: translateY(-3px) rotate(-1deg); }
.auction-tile--legendary { background: linear-gradient(160deg, #fff6c9, #ffe08a); }
.auction-tile--epic { background: linear-gradient(160deg, #f3e6ff, #e2c8ff); }
.auction-tile__card .tcard { width: 100%; }
.auction-tile__info { display: grid; gap: 2px; font-weight: 700; font-size: .9rem; }
.auction-tile__info b { font-family: var(--font-display); font-size: 1rem; line-height: 1.15; }
.auction-tile__time .is-ending, .auction-box__time .is-ending { color: var(--yt); }
.auction-tile__tag { justify-self: start; font-size: .75rem; font-weight: 800; padding: 1px 8px; border-radius: 999px; border: 2px solid var(--ink); background: #ffe1e6; }
.auction-tile__tag--win { background: #eafbe9; }
.auction-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 16px 0; }
.page-hero > .wallet__pts { display: inline-block; }
@media (max-width: 760px) { .auction-cols { grid-template-columns: 1fr; } }
.auction-box { display: grid; gap: 10px; }
.auction-box__time { font-weight: 800; font-size: 1.1rem; margin: 0; }
.auction-box__high { font-weight: 800; font-size: 1.2rem; margin: 0; }
.auction-bid { display: grid; gap: 6px; font-weight: 800; }
.auction-bid__row { display: flex; gap: 8px; flex-wrap: wrap; }
.auction-bid input, .auction-form input[type='number'] { font: inherit; font-weight: 800; padding: 8px 12px; border: 3px solid var(--ink); border-radius: 12px; background: var(--paper); color: var(--ink); width: 10em; }
.auction-bids { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; font-weight: 700; }
.auction-bids li { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.auction-bids time { opacity: .7; font-size: .85rem; }
.auction-form { display: grid; gap: 10px; font-weight: 800; }
.auction-form fieldset { border: 3px solid var(--ink); border-radius: 12px; padding: 8px 12px; display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 0; }
.auction-form__opt { display: flex; align-items: center; gap: 6px; }
.auction-form__opt input { width: 18px; height: 18px; accent-color: var(--sun-deep); }
.auction-form__opt.is-locked { opacity: .55; }

.filter-bar { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin-block: 1rem; }
.filter-bar input, .filter-bar select { max-width: 100%; font: inherit; }

/* Explore shares the primary navigation's type, hit area and hover state. */
.nav-more { position: relative; }
.nav-more summary, .display-prefs summary { display:flex; align-items:center; justify-content:center; gap:.45em; cursor:pointer; list-style:none; }
.nav-more summary::-webkit-details-marker, .display-prefs summary::-webkit-details-marker { display:none; }
.nav-more summary::after, .display-prefs summary::after { content:""; width:.45em; height:.45em; border:solid currentColor; border-width:0 2px 2px 0; transform:translateY(-.1em) rotate(45deg); }
.nav-more[open] summary::after, .display-prefs[open] summary::after { transform:translateY(.1em) rotate(225deg); }
.nav-more[open] > div { display:grid; position:absolute; right:0; top:calc(100% + 6px); z-index:5; background:var(--paper); color:var(--ink); padding:.45rem; border:3px solid var(--ink); border-radius:18px; min-width:11rem; box-shadow:var(--shadow); }
.display-prefs { width:fit-content; max-width:calc(100% - 2 * var(--gutter)); margin:1rem auto 0; }
.display-prefs summary { width:fit-content; margin:auto; padding:.45em 1em; border:2px solid currentColor; border-radius:999px; font:600 1rem var(--font-display); }
.display-prefs summary:hover, .display-prefs[open] summary { color:var(--sun); }
.display-prefs__body { padding:1rem 0 0; display:flex; flex-wrap:wrap; gap:.75rem 1.25rem; justify-content:center; }
.display-prefs label { display:flex; flex-wrap:wrap; align-items:center; gap:.5rem; font-weight:700; }
.display-prefs input { width:1.15rem; height:1.15rem; accent-color:var(--sun); }
.filter-bar label, .arcade-field { display:grid; gap:.3rem; text-align:left; font:600 1rem var(--font-display); min-width:0; }
.filter-bar :is(input:not([type=checkbox]),select), .display-prefs select, .me-prefs select, .arcade-field :is(select,input) {
  width:100%; max-width:100%; min-width:0; min-height:44px; background:var(--paper); color:var(--ink); border:3px solid var(--ink); border-radius:16px; padding:.45rem .8rem; font:700 1rem var(--font-body); box-shadow:2px 2px 0 var(--ink);
}
.display-prefs select, .me-prefs select { width:auto; }
.video-filters { align-items:end; max-width:55rem; margin:1.5rem 0; }
.video-filters label:first-child { flex:2 1 14rem; }
.video-filters label { flex:1 1 6.5rem; }
.video-filters label:nth-child(3) { flex-basis:13rem; }
.video-filters .btn { min-height:44px; }
.me-prefs fieldset, .auth__form fieldset { display:grid; gap:.5rem; margin:0; padding:.7rem 1rem; border:2px dashed var(--ink); border-radius:15px; min-width:0; }
.me-prefs legend, .auth__form legend { font:600 1rem var(--font-display); }
.device-list { padding:0; list-style:none; }
.device-list li { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:.6rem; padding:.7rem 0; border-bottom:2px dashed currentColor; }
.device-list li div { min-width:0; flex:1 1 12rem; overflow-wrap:anywhere; }
@media (max-width:1279px) {
  .nav-more[open] > div { position:static; margin-top:.35rem; }
  .site-header.is-open .nav-more:last-child:nth-child(odd), .site-header.is-open .nav-more[open] { grid-column:1 / -1; }
  .site-header.is-open .nav-more[open] > div { grid-template-columns:repeat(2,minmax(0,1fr)); gap:.35rem; box-shadow:none; border:0; background:transparent; }
  .site-header.is-open .site-nav { max-height:calc(100dvh - 5.5rem); overflow-y:auto; }
}
@media (max-width:540px) {
  .video-filters { display:grid; grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); }
  .video-filters label:first-child, .video-filters .btn { grid-column:1 / -1; }
}
html.reduced *, html.reduced *::before, html.reduced *::after { animation-play-state: paused !important; scroll-behavior: auto !important; }
html[data-reading="calm"] :is(.story,.timeline), html[data-reading="large"] :is(.story,.timeline) { font-family: system-ui,sans-serif; line-height: 1.7; }
html[data-reading="large"] :is(.story,.timeline) { font-size: 1.25rem; }
html[data-reading]:not([data-reading=""]) :is(.story,.tl__card,.story h1,.timeline h3) { box-shadow: none; text-shadow: none; transform: none; font-family: system-ui,sans-serif; }
.arcade-secret { display:inline-grid; place-items:center; width:44px; height:44px; font:600 1.25rem var(--font-display); background:var(--paper); color:var(--ink); border:2px dashed var(--ink); border-radius:14px 11px 16px 10px; text-decoration:none; transform:rotate(-5deg); scroll-margin-top:8rem; }
.arcade-secret:hover,.arcade-secret:focus-visible { background:var(--sun); transform:rotate(2deg); }
.arcade-counter { width:fit-content; max-width:calc(100% - 2 * var(--gutter)); margin:1rem auto; scroll-margin-top:8rem; }
.arcade-counter .btn { white-space:normal; }
.link-btn { font-family:var(--font-body); }
html.blackout .display-prefs summary:hover,html.blackout .display-prefs[open] summary { color:var(--paper); }


.hero__art > .arcade-secret { position:absolute; right:0; bottom:10%; z-index:1; }
.brand__pill { color:#111; }
html.blackout .topic-card--history { background:var(--paper); }
.stickme__opt.is-locked { opacity:1; border-style:dashed; }
.stickme__opt.is-locked .stickme__optlabel { color:var(--ink); }
@media(min-width:1280px) {
  .site-header .brand { flex:none; }
  .site-header .site-nav { margin-left:auto; }
  .site-header .brand__name { gap:4px; }
}
/* Fixed yellow and brand-colour surfaces keep their own contrasting text in either theme. */
:is(.hero__pill,.ticker,.link-more--sun,.card__badge,.card__play--soon,.topic-card--current-events,.topic-card--true-crime .topic-card__count,.stat:nth-child(odd),.newsletter__card,.event-banner) { color:#111; }
:is(.newsletter__card,.event-banner) .kicker { color:inherit; }
:is(.card__play,.card__soon,.topic-card__count,.climb__flag b) { background:#111; color:var(--sun); }
.card__play--soon { background:var(--sun); color:#111; }
.card__format { background:#111; color:#fff; }
.topic-card--true-crime .topic-card__count { background:var(--sun); color:#111; }
.follow-card { color:#fff; }
html.blackout .daily__fine { color:#d0d5e2; }

html.blackout :is(.stat:nth-child(odd) .stat__num,.newsletter__card .section__title,.climb__meta strong) { color:#111; }
html.blackout .stickme__opt[aria-pressed='true'] { color:#111; }
html.blackout .stickme__opt[aria-pressed='true'] .stickme__optlabel { color:#111; }
html.blackout :is(.stat:nth-child(odd) .stat__num,.newsletter__card .section__title) { -webkit-text-stroke:0; filter:none; }
