:root {
  --bg: #fff7ee;
  --paper: #ffffff;
  --ink: #1e1b2e;
  --muted: #6b6380;
  --pink: #ff7aa8;
  --pink-soft: #ffe0ea;
  --blue: #6ec6ff;
  --blue-soft: #e3f4ff;
  --yellow: #ffd23f;
  --green: #22a06b;
  --red: #e5484d;
  --line: 3px solid var(--ink);
  --shadow: 4px 4px 0 var(--ink);
  --radius: 18px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.5 Inter, system-ui, sans-serif;
  overflow-x: hidden;
}
a { color: inherit; }
h1, h2, h3, .brand, .btn, .badge, .stamp { font-family: Fredoka, Inter, sans-serif; }
h1 { font-size: clamp(2.2rem, 6vw, 4rem); line-height: 1.02; margin: 0 0 14px; }
h2 { font-size: 1.5rem; margin: 0 0 6px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
code { font-size: .8rem; word-break: break-all; }

/* top bar */
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 18px;
  padding: 10px 20px; background: var(--bg); border-bottom: var(--line);
}
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 700; font-size: 1.6rem; letter-spacing: .02em; }
.nav { display: flex; gap: 4px; margin-left: 10px; }
.nav a { text-decoration: none; font-weight: 600; padding: 8px 12px; border-radius: 999px; }
.nav a.active, .nav a:hover { background: var(--pink-soft); }
.wallet { margin-left: auto; }

