:root {
  --cyan: #04cfff;
  --yellow: #fff538;
  --cream: #fff8bd;
  --red: #ff1717;
  --blue: #0a24e8;
  --pink: #ff37d8;
  --black: #080808;
  --party-bg:
    linear-gradient(45deg, transparent 0 90%, rgba(255, 255, 255, 0.28) 90% 100%) 0 0 / 150px 150px,
    linear-gradient(135deg, transparent 0 84%, rgba(0, 105, 230, 0.22) 84% 100%) 28px 0 / 180px 150px,
    radial-gradient(circle at 8% 14%, rgba(8, 117, 255, 0.28) 0 7px, transparent 8px) 0 0 / 170px 138px,
    radial-gradient(circle at 72% 8%, rgba(8, 117, 255, 0.18) 0 6px, transparent 7px) 0 0 / 112px 96px,
    linear-gradient(180deg, #01cff8 0%, #06d5ff 52%, #00b8ef 100%);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

body {
  margin: 0;
  color: var(--black);
  font-family: "Comic Sans MS", "Comic Sans", "Trebuchet MS", cursive, sans-serif;
  background: var(--party-bg);
  letter-spacing: 0;
}

a {
  color: inherit;
}

.page-shell,
main {
  width: 100%;
  height: 100dvh;
  overflow: hidden;
}

.page-shell {
  background: var(--party-bg);
}

.hero {
  position: relative;
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: clamp(8px, 1.3vh, 18px);
  width: 100%;
  height: 100dvh;
  padding: clamp(18px, 3vh, 34px) clamp(14px, 5vw, 78px);
  background: var(--party-bg);
}

.confetti {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.38;
  background-image:
    linear-gradient(30deg, transparent 42%, #087bfa 43% 57%, transparent 58%),
    linear-gradient(110deg, transparent 43%, #087bfa 44% 56%, transparent 57%),
    radial-gradient(circle, #087bfa 0 4px, transparent 5px);
  background-size: 96px 120px, 130px 92px, 86px 86px;
  background-position: 10px 4px, 47px 35px, 21px 72px;
}

.stars {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.star {
  position: absolute;
  top: clamp(24px, 5vh, 48px);
  color: var(--yellow);
  font-size: clamp(3.6rem, 8vw, 8rem);
  line-height: 1;
  -webkit-text-stroke: clamp(3px, 0.45vw, 6px) var(--black);
  text-shadow: 6px 6px 0 rgba(0, 56, 155, 0.45);
}

.star-left {
  left: clamp(10px, 3vw, 70px);
  transform: rotate(-14deg);
}

.star-right {
  right: clamp(10px, 3vw, 70px);
  transform: rotate(14deg);
}

.hero-heading {
  position: relative;
  z-index: 2;
  align-self: end;
  text-align: center;
}

h1 {
  width: min(calc(100vw - 280px), 1320px);
  margin: 0 auto;
  color: #fff;
  font-size: clamp(3.4rem, 6.4vw, 6.8rem);
  line-height: 0.88;
  white-space: nowrap;
  text-shadow:
    5px 5px 0 var(--black),
    -4px 4px 0 var(--black),
    4px -4px 0 var(--black),
    -4px -4px 0 var(--black),
    10px 10px 0 rgba(0, 71, 180, 0.45);
}

.deal-title {
  margin: 8px 0 0;
  color: var(--red);
  font-size: clamp(2.7rem, 7vw, 7rem);
  font-weight: 900;
  line-height: 0.86;
  text-shadow:
    3px 3px 0 var(--yellow),
    -3px 3px 0 var(--yellow),
    3px -3px 0 var(--yellow),
    -3px -3px 0 var(--yellow),
    7px 7px 0 rgba(0, 0, 0, 0.2);
}

.checker-rule {
  position: relative;
  z-index: 2;
  width: min(720px, 58vw);
  height: clamp(16px, 2.4vh, 24px);
  margin: 0 auto;
  border-top: 4px solid var(--black);
  border-bottom: 4px solid var(--black);
  background:
    linear-gradient(45deg, #fff 25%, transparent 25% 75%, #fff 75%) 0 0 / 24px 24px,
    linear-gradient(45deg, #fff 25%, transparent 25% 75%, #fff 75%) 12px 12px / 24px 24px,
    #000;
}

.purchase-prompt {
  position: relative;
  z-index: 2;
  justify-self: center;
  margin: 0 0 clamp(4px, 0.7vh, 10px);
  color: #fff;
  font-size: clamp(1.35rem, 3vw, 3rem);
  font-weight: 900;
  line-height: 0.98;
  text-align: center;
  text-shadow:
    3px 3px 0 var(--black),
    -2px 2px 0 var(--black),
    2px -2px 0 var(--black),
    -2px -2px 0 var(--black),
    5px 5px 0 rgba(0, 71, 180, 0.45);
}

.deal-card,
.countdown-card {
  position: relative;
  z-index: 2;
  border-radius: 14px;
  box-shadow: 7px 7px 0 var(--black);
}

.deal-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: clamp(12px, 2.2vw, 28px);
  align-items: center;
  justify-self: center;
  width: min(1160px, 92vw);
  padding: clamp(14px, 2.4vh, 28px) clamp(18px, 3vw, 38px);
  border: 6px solid var(--blue);
  background: var(--yellow);
}

.cash-row,
.pro-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(10px, 1.8vw, 22px);
  align-items: center;
}

.money-stack {
  display: grid;
  place-items: center;
  width: clamp(64px, 8vw, 114px);
  aspect-ratio: 1.45;
  border: 5px solid #126c08;
  border-radius: 8px;
  color: #095c06;
  background:
    linear-gradient(135deg, transparent 38%, rgba(255, 255, 255, 0.45) 38% 42%, transparent 42%),
    repeating-linear-gradient(0deg, #2ecc24 0 12px, #8df15c 12px 20px);
  font-family: Impact, "Arial Black", sans-serif;
  font-size: clamp(2rem, 4vw, 4rem);
  box-shadow: 5px 5px 0 #083f05;
  transform: rotate(-8deg);
}

.cash,
.pro {
  margin: 0;
  overflow-wrap: anywhere;
  font-weight: 900;
  line-height: 0.95;
}

.cash {
  color: #25de0f;
  font-size: clamp(2.4rem, 5.6vw, 5.3rem);
  -webkit-text-stroke: 3px var(--black);
  text-shadow: 4px 4px 0 rgba(0, 78, 0, 0.25);
}

.tiny-note,
.plan {
  margin: 8px 0 0;
  font-size: clamp(0.9rem, 1.45vw, 1.35rem);
  font-weight: 900;
  text-transform: uppercase;
}

.or-burst {
  display: grid;
  place-items: center;
  width: clamp(74px, 8.5vw, 116px);
  aspect-ratio: 1;
  color: #fff;
  background: var(--blue);
  font-size: clamp(1.8rem, 3.4vw, 3rem);
  font-weight: 900;
  text-shadow: 2px 2px 0 var(--black);
  clip-path: polygon(50% 0%, 60% 23%, 85% 12%, 78% 39%, 100% 50%, 78% 61%, 85% 88%, 60% 77%, 50% 100%, 40% 77%, 15% 88%, 22% 61%, 0% 50%, 22% 39%, 15% 12%, 40% 23%);
}

.calendar {
  position: relative;
  width: clamp(58px, 7.5vw, 104px);
  aspect-ratio: 1;
  border: 5px solid var(--black);
  border-radius: 10px;
  background:
    linear-gradient(#ff4135 0 24%, transparent 24%),
    repeating-linear-gradient(90deg, transparent 0 22%, #cfcfcf 22% 28%),
    repeating-linear-gradient(0deg, #fff 0 22%, #e9e9e9 22% 28%);
  box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.35);
}

.calendar::before,
.calendar::after {
  position: absolute;
  top: -14px;
  width: 16px;
  height: 28px;
  border: 4px solid var(--black);
  border-radius: 999px;
  background: #bdbdbd;
  content: "";
}

.calendar::before {
  left: 16px;
}

.calendar::after {
  right: 16px;
}

.pro {
  color: var(--blue);
  font-size: clamp(2rem, 4.3vw, 4.1rem);
  text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.2);
}

.action-row {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(12px, 4vw, 58px);
  align-self: start;
}

.action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-width: min(42vw, 360px);
  min-height: clamp(54px, 7vh, 72px);
  padding: 8px 26px;
  border: 6px solid var(--black);
  border-radius: 10px;
  color: var(--black);
  font-size: clamp(1.25rem, 2.5vw, 2.35rem);
  font-weight: 900;
  text-decoration: none;
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.5);
  transform: rotate(-0.4deg);
}

.action span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 3px solid var(--black);
  background: #fff;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1;
}

.action:hover,
.action:focus-visible {
  transform: translate(-2px, -2px) rotate(0.4deg);
  box-shadow: 9px 9px 0 rgba(0, 0, 0, 0.55);
}

.action:focus-visible {
  outline: 5px dashed var(--pink);
  outline-offset: 5px;
}

.accept {
  background: linear-gradient(#58ff2f, #18c900);
}

.pass {
  background: linear-gradient(#fff641, #ffc400);
}

.countdown-card {
  align-self: end;
  justify-self: center;
  display: grid;
  justify-items: center;
  width: min(380px, 88vw);
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
}

.timer {
  display: grid;
  place-items: center;
  width: min(100%, 360px);
  min-height: clamp(70px, 10vh, 96px);
  border: 6px solid #28e22c;
  border-radius: 16px;
  color: var(--red);
  background: #050505;
  font-family: "Courier New", monospace;
  font-size: clamp(3rem, 6vw, 5.7rem);
  font-weight: 900;
  letter-spacing: 0;
  box-shadow: inset 0 0 0 4px #042400, 0 6px 0 var(--black);
  text-shadow: 0 0 12px rgba(255, 23, 23, 0.8);
}

@media (prefers-reduced-motion: no-preference) {
  .star {
    animation: wobble 1.8s ease-in-out infinite alternate;
  }

  .star-right {
    animation-delay: -0.5s;
  }

  .timer.is-urgent {
    animation: urgentPulse 0.45s steps(2, jump-none) infinite;
  }
}

@keyframes wobble {
  from {
    translate: 0 -2px;
  }
  to {
    translate: 0 5px;
  }
}

@keyframes urgentPulse {
  50% {
    color: #fff;
    background: #cc0000;
  }
}

@media (max-height: 760px) and (min-width: 760px) {
  .hero {
    gap: 7px;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  h1 {
    font-size: clamp(3.2rem, 7.4vw, 7rem);
  }

  .deal-title {
    font-size: clamp(2.4rem, 5.8vw, 5.2rem);
  }

  .purchase-prompt {
    font-size: clamp(1.2rem, 2.4vw, 2.1rem);
  }

  .deal-card {
    padding-block: 12px;
  }

  .countdown-card {
    padding-block: 8px;
  }
}

@media (max-width: 820px) {
  .hero {
    grid-template-rows: auto auto auto auto auto minmax(0, 1fr);
    align-content: start;
    gap: clamp(5px, 0.9dvh, 8px);
    padding: max(20px, env(safe-area-inset-top)) 10px max(10px, env(safe-area-inset-bottom));
  }

  h1 {
    width: calc(100vw - 106px);
    font-size: clamp(1.58rem, 6.8vw, 3.1rem);
    text-shadow:
      3px 3px 0 var(--black),
      -2px 2px 0 var(--black),
      2px -2px 0 var(--black),
      -2px -2px 0 var(--black),
      6px 6px 0 rgba(0, 71, 180, 0.45);
  }

  .deal-title {
    margin-top: 4px;
    font-size: clamp(2.15rem, 11.5vw, 4.2rem);
  }

  .star {
    top: 22px;
    font-size: clamp(3rem, 12vw, 4.2rem);
    -webkit-text-stroke-width: 4px;
  }

  .star-left {
    left: 6px;
  }

  .star-right {
    right: 6px;
  }

  .checker-rule {
    width: min(94vw, 430px);
    height: 16px;
    border-top-width: 3px;
    border-bottom-width: 3px;
  }

  .purchase-prompt {
    font-size: clamp(1rem, 4.8vw, 1.5rem);
  }

  .deal-card {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    justify-items: center;
    gap: clamp(5px, 1.8vw, 10px);
    width: min(700px, 96vw);
    padding: clamp(8px, 1.5dvh, 12px) clamp(8px, 2.5vw, 14px);
    border-width: 5px;
    border-radius: 12px;
  }

  .cash-row,
  .pro-row {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 5px;
    text-align: center;
  }

  .money-stack,
  .calendar {
    width: clamp(40px, 11vw, 64px);
    border-width: 4px;
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.35);
  }

  .calendar::before,
  .calendar::after {
    width: 10px;
    height: 20px;
    top: -10px;
    border-width: 3px;
  }

  .calendar::before {
    left: 10px;
  }

  .calendar::after {
    right: 10px;
  }

  .cash {
    font-size: clamp(1.38rem, 7.3vw, 2.65rem);
    -webkit-text-stroke-width: 2px;
  }

  .pro {
    font-size: clamp(1.18rem, 5.9vw, 2.35rem);
  }

  .tiny-note,
  .plan {
    margin-top: 4px;
    font-size: clamp(0.72rem, 2.9vw, 0.95rem);
  }

  .tiny-note {
    display: none;
  }

  .or-burst {
    width: clamp(42px, 11vw, 66px);
    font-size: clamp(1.05rem, 4.8vw, 1.7rem);
  }

  .action-row {
    width: 100%;
    flex-wrap: nowrap;
    gap: 8px;
  }

  .action {
    flex: 1 1 0;
    min-width: 0;
    min-height: clamp(46px, 7dvh, 58px);
    gap: 8px;
    padding: 6px 8px;
    border-width: 5px;
    font-size: clamp(0.9rem, 4.5vw, 1.5rem);
    line-height: 1;
  }

  .action span {
    flex: 0 0 auto;
    width: clamp(28px, 8vw, 34px);
    height: clamp(28px, 8vw, 34px);
  }

  .countdown-card {
    width: min(390px, 95vw);
  }

  .timer {
    width: min(330px, 88vw);
    min-height: clamp(58px, 9dvh, 74px);
    font-size: clamp(2.35rem, 12.5vw, 3.5rem);
    border-width: 5px;
  }
}

@media (max-width: 480px) and (max-height: 760px) {
  .hero {
    gap: 5px;
    padding-top: max(20px, env(safe-area-inset-top));
    padding-bottom: max(8px, env(safe-area-inset-bottom));
  }

  h1 {
    width: calc(100vw - 92px);
    font-size: clamp(1.44rem, 6.5vw, 1.8rem);
  }

  .deal-title {
    margin-top: 0;
    font-size: clamp(2.05rem, 10.5vw, 2.75rem);
  }

  .star {
    top: 20px;
    font-size: clamp(2.7rem, 11vw, 3.35rem);
    -webkit-text-stroke-width: 3px;
  }

  .checker-rule {
    height: 14px;
  }

  .purchase-prompt {
    font-size: clamp(0.95rem, 4.6vw, 1.18rem);
    line-height: 0.95;
  }

  .deal-card {
    width: min(370px, 96vw);
    padding: 8px;
    border-width: 4px;
    box-shadow: 5px 5px 0 var(--black);
  }

  .money-stack,
  .calendar {
    display: none;
  }

  .cash {
    font-size: clamp(1.55rem, 8.5vw, 2.05rem);
  }

  .pro {
    font-size: clamp(1.18rem, 6.2vw, 1.55rem);
  }

  .plan {
    font-size: clamp(0.65rem, 3vw, 0.78rem);
  }

  .or-burst {
    width: clamp(38px, 10vw, 46px);
    font-size: clamp(0.95rem, 4.4vw, 1.18rem);
  }

  .action {
    min-height: 48px;
    border-width: 4px;
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.5);
    font-size: clamp(0.88rem, 4.25vw, 1.12rem);
  }

  .timer {
    min-height: 58px;
    font-size: clamp(2.35rem, 12vw, 3rem);
  }
}

@media (max-width: 380px), (max-height: 690px) {
  .hero {
    padding-top: 20px;
    padding-bottom: 10px;
    gap: 5px;
  }

  .deal-card {
    gap: 4px;
  }

  .tiny-note {
    display: none;
  }

  .action {
    min-height: 44px;
  }
}
