/* ============================================================
   SLOP DETECTOR 3000 — sprite-assembled UI
   The page is composed from PNG sprites extracted from the
   original concept paintings. CSS positions them into a
   responsive, mobile-first layout (no canvas/backdrop).
   ============================================================ */

/* ============== TOKENS ============== */
:root {
  --bg: #050505;
  --bg-2: #0a0a0a;
  --surface: #111;
  --surface-2: #181818;
  --border: #2a2a2a;
  --border-soft: #1f1f1f;

  --text: #fff;
  --muted: #aaa;
  --muted-2: #666;

  --slop: #ff1818;
  --slop-2: #ff4e1a;
  --warn: #ffb800;
  --based: #00d166;
  --neon: #00e5ff;

  --sans: "Space Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --hand: "Patrick Hand", "Comic Sans MS", system-ui, sans-serif;
  --display: "Bungee", "Impact", system-ui, sans-serif;
  --drip: "Creepster", "Bungee", system-ui, sans-serif;
  --marker: "Permanent Marker", "Bungee", system-ui, sans-serif;
}

/* Feature flags — toggled via features.js on <html data-real-fuel>. */
html[data-real-fuel="off"] [data-feature="real-fuel"] {
  display: none !important;
}

/* ============== RESET ============== */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { color-scheme: dark; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  background:
    radial-gradient(1100px 700px at 50% -200px, #2a0606, transparent 60%),
    radial-gradient(900px 600px at 100% 100%, #001a0a, transparent 60%),
    radial-gradient(900px 600px at 0% 100%, #1a0010, transparent 60%),
    var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
input { font: inherit; color: inherit; }
::selection { background: var(--slop); color: #000; }

/* Subtle scanline overlay across the whole page */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 1;
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.018) 0 1px,
      transparent 1px 3px
    );
  mix-blend-mode: overlay;
}

/* ============== LIVE FEED ==============
   Two-row marquee that lives above the Popular section. Continuous
   CSS-only scroll of the most recent (real + ambient) scans, with the
   top row drifting left and the bottom row drifting right so the wall
   feels like a busy network. Color-coded chips, sticky-ish vibes.
   A drip updates localStorage in the background so future loads see
   fresh items, but the rendered DOM is built once to avoid jerks. */
.livefeed-section {
  margin: 0 0 0;
  padding: 0 16px;
}
.livefeed {
  display: flex; align-items: stretch;
  background: linear-gradient(180deg, #050505 0%, #0a0000 100%);
  border: 1px solid #1a0000;
  border-radius: 6px;
  overflow: hidden;
  font-family: var(--display);
  font-size: 12px;
  letter-spacing: 0.04em;
}
.livefeed__pulse {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 14px;
  background: #1a0000;
  color: #ff8a8a;
  font-weight: 800;
  letter-spacing: 0.12em;
  border-right: 1px solid #2a0000;
  z-index: 2;
  text-align: center;
}
.livefeed__lbl { line-height: 1.15; font-size: 11px; }
.livefeed__rows {
  flex: 1 1 auto;
  display: flex; flex-direction: column;
  min-width: 0;
}
.livefeed__viewport {
  flex: 1 1 auto;
  position: relative;
  height: 36px;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent 0, #000 32px, #000 calc(100% - 32px), transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 32px, #000 calc(100% - 32px), transparent 100%);
}
.livefeed__viewport + .livefeed__viewport {
  border-top: 1px solid #1a0000;
}
.livefeed__track {
  position: absolute; top: 0; left: 0;
  display: inline-flex; align-items: center; gap: 22px;
  height: 100%;
  /* No padding-left: we want the row to be already populated at t=0
     instead of scrolling in from off-screen. The doubled content set
     keeps the loop seamless regardless. */
  white-space: nowrap;
  animation: liveScroll 215s linear infinite;
  will-change: transform;
}
/* Bottom row scrolls the OTHER way for the busy-network feel. */
.livefeed__track--reverse {
  animation-direction: reverse;
}
.livefeed__track:hover { animation-play-state: paused; }
.livefeed__item {
  display: inline-flex; align-items: center; gap: 8px;
  color: #ddd;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
  transition: background-color 0.15s ease, transform 0.15s ease;
}
.livefeed__item:hover,
.livefeed__item:focus-visible {
  background: rgba(255, 24, 24, 0.08);
  outline: none;
  transform: translateY(-1px);
}
.livefeed__item:focus-visible {
  box-shadow: 0 0 0 1px rgba(255, 24, 24, 0.5);
}
.livefeed__user {
  color: #888;
  font-weight: 700;
}
.livefeed__arrow {
  color: #555;
  font-family: var(--hand);
  font-size: 14px;
}
.livefeed__name {
  color: #fff;
  font-weight: 800;
  text-transform: uppercase;
}
.livefeed__pct {
  font-family: var(--drip);
  font-size: 18px;
  line-height: 1;
  letter-spacing: 0;
}
.livefeed__pct--slop  { color: var(--slop);  text-shadow: 0 0 10px rgba(255, 24, 24, 0.7); }
.livefeed__pct--mid   { color: var(--warn);  text-shadow: 0 0 10px rgba(255, 184, 0, 0.7); }
.livefeed__pct--based { color: var(--based); text-shadow: 0 0 10px rgba(0, 209, 102, 0.7); }
.livefeed__verdict {
  font-weight: 900;
  letter-spacing: 0.06em;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 4px;
}
.livefeed__verdict--slop  { color: var(--slop);  background: rgba(255, 24, 24, 0.12);  border: 1px solid rgba(255, 24, 24, 0.4); }
.livefeed__verdict--mid   { color: var(--warn);  background: rgba(255, 184, 0, 0.12);  border: 1px solid rgba(255, 184, 0, 0.4); }
.livefeed__verdict--based { color: var(--based); background: rgba(0, 209, 102, 0.12); border: 1px solid rgba(0, 209, 102, 0.4); }
.livefeed__sep {
  color: #2a2a2a;
  font-family: var(--display);
  font-size: 16px;
  line-height: 1;
}
@keyframes liveScroll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}
@media (max-width: 720px) {
  .livefeed-section { padding: 0 10px; }
  .livefeed { font-size: 11px; }
  .livefeed__viewport { height: 30px; }
  .livefeed__pulse { padding: 0 10px; }
  .livefeed__lbl { font-size: 9px; }
  .livefeed__pct { font-size: 16px; }
  .livefeed__track { animation-duration: 145s; gap: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .livefeed__track { animation-duration: 400s; }
}

/* ============== NAV ============== */
.nav {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 18px;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
}
.nav__logo { display: inline-flex; align-items: center; height: 30px; }
.nav__logo img {
  height: 100%; width: auto;
  filter: drop-shadow(0 0 12px rgba(255, 24, 24, 0.4));
}
.nav__links { display: flex; align-items: center; gap: 18px; }
.nav__links a {
  font-size: 14px; color: var(--muted);
  font-weight: 600; letter-spacing: 0.02em;
  transition: color .15s ease;
}
.nav__links a:hover { color: var(--text); }
.nav__cta {
  padding: 8px 14px;
  border: 2px solid var(--based);
  color: var(--based) !important;
  border-radius: 999px;
  text-shadow: 0 0 8px rgba(0, 209, 102, 0.5);
  transition: all .15s ease;
}
.nav__cta:hover {
  background: var(--based);
  color: #001a0d !important;
  text-shadow: none;
  box-shadow: 0 0 24px rgba(0, 209, 102, 0.55);
}
.nav__what {
  font-family: var(--display);
  font-size: 12px !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase;
  padding: 6px 10px;
  border: 1px solid rgba(255, 24, 24, 0.55);
  color: #ffb8b8 !important;
  border-radius: 999px;
  text-shadow: 0 0 8px rgba(255, 24, 24, 0.35);
  transition: all .15s ease;
}
.nav__what:hover {
  background: rgba(255, 24, 24, 0.15);
  color: #fff !important;
  border-color: var(--slop);
  box-shadow: 0 0 18px rgba(255, 24, 24, 0.45);
}
.nav__map,
.nav__tier {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
/* Slop Map — high-contrast glowing pill that pulls the eye to the new feature. */
.nav__map {
  position: relative;
  overflow: hidden;
  font-family: var(--display);
  font-size: 12px !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase;
  font-weight: 800;
  padding: 7px 14px;
  border-radius: 999px;
  color: #2a1100 !important;
  background: linear-gradient(180deg, #ffe27a 0%, #ff9d2e 52%, #ff3b1e 100%);
  border: 1px solid rgba(255, 238, 190, 0.9);
  box-shadow:
    0 0 16px rgba(255, 140, 0, 0.55),
    0 2px 10px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: transform .15s ease, box-shadow .15s ease;
  animation: nav-map-glow 1.8s ease-in-out infinite;
}
/* Diagonal shine sweep. */
.nav__map::before {
  content: "";
  position: absolute;
  top: 0;
  left: -70%;
  width: 45%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.65), transparent);
  transform: skewX(-18deg);
  animation: nav-map-shimmer 2.8s ease-in-out infinite;
  pointer-events: none;
}
.nav__map-icon {
  font-size: 13px;
  filter: drop-shadow(0 0 3px rgba(0, 0, 0, 0.4));
}
.nav__map:hover {
  color: #2a1100 !important;
  transform: translateY(-1px) scale(1.05);
  box-shadow:
    0 0 28px rgba(255, 180, 0, 0.9),
    0 4px 14px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
@keyframes nav-map-glow {
  0%, 100% {
    box-shadow:
      0 0 14px rgba(255, 140, 0, 0.5),
      0 2px 10px rgba(0, 0, 0, 0.35),
      inset 0 1px 0 rgba(255, 255, 255, 0.55);
  }
  50% {
    box-shadow:
      0 0 26px rgba(255, 60, 30, 0.85),
      0 2px 12px rgba(0, 0, 0, 0.4),
      inset 0 1px 0 rgba(255, 255, 255, 0.6);
  }
}
@keyframes nav-map-shimmer {
  0% { left: -70%; }
  55%, 100% { left: 140%; }
}
.nav__new {
  font-family: var(--display);
  font-size: 9px;
  letter-spacing: 0.12em;
  padding: 2px 7px;
  border-radius: 999px;
  background: linear-gradient(180deg, #2a0000 0%, #720000 100%);
  color: #fff;
  border: 1px solid rgba(255, 230, 150, 0.9);
  box-shadow: 0 0 10px rgba(255, 24, 24, 0.65);
  animation: nav-new-pulse 1.2s ease-in-out infinite;
}
@keyframes nav-new-pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 8px rgba(255, 24, 24, 0.6);
  }
  50% {
    transform: scale(1.12);
    box-shadow: 0 0 16px rgba(255, 220, 120, 0.95);
  }
}
@media (prefers-reduced-motion: reduce) {
  .nav__map,
  .nav__map::before,
  .nav__new {
    animation: none;
  }
}
.nav__soon {
  font-family: var(--display);
  font-size: 9px;
  letter-spacing: 0.1em;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 184, 0, 0.15);
  color: var(--warn);
  border: 1px solid rgba(255, 184, 0, 0.4);
  animation: nav-soon-pulse 2s ease-in-out infinite;
}
@keyframes nav-soon-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.65; }
}
@media (max-width: 560px) {
  .nav__logo { display: none; }
  .nav { justify-content: flex-end; padding: 8px 12px; }
  .nav__links a:not(.nav__cta):not(.nav__what):not(.nav__map):not(.nav__tier) { display: none; }
  .nav__what { padding: 5px 8px; font-size: 10px !important; }
  .nav__map { padding: 5px 10px; }
  .nav__map-icon { display: none; }
}

/* ============== "WHAT IS GOYSLOP?" MODAL ============== */
.what-modal {
  position: fixed; inset: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  z-index: 120;
}
.what-modal[hidden] { display: none; }
.what-modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.what-modal__panel {
  position: relative;
  width: 100%; max-width: 540px;
  background: linear-gradient(180deg, #1a0707 0%, #050202 100%);
  border: 2px solid var(--slop);
  border-radius: 14px;
  padding: 28px 22px 22px;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.75), 0 0 50px rgba(255, 24, 24, 0.2);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  color: var(--text);
  animation: whatModalIn 0.22s ease-out;
}
@keyframes whatModalIn {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}
.what-modal__close {
  position: absolute;
  top: 10px; right: 12px;
  width: 36px; height: 36px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: all .15s ease;
}
.what-modal__close:hover {
  background: var(--slop);
  border-color: var(--slop);
  color: #fff;
}
.what-modal__title {
  margin: 0 0 10px;
  font-family: var(--display);
  font-size: clamp(22px, 5.5vw, 28px);
  color: var(--slop);
  text-shadow: 0 0 14px rgba(255, 24, 24, 0.45);
  letter-spacing: 0.02em;
  padding-right: 40px;
}
.what-modal__lead {
  margin: 0 0 14px;
  font-family: var(--marker);
  font-size: clamp(15px, 3.6vw, 18px);
  color: #ffb8b8;
}
.what-modal__list {
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}
.what-modal__list li {
  position: relative;
  padding: 10px 12px 10px 30px;
  background: rgba(255, 24, 24, 0.06);
  border-left: 3px solid var(--slop);
  border-radius: 4px;
  font-size: 14px;
  line-height: 1.45;
  color: #f0e6e6;
}
.what-modal__list li::before {
  content: "🍔";
  position: absolute;
  left: 8px; top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
}
.what-modal__list li:nth-child(2)::before { content: "🎬"; }
.what-modal__list li:nth-child(3)::before { content: "😈"; }
.what-modal__list li:nth-child(4)::before { content: "☣️"; }
.what-modal__list li:nth-child(5)::before { content: "🧠"; }
.what-modal__def {
  margin: 0 0 16px;
  padding: 12px 14px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px dashed var(--border);
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.5;
  color: #e8d8d8;
}
.what-modal__def strong {
  font-family: var(--display);
  color: var(--slop);
  letter-spacing: 0.04em;
}
.what-modal__manifesto {
  margin: 0 0 18px;
  font-family: var(--display);
  font-size: clamp(16px, 4vw, 19px);
  letter-spacing: 0.05em;
  line-height: 1.5;
  text-align: center;
  color: #fff;
}
.what-modal__welcome {
  display: inline-block;
  margin-top: 6px;
  color: var(--based);
  text-shadow: 0 0 14px rgba(0, 209, 102, 0.45);
}
.what-modal__ack {
  display: block;
  width: 100%;
  padding: 14px 16px;
  background: var(--slop);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-family: var(--display);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.08em;
  cursor: pointer;
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.4);
  box-shadow: 0 0 24px rgba(255, 24, 24, 0.45);
  transition: transform .12s ease, box-shadow .15s ease;
}
.what-modal__ack:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 32px rgba(255, 24, 24, 0.65);
}
.what-modal__ack:active { transform: translateY(0); }

/* ============== HERO ============== */
.hero {
  position: relative;
  z-index: 2;
  padding: 18px 14px 36px;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
}

/* ---- Floating wojak/burger/tv/reel backdrop ---- */
.hero__tiles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.hero > *:not(.hero__tiles) {
  position: relative;
  z-index: 1;
}
.tile {
  position: absolute;
  height: auto;
  opacity: 0.55;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.55));
  animation: tile-float 9s ease-in-out infinite;
  transform: rotate(var(--r, 0deg));
  will-change: transform;
}
.tile--sm { width: clamp(36px, 4.2vw, 70px); }
.tile--md { width: clamp(52px, 6vw,   96px); }
.tile--lg { width: clamp(78px, 9.5vw, 150px); opacity: 0.62; }

/* ---- Positions, mirroring updated-home.png (1408x768) ----
   Source coordinates measured from the mock; reproduced here as % of
   the hero box. Each tile gets a slight rotation via --r and a unique
   animation-delay so the float doesn't sync. ---------------------- */

