/* EGGFART v7 — THE GAS OPERA PLAYBILL. Letterpress on cream. Ground-up theme. */
:root {
  color-scheme: light;
  --paper: #f3e9d2;
  --paper-deep: #e7d7b8;
  --card: #faf3e2;
  --ink: #221310;
  --ink-soft: #4d3a2c;
  --muted: #7d6a54;
  --red: #b3231b;
  --gold: #9a7414;
  --gold-bright: #c99a1f;
  --green: #2f6b3a;
  --line: #221310;
  --c1: #b3231b; --c2: #9a7414; --c3: #2f6b3a;
}
* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; color: var(--ink); background: var(--paper);
  font-family: Georgia, "Times New Roman", serif;
  background-image: radial-gradient(#d8c8a4 0.6px, transparent 0.6px);
  background-size: 18px 18px;
  overflow-x: hidden;
  border-top: 10px double var(--ink);
  border-bottom: 10px double var(--ink);
}
button, input { font: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
#gas-background { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; opacity: .5; }
#finale-confetti { position: fixed; inset: 0; z-index: 60; pointer-events: none; overflow: hidden; }
.confetto { position: absolute; top: -4vh; left: var(--x); width: var(--w); height: calc(var(--w) * 1.6); background: var(--c); border-radius: 2px; opacity: 0; animation: confetti-fall var(--d) ease-in forwards; }
@keyframes confetti-fall { 0% { opacity: 1; transform: translateY(0) rotate(0); } 100% { opacity: .9; transform: translateY(112vh) rotate(var(--r)); } }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Ticker */
.ticker { background: var(--ink); color: var(--paper); overflow: hidden; white-space: nowrap; position: relative; z-index: 3; }
.ticker-inner { display: inline-flex; padding: 7px 0; font-size: 11px; letter-spacing: .22em; font-family: Verdana, sans-serif; animation: ticker-roll 28s linear infinite; }
@keyframes ticker-roll { to { transform: translateX(-50%); } }

/* Masthead */
.masthead { position: relative; z-index: 2; text-align: center; padding: 18px clamp(16px, 4vw, 48px) 26px; border-bottom: 4px double var(--ink); background: linear-gradient(to bottom, rgba(255,252,240,.6), transparent); }
.masthead-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 1100px; margin: 0 auto; }
.masthead-issue { font-size: 11px; letter-spacing: .2em; border: 1px solid var(--ink); padding: 5px 10px; font-family: Verdana, sans-serif; }
.wordmark { color: var(--ink); text-decoration: none; font-weight: 900; letter-spacing: .06em; font-size: 18px; }
.wordmark #egg { display: inline-block; animation: mark-sway 5s ease-in-out infinite; }
@keyframes mark-sway { 0%, 100% { transform: rotate(-10deg); } 50% { transform: rotate(10deg); } }
.credits-trigger { border: 1px solid var(--ink); background: transparent; color: var(--ink); font-size: 12px; font-weight: 700; cursor: pointer; padding: 8px 12px; border-radius: 2px; font-family: Verdana, sans-serif; }
.credits-trigger:hover { background: var(--ink); color: var(--paper); }
.masthead-kicker { margin: 20px 0 6px; font-size: 12px; letter-spacing: .34em; color: var(--red); font-family: Verdana, sans-serif; }
.masthead h1 { margin: 0; font-size: clamp(52px, 11vw, 124px); line-height: .92; letter-spacing: -.01em; font-weight: 900; }
.masthead h1 em { color: var(--red); }
.masthead-sub { margin: 12px 0 0; font-style: italic; color: var(--ink-soft); }
.live-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 3px rgba(179,35,27,.18); animation: dot-pulse 1.6s ease-in-out infinite; }
@keyframes dot-pulse { 50% { transform: scale(1.35); } }
.masthead-cta { display: flex; gap: 12px; justify-content: center; margin-top: 18px; flex-wrap: wrap; }
.random-button { border: 2px solid var(--ink); background: var(--red); color: #fff8ea; padding: 12px 20px; font-weight: 800; cursor: pointer; border-radius: 3px; box-shadow: 4px 4px 0 var(--ink); font-family: Verdana, sans-serif; font-size: 13px; transition: transform .12s ease, box-shadow .12s ease; }
.random-button:hover { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 var(--ink); }
.random-button:active { transform: translate(2px,2px); box-shadow: 1px 1px 0 var(--ink); }
.random-icon { margin-right: 6px; }
.ghost-button { display: inline-flex; align-items: center; border: 2px solid var(--ink); color: var(--ink); text-decoration: none; padding: 12px 18px; font-weight: 800; border-radius: 3px; background: transparent; font-family: Verdana, sans-serif; font-size: 13px; }
.ghost-button:hover { background: var(--ink); color: var(--paper); }

.page-shell { position: relative; z-index: 2; max-width: 1100px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }

/* Stage */
.stage-section { display: grid; grid-template-columns: 1.25fr .75fr; gap: 26px; align-items: stretch; padding: 30px 0; border-bottom: 4px double var(--ink); }
.opera-stage { position: relative; min-height: 340px; border-radius: 160px 160px 8px 8px; overflow: hidden; background: linear-gradient(to bottom, #2b0f2e 0%, #4d1735 55%, #1a0b1c 100%); border: 3px solid var(--ink); box-shadow: 8px 8px 0 rgba(34,19,16,.25); }
.curtain { position: absolute; top: 0; bottom: 20%; width: 24%; z-index: 3; }
.curtain-left { left: 0; border-radius: 0 0 50px 0; background: repeating-linear-gradient(95deg, #8e2440 0 14px, #631730 14px 28px); box-shadow: 8px 0 24px rgba(0,0,0,.5); transform-origin: top left; animation: curtain-sway 7s ease-in-out infinite; }
.curtain-right { right: 0; border-radius: 0 0 0 50px; background: repeating-linear-gradient(85deg, #8e2440 0 14px, #631730 14px 28px); box-shadow: -8px 0 24px rgba(0,0,0,.5); transform-origin: top right; animation: curtain-sway 7s ease-in-out infinite reverse; }
@keyframes curtain-sway { 0%, 100% { transform: skewX(0); } 50% { transform: skewX(1.8deg); } }
.stage-floor { position: absolute; left: 0; right: 0; bottom: 0; height: 22%; z-index: 1; background: repeating-linear-gradient(90deg, #6b4423 0 26px, #59371c 26px 52px); border-top: 4px solid var(--gold-bright); }
.conductor { position: absolute; left: 50%; bottom: 24%; z-index: 2; transform: translateX(-50%); animation: cond-bob 3.2s ease-in-out infinite; }
.conductor-egg { font-size: 84px; display: inline-block; filter: drop-shadow(0 12px 12px rgba(0,0,0,.55)); }
.conductor .baton { position: absolute; right: -32px; top: 10px; width: 40px; height: 5px; border-radius: 3px; background: var(--cue, #f5c95c); box-shadow: 0 0 14px var(--cue, #f5c95c); transform-origin: left center; transform: rotate(-24deg); }
.conductor.cue { animation: cond-bow .46s cubic-bezier(.2,.8,.3,1.3); }
.conductor.cue .baton { animation: baton-twirl .46s ease-out; }
@keyframes cond-bob { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(-9px); } }
@keyframes cond-bow { 30% { transform: translateX(-50%) translateY(8px) scale(1.07); } 60% { transform: translateX(-50%) translateY(-5px); } }
@keyframes baton-twirl { 40% { transform: rotate(150deg); } }
.footlights { position: absolute; left: 0; right: 0; bottom: 8px; z-index: 4; display: flex; justify-content: space-around; padding: 0 18px; }
.footlights span { width: 12px; height: 12px; border-radius: 50%; background: #fff3cf; box-shadow: 0 0 18px rgba(255,243,207,.95); animation: foot-flicker 2.8s ease-in-out infinite; }
.footlights span:nth-child(2n) { animation-delay: .7s; }
.footlights span:nth-child(3n) { animation-delay: 1.3s; }
@keyframes foot-flicker { 0%, 100% { opacity: 1; } 50% { opacity: .5; } }
.stage-side { display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.eyebrow { margin: 0; font-size: 11px; letter-spacing: .24em; color: var(--red); font-family: Verdana, sans-serif; font-weight: 700; }
.eyebrow-mark { color: var(--red); }
.stage-copy { margin: 0; font-size: 17px; line-height: 1.6; font-style: italic; color: var(--ink-soft); }
.pressure-meter { border: 2px solid var(--ink); border-radius: 3px; padding: 12px 14px; background: var(--card); box-shadow: 4px 4px 0 rgba(34,19,16,.2); }
.pressure-meta { display: flex; justify-content: space-between; font-size: 10px; letter-spacing: .14em; font-weight: 700; font-family: Verdana, sans-serif; margin-bottom: 8px; }
.pressure-meta span:last-child { color: var(--red); font-variant-numeric: tabular-nums; }
.pressure-rail { height: 12px; border: 1px solid var(--ink); border-radius: 8px; overflow: hidden; background: repeating-linear-gradient(-45deg, transparent 0 6px, rgba(34,19,16,.08) 6px 12px); }
.pressure-rail span { display: block; width: 0; height: 100%; background: repeating-linear-gradient(-45deg, var(--red) 0 8px, #8e1a14 8px 16px); transition: width .12s linear; }

/* Cast: ticket stubs */
.sound-section { padding: 30px 0; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 18px; margin-bottom: 18px; flex-wrap: wrap; }
.section-heading h2 { margin: 6px 0 0; font-size: clamp(40px, 6vw, 64px); letter-spacing: -.01em; line-height: 1; }
.section-eyebrow { color: var(--red); }
.volume-control { display: flex; align-items: center; gap: 10px; border: 2px solid var(--ink); padding: 10px 14px; background: var(--card); border-radius: 3px; font-family: Verdana, sans-serif; }
.volume-icon { color: var(--red); font-size: 20px; }
.volume-label { font-size: 10px; letter-spacing: .14em; font-weight: 700; }
.volume-control input { width: 120px; accent-color: var(--red); }
.board { display: grid; gap: 12px; }
.pad {
  --c1: #b3231b; --c2: #9a7414; --c3: #2f6b3a;
  position: relative; display: grid; grid-template-columns: 74px 132px 1fr auto; gap: 16px; align-items: center;
  text-align: left; cursor: pointer; color: var(--ink); background: var(--card);
  border: 2px solid var(--ink); border-radius: 4px; padding: 12px 16px 12px 12px;
  box-shadow: 5px 5px 0 rgba(34,19,16,.22);
  transition: transform .16s ease, box-shadow .16s ease;
  overflow: hidden;
}
.pad:nth-child(odd) { transform: rotate(-.35deg); }
.pad:nth-child(even) { transform: rotate(.35deg); }
.pad:hover { transform: rotate(0) translateY(-3px); box-shadow: 7px 9px 0 rgba(34,19,16,.25); border-color: var(--red); }
.pad:active { transform: translateY(1px); box-shadow: 2px 2px 0 rgba(34,19,16,.25); }
.pad .spotlight { position: absolute; top: -30%; left: 22%; width: 220px; height: 180%; z-index: 0; opacity: 0; pointer-events: none; background: conic-gradient(from 180deg at 50% 0%, transparent 40%, color-mix(in srgb, var(--c1) 30%, transparent) 50%, transparent 60%); transition: opacity .25s ease; }
.pad.hit .spotlight, .pad.is-playing .spotlight { opacity: 1; }
.stub-act { text-align: center; font-size: 10px; letter-spacing: .18em; color: var(--muted); font-family: Verdana, sans-serif; border-right: 2px dashed rgba(34,19,16,.35); padding-right: 14px; position: relative; z-index: 1; }
.stub-act b { display: block; font-size: 30px; color: var(--red); font-family: Georgia, serif; letter-spacing: 0; }
.animal-stage { position: relative; z-index: 1; width: 132px; aspect-ratio: 11 / 8; overflow: hidden; border: 2px solid var(--ink); border-radius: 66px 66px 4px 4px; background: radial-gradient(ellipse at 50% 70%, color-mix(in srgb, var(--c1) 22%, #fff8ea), #efe0c2 75%); }
.animal-stage::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 18px rgba(34,19,16,.25); pointer-events: none; }
.animal-art { position: relative; z-index: 2; display: block; width: 100%; height: 100%; }
.animal-fallback { display: grid; place-items: center; width: 100%; height: 100%; font-size: 52px; }
.pad-copy { min-width: 0; position: relative; z-index: 1; }
.pad-animal-label { font-size: 10px; letter-spacing: .22em; color: var(--gold); font-weight: 700; font-family: Verdana, sans-serif; }
.pad-name { display: block; font-size: 24px; font-weight: 900; letter-spacing: -.01em; }
.pad-note { display: block; font-style: italic; color: var(--ink-soft); font-size: 14px; margin-top: 2px; }
.pad-meter { display: flex; gap: 3px; align-items: end; margin-top: 8px; height: 14px; }
.pad-meter i { display: block; width: 4px; height: var(--h); background: var(--red); border-radius: 1px; }
.stub-perf { display: grid; gap: 8px; justify-items: center; position: relative; z-index: 1; }
.pad-key { border: 2px solid var(--ink); border-radius: 3px; padding: 3px 9px; font-size: 12px; font-weight: 800; font-family: Verdana, sans-serif; background: var(--paper); }
.pad-play { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--red); }
.pad-play span { width: 0; height: 0; margin-left: 3px; border-top: 6px solid transparent; border-bottom: 6px solid transparent; border-left: 9px solid #fff8ea; }
.pad.hit { border-color: var(--red); }
.pad.is-playing { border-color: var(--c1); box-shadow: 5px 5px 0 var(--c1); }
.keyboard-note { margin: 16px 0 0; text-align: center; color: var(--muted); font-size: 12px; font-style: italic; }
.keyboard-icon { font-style: normal; }
kbd { display: inline-block; min-width: 20px; text-align: center; padding: 2px 6px; border: 1px solid var(--ink); border-bottom-width: 3px; border-radius: 3px; background: #fffdf4; font-family: Verdana, sans-serif; font-size: 10px; font-weight: 700; }
.keyboard-sep { padding: 0 4px; }

/* Score: piano roll */
.symphony { padding: 30px 0 36px; border-top: 4px double var(--ink); }
.symphony-note { font-style: italic; color: var(--ink-soft); }
.seq-transport { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 12px; }
.seq-btn { border: 2px solid var(--ink); border-radius: 3px; background: var(--card); color: var(--ink); font-size: 13px; font-weight: 700; padding: 10px 14px; cursor: pointer; font-family: Verdana, sans-serif; box-shadow: 3px 3px 0 rgba(34,19,16,.25); }
.seq-btn:hover { transform: translate(-1px,-1px); box-shadow: 4px 4px 0 rgba(34,19,16,.25); }
.seq-btn:active { transform: translate(1px,1px); box-shadow: 1px 1px 0 rgba(34,19,16,.25); }
.seq-play { background: var(--ink); color: var(--paper); }
.seq-controls { display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: end; margin-bottom: 12px; }
.seq-slider { display: grid; gap: 6px; font-size: 10px; letter-spacing: .16em; font-weight: 700; font-family: Verdana, sans-serif; }
.seq-slider input { width: 180px; accent-color: var(--red); }
.seq-val { font-variant-numeric: tabular-nums; }
.seq-presets { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.seq-presets-label { font-size: 10px; letter-spacing: .16em; font-weight: 700; font-family: Verdana, sans-serif; color: var(--muted); }
.seq-scroll { overflow-x: auto; border: 3px solid var(--ink); border-radius: 4px; background: #2a1a12; box-shadow: 6px 6px 0 rgba(34,19,16,.25); }
.seq-grid { min-width: 780px; padding: 12px; display: grid; gap: 5px; }
.seq-row { display: grid; grid-template-columns: 180px repeat(16, minmax(30px,1fr)); gap: 5px; align-items: center; }
.seq-head { display: flex; align-items: center; gap: 6px; min-width: 0; }
.seq-row-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #f3e9d2; font-size: 12px; font-style: italic; }
.seq-mini { width: 26px; height: 26px; border-radius: 50%; border: 1px solid #f3e9d2; background: transparent; color: #f3e9d2; font-size: 10px; font-weight: 800; cursor: pointer; }
.seq-mini.on { background: #f5c95c; color: #2a1a12; border-color: #f5c95c; }
.seq-solo.on { background: #ff7ab8; border-color: #ff7ab8; }
.seq-cell { height: 30px; border-radius: 50%; border: 1px solid rgba(243,233,210,.3); background: rgba(243,233,210,.08); cursor: pointer; padding: 0; }
.seq-cell.seq-beat { border-left: 3px solid #f5c95c; border-radius: 6px; }
.seq-cell.on { background: radial-gradient(circle at 50% 40%, #ff8a7a, var(--red)); border-color: #ffd9a0; box-shadow: 0 0 12px rgba(255,120,100,.7); border-radius: 6px; }
.seq-cell.now { outline: 2px solid #fff8ea; outline-offset: 1px; }
.seq-status { margin: 10px 0 0; font-style: italic; color: var(--ink-soft); min-height: 20px; }

.site-footer { border-top: 4px double var(--ink); padding: 18px 0 26px; display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.footer-brand { font-weight: 900; font-size: 18px; }
.footer-disclaimer { font-style: italic; color: var(--ink-soft); font-size: 13px; }
.counter-pill { display: inline-flex; align-items: center; gap: 8px; border: 2px solid var(--ink); border-radius: 99px; padding: 8px 14px; background: var(--card); font-family: Verdana, sans-serif; font-size: 12px; transition: transform .25s ease; }
.counter-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--red); }
.counter-pop { animation: counter-pop .3s ease; }
@keyframes counter-pop { 50% { transform: scale(1.1) rotate(-2deg); } }

/* Program notes dialog */
.credits-dialog { width: min(620px, calc(100% - 28px)); max-height: min(78vh, 720px); overflow: auto; padding: 26px 30px 30px; color: var(--ink); background: var(--paper); border: 3px solid var(--ink); border-radius: 4px; box-shadow: 10px 10px 0 rgba(34,19,16,.3); }
.credits-dialog::backdrop { background: rgba(34,19,16,.55); }
.dialog-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.dialog-top .eyebrow { font-size: 10px; }
.dialog-close { border: 2px solid var(--ink); border-radius: 50%; width: 32px; height: 32px; background: transparent; color: var(--ink); font-size: 20px; line-height: 1; cursor: pointer; }
.dialog-close:hover { background: var(--ink); color: var(--paper); }
.credits-dialog h2 { margin: 14px 0 4px; font-size: 38px; }
.credit-note { font-style: italic; color: var(--ink-soft); }
.credit-list { font-size: 14px; line-height: 1.7; padding-left: 20px; }
.credit-list li { padding: 6px 0; border-top: 1px dashed rgba(34,19,16,.4); }
.credit-list a { color: var(--red); font-weight: 700; }
.clic { font-weight: 800; }

/* Animal ink + clipped performance */
.stage-ground { fill: none; stroke: rgba(34,19,16,.25); stroke-width: 2; stroke-linecap: round; }
.animal-art .animal-body > *:not([stroke]), .animal-art .animal-head > *:not([stroke]), .animal-art .animal-tail > *:not([stroke]) { stroke: #36352e; stroke-width: 2.2; stroke-linejoin: round; }
.animal-art .animal-head .animal-eye { fill: #171711; stroke: #fff5df; stroke-width: 1.2; }
.animal-art .animal-legs path { fill: none; stroke: #625d4d; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.animal-art .animal-legs .feet { stroke: #28291f; stroke-width: 5; }
.animal-art .gas-puff { opacity: .12; transform-box: fill-box; transform-origin: center; }
.animal-art .gas-puff circle, .animal-art .gas-puff:not(.rings) > path { fill: var(--c1); stroke: none; }
.animal-art .puff-two circle { fill: var(--c2); }
.animal-art .puff-three circle { fill: var(--c3); }
.animal-art .gas-puff.poodle-tricolor .puff-blue { fill: #3187d4; }
.animal-art .gas-puff.poodle-tricolor .puff-white { fill: #fff4de; }
.animal-art .gas-puff.poodle-tricolor .puff-red { fill: #f15a59; }
.animal-art .gas-puff .steam-line { fill: none; stroke: #fff0c0; stroke-width: 3; stroke-linecap: round; }
.animal-art .gas-puff.rings ellipse { fill: none; stroke: var(--c1); stroke-width: 3; }
.animal-art .gas-puff.rings .ring-b { stroke: var(--c2); }
.animal-art .gas-puff.rings .ring-c { stroke: var(--c3); }
.animal-art .gas-puff.bubbles circle { fill: none; stroke: var(--c2); stroke-width: 3; }
.animal-art .gas-puff .flame-core { fill: #fff0a0; }
.animal-art .gas-puff .storm-flash { fill: #f3edff; stroke: #c6a7ff; stroke-width: 1; }
.animal-stage.animating { animation: stage-glow var(--anim-duration) ease-out both; }
@keyframes stage-glow { 0%,100% { box-shadow: inset 0 0 18px rgba(34,19,16,.25); } 22% { box-shadow: inset 0 0 22px color-mix(in srgb, var(--c1) 45%, transparent), 0 0 18px color-mix(in srgb, var(--c1) 55%, transparent); } }
.animal-stage.animating .animal-body { animation: body-crouch var(--anim-duration) cubic-bezier(.3,.05,.45,1) both; transform-box: fill-box; transform-origin: 50% 100%; }
.animal-stage.animating .animal-head { animation: head-bob var(--anim-duration) ease-in-out both; transform-box: fill-box; transform-origin: 20% 80%; }
.animal-stage.animating .animal-tail { animation: tail-flick var(--anim-duration) ease-in-out both; transform-box: fill-box; transform-origin: 100% 75%; }
.animal-stage.animating .animal-legs { animation: legs-brace var(--anim-duration) ease both; transform-box: fill-box; transform-origin: center bottom; }
.animal-stage.animating .gas-puff { animation: puff-pop var(--anim-duration) ease-out both; }
.animal-stage.animating .puff-two, .animal-stage.animating .puff-three { animation-name: puff-pop-later; }
@keyframes body-crouch { 0%,100% { transform: translateY(0) scaleY(1); } 18% { transform: translateY(5px) scaleY(.89); } 39% { transform: translateY(-3px) scaleY(1.04); } 58% { transform: translateY(1px) scaleY(.98); } }
@keyframes head-bob { 0%,100% { transform: rotate(0); } 24% { transform: rotate(-5deg) translateY(2px); } 51% { transform: rotate(4deg); } }
@keyframes tail-flick { 0%,100% { transform: rotate(0); } 18% { transform: rotate(-8deg); } 34% { transform: rotate(23deg); } 51% { transform: rotate(-11deg); } 67% { transform: rotate(6deg); } }
@keyframes legs-brace { 0%,100% { transform: translateY(0); } 20%,44% { transform: translateY(2px) scaleY(.94); } 65% { transform: translateY(-1px); } }
@keyframes puff-pop { 0%,17% { opacity: .12; transform: translate(-2px,4px) scale(.35); } 35% { opacity: .92; transform: translate(-4px,0) scale(1.06); } 59% { opacity: .62; transform: translate(-9px,-3px) scale(1.2); } 100% { opacity: 0; transform: translate(-13px,-6px) scale(1.32); } }
@keyframes puff-pop-later { 0%,50% { opacity: 0; transform: translate(-1px,3px) scale(.3); } 66% { opacity: .85; transform: translate(-5px,0) scale(1); } 84% { opacity: .35; transform: translate(-10px,-3px) scale(1.16); } 100% { opacity: 0; transform: translate(-12px,-4px) scale(1.24); } }
.animal-stage[data-species="chick"].animating .animal-tail { animation-name: chick-flick; }
@keyframes chick-flick { 0%,20%,100% { transform: rotate(0); } 27% { transform: rotate(26deg); } 37% { transform: rotate(-19deg); } 48% { transform: rotate(12deg); } }
.animal-stage[data-species="poodle"].animating .animal-head { animation-name: poodle-startle; }
@keyframes poodle-startle { 0%,45%,100% { transform: rotate(0); } 58% { transform: rotate(-17deg) translateY(-2px); } 72% { transform: rotate(9deg); } }
.animal-stage[data-species="skunk"].animating .animal-tail { animation-name: skunk-tail; }
.animal-stage[data-species="skunk"].animating .puff-one { animation: zip-one var(--anim-duration) ease-out both; }
.animal-stage[data-species="skunk"].animating .puff-two { animation: zip-two var(--anim-duration) ease-out both; }
@keyframes skunk-tail { 0%,100% { transform: rotate(0); } 20%,52% { transform: rotate(-18deg); } 37%,69% { transform: rotate(14deg); } }
@keyframes zip-one { 0%,9% { opacity: 0; transform: translate(0,4px) scale(.3); } 18% { opacity: 1; transform: translate(-8px,0) scale(1); } 35%,100% { opacity: 0; transform: translate(-15px,-3px) scale(1.12); } }
@keyframes zip-two { 0%,51% { opacity: 0; transform: translate(0,3px) scale(.3); } 63% { opacity: .95; transform: translate(-6px,0) scale(.9); } 82% { opacity: .4; transform: translate(-13px,-3px) scale(1.1); } 100% { opacity: 0; transform: translate(-16px,-5px) scale(1.2); } }
.animal-stage[data-species="pig"].animating .animal-tail { animation: pig-curl var(--anim-duration) ease-in-out both; }
@keyframes pig-curl { 0%,100% { transform: rotate(0); } 24% { transform: rotate(-30deg); } 46% { transform: rotate(34deg); } 68% { transform: rotate(-15deg); } }
.animal-stage[data-species="mouse"].animating .animal-body { animation-name: mouse-hop; }
.animal-stage[data-species="mouse"].animating .animal-head { animation-name: mouse-ears; }
@keyframes mouse-hop { 0%,100% { transform: translateY(0); } 24% { transform: translateY(-11px) rotate(-3deg); } 49% { transform: translateY(1px); } 65% { transform: translateY(-4px); } }
@keyframes mouse-ears { 0%,100% { transform: rotate(0); } 24%,44% { transform: rotate(-8deg); } 32% { transform: rotate(8deg); } 55% { transform: rotate(-4deg); } }
.animal-stage[data-species="elephant"].animating .animal-head { animation-name: elephant-trunk; }
.animal-stage[data-species="elephant"].animating .puff-one { animation-name: elephant-blast; }
@keyframes elephant-trunk { 0%,100% { transform: rotate(0); } 24% { transform: rotate(9deg) translateY(1px); } 45% { transform: rotate(-18deg) translateY(-3px); } 70% { transform: rotate(6deg); } }
@keyframes elephant-blast { 0%,28% { opacity: 0; transform: translate(-1px,2px) scale(.25); } 44% { opacity: .96; transform: translate(-7px,-2px) scale(1.2); } 66% { opacity: .7; transform: translate(-11px,-4px) scale(1.35); } 100% { opacity: 0; transform: translate(-17px,-7px) scale(1.45); } }
.animal-stage[data-species="bison"].animating .animal-body { animation-name: bison-lean; }
.animal-stage[data-species="bison"].animating .animal-tail { animation-name: bison-tail; }
@keyframes bison-lean { 0%,100% { transform: translateY(0) rotate(0); } 22% { transform: translateY(2px) rotate(-2deg); } 48% { transform: translateY(-1px) rotate(1deg); } }
@keyframes bison-tail { 0%,100% { transform: rotate(0); } 34% { transform: rotate(-13deg); } 66% { transform: rotate(12deg); } }
.animal-stage[data-species="frog"].animating .animal-body { animation-name: frog-bounce; }
.animal-stage[data-species="frog"].animating .bubbles { animation: bubble-rise var(--anim-duration) ease-out both; }
@keyframes frog-bounce { 0%,100% { transform: translateY(0) scaleY(1); } 18% { transform: translateY(5px) scaleY(.78); } 42% { transform: translateY(-8px) scaleY(1.08); } 62% { transform: translateY(2px) scaleY(.94); } }
@keyframes bubble-rise { 0%,15% { opacity: .1; transform: translate(0,8px) scale(.4); } 38% { opacity: .9; transform: translate(-2px,-8px) scale(1); } 68% { opacity: .7; transform: translate(6px,-21px) scale(1.1); } 100% { opacity: 0; transform: translate(2px,-28px) scale(1.2); } }
.animal-stage[data-species="dragon"].animating .animal-tail { animation-name: dragon-brace; }
.animal-stage[data-species="dragon"].animating .flame { animation-name: flame-jet; }
@keyframes dragon-brace { 0%,100% { transform: rotate(0); } 20%,55% { transform: rotate(-16deg); } 39% { transform: rotate(11deg); } }
@keyframes flame-jet { 0%,28% { opacity: 0; transform: translate(-1px,5px) scale(.2); } 42% { opacity: 1; transform: translate(-4px,-8px) scale(1.08); } 65% { opacity: .85; transform: translate(-8px,-16px) scale(1.2); } 100% { opacity: 0; transform: translate(-11px,-22px) scale(1.28); } }
.animal-stage[data-species="hippo"].animating .animal-body { animation-name: hippo-bounce; }
.animal-stage[data-species="hippo"].animating .rings { animation: ring-expansion var(--anim-duration) ease-out both; }
@keyframes hippo-bounce { 0%,100% { transform: translateY(0); } 25% { transform: translateY(4px) scaleY(.92); } 49% { transform: translateY(-3px); } 68% { transform: translateY(1px); } }
@keyframes ring-expansion { 0%,22% { opacity: 0; transform: scale(.3); } 38% { opacity: .95; transform: scale(.78); } 60% { opacity: .75; transform: scale(1.2); } 100% { opacity: 0; transform: scale(1.7); } }
.animal-stage[data-species="donkey"].animating .animal-legs { animation: donkey-kick var(--anim-duration) ease-in-out both; }
.animal-stage[data-species="donkey"].animating .puff-one { animation: zip-one var(--anim-duration) ease-out both; }
.animal-stage[data-species="donkey"].animating .puff-two { animation: zip-two var(--anim-duration) ease-out both; }
.animal-stage[data-species="donkey"].animating .puff-three { animation: zip-three var(--anim-duration) ease-out both; }
@keyframes donkey-kick { 0%,100% { transform: translateY(0); } 12% { transform: translateY(2px); } 24% { transform: translateY(-1px) rotate(2deg); } 46% { transform: translateY(2px) rotate(-2deg); } 58% { transform: translateY(-1px) rotate(2deg); } 77% { transform: translateY(1px); } }
@keyframes zip-three { 0%,79% { opacity: 0; transform: translate(0,3px) scale(.3); } 88% { opacity: .95; transform: translate(-6px,0) scale(.9); } 96% { opacity: .35; transform: translate(-12px,-3px) scale(1.1); } 100% { opacity: 0; transform: translate(-14px,-4px) scale(1.18); } }
.animal-stage[data-species="fox"].animating .animal-tail { animation: fox-swish var(--anim-duration) ease-in-out both; }
@keyframes fox-swish { 0%,100% { transform: rotate(0); } 23% { transform: rotate(-16deg); } 46% { transform: rotate(20deg); } 67% { transform: rotate(-9deg); } }
.animal-stage[data-species="dachshund"].animating .animal-body { animation: dog-wiggle var(--anim-duration) ease-in-out both; }
.animal-stage[data-species="dachshund"].animating .trail-puff { animation: trail-dots var(--anim-duration) linear both; }
@keyframes dog-wiggle { 0%,100% { transform: translateY(0) rotate(0); } 16% { transform: translateY(2px) rotate(-2deg); } 31% { transform: translateY(-2px) rotate(2deg); } 46% { transform: translateY(2px) rotate(-2deg); } 61% { transform: translateY(-1px) rotate(1deg); } 78% { transform: translateY(1px); } }
@keyframes trail-dots { 0%,8% { opacity: 0; transform: translateX(5px); } 20% { opacity: .95; } 75% { opacity: .75; transform: translateX(-10px); } 100% { opacity: 0; transform: translateX(-18px); } }
.animal-stage[data-species="ram"].animating .animal-legs { animation-name: ram-brace; }
.animal-stage[data-species="ram"].animating .storm-puff { animation-name: storm-cloud; }
@keyframes ram-brace { 0%,100% { transform: translateY(0); } 18%,47% { transform: translateY(3px) scaleY(.9); } 65% { transform: translateY(-1px); } }
@keyframes storm-cloud { 0%,28% { opacity: 0; transform: scale(.3); } 44% { opacity: .95; transform: scale(1.02); } 65% { opacity: .72; transform: scale(1.15); } 100% { opacity: 0; transform: scale(1.35); } }
.animal-stage[data-species="ram"].animating .storm-flash { animation: contained-flash var(--anim-duration) steps(1,end) both; }
@keyframes contained-flash { 0%,39%,47%,100% { opacity: 0; } 40%,43% { opacity: 1; } }
.animal-stage.combo-hit { animation-delay: var(--combo-delay); }
.animal-stage.combo-hit .animal-art { animation: combo-nod 1.15s ease-in-out var(--combo-delay) both; }
@keyframes combo-nod { 20% { transform: scale(1.035); } 52% { transform: scale(.98); } 80% { transform: scale(1.02); } }
.animal-stage.reduced-hit { border-color: var(--red); box-shadow: 0 0 0 3px rgba(179,35,27,.3); }
.animal-stage.reduced-hit .gas-puff { opacity: .64; }
.animal-stage.animating .animal-art { animation: v5-whole-body var(--anim-duration) cubic-bezier(.16,1.28,.3,1) both; transform-box: fill-box; transform-origin: 61% 82%; }
@keyframes v5-whole-body { 0%,100% { transform: translate3d(0,0,0) rotate(0) scale(1); } 16% { transform: translate3d(1px,3px,0) rotate(-1.2deg) scale(.985,.965); } 36% { transform: translate3d(-4px,-2px,0) rotate(1.8deg) scale(1.018,1.035); } 57% { transform: translate3d(1px,1px,0) rotate(-.7deg) scale(.995); } 76% { transform: translate3d(-1px,0,0) rotate(.35deg) scale(1.006); } }

/* Entrances + finale */
.reveal { opacity: 0; transform: translateY(18px) rotate(.2deg); transition: opacity .5s ease, transform .55s cubic-bezier(.2,.8,.3,1.05); }
.reveal.in { opacity: 1; transform: none; }
body.finale .curtain-left { transform: translateX(-16px); }
body.finale .curtain-right { transform: translateX(16px); }
body.finale .footlights span { box-shadow: 0 0 30px rgba(255,243,207,1); }
body.finale .counter-pill { transform: scale(1.07) rotate(-1deg); border-color: var(--red); }

@media (max-width: 860px) {
  .stage-section { grid-template-columns: 1fr; }
  .opera-stage { min-height: 300px; }
  .pad { grid-template-columns: 60px 104px 1fr auto; gap: 12px; }
  .animal-stage { width: 104px; }
  .pad-name { font-size: 20px; }
  .seq-row { grid-template-columns: 150px repeat(16, 34px); }
}
@media (max-width: 560px) {
  .masthead-row { flex-wrap: wrap; justify-content: center; }
  .pad { grid-template-columns: 52px 1fr auto; }
  .animal-stage { width: 92px; grid-row: span 1; }
  .stub-act { display: none; }
  .pad-note { display: none; }
  .section-heading { flex-direction: column; align-items: stretch; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .ticker-inner { animation: none; }
  .reveal { opacity: 1; transform: none; }
  .animal-stage.animating, .animal-stage.animating *, .animal-stage.combo-hit, .animal-stage.combo-hit *, .animal-art { animation: none !important; }
  .animal-stage.reduced-hit .gas-puff { opacity: .64; }
}
