:root {
  color-scheme: light;
  --ink: #25160f;
  --cream: #fff5de;
  --paper: #fffaf0;
  --orange: #f6a73b;
  --orange-deep: #e97220;
  --pink: #f49aab;
  --pink-light: #ffc4ce;
  --pink-dark: #b83f5b;
  --green: #174f42;
  --lime: #b9d84c;
  --line: rgba(37, 22, 15, 0.18);
  --shadow: 0 20px 0 rgba(37, 22, 15, 0.08);
  font-family: "Arial Rounded MT Bold", "Trebuchet MS", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 18%, rgba(255, 255, 255, 0.4) 0 2px, transparent 3px),
    var(--cream);
  background-size: 28px 28px;
  min-width: 320px;
  overflow-x: clip;
}

button,
a {
  font: inherit;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 1rem;
  left: 1rem;
  padding: 0.7rem 1rem;
  color: white;
  background: var(--ink);
  border-radius: 999px;
  transform: translateY(-180%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  min-height: 42px;
  padding: 0.65rem 1rem;
  color: #fff9eb;
  background: var(--green);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-align: center;
  text-transform: uppercase;
}

.live-dot {
  width: 0.65rem;
  height: 0.65rem;
  background: #ff5c55;
  border: 2px solid #fff9eb;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(255, 92, 85, 0.5);
  animation: pulse 1.7s infinite;
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.8fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 6rem);
  min-height: calc(100vh - 42px);
  padding: clamp(3.5rem, 8vw, 8rem) max(5vw, calc((100vw - 1380px) / 2));
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  z-index: -2;
  inset: auto -8vw -23vw auto;
  width: 55vw;
  aspect-ratio: 1;
  border: 2px dashed rgba(37, 22, 15, 0.15);
  border-radius: 50%;
}

.sun-disc {
  position: absolute;
  z-index: -3;
  top: 8%;
  right: 8%;
  width: min(44vw, 650px);
  aspect-ratio: 1;
  background: var(--orange);
  border-radius: 50%;
  box-shadow:
    0 0 0 18px rgba(246, 167, 59, 0.16),
    0 0 0 36px rgba(246, 167, 59, 0.1);
}

.pepper {
  position: absolute;
  z-index: -1;
  color: var(--orange-deep);
  font-size: clamp(2rem, 4vw, 4rem);
  animation: twinkle 2.8s ease-in-out infinite;
}

.pepper-one {
  top: 12%;
  left: 46%;
}

.pepper-two {
  right: 4%;
  bottom: 18%;
  animation-delay: -1.4s;
}

.hero-copy {
  position: relative;
  z-index: 2;
  min-width: 0;
  max-width: 770px;
}

.eyebrow {
  margin: 0 0 1.15rem;
  color: var(--pink-dark);
  font-size: clamp(0.72rem, 1.1vw, 0.9rem);
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1 {
  max-width: 900px;
  margin: 0;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(4.4rem, 10.4vw, 10rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 0.78;
  text-transform: uppercase;
}

h1 .satisfaction {
  display: block;
  color: var(--pink-dark);
  font-size: 0.69em;
  letter-spacing: -0.02em;
  -webkit-text-stroke: 2px var(--ink);
  text-shadow: 5px 5px 0 var(--pink-light);
}

.lead {
  margin: clamp(1.8rem, 4vw, 3rem) 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  font-style: italic;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  align-items: stretch;
  gap: 1rem;
  margin-top: 2rem;
}

.oink-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: 64px;
  max-width: 100%;
  padding: 0.9rem 1.5rem;
  color: #fffaf0;
  background: var(--green);
  border: 3px solid var(--ink);
  border-radius: 999px;
  box-shadow: 5px 5px 0 var(--ink);
  cursor: pointer;
  font-weight: 900;
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.oink-button:hover {
  background: #0f6752;
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 var(--ink);
}

.oink-button:active {
  transform: translate(3px, 3px);
  box-shadow: 2px 2px 0 var(--ink);
}

.oink-button:focus-visible {
  outline: 4px solid var(--orange-deep);
  outline-offset: 5px;
}

.score {
  display: grid;
  align-content: center;
  padding: 0.45rem 1.2rem;
  border-left: 2px solid var(--line);
}

.score strong {
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 2rem;
  letter-spacing: 0.03em;
}

.score span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.85rem;
  font-style: italic;
}

.reaction {
  min-height: 1.5em;
  margin: 1.5rem 0 0;
  font-size: 0.9rem;
  font-weight: 800;
}

.pig-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 600px;
}