/* Top strip (left → right) */
.tile--t-wojak-tl   { top:  1%;  left:  1%;  --r:  -8deg; animation-delay: -0.2s; }
.tile--t-burger-l1  { top:  2%;  left:  6%;  --r:   4deg; animation-delay: -1.6s; }
.tile--t-reel-l1    { top:  9%;  left:  6%;  --r:  -6deg; animation-delay: -2.4s; }
.tile--t-burger-l2  { top:  1%;  left: 18%;  --r:   8deg; animation-delay: -3.1s; }
.tile--t-tv-r1      { top:  2%;  right:24%;  --r:  -4deg; animation-delay: -0.7s; }
.tile--t-burger-r1  { top:  1%;  right:14%;  --r:   6deg; animation-delay: -2.0s; }
.tile--t-tv-r2      { top:  9%;  right: 6%;  --r:  -7deg; animation-delay: -3.6s; }
.tile--t-wojak-tr   { top:  1%;  right: 1%;  --r:   8deg; animation-delay: -1.1s; }

/* Left side (around soyjak) */
.tile--l-wojak      { top: 26%;  left:  0.5%; --r:  -4deg; animation-delay: -2.7s; }
.tile--l-reel       { top: 36%;  left:  9%;  --r:   9deg; animation-delay: -1.3s; }

/* Right side (around chad) */
.tile--r-wojak      { top: 24%;  right: 0.5%; --r:   3deg; animation-delay: -0.9s; }
.tile--r-reel       { top: 30%;  right: 9%;  --r:  -8deg; animation-delay: -3.3s; }
.tile--r-wojak2     { top: 50%;  right: 0%;  --r:  -5deg; animation-delay: -2.2s; }

/* Bottom strip */
.tile--b-burger-l   { bottom: 4%; left:  3%;  --r:   5deg; animation-delay: -1.8s; }
.tile--b-tv-l       { bottom: 4%; left: 12%;  --r:  -6deg; animation-delay: -0.4s; }
.tile--b-burger-r   { bottom:28%; right: 9%;  --r:   7deg; animation-delay: -2.9s; }
.tile--b-tv-r       { bottom: 8%; right: 5%;  --r:  -3deg; animation-delay: -3.7s; }
.tile--b-wojak-smug { bottom: 1%; right: 1%;  --r:   4deg; animation-delay: -1.5s; }

@keyframes tile-float {
  0%, 100% { transform: translate(0, 0)     rotate(var(--r, 0deg)); }
  50%      { transform: translate(0, -10px) rotate(var(--r, 0deg)); }
}

/* On phones, drop the densest top/bottom inner tiles so the scanner
   stays the focal point. The corner anchors (wojaks) stay. */
@media (max-width: 640px) {
  .tile--t-burger-l2, .tile--t-tv-r1, .tile--t-burger-r1,
  .tile--t-reel-l1,   .tile--t-tv-r2,
  .tile--b-tv-l,      .tile--b-burger-r,
  .tile--l-reel,      .tile--r-reel { display: none; }
  .tile { opacity: 0.42; }
}
@media (prefers-reduced-motion: reduce) {
  .tile { animation: none; }
}
.hero__head {
  display: flex; flex-direction: column; align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.hero__title {
  width: min(920px, 92vw);
  filter: drop-shadow(0 0 24px rgba(255, 24, 24, 0.45));
  animation: title-glow 4s ease-in-out infinite;
}
@keyframes title-glow {
  0%, 100% { filter: drop-shadow(0 0 18px rgba(255, 24, 24, 0.35)); }
  50%      { filter: drop-shadow(0 0 38px rgba(255, 24, 24, 0.7)); }
}
.hero__tagline {
  width: min(720px, 86vw);
  filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.15));
}

/* ============== STAGE: characters + scanner ============== */
.stage {
  position: relative;
  width: 100%;
  max-width: 1320px;
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(440px, 2.2fr) minmax(160px, 1fr);
  align-items: end;
  gap: 12px;
  padding: 0 8px;
}

.stage__char {
  position: relative;
  align-self: end;
  pointer-events: none;
}
.stage__char .char {
  width: 100%;
  max-width: 320px;
  height: auto;
  filter: drop-shadow(0 12px 30px rgba(0, 0, 0, 0.7));
}
.stage__char--left  { justify-self: end; }
.stage__char--right { justify-self: start; }
.stage__char--left  .char { animation: sob 3.4s ease-in-out infinite; transform-origin: bottom center; }
.stage__char--right .char { animation: flex 4.2s ease-in-out infinite; transform-origin: bottom center; }
.char__peek {
  position: absolute;
  right: -8%;
  bottom: 18%;
  width: 28%;
  max-width: 90px;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.6));
  animation: peek 5s ease-in-out infinite;
  transform-origin: bottom right;
  z-index: -1;
}
@keyframes peek {
  0%, 100% { transform: translate(0, 0) rotate(-3deg); }
  50%      { transform: translate(2px, -2px) rotate(2deg); }
}
@keyframes sob {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50%      { transform: translateY(-3px) rotate(1deg); }
}
@keyframes flex {
  0%, 100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-4px) scale(1.015); }
}

/* Speech bubbles are now baked directly into the soyjak / chad sprites
   (extracted as one connected component along with the character), so
   we no longer need separate .bubble elements. */

/* ============== SCANNER ============== */
.scanner {
  position: relative;
  z-index: 3;
  display: flex; flex-direction: column; align-items: center;
  gap: 14px;
  padding: 22px 18px 26px;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(255, 24, 24, 0.18), transparent 65%),
    linear-gradient(180deg, rgba(20, 20, 20, 0.92), rgba(8, 8, 8, 0.92));
  border: 2px solid var(--border);
  border-radius: 22px;
  box-shadow:
    0 30px 80px -20px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(255, 255, 255, 0.04),
    inset 0 0 60px rgba(255, 24, 24, 0.06);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.scanner__cats {
  display: flex; align-items: center; justify-content: center;
  gap: 8px;
  width: 100%;
  flex-wrap: nowrap;
}
.cat {
  position: relative;
  display: inline-flex;
  padding: 4px 6px;
  border-radius: 14px;
  transition: transform .12s ease, filter .15s ease, background .15s ease;
  filter: grayscale(0.5) brightness(0.78);
  opacity: 0.9;
  flex: 0 1 auto;
  min-width: 0;
}
.cat img {
  height: clamp(38px, 6.5vw, 56px); width: auto;
  max-width: 100%;
  pointer-events: none;
}
.cat:hover {
  filter: grayscale(0) brightness(1);
  transform: translateY(-2px);
  opacity: 1;
}
.cat.is-active {
  filter: none;
  opacity: 1;
  transform: translateY(-2px);
  background: radial-gradient(70% 80% at 50% 50%, rgba(0, 229, 255, 0.18), transparent 70%);
  box-shadow:
    0 0 0 2px rgba(0, 229, 255, 0.85),
    0 0 24px rgba(0, 229, 255, 0.4);
}
.cat:focus-visible {
  outline: 3px solid var(--neon);
  outline-offset: 2px;
}

.scanner__input-row {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 600px;
}
.scanner__input-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 600px;
}
.scanner__input {
  position: relative;
  display: block;
  width: 100%;
  max-width: 600px;
  cursor: text;
}

/* Camera + Scan: symmetric flex “wings” so SCAN stays mathematically centered;
   the right wing holds Camera flush to the SCAN edge. (Plain 1fr|auto|1fr grid
   skews when only the right column has a wide min-content item.) */
.scanner__actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: row;
  align-items: center;
  width: 100%;
  max-width: 600px;
}
.scanner__actions-balance {
  flex: 1 1 0;
  min-width: 0;
}
.scanner__actions .scanner__btn {
  flex: 0 0 auto;
}
.scanner__actions-tail {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.scanner__actions-tail .scanner__cam {
  flex: 0 0 auto;
  margin-left: 12px;
}

/* Camera / barcode button. Lives in .scanner__actions-tail; hidden by default
   (init() reveals it only when getUserMedia exists). */
.scanner__cam {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.55);
  border: 2px solid var(--border);
  border-radius: 12px;
  color: #fff;
  font-family: var(--display);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: border-color .12s ease, background .12s ease, transform .08s ease;
}
.scanner__cam[hidden] { display: none; }
.scanner__cam:hover {
  border-color: var(--neon);
  background: rgba(0, 229, 255, 0.12);
}
.scanner__cam:active { transform: translateY(1px); }
.scanner__cam:focus-visible { outline: 3px solid var(--neon); outline-offset: 3px; }
.scanner__cam-icon { font-size: 18px; line-height: 1; }
.scanner__cam-lbl { white-space: nowrap; }
@media (max-width: 520px) {
  /* Tighten on small screens — the icon alone is enough signal once
     the user knows what it does. */
  .scanner__cam-lbl { display: none; }
  .scanner__cam { padding: 10px; }
}
.scanner__input-bg {
  width: 100%; height: auto;
  pointer-events: none;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5));
}
.scanner__input input {
  position: absolute;
  inset: 8% 4% 8% 4%;
  width: 92%;
  height: 84%;
  border: 0; outline: none;
  background: #fff;
  color: #000;
  font-family: var(--hand);
  font-size: clamp(20px, 5vw, 36px);
  text-align: center;
  caret-color: var(--slop);
  border-radius: 4px;
}
.scanner__input input::placeholder { color: rgba(0, 0, 0, 0.4); }
.scan-suggest {
  position: absolute;
  left: 4%;
  right: 4%;
  top: calc(100% - 6%);
  z-index: 100;
  margin: 0;
  padding: 6px 0;
  list-style: none;
  max-height: min(240px, 38vh);
  overflow-y: auto;
  border-radius: 12px;
  border: 2px solid #111;
  background: #fff;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
  isolation: isolate;
}

/* Dropdown overflows the scanner — lift above SCAN btn, disclaimer, livefeed. */
.hero.is-suggest-open {
  z-index: 20;
}
.hero.is-suggest-open .stage {
  z-index: 10;
}
.scanner.is-suggest-open {
  z-index: 5;
}
.scan-suggest[hidden] { display: none !important; }
.scan-suggest__item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  background: #fff;
  text-align: left;
  cursor: pointer;
  font-family: var(--sans);
  color: #111;
}
.scan-suggest__item:hover,
.scan-suggest__item.is-active {
  background: #fff6cc;
}
.scan-suggest__name {
  flex: 1 1 auto;
  min-width: 0;
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.scan-suggest__meta {
  flex: 0 0 auto;
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.scan-suggest__meta--slop { color: var(--slop); }
.scan-suggest__meta--mid { color: #b88600; }
.scan-suggest__meta--based { color: #00884a; }
.scan-suggest__empty {
  padding: 10px 12px;
  font-size: 12px;
  color: #666;
}
.scanner__input:focus-within .scanner__input-bg {
  filter:
    drop-shadow(0 0 0 #fff)
    drop-shadow(0 0 18px rgba(0, 229, 255, 0.7));
}

.scanner__btn {
  position: relative;
  display: inline-block;
  padding: 0;
  transition: transform .08s ease, filter .15s ease;
  filter: drop-shadow(0 8px 18px rgba(255, 24, 24, 0.45));
}
.scanner__btn img {
  height: clamp(72px, 16vw, 110px);
  width: auto;
  pointer-events: none;
}
.scanner__btn:hover {
  transform: translateY(-2px) scale(1.02);
  filter: drop-shadow(0 12px 28px rgba(255, 24, 24, 0.7));
}
.scanner__btn:active { transform: translateY(1px) scale(0.99); }
.scanner__btn:focus-visible { outline: 3px solid var(--neon); outline-offset: 4px; border-radius: 12px; }
.scanner__btn::after {
  content: "";
  position: absolute; inset: 6% 6%;
  border-radius: 14px;
  box-shadow: 0 0 24px rgba(255, 24, 24, 0.55);
  z-index: -1;
  animation: scan-pulse 1.8s ease-in-out infinite;
}
@keyframes scan-pulse {
  0%, 100% { opacity: 0.7; }
  50%      { opacity: 1; transform: scale(1.05); }
}

.disclaimer {
  margin: 22px 0 0;
  font-family: var(--marker);
  font-size: 14px;
  color: var(--muted);
  letter-spacing: 0.02em;
  text-align: center;
}

/* Mobile stage stacking */
@media (max-width: 760px) {
  .stage {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "scan  scan"
      "soy   chad";
    gap: 6px;
  }
  .scanner { grid-area: scan; margin-bottom: 8px; }
  .stage__char--left  { grid-area: soy;  justify-self: center; }
  .stage__char--right { grid-area: chad; justify-self: center; }
  .stage__char .char { max-width: 200px; }
  .bubble { max-width: 110px; }
}
@media (max-width: 420px) {
  .stage__char .char { max-width: 160px; }
  .bubble { max-width: 90px; }
  .cat img { height: 44px; }
}

/* ============== SECTIONS ============== */
.section {
  position: relative;
  z-index: 2;
  padding: 56px 22px;
  max-width: 1100px;
  margin: 0 auto;
}
.section__head { text-align: center; margin-bottom: 28px; }
.section__title {
  font-family: var(--display);
  font-size: clamp(26px, 4.5vw, 44px);
  margin: 0;
  color: var(--text);
  letter-spacing: 0.02em;
  text-shadow:
    -2px -2px 0 var(--slop),
     2px  2px 0 var(--slop),
    0 0 20px rgba(255, 24, 24, 0.3);
}
.section__sub {
  margin: 8px 0 0;
  color: var(--muted);
  font-family: var(--marker);
}
/* ============== TICKER ============== */
.ticker {
  display: flex; gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px 4px 18px;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
  -webkit-overflow-scrolling: touch;
}
.ticker::-webkit-scrollbar { height: 6px; }
.ticker::-webkit-scrollbar-thumb { background: var(--border); border-radius: 6px; }

.tcard {
  flex: 0 0 280px;
  scroll-snap-align: start;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  transition: transform .15s ease, border-color .15s, box-shadow .15s;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  text-align: left;
}
.tcard:hover {
  transform: translateY(-2px);
  border-color: var(--slop);
  box-shadow: 0 12px 30px -16px rgba(255, 24, 24, 0.6);
}
.tcard__head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px;
}
.tcard__cat {
  font-family: var(--display);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.15em;
}
.tcard__score {
  font-family: var(--drip);
  font-size: 26px; line-height: 1;
  display: inline-flex; align-items: center; gap: 8px;
  white-space: nowrap;
}
.tcard__tag {
  font-family: var(--display);
  font-size: 14px; letter-spacing: 0.06em;
  font-weight: 800;
}
.tcard__name {
  font-size: 18px; font-weight: 700; margin: 0 0 4px;
}
.tcard__verdict {
  font-family: var(--hand);
  font-size: 17px;
  color: var(--muted);
  margin: 0;
}
.tcard__bar {
  margin-top: 12px; height: 6px; border-radius: 4px;
  background: #000;
  overflow: hidden;
  border: 1px solid var(--border);
}
.tcard__bar-fill { height: 100%; border-radius: 4px; box-shadow: 0 0 10px currentColor; }

/* ============== STEPS ============== */
.steps {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.step {
  position: relative;
  padding: 22px;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 16px;
  text-align: left;
  overflow: hidden;
  display: flex; flex-direction: column; gap: 10px;
  min-height: 220px;
}
.step__num {
  font-family: var(--display);
  font-size: 14px; color: var(--slop);
  letter-spacing: 0.2em;
  text-shadow: 0 0 12px rgba(255, 24, 24, 0.5);
}
.step__img {
  height: 100px; width: auto;
  object-fit: contain;
  align-self: flex-start;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.6));
}
.step h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 20px;
  letter-spacing: 0.02em;
}
.step p {
  margin: 0;
  color: var(--muted);
  font-family: var(--hand);
  font-size: 17px;
}

@media (max-width: 720px) {
  .steps { grid-template-columns: 1fr; }
  .step { min-height: auto; }
}

/* ============== DISCOVER (Sloplist + Slop Map) ============== */
.discover {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.discover__card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 20px;
  border: 2px solid var(--border);
  background: var(--surface);
  text-decoration: none;
  color: inherit;
  text-align: left;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.discover__card:hover {
  transform: translateY(-4px);
}
.discover__card--list {
  border-color: rgba(0, 229, 255, 0.35);
  box-shadow:
    0 0 0 1px rgba(0, 229, 255, 0.08) inset,
    0 18px 40px -24px rgba(0, 229, 255, 0.35);
}
.discover__card--list:hover {
  border-color: var(--neon);
  box-shadow:
    0 0 0 1px rgba(0, 229, 255, 0.15) inset,
    0 24px 50px -20px rgba(0, 229, 255, 0.45);
}
.discover__card--map {
  border-color: rgba(255, 157, 46, 0.45);
  box-shadow:
    0 0 0 1px rgba(255, 200, 80, 0.08) inset,
    0 18px 40px -24px rgba(255, 120, 0, 0.35);
}
.discover__card--map:hover {
  border-color: #ffb84d;
  box-shadow:
    0 0 0 1px rgba(255, 200, 80, 0.15) inset,
    0 24px 50px -20px rgba(255, 140, 0, 0.5);
}

.discover__visual {
  position: relative;
  min-height: 168px;
  overflow: hidden;
}
.discover__visual--list {
  background:
    radial-gradient(120% 90% at 20% 0%, rgba(0, 229, 255, 0.22), transparent 55%),
    radial-gradient(80% 70% at 100% 100%, rgba(255, 24, 24, 0.12), transparent 50%),
    linear-gradient(165deg, #0a1520 0%, #050505 100%);
  padding: 16px 16px 12px;
}
.discover__visual--map {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 14px 12px;
  background:
    radial-gradient(90% 80% at 50% 0%, rgba(255, 140, 0, 0.14), transparent 60%),
    linear-gradient(180deg, #101820 0%, #050505 100%);
}

.discover__mock {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 7px;
  max-width: 78%;
}
.discover__mock-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 2px;
}
.discover__mock-sub {
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--neon);
  text-shadow: 0 0 12px rgba(0, 229, 255, 0.5);
}
.discover__mock-live {
  font-family: var(--display);
  font-size: 9px;
  letter-spacing: 0.14em;
  padding: 2px 7px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 24, 24, 0.85);
  border: 1px solid rgba(255, 180, 180, 0.5);
  box-shadow: 0 0 10px rgba(255, 24, 24, 0.55);
  animation: discover-live-pulse 1.4s ease-in-out infinite;
}
@keyframes discover-live-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.72; }
}
.discover__mock-post {
  display: grid;
  grid-template-columns: 36px 1fr;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(4px);
}
.discover__mock-score {
  font-family: var(--drip);
  font-size: 18px;
  line-height: 1;
  text-align: center;
}
.discover__mock-name {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.discover__mock-post--slop .discover__mock-score { color: var(--slop); }
.discover__mock-post--mid .discover__mock-score { color: var(--warn); }
.discover__mock-post--based .discover__mock-score { color: var(--based); }
.discover__mock-post--slop { border-color: rgba(255, 24, 24, 0.25); }
.discover__mock-post--mid { border-color: rgba(255, 184, 0, 0.25); }
.discover__mock-post--based { border-color: rgba(0, 209, 102, 0.25); }

.discover__deco {
  position: absolute;
  pointer-events: none;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.65));
  transition: transform 0.25s ease;
}
.discover__deco--list {
  right: -6px;
  bottom: -10px;
  width: 108px;
  height: auto;
  transform: rotate(-6deg);
}
.discover__card--list:hover .discover__deco--list {
  transform: rotate(-2deg) translateY(-4px) scale(1.04);
}

