/* Shart Tank — one design system for every page. A bright cartoon game-show bathroom: glossy porcelain, chrome,
   tile, and a gas-green glow when a deal flushes. Colours and motion live in the variables below. */
:root {
  --porcelain: #F6F4EE; --tile: #E7ECEA; --tile-line: #D7DEDB; --ink: #2A1E14; --muted: #7B6E62; --brown: #7A4A22; --brown-dk: #5E3818;
  --green: #8BD43A; --green-dk: #5E9E1C; --red: #E8483B; --red-dk: #B8311F; --gold: #F2B632; --gold-dk: #C98E12;
  --white: #FFFFFF; --chrome: #C9D2D6; --water: #CFEFF0; --water-dk: #8FD3D6;
  --mega: #4E6E8E; --plunge: #C4612F; --kernel: #5F7A36; --skid: #7656C2;
  --r: 16px; --r-sm: 10px; --shadow: 0 2px 0 var(--ink), 0 10px 24px rgba(42, 30, 20, .08); --shadow-sm: 0 2px 0 var(--ink);
  --border: 2.5px solid var(--ink);
  --ease: cubic-bezier(.2, .9, .3, 1.2); --ease-out: cubic-bezier(.16, 1, .3, 1); --fast: 140ms; --med: 260ms; --slow: 520ms;
  --font: "Rubik", system-ui, -apple-system, "Segoe UI", sans-serif; --display: "Lilita One", "Rubik", sans-serif; --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--porcelain); color: var(--ink); font: 15px/1.5 var(--font); min-height: 100vh; overflow-x: hidden; }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--tile-line) 1px, transparent 1px), linear-gradient(90deg, var(--tile-line) 1px, transparent 1px);
  background-size: 44px 44px; opacity: .55; mask-image: linear-gradient(#000, transparent 70%); }
a { color: var(--brown); text-decoration-thickness: 2px; text-underline-offset: 3px; }
button { font: inherit; color: inherit; }
img { max-width: 100%; }
.mono { font-family: var(--mono); }
.display { font-family: var(--display); font-weight: 400; letter-spacing: .01em; }
.muted { color: var(--muted); }
.wrap { width: 100%; max-width: 1360px; margin: 0 auto; padding: 0 16px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.05; margin: 0 0 .4em; letter-spacing: .01em; }
h1 { font-size: clamp(34px, 6vw, 62px); }
h2 { font-size: clamp(26px, 4vw, 38px); }
h3 { font-size: 22px; }
p { margin: 0 0 .8em; }

/* ---- buttons, chips, cards ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border: var(--border); border-radius: 12px;
  background: var(--brown); color: #fff; font-weight: 600; cursor: pointer; text-decoration: none; box-shadow: var(--shadow-sm);
  transition: transform var(--fast) var(--ease), box-shadow var(--fast) var(--ease), background var(--fast); -webkit-tap-highlight-color: transparent; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 3px 0 var(--ink); }
.btn:active { transform: translateY(2px); box-shadow: 0 0 0 var(--ink); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: var(--shadow-sm); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn.green { background: var(--green); color: var(--ink); }
.btn.red { background: var(--red); }
.btn.gold { background: var(--gold); color: var(--ink); }
.btn.ghost { background: var(--white); color: var(--ink); }
.btn.sm { min-height: 34px; padding: 6px 12px; font-size: 13px; border-radius: 10px; }
.btn.block { width: 100%; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border: 2px solid var(--ink); border-radius: 999px; background: var(--white); font-size: 12px; font-weight: 700; white-space: nowrap; }
.chip.green { background: var(--green); } .chip.red { background: var(--red); color: #fff; } .chip.gold { background: var(--gold); } .chip.ink { background: var(--ink); color: var(--porcelain); }
.card { background: var(--white); border: var(--border); border-radius: var(--r); box-shadow: var(--shadow); }
.pad { padding: 16px; }
.label { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.empty-state { padding: 22px 16px; text-align: center; color: var(--muted); border: 2px dashed var(--tile-line); border-radius: 12px; background: rgba(255,255,255,.6); }
.skel { background: linear-gradient(90deg, var(--tile) 0%, #f2f5f4 50%, var(--tile) 100%); background-size: 200% 100%; animation: skel 1.2s linear infinite; border-radius: 8px; }
@keyframes skel { to { background-position: -200% 0; } }

/* ---- header ---- */
.top { position: sticky; top: 0; z-index: 40; background: rgba(246, 244, 238, .92); backdrop-filter: blur(8px); border-bottom: var(--border); }
.top .wrap { display: flex; align-items: center; gap: 14px; min-height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: none; }
.brand img, .brand svg { width: 42px; height: 42px; }
.brand b { display: block; font-family: var(--display); font-weight: 400; font-size: 23px; line-height: .95; }
.brand small { display: block; font-size: 9.5px; font-weight: 800; letter-spacing: .14em; color: var(--brown); }
.nav { display: flex; gap: 2px; margin-left: 10px; }
.nav a { padding: 8px 11px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 14px; white-space: nowrap; transition: background var(--fast); }
.nav a:hover { background: var(--tile); }
.nav a.on { background: var(--ink); color: var(--porcelain); }
.top .right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.ca { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 2px solid var(--ink); border-radius: 10px; background: var(--white); font: 600 12px var(--mono); cursor: pointer; }
.ca b { background: var(--brown); color: #fff; padding: 1px 6px; border-radius: 6px; font-family: var(--font); font-size: 11px; }
.iconbtn { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 2px solid var(--ink); border-radius: 10px; background: var(--white); cursor: pointer; text-decoration: none; color: var(--ink); transition: transform var(--fast) var(--ease); }
.iconbtn:hover { transform: translateY(-1px); }
.iconbtn svg { width: 18px; height: 18px; }
.iconbtn.on { background: var(--green); }
.xlink { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 13px; color: var(--ink); text-decoration: none; padding: 8px 10px; border: 2px solid var(--ink); border-radius: 10px; background: var(--white); }
.xlink svg { width: 14px; height: 14px; }
.burger { display: none; }
.nav .nav-ca { display: none; padding: 8px 4px; }
@media (max-width: 370px) {
  .top .right > .ca { display: none; } .nav .nav-ca { display: flex; }
  .nav .nav-ca .ca .addr, .nav .nav-ca .ca > span:last-child { display: inline; }
  .brand b { font-size: 15.5px !important; } .brand img, .brand svg { width: 30px !important; height: 30px !important; } .brand { gap: 7px; }
  .top .right { gap: 5px !important; } .iconbtn { width: 36px !important; height: 36px !important; }
  .stats { gap: 4px; } .stat { min-width: 0 !important; padding: 3px 5px !important; } .stat b { font-size: 13px !important; } .stat small { font-size: 6.5px !important; letter-spacing: .04em; }
  .studio { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 1180px) { .xlink span { display: none; } .nav { margin-left: 4px; } .nav a { padding: 8px 7px; font-size: 13.5px; } .ca .addr { display: none; } .top .wrap { gap: 10px; } }
@media (max-width: 960px) {
  .nav { position: fixed; inset: 66px 0 auto 0; flex-direction: column; background: var(--porcelain); border-bottom: var(--border); padding: 10px 16px 14px; margin: 0; transform: translateY(-120%); transition: transform var(--med) var(--ease-out); z-index: 39; }
  .nav.open { transform: none; }
  .nav a { padding: 12px; font-size: 16px; }
  .burger { display: inline-grid; }
  .ca .addr { display: none; }
}
@media (max-width: 520px) {
  .brand b { font-size: 18px; } .brand small { font-size: 8px; letter-spacing: .1em; } .brand img, .brand svg { width: 34px; height: 34px; }
  .xlink { display: none; } .top .wrap { gap: 6px; } .top .right { gap: 6px; }
  .ca { padding: 6px 7px; } .ca > span:last-child { display: none; }
  .iconbtn { width: 38px; height: 38px; }
  .connect { padding: 6px 10px; min-height: 38px; } .connect span { display: none; }
}

/* ---- ticker tape ---- */
.tape { overflow: hidden; border-bottom: var(--border); background: var(--ink); color: var(--porcelain); height: 34px; display: flex; align-items: center; }
.tape-track { display: flex; gap: 36px; white-space: nowrap; animation: tape 40s linear infinite; padding-left: 16px; font: 700 12.5px var(--mono); }
.tape-track span { display: inline-flex; align-items: center; gap: 8px; }
.tape-track .k-flushed, .tape-track .k-launched { color: var(--green); } .tape-track .k-clogged { color: #FF8A7E; } .tape-track .k-dry { color: #9FD5E8; } .tape-track .k-fast { color: var(--gold); }
@keyframes tape { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.tape:hover .tape-track { animation-play-state: paused; }

/* ---- studio layout ---- */
.studio { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 16px; padding-top: 16px; padding-bottom: 40px; align-items: start; }
.studio .side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 82px; }
@media (max-width: 1080px) { .studio { grid-template-columns: minmax(0, 1fr); } .studio .side { position: static; } }

/* ---- the stage ---- */
.stage { position: relative; border: var(--border); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); isolation: isolate;
  background: linear-gradient(180deg, #EAF1EF 0%, #DDE7E4 64%, #CBD7D3 64.2%, #C3D0CC 100%); aspect-ratio: 16 / 10.4; min-height: 440px; }
.stage::before { content: ""; position: absolute; inset: 0 0 36% 0; z-index: -1;
  background-image: linear-gradient(rgba(255,255,255,.7) 2px, transparent 2px), linear-gradient(90deg, rgba(255,255,255,.7) 2px, transparent 2px);
  background-size: 56px 56px; background-position: -2px -2px; }
.stage::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 36%; z-index: -1;
  background: repeating-conic-gradient(#BFCDC8 0 25%, #D3DEDA 0 50%) 0 0 / 40px 40px; opacity: .55; }
.stage-top { position: absolute; top: 14px; left: 14px; right: 14px; display: flex; align-items: flex-start; gap: 8px; z-index: 5; }
.onair { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border: 2px solid var(--ink); border-radius: 8px; background: var(--red); color: #fff; font: 700 12px var(--font); letter-spacing: .06em; }
.onair i { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: blink 1.2s steps(2) infinite; }
.onair.off { background: var(--white); color: var(--muted); } .onair.off i { background: var(--muted); animation: none; }
@keyframes blink { 50% { opacity: .2; } }
.ep-chip { padding: 5px 10px; border: 2px solid var(--ink); border-radius: 8px; background: var(--white); font: 700 12px var(--mono); }
.stats { margin-left: auto; display: flex; gap: 6px; }
.stat { min-width: 70px; padding: 6px 9px 5px; border: 2px solid var(--ink); border-radius: 10px; background: var(--white); text-align: center; }
.stat b { display: block; font: 400 20px/1 var(--display); }
.stat small { display: block; font-size: 9px; font-weight: 800; letter-spacing: .08em; color: var(--muted); margin-top: 2px; }
.phase-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: rgba(42,30,20,.12); z-index: 6; }
.phase-bar i { display: block; height: 100%; background: var(--brown); transform-origin: left; transition: transform 1s linear; }

/* the stage's main area: two stalls each side of the tank, like a judging panel */
.stage-main { position: absolute; inset: 66px 12px 84px 12px; display: grid; grid-template-columns: 1.12fr 1.12fr 1.3fr 1.12fr 1.12fr; align-items: end; gap: 1.4%; z-index: 2; }
.stage-main .seat1 { grid-column: 1; grid-row: 1; } .stage-main .seat2 { grid-column: 2; grid-row: 1; }
.stage-main .seat3 { grid-column: 4; grid-row: 1; } .stage-main .seat4 { grid-column: 5; grid-row: 1; }
/* the tank (centre) */
.tank { grid-column: 3; grid-row: 1; align-self: center; z-index: 2; text-align: center; padding-top: 6%; }
.tank-handle { position: absolute; left: 6%; top: 12%; width: 18%; height: 9%; border: 3px solid var(--ink); border-radius: 6px; background: linear-gradient(#F7FAFB, var(--chrome)); z-index: 3; transform-origin: 85% 50%; transition: transform var(--med) var(--ease); }
.tank.flushing .tank-handle { transform: rotate(-28deg); }
@keyframes swirl { to { transform: rotate(360deg); } }
.tank-name { margin-top: 12px; }
.tank-name .ticker { font: 400 clamp(24px, 3.2vw, 40px)/1 var(--display); }
.tank-name .coin { font-weight: 700; font-size: clamp(13px, 1.3vw, 16px); margin-top: 2px; overflow-wrap: anywhere; }
.tank-name .lane { margin-top: 4px; }

/* the four stalls */
.stall { position: relative; display: flex; flex-direction: column; align-items: center; z-index: 3; }
.stall .who { position: relative; width: 92%; margin-bottom: -20%; z-index: 1; transition: transform var(--med) var(--ease); }
.stall .who svg { width: 100%; height: auto; display: block; }
.stall.thinking .who { animation: bob 1.4s ease-in-out infinite; }
.stall.in .who { animation: hop .5s var(--ease) 1; }
.stall.out .who { animation: shake .45s ease-in-out 1; }
@keyframes bob { 50% { transform: translateY(-4px); } }
@keyframes hop { 40% { transform: translateY(-14px) scale(1.04); } }
@keyframes shake { 25% { transform: rotate(-4deg); } 75% { transform: rotate(4deg); } }
.door { position: relative; z-index: 2; width: 100%; border: 3px solid var(--ink); border-radius: 10px 10px 4px 4px; background: linear-gradient(180deg, var(--c, var(--brown)) 0%, color-mix(in srgb, var(--c, var(--brown)) 78%, #000) 100%);
  padding: 8px 6px 10px; text-align: center; color: #fff; box-shadow: 0 3px 0 var(--ink); }
.door::before { content: ""; position: absolute; right: 9px; top: 46%; width: 9px; height: 9px; border-radius: 50%; background: var(--chrome); border: 2px solid var(--ink); }
.door b { display: block; font: 400 clamp(13px, 1.5vw, 18px)/1 var(--display); text-shadow: 0 2px 0 rgba(0,0,0,.25); }
.door small { display: block; font-size: 10px; font-weight: 700; opacity: .85; margin-top: 2px; }
.door .chair { display: inline-block; margin-top: 4px; font-size: 9.5px; font-weight: 800; letter-spacing: .04em; background: var(--gold); color: var(--ink); border: 1.5px solid var(--ink); border-radius: 6px; padding: 1px 5px; }
.status-pill { position: absolute; top: -6px; left: 50%; transform: translateX(-50%); z-index: 4; }
.status-pill .chip { font-size: 10px; padding: 2px 7px; }
.bubble { position: absolute; bottom: 92%; left: 50%; z-index: 6; min-width: 82px; transform: translate(-50%, 0) scale(0); transform-origin: 50% 100%; padding: 6px 10px; border: 2.5px solid var(--ink); border-radius: 12px; background: var(--white);
  font: 400 clamp(14px, 1.6vw, 20px)/1 var(--display); text-align: center; white-space: nowrap; box-shadow: 0 3px 0 var(--ink); transition: transform var(--med) var(--ease); }
.bubble::after { content: ""; position: absolute; left: 50%; bottom: -9px; width: 14px; height: 14px; transform: translateX(-50%) rotate(45deg); background: inherit; border-right: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink); }
.bubble.show { transform: translate(-50%, 0) scale(1); }
.bubble.in { background: var(--green); } .bubble.out { background: var(--red); color: #fff; } .bubble.none { background: var(--tile); color: var(--muted); }
.bubble small { display: block; font: 700 10px var(--font); margin-top: 2px; opacity: .85; }

/* caption */
.caption { position: absolute; left: 14px; right: 14px; bottom: 16px; z-index: 7; display: none; }
.caption.show { display: block; }
.caption .tag { display: inline-flex; gap: 8px; align-items: center; padding: 4px 10px; border: 2.5px solid var(--ink); border-bottom: 0; border-radius: 10px 10px 0 0; background: var(--brown); color: #fff; font: 400 15px var(--display); }
.caption .txt { padding: 9px 12px; border: 2.5px solid var(--ink); border-radius: 0 12px 12px 12px; background: var(--white); font-weight: 600; font-size: 15px; box-shadow: 0 3px 0 var(--ink); }

/* full-stage moments: idle, break, FLUSHED, CLOGGED, tank dry */
.moment { position: absolute; inset: 0; z-index: 20; display: grid; place-items: center; text-align: center; padding: 24px; pointer-events: none; opacity: 0; transition: opacity var(--med); }
.moment.show { opacity: 1; pointer-events: auto; }
.moment .big { font: 400 clamp(46px, 9vw, 118px)/.9 var(--display); letter-spacing: .01em; -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; text-shadow: 0 6px 0 var(--ink); }
.moment .sub { margin-top: 14px; display: inline-block; padding: 8px 14px; border: 2.5px solid var(--ink); border-radius: 12px; background: var(--white); font-weight: 700; font-size: clamp(14px, 1.6vw, 18px); box-shadow: 0 3px 0 var(--ink); }
.moment.flushed { background: radial-gradient(circle at 50% 50%, rgba(139,212,58,.42), rgba(139,212,58,.08) 60%, transparent 75%); }
.moment.flushed .big { color: var(--green); animation: pop .55s var(--ease) both; }
.moment.flushed .ring { position: absolute; width: 80vmin; max-width: 760px; aspect-ratio: 1; border-radius: 50%; background: conic-gradient(from 0deg, rgba(139,212,58,0) 0 10%, rgba(139,212,58,.5) 20%, rgba(139,212,58,0) 30% 45%, rgba(139,212,58,.5) 55%, rgba(139,212,58,0) 65% 80%, rgba(139,212,58,.5) 90%, rgba(139,212,58,0)); animation: swirl 1.6s linear infinite; z-index: -1; }
.moment.clogged { background: radial-gradient(circle, rgba(232,72,59,.30), transparent 70%); }
.moment.clogged .big { color: var(--red); animation: wobble .8s ease-in-out both; }
.moment.dry .big { color: #8FC6DE; font-size: clamp(38px, 7vw, 88px); }
.moment.dry { background: radial-gradient(circle, rgba(143,198,222,.35), transparent 70%); }
.moment.idle .card, .moment.brk .card { max-width: 440px; padding: 22px; pointer-events: auto; }
@keyframes pop { 0% { transform: scale(.2) rotate(-8deg); opacity: 0; } 70% { transform: scale(1.08) rotate(2deg); opacity: 1; } 100% { transform: scale(1) rotate(0); } }
@keyframes wobble { 0% { transform: scale(.4); opacity: 0; } 35% { transform: scale(1.1) rotate(-5deg); opacity: 1; } 55% { transform: rotate(4deg); } 75% { transform: rotate(-2deg); } 100% { transform: none; } }
.confetti { position: absolute; inset: 0; z-index: 21; pointer-events: none; overflow: hidden; }
.confetti i { position: absolute; top: -12px; width: 10px; height: 14px; border: 1.5px solid var(--ink); border-radius: 2px; animation: fall 1.8s linear forwards; }
.confetti i.poo { width: 30px; height: auto; border: 0; background: none; }
.confetti i.poo svg { width: 100%; height: auto; display: block; }
/* the site's own icons (no emoji anywhere) */
.ico { display: inline-block; vertical-align: middle; flex: none; }
.bubble .ico { margin-left: 4px; vertical-align: -3px; }
.tape-track .sep { display: inline-flex; } .tape-track .sep .ico { filter: drop-shadow(0 0 0 #fff); }
.drop .pv .ico { display: block; }
.confetti i.tp { width: 16px; height: 16px; background: #fff; border-radius: 1px; background-image: radial-gradient(circle, #D8D4CC 0 1px, transparent 1.5px); background-size: 5px 5px; }
@keyframes fall { to { transform: translate(var(--dx), 115%) rotate(var(--rot)); top: 100%; } }
.oos { display: inline-block; padding: 8px 14px; border: 3px solid var(--ink); background: var(--gold); font: 400 22px var(--display); transform: rotate(-3deg); box-shadow: 0 3px 0 var(--ink); margin-bottom: 12px; }

/* phone stage: tank on top, the four stalls in a row below */
@media (max-width: 700px) {
  .stage { aspect-ratio: auto; min-height: 0; height: 560px; }
  .stage::before { inset: 0 0 34% 0; }
  .stage::after { height: 34%; }
  .stats { position: absolute; top: 34px; right: 0; }
  .stat { min-width: 52px; padding: 4px 6px; } .stat b { font-size: 15px; } .stat small { font-size: 7.5px; }
  .stage-main { inset: 104px 8px 92px 8px; grid-template-columns: repeat(4, 1fr); grid-template-rows: auto 1fr; gap: 6px; }
  .tank { grid-column: 1 / -1; grid-row: 1; width: 36%; margin: 0 auto; padding-top: 4px; }
  .door b { font-size: 11.5px; letter-spacing: -.01em; }
  .stage-main .seat1, .stage-main .seat2, .stage-main .seat3, .stage-main .seat4 { grid-row: 2; }
  .stage-main .seat1 { grid-column: 1; } .stage-main .seat2 { grid-column: 2; } .stage-main .seat3 { grid-column: 3; } .stage-main .seat4 { grid-column: 4; }
  .door { padding: 6px 3px 7px; } .door small { display: none; }
  .bubble { min-width: 64px; padding: 5px 6px; font-size: 14px; }
  .caption { bottom: 10px; }
  .caption .txt { font-size: 13px; padding: 7px 10px; }
}

/* ---- side panels ---- */
.onair-card h3 { margin: 0; font-size: 26px; }
.vote-bar { position: relative; height: 14px; border: 2px solid var(--ink); border-radius: 999px; background: var(--red); overflow: hidden; margin: 8px 0 10px; }
.vote-bar i { position: absolute; inset: 0 auto 0 0; background: var(--green); border-right: 2px solid var(--ink); transition: width var(--slow) var(--ease-out); }
.vote-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.vote-btns .btn { font-size: 15px; }
.vote-btns .btn.picked { outline: 3px solid var(--gold); outline-offset: 2px; }
.tabs { display: flex; border-bottom: var(--border); }
.tabs button { flex: 1; padding: 13px 8px; border: 0; background: none; font-weight: 700; cursor: pointer; border-bottom: 4px solid transparent; margin-bottom: -2.5px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.tabs button[aria-selected="true"] { border-bottom-color: var(--brown); }
.tabs .count { background: var(--brown); color: #fff; border-radius: 999px; padding: 0 7px; font-size: 11px; }
.tabpanel { padding: 14px; max-height: 640px; overflow: auto; overscroll-behavior: contain; }
@media (max-width: 1080px) { .tabpanel { max-height: none; } }
.field { display: block; margin-bottom: 12px; }
.field > span { display: flex; justify-content: space-between; font-size: 12px; font-weight: 700; margin-bottom: 5px; }
.field input, .field textarea { width: 100%; padding: 11px 12px; border: 2px solid var(--ink); border-radius: 10px; background: var(--porcelain); font: inherit; font-size: 16px; color: var(--ink); }
.field input:focus, .field textarea:focus { outline: 3px solid var(--gold); outline-offset: 1px; }
.field textarea { resize: vertical; min-height: 64px; }
.row2 { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 10px; }
.field input, .field textarea { min-width: 0; }
.shart-cards > *, .grid2 > *, .steps > * { min-width: 0; }
.drop { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: center; padding: 10px; border: 2px dashed var(--ink); border-radius: 12px; background: var(--porcelain); cursor: pointer; }
.drop .pv { width: 64px; height: 64px; border-radius: 12px; border: 2px solid var(--ink); background: var(--tile) center/cover; display: grid; place-items: center; font-size: 26px; }
.coin-card { display: grid; grid-template-columns: 56px 1fr; gap: 10px; align-items: center; padding: 10px; border: 2px solid var(--ink); border-radius: 12px; background: var(--porcelain); margin: 12px 0; }
.coin-card img, .coin-card .ph { width: 56px; height: 56px; border-radius: 50%; border: 2px solid var(--ink); object-fit: cover; background: var(--tile); }
.note { font-size: 12.5px; color: var(--muted); }
.msg { padding: 10px 12px; border: 2px solid var(--ink); border-radius: 10px; background: var(--tile); font-size: 13.5px; margin-top: 10px; }
.msg.err { background: #FFE3DF; } .msg.ok { background: #E6F8D2; } .msg.warn { background: #FFF2CF; }
.line-head { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.line-head div { border: 2px solid var(--ink); border-radius: 10px; padding: 8px; background: var(--porcelain); text-align: center; }
.line-head b { display: block; font: 400 22px/1 var(--display); }
.line-head small { font-size: 9.5px; font-weight: 800; letter-spacing: .06em; color: var(--muted); }
.qrow { display: grid; grid-template-columns: 30px 40px 1fr auto; gap: 10px; align-items: center; padding: 8px; border: 2px solid var(--ink); border-radius: 12px; margin-bottom: 7px; background: var(--white); }
.qrow.me { outline: 3px solid var(--gold); }
.qrow.air { background: #FFE9E6; }
.qrow .pos { font: 400 18px var(--display); text-align: center; }
.qrow img { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--ink); object-fit: cover; background: var(--tile); }
.qrow b { display: block; font-size: 14px; } .qrow small { display: block; color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qrow .eta { font: 600 12px var(--mono); color: var(--muted); }
.lane-fast { background: var(--gold); }
.aired { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--tile-line); font-size: 13.5px; }
.log { font: 12.5px/1.45 var(--mono); }
.log .ev { display: grid; grid-template-columns: 46px 1fr; gap: 8px; padding: 5px 0; border-bottom: 1px dashed var(--tile-line); animation: fadein var(--med) var(--ease-out); }
.log .who { display: inline-block; padding: 1px 5px; border-radius: 6px; color: #fff; font: 700 10px var(--font); text-align: center; height: fit-content; }
.log .tool { color: var(--brown); } .log .res { color: var(--green-dk); } .log .res.bad { color: var(--red-dk); } .log .sys { color: var(--muted); }
@keyframes fadein { from { opacity: 0; transform: translateY(4px); } }
.payout { display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; padding: 9px 0; border-bottom: 1px solid var(--tile-line); font-size: 13.5px; }
.payout .links { display: flex; gap: 10px; font-size: 12.5px; }

/* shart cards under the stage */
.shart-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 16px; }
.shart-card { display: grid; grid-template-columns: 54px 1fr; gap: 10px; align-items: center; padding: 10px; border: var(--border); border-radius: 14px; background: var(--white); box-shadow: var(--shadow-sm); border-top: 7px solid var(--c); }
.shart-card .av svg { width: 54px; height: auto; }
.shart-card b { font: 400 clamp(14px, 4.4vw, 18px)/1 var(--display); display: block; overflow-wrap: anywhere; }
.shart-card p { margin: 3px 0 4px; font-size: 12px; line-height: 1.35; color: var(--muted); }
.shart-card .n { font: 700 12px var(--mono); }
@media (max-width: 900px) { .shart-cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 420px) { .shart-card b { font-size: clamp(13px, 3.9vw, 16px); white-space: nowrap; } .shart-card { grid-template-columns: 44px 1fr; } .shart-card .av svg { width: 44px; } .shart-card p { display: none; } }

/* result card for the pitcher */
.result-card { border-color: var(--ink); }
.result-card.flushed { background: #EEF9E1; } .result-card.clogged { background: #FFF0EE; }
.countdown { font: 700 26px var(--mono); }

/* pages */
.page { padding-top: 28px; padding-bottom: 60px; }
.hero { padding: 26px 0 8px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 22px 0; }
.step { padding: 18px; }
.step .n { display: inline-grid; place-items: center; width: 38px; height: 38px; border: 2.5px solid var(--ink); border-radius: 50%; background: var(--gold); font: 400 20px var(--display); margin-bottom: 10px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 800px) { .grid2 { grid-template-columns: 1fr; } }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table td, .table th { padding: 9px 8px; border-bottom: 1px solid var(--tile-line); text-align: left; vertical-align: top; }
.table th { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.ep-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.ep-card { display: grid; grid-template-columns: 56px 1fr; gap: 10px; padding: 12px; text-decoration: none; color: var(--ink); transition: transform var(--fast) var(--ease); }
.ep-card:hover { transform: translateY(-2px); }
.ep-card img { width: 56px; height: 56px; border-radius: 50%; border: 2px solid var(--ink); object-fit: cover; background: var(--tile); }

/* footer */
.foot { position: relative; border-top: var(--border); padding: 24px 0 40px; font-size: 13px; color: var(--muted); background: #FFFDF8; box-shadow: 0 -4px 0 rgba(42, 30, 20, .08); }
.foot .wrap { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 20px; }
.foot b { color: var(--ink); display: block; margin-bottom: 6px; }
.foot a { display: block; color: var(--muted); margin: 3px 0; }
@media (max-width: 700px) { .foot .wrap { grid-template-columns: 1fr; } }

.toast { position: fixed; left: 50%; bottom: 20px; transform: translate(-50%, 140%); z-index: 100; padding: 11px 16px; border: var(--border); border-radius: 12px; background: var(--ink); color: var(--porcelain); font-weight: 600; box-shadow: var(--shadow); transition: transform var(--med) var(--ease); max-width: calc(100% - 32px); }
.toast.show { transform: translate(-50%, 0); }
.toast.err { background: var(--red); color: #fff; }
.modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; background: rgba(42,30,20,.45); padding: 16px; }
.modal .card { width: min(440px, 100%); padding: 20px; max-height: 90vh; overflow: auto; }
.wallet-opt { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px; margin-bottom: 8px; border: 2px solid var(--ink); border-radius: 12px; background: var(--white); cursor: pointer; font-weight: 700; }
.wallet-opt img { width: 28px; height: 28px; border-radius: 6px; }

/* ==== The cut-out cartoon makeover ==================================================================================
   Construction-paper scenery, a snowy mountain town outside, a fish tank of floaters on the studio wall, and jerky
   stop-motion acting (steps() timing everywhere, like paper cut-outs moved a frame at a time). */

/* the whole site: a winter-blue sky, snowy mountains along the bottom, a little snow falling */
body { background: linear-gradient(180deg, #8ED0EC 0%, #BFE6F5 55%, #E4F5FB 100%) fixed; }
body::before { mask-image: none; -webkit-mask-image: none; opacity: 1; inset: auto 0 0 0; height: max(260px, 42vh); background: url(/backdrop.svg) 50% 100% / cover no-repeat; }
body::after { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .75;
  background-image: radial-gradient(circle, #fff 0 1.6px, transparent 2.2px), radial-gradient(circle, #fff 0 1.1px, transparent 1.6px);
  background-size: 140px 140px, 90px 90px; background-position: 0 0, 45px 30px; animation: snowfall 22s linear infinite; }
@keyframes snowfall { to { background-position: 0 280px, 45px 210px; } }
.card { box-shadow: 0 3px 0 var(--ink), 0 10px 24px rgba(42, 30, 20, .10); }
.onair-card { transform: rotate(-.5deg); }
.shart-card:nth-child(odd) { transform: rotate(-.8deg); } .shart-card:nth-child(even) { transform: rotate(.7deg); }
.btn:hover { animation: jiggle .32s steps(2, end) 1; }
@keyframes jiggle { 0% { rotate: -2deg; } 50% { rotate: 2deg; } 100% { rotate: 0deg; } }
.top { background: rgba(255, 255, 255, .94); }

/* ---- the studio set: a cardboard room in real 3D ----
   Cut-out pieces arranged as a box room: the back wall (with the fish tank) sits deep in the scene, side walls and the
   floor recede towards it, and the ceiling carries the studio lights. The stage has a CSS perspective, so when the
   camera moves, near things move more than far ones (parallax), like a cut-out show with a multiplane camera.
   --depth and --persp are set from the stage width by stage.js. */
.stage { background: #2E2119; perspective: var(--persp, 1100px); perspective-origin: 50% 30%; }
.stage::before, .stage::after { content: none; }
.cam { position: absolute; inset: 0; transform-origin: 0 0; will-change: transform; z-index: 1; transform-style: preserve-3d; }
.set, .room { position: absolute; inset: 0; pointer-events: none; transform-style: preserve-3d; }
.set { z-index: 0; }
.r-back, .r-left, .r-right, .r-floor, .r-ceil { position: absolute; backface-visibility: hidden; }
.r-back { inset: 0; transform: translateZ(calc(var(--depth, 400px) * -1));
  background: radial-gradient(ellipse 60% 55% at 50% 42%, rgba(255, 244, 214, .55), transparent 70%),
    linear-gradient(180deg, transparent 0 70%, #5E3818 70% 72%, #A9774A 72% 100%),
    repeating-linear-gradient(90deg, rgba(94, 56, 24, .16) 0 3px, transparent 3px 80px), #E9C995; }
.r-left { top: 0; bottom: 0; left: 0; width: var(--depth, 400px); transform-origin: 0 50%; transform: rotateY(90deg);
  background: linear-gradient(90deg, rgba(0,0,0,.05), rgba(0,0,0,.18)), linear-gradient(180deg, transparent 0 70%, #5E3818 70% 72%, #9E6C40 72% 100%), repeating-linear-gradient(90deg, rgba(94, 56, 24, .18) 0 3px, transparent 3px 60px), #DDB985; }
.r-right { top: 0; bottom: 0; right: 0; width: var(--depth, 400px); transform-origin: 100% 50%; transform: rotateY(-90deg);
  background: linear-gradient(90deg, rgba(0,0,0,.32), rgba(0,0,0,.14)), linear-gradient(180deg, transparent 0 70%, #5E3818 70% 72%, #9E6C40 72% 100%), repeating-linear-gradient(90deg, rgba(94, 56, 24, .18) 0 3px, transparent 3px 60px), #DDB985; }
.r-floor { left: 0; right: 0; bottom: 0; height: var(--depth, 400px); transform-origin: 50% 100%; transform: rotateX(90deg);
  background: linear-gradient(0deg, rgba(0,0,0,0), rgba(0,0,0,.28)), repeating-linear-gradient(90deg, #8A5A2B 0 2.5%, #6E4524 2.5% 2.8%, #94643A 2.8% 5.5%, #6E4524 5.5% 5.8%); }
.r-ceil { left: 0; right: 0; top: 0; height: var(--depth, 400px); transform-origin: 50% 0; transform: rotateX(-90deg);
  background: linear-gradient(180deg, #1E1611, #3B2A1F); }
.r-ceil i { position: absolute; top: 40%; width: 10%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, #FFF6C8 0 35%, #F2B632 36% 50%, #2A1E14 51% 60%, transparent 61%); }
.r-ceil i:nth-child(1) { left: 18%; } .r-ceil i:nth-child(2) { left: 45%; } .r-ceil i:nth-child(3) { left: 72%; }
.r-floor .rug { position: absolute; left: 28%; right: 28%; top: 30%; bottom: 14%; border: 6px solid var(--ink); border-radius: 50%;
  background: radial-gradient(circle, #E8483B 0 40%, #C4362A 40% 46%, #E8483B 46% 70%, #F2B632 70% 76%, #E8483B 76%); }
.r-floor .spot { position: absolute; left: 20%; right: 20%; top: 10%; bottom: 0; border-radius: 50%; background: radial-gradient(ellipse, rgba(255, 244, 214, .3), transparent 65%); }

/* windows on the side walls, onto a snowy mountain town */
.window { position: absolute; top: 16%; left: 22%; width: 56%; height: 36%; padding: 6px; border: 5px solid var(--ink); border-radius: 6px; background: #FFFDF6; }
.window::after { content: ""; position: absolute; inset: 6px; background: linear-gradient(var(--ink), var(--ink)) 50% 0 / 5px 100% no-repeat, linear-gradient(var(--ink), var(--ink)) 0 46% / 100% 5px no-repeat; }
.sky { position: relative; height: 100%; overflow: hidden; border: 2px solid var(--ink); background: url(/backdrop.svg) 62% 100% / auto 118% no-repeat, linear-gradient(#6EC1E6, #BDE7F7); }
.sky i { position: absolute; display: block; }
.sky .mtn { bottom: 16%; width: 78%; height: 74%; background: #93A2B2; clip-path: polygon(0 100%, 50% 0, 100% 100%); }
.sky .mtn::after { content: ""; position: absolute; inset: 0 0 62% 0; background: #fff; clip-path: polygon(30% 100%, 50% 0, 70% 100%, 58% 82%, 50% 96%, 42% 82%); }
.sky .m1 { left: -14%; } .sky .m2 { left: 32%; height: 90%; width: 90%; background: #7F8FA0; }
.sky .hill { left: -20%; right: -20%; bottom: -8%; height: 30%; background: #F6FAFC; border-radius: 50% 50% 0 0; border-top: 2px solid #C9D6DE; }
.sky .flakes { inset: 0; background-image: radial-gradient(circle, #fff 0 1.6px, transparent 2.1px); background-size: 20px 20px; animation: snowfall-sm 6s linear infinite; }
@keyframes snowfall-sm { to { background-position: 6px 40px; } }
.r-right .poster { position: absolute; left: 24%; top: 18%; width: 46%; height: 40%; border: 4px solid var(--ink); background: #F2B632; transform: rotate(2deg); display: grid; place-items: center; padding: 6%; }
.r-right .poster svg { width: 70%; height: auto; }

/* the fish tank on the back wall, full of floaters */
.aquarium { position: absolute; left: 5%; width: 44%; top: 14%; height: 46%; display: flex; flex-direction: column; filter: drop-shadow(10px 12px 0 rgba(42, 30, 20, .25)); }
.aq-lid { height: 9%; margin: 0 -1.5%; border: 4px solid var(--ink); border-radius: 6px 6px 2px 2px; background: #3E4A54; box-shadow: inset 0 3px 0 rgba(255,255,255,.2); }
.aq-glass { position: relative; flex: 1; overflow: hidden; border: 5px solid var(--ink); border-top: 0; background: #5BB8CF; }
.aq-water { position: absolute; inset: 7% 0 0 0; background: linear-gradient(#8FD9EA, #3E95B2 85%); border-top: 3px solid #D8F4FA; }
.aq-gravel { position: absolute; left: 0; right: 0; bottom: 0; height: 14%; border-top: 3px solid var(--ink); background:
  radial-gradient(circle at 20% 40%, #F2B632 0 3px, transparent 4px), radial-gradient(circle at 70% 60%, #E8483B 0 3px, transparent 4px), radial-gradient(circle at 45% 30%, #fff 0 2.5px, transparent 3.5px), #C9A06A; background-size: 26px 18px, 34px 20px, 22px 16px, auto; }
.aq-weed { position: absolute; bottom: 10%; width: 5%; height: 52%; background: #4C9A3A; border: 3px solid var(--ink); border-radius: 50% 50% 20% 20% / 90% 90% 10% 10%; transform-origin: 50% 100%; animation: weed 2.4s steps(2, end) infinite alternate; }
.aq-weed.w1 { left: 6%; } .aq-weed.w2 { left: 11%; height: 36%; animation-delay: -.8s; background: #6DB84C; } .aq-weed.w3 { right: 8%; height: 44%; animation-delay: -1.4s; }
@keyframes weed { from { transform: rotate(-7deg); } to { transform: rotate(7deg); } }
.aq-loo { position: absolute; right: 17%; bottom: 10%; width: 11%; }
.aq-loo svg { width: 100%; height: auto; display: block; }
.aq-shine { position: absolute; inset: 0; background: linear-gradient(115deg, transparent 0 18%, rgba(255,255,255,.28) 18% 22%, transparent 22% 27%, rgba(255,255,255,.18) 27% 29%, transparent 29%); }
.aq-sign { position: absolute; left: 3%; top: 14%; padding: 3px 7px; border: 2.5px solid var(--ink); background: #FFF6B8; font: 400 clamp(8px, 1vw, 13px)/1.05 var(--display); text-align: center; transform: rotate(-6deg); box-shadow: 0 2px 0 var(--ink); z-index: 3; }
.aq-stand { height: 13%; margin: 0 3%; border: 4px solid var(--ink); border-top: 0; border-radius: 0 0 6px 6px; background: repeating-linear-gradient(90deg, #8A5A2B 0 22px, #7A4A22 22px 26px); }
.floater { position: absolute; top: var(--y); left: -16%; width: 14%; animation: swim var(--dur) linear var(--d) infinite; z-index: 2; }
.floater svg { width: 100%; height: auto; display: block; animation: bob 1.8s steps(3, end) infinite; }
.floater.f2, .floater.f4, .floater.f6 { animation-direction: reverse; }
@keyframes swim { from { left: -16%; } to { left: 104%; } }
.aq-bubbles i { position: absolute; bottom: 12%; width: 9px; height: 9px; border: 2px solid rgba(255,255,255,.9); border-radius: 50%; animation: rise 3.2s steps(8, end) infinite; }
.aq-bubbles i:nth-child(1) { left: 80%; } .aq-bubbles i:nth-child(2) { left: 82%; animation-delay: -1s; width: 6px; height: 6px; } .aq-bubbles i:nth-child(3) { left: 79%; animation-delay: -2.1s; }
.aq-bubbles i:nth-child(4) { left: 14%; animation-delay: -.5s; } .aq-bubbles i:nth-child(5) { left: 16%; animation-delay: -1.7s; width: 6px; height: 6px; } .aq-bubbles i:nth-child(6) { left: 46%; animation-delay: -2.6s; }
@keyframes rise { from { transform: translateY(0); opacity: 1; } to { transform: translateY(-1100%); opacity: 0; } }

/* the show's sign on the back wall: cut-out letters on a board */
.wall-sign { position: absolute; right: 6%; top: 14%; width: 38%; padding: 3% 3% 2.4%; display: flex; flex-direction: column; align-items: center; border: 5px solid var(--ink); border-radius: 10px; background: repeating-linear-gradient(90deg, #7A4A22 0 18px, #6A3E1B 18px 21px); transform: rotate(1.5deg); filter: drop-shadow(10px 12px 0 rgba(42, 30, 20, .25)); }
.wall-sign b { font: 400 clamp(26px, 5.4vw, 74px)/.92 var(--display); color: #F2B632; -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; text-shadow: 0 5px 0 var(--ink); }
.wall-sign b:first-child { transform: rotate(-3deg); color: #8BD43A; } .wall-sign b:nth-child(2) { transform: rotate(2deg); }
.wall-sign > span { margin-top: 6px; padding: 2px 8px; background: var(--red); color: #fff; border: 2.5px solid var(--ink); font: 800 clamp(8px, 1vw, 13px)/1.4 var(--font); letter-spacing: .14em; transform: rotate(-2deg); }

/* the host, Lil' Deuce: walks the coin on stage, then off again */
.host { position: absolute; bottom: 3%; left: -24%; width: 15%; z-index: 4; pointer-events: none; }
.host-art svg { width: 100%; height: auto; display: block; filter: drop-shadow(6px 8px 0 rgba(42, 30, 20, .28)); }
.host.walking .host-art { animation: host-walk .36s steps(2, end) infinite; }
@keyframes host-walk { 0% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-6%) rotate(4deg); } }
.host.talking .sa-mc { animation: sa-flap-a .22s steps(1, end) infinite; } .host.talking .sa-mo { animation: sa-flap-b .22s steps(1, end) infinite; }
.host.intro { animation: host-intro 10s linear both; }
@keyframes host-intro { 0%, 22% { left: -24%; } 40% { left: 17%; } 76% { left: 17%; } 100% { left: 112%; } }
.host.peek { animation: host-peek 1.2s steps(5, end) both; left: 3%; }
@keyframes host-peek { from { transform: translateY(110%); } to { transform: none; } }
.host-card { position: absolute; left: -18%; bottom: 74%; width: 74%; padding: 6% 6% 4%; border: 3px solid var(--ink); border-radius: 8px; background: #FFF6B8; text-align: center; transform: rotate(-6deg); box-shadow: 4px 5px 0 rgba(42, 30, 20, .3); transition: opacity .2s; }
.host-card img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; border: 2.5px solid var(--ink); background: #fff; }
.host-card b { display: block; font: 400 clamp(10px, 1.3vw, 17px)/1.1 var(--display); margin-top: 4%; overflow-wrap: anywhere; }
.host.dropped .host-card { opacity: 0; }
.host-bubble { position: absolute; left: 70%; bottom: 82%; width: max-content; max-width: 230%; padding: 6px 10px; border: 2.5px solid var(--ink); border-radius: 14px; background: #fff; font: 400 clamp(12px, 1.35vw, 18px)/1.1 var(--display); box-shadow: 0 3px 0 var(--ink); transform: scale(0); transform-origin: 0 100%; transition: transform .2s steps(3, end); }
.host-bubble.show { transform: scale(1); }
.host-bubble::after { content: ""; position: absolute; left: 14px; bottom: -9px; width: 14px; height: 14px; transform: rotate(45deg); background: #fff; border-right: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink); }
.tank.awaiting #airLogo { opacity: 0; transform: scale(.2) rotate(-180deg); }
.tank.loaded #airLogo { animation: coin-in .5s steps(5, end); }
@keyframes coin-in { from { transform: translateY(-120%) scale(.4) rotate(-200deg); } to { transform: none; } }

/* depth on the front pieces: extruded cardboard */
.stall .who svg { filter: drop-shadow(6px 8px 0 rgba(42, 30, 20, .28)); }
.door { box-shadow: 0 3px 0 var(--ink), 7px 8px 0 -2px rgba(42, 30, 20, .35); }
/* the toilet tank in the middle: flat cut-out colours */
.tank-name .ticker { -webkit-text-stroke: 1.5px var(--ink); paint-order: stroke fill; color: #fff; text-shadow: 0 4px 0 var(--ink); }
.tank-name .coin { display: inline-block; background: #FFF6B8; border: 2px solid var(--ink); border-radius: 6px; padding: 1px 8px; transform: rotate(-1.5deg); }

/* the stalls: flat paper doors, and the Sharts big enough to read as characters */
.stall .who { width: 118%; margin-bottom: -12%; }

.door { background: var(--c, var(--brown)); border-width: 3.5px; box-shadow: 0 3px 0 var(--ink); }
.stage-top .onair, .stage-top .ep-chip, .stage-top .stat { box-shadow: 0 2px 0 var(--ink); }

/* ---- the Sharts act: cut-out, a few frames at a time ---- */
.shart-svg .sa-rig { transform-box: fill-box; transform-origin: 50% 100%; animation: sa-sway 2.6s steps(3, end) infinite; }
.shart-svg .sa-eyes { transform-box: fill-box; transform-origin: 50% 50%; animation: sa-blink 4.3s steps(1, end) infinite; }
.seat2 .shart-svg .sa-rig, .seat2 .shart-svg .sa-eyes { animation-delay: -1.1s; } .seat3 .shart-svg .sa-rig, .seat3 .shart-svg .sa-eyes { animation-delay: -2.3s; } .seat4 .shart-svg .sa-rig, .seat4 .shart-svg .sa-eyes { animation-delay: -.6s; }
@keyframes sa-sway { 0%, 100% { transform: rotate(-1.6deg); } 50% { transform: rotate(1.6deg) translateY(-1.5px); } }
@keyframes sa-blink { 0%, 100% { transform: none; } 94% { transform: scaleY(.1); } 97% { transform: none; } }
.shart-svg.pose-in .sa-arm-l { transform-box: fill-box; transform-origin: 100% 100%; animation: sa-wave-l .3s steps(1, end) infinite alternate; }
.shart-svg.pose-in .sa-arm-r { transform-box: fill-box; transform-origin: 0% 100%; animation: sa-wave-r .3s steps(1, end) infinite alternate; }
@keyframes sa-wave-l { from { transform: rotate(-12deg); } to { transform: rotate(10deg); } }
@keyframes sa-wave-r { from { transform: rotate(12deg); } to { transform: rotate(-10deg); } }
.shart-svg.pose-thinking .sa-arm-r { transform-box: fill-box; transform-origin: 100% 0%; animation: sa-tap .5s steps(1, end) infinite alternate; }
@keyframes sa-tap { from { transform: rotate(0); } to { transform: rotate(-6deg); } }
.shart-svg .sa-dots circle:last-child { animation: blink 1s steps(2) infinite; }
/* talking: the mouth flaps and the Shart leans in */
.stall.talking .sa-mc { animation: sa-flap-a .24s steps(1, end) infinite; }
.stall.talking .sa-mo { animation: sa-flap-b .24s steps(1, end) infinite; }
@keyframes sa-flap-a { 0% { opacity: 1; } 50% { opacity: 0; } }
@keyframes sa-flap-b { 0% { opacity: 0; } 50% { opacity: 1; } }
.stall .who { transition: transform 240ms steps(3, end); }
.stall.talking .who { transform: translateY(-5%) scale(1.07); }
/* moves */
.stall.enter .who { animation: st-enter 1.2s steps(6, end) both; }
@keyframes st-enter { 0% { transform: translateY(70%) scale(.5) rotate(-10deg); opacity: 0; } 35% { transform: translateY(-16%) scale(1.06) rotate(6deg); opacity: 1; } 65% { transform: translateY(0) rotate(-3deg); } 82% { transform: translateY(-6%); } 100% { transform: none; } }
.stall.scoot-l .who { animation: st-scoot-l 1.1s steps(4, end); } .stall.scoot-r .who { animation: st-scoot-r 1.1s steps(4, end); }
@keyframes st-scoot-l { 0%, 100% { transform: none; } 35%, 65% { transform: translateX(-12%) rotate(-5deg); } }
@keyframes st-scoot-r { 0%, 100% { transform: none; } 35%, 65% { transform: translateX(12%) rotate(5deg); } }
.stall.spin .who { animation: st-spin .9s steps(4, end); }
@keyframes st-spin { 0%, 100% { transform: none; } 50% { transform: scaleX(-1) translateY(-6%); } }
.stall.hop2 .who { animation: hop .45s steps(3, end) 2; }
.stall.in .who { animation: st-jump .8s steps(5, end) 1; }
@keyframes st-jump { 0%, 100% { transform: none; } 30% { transform: translateY(-22%) scale(1.1) rotate(-6deg); } 60% { transform: translateY(-8%) rotate(5deg); } }
.stall.out .who { animation: st-nope .7s steps(5, end) 1; }
@keyframes st-nope { 0%, 100% { transform: none; } 20% { transform: rotate(-8deg); } 40% { transform: rotate(8deg) scaleX(-1); } 70% { transform: rotate(-4deg) scaleX(-1); } }
.stall.dance .who { animation: st-dance .44s steps(2, end) infinite; }
@keyframes st-dance { 0%, 100% { transform: rotate(-9deg) translateY(0); } 50% { transform: rotate(9deg) translateY(-8%); } }
.stall.slump .who { transform: translateY(6%) scaleY(.86); filter: saturate(.7); }
.stage.shake .stage-main { animation: st-shake .55s steps(6, end); }
@keyframes st-shake { 0%, 100% { transform: none; } 20% { transform: translate(-6px, 3px); } 40% { transform: translate(5px, -4px); } 60% { transform: translate(-4px, -2px); } 80% { transform: translate(3px, 3px); } }

@media (max-width: 700px) {
  .aquarium { left: 4%; width: 50%; top: 12%; height: 34%; }
  .wall-sign { right: 3%; width: 40%; top: 12%; } .wall-sign b { -webkit-text-stroke: 2px var(--ink); text-shadow: 0 3px 0 var(--ink); }
  .floater { width: 11%; }
  .window { left: 12%; width: 76%; top: 14%; height: 26%; }
  .r-right .poster { display: none; }
  .host { width: 26%; }
  .host-bubble { max-width: 160%; }
  .door::before { display: none; }
}


/* ---- the broadcast package: it should feel like a live TV show ---- */
.tv { position: absolute; inset: 0; z-index: 8; pointer-events: none; }
/* episode title card: a construction-paper card slapped on screen, then torn away */
.title-card { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; background: rgba(42, 30, 20, .35); }
.title-card.show { animation: title-card 2.2s steps(1, end) both; }
@keyframes title-card { 0% { opacity: 1; } 90% { opacity: 1; } 100% { opacity: 0; } }
.tc-paper { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 26px 46px 24px; background: #3F8FD2; border: 5px solid var(--ink); color: #fff; text-align: center; max-width: 86%;
  clip-path: polygon(0 4%, 6% 0, 18% 3%, 31% 0, 47% 2%, 62% 0, 78% 3%, 92% 0, 100% 5%, 98% 24%, 100% 46%, 97% 70%, 100% 95%, 88% 100%, 72% 97%, 55% 100%, 38% 97%, 22% 100%, 7% 97%, 0 100%, 2% 76%, 0 52%, 3% 28%);
  box-shadow: 10px 12px 0 rgba(0,0,0,.3); }
.title-card.show .tc-paper { animation: title-slap 2.2s steps(4, end) both; }
@keyframes title-slap { 0% { transform: scale(.2) rotate(-14deg); } 14% { transform: scale(1.08) rotate(3deg); } 22%, 88% { transform: scale(1) rotate(-2deg); } 100% { transform: scale(1.3) rotate(6deg) translateY(-30%); } }
.tc-ep { font: 800 clamp(11px, 1.4vw, 16px)/1 var(--font); letter-spacing: .2em; background: var(--ink); padding: 4px 10px; border-radius: 4px; }
.tc-coin { font: 400 clamp(40px, 8vw, 104px)/.95 var(--display); -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; text-shadow: 0 6px 0 var(--ink); overflow-wrap: anywhere; }
.tc-name { font: 400 clamp(15px, 2vw, 26px)/1.1 var(--display); color: #FFF6B8; }
/* channel bug, bottom right */
.tv-bug { position: absolute; right: 14px; bottom: 16px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 8px; background: rgba(42, 30, 20, .62); color: #fff; opacity: .9; }
.tv-bug b { font: 400 14px/1 var(--display); letter-spacing: .02em; }
.tv-bug i { font: 800 9px/1 var(--font); font-style: normal; letter-spacing: .12em; background: var(--red); padding: 3px 5px; border-radius: 3px; }
/* up next */
.up-next { position: absolute; left: 14px; bottom: 16px; display: none; align-items: stretch; border: 3px solid var(--ink); border-radius: 10px; overflow: hidden; box-shadow: 0 3px 0 var(--ink); }
.up-next.show { display: inline-flex; animation: slide-in .5s steps(4, end) both; }
.up-next small { background: var(--gold); color: var(--ink); padding: 6px 10px; font: 800 11px/1.6 var(--font); letter-spacing: .12em; }
.up-next b { background: #fff; padding: 4px 12px; font: 400 18px/1.3 var(--display); }
@keyframes slide-in { from { transform: translateX(-120%); } to { transform: none; } }
/* the LIVE bug and the stat boxes, like a TV score bug */
.stage-top { z-index: 9; }
.stage-top .onair { background: var(--red); color: #fff; border-color: #fff; box-shadow: 0 2px 0 var(--ink), 0 0 0 2px var(--ink); }
.stage-top .onair.off { background: rgba(42, 30, 20, .7); color: #fff; }
.stage-top .ep-chip { background: rgba(42, 30, 20, .7); color: #fff; border-color: rgba(255,255,255,.8); }
.stage-top .stat { background: rgba(42, 30, 20, .66); border-color: rgba(255,255,255,.75); color: #fff; }
.stage-top .stat small { color: #F6E7C8; }
/* lower thirds: the speaker's name plate in their colour, then what they said */
.caption { right: 24%; z-index: 9; }
.caption .tag { background: var(--c, var(--brown)); }
.caption .tag small { margin-left: 8px; font: 700 11px/1 var(--font); letter-spacing: .06em; opacity: .9; text-transform: uppercase; }
.caption.show { animation: slide-in .35s steps(3, end) both; }
.voice-chip { pointer-events: auto; display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border: 2px solid rgba(255,255,255,.8); border-radius: 8px; background: rgba(42, 30, 20, .7); color: #fff; font: 800 11px/1.4 var(--font); letter-spacing: .08em; cursor: pointer; }
.voice-chip.on { background: var(--green); color: var(--ink); border-color: var(--ink); }
.voice-chip .ico { width: 14px; height: 14px; }
/* breaks: a stand-by card with the host */
.moment.brk .card { display: grid; grid-template-columns: 90px 1fr; gap: 12px; align-items: center; text-align: left; }
.moment.brk .card .sb-host svg { width: 90px; height: auto; display: block; }
@media (max-width: 700px) {
  .caption { right: 14px; }
  .tv-bug { display: none; }
  .tc-paper { padding: 18px 22px 16px; }
  .moment.brk .card { grid-template-columns: 64px 1fr; } .moment.brk .card .sb-host svg { width: 64px; }
}


/* ---- page headers: a piece of the show on every page ---- */
.hero.with-art { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: end; }
.hero.with-art > :not(.hero-art) { grid-column: 1; justify-self: start; }
.hero-art { grid-column: 2; grid-row: 1 / span 6; align-self: end; position: relative; display: flex; align-items: flex-end; gap: 4px; padding-bottom: 6px; }
.hero-art svg { display: block; height: auto; filter: drop-shadow(6px 8px 0 rgba(42, 30, 20, .25)); }
.hero-art .host-bubble { left: auto; right: 70%; bottom: 84%; transform: scale(1); transform-origin: 100% 100%; animation: none; }
.hero-art .host-bubble::after { left: auto; right: 14px; }
.hero-art .sa-host .sa-rig, .lost-host .sa-host .sa-rig { animation: sa-sway 2.6s steps(3, end) infinite; }
.art-sharts .hero-art svg:nth-child(odd) { transform: translateY(-6px) rotate(-3deg); } .art-sharts .hero-art svg:nth-child(even) { transform: rotate(3deg); }
.gold-plunger svg { width: 120px; height: auto; filter: sepia(1) saturate(4) hue-rotate(5deg) brightness(1.1) drop-shadow(6px 8px 0 rgba(42, 30, 20, .25)); transform: rotate(-12deg); }
.lost-host { position: relative; width: 170px; margin: 30px auto 0; }
.lost-host svg { display: block; width: 100%; height: auto; filter: drop-shadow(6px 8px 0 rgba(42, 30, 20, .25)); }
.lost-host .host-bubble { left: 74%; bottom: 74%; transform: scale(1); }
@media (max-width: 760px) {
  .hero.with-art { grid-template-columns: 1fr; }
  .hero-art { grid-column: 1; grid-row: auto; justify-content: center; }
  .art-sharts .hero-art svg { width: 22vw; }
  .hero-art .host-bubble { right: 58%; }
}


/* ---- owner test mode ---- */
.test-mode { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; margin-top: 12px; padding: 10px 12px; border: 2.5px dashed var(--red); border-radius: 12px; background: #FFF1EE; cursor: pointer; }
.test-mode input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--red); }
.test-card { border-color: var(--red); background: #FFF8F6; }
.test-card .table td:first-child { color: var(--muted); white-space: nowrap; font-size: 12.5px; }


/* ---- speech bubbles: what a Shart says comes out of its mouth ---- */
.say { position: absolute; bottom: 97%; z-index: 9; width: 240%; padding: 9px 13px 10px; background: #fff; border: 3px solid var(--ink); border-radius: 20px; color: var(--ink);
  font: 600 clamp(11px, 1.12vw, 15px)/1.28 var(--font); text-align: left; box-shadow: 0 3px 0 var(--ink); pointer-events: none;
  transform: scale(0); transform-origin: var(--tail, 50%) 115%; transition: transform .18s steps(3, end); }
.say.show { transform: scale(1); }
.say b { font: 400 1.18em/1 var(--display); letter-spacing: .01em; margin-right: 3px; }
.say .act { display: inline-block; font: 800 .78em/1.2 var(--font); letter-spacing: .06em; text-transform: uppercase; color: #fff; background: var(--ink); border-radius: 5px; padding: 1px 6px; margin-right: 4px; }
.say::before, .say::after { content: ""; position: absolute; clip-path: polygon(0 0, 100% 0, 34% 100%); }
.say::before { left: calc(var(--tail, 50%) - 14px); bottom: -22px; width: 30px; height: 23px; background: var(--ink); }
.say::after { left: calc(var(--tail, 50%) - 9.5px); bottom: -15px; width: 21px; height: 17px; background: #fff; }
.seat1 .say { left: -6%; --tail: 23%; } .seat2 .say { left: -50%; --tail: 42%; } .seat3 .say { right: -50%; --tail: 58%; } .seat4 .say { right: -6%; --tail: 77%; }
.stall.speaking { z-index: 8; }
.stall.speaking .bubble, .stall.speaking .status-pill { opacity: 0; }
.host-bubble { font-weight: 400; max-width: 260%; }
/* tap for sound, like a live stream's unmute button */
.tap-sound { position: absolute; left: 50%; bottom: 18px; z-index: 25; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border: 3px solid var(--ink); border-radius: 999px; background: var(--gold); color: var(--ink); font: 400 17px/1 var(--display); letter-spacing: .03em; cursor: pointer; box-shadow: 0 4px 0 var(--ink); white-space: nowrap; }
.tap-sound svg { width: 20px; height: 20px; animation: blink 1.2s steps(2) infinite; }
@media (max-width: 700px) { .voice-chip span { display: none; } .voice-chip { padding: 4px 6px; } .tap-sound { bottom: 12px; font-size: 15px; padding: 8px 14px; } }
@media (max-width: 700px) {
  .say { width: 225%; font-size: 11px; padding: 7px 9px 8px; }
  .seat1 .say { left: -4%; --tail: 24%; } .seat2 .say { left: -38%; --tail: 39%; } .seat3 .say { right: -38%; --tail: 61%; } .seat4 .say { right: -4%; --tail: 76%; }
}


/* ==== South Park fidelity pass ======================================================================================
   Everything on screen should look cut from construction paper: a fibre grain on every paper piece, small scissor-cut
   corners instead of app-style rounding, crooked cut-out lettering (App.cutLetters) on the big words, and flat paper
   bursts instead of glows. */
:root { --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' seed='4' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .16 0 0 0 0 .11 0 0 0 0 .06 0 0 0 -.42 .24'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E"); --r: 7px; --r-sm: 5px; }
/* paper grain */
.card, .shart-card, .door, .tc-paper, .host-card, .say, .host-bubble, .btn, .oos, .up-next b, .aq-sign, .bubble, .tap-sound, .moment .sub, .field input, .field textarea, .drop, .coin-card, .qrow, .line-head div { background-image: var(--grain); }
.wall-sign { background-image: var(--grain), repeating-linear-gradient(90deg, #7A4A22 0 18px, #6A3E1B 18px 21px); }
.r-back::before, .r-left::before, .r-right::before { content: ""; position: absolute; inset: 0; background: var(--grain); pointer-events: none; }
.top { background-image: var(--grain); }
/* scissor-cut corners, not app rounding */
.btn { border-radius: 8px; } .btn.sm { border-radius: 7px; }
.shart-card { border-radius: 7px; } .stage { border-radius: 14px; }
.field input, .field textarea, .drop, .coin-card, .qrow, .line-head div, .stat, .iconbtn, .xlink, .ca, .nav a, .msg { border-radius: 6px; }
.door { border-radius: 6px 6px 3px 3px; }
/* cut-out letters: every letter its own crooked scrap of paper */
.cut .cw { display: inline-block; white-space: nowrap; }
.cut .cl { display: inline-block; transform: translateY(var(--ly, 0)) rotate(var(--lr, 0deg)); }
h1.cut { letter-spacing: .02em; }
.brand b.cut .cl { transform: translateY(calc(var(--ly, 0) * 1.4)) rotate(calc(var(--lr, 0deg) * 1.3)); }
.wall-sign b.cut { letter-spacing: .03em; }
/* the result moments: a hard cut to a flat paper burst behind the words (no glows, no spinning light) */
.moment.flushed, .moment.clogged, .moment.dry { background: rgba(42, 30, 20, .3); }
.moment.flushed .ring { display: none; }
.moment .burst { position: absolute; left: 50%; top: 47%; width: min(94%, 900px); aspect-ratio: 1.75; transform: translate(-50%, -50%) rotate(-3deg); z-index: -1; animation: burst-in .36s steps(3, end) both; }
.moment .burst::before, .moment .burst::after { content: ""; position: absolute; inset: 0; clip-path: polygon(50% 0%, 58.8% 11.4%, 71.3% 5.7%, 73.3% 20.7%, 86.7% 20.8%, 84.2% 33.5%, 96.4% 39.4%, 90.7% 50%, 95.5% 60.4%, 83.5% 66.2%, 87.1% 79.6%, 75.9% 82.5%, 71.6% 94.8%, 58.9% 89%, 50% 99.4%, 41.2% 88.5%, 28.5% 94.6%, 23.9% 82.7%, 11.2% 81%, 13.4% 67.6%, 1.6% 61.1%, 8.1% 50%, 2.4% 39.1%, 14.5% 32.9%, 11.9% 19.6%, 24.8% 18.4%, 28.6% 5.5%, 42% 14.9%); }
.moment .burst::before { background: var(--ink); transform: scale(1.04); }
.moment .burst::after { background: var(--grain), var(--bc, #F2B632); }
.moment.clogged .burst { --bc: #FFF6B8; transform: translate(-50%, -50%) rotate(2.5deg); }
.moment.dry .burst { --bc: #3F8FD2; }
.moment.dry .big { color: #CFEFF0; }
@keyframes burst-in { 0% { transform: translate(-50%, -50%) scale(.3) rotate(-14deg); } 70% { transform: translate(-50%, -50%) scale(1.06) rotate(1deg); } 100% { transform: translate(-50%, -50%) rotate(-3deg); } }
.moment .big { text-shadow: 0 5px 0 var(--ink); }
.moment .sub { border-radius: 6px; transform: rotate(-1deg); }
/* a close-up is one character: the others' call cards step out of the shot */
.stage:has(.stall.speaking) .stall:not(.speaking) .bubble { opacity: 0; }
/* the tank is a toilet, seen from the front and a little above (ShartArt.toilet, two layers): tank, lid up, seat, water,
   bowl, pedestal. The coin floats in the water (its bottom under the water line, behind the seat) and swirls down the
   bowl on a flush; the chrome lever on the tank cranks down. */
.toilet { position: relative; width: 100%; aspect-ratio: 200 / 210; margin: 0 auto; filter: drop-shadow(5px 6px 0 rgba(42, 30, 20, .22)); }
.toilet .t-back, .toilet .t-front { position: absolute; inset: 0; display: block; }
.toilet svg { display: block; width: 100%; height: 100%; }
.toilet .t-front { z-index: 3; pointer-events: none; }
.toilet .porthole { position: absolute; left: 31.5%; top: 35.7%; width: 37%; aspect-ratio: 1; z-index: 2; }
.toilet .porthole img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; border: 3px solid var(--ink); background: #fff; transition: transform 1.3s steps(9, end), opacity .3s; }
.tank.flushing .toilet .porthole img { transform: translateY(26%) rotate(600deg) scale(.12); opacity: 0; transition-delay: 0s, 1s; }
.water-swirl { position: absolute; left: 25%; width: 50%; top: 53.8%; height: 16.2%; border-radius: 50%; overflow: hidden; z-index: 1; opacity: 0; }
.water-swirl i { position: absolute; left: 50%; top: 50%; width: 110%; aspect-ratio: 1; margin: -55% 0 0 -55%; background: conic-gradient(from 0deg, transparent 0 15%, #5BB8CF 18% 30%, transparent 33% 48%, #5BB8CF 51% 63%, transparent 66% 81%, #5BB8CF 84% 96%, transparent 99%); }
.tank.flushing .water-swirl { opacity: 1; } .tank.flushing .water-swirl i { animation: swirl .7s steps(6, end) infinite; }
.toilet .tank-handle { position: absolute; left: 20%; top: 12.6%; width: 12%; height: 3.8%; border: 2.5px solid var(--ink); border-radius: 3px; background: var(--chrome); z-index: 4; transform-origin: 90% 50%; transition: transform .25s steps(2, end); }
.tank-name { margin-top: 2px; }
/* nothing piles up on the phone: the up-next card sits above TAP FOR SOUND, and the call cards leave the shot while a
   result is on screen (the burst says it all) */
@media (max-width: 700px) {
  .stage:has(.tap-sound:not([hidden])) .up-next { bottom: 66px; }
  .tank { width: 41%; }
  .door b { font-size: 10.5px; white-space: nowrap; letter-spacing: -.02em; }
  .stage:has(.moment.show.flushed, .moment.show.clogged, .moment.show.dry) .stall .bubble { opacity: 0; }
}
.bubble { transition: transform var(--med) var(--ease), opacity .2s; border-radius: 8px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
  .tape-track { animation: none !important; }
  .confetti { display: none; }
  .cam { transform: none !important; }
  body::after { display: none; }
}