.pig-wrap {
  position: relative;
  z-index: 2;
  width: min(100%, 430px);
  animation: pig-dance 1.7s ease-in-out infinite;
  transform-origin: 50% 85%;
}

.arnold-wrap {
  position: absolute;
  z-index: 4;
  bottom: 4.7rem;
  left: -5rem;
  width: 225px;
  animation: arnold-approve 1.9s ease-in-out infinite;
  transform-origin: 50% 88%;
}

.arnold-avatar {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 13px 0 rgba(37, 22, 15, 0.13));
}

.arnold-verdict {
  position: absolute;
  z-index: 2;
  top: 1.25rem;
  left: -0.75rem;
  padding: 0.35rem 0.55rem;
  color: var(--paper);
  background: var(--green);
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  transform: rotate(-8deg);
}

.arnold-heart {
  position: absolute;
  z-index: 2;
  top: -0.8rem;
  right: 0;
  color: var(--pink-dark);
  font-size: 2.25rem;
  line-height: 1;
  -webkit-text-stroke: 2px var(--ink);
  filter: drop-shadow(3px 3px 0 var(--pink-light));
  animation: heart-pop 1.25s ease-in-out infinite;
}

.pig {
  display: block;
  width: 100%;
  overflow: visible;
  filter: drop-shadow(0 18px 0 rgba(37, 22, 15, 0.11));
}

.pig-body ellipse,
.pig-head circle,
.pig-leg rect,
.ear {
  fill: var(--pink);
  stroke: var(--ink);
  stroke-linejoin: round;
  stroke-width: 7;
}

.pig-head {
  transform-origin: 183px 150px;
  animation: head-bop 1.7s ease-in-out infinite;
}

.belly-shade,
.snout {
  fill: var(--pink-light);
}

.snout {
  stroke: var(--ink);
  stroke-width: 6;
}

.eye,
.nostril {
  fill: var(--ink);
}

.pig .eyebrow,
.smile,
.pig-leg path {
  fill: none;
  stroke: var(--ink);
  stroke-linecap: round;
  stroke-width: 6;
}

.cheek {
  fill: #e96984 !important;
  stroke: none !important;
}

.pig-tail path {
  fill: none;
  stroke: var(--ink);
  stroke-linecap: round;
  stroke-width: 10;
  animation: tail-wag 0.55s ease-in-out infinite alternate;
  transform-origin: 283px 179px;
}

.pig-leg-left {
  animation: left-step 0.85s ease-in-out infinite alternate;
  transform-origin: 137px 230px;
}

.pig-leg-right {
  animation: right-step 0.85s ease-in-out infinite alternate;
  transform-origin: 233px 230px;
}

.stamp {
  position: absolute;
  z-index: 4;
  top: 3rem;
  right: -1rem;
  display: grid;
  place-items: center;
  width: 126px;
  aspect-ratio: 1;
  padding: 1rem;
  color: var(--pink-dark);
  background: var(--paper);
  border: 4px double var(--pink-dark);
  border-radius: 50%;
  box-shadow: 7px 8px 0 rgba(37, 22, 15, 0.12);
  text-align: center;
  text-transform: uppercase;
  transform: rotate(9deg);
}

.stamp span {
  align-self: end;
  font-size: 0.64rem;
  letter-spacing: 0.16em;
}

.stamp strong {
  align-self: start;
  font-size: 1rem;
}

.plate {
  position: absolute;
  z-index: 1;
  bottom: 4.8rem;
  width: min(90%, 390px);
  height: 95px;
  background: #f7eee0;
  border: 8px solid #fffcf4;
  border-radius: 50%;
  box-shadow: 0 10px 0 rgba(37, 22, 15, 0.18);
}