.discover__map-scene {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  min-height: 118px;
  padding: 10px 8px 8px;
  border-radius: 12px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    radial-gradient(120% 90% at 50% 100%, rgba(0, 209, 102, 0.08), transparent 55%),
    rgba(0, 0, 0, 0.35);
  background-size: 18px 18px, 18px 18px, auto, auto;
  border: 1px solid rgba(255, 180, 80, 0.18);
  overflow: hidden;
}
.discover__map-logo {
  display: block;
  width: min(100%, 280px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.55));
  position: relative;
  z-index: 2;
}
.discover__card--map:hover .discover__map-logo {
  filter: drop-shadow(0 6px 18px rgba(255, 140, 0, 0.35));
}
.discover__map-pins {
  position: relative;
  width: 100%;
  height: 52px;
  pointer-events: none;
}
.discover__pin {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 12px currentColor;
  animation: discover-pin-float 2.8s ease-in-out infinite;
}
.discover__pin--slop { top: 8%; left: 18%; color: var(--slop); background: var(--slop); animation-delay: 0s; }
.discover__pin--mid { top: 42%; left: 48%; color: var(--warn); background: var(--warn); animation-delay: 0.4s; }
.discover__pin--based { top: 12%; left: 74%; color: var(--based); background: var(--based); animation-delay: 0.8s; }
.discover__pin--b.discover__pin--slop { top: 58%; left: 32%; animation-delay: 1.1s; }
.discover__pin--b.discover__pin--based { top: 50%; left: 86%; animation-delay: 1.5s; }
@keyframes discover-pin-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}
.discover__map-legend {
  display: flex;
  gap: 6px;
  justify-content: center;
}
.discover__logo-mark {
  display: block;
  width: auto;
  height: 16px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(255, 140, 0, 0.25));
}

.discover__legend-item {
  font-family: var(--display);
  font-size: 9px;
  letter-spacing: 0.1em;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(4px);
}
.discover__legend-item--slop { color: var(--slop); border-color: rgba(255, 24, 24, 0.45); }
.discover__legend-item--mid { color: var(--warn); border-color: rgba(255, 184, 0, 0.45); }
.discover__legend-item--based { color: var(--based); border-color: rgba(0, 209, 102, 0.45); }

.discover__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 22px 22px;
  flex: 1;
}
.discover__meta {
  display: flex;
  align-items: center;
  gap: 8px;
}
.discover__eyebrow {
  margin: 0;
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.discover__card--list .discover__eyebrow { color: var(--neon); }
.discover__card--map .discover__eyebrow { color: #ffb84d; }
.discover__badge {
  font-family: var(--display);
  font-size: 9px;
  letter-spacing: 0.12em;
  padding: 2px 7px;
  border-radius: 999px;
  background: linear-gradient(180deg, #002228 0%, #004455 100%);
  color: var(--neon);
  border: 1px solid rgba(0, 229, 255, 0.55);
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.35);
}
.discover__badge--map {
  font-size: 11px;
  padding: 2px 8px;
  background: linear-gradient(180deg, #2a1100 0%, #5a2800 100%);
  color: #ffe27a;
  border-color: rgba(255, 200, 80, 0.55);
  box-shadow: 0 0 10px rgba(255, 140, 0, 0.35);
}
.discover__title {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(22px, 3vw, 30px);
  letter-spacing: 0.02em;
  line-height: 1.15;
}
.discover__text {
  margin: 0;
  flex: 1;
  color: var(--muted);
  font-family: var(--hand);
  font-size: 17px;
  line-height: 1.45;
}
.discover__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.discover__tags li {
  font-family: var(--display);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--muted);
  background: var(--bg-2);
  border: 1px solid var(--border);
}
.discover__tags--map li {
  border-color: rgba(255, 180, 80, 0.2);
  background: rgba(255, 140, 0, 0.08);
}
.discover__cta {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  margin-top: 4px;
  padding: 12px 18px;
  border-radius: 12px;
  font-family: var(--display);
  font-size: 14px;
  letter-spacing: 0.06em;
  transition: transform 0.12s ease, filter 0.15s ease, box-shadow 0.15s ease;
}
.discover__card--list .discover__cta {
  color: #001820;
  background: linear-gradient(180deg, #7ff7ff 0%, var(--neon) 55%, #00b8cc 100%);
  border: 1px solid rgba(180, 255, 255, 0.8);
  box-shadow: 0 0 18px rgba(0, 229, 255, 0.35);
}
.discover__card--list:hover .discover__cta {
  transform: translateY(-1px);
  filter: brightness(1.06);
  box-shadow: 0 0 24px rgba(0, 229, 255, 0.55);
}
.discover__cta--map {
  color: #2a1100;
  background: linear-gradient(180deg, #ffe27a 0%, #ff9d2e 52%, #ff3b1e 100%);
  border: 1px solid rgba(255, 238, 190, 0.9);
  box-shadow: 0 0 16px rgba(255, 140, 0, 0.45);
}
.discover__card--map:hover .discover__cta--map {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 0 24px rgba(255, 140, 0, 0.65);
}

@media (max-width: 720px) {
  .discover { grid-template-columns: 1fr; }
  .discover__visual { min-height: 150px; }
  .discover__map-logo { width: min(100%, 240px); }
  .discover__mock { max-width: 85%; }
}

/* ============== CTA ============== */
.cta {
  position: relative;
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(280px, 2fr) minmax(120px, 1fr);
  align-items: end;
  gap: 0;
  padding: 0 22px 0;
  margin: 32px auto 0;
  max-width: 1300px;
  overflow: hidden;
}
.cta__chad,
.cta__soy {
  width: 100%;
  height: auto;
  align-self: end;
  pointer-events: none;
  filter: drop-shadow(0 12px 30px rgba(0, 0, 0, 0.7));
}
.cta__chad { transform: translateY(8%); }
.cta__soy  { transform: translateY(8%) scaleX(-1); }
.cta__inner {
  text-align: center;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(255, 24, 24, 0.18), transparent 60%),
    linear-gradient(180deg, var(--surface), var(--bg));
  border: 2px solid var(--border);
  border-radius: 22px;
  padding: 48px 26px;
  position: relative;
  z-index: 1;
}
.cta__eyebrow {
  font-family: var(--display);
  letter-spacing: 0.2em;
  color: var(--slop);
  margin: 0 0 8px;
  text-shadow: 0 0 14px rgba(255, 24, 24, 0.55);
}
.cta__title {
  font-family: var(--display);
  font-size: clamp(28px, 5.5vw, 48px);
  margin: 0 0 12px;
  letter-spacing: 0.02em;
}
.cta__title span {
  color: var(--based);
  text-shadow: 0 0 18px rgba(0, 209, 102, 0.5);
}
.cta__sub {
  max-width: 540px; margin: 0 auto 24px;
  color: var(--muted);
  font-family: var(--hand);
  font-size: 18px;
}
.cta__buttons {
  display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center;
}

@media (max-width: 860px) {
  .cta { grid-template-columns: 1fr; }
  .cta__chad, .cta__soy { display: none; }
}

/* ============== BUTTONS ============== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 22px;
  border-radius: 12px;
  font-family: var(--display);
  font-size: 15px;
  letter-spacing: 0.06em;
  transition: transform .08s ease, filter .15s ease, background .15s;
}
.btn:active { transform: translateY(1px); }
.btn--primary {
  color: #001a0d;
  background: var(--based);
  box-shadow: 0 0 0 2px #000, 0 0 24px rgba(0, 209, 102, 0.45);
}
.btn--primary:hover { filter: brightness(1.08); }
.btn--ghost {
  color: var(--text);
  background: transparent;
  border: 2px solid var(--border);
}
.btn--ghost:hover { border-color: var(--slop); color: var(--slop); }

/* ============== FOOTER ============== */
.footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--border-soft);
  padding: 22px;
  font-size: 13px; color: var(--muted);
  font-family: var(--hand);
}
.footer__inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
}
.footer__links { display: flex; gap: 14px; }
.footer__links a:hover { color: var(--text); }
.footer__disclaimer {
  width: 100%;
  max-width: 1100px;
  margin: 14px auto 0;
  text-align: center;
  font-size: 12px;
  font-style: italic;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.footer__disclaimer a {
  color: var(--muted);
  text-decoration: none;
}
.footer__disclaimer a:hover {
  color: var(--text);
  text-decoration: underline;
}

/* ============== SCANNING OVERLAY ============== */
.scan-overlay {
  position: fixed; inset: 0; z-index: 80;
  display: none;
  align-items: center; justify-content: center;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.scan-overlay.is-open { display: flex; animation: fade .2s ease both; }
@keyframes fade { from { opacity: 0; } }

.scan-overlay__panel {
  width: min(540px, 92vw);
  background: var(--surface);
  border: 2px solid var(--slop);
  border-radius: 18px;
  padding: 22px;
  position: relative;
  box-shadow: 0 0 30px rgba(255, 24, 24, 0.45);
}
.scan-overlay__head {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--display);
  color: var(--muted);
  margin-bottom: 16px;
  font-size: 14px; letter-spacing: 0.1em;
}
.scan-overlay__title { color: var(--slop); }
.scan-overlay__id { margin-left: auto; }

.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot--red { background: var(--slop); box-shadow: 0 0 10px var(--slop); }
.blink { animation: blink 1s steps(2, end) infinite; }
@keyframes blink { 50% { opacity: 0.2; } }

.scan-overlay__radar {
  position: relative; aspect-ratio: 1; max-width: 260px;
  margin: 0 auto 16px;
  border-radius: 50%;
  border: 1px solid rgba(255, 24, 24, 0.4);
  overflow: hidden;
  background: #000;
}
.radar__rings {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle, transparent 0 32%, rgba(255, 24, 24, 0.35) 32% 33%, transparent 33% 56%, rgba(255, 24, 24, 0.25) 56% 57%, transparent 57% 80%, rgba(255, 24, 24, 0.2) 80% 81%, transparent 81%);
}
.radar__crosshair {
  position: absolute; inset: 0;
  background:
    linear-gradient(transparent 49.5%, rgba(255, 24, 24, 0.5) 49.5% 50.5%, transparent 50.5%),
    linear-gradient(90deg, transparent 49.5%, rgba(255, 24, 24, 0.5) 49.5% 50.5%, transparent 50.5%);
}
.radar__sweep {
  position: absolute; inset: 0;
  background: conic-gradient(from 0deg, rgba(255, 24, 24, 0.5), transparent 25%);
  border-radius: 50%;
  animation: sweep 1.6s linear infinite;
  mix-blend-mode: screen;
}
@keyframes sweep { to { transform: rotate(360deg); } }

