* { box-sizing: border-box; }
html, body { width: 100%; min-height: 100%; }
body {
  margin: 0;
  background: #fff;
}

.scene {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: linear-gradient(180deg, #f4f1e8 0%, #ece5d1 100%);
}

.squirrel-wrap {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  will-change: transform;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.25));
}

/* --- "The IRS is a scam" satire background --- */

.irs-site {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 1.25rem 1.25rem 3rem;
  font-family: Georgia, 'Times New Roman', serif;
  color: #2a2115;
}

.irs-badge {
  margin: 0 auto 0.75rem;
  max-width: max-content;
  padding: 0.25rem 0.75rem;
  border: 1px dashed #8a5a1f;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  font-family: system-ui, sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6b4a1e;
  text-align: center;
}

.irs-hero {
  text-align: center;
  margin: 0 auto 1.25rem;
  max-width: 40rem;
}

.irs-kicker {
  margin: 0 0 0.25rem;
  font-family: system-ui, sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #b3261e;
}

.irs-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.8rem, 6vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: 0.01em;
  color: #6b1414;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.08);
}

.irs-sub {
  margin: 0;
  font-style: italic;
  color: #4a3c25;
  font-size: clamp(0.9rem, 2.4vw, 1.1rem);
}

.irs-ticker-wrap {
  max-width: 46rem;
  margin: 0 auto 1.5rem;
  overflow: hidden;
  border-top: 2px solid #6b1414;
  border-bottom: 2px solid #6b1414;
  background: #f8e7c9;
}

.irs-ticker {
  display: inline-flex;
  white-space: nowrap;
  padding: 0.4rem 0;
  font-family: system-ui, sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  color: #6b1414;
  animation: irs-scroll 22s linear infinite;
}

.irs-ticker span {
  padding-right: 1.5rem;
}

.irs-evidence,
.irs-meter {
  max-width: 40rem;
  margin: 0 auto 1.5rem;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(107, 20, 20, 0.25);
  border-radius: 0.5rem;
  padding: 1rem 1.25rem;
}

.irs-evidence h2,
.irs-meter h2 {
  margin: 0 0 0.6rem;
  font-size: 1.1rem;
  color: #6b1414;
}

.irs-list {
  margin: 0;
  padding-left: 1.1rem;
}

.irs-list li {
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.irs-list li:last-child {
  margin-bottom: 0;
}

.irs-meter {
  text-align: center;
}

.irs-gauge {
  position: relative;
  height: 1rem;
  border-radius: 999px;
  background: #ddd3b8;
  overflow: hidden;
  border: 1px solid rgba(107, 20, 20, 0.3);
}

.irs-gauge-fill {
  position: absolute;
  inset: 0;
  width: 4%;
  background: linear-gradient(90deg, #b3261e, #6b1414);
  animation: irs-wobble 3.2s ease-in-out infinite;
}

.irs-gauge-caption {
  margin: 0.5rem 0 0;
  font-family: system-ui, sans-serif;
  font-size: 0.8rem;
  color: #4a3c25;
}

.irs-board {
  position: relative;
  max-width: 30rem;
  height: 5rem;
  margin: 0 auto 1.5rem;
  display: none;
}

.irs-note {
  position: absolute;
  padding: 0.4rem 0.6rem;
  background: #fff6c2;
  box-shadow: 2px 3px 6px rgba(0, 0, 0, 0.2);
  font-family: system-ui, sans-serif;
  font-size: 0.75rem;
  transform: rotate(-4deg);
}

.irs-note-1 { top: 0; left: 5%; transform: rotate(-6deg); }
.irs-note-2 { top: 1rem; left: 40%; transform: rotate(3deg); }
.irs-note-3 { top: 0.25rem; right: 5%; transform: rotate(-2deg); }

.irs-footer {
  max-width: 40rem;
  margin: 0 auto;
  text-align: center;
  font-family: system-ui, sans-serif;
  font-size: 0.72rem;
  color: #6b5a3c;
  opacity: 0.85;
}

@media (min-width: 640px) {
  .irs-board { display: block; }
}

@keyframes irs-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes irs-wobble {
  0%, 100% { width: 3%; }
  50% { width: 6%; }
}

.squirrel-bounce {
  display: inline-block;
}

.squirrel-bounce.bounce {
  animation: squirrel-squash 0.28s ease-out;
}

.squirrel {
  font-size: clamp(3.5rem, 14vw, 7rem);
  line-height: 1;
  user-select: none;
  transform-origin: 50% 90%;
  animation: squirrel-dance 1.6s ease-in-out infinite;
}

.squirrel-emoji {
  display: inline-block;
}

.squirrel-shadow {
  width: clamp(2.5rem, 10vw, 5rem);
  height: 0.9rem;
  margin-top: 0.25rem;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.18);
  filter: blur(1px);
  animation: squirrel-shadow-pulse 1.6s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .squirrel-wrap {
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
  }
  .squirrel,
  .squirrel-shadow,
  .squirrel-bounce.bounce {
    animation: none;
  }
  .irs-ticker,
  .irs-gauge-fill {
    animation: none;
  }
}

@keyframes squirrel-dance {
  0% { transform: translate(0, 0) rotate(0deg) scale(1); }
  15% { transform: translate(-10%, -18%) rotate(-14deg) scale(1.04); }
  30% { transform: translate(0, -2%) rotate(0deg) scale(0.98); }
  45% { transform: translate(10%, -18%) rotate(14deg) scale(1.04); }
  60% { transform: translate(0, -2%) rotate(0deg) scale(0.98); }
  75% { transform: translate(-6%, -24%) rotate(-8deg) scale(1.05); }
  90% { transform: translate(4%, -4%) rotate(4deg) scale(0.99); }
  100% { transform: translate(0, 0) rotate(0deg) scale(1); }
}

@keyframes squirrel-shadow-pulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  15%, 45%, 75% { transform: scale(0.7); opacity: 0.35; }
  30%, 60%, 90% { transform: scale(0.9); opacity: 0.5; }
}

@keyframes squirrel-squash {
  0% { transform: scale(1, 1); }
  30% { transform: scale(1.25, 0.72); }
  60% { transform: scale(0.9, 1.1); }
  100% { transform: scale(1, 1); }
}
