/* Poster hero: source artwork stays untouched; transforms belong to wrappers. */
:root {
  --poster-header: 73px;
  --poster-action-space: 0px;
  --slab-ease: cubic-bezier(.22, 1, .36, 1);
}

.site-header { height: var(--poster-header); }
.header-inner { min-height: 0; height: 100%; }

.hero {
  min-height: calc(100vh - var(--poster-header));
  min-height: calc(100svh - var(--poster-header));
  isolation: isolate;
  background-position: center bottom;
}

.hero::before {
  content: none;
}

.hero-layout {
  min-height: calc(100vh - var(--poster-header) - 6px);
  min-height: calc(100svh - var(--poster-header) - 6px);
  width: min(calc(100% - 64px), 1360px);
  padding-block: 40px 76px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: 28px;
}

.hero-copy { text-align: center; }
.hero-copy .hero-title { width: 100%; max-width: 660px; margin-inline: auto; }
.hero-copy .hero-lead { max-width: none; }
.hero-actions { justify-content: center; }
.hero-copy .hero-lead { font-size: 17px; margin-top: 24px; }
.hero-copy .hero-date { font-size: 15px; }

.hero-prizes {
  width: 100%;
  height: clamp(450px, 70svh, 680px);
  max-width: none;
  margin: 0;
  position: relative;
  display: block;
}

.slab-stage {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  container-type: size;
  perspective: 1100px;
  --slab-spread: 145px;
  --slab-side-scale: .86;
  --slab-side-angle: 6deg;
}

@supports (height: 1cqh) {
  .slab-stage { --slab-spread: 27cqw; }
}

.slab-stage::before {
  content: none;
}

.prize-slab {
  position: absolute;
  top: 50%;
  left: 50%;
  height: 94%;
  max-height: 620px;
  aspect-ratio: 621 / 1112;
  transform-origin: 50% 65%;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: none;
  color: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 900ms var(--slab-ease);
}
.prize-slab:disabled { cursor: default; opacity: 1; }
.prize-slab:focus-visible { outline: 3px solid #b71118; outline-offset: 6px; }

@supports (height: 1cqh) {
  .prize-slab { height: min(94cqh, 78cqw); max-height: none; }
}

.prize-slab--second { aspect-ratio: 548 / 968; }
.prize-slab--third { aspect-ratio: 548 / 962; }
.prize-slab[data-position="front"] { z-index: 3; transform: translate(-50%, -50%); }
.prize-slab[data-position="left"] {
  z-index: 1;
  transform: translate(calc(-50% - var(--slab-spread)), -47%) rotate(calc(-1 * var(--slab-side-angle))) scale(var(--slab-side-scale));
}
.prize-slab[data-position="right"] {
  z-index: 2;
  transform: translate(calc(-50% + var(--slab-spread)), -47%) rotate(var(--slab-side-angle)) scale(var(--slab-side-scale));
}

.slab-entrance,
.slab-surface { height: 100%; width: 100%; }

.hero-prizes .slab-surface img {
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  object-fit: contain;
  filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .10));
}

.prize-slab[data-position="front"] .slab-surface img {
  filter: drop-shadow(0 10px 12px rgba(0, 0, 0, .12));
}

.slab-surface { transition: transform 420ms var(--slab-ease); }
@media (hover: hover) and (pointer: fine) {
  .prize-slab:hover .slab-surface { transform: translateY(-7px) rotate(1deg); }
}