.scan-overlay__bar {
  position: relative;
  height: 10px; border-radius: 6px;
  background: #000;
  overflow: hidden;
  border: 1px solid var(--border);
}
.scan-overlay__bar-fill {
  position: absolute; inset: 0;
  width: 0%;
  background: linear-gradient(90deg, var(--slop), #ff6b6b);
  box-shadow: 0 0 12px rgba(255, 24, 24, 0.6);
  transition: width .15s linear;
}
.scan-overlay__log {
  margin-top: 14px;
  font-family: var(--hand);
  font-size: 18px;
  color: var(--slop);
  min-height: 1.4em;
  text-shadow: 0 0 6px rgba(255, 24, 24, 0.5);
}

/* ============== RESULT MODAL ============== */
.result-modal {
  position: fixed; inset: 0; z-index: 90;
  display: none;
  align-items: center; justify-content: center;
  padding: 16px;
}
.result-modal.is-open { display: flex; animation: fade .25s ease both; }
.result-modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.result {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: min(720px, 94vw);
  max-height: min(94dvh, calc(100dvh - 32px));
  overflow: hidden;
  padding: 16px 16px max(14px, env(safe-area-inset-bottom));
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(255, 24, 24, 0.22), transparent 60%),
    linear-gradient(180deg, #0d0d0d, #050505);
  border: 2px solid var(--slop);
  border-radius: 22px;
  box-shadow:
    0 30px 80px -20px rgba(0, 0, 0, 0.95),
    0 0 0 1px rgba(255, 24, 24, 0.15),
    0 0 60px rgba(255, 24, 24, 0.25);
  animation: pop .3s cubic-bezier(.2, .8, .2, 1) both;
}
@keyframes pop {
  from { transform: translateY(20px) scale(0.96); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}
.result__close {
  position: absolute;
  top: 10px; right: 10px;
  z-index: 5;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid var(--border);
  color: #fff;
  display: grid; place-items: center;
  font-size: 14px;
  transition: background .15s, border-color .15s;
}
.result__close:hover { background: var(--slop); border-color: var(--slop); }

.result__title {
  display: block;
  flex-shrink: 0;
  width: min(400px, 82%);
  margin: 0 auto 10px;
  filter: drop-shadow(0 0 22px rgba(255, 24, 24, 0.6));
  animation: title-glow 3s ease-in-out infinite;
}

.result__title--text {
  width: auto;
  max-width: 94%;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 0.32em;
  font-family: var(--display);
  font-size: clamp(19px, 5.6vw, 32px);
  line-height: 1.04;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: #ffd400;
  -webkit-text-stroke: 1px #1c0900;
  text-shadow:
    2px 2px 0 #3a0a00,
    -1px -1px 0 #2a0700,
    0 0 2px #000,
    0 0 18px rgba(255, 24, 24, 0.55);
}
.result__title-sep { color: #ff4e1a; }
.result__title-site { color: #ffe45e; }

.result__panel-wrap {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.result__panel-wrap.has-scroll-hint::after {
  content: "";
  position: absolute;
  left: 1px;
  right: 1px;
  bottom: 1px;
  height: 52px;
  border-radius: 0 0 15px 15px;
  pointer-events: none;
  z-index: 2;
  background: linear-gradient(180deg, transparent, rgba(5, 5, 5, 0.88));
}
.result__scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 10px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(8, 8, 8, 0.82);
  color: #fff;
  cursor: pointer;
  transform: translateX(-50%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.result__scroll-hint:not([hidden]).is-visible {
  opacity: 1;
  pointer-events: auto;
}
.result__scroll-hint:hover {
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateX(-50%) translateY(-1px);
}
.result__scroll-hint-arrow {
  display: block;
  font-size: 17px;
  line-height: 1;
  animation: result-scroll-bounce 1.35s ease-in-out infinite;
}
@keyframes result-scroll-bounce {
  0%, 100% { transform: translateY(0); opacity: 0.85; }
  50% { transform: translateY(4px); opacity: 1; }
}
.result--paint .result__scroll-hint,
.result--paint .result__panel-wrap.has-scroll-hint::after {
  display: none;
}

.result__panel {
  display: flex; flex-direction: column; gap: 12px;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
  padding: 14px 14px 20px;
  background:
    radial-gradient(60% 100% at 50% 0%, rgba(0, 209, 102, 0.06), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(0, 0, 0, 0.4));
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  position: relative;
  min-height: 0;
}
.result.is-based .result__panel { border-color: rgba(0, 209, 102, 0.55); box-shadow: 0 0 24px rgba(0, 209, 102, 0.18) inset; }
.result.is-slop  .result__panel { border-color: rgba(255, 24, 24, 0.55);  box-shadow: 0 0 24px rgba(255, 24, 24, 0.18) inset; }
.result.is-mid   .result__panel { border-color: rgba(255, 184, 0, 0.55);  box-shadow: 0 0 24px rgba(255, 184, 0, 0.18) inset; }

.result__paint-slot {
  display: none;
  width: 100%;
  aspect-ratio: 968 / 870;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  position: relative;
}
.result--paint .result__paint-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  min-height: 0;
  max-height: min(48dvh, 100%);
  aspect-ratio: 968 / 870;
  width: 100%;
  height: auto;
}
.result__paint-loading,
.result__paint-slot .meme-loader {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(255, 255, 255, 0.94);
  padding: 10px 8px;
}
.result__paint-slot .paint-frame-preview {
  max-width: 100%;
}
.result__paint-slot .paint-frame-preview__shell {
  padding: 6px 6px 5px;
  gap: 5px;
}
.result__paint-slot .paint-frame-preview__title {
  width: min(68%, 220px);
}
.result__paint-slot .paint-frame-preview__footer {
  font-size: clamp(11px, 2.8vw, 16px);
  padding: 5px 8px;
}
.result__paint-slot .paint-frame-preview__tagline {
  font-size: 7px;
}
.result__paint-slot .meme-loader__meta {
  gap: 6px;
}
.result__paint-slot.is-loading .meme-loader { display: flex; }
.result__paint-slot.is-loading .result__paint { opacity: 0; }
.result--paint .result__panel-body {
  display: none;
}
.result--paint .result__panel {
  padding: 8px;
  gap: 0;
  overflow: hidden;
}
.result__paint {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  background: #fff;
}

.result__share-footer {
  display: none;
  flex-shrink: 0;
  margin: 8px 0 0;
  padding: 10px 14px;
  text-align: center;
  font-family: var(--drip);
  font-size: clamp(18px, 4.2vw, 28px);
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--based);
  background: rgba(0, 0, 0, 0.72);
  border: 3px solid var(--based);
  border-radius: 999px;
  box-shadow: 0 0 18px rgba(0, 209, 102, 0.35);
}
.result--paint .result__share-footer { display: block; }
.result.is-slop.result--paint  .result__share-footer { color: var(--slop); border-color: var(--slop); box-shadow: 0 0 18px rgba(255, 24, 24, 0.35); }
.result.is-mid.result--paint   .result__share-footer { color: var(--warn); border-color: var(--warn); box-shadow: 0 0 18px rgba(255, 184, 0, 0.35); }
.result.is-based.result--paint .result__share-footer { color: var(--based); border-color: var(--based); }

/* Score block: centered headline + verdict pill on its own row */
.result__score {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  line-height: 1;
  position: relative;
  z-index: 3;
  width: 100%;
}
.result__score-main {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  box-sizing: border-box;
}
.result.is-slop .result__score-main,
.result.is-mid .result__score-main {
  padding-left: clamp(84px, 18vw, 132px);
  padding-right: clamp(20px, 5vw, 40px);
}
.result.is-based .result__score-main {
  padding-left: clamp(88px, 18vw, 140px);
  padding-right: clamp(110px, 24vw, 200px);
}
.result__score-num,
.result__score-pct {
  font-family: var(--drip);
  font-size: clamp(56px, 14vw, 100px);
  color: var(--slop);
  text-shadow:
    0 0 20px rgba(255, 24, 24, 0.55),
    2px 6px 0 rgba(0, 0, 0, 0.6);
  letter-spacing: 0.02em;
}
.result__score-word {
  font-family: var(--drip);
  font-size: clamp(34px, 7vw, 60px);
  margin-left: 0.2em;
  color: var(--slop);
  text-shadow:
    0 0 18px rgba(255, 24, 24, 0.55),
    2px 6px 0 rgba(0, 0, 0, 0.6);
  letter-spacing: 0.04em;
  line-height: 1;
}
.result.is-mid   .result__score-num,
.result.is-mid   .result__score-pct { color: var(--warn); text-shadow: 0 0 20px rgba(255, 184, 0, 0.55), 2px 6px 0 rgba(0, 0, 0, 0.6); }
.result.is-based .result__score-num,
.result.is-based .result__score-pct { color: var(--based); text-shadow: 0 0 20px rgba(0, 209, 102, 0.55), 2px 6px 0 rgba(0, 0, 0, 0.6); }
.result.is-mid   .result__score-word { color: var(--warn); text-shadow: 0 0 18px rgba(255, 184, 0, 0.55), 2px 6px 0 rgba(0, 0, 0, 0.6); }
.result.is-based .result__score-word { color: var(--based); text-shadow: 0 0 18px rgba(0, 209, 102, 0.55), 2px 6px 0 rgba(0, 0, 0, 0.6); }
.result.is-based .result__score-word::after { content: ""; }
.result.is-mid   .result__score-word::after { content: ""; }

/* Animated score bar */
.result__bar {
  position: relative;
  height: 14px;
  border-radius: 8px;
  background: #000;
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.7);
}
.result__bar-fill {
  position: absolute; inset: 0;
  width: 0%;
  background: linear-gradient(90deg, var(--based), var(--warn) 50%, var(--slop));
  box-shadow: 0 0 14px rgba(255, 24, 24, 0.5);
  transition: width 1.1s cubic-bezier(.2, .8, .2, 1);
}

/* Scanned pill */
.result__scanned {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
  background: #fff;
  color: #000;
  padding: 8px 18px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 2px #000, 0 6px 16px rgba(0, 0, 0, 0.5);
  font-family: var(--hand);
  font-size: clamp(16px, 3.4vw, 22px);
  max-width: 100%;
}
.result__scanned-lbl { font-weight: 700; }
.result__scanned-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.result__scanned-cat {
  font-family: var(--display);
  font-size: 0.7em;
  letter-spacing: 0.06em;
  color: #666;
  text-transform: none;
}
.result__scanned-cat:empty { display: none; }

/* Verdict */
.result__verdict {
  margin: 0;
  text-align: center;
  font-family: var(--marker);
  font-size: clamp(18px, 4vw, 26px);
  color: #fff;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.2);
}
.result.is-slop  .result__verdict { color: var(--slop);  text-shadow: 0 0 14px rgba(255, 24, 24, 0.55); }
.result.is-mid   .result__verdict { color: var(--warn);  text-shadow: 0 0 14px rgba(255, 184, 0, 0.55); }
.result.is-based .result__verdict { color: var(--based); text-shadow: 0 0 14px rgba(0, 209, 102, 0.55); }

/* Verdict tag (BASED / MID / SLOP), tone-coloured */
.result__tag {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.5em;
  padding: 4px 14px;
  border-radius: 999px;
  border: 2px solid currentColor;
  font-family: var(--display);
  font-size: clamp(13px, 2.8vw, 17px);
  letter-spacing: 0.1em;
}
.result__tag-lbl {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.78em;
  letter-spacing: 0.12em;
}
.result__tag-val { color: #fff; }
.result.is-slop  .result__tag      { color: var(--slop);  box-shadow: 0 0 18px rgba(255, 24, 24, 0.45); }
.result.is-slop  .result__tag-val  { color: var(--slop);  text-shadow: 0 0 12px rgba(255, 24, 24, 0.6); }
.result.is-mid   .result__tag      { color: var(--warn);  box-shadow: 0 0 18px rgba(255, 184, 0, 0.45); }
.result.is-mid   .result__tag-val  { color: var(--warn);  text-shadow: 0 0 12px rgba(255, 184, 0, 0.6); }
.result.is-based .result__tag      { color: var(--based); box-shadow: 0 0 18px rgba(0, 209, 102, 0.45); }
.result.is-based .result__tag-val  { color: var(--based); text-shadow: 0 0 12px rgba(0, 209, 102, 0.6); }

/* Breakdown header (e.g. "Critical Failure Breakdown:") */
.result__breakdown {
  margin: 6px 0 0;
  text-align: center;
  font-family: var(--display);
  font-size: clamp(13px, 2.8vw, 16px);
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.78);
}
.result.is-slop  .result__breakdown { color: rgba(255, 80, 80, 0.95); }
.result.is-based .result__breakdown { color: rgba(0, 220, 120, 0.95); }

/* Status footer (e.g. "STATUS: PEAK SLOP") */
.result__status {
  margin: 6px 0 0;
  text-align: center;
  font-family: var(--display);
  font-size: clamp(14px, 3.2vw, 18px);
  letter-spacing: 0.12em;
  color: #fff;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.25);
}
.result__status:empty { display: none; }
.result.is-slop  .result__status { color: var(--slop);  text-shadow: 0 0 14px rgba(255, 24, 24, 0.55); }
.result.is-mid   .result__status { color: var(--warn);  text-shadow: 0 0 14px rgba(255, 184, 0, 0.55); }
.result.is-based .result__status { color: var(--based); text-shadow: 0 0 14px rgba(0, 209, 102, 0.55); }

/* Bullets */
.result__bullets {
  list-style: none;
  margin: 0;
  padding: 4px 0 0;
  display: flex; flex-direction: column;
  gap: 6px;
  font-family: var(--hand);
  font-size: clamp(15px, 3vw, 19px);
  color: #fff;
}
.result__bullets li {
  position: relative;
  padding-left: 1.4em;
  line-height: 1.35;
}
.result__bullets li::before {
  content: "•";
  position: absolute; left: 0; top: -0.05em;
  font-size: 1.6em; line-height: 1;
  color: var(--slop);
  text-shadow: 0 0 8px rgba(255, 24, 24, 0.6);
}
.result__bullets li.good::before { color: var(--based); text-shadow: 0 0 8px rgba(0, 209, 102, 0.6); }
.result__bullets li.warn::before { color: var(--warn);  text-shadow: 0 0 8px rgba(255, 184, 0, 0.6); }

/* Restaurant-only: ORDER THIS / AVOID / SECRET MENU blocks */
.result__orders {
  display: flex; flex-direction: column;
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
}
/* Honor the [hidden] attribute (display:flex above would otherwise win). */
.result__orders[hidden],
[hidden] { display: none !important; }
.order {
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.02);
}
.order__lbl {
  font-family: var(--display);
  font-size: clamp(11px, 2.4vw, 13px);
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}
.order__txt {
  font-family: var(--hand);
  font-size: clamp(15px, 3vw, 19px);
  line-height: 1.3;
  color: #fff;
}
.order--good { border-color: rgba(0, 209, 102, 0.6); box-shadow: 0 0 14px rgba(0, 209, 102, 0.18) inset; }
.order--good .order__lbl { color: var(--based); text-shadow: 0 0 8px rgba(0, 209, 102, 0.5); }
.order--bad  { border-color: rgba(255, 24, 24, 0.6);  box-shadow: 0 0 14px rgba(255, 24, 24, 0.18) inset; }
.order--bad  .order__lbl { color: var(--slop);  text-shadow: 0 0 8px rgba(255, 24, 24, 0.5); }
.order--secret { border-color: rgba(255, 184, 0, 0.6); border-style: dashed; }
.order--secret .order__lbl { color: var(--warn); text-shadow: 0 0 8px rgba(255, 184, 0, 0.5); }

/* Side Effects block — the punchline. Cyan/neon to differentiate from
   the green/red/yellow recommendation blocks (it's a vibe call, not
   advice). Solid border + brighter shadow so the joke pops. */
.order--side {
  border-color: rgba(0, 229, 255, 0.65);
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.2) inset;
  background: rgba(0, 229, 255, 0.04);
}
.order--side .order__lbl { color: var(--neon); text-shadow: 0 0 10px rgba(0, 229, 255, 0.55); }

/* Bonus Ingredients button + dock (mirrors map Menu pattern) */
.result__action-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 12px 0 10px;
}
.result__action-row[hidden] { display: none !important; }
.result__bonus-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 16px;
  border: 2px solid #000;
  border-radius: 10px;
  font-family: var(--display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.result__bonus-btn--ingredients {
  background: linear-gradient(180deg, #2a1d3d, #1a1228);
  color: #fff;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.5);
}
.result__bonus-btn--ingredients::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(110deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  transform: skewX(-18deg);
  animation: bonusBtnShimmer 3.4s ease-in-out infinite;
}
@keyframes bonusBtnShimmer {
  0%, 65% { left: -60%; }
  100% { left: 130%; }
}
.result__bonus-btn--ingredients:hover { filter: brightness(1.12); }
.result__bonus-btn--ingredients.is-active {
  background: linear-gradient(180deg, #3d2a5c, #2a1d3d);
  box-shadow: inset 0 0 0 2px var(--neon), 3px 3px 0 rgba(0, 0, 0, 0.5);
}
.result__bonus-btn--ingredients.is-loading {
  opacity: 0.85;
  cursor: wait;
}
.result__bonus-btn--menu {
  background: linear-gradient(180deg, #1a3d22, #0f2816);
  color: #fff;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.5);
}
.result__bonus-btn--menu::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(110deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  transform: skewX(-18deg);
  animation: bonusBtnShimmer 3.4s ease-in-out infinite;
}
.result__bonus-btn--menu:hover { filter: brightness(1.12); }
.result__bonus-btn--menu.is-active {
  background: linear-gradient(180deg, #2a5c34, #1a3d22);
  box-shadow: inset 0 0 0 2px var(--neon), 3px 3px 0 rgba(0, 0, 0, 0.5);
}
.result__bonus-btn--menu.is-loading {
  opacity: 0.85;
  cursor: wait;
}
.result__bonus-btn--menu .result__bonus-label {
  font-size: 11px;
  letter-spacing: 0.04em;
}
.result__bonus-tag {
  font-size: 9px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(57, 255, 20, 0.15);
  color: var(--neon);
  letter-spacing: 0.08em;
}
.result__bonus-dock {
  margin: 0 0 12px;
  padding: 12px 14px;
  border: 2px solid #000;
  border-radius: 12px;
  background: #fff;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.35);
}
.result__bonus-dock[hidden] { display: none !important; }
.result__bonus-dock-head {
  margin: 0 0 10px;
  font-family: var(--display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #111;
}
.result__bonus-dock-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-height: 72px;
  justify-content: center;
  color: #555;
  font-size: 12px;
}
.result__bonus-dock-loading[hidden] { display: none !important; }
.result__bonus-dock-empty {
  margin: 0;
  padding: 12px 4px;
  font-family: var(--body, sans-serif);
  font-size: clamp(12px, 2.4vw, 14px);
  line-height: 1.4;
  color: rgba(0, 0, 0, 0.6);
}
.result__bonus-dock-empty[hidden] { display: none !important; }
.result__ingredients-note[hidden] { display: none !important; }
.result__ingredients-list[hidden] { display: none !important; }
.result__bonus-dock-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid #ddd;
  border-top-color: #8a5a00;
  border-radius: 50%;
  animation: bonusDockSpin 0.8s linear infinite;
}
@keyframes bonusDockSpin { to { transform: rotate(360deg); } }

/* What-to-order dock — must follow base .result__bonus-dock (white) rules */
.result__bonus-dock.result__bonus-dock--menu {
  background: rgba(0, 0, 0, 0.55);
  border-color: rgba(57, 255, 20, 0.45);
  box-shadow: 0 0 20px rgba(57, 255, 20, 0.12);
}
.result__bonus-dock.result__bonus-dock--menu .result__bonus-dock-head {
  color: var(--based);
}
.result__bonus-dock.result__bonus-dock--menu.is-fetching .result__bonus-dock-head {
  color: var(--warn);
}
.result__bonus-dock.result__bonus-dock--menu .result__bonus-dock-loading {
  color: rgba(255, 255, 255, 0.9);
}
.result__bonus-dock.result__bonus-dock--menu .result__bonus-dock-spinner {
  border-color: rgba(255, 255, 255, 0.12);
  border-top-color: var(--based);
  border-right-color: var(--slop);
}
.result__bonus-dock.result__bonus-dock--menu .result__bonus-dock-empty {
  color: rgba(255, 255, 255, 0.75);
}
.result__bonus-dock--menu .result__menu {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  border-top: none;
}
.result__bonus-dock--menu .result__menu .order {
  background: rgba(255, 255, 255, 0.04);
}
.result__bonus-dock--menu .result__menu .order__txt {
  color: rgba(255, 255, 255, 0.88);
}
.result__bonus-dock--menu .result__menu .order__txt strong {
  color: #fff;
}
.result__menu-headline {
  margin: 0 0 10px;
  font-family: var(--hand);
  font-size: clamp(16px, 3.2vw, 20px);
  line-height: 1.3;
  color: #fff;
}
.result__menu-tip {
  margin: 10px 0 0;
  font-family: var(--hand);
  font-size: 15px;
  font-style: italic;
  color: rgba(255, 255, 255, 0.7);
}
.result__panel-wrap.is-menu-open::after {
  display: none;
}
.result__panel-wrap.is-menu-open .result__scroll-hint {
  opacity: 0;
  pointer-events: none;
}

/* Ingredient autopsy list */
.result__ingredients-note {
  margin: 0 0 10px;
  font-family: var(--body, sans-serif);
  font-size: clamp(9px, 1.9vw, 11px);
  font-style: italic;
  letter-spacing: 0.02em;
  color: rgba(0, 0, 0, 0.55);
}
.result__bonus-dock .result__ingredients-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.result__bonus-dock .ingredient {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 8px 11px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-left-width: 3px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.03);
}
.result__bonus-dock .ingredient__icon { font-size: 1em; line-height: 1.35; flex: 0 0 auto; }
.result__bonus-dock .ingredient__body { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.result__bonus-dock .ingredient__name {
  font-family: var(--display);
  font-size: clamp(12px, 2.5vw, 14px);
  letter-spacing: 0.02em;
  color: #111;
}
.result__bonus-dock .ingredient__note {
  font-family: var(--hand);
  font-size: clamp(13px, 2.7vw, 16px);
  line-height: 1.25;
  color: rgba(0, 0, 0, 0.65);
}
.result__bonus-dock .ingredient--good { border-left-color: var(--based); }
.result__bonus-dock .ingredient--good .ingredient__name { color: #0a7a3a; }
.result__bonus-dock .ingredient--warn { border-left-color: var(--warn); }
.result__bonus-dock .ingredient--warn .ingredient__name { color: #8a5a00; }
.result__bonus-dock .ingredient--bad  { border-left-color: var(--slop); }
.result__bonus-dock .ingredient--bad  .ingredient__name { color: #b01010; }

/* "Wrong category? Rescan as restaurant" rescue link. Sits directly
   above the council bar so it stays visible without scrolling past votes. */
.misclassify {
  margin: 12px 0 0;
  padding-top: 8px;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
  text-align: center;
  flex-shrink: 0;
}
.misclassify[hidden] { display: none !important; }
.misclassify__line {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.55);
}
.misclassify__btn {
  background: transparent;
  border: 0;
  padding: 6px 4px;
  color: rgba(255, 255, 255, 0.7);
  font: inherit;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 3px;
  cursor: pointer;
  transition: color 120ms ease;
}
.misclassify__btn:hover,
.misclassify__btn:focus-visible {
  color: var(--warn);
  text-decoration-style: solid;
  outline: none;
}
/* Intro text ("Wrong category? Rescan as:") and " · " separators
   between the multiple rescue buttons. Quieter than the buttons so
   the tap targets stay the visual focus. */
.misclassify__intro {
  color: rgba(255, 255, 255, 0.45);
  margin-right: 2px;
}
.misclassify__sep {
  color: rgba(255, 255, 255, 0.25);
  user-select: none;
}

/* Share-card preview modal */
.card-modal {
  position: fixed; inset: 0; z-index: 1000;
  display: none;
  align-items: center; justify-content: center;
  padding: 16px;
}
.card-modal.is-open { display: flex; }
.card-modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.card-modal__inner {
  position: relative; z-index: 1;
  width: 100%; max-width: 720px;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  display: flex; flex-direction: column; gap: 12px;
  max-height: 92dvh;
  overflow-y: auto;
}
.card-modal__close {
  position: absolute; top: 8px; right: 10px;
  font-size: 22px; color: var(--muted);
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
}
.card-modal__close:hover { color: #fff; }
.card-modal img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
  background: #000;
  opacity: 0;
  transition: opacity 0.45s ease;
}
.card-modal img.is-visible {
  opacity: 1;
}

/* Floating dock — share generation progress (non-blocking, full-width bar) */
.share-gen-dock {
  position: fixed;
  left: 50%;
  bottom: max(12px, env(safe-area-inset-bottom));
  z-index: 120;
  width: min(420px, calc(100vw - 24px));
  transform: translateX(-50%);
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
  filter: drop-shadow(0 8px 32px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 24px rgba(255, 184, 0, 0.45));
}
.share-gen-dock[hidden] { display: none !important; }
.share-gen-dock.is-active {
  pointer-events: auto;
  animation: share-gen-dock-in 0.3s cubic-bezier(0.22, 0.85, 0.28, 1) both;
}
.share-gen-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 12px 12px 14px;
  border-radius: 14px;
  border: 2px solid #c98a00;
  background: linear-gradient(180deg, #fff8d6 0%, #ffeaa0 48%, #ffd96a 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.65) inset,
    0 14px 40px rgba(0, 0, 0, 0.45),
    0 0 28px rgba(255, 184, 0, 0.55);
  animation: share-gen-pulse 2.2s ease-in-out infinite;
}
.share-gen-notice[hidden] { display: none !important; }
.share-gen-notice__text {
  flex: 1 1 auto;
  margin: 0;
  font-family: var(--display);
  font-size: 12px;
  line-height: 1.45;
  letter-spacing: 0.04em;
  color: #2a1800;
  text-shadow: none;
}
.share-gen-notice__close {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border: 1px solid rgba(120, 70, 0, 0.35);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  color: #5a3800;
  font-size: 11px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}
.share-gen-notice__close:hover {
  color: #1a0f00;
  background: #fff;
  border-color: #c98a00;
}
.share-gen-dock__loader {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  width: 100%;
  margin: 0;
  padding: 12px 38px 12px 14px;
  border-radius: 16px;
  border: 2px solid #c98a00;
  background: linear-gradient(180deg, #fff9dc 0%, #ffefb8 45%, #ffe27a 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.7) inset,
    0 16px 44px rgba(0, 0, 0, 0.5),
    0 0 32px rgba(255, 184, 0, 0.5);
  text-align: left;
  animation: share-gen-pulse 2.2s ease-in-out infinite;
}
.share-gen-dock__badge {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5a3800;
  line-height: 1.35;
}
.share-gen-dock__badge-sep {
  margin: 0 0.35em;
  opacity: 0.55;
}
.share-gen-dock__scan-link {
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: none;
  color: #1a4a8a;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  cursor: pointer;
}
.share-gen-dock__scan-link:hover,
.share-gen-dock__scan-link:focus-visible {
  color: #0d2f66;
  text-decoration-thickness: 2px;
}
.share-gen-dock__scan-link:focus-visible {
  outline: 2px solid #1a4a8a;
  outline-offset: 2px;
  border-radius: 2px;
}
.share-gen-dock__scan-link[hidden] { display: none !important; }
.share-gen-dock__loader[hidden] { display: none !important; }
.share-gen-dock__loader:not([hidden]) { display: flex; }
.share-gen-dock__body {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 10px;
  width: 100%;
  min-width: 0;
}
.share-gen-dock__live {
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid #c98a00;
  background: #fffdf2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28) inset, 0 1px 4px rgba(0, 0, 0, 0.18);
  image-rendering: pixelated;
  animation: share-gen-live-in 0.25s ease-out;
}
.share-gen-dock__live[hidden] { display: none !important; }
@keyframes share-gen-live-in {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}
.share-gen-dock__meta {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  width: 100%;
  max-width: none;
}
.share-gen-dock__meta .meme-loader__flavor {
  margin: 0;
  max-width: none;
  font-size: clamp(14px, 3.5vw, 17px);
  line-height: 1.25;
  text-align: left;
  white-space: normal;
  color: #1a1000;
  text-shadow: none;
  animation: none;
}
.share-gen-dock__meta .meme-loader__flavor.is-reopen-scan {
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: rgba(26, 74, 138, 0.35);
  text-underline-offset: 3px;
}
.share-gen-dock__meta .meme-loader__flavor.is-reopen-scan:hover,
.share-gen-dock__meta .meme-loader__flavor.is-reopen-scan:focus-visible {
  color: #1a4a8a;
  text-decoration-color: #1a4a8a;
}
.share-gen-dock__meta .meme-loader__flavor.is-reopen-scan:focus-visible {
  outline: 2px solid #1a4a8a;
  outline-offset: 2px;
  border-radius: 2px;
}
.share-gen-dock__meta .meme-loader__progress {
  width: 100%;
  height: 10px;
  margin: 0;
  border: 1px solid rgba(120, 70, 0, 0.35);
  background: rgba(255, 255, 255, 0.55);
  box-shadow: inset 0 1px 3px rgba(120, 70, 0, 0.15);
}
.share-gen-dock__meta .meme-loader__bar {
  background: linear-gradient(90deg, #e69500, #ff6a00);
  box-shadow: 0 0 8px rgba(230, 120, 0, 0.45);
}
.share-gen-dock__meta .meme-loader__sub {
  margin: 0;
  max-width: none;
  font-size: 11px;
  text-align: left;
  color: #4a3000;
}
.share-gen-dock__cancel {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 26px;
  height: 26px;
  border: 1px solid rgba(120, 70, 0, 0.35);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  color: #5a3800;
  font-size: 11px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}
.share-gen-dock__cancel:hover {
  color: #1a0f00;
  background: #fff;
  border-color: #c98a00;
}
@keyframes share-gen-pulse {
  0%, 100% {
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.65) inset,
      0 14px 40px rgba(0, 0, 0, 0.45),
      0 0 22px rgba(255, 184, 0, 0.4);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.8) inset,
      0 16px 44px rgba(0, 0, 0, 0.5),
      0 0 40px rgba(255, 184, 0, 0.65);
  }
}
@keyframes share-gen-dock-in {
  from { opacity: 0; transform: translateX(-50%) translateY(16px) scale(0.97); }
  to { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
}
@media (max-width: 520px) {
  .share-gen-dock {
    width: calc(100vw - 20px);
  }
}

.card-modal__loading {
  margin: 0;
  padding: 8px 0 12px;
  min-height: 0;
  width: 100%;
  gap: 12px;
}
.card-modal.is-loading .card-modal__loading { display: flex; }
.card-modal.is-loading img,
.card-modal.is-loading .card-modal__actions,
.card-modal.is-loading .card-modal__url-lbl,
.card-modal.is-loading .card-modal__url-row,
.card-modal.is-loading .card-modal__hint { display: none !important; }

/* Progressive paint-frame preview while share image generates */
.paint-frame-preview {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}
.paint-frame-preview__shell {
  position: relative;
  aspect-ratio: 1080 / 1350;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  gap: 8px;
  padding: 10px 10px 8px;
  border-radius: 12px;
  border: 2px solid var(--slop);
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(255, 24, 24, 0.2), transparent 58%),
    linear-gradient(180deg, #0a0000, #050505 52%, #0a0500);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65);
  overflow: hidden;
  opacity: 0;
  transform: scale(0.985);
}
.paint-frame-preview.is-rendering .paint-frame-preview__shell {
  animation: paint-frame-shell-in 0.55s ease forwards, paint-frame-shell-breathe 2.4s ease-in-out 1s infinite;
}
.paint-frame-preview.is-drawing .paint-frame-preview__shell {
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(255, 255, 255, 0.04);
}
.paint-frame-preview.is-polishing .paint-frame-preview__shell {
  animation: paint-frame-shell-in 0.55s ease forwards, paint-frame-shell-breathe 1.6s ease-in-out infinite;
}
.paint-frame-preview.is-slop .paint-frame-preview__shell { border-color: var(--slop); }
.paint-frame-preview.is-mid .paint-frame-preview__shell { border-color: var(--warn); }
.paint-frame-preview.is-based .paint-frame-preview__shell { border-color: var(--based); }
.paint-frame-preview__scanlines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: repeating-linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.025) 0,
    rgba(255, 255, 255, 0.025) 1px,
    transparent 1px,
    transparent 4px
  );
}
.paint-frame-preview.is-rendering .paint-frame-preview__scanlines {
  animation: paint-frame-fade-in 0.4s ease 0.15s forwards;
}
.paint-frame-preview__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(60% 55% at 50% 42%, rgba(255, 24, 24, 0.16), transparent 70%);
}
.paint-frame-preview.is-mid .paint-frame-preview__glow {
  background: radial-gradient(60% 55% at 50% 42%, rgba(255, 184, 0, 0.14), transparent 70%);
}
.paint-frame-preview.is-based .paint-frame-preview__glow {
  background: radial-gradient(60% 55% at 50% 42%, rgba(0, 209, 102, 0.16), transparent 70%);
}
.paint-frame-preview.is-rendering .paint-frame-preview__glow {
  animation: paint-frame-fade-in 0.6s ease 0.2s forwards, paint-frame-glow-pulse 2.8s ease-in-out 1.2s infinite;
}
.paint-frame-preview__wojak {
  position: absolute;
  z-index: 2;
  width: 52px;
  height: auto;
  opacity: 0;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.45));
  pointer-events: none;
}
.paint-frame-preview__wojak--tl {
  top: 8%;
  left: -6px;
  transform: rotate(-12deg) scale(0.85);
}
.paint-frame-preview__wojak--tr {
  top: 7%;
  right: -4px;
  transform: rotate(10deg) scale(0.82);
}
.paint-frame-preview.is-rendering .paint-frame-preview__wojak--tl {
  animation: paint-frame-wojak-in 0.55s ease 1.8s forwards, paint-frame-wojak-bob-tl 2.6s ease-in-out 2.4s infinite;
}
.paint-frame-preview.is-rendering .paint-frame-preview__wojak--tr {
  animation: paint-frame-wojak-in 0.55s ease 2.4s forwards, paint-frame-wojak-bob-tr 2.9s ease-in-out 3s infinite;
}
.paint-frame-preview.is-drawing .paint-frame-preview__wojak--tl,
.paint-frame-preview.is-drawing .paint-frame-preview__wojak--tr {
  opacity: 1;
}
.paint-frame-preview__title {
  position: relative;
  z-index: 1;
  width: min(72%, 280px);
  margin: 2px auto 0;
  opacity: 0;
  filter: drop-shadow(0 0 14px rgba(255, 24, 24, 0.45));
}
.paint-frame-preview.is-rendering .paint-frame-preview__title {
  animation: paint-frame-fade-in 0.45s ease 0.35s forwards;
}
.paint-frame-preview__panel {
  position: relative;
  z-index: 1;
  min-height: 0;
  margin: 0 4px;
  border-radius: 10px;
  border: 2px solid rgba(255, 24, 24, 0.55);
  background: #fff;
  overflow: hidden;
  clip-path: inset(100% 0 0 0 round 10px);
}
.paint-frame-preview.is-slop .paint-frame-preview__panel { border-color: rgba(255, 24, 24, 0.55); }
.paint-frame-preview.is-mid .paint-frame-preview__panel { border-color: rgba(255, 184, 0, 0.55); }
.paint-frame-preview.is-based .paint-frame-preview__panel { border-color: rgba(0, 209, 102, 0.55); }
.paint-frame-preview.is-rendering .paint-frame-preview__panel {
  animation: paint-frame-panel-reveal 1.1s cubic-bezier(0.22, 0.85, 0.28, 1) 0.5s forwards;
}
.paint-frame-preview.is-drawing .paint-frame-preview__panel {
  animation:
    paint-frame-panel-reveal 1.1s cubic-bezier(0.22, 0.85, 0.28, 1) 0.5s forwards,
    paint-frame-panel-pulse 2.2s ease-in-out infinite;
}
.paint-frame-preview.is-framing .paint-frame-preview__panel::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  border: 2px solid transparent;
  pointer-events: none;
  animation: paint-frame-border-trace 2.4s linear infinite;
}
.paint-frame-preview.is-slop.is-framing .paint-frame-preview__panel::after { border-color: rgba(255, 24, 24, 0.55); }
.paint-frame-preview.is-mid.is-framing .paint-frame-preview__panel::after { border-color: rgba(255, 184, 0, 0.55); }
.paint-frame-preview.is-based.is-framing .paint-frame-preview__panel::after { border-color: rgba(0, 209, 102, 0.55); }
.paint-frame-preview__sketch {
  position: absolute;
  inset: 0;
  opacity: 0;
}
.paint-frame-preview.is-rendering .paint-frame-preview__sketch {
  animation: paint-frame-fade-in 0.35s ease 1.15s forwards;
}
.paint-frame-preview__fig {
  position: absolute;
  left: 14%;
  bottom: 16%;
  width: 34%;
  height: 46%;
  border: 3px solid rgba(0, 0, 0, 0.75);
  border-radius: 46% 46% 38% 38%;
  transform: scale(0.6);
  transform-origin: center bottom;
  opacity: 0;
}
.paint-frame-preview__fig::before {
  content: "";
  position: absolute;
  top: 18%;
  left: 22%;
  width: 18%;
  height: 10%;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.75);
  box-shadow: 42% 0 0 rgba(0, 0, 0, 0.75);
}
.paint-frame-preview.is-rendering .paint-frame-preview__fig {
  animation: paint-frame-fig-in 0.8s ease 1.5s forwards;
}
.paint-frame-preview.is-drawing .paint-frame-preview__fig {
  animation: paint-frame-fig-in 0.8s ease 1.5s forwards, paint-frame-fig-wiggle 3.2s ease-in-out infinite;
}
.paint-frame-preview__blob {
  position: absolute;
  border-radius: 42% 58% 52% 48%;
  opacity: 0;
  transform: scale(0.4);
}
.paint-frame-preview__blob--1 {
  top: 22%;
  right: 12%;
  width: 28%;
  height: 22%;
  background: rgba(255, 184, 0, 0.35);
}
.paint-frame-preview__blob--2 {
  top: 48%;
  right: 18%;
  width: 22%;
  height: 18%;
  background: rgba(0, 209, 102, 0.28);
}
.paint-frame-preview__blob--3 {
  bottom: 14%;
  left: 46%;
  width: 24%;
  height: 16%;
  background: rgba(255, 24, 24, 0.22);
}
.paint-frame-preview.is-rendering .paint-frame-preview__blob--1 {
  animation: paint-frame-blob-in 0.55s ease 2.2s forwards;
}
.paint-frame-preview.is-rendering .paint-frame-preview__blob--2 {
  animation: paint-frame-blob-in 0.55s ease 3.1s forwards;
}
.paint-frame-preview.is-shading .paint-frame-preview__blob--3 {
  animation: paint-frame-blob-in 0.55s ease forwards, paint-frame-blob-pulse 2.4s ease-in-out 0.6s infinite;
}
.paint-frame-preview.is-shading .paint-frame-preview__blob--1,
.paint-frame-preview.is-shading .paint-frame-preview__blob--2 {
  animation: paint-frame-blob-pulse 2.8s ease-in-out infinite;
}
.paint-frame-preview__stroke {
  position: absolute;
  display: block;
  height: 3px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.72);
  transform-origin: left center;
  transform: scaleX(0);
  opacity: 0.85;
}
.paint-frame-preview__stroke--1 { top: 14%; left: 52%; width: 34%; transform-origin: left center; }
.paint-frame-preview__stroke--2 { top: 24%; left: 54%; width: 28%; height: 2px; }
.paint-frame-preview__stroke--3 { top: 34%; left: 50%; width: 38%; }
.paint-frame-preview__stroke--4 { top: 44%; left: 48%; width: 30%; height: 4px; }
.paint-frame-preview__stroke--5 { top: 58%; left: 52%; width: 26%; height: 2px; opacity: 0; }
.paint-frame-preview__stroke--6 { top: 70%; left: 50%; width: 32%; height: 3px; opacity: 0; }
.paint-frame-preview.is-rendering .paint-frame-preview__stroke--1 { animation: paint-frame-stroke 0.65s ease 1.35s forwards; }
.paint-frame-preview.is-rendering .paint-frame-preview__stroke--2 { animation: paint-frame-stroke 0.7s ease 1.75s forwards; }
.paint-frame-preview.is-rendering .paint-frame-preview__stroke--3 { animation: paint-frame-stroke 0.6s ease 2.15s forwards; }
.paint-frame-preview.is-rendering .paint-frame-preview__stroke--4 { animation: paint-frame-stroke 0.75s ease 2.55s forwards; }
.paint-frame-preview.is-drawing .paint-frame-preview__stroke--5 {
  opacity: 0.85;
  animation: paint-frame-stroke-loop 2.8s ease-in-out infinite;
}
.paint-frame-preview.is-drawing .paint-frame-preview__stroke--6 {
  opacity: 0.85;
  animation: paint-frame-stroke-loop 3.2s ease-in-out 0.6s infinite;
}
.paint-frame-preview__scribble {
  position: absolute;
  width: 18%;
  height: 18%;
  border: 2px solid rgba(0, 0, 0, 0.55);
  border-radius: 40% 60% 55% 45%;
  opacity: 0;
  transform: scale(0.5) rotate(-8deg);
}
.paint-frame-preview__scribble--1 { top: 18%; right: 8%; }
.paint-frame-preview__scribble--2 { bottom: 22%; right: 14%; width: 14%; height: 14%; }
.paint-frame-preview__scribble--3 { bottom: 30%; left: 58%; width: 12%; height: 12%; border-style: dashed; }
.paint-frame-preview.is-drawing .paint-frame-preview__scribble--1 {
  animation: paint-frame-scribble-in 0.45s ease forwards, paint-frame-scribble-spin 4s linear infinite;
}
.paint-frame-preview.is-shading .paint-frame-preview__scribble--2 {
  animation: paint-frame-scribble-in 0.45s ease forwards, paint-frame-scribble-spin 5s linear 0.5s infinite reverse;
}
.paint-frame-preview.is-shading .paint-frame-preview__scribble--3 {
  animation: paint-frame-scribble-in 0.45s ease forwards, paint-frame-scribble-spin 3.6s linear infinite;
}
.paint-frame-preview__pixel {
  position: absolute;
  width: 5px;
  height: 5px;
  background: rgba(0, 0, 0, 0.65);
  opacity: 0;
}
.paint-frame-preview__pixel--1 { top: 20%; left: 62%; }
.paint-frame-preview__pixel--2 { top: 38%; left: 72%; }
.paint-frame-preview__pixel--3 { top: 52%; left: 66%; }
.paint-frame-preview__pixel--4 { top: 64%; left: 74%; }
.paint-frame-preview.is-drawing .paint-frame-preview__pixel--1 { animation: paint-frame-pixel 1.4s ease infinite; }
.paint-frame-preview.is-drawing .paint-frame-preview__pixel--2 { animation: paint-frame-pixel 1.4s ease 0.35s infinite; }
.paint-frame-preview.is-drawing .paint-frame-preview__pixel--3 { animation: paint-frame-pixel 1.4s ease 0.7s infinite; }
.paint-frame-preview.is-drawing .paint-frame-preview__pixel--4 { animation: paint-frame-pixel 1.4s ease 1.05s infinite; }
.paint-frame-preview__grain {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  background-image:
    radial-gradient(rgba(0, 0, 0, 0.08) 0.6px, transparent 0.6px),
    radial-gradient(rgba(0, 0, 0, 0.05) 0.6px, transparent 0.6px);
  background-size: 7px 7px, 11px 11px;
  background-position: 0 0, 4px 4px;
}
.paint-frame-preview.is-drawing .paint-frame-preview__grain {
  opacity: 0.35;
  animation: paint-frame-grain 0.45s steps(2) infinite;
}
.paint-frame-preview__cursor {
  position: absolute;
  width: 10px;
  height: 14px;
  opacity: 0;
  background:
    linear-gradient(135deg, #fff 0 45%, #111 46% 100%);
  clip-path: polygon(0 0, 0 100%, 100% 50%);
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.35));
}
.paint-frame-preview.is-drawing .paint-frame-preview__cursor {
  opacity: 1;
  animation: paint-frame-cursor 4.5s ease-in-out infinite;
}
.paint-frame-preview__beam {
  position: absolute;
  left: 0;
  right: 0;
  top: -18%;
  height: 28%;
  opacity: 0;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(0, 209, 102, 0.08),
    rgba(255, 255, 255, 0.35),
    rgba(0, 209, 102, 0.08),
    transparent
  );
}
.paint-frame-preview__beam--2 {
  height: 18%;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(255, 24, 24, 0.06),
    rgba(255, 255, 255, 0.22),
    transparent
  );
  animation-delay: 1.4s;
}
.paint-frame-preview.is-rendering .paint-frame-preview__beam {
  animation: paint-frame-beam 2.4s linear 2.8s infinite;
}
.paint-frame-preview.is-drawing .paint-frame-preview__beam--2 {
  animation: paint-frame-beam 3.1s linear 0.8s infinite;
}
.paint-frame-preview.is-polishing .paint-frame-preview__beam {
  animation: paint-frame-beam 1.8s linear infinite;
}
.paint-frame-preview.is-polishing .paint-frame-preview__beam--2 {
  animation: paint-frame-beam 2.2s linear 0.5s infinite;
}
.paint-frame-preview__footer {
  position: relative;
  z-index: 1;
  margin: 0 8px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 2px solid var(--slop);
  background: rgba(0, 0, 0, 0.78);
  color: var(--slop);
  font-family: var(--drip);
  font-size: clamp(14px, 3.8vw, 22px);
  letter-spacing: 0.08em;
  text-align: center;
  opacity: 0;
  transform: translateY(8px);
}
.paint-frame-preview.is-mid .paint-frame-preview__footer {
  border-color: var(--warn);
  color: var(--warn);
}
.paint-frame-preview.is-based .paint-frame-preview__footer {
  border-color: var(--based);
  color: var(--based);
}
.paint-frame-preview.is-rendering .paint-frame-preview__footer {
  animation: paint-frame-footer-in 0.55s ease 3.6s forwards;
}
.paint-frame-preview.is-framing .paint-frame-preview__footer {
  animation: paint-frame-footer-pulse 1.4s ease-in-out infinite;
}
.paint-frame-preview.is-polishing .paint-frame-preview__footer {
  animation: paint-frame-footer-pulse 0.9s ease-in-out infinite;
}
.paint-frame-preview__phase {
  margin: 0;
  font-family: var(--hand);
  font-size: clamp(14px, 3.2vw, 17px);
  font-weight: 700;
  color: var(--warn);
  letter-spacing: 0.02em;
  animation: meme-loader-pulse 1.35s ease-in-out infinite;
}
.result__paint-slot .paint-frame-preview__phase {
  color: #555;
  font-size: clamp(12px, 2.8vw, 14px);
}
.paint-frame-preview__tagline {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  color: #666;
  opacity: 0;
}
.paint-frame-preview.is-rendering .paint-frame-preview__tagline {
  animation: paint-frame-fade-in 0.45s ease 4s forwards;
}
@keyframes paint-frame-shell-in {
  to { opacity: 1; transform: scale(1); }
}
@keyframes paint-frame-fade-in {
  to { opacity: 1; }
}
@keyframes paint-frame-panel-reveal {
  to { clip-path: inset(0 0 0 0 round 10px); }
}
@keyframes paint-frame-stroke {
  to { transform: scaleX(1); }
}
@keyframes paint-frame-stroke-loop {
  0% { transform: scaleX(0); opacity: 0.2; }
  35% { transform: scaleX(1); opacity: 0.9; }
  70% { transform: scaleX(1); opacity: 0.9; }
  100% { transform: scaleX(0); opacity: 0.2; }
}
@keyframes paint-frame-beam {
  0% { top: -18%; opacity: 0; }
  8% { opacity: 0.85; }
  92% { opacity: 0.85; }
  100% { top: 100%; opacity: 0; }
}
@keyframes paint-frame-footer-in {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes paint-frame-footer-pulse {
  0%, 100% { filter: brightness(1); box-shadow: 0 0 0 rgba(255, 255, 255, 0); }
  50% { filter: brightness(1.14); box-shadow: 0 0 18px rgba(255, 255, 255, 0.08); }
}
@keyframes paint-frame-shell-breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.008); }
}
@keyframes paint-frame-glow-pulse {
  0%, 100% { opacity: 1; filter: brightness(1); }
  50% { opacity: 0.82; filter: brightness(1.15); }
}
@keyframes paint-frame-wojak-in {
  to { opacity: 0.42; }
}
@keyframes paint-frame-wojak-bob-tl {
  0%, 100% { transform: rotate(-12deg) scale(0.85) translateY(0); }
  50% { transform: rotate(-12deg) scale(0.85) translateY(-3px); }
}
@keyframes paint-frame-wojak-bob-tr {
  0%, 100% { transform: rotate(10deg) scale(0.82) translateY(0); }
  50% { transform: rotate(10deg) scale(0.82) translateY(-3px); }
}
@keyframes paint-frame-panel-pulse {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.03); }
}
@keyframes paint-frame-border-trace {
  0% { clip-path: inset(0 100% 100% 0 round 10px); opacity: 0.9; }
  25% { clip-path: inset(0 0 100% 0 round 10px); }
  50% { clip-path: inset(0 0 0 100% round 10px); }
  75% { clip-path: inset(100% 0 0 0 round 10px); }
  100% { clip-path: inset(0 100% 100% 0 round 10px); opacity: 0.9; }
}
@keyframes paint-frame-fig-in {
  to { opacity: 1; transform: scale(1); }
}
@keyframes paint-frame-fig-wiggle {
  0%, 100% { transform: scale(1) rotate(0deg); }
  25% { transform: scale(1.02) rotate(-1deg); }
  75% { transform: scale(1.02) rotate(1deg); }
}
@keyframes paint-frame-blob-in {
  to { opacity: 1; transform: scale(1); }
}
@keyframes paint-frame-blob-pulse {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.06); opacity: 1; }
}
@keyframes paint-frame-scribble-in {
  to { opacity: 0.75; transform: scale(1) rotate(-8deg); }
}
@keyframes paint-frame-scribble-spin {
  to { transform: scale(1) rotate(352deg); }
}
@keyframes paint-frame-pixel {
  0%, 100% { opacity: 0; transform: scale(0.5); }
  40%, 60% { opacity: 1; transform: scale(1); }
}
@keyframes paint-frame-grain {
  0% { transform: translate(0, 0); }
  100% { transform: translate(-3px, 2px); }
}
@keyframes paint-frame-cursor {
  0% { top: 18%; left: 54%; }
  22% { top: 32%; left: 68%; }
  44% { top: 48%; left: 58%; }
  66% { top: 62%; left: 72%; }
  88% { top: 28%; left: 62%; }
  100% { top: 18%; left: 54%; }
}