.pork {
  position: absolute;
  width: 92px;
  height: 47px;
  background: linear-gradient(135deg, #a83d24, #e9712c 55%, #f3a449);
  border: 4px solid var(--ink);
  border-radius: 45% 55% 50% 42%;
  box-shadow: inset 10px 8px 0 rgba(255, 206, 87, 0.22);
}

.pork-one {
  top: 1rem;
  left: 4.2rem;
  transform: rotate(13deg);
}

.pork-two {
  top: 0.6rem;
  left: 9.2rem;
  transform: rotate(-9deg);
}

.pork-three {
  top: 1.4rem;
  left: 14rem;
  transform: rotate(8deg);
}

.pork-four {
  top: 2.4rem;
  left: 11.3rem;
  transform: rotate(-3deg);
}

.herb {
  position: absolute;
  z-index: 2;
  color: #437b3b;
  font-size: 1.7rem;
}

.herb-one {
  top: 0.3rem;
  left: 8rem;
}

.herb-two {
  top: 2.3rem;
  right: 5.2rem;
}

.plate-label {
  position: absolute;
  bottom: 1.2rem;
  margin: 0;
  padding: 0.45rem 0.9rem;
  background: var(--paper);
  border: 2px solid var(--ink);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transform: rotate(-2deg);
}

.steam {
  position: absolute;
  z-index: 0;
  bottom: 12rem;
  width: 25px;
  height: 85px;
  border-left: 7px solid rgba(255, 255, 255, 0.75);
  border-radius: 50%;
  animation: steam 2.2s ease-in-out infinite;
}

.steam-one {
  left: 35%;
}

.steam-two {
  left: 50%;
  animation-delay: -0.8s;
}

.steam-three {
  left: 65%;
  animation-delay: -1.5s;
}

.pig-stage.celebrate .pig-wrap {
  animation: pig-party 0.48s ease-in-out 4;
}

.pig-stage.celebrate .arnold-wrap {
  animation: arnold-party 0.4s ease-in-out 5;
}

.report {
  padding: clamp(5rem, 10vw, 9rem) max(5vw, calc((100vw - 1380px) / 2));
  color: var(--paper);
  background: var(--green);
}

.report-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.report .eyebrow {
  margin: 0 0 0.5rem;
  color: var(--lime);
}

h2 {
  margin: 0;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(3.2rem, 7vw, 6.8rem);
  letter-spacing: -0.02em;
  line-height: 0.9;
  text-transform: uppercase;
}

.report-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.stat-card {
  min-height: 310px;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  color: var(--ink);
  border: 3px solid var(--ink);
  border-radius: 1.4rem;
  box-shadow: 8px 8px 0 #0b3028;
  transform: rotate(-1deg);
}

.stat-card:nth-child(2) {
  transform: rotate(1deg) translateY(0.8rem);
}

.stat-card:nth-child(3) {
  transform: rotate(-0.5deg);
}

.stat-card-yellow {
  background: #ffc65a;
}

.stat-card-pink {
  background: var(--pink-light);
}

.stat-card-green {
  background: var(--lime);
}

.stat-number {
  display: block;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(4rem, 8vw, 7rem);
  line-height: 1;
}

.stat-card h3 {
  margin: 1.5rem 0 0.6rem;
  font-size: clamp(1.25rem, 2.4vw, 1.8rem);
  text-transform: uppercase;
}

.stat-card p {
  max-width: 32ch;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  line-height: 1.55;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem max(5vw, calc((100vw - 1380px) / 2));
  color: var(--ink);
  background: var(--lime);
  border-top: 3px solid var(--ink);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

footer p {
  margin: 0;
}

.confetti-layer {
  position: fixed;
  z-index: 20;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.confetti {
  position: absolute;
  top: -2rem;
  width: 13px;
  height: 24px;
  background: var(--confetti-color);
  border: 2px solid var(--ink);
  animation: confetti-fall var(--fall-time) linear forwards;
  transform: rotate(var(--start-angle));
}

@keyframes pulse {
  70% { box-shadow: 0 0 0 9px rgba(255, 92, 85, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 92, 85, 0); }
}

@keyframes pig-dance {
  0%, 100% { transform: translateY(0) rotate(-1.5deg); }
  50% { transform: translateY(-16px) rotate(1.5deg); }
}

@keyframes head-bop {
  0%, 100% { transform: rotate(-2deg); }
  50% { transform: rotate(3deg); }
}

@keyframes left-step {
  to { transform: rotate(8deg) translateY(-3px); }
}

@keyframes right-step {
  to { transform: rotate(-8deg) translateY(3px); }
}

@keyframes tail-wag {
  to { transform: rotate(12deg); }
}

@keyframes steam {
  0% { opacity: 0; transform: translateY(15px) scale(0.7) rotate(-8deg); }
  40% { opacity: 0.8; }
  100% { opacity: 0; transform: translateY(-75px) scale(1.35) rotate(12deg); }
}

@keyframes twinkle {
  0%, 100% { opacity: 0.5; transform: rotate(0) scale(0.8); }
  50% { opacity: 1; transform: rotate(90deg) scale(1.12); }
}

@keyframes pig-party {
  0%, 100% { transform: translateY(0) rotate(-5deg) scale(1); }
  50% { transform: translateY(-38px) rotate(6deg) scale(1.04); }
}

@keyframes arnold-approve {
  0%, 100% { transform: translateY(0) rotate(-2deg) scale(1); }
  48% { transform: translateY(-8px) rotate(1deg) scale(1.015); }
  62% { transform: translateY(-3px) rotate(2deg) scale(1.01); }
}

@keyframes heart-pop {
  0%, 100% { opacity: 0.65; transform: scale(0.84) rotate(-8deg); }
  50% { opacity: 1; transform: scale(1.12) rotate(5deg); }
}

@keyframes arnold-party {
  0%, 100% { transform: translateY(0) rotate(-5deg) scale(1); }
  50% { transform: translateY(-28px) rotate(5deg) scale(1.045); }
}

@keyframes confetti-fall {
  to {
    transform: translateY(110vh) rotate(720deg);
  }
}

@media (max-width: 960px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 5rem;
  }

  .hero-copy {
    max-width: 820px;
  }

  h1 {
    font-size: clamp(4.4rem, 15vw, 8rem);
  }

  .sun-disc {
    top: auto;
    right: -8%;
    bottom: 8%;
    width: min(78vw, 620px);
  }

  .pig-stage {
    min-height: 570px;
  }

  .report-grid {
    grid-template-columns: 1fr;
  }

  .stat-card {
    min-height: 230px;
  }

  .stat-card:nth-child(2) {
    transform: rotate(1deg);
  }
}

@media (max-width: 600px) {
  .topbar {
    align-items: flex-start;
    font-size: 0.62rem;
    letter-spacing: 0.09em;
  }

  .topbar-separator,
  .topbar-status {
    display: none;
  }

  .hero {
    gap: 0.5rem;
    padding: 3.8rem 1.15rem 2.5rem;
  }

  .hero-copy,
  .hero-actions,
  .pig-stage {
    width: 100%;
    max-width: calc(100vw - 2.3rem);
  }

  h1 {
    max-width: 100%;
    font-size: clamp(3.8rem, 18vw, 5rem);
    line-height: 0.8;
  }

  h1 .satisfaction {
    font-size: 0.55em;
    -webkit-text-stroke-width: 1px;
    text-shadow: 3px 3px 0 var(--pink-light);
  }

  .lead br {
    display: none;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .oink-button {
    width: 100%;
  }

  .score {
    padding: 0.5rem 0;
    border-left: 0;
    border-top: 2px solid var(--line);
  }

  .pig-stage {
    min-height: 470px;
  }

  .pig-wrap {
    width: min(100%, 350px);
  }

  .arnold-wrap {
    bottom: 2.7rem;
    left: -1rem;
    width: 155px;
  }

  .arnold-verdict {
    top: 0.6rem;
    left: 0;
    font-size: 0.52rem;
  }

  .arnold-heart {
    top: -0.5rem;
    right: -0.2rem;
    font-size: 1.7rem;
  }

  .stamp {
    top: 0.5rem;
    right: 0.25rem;
    width: 100px;
  }

  .plate {
    bottom: 3.8rem;
    transform: scale(0.86);
  }

  .plate-label {
    bottom: 0.4rem;
  }

  .report {
    padding: 5rem 1.15rem;
  }

  footer {
    flex-direction: column;
    padding-inline: 1.15rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
