:root {
  --pink: #ff39b7;
  --yellow: #ffe600;
  --cyan: #00e5ff;
  --purple: #6c2cff;
  --dark: #170021;
  --white: #fffaf0;
  --meat: #b94748;
  --meat2: #ff8a7d;
  --meat-dark: #6f1d2b;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--white);
  font-family: "Comic Neue", "Comic Sans MS", cursive;
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 57, 183, .55), transparent 30%),
    radial-gradient(circle at 80% 20%, rgba(0, 229, 255, .45), transparent 28%),
    linear-gradient(135deg, #170021 0%, #3a0066 45%, #001a45 100%);
  overflow-x: hidden;
}


.confetti::before {
  content: "😂 🥩 🎉 👟 🤖 🧀 😬 🥳";
  position: fixed;
  top: 0;
  left: 0;
  width: 200%;
  font-size: 2rem;
  opacity: .18;
  letter-spacing: 1rem;
  animation: drift 24s linear infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes drift {
  from { transform: translateX(0) translateY(0) rotate(0deg); }
  to { transform: translateX(-50%) translateY(40px) rotate(2deg); }
}


.hero, main, footer { position: relative; z-index: 1; }

.hero {
  min-height: 88vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 3rem 1rem 4rem;
}

.hero-image-wrap {
  position: relative;
  width: min(760px, 94vw);
  margin: 1.2rem auto .5rem;
  transform: rotate(1.5deg);
  filter: drop-shadow(0 26px 34px rgba(0,0,0,.48));
}

.hero-image {
  display: block;
  width: 100%;
  max-height: 48vh;
  object-fit: cover;
  object-position: center;
  border-radius: 34px;
  border: 8px solid var(--yellow);
  box-shadow:
    0 0 0 8px var(--pink),
    0 0 0 14px var(--cyan),
    inset 0 0 40px rgba(255,255,255,.25);
  animation: heroPulse 2.8s ease-in-out infinite alternate;
}

.hero-sticker {
  position: absolute;
  right: -1rem;
  bottom: -1rem;
  background: var(--pink);
  color: white;
  border: 5px solid white;
  border-radius: 999px;
  padding: .55rem .85rem;
  font-family: Bangers, Impact, sans-serif;
  font-size: clamp(1.1rem, 3vw, 2rem);
  text-shadow: 2px 2px 0 #000;
  box-shadow: 0 10px 0 rgba(0,0,0,.35);
  transform: rotate(-8deg);
}

@keyframes heroPulse {
  from { filter: saturate(1.05) contrast(1.02); transform: scale(1); }
  to { filter: saturate(1.45) contrast(1.08); transform: scale(1.015); }
}

h1 {
  font-family: Bangers, Impact, sans-serif;
  font-size: clamp(4rem, 14vw, 11rem);
  line-height: .85;
  margin: 1rem 0;
  color: var(--yellow);
  text-shadow: 7px 7px 0 var(--pink), 13px 13px 0 rgba(0,0,0,.45);
  transform: rotate(-2deg);
}

h2, h3 {
  font-family: Bangers, Impact, sans-serif;
  letter-spacing: .04em;
  margin-top: 0;
}

h2 { font-size: clamp(2rem, 5vw, 4rem); }
h3 { font-size: 2rem; color: var(--yellow); }

.subtitle {
  max-width: 760px;
  font-size: clamp(1.2rem, 2.8vw, 2rem);
  background: rgba(0,0,0,.38);
  border: 4px dashed var(--cyan);
  border-radius: 24px;
  padding: 1rem 1.3rem;
  box-shadow: 0 0 40px rgba(0,229,255,.25);
}

.badge {
  display: inline-block;
  background: var(--pink);
  color: white;
  border: 5px solid var(--yellow);
  padding: .7rem 1rem;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: 0 12px 0 rgba(0,0,0,.35);
}

.spin { animation: wobble 1.7s ease-in-out infinite alternate; }

@keyframes wobble {
  from { transform: rotate(-8deg) scale(1); }
  to { transform: rotate(6deg) scale(1.08); }
}

.panic-button, button {
  appearance: none;
  border: 0;
  background: linear-gradient(90deg, var(--yellow), #ff8c00, var(--pink));
  color: #210018;
  font-family: Bangers, Impact, sans-serif;
  letter-spacing: .04em;
  font-size: 1.4rem;
  text-decoration: none;
  padding: 1rem 1.4rem;
  border-radius: 18px;
  box-shadow: 0 10px 0 rgba(0,0,0,.35);
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}

.panic-button:hover, button:hover {
  transform: translateY(4px) rotate(-1deg);
  box-shadow: 0 6px 0 rgba(0,0,0,.35);
}

main {
  width: min(1100px, calc(100% - 2rem));
  margin: 0 auto 4rem;
}

.card {
  margin: 1.5rem 0;
  padding: clamp(1.2rem, 3vw, 2rem);
  background: rgba(255,255,255,.13);
  border: 4px solid rgba(255,255,255,.35);
  border-radius: 30px;
  box-shadow: 0 24px 70px rgba(0,0,0,.28), inset 0 0 40px rgba(255,255,255,.06);
  backdrop-filter: blur(8px);
}

.intro { font-size: 1.35rem; }

.meat-zone {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 420px);
  gap: 1.5rem;
  align-items: center;
  background: linear-gradient(135deg, rgba(255,57,183,.3), rgba(255,230,0,.18));
}

.meat-zone img {
  width: 100%;
  border-radius: 28px;
  border: 6px ridge var(--yellow);
  box-shadow: 0 0 0 8px var(--pink), 0 20px 45px rgba(0,0,0,.4);
  transform: rotate(2deg);
}

.label {
  display: inline-block;
  background: var(--cyan);
  color: var(--dark);
  font-weight: 700;
  padding: .3rem .7rem;
  border-radius: 999px;
}

.tiny { font-size: .95rem; opacity: .85; }

.smash-zone {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.smash {
  font-size: clamp(1.35rem, 3vw, 2rem);
  border: 5px solid white;
  position: relative;
  overflow: hidden;
}

.smash.like { background: linear-gradient(90deg, #00e5ff, #33ff99, #ffe600); }
.smash.subscribe { background: linear-gradient(90deg, #ff003c, #ff39b7, #ffe600); color: white; text-shadow: 2px 2px 0 #000; }

.smash.smashed {
  animation: buttonNuke .55s ease;
}

@keyframes buttonNuke {
  0% { transform: scale(1) rotate(0); }
  30% { transform: scale(1.35) rotate(-5deg); box-shadow: 0 0 60px white, 0 0 90px var(--yellow); }
  60% { transform: scale(.92) rotate(4deg); }
  100% { transform: scale(1) rotate(0); }
}

.burst {
  position: fixed;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
  font-family: Bangers, Impact, sans-serif;
  font-size: clamp(2rem, 8vw, 5rem);
  color: white;
  text-shadow: 4px 4px 0 var(--pink), 8px 8px 0 rgba(0,0,0,.35);
  pointer-events: none;
  z-index: 99;
  animation: burstOut .9s ease forwards;
}

@keyframes burstOut {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.2) rotate(-18deg); }
  18% { opacity: 1; transform: translate(-50%, -50%) scale(1.15) rotate(7deg); }
  100% { opacity: 0; transform: translate(-50%, -180%) scale(.8) rotate(-10deg); }
}

.meter {
  width: 100%;
  height: 42px;
  padding: 6px;
  background: rgba(0,0,0,.45);
  border-radius: 999px;
  border: 3px solid white;
  overflow: hidden;
}

.meter span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: 999px;
  background: repeating-linear-gradient(45deg, var(--yellow), var(--yellow) 16px, var(--pink) 16px, var(--pink) 32px);
  animation: danger 1s linear infinite;
  transition: width .5s cubic-bezier(.34,1.3,.64,1);
}

@keyframes danger {
  to { filter: hue-rotate(360deg); }
}

.meter-text { font-size: 1.4rem; }

.joke {
  margin-bottom: 0;
  font-size: 1.45rem;
  color: var(--yellow);
  text-shadow: 2px 2px 0 rgba(0,0,0,.45);
}

.max-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(0,0,0,.88);
  display: grid;
  place-items: center;
  padding: 1rem;
  animation: overlayIn .35s ease;
}

.max-overlay[hidden] { display: none; }

@keyframes overlayIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.max-card {
  text-align: center;
  max-width: 680px;
  width: 100%;
  padding: clamp(2rem, 5vw, 3.5rem);
  background: linear-gradient(135deg, #170021, #3a0066);
  border: 6px solid var(--yellow);
  border-radius: 30px;
  box-shadow: 0 0 0 6px var(--pink), 0 0 80px var(--cyan), 0 30px 80px rgba(0,0,0,.6);
  animation: cardPop .5s cubic-bezier(.34,1.56,.64,1);
}

@keyframes cardPop {
  from { transform: scale(.5) rotate(-6deg); opacity: 0; }
  to { transform: scale(1) rotate(0); opacity: 1; }
}

.max-badge {
  font-size: 5rem;
  display: block;
  animation: badgeRock 1s ease-in-out infinite alternate;
}

@keyframes badgeRock {
  from { transform: rotate(-15deg) scale(1); }
  to { transform: rotate(15deg) scale(1.25); }
}

.max-title {
  font-family: Bangers, Impact, sans-serif;
  font-size: clamp(2.5rem, 8vw, 5rem);
  margin: .4rem 0;
  text-shadow: 5px 5px 0 var(--pink), 10px 10px 0 rgba(0,0,0,.4);
  animation: titleFlash .55s ease-in-out infinite alternate;
}

@keyframes titleFlash {
  from { color: var(--yellow); }
  to { color: var(--cyan); text-shadow: 5px 5px 0 var(--pink), 0 0 40px var(--cyan); }
}

.max-cert {
  font-family: Bangers, Impact, sans-serif;
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  color: var(--pink);
  letter-spacing: .05em;
  margin: .5rem 0;
}

.max-sub {
  font-size: 1.15rem;
  opacity: .9;
  line-height: 1.6;
}

.max-close {
  margin-top: 1.2rem;
  font-size: 1.35rem;
  background: linear-gradient(90deg, var(--cyan), var(--pink));
  color: white;
  text-shadow: 2px 2px 0 #000;
}

footer {
  text-align: center;
  padding: 2rem 1rem;
  color: rgba(255,255,255,.75);
}

@media (max-width: 780px) {
  .meat-zone { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .hero-image { max-height: 42vh; border-width: 5px; }
  .hero-sticker { right: .25rem; bottom: -.8rem; }
}