/* Meme image generation loader (share modal + result panel) */
.meme-loader {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 12px 16px;
  text-align: center;
  width: 100%;
}
.meme-loader__meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 420px;
}
.meme-loader[hidden] { display: none !important; }
.meme-loader:not([hidden]) { display: flex; }
.meme-loader__spinner {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 5px solid rgba(255, 255, 255, 0.12);
  border-top-color: var(--based);
  border-right-color: var(--warn);
  animation: meme-loader-spin 0.8s linear infinite;
  box-shadow:
    0 0 0 2px rgba(0, 0, 0, 0.35),
    0 0 24px rgba(0, 209, 102, 0.35);
}
.result__paint-slot .meme-loader__spinner {
  border-color: rgba(0, 0, 0, 0.08);
  border-top-color: var(--based);
  border-right-color: var(--slop);
  box-shadow: 0 0 18px rgba(0, 209, 102, 0.25);
}
.meme-loader__headline {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(13px, 3vw, 16px);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.result__paint-slot .meme-loader__headline { color: #666; }
.meme-loader__flavor {
  margin: 0;
  max-width: 28ch;
  font-family: var(--hand);
  font-size: clamp(16px, 3.8vw, 22px);
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
  animation: meme-loader-pulse 1.35s ease-in-out infinite;
}
.result__paint-slot .meme-loader__flavor { color: #111; }
.meme-loader__sub {
  margin: 0;
  max-width: 26ch;
  font-family: var(--hand);
  font-size: clamp(13px, 2.8vw, 15px);
  line-height: 1.35;
  color: var(--muted);
}
.result__paint-slot .meme-loader__sub { color: #555; }
.meme-loader__progress {
  width: min(280px, 88%);
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}
.result__paint-slot .meme-loader__progress {
  background: rgba(0, 0, 0, 0.08);
}
.meme-loader__bar {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--based), var(--warn));
  transition: width 0.35s ease;
}
.result__paint-slot .meme-loader__bar {
  background: linear-gradient(90deg, var(--based), var(--slop));
}
@keyframes meme-loader-spin { to { transform: rotate(360deg); } }
@keyframes meme-loader-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}
.card-modal__url-lbl {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.card-modal__url-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: stretch;
}
.card-modal__url {
  flex: 1 1 180px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  line-height: 1.35;
}
.card-modal__url-row .btn {
  flex: 0 0 auto;
  white-space: nowrap;
}
.card-modal__actions {
  display: flex; gap: 10px;
  flex-wrap: wrap;
}
.card-modal__actions .btn { flex: 1 1 auto; text-align: center; }
.card-modal__hint {
  margin: 0;
  font-size: 12px;
  color: var(--muted-2);
  text-align: center;
  line-height: 1.4;
}

/* ========== COMMUNITY COUNCIL ========== */
.council {
  margin: 12px 0 0;
  margin-top: auto;
  padding: 12px 12px 14px;
  border: 1px dashed var(--border);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.25);
  flex-shrink: 0;
}
.council__counts {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 6px 10px;
  font-family: var(--display);
  font-size: clamp(11px, 2.4vw, 13px);
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 10px;
}
.council__count--wrong  { color: var(--slop); }
.council__count--based  { color: var(--based); }
.council__count--note   { color: var(--warn); }
.council__sep           { color: rgba(255, 255, 255, 0.3); }
.council__btns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  align-items: stretch;
}
.council__btn {
  min-width: 0;
  padding: 9px 10px;
  border: 2px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-family: var(--display);
  font-size: clamp(12px, 2.6vw, 14px);
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: transform .08s ease, border-color .15s ease, background .15s ease;
}
.council__btn:hover {
  transform: translateY(-1px);
}
.council__btn:active { transform: translateY(1px); }
.council__btn--wrong:hover { border-color: var(--slop);  background: rgba(255, 24, 24, 0.12); }
.council__btn--based:hover { border-color: var(--based); background: rgba(0, 209, 102, 0.12); }
.council__btn--note:hover  { border-color: var(--warn);  background: rgba(255, 184, 0, 0.12); }
.council__btn.is-active {
  background: rgba(255, 255, 255, 0.10);
  cursor: default;
}
.council__btn--wrong.is-active { border-color: var(--slop);  color: var(--slop); }
.council__btn--based.is-active { border-color: var(--based); color: var(--based); }
.council__btn--note.is-active  { border-color: var(--warn);  color: var(--warn); }
.council__msg {
  margin: 10px 0 0;
  text-align: center;
  font-family: var(--drip);
  font-size: clamp(13px, 3vw, 16px);
  color: var(--neon);
  text-shadow: 0 0 12px rgba(255, 24, 24, 0.5);
  animation: council-pop 0.4s ease;
}
.council__msg.is-deny  { color: var(--slop);  text-shadow: 0 0 14px rgba(255, 24, 24, 0.55); }
.council__msg.is-grant { color: var(--based); text-shadow: 0 0 14px rgba(0, 209, 102, 0.55); }
.council__msg.is-noted { color: var(--warn);  text-shadow: 0 0 14px rgba(255, 184, 0, 0.55); }
@keyframes council-pop {
  0%   { opacity: 0; transform: translateY(6px) scale(0.96); }
  100% { opacity: 1; transform: translateY(0)   scale(1); }
}

