/* MEGAWINS99 cricket ID — approved-artwork edition.
   Exact 1672×941 desktop / 941×1672 mobile designs are kept at their
   natural aspect ratio. The blurred background fills unused viewport space. */
:root {
  color-scheme: dark;
  --gold: 255, 210, 62;
  --green: 36, 255, 93;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { width: 100%; min-height: 100%; margin: 0; }
html { background: #07110d; }
body { font-family: Arial, Helvetica, sans-serif; overflow: hidden; }
.page {
  position: relative;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  display: grid;
  place-items: center;
  isolation: isolate;
  background: #07110d;
}
/* Ambient stadium extension avoids hard black bars on unusual screens. */
.page::before {
  content: "";
  position: absolute;
  inset: -8%;
  z-index: -2;
  background: url('./desktop-bg.webp') center / cover no-repeat;
  filter: blur(22px) brightness(.45) saturate(1.15);
  transform: scale(1.06);
  pointer-events: none;
}
.page::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse at center, transparent 50%, rgba(0,0,0,.18));
  pointer-events: none;
}
.poster {
  position: relative;
  flex: none;
  width: min(100vw, calc(100dvh * 1672 / 941));
  max-height: 100dvh;
  aspect-ratio: 1672 / 941;
  overflow: visible;
  isolation: isolate;
  filter: drop-shadow(0 0 22px rgba(0,0,0,.3));
}
.poster-picture, .poster-picture img {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.poster-picture img { object-fit: fill; user-select: none; -webkit-user-drag: none; }
.click-zones { position: absolute; inset: 0; }
.cta-hit {
  position: absolute;
  display: block;
  text-decoration: none;
  border-radius: 999px;
  overflow: hidden;
  border: 2px solid transparent;
  touch-action: manipulation;
  cursor: pointer;
  z-index: 2;
  outline: none;
  transition: filter .2s ease, box-shadow .2s ease;
}
/* Coordinates align with the two painted CTA buttons in desktop-bg.webp. */
.cta-hit--gold {
  left: 35.3%;
  top: 49.05%;
  width: 43.65%;
  height: 10.0%;
  animation: pulse-gold 2.7s ease-in-out infinite;
}
.cta-hit--green {
  left: 33.5%;
  top: 59.7%;
  width: 46.1%;
  height: 10.2%;
  animation: pulse-green 2.9s ease-in-out .35s infinite;
}
/* Gloss sweep is a genuine CSS animation, not part of the fixed image. */
.cta-hit::before {
  content: "";
  position: absolute;
  top: -65%;
  bottom: -65%;
  left: -50%;
  width: 26%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.03), rgba(255,255,255,.32), rgba(255,255,255,.03), transparent);
  transform: translateX(-185%) rotate(17deg);
  animation: moving-shine 4.1s ease-in-out infinite;
  pointer-events: none;
}
.cta-hit--green::before { animation-delay: 1.1s; }
.cta-hit:hover { filter: brightness(1.2); box-shadow: inset 0 0 26px rgba(255,255,255,.18), 0 0 28px rgba(255,240,160,.5); }
.cta-hit--green:hover { box-shadow: inset 0 0 26px rgba(255,255,255,.13), 0 0 28px rgba(26,255,86,.5); }
.cta-hit:active { filter: brightness(1.38); }
.cta-hit:focus-visible { outline: 3px solid #fff; outline-offset: 3px; animation-play-state: paused; }
.screen-reader-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
@keyframes pulse-gold {
  0%, 100% { box-shadow: inset 0 0 0 rgba(var(--gold),0), 0 0 8px rgba(var(--gold),.12); }
  50% { box-shadow: inset 0 0 15px rgba(var(--gold),.14), 0 0 27px rgba(var(--gold),.4); }
}
@keyframes pulse-green {
  0%, 100% { box-shadow: inset 0 0 0 rgba(var(--green),0), 0 0 8px rgba(var(--green),.15); }
  50% { box-shadow: inset 0 0 17px rgba(var(--green),.16), 0 0 28px rgba(var(--green),.52); }
}
@keyframes moving-shine {
  0%, 52%, 100% { transform: translateX(-210%) rotate(17deg); }
  73% { transform: translateX(610%) rotate(17deg); }
}
@media (max-width: 700px), (orientation: portrait) {
  .page::before { background-image: url('./mobile-bg.webp'); }
  .poster {
    width: min(100vw, calc(100dvh * 941 / 1672));
    aspect-ratio: 941 / 1672;
  }
  /* Coordinates align with the mobile artwork, keeping both links mid-page. */
  .cta-hit--gold { left: 8.0%; top: 54.65%; width: 84.0%; height: 9.05%; }
  .cta-hit--green { left: 8.0%; top: 65.65%; width: 84.0%; height: 9.05%; }
}
@media (prefers-reduced-motion: reduce) {
  .cta-hit, .cta-hit::before { animation: none !important; transition: none !important; }
}