.hero-scroll {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: #785a49;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}
.hero-scroll span { color: var(--red); font-size: 18px; }
.hero-scroll:hover { color: var(--red-dark); }
.hero-scroll:focus-visible { outline: 3px solid #1456b852; outline-offset: 2px; border-radius: 4px; }

@media (min-width: 701px) and (max-width: 1000px) {
  .hero-layout { width: calc(100% - 40px); grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 16px; }
  .hero-prizes { height: min(60svh, 560px); }
  .hero-copy .hero-title { width: 100%; }
  .hero-copy .hero-lead { font-size: 16px; }
  .hero-actions { gap: 10px; }
  .hero-actions .button { font-size: 14px; padding-inline: 12px; }
}

@media (max-width: 700px) {
  :root {
    --poster-header: 65px;
    --poster-action-space: calc(80px + env(safe-area-inset-bottom));
  }
  body { padding-bottom: var(--poster-action-space); }
  .hero { padding-bottom: var(--poster-action-space); border-bottom: 0; }
  .hero-layout {
    width: min(calc(100% - 40px), 460px);
    height: calc(100vh - var(--poster-header) - var(--poster-action-space));
    height: calc(100svh - var(--poster-header) - var(--poster-action-space));
    min-height: 630px;
    padding: 20px 0 8px;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(310px, 1fr) auto auto auto;
    gap: 8px;
    align-items: center;
  }
  .hero-copy .hero-title { width: min(calc(100% + 12px), 386px); max-width: none; margin: 0; }
  .hero-prizes {
    order: 3;
    width: 100%;
    height: 100%;
    min-height: 0;
    margin: 0;
  }
  .slab-stage { --slab-spread: 72px; --slab-side-scale: .84; }
  @supports (height: 1cqh) {
    .slab-stage { --slab-spread: 23cqw; }
  }
  .prize-slab { max-height: 360px; }
  @supports (height: 1cqh) {
    .prize-slab { top: min(50cqh, 52cqw); height: min(94cqh, 98cqw); max-height: none; }
  }
  .hero-copy .hero-lead { margin: 0; font-size: 14px; line-height: 1.6; }
  .hero-copy .hero-date {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 14px;
    line-height: 1.65;
  }
  .hero-date .draw-deadline { margin-top: 4px; }
  .hero-date .date-timezone { margin-top: 2px; font-size: 13px; }
  .hero-scroll {
    position: static;
    transform: none;
    order: 6;
    min-height: 36px;
    font-size: 14px;
    gap: 7px;
  }
  .mobile-action-bar {
    min-height: var(--poster-action-space);
    padding-bottom: calc(11px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .98);
  }
  body { font-size: 16px; }
  .mobile-section-link { font-size: 14px; }
  .download-description, .steps-list p, .event-facts dd, .terms-content { font-size: 16px; color: #51473f; }
  .app-brand-lockup h2 { font-size: 27px; }
  .section-heading h2, .details-layout h2 { font-size: 28px; }
  .steps-list h3 { font-size: 20px; }
  .terms-disclosure summary { font-size: 16px; }
  .terms-state, .prize-table { font-size: 14px; }
  .app-brand-lockup .section-kicker, .campaign-tab { font-size: 14px; }
  .event-shortcut .section-kicker, .event-shortcut .button { font-size: 14px; }
  .event-facts dt { font-size: 14px; }
  .footer-inner p { font-size: 14px; }
  .mobile-action-bar .button, .mobile-action-bar .button-outline { font-size: 15px; }
}

@media (max-width: 360px) {
  :root { --poster-header: 59px; }
  .hero-layout { padding-top: 14px; gap: 8px; }
  .header-inner { gap: 8px; }
  .mobile-action-bar .button { gap: 6px; padding-inline: 6px; }
  .mobile-action-bar .button-icon { width: 21px; height: 21px; }
}

@media (max-width: 700px) and (max-height: 650px) {
  /* Never shrink dates or card art to illegibility on short/landscape screens. */
  .hero-layout { height: auto; min-height: 650px; grid-template-rows: auto 310px auto auto auto; }
}

@media (max-width: 700px) and (min-height: 651px) and (max-height: 740px) {
  .hero-layout { padding-top: 12px; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .slab-surface, .prize-slab { transition: none; }
  .prize-slab:hover .slab-surface { transform: none; }
}