/* Council: compact row on phones */
@media (max-width: 520px) {
  .council {
    margin: 8px 0 2px;
    padding: 8px 8px 10px;
  }
  .council__counts {
    font-size: 10px;
    margin-bottom: 8px;
    gap: 4px 6px;
  }
  .council__btns {
    gap: 6px;
  }
  .council__btn {
    padding: 7px 6px;
    font-size: 11px;
    letter-spacing: 0.02em;
    border-radius: 8px;
    border-width: 1px;
  }
  .council__msg {
    margin: 8px 0 0;
    font-size: 12px;
  }
}
[hidden] { display: none !important; }

/* ========== WOJAK REACTION FACE ========== */
.result__reaction {
  position: absolute;
  top: 14px; left: 14px;
  width: clamp(72px, 16vw, 120px);
  height: auto;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.7));
  transition: transform 0.4s cubic-bezier(.2,.8,.2,1), opacity .3s;
  z-index: 2;
  pointer-events: none;
}
/* Chad has way more detail than the soyjak heads (and now ships
   with a "Zero lectures. Maximum kino." speech bubble) — give him
   room to flex. Lives on the RIGHT so the BASED CERTIFIED stamp can
   slam down on the left. */
.result__reaction.is-chad {
  top: -4px; left: auto; right: 0;
  width: clamp(140px, 30vw, 210px);
  filter: drop-shadow(0 6px 18px rgba(0, 209, 102, 0.55));
}
/* On narrow screens chad and the BASED CERTIFIED stamp crowd the
   "X% SLOP" headline. Just hide them — the score + verdict pill
   carry the message on phones. */
