/* =====================================================================
   MAINTENANCE PAGE: "Please stand by" on a 1950s wood TV.
   Same sticker system as the site: ink outline, hard shadow, brand yellow.
   ===================================================================== */
body.mt { margin: 0; min-height: 100vh; background: var(--stock); color: var(--ink); font-family: var(--ui);
  background-image: repeating-conic-gradient(from 0deg at 50% 32%, rgba(255,226,122,.55) 0 7deg, transparent 7deg 14deg); background-attachment: fixed; }
:root[data-theme="dark"] body.mt { background-image: repeating-conic-gradient(from 0deg at 50% 32%, rgba(255,226,122,.06) 0 7deg, transparent 7deg 14deg); }
.mt-wrap { box-sizing: border-box; width: min(560px, 100%); margin: 0 auto; padding: 22px 16px 34px; display: grid; justify-items: center; text-align: center; }

.mt-brand { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 22px; font: 400 20px/1 var(--display); color: var(--ink); }
.mt-brand img { width: 34px; height: 34px; }
.mt-brand b { font-weight: 400; color: #C63A2E; }

/* ---------- the TV ---------- */
.tv { position: relative; width: min(100%, 440px); margin: 26px 0 8px; }
.tv-ant { position: absolute; left: 50%; top: -34px; width: 0; height: 0; }
.tv-ant::before, .tv-ant::after { content: ""; position: absolute; bottom: 0; width: 4px; height: 46px; border-radius: 4px; background: #3B2414; transform-origin: 50% 100%; }
.tv-ant::before { left: -14px; transform: rotate(-32deg); animation: ant 5s ease-in-out infinite; }
.tv-ant::after { left: 10px; transform: rotate(30deg); }
@keyframes ant { 0%, 100% { transform: rotate(-32deg); } 50% { transform: rotate(-24deg); } }
.tv-body { display: grid; grid-template-columns: minmax(0, 1fr) 70px; gap: 14px; padding: 16px; border-radius: 30px; border: 3px solid #1E1A22; box-shadow: 0 8px 0 #1E1A22, 0 26px 40px -24px rgba(30,26,34,.6);
  background:
    linear-gradient(180deg, rgba(255,255,255,.18), transparent 30%, rgba(0,0,0,.2)),
    repeating-linear-gradient(92deg, rgba(60,30,12,0) 0 7px, rgba(60,30,12,.22) 7px 8px, rgba(60,30,12,0) 8px 15px, rgba(255,214,160,.10) 15px 17px),
    repeating-radial-gradient(ellipse 140% 18% at 30% 120%, rgba(60,30,12,.16) 0 3px, transparent 3px 9px),
    linear-gradient(90deg, #8B5A2B, #A86E38 30%, #9A6232 55%, #B57A41 80%, #8B5A2B); }
.tv-feet { display: flex; justify-content: space-between; width: 70%; margin: 0 auto; height: 16px; }
.tv-feet::before, .tv-feet::after { content: ""; width: 26px; height: 16px; background: #3B2414; border: 3px solid #1E1A22; border-top: 0; border-radius: 0 0 8px 8px; }

.tv-screen { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 34px / 28px; border: 4px solid #1E1A22; background: #111;
  box-shadow: 0 0 0 5px #D9B77E, inset 0 0 30px rgba(0,0,0,.6); }
.ch { position: absolute; inset: 0; opacity: 0; transition: opacity .15s; }
.tv-screen[data-ch="1"] .ch-1, .tv-screen[data-ch="2"] .ch-2, .tv-screen[data-ch="3"] .ch-3 { opacity: 1; }
/* channel 1: color bars in brand colors */
.bars { display: grid; grid-template-columns: repeat(7, 1fr); height: 72%; }
.bars i:nth-child(1) { background: #FBF4E4; } .bars i:nth-child(2) { background: #FFE27A; } .bars i:nth-child(3) { background: #7FD3C9; }
.bars i:nth-child(4) { background: #8FCB6B; } .bars i:nth-child(5) { background: #E07BB0; } .bars i:nth-child(6) { background: #C63A2E; } .bars i:nth-child(7) { background: #3E6FB0; }
.bars2 { display: grid; grid-template-columns: 2fr 1fr 2fr 1fr 2fr; height: 28%; }
.bars2 i:nth-child(odd) { background: #1E1A22; } .bars2 i:nth-child(2) { background: #FBF4E4; } .bars2 i:nth-child(4) { background: #F5C842; }
/* channel 2: snow */
.static { position: absolute; inset: -50%; opacity: .9;
  background: repeating-radial-gradient(circle at 17% 32%, #fff 0 1px, transparent 1px 3px), repeating-radial-gradient(circle at 73% 61%, #888 0 1px, transparent 1px 2px), #444;
  background-size: 7px 7px, 5px 5px; animation: snow .18s steps(4) infinite; }
@keyframes snow { 0% { transform: translate(0, 0); } 25% { transform: translate(-3%, 2%); } 50% { transform: translate(2%, -3%); } 75% { transform: translate(-2%, -1%); } 100% { transform: translate(3%, 3%); } }
/* channel 3: the mascot, a bit dizzy */
.ch-3 { display: grid; place-items: end center; }
.ch-3 .rays { position: absolute; left: 50%; top: 78%; width: 300%; aspect-ratio: 1; transform: translate(-50%, -50%); /* a big square spun around the mascot: no black corners */ /* vortex (user 11-22): rings + thin spokes turning slowly */
  background:
    radial-gradient(circle at 50% 50%, rgba(255,253,240,.95) 0 4%, transparent 16%),
    repeating-conic-gradient(from 0deg at 50% 50%, rgba(150,96,10,.16) 0 .8deg, transparent .8deg 12deg),
    repeating-radial-gradient(circle at 50% 50%, rgba(200,140,20,.38) 0 2.5px, transparent 2.5px 26px),
    radial-gradient(circle at 50% 50%, #FFE27A, #F5C842 26%, #E2A92E 47%); animation: spinc 40s linear infinite; }
.ch-3 img { position: relative; width: 54%; height: auto; margin-bottom: -4%; animation: wob 2.4s ease-in-out infinite; filter: drop-shadow(0 8px 10px rgba(0,0,0,.35)); }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spinc { from { transform: translate(-50%, -50%) rotate(0deg); } to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes wob { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg); } }
/* the title card */
.card { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-2deg); width: 76%; padding: 10px 12px 11px; text-align: center;
  background: #FFFDF7; border: 3px solid #1E1A22; border-radius: 12px; box-shadow: 0 5px 0 #1E1A22; }
.tv-screen[data-ch="3"] .card { top: 22%; }
.card-k { margin: 0; font: 400 clamp(18px, 5.4vw, 26px)/1 var(--display); letter-spacing: .03em; text-transform: uppercase; color: #C63A2E; }
.card-t { margin: 5px 0 0; font: 700 clamp(12px, 3.4vw, 15px)/1.2 var(--ui); color: #1E1A22; }
.chan { position: absolute; right: 12px; top: 10px; font: 700 15px/1 ui-monospace, Consolas, monospace; color: #8BFF8B; text-shadow: 0 0 6px #3CFF3C; letter-spacing: .06em; }
.glass { position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: linear-gradient(155deg, rgba(255,255,255,.28), transparent 38%), repeating-linear-gradient(0deg, rgba(0,0,0,.12) 0 2px, transparent 2px 4px);
  animation: flick 4s steps(1) infinite; }
@keyframes flick { 0%, 96%, 100% { opacity: 1; } 97% { opacity: .75; } 98% { opacity: .95; } }
.tv-screen.switching::after { content: ""; position: absolute; inset: 0; background: #fff; animation: zap .25s ease-out forwards; }
@keyframes zap { from { opacity: .9; transform: scaleY(.02); } 60% { opacity: .6; transform: scaleY(1); } to { opacity: 0; } }

.tv-side { display: grid; align-content: start; justify-items: center; gap: 14px; padding-top: 6px; }
.knob { position: relative; display: grid; place-items: center; width: 54px; height: 54px; padding: 0; border-radius: 50%; cursor: pointer;
  background: radial-gradient(circle at 35% 30%, #FFF4C4, #E2AC3C 60%, #A8781F); border: 3px solid #1E1A22; box-shadow: 0 4px 0 #1E1A22; transition: transform .35s cubic-bezier(.2, 1.4, .4, 1); }
.knob span { width: 6px; height: 22px; border-radius: 4px; background: #1E1A22; transform: translateY(-8px); }
.knob.small { width: 38px; height: 38px; cursor: default; }
.knob.small span { height: 14px; transform: translateY(-5px); }
button.knob:hover { box-shadow: 0 5px 0 #1E1A22, 0 0 0 4px rgba(255,226,122,.5); }
button.knob:focus-visible { outline: 3px solid #FFFDF7; outline-offset: 3px; }
.grille { width: 46px; height: 64px; border-radius: 8px; border: 2px solid rgba(30,26,34,.6); background: repeating-linear-gradient(0deg, rgba(30,26,34,.55) 0 3px, transparent 3px 7px); }

/* ---------- text ---------- */
.mt-title { margin: 26px 0 0; font: 400 clamp(38px, 10vw, 58px)/1.05 var(--display); color: var(--ink); }
.mt-title mark { background: #FFE27A; color: #1E1A22; padding: 0 .14em; border-radius: .14em; box-shadow: 0 4px 0 #1E1A22; }
.mt-sub { margin: 14px auto 0; max-width: 38ch; font: 500 17px/1.5 var(--ui); color: var(--ink-2); }

/* ---------- while you wait ---------- */
.wait { box-sizing: border-box; width: 100%; margin-top: 26px; padding: 18px; text-align: left; border-radius: 20px; border: 2px solid #1E1A22; box-shadow: 0 6px 0 #1E1A22;
  background: radial-gradient(rgba(198,58,46,.10) 1px, transparent 1.4px) 0 0 / 10px 10px, linear-gradient(180deg, #FFF8DC, #FFEFB8); color: #1E1A22; }
.wait-k { margin: 0 0 8px; font: 800 12px var(--ui); letter-spacing: .14em; text-transform: uppercase; color: #C63A2E; }
.wait-claim { margin: 0 0 14px; font: 700 20px/1.3 "Fredoka", var(--ui); }
.wait-picks { display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; }
.pick { min-height: 48px; border-radius: 999px; font: 800 15px var(--ui); cursor: pointer; border: 2px solid #1E1A22; box-shadow: 0 4px 0 #1E1A22; transition: transform .12s, box-shadow .12s, opacity .2s; }
.pick.t { background: #FFE27A; color: #1E1A22; } .pick.f { background: #FFFDF7; color: #1E1A22; }
.pick:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 6px 0 #1E1A22; }
.pick:disabled { opacity: .45; cursor: default; } .pick.chosen { opacity: 1; outline: 3px solid #C63A2E; outline-offset: 2px; }
.pick:focus-visible { outline: 3px solid #C63A2E; outline-offset: 2px; }
.wait-ans:empty { display: none; }
.wait-ans { margin-top: 14px; }
.verdict { display: inline-block; font: 400 21px/1 var(--display); text-transform: uppercase; padding: 6px 12px 5px; border: 3px solid currentColor; border-radius: 10px; transform: rotate(-3deg); animation: stamp .35s cubic-bezier(.2, 1.4, .4, 1); }
.verdict.ok { color: #2E9E5B; } .verdict.no { color: #C63A2E; }
@keyframes stamp { from { opacity: 0; transform: rotate(-3deg) scale(2); } to { opacity: 1; transform: rotate(-3deg) scale(1); } }
.wait-ans p { margin: 10px 0 0; font: 500 15px/1.5 var(--ui); color: #3A2F36; }
.another { margin-top: 12px; font: 800 14px var(--ui); color: #FFFDF7; background: #1E1A22; border: 2px solid #1E1A22; border-radius: 999px; padding: 9px 16px; cursor: pointer; box-shadow: 0 3px 0 rgba(30,26,34,.4); }

/* ---------- pins ---------- */
.mt-pins { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; width: 100%; margin-top: 26px; }
.pin { display: grid; justify-items: center; gap: 6px; padding: 12px 4px 10px; border-radius: 18px; text-decoration: none; font: 800 13px var(--ui); color: #FFFDF7;
  border: 2px solid #1E1A22; box-shadow: 0 5px 0 #1E1A22; transition: transform .2s cubic-bezier(.2, 1.4, .4, 1), box-shadow .2s; }
.pin:hover { transform: translateY(-3px) rotate(-2deg); box-shadow: 0 8px 0 #1E1A22; }
.pin-yt { background: #E62117; } .pin-tt { background: #1E1A22; } .pin-ig { background: linear-gradient(135deg, #5851DB, #C13584 45%, #F56040 80%, #FDD663); }
.pin-ic { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: rgba(255,253,247,.18); border: 2px solid rgba(255,253,247,.6); }
.pin .ic { width: 22px; height: 22px; }
:root[data-theme="dark"] .pin-tt { border-color: #FBF4E4; }
.pin:focus-visible { outline: 3px solid #C63A2E; outline-offset: 3px; }

.mt-foot { margin: 28px 0 0; font: 600 13px var(--ui); color: var(--ink-2); }

/* dark mode: outlines go deeper so the stickers keep their edge */
:root[data-theme="dark"] .tv-body, :root[data-theme="dark"] .wait, :root[data-theme="dark"] .pin { box-shadow: 0 6px 0 #0F0B12; }

@media (min-width: 640px) { .mt-wrap { padding-top: 34px; } .tv-body { grid-template-columns: minmax(0, 1fr) 84px; padding: 20px; } }
@media (max-width: 360px) { .tv-body { grid-template-columns: minmax(0, 1fr) 54px; padding: 12px; gap: 10px; } .knob { width: 44px; height: 44px; } .grille { width: 36px; } }
@media (prefers-reduced-motion: reduce) { .tv-ant::before, .static, .ch-3 .rays, .ch-3 img, .glass, .verdict, .tv-screen.switching::after { animation: none; } .knob, .pin, .pick { transition: none; } }
.mt-brand { margin-bottom: 44px; }
/* antennas sit on the cabinet; the title card fits "Please stand by" on one line */
.tv-ant { top: 3px; z-index: -1; }
.mt-brand { margin-bottom: 52px; }
.card { width: 86%; padding: 9px 10px 10px; }
.card-k { font-size: clamp(16px, 4.6vw, 24px); white-space: nowrap; }
/* plain cream page background, same as the home page */
body.mt, :root[data-theme="dark"] body.mt { background-image: none; background-color: var(--stock); }

/* =====================================================================
   THE GANG: our characters gather around the TV and dance while they wait
   ===================================================================== */
.stage { position: relative; display: grid; justify-items: center; width: 100%; }
.crowd { display: flex; align-items: flex-end; position: relative; z-index: 2; }
.crowd .dude { height: auto; width: 62px; margin: 0 -9px; transform-origin: 50% 95%; animation: var(--m, none) 1.6s ease-in-out var(--d, 0s) infinite; filter: drop-shadow(0 4px 3px rgba(30,26,34,.25)); }
.dude.hop      { --m: g-hop; }
.dude.wobble   { --m: g-wobble; }
.dude.shake    { --m: g-shake; animation-duration: 2.2s; }
.dude.flip     { --m: g-flip; animation-duration: 3.4s; }
.dude.stretch  { --m: g-stretch; }
.dude.dance    { --m: g-dance; animation-duration: 1.2s; }
.dude.float    { --m: g-float; animation-duration: 2.6s; }
.dude.headbang { --m: g-headbang; animation-duration: .9s; }
@keyframes g-hop      { 0%, 55%, 100% { transform: translateY(0) scale(1, 1); } 62% { transform: translateY(0) scale(1.12, .86); } 75% { transform: translateY(-22px) scale(.94, 1.08); } 88% { transform: translateY(0) scale(1.06, .94); } }
@keyframes g-wobble   { 0%, 100% { transform: rotate(-9deg); } 50% { transform: rotate(9deg); } }
@keyframes g-shake    { 0%, 60%, 100% { transform: translateX(0); } 64%, 72%, 80% { transform: translateX(-5px) rotate(-3deg); } 68%, 76%, 84% { transform: translateX(5px) rotate(3deg); } }
@keyframes g-flip     { 0%, 70%, 100% { transform: translateY(0) rotate(0); } 80% { transform: translateY(-30px) rotate(180deg); } 90% { transform: translateY(-8px) rotate(340deg); } 95% { transform: translateY(0) rotate(360deg); } }
@keyframes g-stretch  { 0%, 100% { transform: scale(1, 1); } 30% { transform: scale(.9, 1.18); } 60% { transform: scale(1.12, .88); } }
@keyframes g-dance    { 0%, 100% { transform: translateX(0) rotate(0); } 25% { transform: translateX(-6px) rotate(-8deg); } 75% { transform: translateX(6px) rotate(8deg); } }
@keyframes g-float    { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px) rotate(4deg); } }
@keyframes g-headbang { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(-14deg) translateY(2px); } 60% { transform: rotate(10deg); } }

/* phones: one front row standing in front of the TV's feet (3 on each side) */
.stage { grid-template-columns: 1fr 1fr; grid-template-areas: "tv tv" "l r"; }
.stage .tv { grid-area: tv; }
.crowd.left { grid-area: l; justify-self: end; margin: -46px 4px 0 0; }
.crowd.right { grid-area: r; justify-self: start; margin: -46px 0 0 4px; }
.crowd .dude:nth-child(n+4) { display: none; }

/* tablets and up: the gang stands on both sides of the TV */
@media (min-width: 760px) {
  .mt-wrap { width: min(920px, 100%); }
  .stage { grid-template-columns: 1fr auto 1fr; grid-template-areas: "l tv r"; align-items: end; column-gap: 0; }
  .stage .tv { width: 440px; }
  .crowd.left { margin: 0 -26px 10px 0; }
  .crowd.right { margin: 0 0 10px -26px; }
  .crowd .dude { width: 74px; margin: 0 -12px; }
  .crowd .dude:nth-child(n+4) { display: block; }
  .mt-title, .mt-sub, .wait, .mt-pins { max-width: 528px; }
}
@media (prefers-reduced-motion: reduce) { .crowd .dude { animation: none; } }

/* =====================================================================
   THE WALKER: the curly-haired boy in purple strolls back and forth in
   front of the TV (8-frame walk cycle), passing behind the dancing gang
   ===================================================================== */
.stage { overflow-x: clip; }
.walker { position: absolute; left: 0; bottom: 2px; z-index: 1; font-size: 46px; width: 1em; height: 1.435em; pointer-events: none;
  animation: wk-move 16s linear infinite; }
.walker i { position: absolute; inset: 0; background: url("/assets/walk_t.webp") 0 0 / 8em 100% no-repeat; animation: wk-cycle .8s steps(8) infinite;
  filter: drop-shadow(0 4px 3px rgba(30,26,34,.25)); }
@keyframes wk-cycle { to { background-position: -8em 0; } }
@keyframes wk-move {
  0%   { left: -1.2em; transform: scaleX(1); }
  49%  { left: calc(100% + .2em); transform: scaleX(1); }
  50%  { left: calc(100% + .2em); transform: scaleX(-1); }
  99%  { left: -1.2em; transform: scaleX(-1); }
  100% { left: -1.2em; transform: scaleX(1); }
}
@media (min-width: 760px) { .walker { font-size: 60px; bottom: 6px; } }
@media (prefers-reduced-motion: reduce) { .walker { display: none; } }

/* =====================================================================
   The boy in purple walks in from the left, stops at the "B" of
   "Be right back." and leans on it, swaying a little while he waits.
   ===================================================================== */
.walker { display: none; }
.mt-title { padding-left: .55em; }
.b-letter { position: relative; display: inline-block; }
.b-walker { position: absolute; right: 86%; bottom: .02em; font-size: .6em; width: 1em; height: 1.435em; pointer-events: none;
  animation: bw-in 3.2s linear both; }
.b-body { position: absolute; inset: 0; transform-origin: 45% 100%; animation: bw-lean .5s cubic-bezier(.3, 1.5, .5, 1) 3.2s both, bw-idle 3.2s ease-in-out 3.7s infinite; }
.b-body i { position: absolute; inset: 0; background: url("/assets/walk_t.webp") 0 0 / 8em 100% repeat-x; animation: wk-cycle .8s steps(8) 4 both;
  filter: drop-shadow(0 4px 3px rgba(30,26,34,.25)); }
@keyframes bw-in { from { transform: translateX(-9em); } to { transform: none; } }
@keyframes bw-lean { from { transform: rotate(0); } to { transform: rotate(14deg); } }
@keyframes bw-idle { 0%, 100% { transform: rotate(14deg); } 50% { transform: rotate(10deg) translateY(-.02em); } }
@media (prefers-reduced-motion: reduce) {
  .b-walker, .b-body i { animation: none; }
  .b-body { animation: none; transform: rotate(14deg); }
}
.b-walker { font-size: .74em; right: 80%; }
.mt-title { padding-left: .7em; }
:root[data-theme] body .mt-title .b-letter { color: inherit; -webkit-text-fill-color: currentColor; background: none; }
/* v2: after the walk he stops a step before the B and points at it (no lean) */
.b-walker { right: calc(100% + .32em); }
.b-body { animation: none; transform: none; }
.b-body i { animation: wk-cycle .8s steps(8) 4 both, bw-hide 0s linear 3.2s forwards; }
.b-point { position: absolute; left: 0; bottom: 0; width: 1.304em; height: auto; opacity: 0; transform-origin: 30% 100%;
  filter: drop-shadow(0 4px 3px rgba(30,26,34,.25)); animation: bw-show 0s linear 3.2s forwards, bw-poke 1.6s ease-in-out 3.2s infinite; }
@keyframes bw-hide { to { opacity: 0; } }
@keyframes bw-show { to { opacity: 1; } }
@keyframes bw-poke { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(.06em) translateY(-.02em) rotate(-2deg); } }
@media (prefers-reduced-motion: reduce) {
  .b-body i { animation: none; opacity: 0; }
  .b-point { animation: none; opacity: 1; }
}
/* a bit bigger: about the height of the whole word */
.b-walker { font-size: .95em; right: calc(100% + .26em); bottom: -.04em; }
.mt-title { padding-left: 1.1em; }

/* =====================================================================
   The gentleman in the bowler hat (he leaned on the S in the old header)
   drops in from above and lands with both feet on the period of "back.",
   then keeps his balance on it.
   ===================================================================== */
.s-dot { position: relative; display: inline-block; }
.s-guy { position: absolute; left: 50%; bottom: .2em; width: .78em; margin-left: -.39em; pointer-events: none; transform-origin: 50% 100%;
  animation: sg-drop .7s cubic-bezier(.5, 0, .9, .5) 3.6s both, sg-land .45s ease-out 4.3s both, sg-balance 2.8s ease-in-out 4.75s infinite; }
.s-guy img { display: block; width: 100%; height: auto; filter: drop-shadow(0 4px 3px rgba(30,26,34,.25)); }
@keyframes sg-drop { from { transform: translateY(-6em); opacity: 0; } 15% { opacity: 1; } to { transform: translateY(0); opacity: 1; } }
@keyframes sg-land { 0% { transform: scale(1.12, .86); } 55% { transform: scale(.96, 1.05); } 100% { transform: none; } }
@keyframes sg-balance { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-5deg); } 75% { transform: rotate(5deg); } }
@media (prefers-reduced-motion: reduce) { .s-guy { animation: none; } }
:root[data-theme] body .mt-title .s-dot, :root[data-theme] body .mt-title .s-guy { color: inherit; -webkit-text-fill-color: currentColor; background: none; }
/* bigger, and feet on top of the dot (not covering it) */
.s-guy { width: 1em; margin-left: -.5em; bottom: .29em; }
/* foot-on-the-ball pose: his raised shoe sits on top of the period, the other foot on the baseline */
.s-guy { left: -.12em; margin-left: 0; width: 1em; bottom: .03em; transform-origin: 27% 82%; }
@keyframes sg-balance { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-3deg); } }
.s-guy { left: -.07em; bottom: .065em; }

/* =====================================================================
   v3 polish: grounded characters, calmer dancing, tap-to-talk, knob hint
   ===================================================================== */
/* every character stands on the floor: a soft shadow under the whole row */
.crowd::after { content: ""; position: absolute; left: 4%; right: 4%; bottom: -4px; height: 10px; border-radius: 50%; background: radial-gradient(closest-side, rgba(30,26,34,.22), transparent); z-index: -1; }
/* they rest by default and dance in small turns (the script picks who), so the page never feels busy */
.crowd .dude { animation: none; cursor: pointer; pointer-events: auto; transition: filter .2s; }
.crowd .dude.go { animation: var(--m, none) 1.6s ease-in-out 0s 3; }
.crowd .dude.dance.go { animation-duration: 1.2s; } .crowd .dude.shake.go { animation-duration: 2.2s; }
.crowd .dude.float.go { animation-duration: 2.6s; } .crowd .dude.headbang.go { animation-duration: .9s; }
.crowd .dude:hover { filter: drop-shadow(0 4px 3px rgba(30,26,34,.25)) brightness(1.06); }
.crowd .dude.poke { animation: g-poke .5s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes g-poke { 0% { transform: scale(1, 1); } 25% { transform: scale(1.15, .82); } 55% { transform: translateY(-16px) scale(.92, 1.1); } 100% { transform: none; } }
/* speech bubble when a character is tapped */
.say { position: absolute; z-index: 6; transform: translate(-50%, -100%); white-space: nowrap; pointer-events: none;
  font: 700 13px/1.2 "Fredoka", var(--ui); color: #1E1A22; background: #FFFDF7; border: 2px solid #1E1A22; border-radius: 12px; padding: 6px 10px; box-shadow: 0 3px 0 #1E1A22;
  animation: say-in .35s cubic-bezier(.2, 1.5, .4, 1) both; }
.say::after { content: ""; position: absolute; left: 50%; bottom: -8px; width: 12px; height: 12px; margin-left: -6px; background: #FFFDF7; border-right: 2px solid #1E1A22; border-bottom: 2px solid #1E1A22; transform: rotate(45deg); }
.say.out { animation: say-out .25s ease-in forwards; }
@keyframes say-in { from { opacity: 0; transform: translate(-50%, -80%) scale(.6); } to { opacity: 1; transform: translate(-50%, -100%) scale(1); } }
@keyframes say-out { to { opacity: 0; transform: translate(-50%, -110%) scale(.9); } }
/* the boy and the bowler-hat man can be tapped too */
.b-walker, .s-guy { pointer-events: auto; cursor: pointer; }
/* knob hint: a little sticker that points at the knob until someone turns it */
.tv-side { position: relative; }
.knob-hint { position: absolute; right: calc(100% + 6px); top: 12px; white-space: nowrap; font: 800 12px var(--ui); color: #1E1A22; background: #FFE27A; border: 2px solid #1E1A22;
  border-radius: 999px; padding: 4px 10px; box-shadow: 0 3px 0 #1E1A22; transform: rotate(-4deg); opacity: 0; animation: hint-in .4s cubic-bezier(.2, 1.5, .4, 1) 2s forwards, hint-nudge 1.4s ease-in-out 2.4s infinite; pointer-events: none; z-index: 4; }
.knob-hint::after { content: "›"; margin-left: 4px; font: 400 15px/1 var(--display); }
.knob-hint.gone { animation: say-out .25s ease-in forwards; }
@keyframes hint-in { from { opacity: 0; transform: rotate(-4deg) scale(.6); } to { opacity: 1; transform: rotate(-4deg) scale(1); } }
@keyframes hint-nudge { 0%, 100% { translate: 0 0; } 50% { translate: 4px 0; } }
/* channel 3: the title card moves up so the mascot's face shows */
.tv-screen[data-ch="3"] .card { top: 17%; transform: translate(-50%, -50%) rotate(-2deg) scale(.86); }
@media (prefers-reduced-motion: reduce) { .crowd .dude.go, .crowd .dude.poke, .say, .knob-hint { animation: none; opacity: 1; } .knob-hint { opacity: 1; } }
/* hint sits above the knob, outside the screen */
.knob-hint { right: -10px; top: -40px; transform: rotate(3deg); }
.knob-hint::after { content: "⌄"; margin-left: 4px; font: 800 12px/1 var(--ui); }
@keyframes hint-in { from { opacity: 0; transform: rotate(3deg) scale(.6); } to { opacity: 1; transform: rotate(3deg) scale(1); } }
@keyframes hint-nudge { 0%, 100% { translate: 0 0; } 50% { translate: 0 4px; } }
.say::after { left: calc(50% + var(--tail, 0px)); }
/* the king: a slow, royal sway instead of the quick shake */
.dude.sway { --m: g-sway; }
.crowd .dude.sway.go { animation-duration: 2.6s; animation-iteration-count: 2; }
@keyframes g-sway { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-5deg); } 75% { transform: rotate(5deg); } }
/* the doctor in the white coat: a slow, gentle bob instead of the quick hop */
.dude.calm { --m: g-calm; }
.crowd .dude.calm.go { animation-duration: 2.6s; animation-iteration-count: 2; }
@keyframes g-calm { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-6px) rotate(-3deg); } }
/* every character around the TV moves at the same calm pace: 2.6 s per move, twice, then rest */
.stage .crowd .dude.go { animation-duration: 2.6s; animation-iteration-count: 2; }

/* v4: the bowler-hat man walks in from the right at the same time and pace as the boy (3.2 s),
   then lifts his left foot onto the period */
.s-guy { animation: sg-walkin 3.2s linear both, sg-land .45s ease-out 3.2s forwards, sg-balance 2.6s ease-in-out 3.65s infinite; }
.s-guy img { position: absolute; left: 0; bottom: 0; }
.s-guy { height: 1.435em; }
.s-stand { animation: sg-waddle .4s ease-in-out 8 both, bw-hide 0s linear 3.2s forwards; transform-origin: 50% 100%; }
.s-ball { opacity: 0; animation: bw-show 0s linear 3.2s forwards; }
@keyframes sg-walkin { from { transform: translateX(7em); } to { transform: none; } }
@keyframes sg-waddle { 0%, 100% { transform: rotate(-4deg) translateY(0); } 50% { transform: rotate(4deg) translateY(-.04em); } }
@media (prefers-reduced-motion: reduce) {
  .s-guy { animation: none; }
  .s-stand { animation: none; opacity: 0; }
  .s-ball { animation: none; opacity: 1; }
}
/* the walkers start outside the title: clip sideways so the page never scrolls left/right */
.mt-title { overflow-x: clip; overflow-y: visible; }

/* back to the earlier version: he drops in from above onto the period (no walk-in, nothing clipped) */
.mt-title { overflow: visible; }
.s-guy { animation: sg-drop .7s cubic-bezier(.5, 0, .9, .5) 3.6s both, sg-land .45s ease-out 4.3s forwards, sg-balance 2.6s ease-in-out 4.75s infinite; }
.s-ball { opacity: 1; animation: none; }
@media (prefers-reduced-motion: reduce) { .s-guy { animation: none; } }

/* =====================================================================
   SOCIAL: "Still on air" — three little wood TVs, each tuned to one of our channels
   ===================================================================== */
.air-kick { display: inline-flex; align-items: center; gap: 8px; margin: 30px 0 14px; font: 800 12px var(--ui); letter-spacing: .16em; text-transform: uppercase; color: #C63A2E; }
.air-dot { width: 10px; height: 10px; border-radius: 50%; background: #E62117; box-shadow: 0 0 0 3px rgba(230,33,23,.2); animation: air-blink 1.4s ease-in-out infinite; }
@keyframes air-blink { 50% { opacity: .35; } }
.air-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; width: 100%; max-width: 528px; }
.air { position: relative; display: grid; justify-items: center; gap: 2px; padding-top: 16px; text-decoration: none; color: var(--ink); }
.air b { margin-top: 10px; font: 400 16px/1.1 var(--display); color: var(--ink); }
.air small { font: 800 11px var(--ui); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
/* the cabinet: same walnut as the big TV */
.air-tv { position: relative; display: grid; grid-template-columns: 1fr 18px; gap: 6px; align-items: center; width: 100%; max-width: 150px; box-sizing: border-box; padding: 8px; border-radius: 16px;
  border: 2px solid #1E1A22; box-shadow: 0 5px 0 #1E1A22;
  background: linear-gradient(180deg, rgba(255,255,255,.16), transparent 35%, rgba(0,0,0,.18)),
    repeating-linear-gradient(92deg, rgba(60,30,12,0) 0 6px, rgba(60,30,12,.22) 6px 7px, rgba(60,30,12,0) 7px 13px),
    linear-gradient(90deg, #8B5A2B, #A86E38 35%, #9A6232 60%, #B57A41 85%, #8B5A2B);
  transition: transform .2s cubic-bezier(.2, 1.4, .4, 1), box-shadow .2s ease; }
/* antennas */
.air-tv::before, .air-tv::after { content: ""; position: absolute; top: -15px; width: 2.5px; height: 17px; border-radius: 2px; background: #3B2414; transform-origin: 50% 100%; }
.air-tv::before { left: calc(50% - 9px); transform: rotate(-30deg); }
.air-tv::after { left: calc(50% + 6px); transform: rotate(30deg); }
/* the screen: tuned to the platform's colors, with glass and scanlines */
.air-screen { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; border-radius: 12px / 10px; overflow: hidden; color: #FFFDF7;
  border: 2px solid #1E1A22; box-shadow: 0 0 0 3px #D9B77E, inset 0 0 12px rgba(0,0,0,.45); }
.air-screen::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(155deg, rgba(255,255,255,.35), transparent 42%), repeating-linear-gradient(0deg, rgba(0,0,0,.12) 0 2px, transparent 2px 4px); }
.air-screen .ic { position: relative; width: 44%; height: 44%; filter: drop-shadow(0 2px 2px rgba(0,0,0,.35)); transition: transform .25s cubic-bezier(.2, 1.4, .4, 1); }
.air-ch { position: absolute; right: 6px; top: 4px; z-index: 1; font: 700 9px/1 ui-monospace, Consolas, monospace; color: #8BFF8B; text-shadow: 0 0 4px #3CFF3C; }
.air-yt .air-screen { background: radial-gradient(circle at 50% 45%, #FF4A3D, #E62117 55%, #A5140D); }
.air-tt .air-screen { background: radial-gradient(circle at 50% 45%, #3A3242, #1E1A22 70%); }
.air-tt .air-screen .ic { filter: drop-shadow(-2px 0 0 #25F4EE) drop-shadow(2px 0 0 #FE2C55); }
.air-ig .air-screen { background: radial-gradient(circle at 30% 105%, #FDD663 0 15%, #F56040 38%, #C13584 65%, #5851DB 100%); }
.air-knob { display: grid; gap: 6px; }
.air-knob::before, .air-knob::after { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid #1E1A22; background: radial-gradient(circle at 35% 30%, #FFF4C4, #E2AC3C 60%, #A8781F); }
/* hover / focus: the set hops and the picture pops */
.air:hover .air-tv, .air:focus-visible .air-tv { transform: translateY(-4px) rotate(-2deg); box-shadow: 0 9px 0 #1E1A22; }
.air:hover .air-screen .ic, .air:focus-visible .air-screen .ic { transform: scale(1.18); }
.air:active .air-tv { transform: translateY(3px); box-shadow: 0 2px 0 #1E1A22; }
.air:focus-visible { outline: none; }
.air:focus-visible b { text-decoration: underline; text-underline-offset: 3px; }
:root[data-theme="dark"] .air-tv { border-color: #0F0B12; box-shadow: 0 5px 0 #0F0B12; }
:root[data-theme="dark"] .air-tv::before, :root[data-theme="dark"] .air-tv::after { background: #D9B77E; }
.mt-pins { display: none; }
@media (max-width: 360px) { .air-row { gap: 8px; } .air-tv { grid-template-columns: 1fr 12px; padding: 6px; gap: 4px; } .air-knob::before, .air-knob::after { width: 10px; height: 10px; } .air b { font-size: 14px; } }
@media (prefers-reduced-motion: reduce) { .air-dot { animation: none; } .air-tv, .air-screen .ic { transition: none; } }
.air-screen .ic { width: 56%; height: 56%; }

/* =====================================================================
   SOCIAL v3: a vintage TV-guide listing, "What's on while we're off".
   Paper page, ink rules, a typeset masthead, one row per channel.
   ===================================================================== */
.air-kick, .air-row { display: none; }
.tguide { box-sizing: border-box; width: 100%; max-width: 528px; margin-top: 30px; padding: 18px 18px 8px; text-align: left; color: #1E1A22; border-radius: 6px;
  background: linear-gradient(180deg, rgba(30,26,34,.04), transparent 40%), repeating-linear-gradient(0deg, transparent 0 23px, rgba(30,26,34,.035) 23px 24px), #FBF4E2;
  border: 2px solid #1E1A22; box-shadow: 0 6px 0 #1E1A22, 0 18px 30px -22px rgba(30,26,34,.6); transform: rotate(-.6deg); }
.tg-head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 4px 12px; padding-bottom: 10px; border-bottom: 4px double #1E1A22; }
.tg-mast { grid-column: 1 / -1; margin: 0; font: 400 13px/1 var(--display); letter-spacing: .18em; text-transform: uppercase; color: #1E1A22; }
.tg-mast span { color: #C63A2E; }
.tg-title { margin: 0; font: 700 italic clamp(22px, 5.8vw, 28px)/1.1 Georgia, "Times New Roman", serif; letter-spacing: -.01em; }
.tg-live { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 3px; font: 800 10.5px var(--ui); letter-spacing: .14em; text-transform: uppercase; color: #C63A2E; white-space: nowrap; }
.tg-dot { width: 8px; height: 8px; border-radius: 50%; background: #E62117; animation: air-blink 1.4s ease-in-out infinite; }
.tg-list { list-style: none; margin: 0; padding: 0; }
.tg-list li + li { border-top: 1px dashed rgba(30,26,34,.35); }
.tg-row { display: grid; grid-template-columns: 52px 40px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 6px; margin: 0 -6px; border-radius: 6px;
  text-decoration: none; color: #1E1A22; transition: background-color .2s ease; }
.tg-time { display: grid; justify-items: start; line-height: 1; }
.tg-time b { font: 400 15px/1 var(--display); letter-spacing: .04em; color: #C63A2E; }
.tg-time i { margin-top: 4px; font: 700 10.5px/1 ui-monospace, Consolas, monospace; font-style: normal; color: #6B5E66; }
.tg-logo { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; color: #FFFDF7; border: 2px solid #1E1A22; box-shadow: 0 3px 0 #1E1A22; transition: transform .25s cubic-bezier(.2, 1.4, .4, 1); }
.tg-logo .ic { width: 20px; height: 20px; }
.tg-yt .tg-logo { background: #E62117; }
.tg-tt .tg-logo { background: #1E1A22; } .tg-tt .tg-logo .ic { filter: drop-shadow(-1.5px 0 0 #25F4EE) drop-shadow(1.5px 0 0 #FE2C55); }
.tg-ig .tg-logo { background: radial-gradient(circle at 30% 105%, #FDD663 0 15%, #F56040 38%, #C13584 65%, #5851DB 100%); }
.tg-show { min-width: 0; display: grid; gap: 2px; }
.tg-show b { font: 700 18px/1.15 Georgia, "Times New Roman", serif; }
.tg-show small { font: 500 13px/1.3 var(--ui); color: #4A3F45; }
.tg-cta { display: inline-flex; align-items: center; gap: 4px; font: 800 12.5px var(--ui); letter-spacing: .06em; text-transform: uppercase; color: #1E1A22;
  border-bottom: 2px solid #C63A2E; padding-bottom: 1px; white-space: nowrap; }
.tg-cta::after { content: "›"; font: 400 15px/1 var(--display); transition: transform .2s ease; }
/* hover: the row gets a highlighter stroke, the logo hops, the arrow nudges */
.tg-row:hover, .tg-row:focus-visible { background: linear-gradient(transparent 12%, rgba(255,226,122,.75) 12% 88%, transparent 88%); outline: none; }
.tg-row:hover .tg-logo, .tg-row:focus-visible .tg-logo { transform: translateY(-3px) rotate(-6deg); }
.tg-row:hover .tg-cta::after, .tg-row:focus-visible .tg-cta::after { transform: translateX(3px); }
.tg-row:focus-visible .tg-show b { text-decoration: underline; text-underline-offset: 3px; }
:root[data-theme="dark"] .tguide { box-shadow: 0 6px 0 #0F0B12, 0 18px 30px -22px rgba(0,0,0,.8); border-color: #0F0B12; }
@media (max-width: 380px) { .tg-row { grid-template-columns: 44px 36px minmax(0, 1fr) auto; gap: 9px; } .tg-logo { width: 36px; height: 36px; } .tg-show b { font-size: 16px; } .tg-show small { font-size: 12px; } }
@media (prefers-reduced-motion: reduce) { .tg-dot { animation: none; } .tg-logo, .tg-cta::after { transition: none; } }

/* =====================================================================
   "Give it a whack!": tap the TV, it shakes, the picture fizzes; 5 whacks fix it for a moment
   ===================================================================== */
.tv { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.whack-tag { position: absolute; left: -8px; top: -22px; z-index: 5; font: 800 12px var(--ui); color: #FFFDF7; background: #C63A2E; border: 2px solid #1E1A22;
  border-radius: 8px; padding: 5px 10px; box-shadow: 0 3px 0 #1E1A22; transform: rotate(-7deg); pointer-events: none; white-space: nowrap;
  animation: tag-wiggle 2.4s ease-in-out 1.5s infinite; transition: opacity .25s; }
.whack-tag::after { content: ""; position: absolute; left: 22px; bottom: -8px; width: 10px; height: 10px; background: #C63A2E; border-right: 2px solid #1E1A22; border-bottom: 2px solid #1E1A22; transform: rotate(45deg); }
.whack-tag.gone { opacity: 0; animation: none; }
@keyframes tag-wiggle { 0%, 70%, 100% { transform: rotate(-7deg); } 78% { transform: rotate(-12deg) translateY(-2px); } 86% { transform: rotate(-3deg); } 94% { transform: rotate(-9deg); } }
/* the whack: a quick jolt of the whole set */
.tv.whacked .tv-body { animation: whack .38s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes whack { 0% { transform: none; } 20% { transform: translateX(-7px) rotate(-2.2deg); } 45% { transform: translateX(5px) rotate(1.6deg); } 70% { transform: translateX(-2px) rotate(-.6deg); } 100% { transform: none; } }
/* the picture fizzes for a moment */
.tv-screen.hit::before { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: repeating-radial-gradient(circle at 23% 41%, #fff 0 1px, transparent 1px 3px), repeating-radial-gradient(circle at 71% 63%, #999 0 1px, transparent 1px 2px), rgba(60,60,60,.85);
  background-size: 6px 6px, 5px 5px; animation: fizz .32s steps(3) forwards; }
@keyframes fizz { 0% { opacity: .95; transform: translateY(-3%); } 60% { opacity: .7; transform: translateY(2%); } 100% { opacity: 0; } }
.whacks { position: absolute; left: 12px; top: 10px; z-index: 4; font: 700 13px/1 ui-monospace, Consolas, monospace; color: #FFE27A; text-shadow: 0 0 6px rgba(255,226,122,.8); letter-spacing: .06em; }
/* fixed! the mascot cheers for a moment, then the signal drops again */
.ch-fixed { display: grid; place-items: end center; z-index: 2; }
.ch-fixed .rays { position: absolute; left: 50%; top: 78%; width: 300%; aspect-ratio: 1; transform: translate(-50%, -50%); /* a big square spun around the mascot: no black corners */
  background:
    radial-gradient(circle at 50% 50%, rgba(255,253,240,.95) 0 4%, transparent 16%),
    repeating-conic-gradient(from 0deg at 50% 50%, rgba(150,96,10,.16) 0 .8deg, transparent .8deg 12deg),
    repeating-radial-gradient(circle at 50% 50%, rgba(200,140,20,.38) 0 2.5px, transparent 2.5px 26px),
    radial-gradient(circle at 50% 50%, #FFE27A, #F5C842 26%, #E2A92E 47%); animation: spinc 28s linear infinite; }
.ch-fixed img { position: relative; width: 52%; height: auto; margin-bottom: -4%; filter: drop-shadow(0 8px 10px rgba(0,0,0,.35)); animation: cheer .6s cubic-bezier(.2, 1.5, .4, 1) both; }
.fixed-say { position: absolute; left: 50%; top: 14%; transform: translateX(-50%) rotate(-6deg); white-space: nowrap; font: 400 clamp(15px, 4.4vw, 22px)/1 var(--display); text-transform: uppercase;
  color: #C63A2E; background: #FFFDF7; border: 3px solid #C63A2E; border-radius: 10px; padding: 7px 12px 6px; box-shadow: inset 0 0 0 2px #FFFDF7, inset 0 0 0 4px #C63A2E; }
@keyframes cheer { from { transform: translateY(40%) scale(.8); } to { transform: none; } }
.tv-screen.fixed .ch-fixed { opacity: 1; }
.tv-screen.fixed .card, .tv-screen.fixed .chan { opacity: 0; transition: opacity .15s; }
.tv-screen.fixed .fixed-say { animation: say-in .35s cubic-bezier(.2, 1.5, .4, 1) .15s both; }
@media (prefers-reduced-motion: reduce) { .whack-tag, .ch-fixed .rays, .ch-fixed img, .tv-screen.hit::before { animation: none; } .tv-screen.hit::before { opacity: 0; } }
.tv-screen.fixed .fixed-say { animation: fsay-in .4s cubic-bezier(.2, 1.5, .4, 1) .15s both; }
@keyframes fsay-in { from { opacity: 0; transform: translateX(-50%) rotate(-6deg) scale(2); } to { opacity: 1; transform: translateX(-50%) rotate(-6deg) scale(1); } }

/* sign-off at the bottom: badge, name with TM, tagline, copyright (same style as the TV guide) */
.mt-sign { display: grid; justify-items: center; gap: 2px; margin-top: 34px; padding-top: 18px; width: 100%; max-width: 528px; border-top: 4px double rgba(30,26,34,.35); text-align: center; }
:root[data-theme="dark"] .mt-sign { border-top-color: rgba(251,244,228,.25); }
.mt-sign img { width: 40px; height: 40px; margin-bottom: 6px; transform: rotate(-6deg); }
.mt-sign-name { margin: 0; font: 400 20px/1 var(--display); color: var(--ink); }
.mt-sign-name b { font-weight: 400; color: #C63A2E; }
.mt-sign-tag { margin: 6px 0 0; font: italic 600 15px/1.3 Georgia, "Times New Roman", serif; color: var(--ink-2); }
.mt-sign-c { margin: 10px 0 0; font: 600 12px var(--ui); letter-spacing: .04em; color: var(--ink-2); opacity: .85; }
.mt-sign-c .tm { font-size: .62em; margin-left: .25em; }
.mt-sign-c .tm { font-size: .5em; vertical-align: .55em; }
/* tablets (760-979px): not enough room for the gang beside the TV, so they stand in a row in front of it (4 each side) */
@media (min-width: 760px) and (max-width: 979px) {
  .stage { grid-template-columns: 1fr 1fr; grid-template-areas: "tv tv" "l r"; align-items: start; }
  .stage .tv { width: min(100%, 440px); }
  .crowd.left { justify-self: end; margin: -52px 4px 0 0; }
  .crowd.right { justify-self: start; margin: -52px 0 0 4px; }
  .crowd .dude { width: 68px; margin: 0 -10px; }
  .crowd .dude:nth-child(n+4) { display: block; }
  .crowd .dude:nth-child(n+5) { display: none; }
}
/* phones and tablets: show the whole gang (all 10), sized to fit the screen width */
@media (max-width: 979px) {
  .crowd .dude, .crowd .dude:nth-child(n+4), .crowd .dude:nth-child(n+5) { display: block; }
}
@media (max-width: 759px) {
  .crowd .dude { width: clamp(38px, 11.5vw, 54px); margin: 0 -6px; }
  .crowd.left { margin-right: 2px; } .crowd.right { margin-left: 2px; }
}
/* the red "Give it a whack!" sticker sits above the cabinet's top-left, clear of the screen edge and the TV corner */
.whack-tag { left: 14px; top: -38px; transform: rotate(-5deg); font-size: 12.5px; padding: 6px 11px; }
@keyframes tag-wiggle { 0%, 70%, 100% { transform: rotate(-5deg); } 78% { transform: rotate(-10deg) translateY(-2px); } 86% { transform: rotate(-1deg); } 94% { transform: rotate(-7deg); } }
@media (min-width: 760px) { .whack-tag { left: 22px; top: -40px; font-size: 13.5px; } }

/* 11-24: the Told Ya cat on top of the TV: walks slowly to the red bubble and back, wags its tail, sticks its tongue out */
.tv-cat { position: absolute; right: 27%; top: -62px; width: 74px; aspect-ratio: 520 / 480; z-index: 2; pointer-events: none; --walk: -90px; }
.tc-walk, .tc-waddle { position: absolute; inset: 0; }
.tc-walk { animation: tcwalk 18s ease-in-out infinite; }
.tc-waddle { transform-origin: 42% 94%; animation: tcwaddle 18s linear infinite; }
.tc-waddle img { position: absolute; inset: 0; width: 100%; height: 100%; }
.tc-tail { transform-origin: 63.5% 85%; animation: tctail 1.8s ease-in-out infinite; }
.tc-tongue { transform-origin: 44% 47.5%; transform: scaleY(0); animation: tctongue 18s ease-in-out infinite; }
@keyframes tcwalk { 0%, 16.67% { transform: translateX(0); } 50.00%, 61.11% { transform: translateX(var(--walk)); } 94.44%, 100% { transform: translateX(0); } }
@keyframes tcwaddle { 0%, 16.67%, 50.00%, 61.11%, 94.44%, 100% { transform: rotate(0deg) translateY(0); } 19.44% { transform: rotate(-5deg) translateY(-3px); } 22.22% { transform: rotate(5deg) translateY(-3px); } 25.00% { transform: rotate(-5deg) translateY(-3px); } 27.78% { transform: rotate(5deg) translateY(-3px); } 30.56% { transform: rotate(-5deg) translateY(-3px); } 33.33% { transform: rotate(5deg) translateY(-3px); } 36.11% { transform: rotate(-5deg) translateY(-3px); } 38.89% { transform: rotate(5deg) translateY(-3px); } 41.67% { transform: rotate(-5deg) translateY(-3px); } 44.44% { transform: rotate(5deg) translateY(-3px); } 47.22% { transform: rotate(-5deg) translateY(-3px); } 63.89% { transform: rotate(-5deg) translateY(-3px); } 66.67% { transform: rotate(5deg) translateY(-3px); } 69.44% { transform: rotate(-5deg) translateY(-3px); } 72.22% { transform: rotate(5deg) translateY(-3px); } 75.00% { transform: rotate(-5deg) translateY(-3px); } 77.78% { transform: rotate(5deg) translateY(-3px); } 80.56% { transform: rotate(-5deg) translateY(-3px); } 83.33% { transform: rotate(5deg) translateY(-3px); } 86.11% { transform: rotate(-5deg) translateY(-3px); } 88.89% { transform: rotate(5deg) translateY(-3px); } 91.67% { transform: rotate(-5deg) translateY(-3px); } }
@keyframes tctail { 0%, 100% { transform: rotate(-10deg); } 50% { transform: rotate(14deg); } }
@keyframes tctongue { 0%, 7.22%, 16.11%, 52.78%, 60.56%, 100% { transform: scaleY(0); } 8.89%, 14.44%, 54.44%, 58.89% { transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) { .tc-walk, .tc-waddle, .tc-tail { animation: none; } .tc-tongue { animation: none; transform: scaleY(1); } }

/* 11-24: one "Told Ya… or Fake?" question while you wait (facts from assets/facts.js) */
.tq { box-sizing: border-box; width: 100%; max-width: 528px; margin-top: 26px; padding: 18px 18px 16px; text-align: center; color: #1E1A22;
  background: #FFF8E6; border: 3px solid #1E1A22; border-radius: 16px; box-shadow: 0 6px 0 #1E1A22; }
.tq-kicker { margin: 0 0 8px; font-size: 14px; letter-spacing: .02em; color: #5A4E44; }
.tq-kicker b { font: 400 18px/1.1 var(--display); color: #C63A2E; letter-spacing: 0; }
.tq-claim { margin: 0 0 14px; font-size: 18px; line-height: 1.4; font-weight: 700; text-wrap: balance; }
.tq-btns { display: flex; gap: 12px; justify-content: center; }
.tq-btn { min-width: 128px; min-height: 46px; padding: 0 18px; font: 400 18px/1 var(--display); color: #1E1A22; border: 3px solid #1E1A22; border-radius: 999px;
  box-shadow: 0 4px 0 #1E1A22; cursor: pointer; transition: transform .12s ease, box-shadow .12s ease; }
.tq-true { background: #FFE27A; } .tq-fake { background: #F4C2BC; }
.tq-btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 6px 0 #1E1A22; }
.tq-btn:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 1px 0 #1E1A22; }
.tq-btn:focus-visible, .tq-next:focus-visible, .tq-watch:focus-visible { outline: 3px solid #C63A2E; outline-offset: 3px; }
.tq-btn:disabled { cursor: default; opacity: .45; } .tq-btn.is-pick { opacity: 1; }
.tq-result { margin-top: 14px; padding-top: 12px; border-top: 2px dashed rgba(30,26,34,.25); }
.tq-verdict { margin: 0 0 6px; font: 400 20px/1.1 var(--display); } .tq-verdict.ok { color: #2E7D46; } .tq-verdict.no { color: #C63A2E; }
.tq-why { margin: 0 0 12px; font-size: 15px; line-height: 1.45; color: #3A322C; }
.tq-links { display: flex; flex-wrap: wrap; gap: 10px 16px; justify-content: center; align-items: center; margin: 0; }
.tq-watch { font-weight: 700; color: #C63A2E; text-decoration: none; border-bottom: 2px solid currentColor; }
.tq-next { font: inherit; font-size: 14px; color: #5A4E44; background: none; border: 0; text-decoration: underline; cursor: pointer; padding: 6px; }
:root[data-theme="dark"] .tq { box-shadow: 0 6px 0 #0F0B12, 0 18px 30px -22px rgba(0,0,0,.8); border-color: #0F0B12; }

/* 11-24: banner look: cream notebook with a dot grid, sticky notes and red doodles in the side margins (wide screens only) */
@font-face { font-family: "Cabin Sketch"; src: url("CabinSketch-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
body.mt { position: relative; overflow-x: hidden; background-color: #FBF4E4;
  background-image: radial-gradient(rgba(150,120,80,.22) 1.6px, transparent 1.8px), radial-gradient(ellipse at 50% 35%, rgba(255,255,255,.55), transparent 65%);
  background-size: 26px 26px, 100% 100%; background-attachment: scroll, fixed; }
:root[data-theme="dark"] body.mt { background-color: #1B1520;
  background-image: radial-gradient(rgba(246,238,221,.09) 1.6px, transparent 1.8px), radial-gradient(ellipse at 50% 35%, rgba(255,226,122,.05), transparent 65%); }
.mt-deco { display: none; }
@media (min-width: 1100px) {
  .mt-deco { display: block; position: absolute; inset: 0 0 auto 0; height: 900px; pointer-events: none; z-index: 0; }
  .mt-wrap { position: relative; z-index: 1; }
  .dk-tape { position: absolute; left: calc(50% - 560px); top: 70px; padding: 10px 22px 8px; font: 700 26px/1 "Fredoka", var(--ui); color: #1E1A22; transform: rotate(-3deg);
    background: linear-gradient(90deg, rgba(255,226,122,.92), rgba(255,215,90,.92)); clip-path: polygon(1% 6%, 99% 0, 100% 94%, 0 100%); }
  .dk-note { position: absolute; width: 190px; padding: 30px 14px 34px; box-sizing: border-box; text-align: center; font: 700 25px/1.25 "Cabin Sketch", var(--ui); color: #5A4E44;
    box-shadow: 0 12px 18px -10px rgba(60,40,20,.35); }
  .dk-note::before { content: ""; position: absolute; left: 50%; top: -12px; width: 110px; height: 24px; transform: translateX(-50%) rotate(-2deg); background: rgba(240,150,170,.55); }
  .dk-note::after { content: ""; position: absolute; right: 0; bottom: 0; border: 14px solid transparent; border-right-color: rgba(0,0,0,.08); border-bottom-color: rgba(0,0,0,.08); }
  .n-yel { right: calc(50% - 600px); top: 70px; background: #FFE27A; transform: rotate(3deg); }
  .n-blue { left: calc(50% - 590px); top: 520px; background: #A9D8F2; transform: rotate(-4deg); }
  .n-pink { right: calc(50% - 590px); top: 540px; background: #F6B8CC; transform: rotate(4deg); }
  .dk-q { position: absolute; left: calc(50% - 630px); top: 600px; font: 700 34px/1 "Cabin Sketch", var(--ui); color: #E0727A; transform: rotate(-8deg); }
  .dk-star { position: absolute; width: 44px; height: 44px; color: #E0525A; opacity: .85; }
  .dk-star svg { width: 100%; height: 100%; }
  .s1 { left: calc(50% - 620px); top: 80px; } .s2 { left: calc(50% - 300px); top: 60px; width: 34px; height: 34px; }
  .s3 { right: calc(50% - 560px); top: 470px; } .s4 { left: calc(50% - 470px); top: 780px; width: 34px; height: 34px; }
  .dk-check { position: absolute; left: calc(50% - 600px); top: 820px; font: 700 30px/1 "Fredoka", var(--ui); color: #C63A2E; transform: rotate(-3deg); display: inline-flex; align-items: center; gap: 8px; }
  .dk-check svg { width: 36px; height: 28px; }
  :root[data-theme="dark"] .dk-note { filter: saturate(.85) brightness(.92); }
  :root[data-theme="dark"] .dk-tape { color: #1E1A22; }
  :root[data-theme="dark"] .dk-q, :root[data-theme="dark"] .dk-star, :root[data-theme="dark"] .dk-check { color: #FF7A72; }
}

/* 11-24 extras: pet the cat, peeking mascot, fact of the day, Shorts on the TV */
.tv-cat { pointer-events: auto; cursor: pointer; padding: 0; border: 0; background: none; font: inherit; }
.tv-cat:focus-visible { outline: 3px solid #C63A2E; outline-offset: 4px; border-radius: 12px; }
.tv-cat.pet .tc-tongue { animation: none; transform: scaleY(1); }
.tv-cat.pet .tc-waddle { animation: tcpet .5s ease-out; }
@keyframes tcpet { 0% { transform: scale(1, 1); } 35% { transform: scale(1.08, .9); } 70% { transform: scale(.96, 1.06); } 100% { transform: scale(1, 1); } }
.tc-pop { position: absolute; left: 50%; bottom: 100%; transform: translate(-50%, 6px) scale(.6); opacity: 0; white-space: nowrap; padding: 4px 10px; font: 400 15px/1 var(--display); color: #C63A2E;
  background: #FFF8E6; border: 2.5px solid #1E1A22; border-radius: 999px; box-shadow: 0 3px 0 #1E1A22; pointer-events: none; }
.tv-cat.pet .tc-pop { animation: tcpop 1.3s ease-out forwards; }
@keyframes tcpop { 0% { opacity: 0; transform: translate(-50%, 6px) scale(.6); } 15% { opacity: 1; transform: translate(-50%, -4px) scale(1.05); } 75% { opacity: 1; transform: translate(-50%, -10px) scale(1); } 100% { opacity: 0; transform: translate(-50%, -18px) scale(.95); } }
.pet-count { margin: 6px 0 0; font-size: 13px; color: #6A5E54; }
:root[data-theme="dark"] .pet-count { color: #CFC3B4; }

.peek { position: fixed; z-index: 30; width: 92px; height: 92px; padding: 0; border: 0; background: none; cursor: pointer; transition: transform .35s cubic-bezier(.3,1.5,.5,1); }
.peek img { width: 100%; height: auto; display: block; filter: drop-shadow(0 4px 0 rgba(30,26,34,.35)); }
.peek.left { left: 0; transform: translateX(-110%) rotate(18deg); }
.peek.right { right: 0; transform: translateX(110%) rotate(-18deg); }
.peek.left.in { transform: translateX(-28%) rotate(18deg); }
.peek.right.in { transform: translateX(28%) rotate(-18deg); }
.peek-say { position: absolute; top: -6px; left: 50%; transform: translateX(-50%) scale(0); padding: 3px 8px; font: 400 14px/1 var(--display); color: #C63A2E; background: #FFF8E6; border: 2.5px solid #1E1A22; border-radius: 999px; white-space: nowrap; transition: transform .2s ease; }
.peek.got .peek-say { transform: translateX(-50%) scale(1); }
.peek:focus-visible { outline: 3px solid #C63A2E; outline-offset: 2px; border-radius: 50%; }
.peek-score { position: fixed; z-index: 30; right: 12px; bottom: 12px; margin: 0; padding: 6px 12px; font: 400 15px/1 var(--display); color: #1E1A22; background: #FFE27A; border: 2.5px solid #1E1A22; border-radius: 999px; box-shadow: 0 3px 0 #1E1A22; }

.fotd { box-sizing: border-box; width: min(100%, 420px); margin-top: 22px; padding: 26px 18px 18px; text-align: center; color: #3A322C; background: #FFE27A; transform: rotate(-1.5deg);
  box-shadow: 0 12px 18px -10px rgba(60,40,20,.35); position: relative; }
.fotd::before { content: ""; position: absolute; left: 50%; top: -11px; width: 110px; height: 22px; transform: translateX(-50%) rotate(2deg); background: rgba(240,150,170,.6); }
.fotd-k { margin: 0 0 6px; font: 700 14px/1 "Fredoka", var(--ui); letter-spacing: .06em; text-transform: uppercase; color: #C63A2E; }
.fotd-t { margin: 0 0 10px; font: 700 21px/1.25 "Cabin Sketch", var(--ui); color: #3A322C; text-wrap: balance; }
.fotd-watch { font-weight: 700; color: #1E1A22; text-decoration: none; border-bottom: 2px solid currentColor; }
.fotd-watch:focus-visible { outline: 3px solid #C63A2E; outline-offset: 3px; }

.ch-sh { background: #111; pointer-events: none; }
.ch-sh.on .sh-watch { pointer-events: auto; }
.tv-screen .ch-sh.on { opacity: 1; z-index: 3; }
.ch-sh .sh-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(14px) brightness(.55); transform: scale(1.15); }
.ch-sh .sh-img { position: absolute; left: 50%; top: 0; height: 100%; width: auto; transform: translateX(-50%); box-shadow: 0 0 24px rgba(0,0,0,.6); }
.ch-sh .sh-title { position: absolute; left: 8px; right: 8px; bottom: 8px; padding: 4px 8px; font: 700 12px/1.25 var(--ui); color: #fff; background: rgba(0,0,0,.6); border-radius: 6px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-align: left; }
.ch-sh .sh-watch { position: absolute; right: 10px; top: 10px; padding: 6px 12px; font: 400 15px/1 var(--display); color: #1E1A22; background: #FFE27A; border: 2.5px solid #1E1A22; border-radius: 999px; text-decoration: none; box-shadow: 0 3px 0 #1E1A22; }
.ch-sh .sh-watch:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.tv-screen:has(.ch-sh.on) .card { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .peek { transition: none; } .tv-cat.pet .tc-waddle, .tv-cat.pet .tc-pop { animation: none; } .tv-cat.pet .tc-pop { opacity: 1; transform: translate(-50%, -8px); } }

/* 11-24: light / dark switch (same look as the links page) */
.mt-theme { position: fixed; top: 14px; right: 14px; z-index: 40; display: grid; place-items: center; width: 46px; height: 46px; padding: 0; border-radius: 50%; cursor: pointer;
  color: #1E1A22; background: #FFE27A; border: 2px solid #1E1A22; box-shadow: 0 4px 0 #1E1A22; transition: transform .15s ease, box-shadow .15s ease; }
.mt-theme .ic { width: 22px; height: 22px; }
.mt-theme:hover { transform: translateY(-2px) rotate(-8deg); box-shadow: 0 6px 0 #1E1A22; }
.mt-theme:active { transform: translateY(3px); box-shadow: 0 1px 0 #1E1A22; }
.mt-theme.flip .ic { animation: mt-flip .45s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes mt-flip { from { transform: rotate(-180deg) scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
.mt-theme:focus-visible { outline: 3px solid #C63A2E; outline-offset: 3px; }
:root[data-theme="dark"] .mt-theme { color: #FFE27A; background: #2A2131; border-color: #FFE27A; box-shadow: 0 4px 0 #0F0B12; }
@media (prefers-reduced-motion: reduce) { .mt-theme, .mt-theme.flip .ic { transition: none; animation: none; } }