.ticker { background: var(--ink); color: #fff; overflow: hidden; white-space: nowrap; font: 600 .8rem/1 Inter, sans-serif; text-transform: uppercase; letter-spacing: .06em; }
.ticker-track { display: inline-flex; animation: tick 60s linear infinite; padding: 10px 0; }
.ticker span { padding: 0 22px; }
.ticker span:nth-child(odd) { color: var(--pink); }
@keyframes tick { to { transform: translateX(-50%); } }

main { max-width: 1360px; margin: 0 auto; padding: 24px 20px 60px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font-weight: 600; font-size: 1rem; padding: 10px 18px;
  background: var(--paper); color: var(--ink); border: var(--line); border-radius: 999px;
  box-shadow: 3px 3px 0 var(--ink); cursor: pointer; text-decoration: none;
  transition: transform .08s, box-shadow .08s;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn:disabled { opacity: .6; cursor: wait; }
.btn.primary { background: var(--pink); }
.btn.ghost { background: transparent; }
.btn.big { font-size: 1.15rem; padding: 14px 24px; }
.btn.wallet.connected { background: var(--blue-soft); }

/* hero */
.hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; align-items: center; padding: 20px 0 30px; }
.eyebrow { font: 700 .8rem/1 Inter, sans-serif; text-transform: uppercase; letter-spacing: .12em; color: var(--pink); margin: 0 0 12px; }
.lead { font-size: 1.12rem; max-width: 560px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.hero-art { display: flex; align-items: flex-end; justify-content: center; gap: 0; }
.hero-art .mama-wrap svg { width: 190px; }
.hero-art .papa-wrap svg { width: 240px; }
.hero-art .mama-wrap { animation: bob 3s ease-in-out infinite; }
.hero-art .papa-wrap { animation: bob 3s ease-in-out infinite .6s; }
@keyframes bob { 50% { transform: translateY(-8px); } }

/* panels */
.panel { background: var(--paper); border: var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; margin: 22px 0; }
.panel.narrow { max-width: 720px; margin-left: auto; margin-right: auto; }
.panel-head { margin-bottom: 16px; }
.panel-head p { margin: 0; color: var(--muted); }
.page-title { font-size: clamp(2rem, 5vw, 3rem); }

/* race */
.race { display: grid; gap: 10px; }
.lane { display: grid; grid-template-columns: 90px 1fr 40px; align-items: center; gap: 10px; text-decoration: none; }
.lane-name { font: 700 1rem Fredoka, sans-serif; overflow: hidden; text-overflow: ellipsis; }
.lane-water { position: relative; height: 56px; background: repeating-linear-gradient(90deg, var(--blue-soft) 0 40px, #d5eeff 40px 80px); border-radius: 999px; border: 2px solid var(--ink); overflow: hidden; }
.swimmer { position: absolute; top: 50%; transform: translateY(-50%); transition: left 1s; }
.swimmer svg { display: block; }
.lane-egg { font-size: 1.8rem; text-align: center; }

/* creature animation */
.creature.swim .tail { animation: wiggle .5s ease-in-out infinite alternate; transform-origin: 96px 60px; }
@keyframes wiggle { from { transform: skewY(-6deg); } to { transform: skewY(6deg); } }

/* grid of coins */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.card { border: var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: 3px 3px 0 var(--ink); text-decoration: none; overflow: hidden; }
.card:hover { transform: translate(-1px, -1px); }
.coin-art { display: flex; justify-content: center; align-items: center; height: 170px; background: var(--pink-soft); border-bottom: var(--line); }
.stage-bg-embryo .coin-art { background: #ffeef4; }
.stage-bg-baby .coin-art { background: var(--blue-soft); }
.stage-bg-kid .coin-art { background: #fff4c9; }
.stage-bg-adult .coin-art { background: #e2f6ec; }
.stage-bg-dead .coin-art { background: #eeecf2; }
.coin-meta { padding: 12px 14px; display: grid; gap: 4px; }
.coin-meta b { font: 700 1.2rem Fredoka, sans-serif; }

/* list rows */
.list { display: grid; gap: 8px; }
.row { display: grid; grid-template-columns: 44px 1fr auto auto; gap: 12px; align-items: center; padding: 8px 10px; border: 2px solid var(--ink); border-radius: 14px; text-decoration: none; }
.row:hover { background: var(--bg); }
.row img { border-radius: 50%; border: 2px solid var(--ink); object-fit: cover; }
.row-main { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.badge { display: inline-block; font-size: .8rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; border: 2px solid var(--ink); background: var(--paper); justify-self: start; }
.badge-born, .badge-sperm, .badge-embryo { background: var(--pink-soft); }
.badge-baby { background: var(--blue-soft); }
.badge-kid { background: #fff4c9; }
.badge-adult, .badge-blessed { background: #d4f3e3; }
.badge-aborted { background: #ffdcdc; }
.badge-unblessed, .badge-dead { background: #eeecf2; }
.badge-birthing { background: var(--yellow); }

/* form */
.form { display: grid; gap: 16px; margin-top: 18px; }
.form label { display: grid; gap: 6px; font-weight: 600; }
.form input, .form textarea, .form select, .inline select, .inline input {
  font: inherit; padding: 12px 14px; border: var(--line); border-radius: 14px; background: var(--bg); color: var(--ink); width: 100%;
}
.form textarea { resize: vertical; }
.logo-pick { display: grid; grid-template-columns: 140px 1fr; gap: 16px; align-items: center; }
.logo-drop { width: 140px; height: 140px; border: 3px dashed var(--ink); border-radius: 50%; display: flex !important; align-items: center; justify-content: center; cursor: pointer; overflow: hidden; background: var(--pink-soft); }
.logo-drop img { width: 100%; height: 100%; object-fit: cover; }
.fields { display: grid; gap: 12px; }

/* episode */
.episode { display: grid; gap: 18px; }
.ep-head { display: flex; gap: 16px; align-items: center; }
.ep-head h1 { font-size: clamp(1.8rem, 5vw, 2.8rem); margin: 0; }
.ep-head h1 span { font-size: .55em; color: var(--muted); font-weight: 500; }
.ep-head p { margin: 4px 0 0; }
.ep-logo { border-radius: 50%; border: var(--line); object-fit: cover; }
.future { margin: 0; background: var(--paper); border: var(--line); border-radius: var(--radius); padding: 16px 20px; font-size: 1.1rem; }
.future small { display: block; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--pink); font-size: .75rem; margin-bottom: 4px; }

.scene {
  position: relative; display: grid; grid-template-columns: 1fr auto 1fr; align-items: end;
  min-height: 420px; padding: 150px 20px 26px;
  background: linear-gradient(#ffe8f0, #fff7ee 70%); border: var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
}
.scene::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 30px; background: repeating-linear-gradient(90deg, #ffd0df 0 30px, #ffc0d4 30px 60px); border-top: var(--line); }
.scene .mama-wrap, .scene .papa-wrap { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.scene .mama-wrap svg { width: min(200px, 28vw); }
.scene .papa-wrap svg { width: min(250px, 34vw); }
.baby-wrap { z-index: 1; padding-bottom: 30px; animation: bob 2.4s ease-in-out infinite; }
.baby-wrap svg { width: min(150px, 22vw); height: auto; }
.name-tag { font: 700 .9rem Fredoka, sans-serif; background: var(--ink); color: #fff; padding: 2px 10px; border-radius: 999px; margin-top: -8px; position: relative; z-index: 2; }
.talking svg { animation: talk .25s ease-in-out infinite alternate; transform-origin: bottom center; }
@keyframes talk { to { transform: scale(1.04, .97); } }

.bubble {
  position: absolute; top: 18px; left: 50%; transform: translateX(-50%); width: min(620px, calc(100% - 32px));
  background: var(--paper); border: var(--line); border-radius: 20px; padding: 14px 18px; font-size: 1.1rem; z-index: 3; box-shadow: 3px 3px 0 var(--ink);
}
.bubble:empty { display: none; }
.bubble b { display: block; font: 700 .85rem Fredoka, sans-serif; text-transform: uppercase; letter-spacing: .08em; }
.bubble.from-mom b { color: var(--pink); }
.bubble.from-dad b { color: #2b8fd6; }
.bubble.from-mom { border-bottom-left-radius: 4px; }
.bubble.from-dad { border-bottom-right-radius: 4px; }

.votes { display: flex; flex-wrap: wrap; gap: 8px 22px; background: var(--paper); border: var(--line); border-radius: 14px; padding: 10px 16px; font-weight: 600; }
.votes em { font-style: normal; font-family: Fredoka, sans-serif; padding: 0 6px; border-radius: 6px; }
.votes .yes { background: #d4f3e3; color: var(--green); }
.votes .no { background: #ffdcdc; color: var(--red); }
.stamp {
  position: absolute; left: 50%; top: 42%; z-index: 4; transform: translateX(-50%) rotate(-8deg);
  font-size: clamp(1.6rem, 5vw, 3rem); font-weight: 700; padding: 4px 16px; border: 6px solid currentColor; border-radius: 12px; background: rgba(255,255,255,.88); white-space: nowrap;
  animation: slam .35s cubic-bezier(.2, 1.6, .4, 1);
}
.stamp-blessed { color: var(--green); }
.stamp-unblessed { color: #8a7f9c; }
.stamp-aborted { color: var(--red); }
@keyframes slam { from { transform: translateX(-50%) rotate(-8deg) scale(2.4); opacity: 0; } }

.ep-controls { display: flex; gap: 10px; flex-wrap: wrap; }
.born-box { background: var(--paper); border: var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }
.born-box.blessed { background: #effaf4; }
.born-box.aborted { background: #fff0f0; }
.born-box p { max-width: 680px; }
.warn { color: var(--red); font-weight: 600; }
.inline { display: flex; align-items: center; gap: 10px; font-weight: 600; margin: 8px 0 16px; }
.inline select, .inline input { width: 110px; }

.stages { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 0; margin: 16px 0; }
.stages li { border: 2px solid var(--ink); border-radius: 12px; padding: 8px; background: var(--bg); opacity: .55; }
.stages li.done { opacity: 1; background: var(--pink-soft); }
.stages li.now { outline: 3px solid var(--pink); }
.stages b { display: block; font-family: Fredoka, sans-serif; }
.stages small { color: var(--muted); }

.how { display: grid; gap: 12px; padding-left: 22px; font-size: 1.05rem; }

.foot { text-align: center; color: var(--muted); font-size: .85rem; padding: 0 20px 30px; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 140%); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 14px; max-width: calc(100% - 32px); transition: transform .25s, visibility .25s; z-index: 50; visibility: hidden; }
.toast.show { transform: translate(-50%, 0); visibility: visible; }
.toast.bad { background: var(--red); }

@media (max-width: 760px) {
  .topbar { flex-wrap: wrap; padding: 10px 16px; gap: 8px; }
  .nav { order: 3; width: 100%; margin: 0; justify-content: space-between; }
  .nav a { padding: 6px 10px; }
  main { padding: 16px 16px 50px; }
  .hero { grid-template-columns: 1fr; }
  .hero-art .mama-wrap svg { width: 130px; }
  .hero-art .papa-wrap svg { width: 170px; }
  .panel { padding: 18px; }
  .logo-pick { grid-template-columns: 1fr; justify-items: center; }
  .logo-pick .fields { width: 100%; }
  .scene { padding: 170px 8px 24px; min-height: 380px; }
  .stamp { top: 48%; }
  .row { grid-template-columns: 40px 1fr auto; }
  .row small { display: none; }
  .lane { grid-template-columns: 64px 1fr 30px; }
}

/* ---------- the Womb House ---------- */
.house-wrap { margin: 0 auto; }
.house-hint { display: none; text-align: center; font-size: .85rem; margin: 8px 0 0; }
.house-scene { position: relative; margin: 0 auto; aspect-ratio: 1360 / 860; container-type: inline-size; border: var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; background: #eaf7ff; }
.house-art { position: absolute; inset: 0; width: 100%; height: 100%; font-family: Fredoka, sans-serif; fill: var(--ink); }
.house-art .room-empty { fill: #7a7290; font-family: Inter, sans-serif; font-weight: 600; paint-order: stroke; stroke: #fff; stroke-width: 5px; stroke-linejoin: round; }
.resident { position: absolute; z-index: 3; display: block; text-decoration: none; }
.resident:hover { z-index: 5; }
.resident .creature { display: block; width: 100%; height: auto; transition: transform .15s; transform-origin: 50% 100%; }
.resident:hover .creature { transform: scale(1.15); }
.res-tag { position: absolute; top: 100%; left: 50%; transform: translate(-50%, 2px); background: var(--ink); color: #fff; border-radius: 999px; padding: .1em .55em; font: 700 max(9px, .85cqw) Inter, sans-serif; white-space: nowrap; pointer-events: none; }
.res-dead .res-tag { background: #8e889c; }
.on-sofa .res-tag { top: auto; bottom: 100%; transform: translate(-50%, -2px); }
.walker { display: block; animation: wander var(--dur, 8s) ease-in-out var(--delay, 0s) infinite alternate; }
.res-baby .walker { animation-name: crawl; }
.res-adult .walker { animation-name: chill; }
.res-dead .walker { animation-name: float; }
@keyframes wander { 0% { transform: translateX(-45%); } 50% { transform: translate(0, -8%); } 100% { transform: translateX(45%); } }
@keyframes crawl { 0% { transform: translateX(-30%) rotate(-5deg); } 100% { transform: translateX(30%) rotate(5deg); } }
@keyframes chill { 0%, 72% { transform: translateY(0) rotate(0); } 82% { transform: translateY(-6%) rotate(-3deg); } 92% { transform: translateY(0) rotate(3deg); } 100% { transform: rotate(0); } }
@keyframes float { 0% { transform: translate(-25%, 0) rotate(-3deg); } 100% { transform: translate(25%, -22%) rotate(3deg); } }
.house-art .h-mobile { transform-box: fill-box; transform-origin: 50% 0; animation: swing 4s ease-in-out infinite alternate; }
@keyframes swing { from { transform: rotate(-6deg); } to { transform: rotate(6deg); } }
.house-art .puff { animation: puff 4.5s ease-in infinite; transform-box: fill-box; transform-origin: center; }
.house-art .p2 { animation-delay: -1.5s; } .house-art .p3 { animation-delay: -3s; }
@keyframes puff { 0% { transform: translate(0, 30px) scale(.5); opacity: 0; } 20% { opacity: 1; } 100% { transform: translate(18px, -40px) scale(1.2); opacity: 0; } }
.house-art .h-lamp { animation: glow 3s ease-in-out infinite alternate; }
@keyframes glow { from { opacity: .55; } to { opacity: 1; } }
.house-art .h-sun { transform-box: fill-box; transform-origin: center; animation: spin 40s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.house-art .h-cloud path { animation: drift 14s ease-in-out infinite alternate; }
.house-art .h-cloud path:nth-child(2) { animation-duration: 18s; } .house-art .h-cloud path:nth-child(3) { animation-duration: 11s; }
@keyframes drift { to { transform: translateX(26px); } }
.house-art .parent .mouth { animation: none; }
.bed-bubble { position: absolute; z-index: 4; transform: translateY(-100%); background: #fff; border: 2px solid var(--ink); border-radius: 14px; padding: .25em .7em; font: 700 max(10px, 1cqw) Fredoka, sans-serif; color: var(--ink); text-decoration: none; box-shadow: 2px 2px 0 var(--ink); white-space: nowrap; animation: bob 2.6s ease-in-out infinite; }
.bed-bubble::after { content: ""; position: absolute; left: 30%; bottom: -8px; width: 12px; height: 12px; background: #fff; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg); }
.bed-bubble:hover { background: var(--pink-soft); }
.everyone { margin-top: 18px; }
.everyone summary { cursor: pointer; font: 600 .95rem Fredoka, sans-serif; margin-bottom: 12px; }
@media (max-width: 700px) {
  .house-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 6px; }
  .house-scene { width: 870px; box-shadow: none; }
  .house-hint { display: block; }
}
@media (prefers-reduced-motion: reduce) { .walker, .house-art *, .bed-bubble { animation: none !important; } }

/* ---------- the Womb Show (live, everyone watches together) ---------- */
.show-panel .panel-head h2 { display: flex; align-items: center; gap: 10px; }
.live-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 0 rgba(229,72,77,.6); animation: livepulse 1.6s infinite; }
@keyframes livepulse { 70% { box-shadow: 0 0 0 10px rgba(229,72,77,0); } 100% { box-shadow: 0 0 0 0 rgba(229,72,77,0); } }
.show { display: grid; gap: 10px; }
.show-top { display: flex; align-items: center; gap: 12px; background: var(--ink); color: #fff; border-radius: 14px; padding: 8px 14px; min-width: 0; }
.show-title { font-family: Fredoka, sans-serif; font-size: 1.1rem; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.show-clock { font: 600 .85rem Inter, sans-serif; opacity: .8; white-space: nowrap; }
.onair { font: 700 .8rem Fredoka, sans-serif; letter-spacing: .08em; padding: 3px 10px; border-radius: 999px; background: #4a4560; white-space: nowrap; }
.onair-live, .onair-soon { background: var(--red); animation: blink 1.2s steps(2, start) infinite; }
.onair-rerun { background: #8a6ad6; }
.onair-gap { background: #2b8fd6; }
@keyframes blink { 50% { opacity: .6; } }
/* the set: Mama and Papa's bedroom */
.show { position: relative; }
.show-stage { position: relative; width: min(100%, calc(74vh * 16 / 9)); margin: 0 auto; aspect-ratio: 16 / 9; container-type: inline-size; border: var(--line); border-radius: var(--radius); overflow: hidden; background: #efe6ff; box-shadow: var(--shadow); }
.studio { position: absolute; inset: 0; width: 100%; height: 100%; }
.studio-front { z-index: 2; pointer-events: none; }
.show-stage .mama-wrap, .show-stage .papa-wrap { position: absolute; z-index: 1; display: block; bottom: 22.2%; }
.show-stage .st-mama { left: 28.9%; width: 15%; }
.show-stage .st-papa { left: 54.4%; width: 19.5%; }
.show-stage .mama-wrap svg, .show-stage .papa-wrap svg { display: block; width: 100%; height: auto; }
.show-stage .name-tag { position: absolute; left: 50%; top: -2.2cqw; transform: translateX(-50%); margin: 0; font-size: max(10px, 1.15cqw); white-space: nowrap; }
.show-stage .st-papa .name-tag { left: 40%; }
.show-guest { position: absolute; z-index: 3; left: 41.5%; width: 17%; bottom: 18%; animation: bob 2.4s ease-in-out infinite; }
.show-guest svg { display: block; width: 100%; height: auto; }
.show-guest.talking svg { animation: talk .25s ease-in-out infinite alternate; }
.show > .bubble { top: 70px; width: min(760px, 62%); z-index: 6; font-size: max(14px, 1.15rem); }
.show-stage .stamp { z-index: 6; top: 38%; font-size: max(22px, 5cqw); border-width: max(4px, .5cqw); }
:is(.studio, .studio-mini) .st-sign text { fill: #5c4060; transition: fill .3s; }
:is(.show-stage, .house-scene).on-air .st-onair text { fill: #ff5470; filter: drop-shadow(0 0 6px #ff5470) drop-shadow(0 0 14px #ff5470); }
:is(.show-stage, .house-scene).applause .st-applause text { fill: #ffd23f; filter: drop-shadow(0 0 6px #ffd23f) drop-shadow(0 0 14px #ffb800); animation: blink .5s steps(2, start) infinite; }
:is(.studio, .studio-mini) .st-bulb ellipse { animation: twinkle 1.4s ease-in-out infinite alternate; }
:is(.studio, .studio-mini) .st-bulb.b1 ellipse { animation-delay: -.5s; } :is(.studio, .studio-mini) .st-bulb.b2 ellipse { animation-delay: -1s; }
@keyframes twinkle { from { opacity: .45; } to { opacity: 1; } }
:is(.studio, .studio-mini) .st-star { animation: twinkle 1.8s ease-in-out infinite alternate; }
:is(.studio, .studio-mini) .st-star.t1 { animation-delay: -.6s; } :is(.studio, .studio-mini) .st-star.t2 { animation-delay: -1.2s; }
:is(.studio, .studio-mini) .st-beam { transform-box: fill-box; animation: beam 7s ease-in-out infinite alternate; }
:is(.studio, .studio-mini) .st-beam.l { transform-origin: 10% 0; } :is(.studio, .studio-mini) .st-beam.r { transform-origin: 90% 0; animation-delay: -3s; }
@keyframes beam { from { transform: rotate(-5deg); } to { transform: rotate(5deg); } }
:is(.studio, .studio-mini) .st-lamp { animation: glow 3s ease-in-out infinite alternate; }
:is(.studio, .studio-mini) .st-beat { transform-box: fill-box; transform-origin: center; animation: beat 1.2s ease-in-out infinite; }
@keyframes beat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.18); } 30% { transform: scale(1); } 45% { transform: scale(1.12); } }
.show-confetti { position: absolute; inset: 0; z-index: 5; pointer-events: none; overflow: hidden; }
.show-confetti i { position: absolute; top: -6%; width: .9cqw; height: 1.5cqw; border-radius: 2px; animation: fall 3s linear infinite; font-style: normal; }
.show-confetti i.c-heart { width: auto; height: auto; font-size: 2.4cqw; line-height: 1; }
@keyframes fall { 0% { top: -6%; transform: translateX(0) rotate(0); } 100% { top: 104%; transform: translateX(var(--sway)) rotate(600deg); } }
.bubble.from-guest b { color: #8a6ad6; }
.show-card { position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; background: rgba(255,247,238,.92); padding: 20px; }
.show-card[hidden] { display: none; }
.show-card small { font: 700 .8rem Inter, sans-serif; text-transform: uppercase; letter-spacing: .12em; color: var(--pink); }
.show-card img { border-radius: 50%; border: var(--line); object-fit: cover; }
.show-card b { font: 700 1.8rem Fredoka, sans-serif; }
.show-card .show-count { font: 700 2.4rem Fredoka, sans-serif; font-style: normal; color: var(--ink); }
.show-bar { height: 8px; border: 2px solid var(--ink); border-radius: 999px; background: var(--paper); overflow: hidden; }
.show-bar i { display: block; height: 100%; width: 0; background: var(--pink); transition: width .25s linear; }
.show-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.show-votes { display: flex; flex-wrap: wrap; gap: 6px 18px; font-weight: 600; min-height: 1.6em; }
.show-votes em { font-style: normal; font-family: Fredoka, sans-serif; padding: 0 6px; border-radius: 6px; }
.show-votes .yes { background: #d4f3e3; color: var(--green); }
.show-votes .no { background: #ffdcdc; color: var(--red); }
.show-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.show-btns [hidden] { display: none; }
.show-next { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .95rem; }
.show-next a { display: inline-flex; align-items: center; gap: 6px; background: var(--paper); border: 2px solid var(--ink); border-radius: 999px; padding: 2px 10px 2px 2px; color: var(--ink); text-decoration: none; font-weight: 700; }
.show-next a.mine { background: var(--pink-soft); }
.show-next a img { border-radius: 50%; object-fit: cover; }
.show-next small { font-weight: 500; color: var(--muted); }
@media (max-width: 760px) {
  .show > .bubble { position: static; transform: none; width: auto; font-size: 1rem; min-height: 5.6em; }
  .show > .bubble:empty { display: block; visibility: hidden; }
  .show-card b { font-size: 1.2rem; }
  .show-card img { width: 48px; height: 48px; }
  .show-card .show-count { font-size: 1.6rem; }
  .show-card { gap: 2px; padding: 8px; }
}
@media (prefers-reduced-motion: reduce) { .studio *, .show-guest, .show-confetti { animation: none !important; } }

/* the bedroom follows the show */
.bed-bubble.airing { top: auto !important; bottom: 55.5%; left: 50.88% !important; width: 27.9%; transform: none; animation: none; white-space: normal; font: 500 max(10px, .92cqw) Inter, sans-serif; line-height: 1.3; padding: .5em .8em; }
.bed-bubble.airing b { display: block; font: 700 max(9px, .78cqw) Fredoka, sans-serif; text-transform: uppercase; letter-spacing: .06em; }
.bed-bubble.from-mom b { color: var(--pink); }
.bed-bubble.from-dad b { color: #2b8fd6; }
.bed-bubble.from-guest b { color: #8a6ad6; }
.bed-bubble.from-mom::after { left: 18%; }
.bed-bubble.from-guest::after { left: 34%; }
.bed-bubble.from-dad::after { left: 52%; }
.bed-guest { position: absolute; z-index: 3; left: 62.35%; bottom: 37.4%; width: 4.87%; }
.bed-guest[hidden] { display: none; }
.bed-guest .walker { display: block; animation: bob 2.4s ease-in-out infinite; }
.bed-guest svg { display: block; width: 100%; height: auto; }
.bed-stamp { position: absolute; z-index: 5; left: 64.8%; top: 62%; transform: translate(-50%, -50%) rotate(-8deg); font: 700 max(12px, 1.76cqw) Fredoka, sans-serif; padding: .1em .5em; border: max(3px, .3cqw) solid currentColor; border-radius: 10px; background: rgba(255,255,255,.9); white-space: nowrap; pointer-events: none; }
.bed-stamp[hidden] { display: none; }
.bed-mama, .bed-papa { transform-box: fill-box; transform-origin: 50% 100%; }
.house-scene.air-mom .bed-mama, .house-scene.air-dad .bed-papa { animation: talk .25s ease-in-out infinite alternate; }
@media (prefers-reduced-motion: reduce) { .live-dot, .onair, .bed-guest .walker, .bed-mama, .bed-papa { animation: none !important; } }

/* house extras */
.house-art .h-stork { animation: stork 34s linear infinite; }
@keyframes stork { 0% { transform: translate(-360px, 180px); } 100% { transform: translate(1400px, 120px); } }
.house-art .h-stork .wing { transform-box: fill-box; transform-origin: 30% 100%; animation: flap .5s ease-in-out infinite alternate; }
@keyframes flap { to { transform: scaleY(-.6); } }
.house-art .h-balloon { animation: balloon 9s ease-in-out infinite alternate; }
@keyframes balloon { from { transform: translate(0, 10px); } to { transform: translate(30px, -20px); } }
.house-art .h-birds { animation: drift 10s ease-in-out infinite alternate; }
.house-art .h-swing { transform-box: view-box; transform-origin: 0 600px; animation: tire 3s ease-in-out infinite alternate; }
@keyframes tire { from { transform: rotate(-10deg); } to { transform: rotate(10deg); } }
.house-art .h-duck { animation: duck 6s ease-in-out infinite alternate; }
@keyframes duck { from { transform: translateX(-24px); } to { transform: translateX(24px); } }
.house-art .h-vane { transform-box: view-box; transform-origin: 500px 92px; animation: vane 8s ease-in-out infinite alternate; }
@keyframes vane { from { transform: rotate(-25deg); } to { transform: rotate(25deg); } }
.house-art .h-bulb { animation: twinkle 1.3s ease-in-out infinite alternate; }
.house-art .h-bulb.b1 { animation-delay: -.45s; } .house-art .h-bulb.b2 { animation-delay: -.9s; }
.house-art .h-zzz { animation: zzz 3s ease-in-out infinite; }
@keyframes zzz { 0% { opacity: 0; transform: translateY(6px); } 50% { opacity: 1; } 100% { opacity: 0; transform: translateY(-10px); } }
.tv-live { position: absolute; z-index: 3; left: 72.94%; top: 76.74%; width: 5%; height: 5.58%; display: flex; align-items: center; justify-content: center; gap: 4%; background: #3b6fa8; border-radius: 3px; text-decoration: none; overflow: hidden; }
.tv-live[hidden] { display: none; }
.tv-live img { height: 80%; aspect-ratio: 1; border-radius: 50%; object-fit: cover; border: 1px solid #fff; }
.tv-live b { color: #fff; background: var(--red); font: 700 max(7px, .6cqw) Inter, sans-serif; padding: 0 .3em; border-radius: 3px; }