@media (max-width: 720px) {
  .result__reaction.is-chad,
  .result__stamp {
    display: none !important;
  }
  .result.is-based .result__score-main {
    padding-left: 0;
    padding-right: 0;
  }
}

.result__panel-body {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: min-content;
}
.result__reaction.is-pop {
  animation: reaction-pop 0.6s cubic-bezier(.2,.8,.2,1);
}
@keyframes reaction-pop {
  0%   { transform: scale(0.5) rotate(-20deg); opacity: 0; }
  60%  { transform: scale(1.15) rotate(8deg);  opacity: 1; }
  100% { transform: scale(1) rotate(-4deg); }
}

/* BASED CERTIFIED stamp — overlays the score panel on based results
   like a wet ink approval. */
.result__stamp {
  position: absolute;
  top: 28px; left: 16px; right: auto;
  width: clamp(85px, 20vw, 140px);
  height: auto;
  transform: rotate(-12deg);
  filter: drop-shadow(0 4px 14px rgba(0, 209, 102, 0.55));
  z-index: 3;
  pointer-events: none;
  opacity: 0.95;
  animation: stamp-slam 0.45s cubic-bezier(.3,1.6,.4,1);
}
@keyframes stamp-slam {
  0%   { transform: scale(1.8) rotate(-22deg); opacity: 0; }
  60%  { transform: scale(0.92) rotate(-8deg); opacity: 1; }
  100% { transform: scale(1) rotate(-12deg); opacity: 0.95; }
}

/* ========== COPY MEME CAPTION BUTTON ========== */
.result__copy {
  display: block;
  width: calc(100% - 28px);
  margin: 12px auto 4px;
  padding: 12px 16px;
  border: 2px dashed var(--neon);
  border-radius: 12px;
  background: rgba(255, 24, 24, 0.06);
  color: #fff;
  font-family: var(--display);
  font-size: clamp(13px, 3vw, 15px);
  font-weight: 800;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, transform .08s ease;
}
.result__copy:hover {
  background: rgba(255, 24, 24, 0.14);
  border-color: var(--slop);
  transform: translateY(-1px);
}
.result__copy:active { transform: translateY(1px); }
.result__copy.is-copied {
  border-color: var(--based);
  background: rgba(0, 209, 102, 0.14);
  color: var(--based);
}

/* ========== EXTRAS ROW (Copy Meme + Send to Friend) ========== */
.result__extras {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  width: calc(100% - 28px);
  margin: 12px auto 4px;
}
@media (min-width: 720px) {
  .result__extras {
    grid-template-columns: 1fr 1fr;
  }
  .result__extras .result__copy,
  .result__extras .result__friend {
    width: 100%;
    margin: 0;
  }
}
.result__extras .result__copy { width: 100%; margin: 0; }

/* "Send to a friend who needs to see this" — primary social-virality CTA */
.result__friend {
  display: block;
  width: 100%;
  padding: 12px 16px;
  border: 2px dashed var(--based);
  border-radius: 12px;
  background: rgba(0, 209, 102, 0.08);
  color: #fff;
  font-family: var(--display);
  font-size: 14px;
  letter-spacing: 0.04em;
  font-weight: 800;
  cursor: pointer;
  transition: all .15s ease;
  text-align: center;
}
.result__friend:hover {
  background: rgba(0, 209, 102, 0.18);
  border-color: var(--based);
  transform: translateY(-1px);
  box-shadow: 0 8px 22px -10px rgba(0, 209, 102, 0.55);
}
.result__friend:active { transform: translateY(1px); }

/* ========== SEND TO A FRIEND MODAL ========== */
.friend-modal {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.78);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  z-index: 110;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.friend-modal__panel {
  position: relative;
  width: 100%; max-width: 500px;
  background: linear-gradient(180deg, #061a0e 0%, #030b06 100%);
  border: 2px solid var(--based);
  border-radius: 14px;
  padding: 22px 18px 18px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7), 0 0 40px rgba(0, 209, 102, 0.15);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
}
.friend-modal__close {
  position: absolute;
  top: 8px; right: 10px;
  width: 36px; height: 36px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  transition: all .15s ease;
}
.friend-modal__close:hover { background: var(--based); border-color: var(--based); color: #001a0d; }
.friend-modal__title {
  margin: 0 0 4px;
  font-family: var(--display);
  font-size: clamp(18px, 4.5vw, 22px);
  color: var(--based);
  text-shadow: 0 0 12px rgba(0, 209, 102, 0.4);
}
.friend-modal__sub {
  margin: 0 0 14px;
  font-size: clamp(12px, 3vw, 14px);
  color: rgba(255, 255, 255, 0.7);
}
.friend-modal__lbl {
  display: block;
  font-family: var(--display);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.6);
  margin: 6px 0 6px;
}
.friend-modal__name {
  width: 100%;
  padding: 12px 14px;
  background: rgba(0, 0, 0, 0.55);
  border: 2px solid var(--border);
  border-radius: 8px;
  color: #fff;
  font-family: var(--body);
  font-size: 16px;
  transition: border-color .15s, box-shadow .15s;
}
.friend-modal__name:focus {
  outline: none;
  border-color: var(--based);
  box-shadow: 0 0 0 3px rgba(0, 209, 102, 0.2);
}
.friend-modal__preview-lbl {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--display);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.6);
  margin: 14px 0 6px;
}
.friend-modal__shuffle {
  cursor: pointer;
  color: var(--based);
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: 0.04em;
  user-select: none;
  transition: filter .15s;
}
.friend-modal__shuffle:hover { filter: brightness(1.3); }
.friend-modal__preview {
  background: rgba(0, 0, 0, 0.55);
  border: 1px dashed rgba(0, 209, 102, 0.45);
  border-radius: 10px;
  padding: 14px 14px;
  font-family: var(--hand);
  font-size: clamp(15px, 3.6vw, 17px);
  line-height: 1.45;
  color: #f4f4f4;
  min-height: 64px;
  white-space: pre-wrap;
}
.friend-modal__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 14px;
}
.friend-modal__btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 10px;
  border: 2px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-family: var(--display);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: all .15s ease;
  text-align: center;
}
.friend-modal__btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.08);
}
.friend-modal__btn:active { transform: translateY(1px); }
.friend-modal__btn--sms  { border-color: #4a90ff; color: #cde2ff; }
.friend-modal__btn--sms:hover  { background: rgba(74, 144, 255, 0.15); }
.friend-modal__btn--wa   { border-color: #25d366; color: #c9f7d8; }
.friend-modal__btn--wa:hover   { background: rgba(37, 211, 102, 0.15); }
.friend-modal__btn--mail { border-color: #b07cff; color: #e0d2ff; }
.friend-modal__btn--mail:hover { background: rgba(176, 124, 255, 0.15); }
.friend-modal__btn--copy { border-color: var(--warn); color: #ffe6a8; }
.friend-modal__btn--copy:hover { background: rgba(255, 184, 0, 0.15); }
.friend-modal__btn.is-copied {
  background: var(--based);
  border-color: var(--based);
  color: #001a0d;
}

/* ========== TRANSIENT TOAST ==========
   Bottom-center snackbar for short notices (rate-limit hits, etc.).
   Sits above all other overlays so users always see it; auto-hidden
   via the [hidden] attribute toggled by showToast() in app.js. */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  max-width: calc(100vw - 32px);
  padding: 12px 18px;
  background: rgba(0, 0, 0, 0.94);
  border: 2px solid var(--warn);
  border-radius: 10px;
  color: #fff;
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-align: center;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55), 0 0 18px rgba(255, 184, 0, 0.25);
  z-index: 1100;
  pointer-events: none;
}
.toast[hidden] { display: none; }

/* ========== CAMERA / BARCODE MODAL ==========
   Live video preview with a reticle overlay. The video element is
   `object-fit: cover` so portrait phones don't get pillarboxed and
   landscape desktops don't get bizarrely tall feeds. */
.cam-modal {
  position: fixed; inset: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  z-index: 120;
}
.cam-modal[hidden] { display: none; }
.cam-modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(6px);
}
.cam-modal__panel {
  position: relative;
  width: 100%; max-width: 480px;
  background: linear-gradient(180deg, #0d1419 0%, #04080a 100%);
  border: 2px solid var(--neon);
  border-radius: 16px;
  padding: 22px 16px 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7), 0 0 32px rgba(0, 229, 255, 0.18);
}
.cam-modal__close {
  position: absolute;
  top: 8px; right: 10px;
  width: 36px; height: 36px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  z-index: 2;
}
.cam-modal__close:hover { background: var(--slop); border-color: var(--slop); }
.cam-modal__title {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: clamp(16px, 4vw, 20px);
  color: var(--neon);
  text-shadow: 0 0 12px rgba(0, 229, 255, 0.45);
  letter-spacing: 0.04em;
  text-align: center;
}
.cam-modal__modes {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 0 0 12px;
}
.cam-modal__mode {
  flex: 1 1 0;
  max-width: 160px;
  padding: 9px 12px;
  border-radius: 10px;
  border: 2px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.8);
  font-family: var(--display);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.cam-modal__mode:hover {
  border-color: rgba(0, 229, 255, 0.45);
  color: #fff;
}
.cam-modal__mode.is-active {
  border-color: var(--neon);
  background: rgba(0, 229, 255, 0.12);
  color: var(--neon);
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.25);
}
.cam-modal__mode:focus-visible {
  outline: 2px solid var(--neon);
  outline-offset: 2px;
}
.cam-modal__viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(0, 229, 255, 0.3);
}
.cam-modal__viewport video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.cam-modal__reticle {
  position: absolute;
  inset: 22% 12%;
  border: 2px solid var(--neon);
  border-radius: 8px;
  box-shadow:
    0 0 0 9999px rgba(0, 0, 0, 0.35),
    0 0 18px rgba(0, 229, 255, 0.55) inset;
  pointer-events: none;
}
.cam-modal__status {
  margin: 12px 0 4px;
  font-family: var(--display);
  font-size: 13px;
  color: #fff;
  text-align: center;
  letter-spacing: 0.04em;
}
.cam-modal__hint {
  margin: 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
}

