:root {
  color-scheme: light;
  --paper: #f6f3e9;
  --paper-deep: #eee9d9;
  --ink: #20251d;
  --muted: #7d8072;
  --green: #d8fa54;
  --green-dark: #25331c;
  --orange: #ff7448;
  --lilac: #e6d6ff;
  --line: #dedbce;
  --white: #fffef9;
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
body {
  min-height: 100vh; margin: 0; color: var(--ink); background: var(--paper);
  font-family: "Avenir Next", Avenir, "Segoe UI", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
  background-image: radial-gradient(#b9b5a4 0.55px, transparent 0.55px);
  background-size: 15px 15px; background-position: 7px 7px;
  -webkit-tap-highlight-color: transparent;
}
button, input { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; }

.site-header {
  height: 74px; padding: 0 clamp(20px, 5vw, 76px); display: flex; align-items: center;
  justify-content: space-between; border-bottom: 1px solid rgba(32,37,29,.14);
  background: rgba(246,243,233,.92); position: relative; z-index: 2;
}
.wordmark { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; font-weight: 950; letter-spacing: -.065em; font-size: 19px; }
.wordmark-egg { font-size: 24px; filter: saturate(.82); }
.wordmark-dot, .heading-period { color: var(--orange); }
.header-note, .eyebrow, .volume-label, .press-note, .hero-index, .keyboard-note {
  font-size: 10px; font-weight: 800; letter-spacing: .11em;
}
.header-note { display: flex; align-items: center; gap: 8px; color: #727568; }
.live-dot, .press-dot, .counter-dot { width: 7px; height: 7px; display: inline-block; border-radius: 50%; background: #89aa3c; }
.live-dot { box-shadow: 0 0 0 3px rgba(137,170,60,.16); }
.credits-trigger { border: 0; background: transparent; color: var(--ink); font-size: 12px; font-weight: 750; cursor: pointer; padding: 9px 0 9px 12px; }
.credits-trigger span { color: var(--orange); font-size: 16px; margin-left: 4px; }

.page-shell { width: min(1120px, calc(100% - 48px)); margin: 32px auto 0; }
.hero {
  min-height: 344px; background: var(--green); position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1.1fr .9fr; border-radius: 7px;
  padding: clamp(30px, 5.6vw, 66px) clamp(28px, 6vw, 78px) 58px;
  isolation: isolate;
}
.hero::after {
  content: ""; z-index: -1; position: absolute; width: 500px; height: 500px; border-radius: 50%;
  right: 30px; top: -255px; border: 1px solid rgba(37,51,28,.14);
  box-shadow: 0 0 0 34px rgba(37,51,28,.035), 0 0 0 70px rgba(37,51,28,.035), 0 0 0 112px rgba(37,51,28,.035);
}
.hero-copy { z-index: 1; align-self: center; max-width: 530px; }
.eyebrow { margin: 0; color: #66734e; }
.eyebrow-mark { color: var(--orange); font-size: 16px; vertical-align: -1px; margin-right: 4px; }
.hero h1 { margin: 19px 0 14px; font-size: clamp(54px, 8.4vw, 96px); line-height: .84; letter-spacing: -.09em; font-weight: 950; }
.hero h1 em { color: var(--orange); font-style: normal; }
.hero-description { margin: 19px 0 23px; max-width: 355px; color: #47513d; font-size: 15px; line-height: 1.55; }
.hero-actions { display: flex; align-items: center; gap: 17px; flex-wrap: wrap; }
.random-button {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 17px;
  border: 0; border-radius: 4px; background: var(--ink); color: var(--white);
  font-size: 13px; font-weight: 800; cursor: pointer; box-shadow: 4px 4px 0 rgba(32,37,29,.17);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.random-button:hover { background: #41483a; transform: translate(-2px,-2px); box-shadow: 6px 6px 0 rgba(32,37,29,.15); }
.random-button:active { transform: translate(1px,1px); box-shadow: 1px 1px 0 rgba(32,37,29,.17); }
.random-icon { font-size: 18px; color: var(--green); line-height: 1; }
.press-note { display: inline-flex; align-items: center; gap: 7px; color: #66734e; font-size: 9px; }
.press-dot { background: var(--orange); width: 6px; height: 6px; }
.hero-art { position: relative; min-height: 220px; display: grid; place-items: center; }
.hero-egg { z-index: 1; display: inline-block; font-size: clamp(100px, 15vw, 175px); line-height: 1; filter: drop-shadow(12px 16px 0 rgba(32,37,29,.12)); transform: rotate(9deg); }
.art-orbit { position: absolute; border: 1px solid rgba(37,51,28,.28); border-radius: 50%; width: 230px; height: 112px; transform: rotate(-25deg); }
.orbit-two { width: 270px; height: 140px; transform: rotate(34deg); border-style: dashed; opacity: .65; }
.art-spark { position: absolute; z-index: 2; color: var(--orange); font-size: 29px; animation: twinkle 2s ease-in-out infinite alternate; }
.spark-one { top: 23px; right: 16%; }
.spark-two { bottom: 30px; left: 13%; color: var(--ink); font-size: 23px; animation-delay: .7s; }
.art-cloud { position: absolute; color: #6c8245; font-size: 52px; font-weight: 300; transform: rotate(-14deg); opacity: .8; }
.cloud-one { right: 5%; top: 45%; }
.cloud-two { left: 3%; top: 30%; transform: rotate(12deg) scale(.7); }
.art-caption { position: absolute; right: 0; bottom: 14px; border-left: 1px solid rgba(32,37,29,.45); padding-left: 8px; color: #67734e; text-transform: uppercase; font-size: 9px; line-height: 1.45; letter-spacing: .09em; font-weight: 800; transform: rotate(-5deg); }
.hero-index { position: absolute; bottom: 19px; left: clamp(28px, 6vw, 78px); color: #64714d; font-size: 9px; }
.hero-index span { color: var(--ink); }
@keyframes twinkle { from { transform: rotate(-8deg) scale(.86); } to { transform: rotate(12deg) scale(1.12); } }

.sound-section { padding: 46px 0 40px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 19px; }
.section-eyebrow { color: #848777; }
.section-heading h2 { margin: 7px 0 0; font-size: clamp(28px, 4vw, 39px); letter-spacing: -.065em; line-height: 1; font-weight: 900; }
.volume-control { display: flex; align-items: center; gap: 9px; padding: 10px 13px; border: 1px solid var(--line); background: rgba(255,254,249,.7); border-radius: 4px; }
.volume-icon { color: var(--orange); font-size: 21px; transform: rotate(180deg); line-height: .7; }
.volume-label { color: #76796c; font-size: 9px; white-space: nowrap; }
.volume-control input { width: 92px; height: 4px; accent-color: #829d34; cursor: pointer; }
.board { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 11px; }
.pad {
  --pad-tint: var(--white);
  position: relative; text-align: left; color: var(--ink); cursor: pointer; min-height: 105px;
  border: 1px solid rgba(32,37,29,.11); border-radius: 5px; background: var(--pad-tint);
  padding: 15px 14px 13px; display: grid; grid-template-columns: 42px 1fr 20px;
  grid-template-rows: 1fr auto; column-gap: 11px; align-items: center; overflow: hidden;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
  box-shadow: 0 2px 0 rgba(32,37,29,.04);
}
.pad:nth-child(4n + 2) { --pad-tint: #fbf4dc; }
.pad:nth-child(4n + 3) { --pad-tint: #f3ecff; }
.pad:nth-child(4n) { --pad-tint: #f8e8df; }
.pad::before { content: ""; position: absolute; inset: auto 0 0; height: 3px; background: #b3cd54; transform: scaleX(0); transform-origin: left; transition: transform .2s ease; }
.pad:hover { transform: translateY(-3px); border-color: rgba(32,37,29,.32); box-shadow: 0 7px 16px rgba(32,37,29,.09); }
.pad:hover::before { transform: scaleX(1); }
.pad:active { transform: translateY(1px) scale(.99); }
.pad-emoji { grid-row: 1 / 3; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.68); font-size: 25px; }
.pad-copy { min-width: 0; align-self: end; }
.pad-name { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 850; letter-spacing: -.025em; }
.pad-note { display: block; margin-top: 3px; color: #858779; font-size: 10px; }
.pad-key { grid-column: 3; grid-row: 1; align-self: start; justify-self: end; border: 1px solid #d8d5c9; border-radius: 3px; padding: 2px 5px; color: #8a8b7e; font-size: 9px; font-weight: 800; line-height: 1.2; }
.pad-meter { grid-column: 2 / 4; grid-row: 2; align-self: end; height: 13px; display: flex; gap: 2px; align-items: center; opacity: .55; }
.pad-meter i { display: block; width: 2px; height: var(--h); border-radius: 2px; background: #879d42; }
.pad-play { grid-column: 3; grid-row: 2; align-self: end; justify-self: end; display: grid; place-items: center; width: 21px; height: 21px; border-radius: 50%; background: var(--ink); color: var(--green); font-size: 9px; padding-left: 1px; }
.pad.hit { animation: pad-hit .34s cubic-bezier(.2,.8,.3,1.2); }
.pad.hit::before { transform: scaleX(1); background: var(--orange); }
@keyframes pad-hit { 0% { transform: scale(1); } 35% { transform: scale(.96) rotate(-.7deg); } 72% { transform: scale(1.025) rotate(.5deg); } 100% { transform: scale(1); } }
.keyboard-note { margin: 18px 0 0; display: flex; align-items: center; justify-content: center; gap: 5px; color: #858779; letter-spacing: .035em; font-size: 10px; font-weight: 600; }
.keyboard-icon { color: #989987; font-size: 16px; margin-right: 3px; }
kbd { display: inline-block; min-width: 19px; text-align: center; padding: 3px 5px; border: 1px solid #d8d5c9; border-bottom-width: 2px; border-radius: 3px; background: #fffcf2; color: #565b4c; font-family: inherit; font-size: 9px; font-weight: 700; line-height: 1.1; }
.keyboard-sep { padding: 0 4px; color: #c1beaf; }
.site-footer { min-height: 63px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 15px; color: #858779; font-size: 10px; }
.footer-brand { color: var(--ink); font-size: 12px; font-weight: 950; letter-spacing: -.04em; }
.footer-disclaimer { text-align: center; }
.counter-pill { display: inline-flex; align-items: center; gap: 7px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 99px; color: #666a5b; white-space: nowrap; }
.counter-dot { width: 6px; height: 6px; background: var(--orange); }

.credits-dialog { width: min(620px, calc(100% - 28px)); max-height: min(78vh, 720px); overflow: auto; padding: 27px 30px 30px; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 20px 80px rgba(20,24,17,.26); }
.credits-dialog::backdrop { background: rgba(28,33,24,.48); backdrop-filter: blur(3px); }
.dialog-top { display: flex; justify-content: space-between; align-items: center; }
.dialog-top .eyebrow { font-size: 9px; }
.dialog-close { border: 1px solid var(--line); border-radius: 50%; width: 30px; height: 30px; background: transparent; color: var(--ink); font-size: 21px; line-height: 1; cursor: pointer; }
.credits-dialog h2 { margin: 15px 0 5px; font-size: 34px; letter-spacing: -.07em; }
.credit-note { margin: 0 0 17px; color: var(--muted); font-size: 12px; }
.credit-list { margin: 0; padding-left: 18px; font-size: 12px; line-height: 1.7; }
.credit-list li { padding: 5px 0; border-top: 1px solid var(--line); }
.credit-list a { color: #526a22; font-weight: 700; }
.clic { font-weight: 800; }

@media (min-width: 900px) {
  .pad:nth-child(1) { --pad-tint: #e7edcf; }
}
@media (max-width: 760px) {
  .site-header { height: 64px; padding-inline: 20px; }
  .header-note { display: none; }
  .page-shell { width: min(100% - 32px, 560px); margin-top: 16px; }
  .hero { grid-template-columns: 1fr .75fr; min-height: 330px; padding: 35px 27px 50px; }
  .hero h1 { font-size: clamp(54px, 11vw, 76px); }
  .hero-art { min-height: 190px; }
  .hero-egg { font-size: clamp(94px, 19vw, 140px); }
  .art-orbit { width: 180px; height: 95px; }
  .orbit-two { width: 208px; height: 115px; }
  .board { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .pad { min-height: 96px; }
  .site-footer { flex-wrap: wrap; padding: 15px 0; }
  .footer-disclaimer { order: 3; width: 100%; text-align: left; }
}
@media (max-width: 480px) {
  .wordmark { font-size: 17px; }
  .credits-trigger { font-size: 11px; }
  .hero { display: block; min-height: 0; padding: 32px 23px 55px; }
  .hero h1 { font-size: clamp(48px, 16vw, 68px); }
  .hero-description { max-width: 270px; font-size: 14px; }
  .hero-art { position: absolute; width: 126px; height: 112px; min-height: 0; right: -17px; top: -4px; opacity: .48; }
  .hero-egg { font-size: 73px; }
  .art-orbit { width: 112px; height: 58px; }
  .orbit-two { width: 132px; height: 73px; }
  .art-caption, .cloud-two { display: none; }
  .spark-one { right: 8%; top: 7px; }
  .spark-two { left: 2%; bottom: 3px; }
  .hero-copy { position: relative; }
  .eyebrow { max-width: 210px; font-size: 8px; }
  .hero-index { left: 23px; }
  .section-heading { align-items: start; flex-direction: column; }
  .volume-control { align-self: stretch; justify-content: flex-start; }
  .volume-control input { flex: 1; max-width: 150px; }
  .pad { padding: 12px 10px; grid-template-columns: 34px 1fr 18px; column-gap: 8px; min-height: 88px; }
  .pad-emoji { width: 34px; height: 34px; font-size: 21px; }
  .pad-name { font-size: 11px; }
  .pad-note { font-size: 9px; }
  .keyboard-note { flex-wrap: wrap; font-size: 9px; line-height: 1.8; }
  .site-footer { align-items: center; }
  .counter-pill { font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Compact masthead: keep the board above the fold, not the decoration. */
.page-shell { margin-top: 14px; }
.hero {
  min-height: 0; display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 13px 2px 17px; overflow: visible;
  background: transparent; border-radius: 0; border-bottom: 1px solid var(--line);
}
.hero::after, .hero-art, .hero-index { display: none; }
.hero-copy { max-width: none; }
.hero .eyebrow { font-size: 9px; }
.hero h1 { margin: 5px 0 0; font-size: clamp(32px, 4.5vw, 47px); line-height: 1; letter-spacing: -.075em; }
.hero-side { display: flex; align-items: center; gap: 19px; }
.hero-description { margin: 0; font-size: 12px; line-height: 1.4; white-space: nowrap; }
.random-button { padding: 10px 13px; font-size: 12px; white-space: nowrap; }
.random-icon { font-size: 16px; }
.sound-section { padding-top: 25px; }

@media (max-width: 760px) {
  .hero { grid-template-columns: unset; min-height: 0; padding: 13px 0 17px; }
  .hero-side { gap: 12px; }
}
@media (max-width: 480px) {
  .hero { display: flex; flex-direction: column; align-items: stretch; padding: 13px 0 16px; gap: 0; }
  .hero-copy { width: 100%; }
  .hero .eyebrow { font-size: 8px; }
  .hero h1 { font-size: clamp(31px, 9vw, 39px); }
  .hero-side { width: 100%; margin-top: 10px; justify-content: space-between; }
  .hero-description { font-size: 11px; }
  .random-button { padding: 9px 11px; }
  .sound-section { padding-top: 20px; }
}

/* EGGFART v3 — deep olive night mode with per-sound neon accents. */
:root {
  color-scheme: dark;
  --paper: #0f120a;
  --paper-deep: #161a0f;
  --ink: #f3f0e2;
  --muted: #a9a48f;
  --green: #b6e34f;
  --green-dark: #1e2910;
  --orange: #c9fa65;
  --lilac: #d9c8ff;
  --line: rgba(243, 240, 226, .12);
  --white: #161a0f;
}

html { background: var(--paper); }
body {
  color: var(--ink);
  background-color: var(--paper);
  background-image: radial-gradient(ellipse at 50% 24%, #19200e 0%, #0f120a 64%);
  background-size: auto;
}
button:focus-visible, a:focus-visible, input:focus-visible { outline-color: var(--green); }
#gas-background {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}
#gas-background { z-index: 0; }
.site-header {
  position: relative;
  z-index: 4;
  color: var(--ink);
  background: rgba(15, 18, 10, .74);
  border-bottom-color: var(--line);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.wordmark { color: var(--ink); }
.wordmark-egg { filter: drop-shadow(0 0 12px rgba(182, 227, 79, .22)); }
.wordmark-dot, .heading-period { color: var(--green); }
.header-note { color: var(--muted); }
.live-dot, .press-dot, .counter-dot { background: var(--green); }
.live-dot { box-shadow: 0 0 0 3px rgba(182, 227, 79, .16), 0 0 15px rgba(182, 227, 79, .3); }
.credits-trigger { color: var(--ink); }
.credits-trigger span { color: var(--green); }
.page-shell { position: relative; z-index: 2; }
.hero { background: transparent; border-bottom-color: var(--line); }
.hero .eyebrow, .hero-index { color: var(--muted); }
.eyebrow { color: var(--muted); }
.eyebrow-mark { color: var(--green); }
.hero h1 em {
  color: transparent;
  background: linear-gradient(105deg, #b6e34f 4%, #67f0c1 52%, #9fc5ff 98%);
  background-clip: text;
  -webkit-background-clip: text;
  background-size: 180% 100%;
  animation: title-glow 7s ease-in-out infinite alternate;
}
@keyframes title-glow { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
.hero-description { color: #d0ceb9; }
.random-button {
  color: #111609;
  background: var(--green);
  box-shadow: 0 0 24px rgba(182, 227, 79, .18), 0 4px 18px rgba(0, 0, 0, .24);
}
.random-button:hover {
  color: #0f120a;
  background: #d1ff69;
  box-shadow: 0 0 34px rgba(182, 227, 79, .38);
}
.random-icon { color: #263512; }
.press-note { color: var(--muted); }
.sound-section { color: var(--ink); }
.pressure-meter {
  width: min(100%, 420px);
  margin: -6px 0 -9px auto;
  padding: 9px 12px 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(22, 26, 15, .62);
}
.pressure-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: .13em;
}
.pressure-meta span:last-child { color: var(--pressure-color, var(--green)); font-variant-numeric: tabular-nums; }
.pressure-rail { height: 4px; overflow: hidden; border-radius: 9px; background: rgba(243, 240, 226, .1); }
.pressure-rail span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--pressure-color, var(--green)), #e9ff8a);
  box-shadow: 0 0 14px var(--pressure-color, var(--green));
  transition: width .12s linear;
}
.section-eyebrow { color: var(--muted); }
.volume-control {
  color: var(--ink);
  border-color: var(--line);
  background: rgba(22, 26, 15, .76);
  box-shadow: inset 0 1px rgba(255, 255, 255, .035);
}
.volume-icon { color: var(--green); }
.volume-label { color: var(--muted); }
.volume-control input { accent-color: var(--green); }
.pad {
  --pad-tint: rgba(22, 26, 15, .82);
  color: var(--ink);
  border-color: color-mix(in srgb, var(--c1, var(--green)) 20%, transparent);
  background: var(--pad-tint);
  box-shadow: 0 6px 22px rgba(0, 0, 0, .19), inset 0 1px rgba(255, 255, 255, .035);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.pad:nth-child(n) {
  --pad-tint: color-mix(in srgb, var(--c1, var(--green)) 8%, #161a0f);
}
.pad::before {
  inset: 0;
  height: auto;
  background: radial-gradient(ellipse at 0% 100%, color-mix(in srgb, var(--c1, var(--green)) 23%, transparent), transparent 74%);
  opacity: .52;
  transform: none;
}
.pad:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--c1, var(--green)) 62%, transparent);
  box-shadow: 0 0 27px color-mix(in srgb, var(--c1, var(--green)) 21%, transparent), 0 12px 32px rgba(0, 0, 0, .3);
}
.pad:hover::before { opacity: .95; transform: none; }
.pad:active { transform: translateY(1px) scale(.985); }
.pad-emoji {
  background: color-mix(in srgb, var(--c1, var(--green)) 17%, #0f120a);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c1, var(--green)) 28%, transparent);
  transition: transform .22s cubic-bezier(.2,.8,.3,1.4), filter .2s ease;
}
.pad.hit .pad-emoji, .pad.is-playing .pad-emoji { transform: scale(1.22) rotate(-9deg); filter: drop-shadow(0 0 12px var(--c1)); }
.pad-name { color: var(--ink); }
.pad-note { color: #aaa995; }
.pad-key, kbd {
  color: #c2bea9;
  border-color: rgba(243, 240, 226, .14);
  background: rgba(4, 6, 3, .44);
}
.pad-meter { opacity: .9; }
.pad-meter i {
  height: max(3px, var(--h));
  background: linear-gradient(to top, var(--c1, var(--green)), var(--c2, #67f0c1));
  box-shadow: 0 0 8px color-mix(in srgb, var(--c1, var(--green)) 38%, transparent);
  transform-origin: bottom;
  transition: transform .08s linear;
}
.pad-play { color: #111609; background: var(--c1, var(--green)); }
.pad.hit::before { background: radial-gradient(ellipse at 0% 100%, color-mix(in srgb, var(--c2, var(--green)) 42%, transparent), transparent 75%); }
.keyboard-note { color: var(--muted); }
.keyboard-icon { color: var(--green); }
.keyboard-sep { color: #6e705e; }
.site-footer { color: var(--muted); border-top-color: var(--line); }
.footer-brand { color: var(--ink); }
.counter-pill {
  color: #d3d0bc;
  border-color: var(--line);
  background: rgba(22, 26, 15, .75);
}
.counter-dot { box-shadow: 0 0 10px rgba(182, 227, 79, .55); }
.counter-pop { animation: counter-pop .28s cubic-bezier(.2,.8,.3,1.5); }
@keyframes counter-pop { 50% { transform: scale(1.08); border-color: var(--green); } }
.credits-dialog {
  color: var(--ink);
  background: #161a0f;
  border-color: var(--line);
  box-shadow: 0 24px 90px rgba(0, 0, 0, .72), 0 0 35px rgba(182, 227, 79, .08);
}
.credits-dialog::backdrop { background: rgba(2, 4, 1, .76); backdrop-filter: blur(8px); }
.dialog-close { color: var(--ink); border-color: var(--line); }
.credit-note, .credit-list li { color: #c2bea9; }
.credit-list li { border-top-color: var(--line); }
.credit-list .clic { color: var(--ink); }
.credit-list a { color: var(--green); }
.no-webgl body { background-image: radial-gradient(ellipse at 50% 20%, #1b2410, #0f120a 72%); }

@media (max-width: 480px) {
  .site-header { background: rgba(15, 18, 10, .88); }
  .pad { min-height: 91px; }
  .pad-meter { display: flex; }
  .pad-meter i { width: 2px; }
  .pressure-meter { margin-top: -2px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero h1 em { animation: none; }
  .pad:hover { transform: none; }
  .pad.hit .pad-emoji, .pad.is-playing .pad-emoji { transform: none; filter: none; }
  .pressure-rail span { transition: none; }
}

/* EGGFART v4 — each sound gets a small, self-contained animal theater. */
:root {
  --paper: #0e1109;
  --paper-deep: #171b10;
  --ink: #f2efdf;
  --muted: #aaa791;
  --green: #b6e34f;
  --orange: #c9fa65;
  --line: rgba(243, 240, 226, .13);
  --white: #171b10;
}
html, body { min-width: 320px; background-color: var(--paper); }
body {
  min-height: 100vh;
  color: var(--ink);
  background-image: radial-gradient(ellipse at 50% 20%, #1b2410 0%, #0e1109 68%);
  overflow-x: hidden;
}
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid var(--green); outline-offset: 4px; }
#gas-background { position: fixed; z-index: 0; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.site-header {
  position: relative; z-index: 2; color: var(--ink); background: rgba(15,18,10,.76);
  border-bottom-color: var(--line); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.wordmark { color: var(--ink); }
.wordmark-egg { filter: drop-shadow(0 0 12px rgba(182,227,79,.22)); }
.wordmark-dot, .heading-period, .credits-trigger span { color: var(--green); }
.header-note, .eyebrow, .section-eyebrow, .keyboard-note, .site-footer { color: var(--muted); }
.live-dot, .counter-dot { background: var(--green); box-shadow: 0 0 12px rgba(182,227,79,.3); }
.credits-trigger { color: var(--ink); }
.page-shell { position: relative; z-index: 1; width: min(1240px, calc(100% - 52px)); margin-top: 18px; }
.hero {
  min-height: 0; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 15px 2px 20px; overflow: visible; background: transparent; border-bottom: 1px solid var(--line);
}
.hero::after, .hero-art, .hero-index { display: none; }
.hero-copy { max-width: none; }
.hero .eyebrow { color: var(--muted); font-size: 9px; }
.eyebrow-mark { color: var(--green); }
.hero h1 { margin: 6px 0 0; font-size: clamp(34px, 5vw, 54px); line-height: 1; letter-spacing: -.075em; }
.hero h1 em {
  color: transparent; background: linear-gradient(105deg,#b6e34f 4%,#67f0c1 52%,#9fc5ff 98%);
  background-clip: text; -webkit-background-clip: text; background-size: 180% 100%; animation: v4-title-glow 7s ease-in-out infinite alternate;
}
@keyframes v4-title-glow { from { background-position: 0 50%; } to { background-position: 100% 50%; } }
.hero-side { display: flex; align-items: center; gap: 20px; }
.hero-description { margin: 0; color: #d0ceb9; font-size: 12px; line-height: 1.45; white-space: nowrap; }
.random-button {
  padding: 10px 14px; color: #111609; background: var(--green); border: 0; border-radius: 4px;
  box-shadow: 0 0 24px rgba(182,227,79,.18), 0 4px 18px rgba(0,0,0,.24); font-size: 12px; font-weight: 850; cursor: pointer;
}
.random-button:hover { background: #d1ff69; box-shadow: 0 0 34px rgba(182,227,79,.38); }
.random-icon { color: #263512; }
.pressure-meter {
  width: min(100%, 420px); margin: 8px 0 -8px auto; padding: 9px 12px 10px;
  border: 1px solid var(--line); border-radius: 5px; background: rgba(22,26,15,.7);
}
.pressure-meta { display: flex; justify-content: space-between; margin-bottom: 7px; color: var(--muted); font-size: 8px; font-weight: 850; letter-spacing: .13em; }
.pressure-meta span:last-child { color: var(--pressure-color,var(--green)); font-variant-numeric: tabular-nums; }
.pressure-rail { height: 4px; overflow: hidden; border-radius: 9px; background: rgba(243,240,226,.1); }
.pressure-rail span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg,var(--pressure-color,var(--green)),#e9ff8a); box-shadow: 0 0 14px var(--pressure-color,var(--green)); transition: width .12s linear; }
.sound-section { padding: 31px 0 36px; }
.section-heading { align-items: end; margin-bottom: 16px; }
.section-heading h2 { color: var(--ink); font-size: clamp(27px,3.6vw,38px); }
.volume-control { color: var(--ink); border-color: var(--line); background: rgba(22,26,15,.76); box-shadow: inset 0 1px rgba(255,255,255,.035); }
.volume-icon { color: var(--green); }
.volume-label { color: var(--muted); }
.volume-control input { accent-color: var(--green); }
.board { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 15px; }
.pad {
  --c1: #b6e34f; --c2: #67f0c1; --c3: #ffffff;
  min-width: 0; min-height: 0; padding: 12px; display: grid; grid-template-columns: minmax(0,1fr) 24px; grid-template-rows: auto auto auto auto;
  gap: 0 8px; align-items: stretch; color: var(--ink); text-align: left; cursor: pointer; isolation: isolate;
  border: 1px solid color-mix(in srgb,var(--c1) 24%,transparent); border-radius: 10px;
  background: linear-gradient(145deg,color-mix(in srgb,var(--c1) 8%,#171b10),rgba(17,21,12,.91));
  box-shadow: 0 8px 28px rgba(0,0,0,.25), inset 0 1px rgba(255,255,255,.035);
  transition: transform .18s ease,border-color .2s ease,box-shadow .2s ease;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.pad::before { content: ""; position: absolute; z-index: -1; inset: 0; border-radius: inherit; background: radial-gradient(ellipse at 0 100%,color-mix(in srgb,var(--c1) 18%,transparent),transparent 72%); opacity: .5; pointer-events: none; }
.pad:hover { transform: translateY(-3px); border-color: color-mix(in srgb,var(--c1) 66%,transparent); box-shadow: 0 0 28px color-mix(in srgb,var(--c1) 17%,transparent),0 14px 30px rgba(0,0,0,.3); }
.pad:active { transform: translateY(1px) scale(.99); }
.pad.hit { animation: none; border-color: color-mix(in srgb,var(--c1) 75%,white 10%); }
.pad-topline { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; min-height: 20px; margin-bottom: 7px; }
.pad-animal-label { color: var(--c1); font-size: 9px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; text-shadow: 0 0 12px color-mix(in srgb,var(--c1) 45%,transparent); }
.pad-key { align-self: center; justify-self: end; grid-column: auto; grid-row: auto; padding: 3px 6px; color: #d5d0ba; background: rgba(4,6,3,.44); border: 1px solid rgba(243,240,226,.15); border-radius: 4px; font-size: 9px; line-height: 1.2; font-weight: 850; }
.animal-stage {
  position: relative; grid-column: 1 / -1; display: grid; place-items: center; width: 100%; aspect-ratio: 16 / 10;
  overflow: hidden; contain: layout paint; isolation: isolate; border: 1px solid color-mix(in srgb,var(--c1) 32%,transparent); border-radius: 8px;
  background: radial-gradient(ellipse at 52% 67%,color-mix(in srgb,var(--c1) 10%,transparent),rgba(6,8,5,.3) 68%);
  box-shadow: inset 0 0 24px rgba(0,0,0,.27); transition: border-color .2s ease,box-shadow .2s ease;
}
.animal-stage::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 22px color-mix(in srgb,var(--c1) 7%,transparent); pointer-events: none; }
.animal-art { display: block; width: 100%; height: 100%; overflow: hidden; }
.animal-fallback { display: grid; place-items: center; width: 100%; height: 100%; font-size: clamp(44px,6vw,70px); filter: drop-shadow(0 7px 12px rgba(0,0,0,.3)); }
.pad.hit .animal-stage:not(.has-art) { box-shadow: inset 0 0 28px color-mix(in srgb,var(--c1) 28%,transparent),0 0 22px color-mix(in srgb,var(--c1) 22%,transparent); }
.pad.hit .animal-fallback { transform: scale(1.08); }
.pad-copy { grid-column: 1 / -1; min-width: 0; align-self: end; padding-top: 10px; }
.pad-name { display: block; overflow: hidden; color: var(--ink); font-size: 13px; font-weight: 850; letter-spacing: -.025em; text-overflow: ellipsis; white-space: nowrap; }
.pad-note { display: block; margin-top: 3px; color: #aaa995; font-size: 10px; }
.pad-meter { grid-column: 1; grid-row: 4; align-self: end; height: 11px; display: flex; align-items: end; gap: 3px; margin-top: 4px; opacity: .8; }
.pad-meter i { display: block; width: 2px; height: max(3px,var(--h)); border-radius: 2px; background: linear-gradient(to top,var(--c1),var(--c2)); box-shadow: 0 0 8px color-mix(in srgb,var(--c1) 38%,transparent); transform-origin: bottom; transition: transform .08s linear; }
.pad-play { grid-column: 2; grid-row: 4; align-self: end; justify-self: end; display: grid; place-items: center; width: 24px; height: 24px; margin-top: 5px; border-radius: 50%; color: #111609; background: var(--c1); box-shadow: 0 0 15px color-mix(in srgb,var(--c1) 24%,transparent); }
.pad-play span { width: 0; height: 0; margin-left: 2px; border-top: 4px solid transparent; border-bottom: 4px solid transparent; border-left: 6px solid currentColor; }
.pad.is-playing .pad-play { box-shadow: 0 0 20px color-mix(in srgb,var(--c1) 65%,transparent); }
.keyboard-note { margin-top: 18px; display: flex; justify-content: center; align-items: center; gap: 5px; font-size: 10px; letter-spacing: .02em; }
.keyboard-icon { color: var(--green); }
kbd { min-width: 19px; padding: 3px 5px; color: #c2bea9; background: rgba(4,6,3,.44); border: 1px solid rgba(243,240,226,.14); border-bottom-width: 2px; border-radius: 3px; font-family: inherit; font-size: 9px; font-weight: 700; line-height: 1.1; text-align: center; }
.keyboard-sep { color: #6e705e; padding-inline: 3px; }
.site-footer { min-height: 62px; border-top-color: var(--line); }
.footer-brand { color: var(--ink); }
.counter-pill { color: #d3d0bc; border-color: var(--line); background: rgba(22,26,15,.75); }
.counter-pop { animation: counter-pop .28s cubic-bezier(.2,.8,.3,1.5); }
@keyframes counter-pop { 50% { transform: scale(1.08); border-color: var(--green); } }
.credits-dialog { color: var(--ink); background: #161a0f; border-color: var(--line); box-shadow: 0 24px 90px rgba(0,0,0,.72),0 0 35px rgba(182,227,79,.08); }
.credits-dialog::backdrop { background: rgba(2,4,1,.76); backdrop-filter: blur(8px); }
.dialog-close { color: var(--ink); border-color: var(--line); }
.credit-note, .credit-list li { color: #c2bea9; }
.credit-list li { border-top-color: var(--line); }
.credit-list .clic { color: var(--ink); }
.credit-list a { color: var(--green); }
.counter-dot { background: var(--c1,var(--green)); }
.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; }

/* Original SVG ink and independent, clipped puff shapes. */
.stage-ground { fill: none; stroke: rgba(230,232,205,.16); 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 .animal-tail path { stroke-linejoin: round; }
.animal-art .animal-tail:not(:has(path[fill])) path { fill: none; }
.animal-art .animal-body .collar { fill: none; stroke: #d9b955; stroke-width: 5; }
.animal-art .animal-body .wing { stroke: #bd9b44; }
.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-art .gas-puff.trail-puff circle { fill: var(--c1); }
.animal-stage.animating { animation: stage-glow var(--anim-duration) ease-out both; }
@keyframes stage-glow { 0%,100% { border-color: color-mix(in srgb,var(--c1) 32%,transparent); box-shadow: inset 0 0 24px rgba(0,0,0,.27); } 22% { border-color: var(--c1); box-shadow: inset 0 0 25px color-mix(in srgb,var(--c1) 22%,transparent),0 0 20px color-mix(in srgb,var(--c1) 28%,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 .gas-puff { filter: drop-shadow(0 0 var(--audio-glow,0px) var(--c1)); }
.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); } }

/* Species cues and distinct beats; every visual remains inside its stage. */
.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(--c1); box-shadow: inset 0 0 24px color-mix(in srgb,var(--c1) 24%,transparent),0 0 16px color-mix(in srgb,var(--c1) 20%,transparent); }
.animal-stage.reduced-hit .gas-puff { opacity: .64; }
.no-webgl #gas-background { display: none; }

@media (max-width: 980px) {
  .page-shell { width: min(760px,calc(100% - 40px)); }
  .board { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; }
  .animal-stage { aspect-ratio: 16 / 9; }
}
@media (max-width: 600px) {
  .site-header { height: 62px; padding-inline: 16px; }
  .header-note { display: none; }
  .page-shell { width: calc(100% - 30px); margin-top: 10px; }
  .hero { align-items: flex-start; flex-direction: column; gap: 12px; padding: 12px 0 16px; }
  .hero h1 { font-size: clamp(34px,9vw,47px); }
  .hero-side { width: 100%; justify-content: space-between; gap: 10px; }
  .hero-description { font-size: 11px; }
  .random-button { padding: 9px 11px; font-size: 11px; }
  .pressure-meter { margin-top: 10px; }
  .sound-section { padding-top: 22px; }
  .section-heading { align-items: stretch; flex-direction: column; }
  .volume-control { align-self: stretch; }
  .volume-control input { flex: 1; max-width: 180px; }
  .board { gap: 10px; }
  .pad { padding: 9px; }
  .animal-stage { aspect-ratio: 1.42 / 1; }
  .pad-name { font-size: 12px; }
  .pad-note { font-size: 9px; }
  .keyboard-note { flex-wrap: wrap; line-height: 1.8; }
  .site-footer { flex-wrap: wrap; padding: 13px 0; }
  .footer-disclaimer { order: 3; width: 100%; text-align: left; }
}
@media (max-width: 410px) {
  .board { grid-template-columns: minmax(0,1fr); gap: 11px; }
  .pad { padding: 11px; }
  .animal-stage { aspect-ratio: 1.75 / 1; }
  .pad-name { font-size: 13px; }
  .pad-note { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero h1 em { animation: none; }
  .pad, .pad:hover { transform: none; }
  .pad.hit, .counter-pop { animation: none; }
  .animal-stage.animating, .animal-stage.animating *, .animal-stage.combo-hit,
  .animal-stage.combo-hit *, .animal-stage.reduced-hit, .animal-art { animation: none !important; transition: none !important; }
  .animal-stage.reduced-hit .gas-puff { opacity: .64; }
  .pressure-rail span { transition: none; }
}