/* Shutter button — only shown in photo mode. The reticle is hidden
   in photo mode too since "frame the subject" is the right cue, not
   "point at a barcode". */
.cam-modal__shutter {
  margin: 12px auto 0;
  display: none;
  position: relative;
  width: 72px;
  height: 72px;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
}
.cam-modal__shutter-ring {
  position: absolute; inset: 0;
  border: 3px solid #fff;
  border-radius: 50%;
}
.cam-modal__shutter-dot {
  position: absolute; inset: 8px;
  background: #fff;
  border-radius: 50%;
  transition: transform .08s ease, background .12s ease;
}
.cam-modal__shutter:hover .cam-modal__shutter-dot { background: var(--neon); }
.cam-modal__shutter:active .cam-modal__shutter-dot { transform: scale(0.88); }
.cam-modal__shutter:focus-visible { outline: 3px solid var(--neon); outline-offset: 4px; border-radius: 50%; }
.cam-modal__shutter:disabled { opacity: 0.4; cursor: wait; }
.cam-modal__shutter:disabled .cam-modal__shutter-dot { background: var(--warn); }

/* Mode toggles. Default state is barcode mode (matches the data-mode
   attr on the modal element). Photo mode flips the reticle off and
   the shutter on. */
.cam-modal[data-mode="photo"] .cam-modal__reticle { display: none; }
.cam-modal[data-mode="photo"] .cam-modal__shutter { display: block; }

/* ========== CLARIFICATION MODAL ==========
   Shown when the model can't confidently scan the input — either an
   ambiguous title (movie vs TV show), a packaged product / restaurant
   collision, or a "not_scannable" person/place. Mirrors note-modal
   chrome but uses warn (yellow) accents to differentiate from the
   destructive slop-red of the result modal. */
.clarify-modal {
  position: fixed; inset: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  z-index: 110;
}
.clarify-modal[hidden] { display: none; }
.clarify-modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(4px);
}
.clarify-modal__panel {
  position: relative;
  width: 100%; max-width: 520px;
  background: linear-gradient(180deg, #1a1207 0%, #0a0703 100%);
  border: 2px solid var(--warn);
  border-radius: 14px;
  padding: 24px 18px 18px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7), 0 0 32px rgba(255, 184, 0, 0.18);
}
.clarify-modal__close {
  position: absolute;
  top: 8px; right: 10px;
  width: 36px; height: 36px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
}
.clarify-modal__close:hover { background: var(--warn); border-color: var(--warn); color: #000; }
.clarify-modal__title {
  margin: 0 0 6px;
  font-family: var(--display);
  font-size: clamp(18px, 4.5vw, 24px);
  color: var(--warn);
  text-shadow: 0 0 12px rgba(255, 184, 0, 0.45);
  letter-spacing: 0.02em;
}
.clarify-modal__msg {
  margin: 0 0 14px;
  font-size: clamp(13px, 3.2vw, 15px);
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.4;
}
.clarify-modal__opts {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 8px 0 12px;
}
.clarify-modal__opt {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  background: rgba(0, 0, 0, 0.55);
  border: 2px solid var(--border);
  border-radius: 10px;
  color: #fff;
  font-family: var(--body);
  font-size: 14px;
  text-align: left;
  cursor: pointer;
  transition: border-color .12s ease, transform .08s ease, background .12s ease;
}
.clarify-modal__opt:hover {
  border-color: var(--warn);
  background: rgba(255, 184, 0, 0.08);
  transform: translateX(2px);
}
.clarify-modal__opt:focus-visible {
  outline: 3px solid var(--neon);
  outline-offset: 2px;
}
.clarify-modal__opt-kind {
  flex: 0 0 auto;
  padding: 4px 8px;
  background: var(--warn);
  color: #000;
  border-radius: 4px;
  font-family: var(--display);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
}
.clarify-modal__opt-label {
  flex: 1 1 auto;
  font-size: 14px;
  color: #fff;
}
.clarify-modal__nope {
  margin: 4px 0;
  padding: 12px 14px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px dashed var(--border);
  border-radius: 10px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
}
.clarify-modal__hint {
  margin: 8px 0 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
}

/* ========== COMMUNITY NOTE MODAL ========== */
.note-modal {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.78);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  z-index: 100;
  backdrop-filter: blur(4px);
}
.note-modal__panel {
  position: relative;
  width: 100%; max-width: 460px;
  background: linear-gradient(180deg, #1a0707 0%, #0b0303 100%);
  border: 2px solid var(--slop);
  border-radius: 14px;
  padding: 22px 18px 18px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
}
.note-modal__close {
  position: absolute;
  top: 8px; right: 10px;
  width: 36px; height: 36px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
}
.note-modal__close:hover { background: var(--slop); border-color: var(--slop); }
.note-modal__title {
  margin: 0 0 4px;
  font-family: var(--display);
  font-size: clamp(18px, 4.5vw, 22px);
  color: var(--warn);
  text-shadow: 0 0 12px rgba(255, 184, 0, 0.4);
}
.note-modal__sub {
  margin: 0 0 14px;
  font-size: clamp(12px, 3vw, 14px);
  color: rgba(255, 255, 255, 0.7);
}
.note-modal__input {
  width: 100%;
  min-height: 110px;
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.55);
  border: 2px solid var(--border);
  border-radius: 8px;
  color: #fff;
  font-family: var(--body);
  font-size: 15px;
  resize: vertical;
}
.note-modal__input:focus {
  outline: none;
  border-color: var(--warn);
  box-shadow: 0 0 0 3px rgba(255, 184, 0, 0.2);
}
.note-modal__row {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 10px;
}
.note-modal__counter {
  font-family: var(--display);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
}
.note-modal__submit {
  padding: 10px 18px;
  background: var(--warn);
  border: 2px solid var(--warn);
  border-radius: 8px;
  color: #000;
  font-family: var(--display);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: filter .15s ease, transform .08s ease;
}
.note-modal__submit:hover { filter: brightness(1.1); transform: translateY(-1px); }
.note-modal__submit:active { transform: translateY(1px); }

/* Action buttons — pinned below scrollable panel so SHARE stays on screen */
.result__actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  flex-shrink: 0;
  gap: 10px;
  width: 100%;
  margin: 10px 0 0;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, rgba(5, 5, 5, 0.35), #050505 40%);
}
.result__btn {
  display: block;
  width: 100%;
  border: none;
  cursor: pointer;
  transition: transform .1s ease, filter .15s ease, box-shadow .15s ease;
}
.result__btn--meme {
  padding: 16px 20px;
  min-height: 58px;
  border: 3px solid #000;
  border-radius: 14px;
  background: linear-gradient(180deg, #ff4040 0%, #e01010 42%, #a80000 100%);
  color: #fff;
  font-family: var(--drip);
  font-size: clamp(22px, 5.5vw, 36px);
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 1;
  text-align: center;
  text-shadow:
    0 2px 0 rgba(0, 0, 0, 0.45),
    0 0 24px rgba(255, 120, 120, 0.65);
  box-shadow:
    0 0 0 2px var(--slop),
    0 7px 0 #6b0000,
    0 14px 36px rgba(255, 24, 24, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  animation: share-meme-glow-slop 2.4s ease-in-out infinite;
}
.result.is-mid .result__btn--meme {
  background: linear-gradient(180deg, #ffd84a 0%, #e8a800 42%, #9a7200 100%);
  text-shadow:
    0 2px 0 rgba(0, 0, 0, 0.45),
    0 0 24px rgba(255, 210, 80, 0.65);
  box-shadow:
    0 0 0 2px var(--warn),
    0 7px 0 #6b4f00,
    0 14px 36px rgba(255, 184, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
  animation-name: share-meme-glow-mid;
}
.result.is-based .result__btn--meme {
  background: linear-gradient(180deg, #4dff9a 0%, #12d86a 42%, #00884a 100%);
  text-shadow:
    0 2px 0 rgba(0, 0, 0, 0.45),
    0 0 24px rgba(120, 255, 180, 0.65);
  box-shadow:
    0 0 0 2px var(--based),
    0 7px 0 #005a30,
    0 14px 36px rgba(0, 209, 102, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
  animation-name: share-meme-glow-based;
}
.result__btn--meme:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow:
    0 0 0 2px #ff5555,
    0 9px 0 #6b0000,
    0 18px 42px rgba(255, 24, 24, 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
.result.is-mid .result__btn--meme:hover {
  box-shadow:
    0 0 0 2px #ffc933,
    0 9px 0 #6b4f00,
    0 18px 42px rgba(255, 184, 0, 0.62),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
.result.is-based .result__btn--meme:hover {
  box-shadow:
    0 0 0 2px #33ff99,
    0 9px 0 #005a30,
    0 18px 42px rgba(0, 209, 102, 0.62),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
.result__btn--meme:active {
  transform: translateY(4px);
  box-shadow:
    0 0 0 2px var(--slop),
    0 2px 0 #6b0000,
    0 6px 18px rgba(255, 24, 24, 0.45),
    inset 0 2px 6px rgba(0, 0, 0, 0.35);
}
.result.is-mid .result__btn--meme:active {
  box-shadow:
    0 0 0 2px var(--warn),
    0 2px 0 #6b4f00,
    0 6px 18px rgba(255, 184, 0, 0.42),
    inset 0 2px 6px rgba(0, 0, 0, 0.35);
}
.result.is-based .result__btn--meme:active {
  box-shadow:
    0 0 0 2px var(--based),
    0 2px 0 #005a30,
    0 6px 18px rgba(0, 209, 102, 0.42),
    inset 0 2px 6px rgba(0, 0, 0, 0.35);
}
@keyframes share-meme-glow-slop {
  0%, 100% { box-shadow: 0 0 0 2px var(--slop), 0 7px 0 #6b0000, 0 14px 36px rgba(255, 24, 24, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.22); }
  50%      { box-shadow: 0 0 0 2px #ff6666, 0 7px 0 #6b0000, 0 14px 44px rgba(255, 24, 24, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.28); }
}
@keyframes share-meme-glow-mid {
  0%, 100% { box-shadow: 0 0 0 2px var(--warn), 0 7px 0 #6b4f00, 0 14px 36px rgba(255, 184, 0, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.24); }
  50%      { box-shadow: 0 0 0 2px #ffc933, 0 7px 0 #6b4f00, 0 14px 44px rgba(255, 184, 0, 0.72), inset 0 1px 0 rgba(255, 255, 255, 0.28); }
}
@keyframes share-meme-glow-based {
  0%, 100% { box-shadow: 0 0 0 2px var(--based), 0 7px 0 #005a30, 0 14px 36px rgba(0, 209, 102, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.24); }
  50%      { box-shadow: 0 0 0 2px #33ff99, 0 7px 0 #005a30, 0 14px 44px rgba(0, 209, 102, 0.72), inset 0 1px 0 rgba(255, 255, 255, 0.28); }
}
.result__actions .result__copy {
  width: 100%;
  margin: 0;
  padding: 11px 14px;
  font-size: clamp(12px, 2.8vw, 14px);
  opacity: 0.92;
}
.result__btn img {
  height: clamp(48px, 10vw, 68px);
  width: auto;
  pointer-events: none;
}
.result__btn:hover {
  transform: translateY(-2px);
}
.result__btn:active { transform: translateY(1px); }
.result__btn--meme:disabled {
  opacity: 0.5;
  cursor: wait;
  transform: none;
  animation: none;
}
.result__btn:disabled {
  opacity: 0.45;
  cursor: wait;
  transform: none;
}
.result__copy:disabled {
  opacity: 0.45;
  cursor: wait;
}
.result__btn:focus-visible { outline: 3px solid var(--neon); outline-offset: 4px; border-radius: 12px; }

.result.is-pulse .result__score { animation: score-pulse 0.6s cubic-bezier(.2, .8, .2, 1); }

@media (max-width: 520px), (max-height: 740px) {
  .result-modal { padding: 10px; }
  .result {
    max-height: min(96dvh, calc(100dvh - 20px));
    padding: 12px 12px max(12px, env(safe-area-inset-bottom));
    border-radius: 18px;
  }
  .result__title {
    width: min(320px, 76%);
    margin-bottom: 8px;
  }
  .result__title--text {
    width: auto;
    margin-bottom: 8px;
  }
  .result__panel {
    padding: 12px 12px 14px;
    gap: 10px;
  }
  .result__actions {
    gap: 8px;
    margin-top: 8px;
    padding-top: 8px;
  }
  .result__btn--meme {
    min-height: 52px;
    padding: 12px 16px;
    font-size: clamp(20px, 5vw, 30px);
  }
  .result.is-slop .result__btn--meme {
    box-shadow:
      0 0 0 2px var(--slop),
      0 5px 0 #6b0000,
      0 10px 24px rgba(255, 24, 24, 0.45),
      inset 0 1px 0 rgba(255, 255, 255, 0.22);
  }
  .result.is-mid .result__btn--meme {
    box-shadow:
      0 0 0 2px var(--warn),
      0 5px 0 #6b4f00,
      0 10px 24px rgba(255, 184, 0, 0.42),
      inset 0 1px 0 rgba(255, 255, 255, 0.22);
  }
  .result.is-based .result__btn--meme {
    box-shadow:
      0 0 0 2px var(--based),
      0 5px 0 #005a30,
      0 10px 24px rgba(0, 209, 102, 0.42),
      inset 0 1px 0 rgba(255, 255, 255, 0.22);
  }
  .result__actions .result__copy {
    padding: 9px 12px;
  }
  .result__paint-slot .meme-loader {
    gap: 10px;
    padding: 16px 12px;
  }
  .result__paint-slot .meme-loader__spinner {
    width: 44px;
    height: 44px;
    border-width: 4px;
  }
}
@keyframes score-pulse {
  0% { transform: scale(0.85); }
  60% { transform: scale(1.06); }
  100% { transform: scale(1); }
}

/* ============== reduced motion ============== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
