:root {
  --color-blue: #142b4b;
  --color-ink: var(--color-blue);
  --color-ink-deep: var(--color-blue);
  --color-accent: #f1781c;
  --color-paper: #fdfaf6;
  --color-paper-warm: #fff0e3;
  --color-white: #ffffff;
  --color-black: #07121f;
  --color-muted: #75839a;
  --color-glass: rgba(255, 255, 255, 0.09);
  --color-shadow: rgba(4, 15, 31, 0.34);
  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Inter", Arial, sans-serif;
  --font-alt-1: "Sour Gummy", cursive;
  --font-alt-2: "Send Flowers", cursive;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --radius-sm: 0.5rem;
  --radius-pill: 99rem;
  --flyer-radius: var(--radius-sm);
  --line-thin: 1px;
  --line-medium: 2px;
  --page-max: 90rem;
  --header-height: 4rem;
  --transition-fast: 180ms ease;
  --wheel-width: min(88vw, 72rem);
  --wheel-height: min(40vh, 20rem);
  --card-width: clamp(11.25rem, 21vw, 17.25rem);
  --flyer-aspect: 1.96;
  --card-ratio: var(--flyer-aspect);
  --wheel-orbit-x: 40%;
  --wheel-orbit-y: 13%;
  --wheel-card-scale-min: 0.42;
  --wheel-card-brightness-min: 0.32;
  --projection-motion-easing: cubic-bezier(.22,.78,.16,1);
  --projection-backdrop-open-duration: 600ms;
  --projection-backdrop-close-duration: 900ms;
  --flyer-details-transition-duration: 550ms;
  --flyer-details-easing: cubic-bezier(.2,.75,.2,1);
  --flyer-details-transition: var(--flyer-details-transition-duration) var(--flyer-details-easing);
  --flyer-details-stagger: 100ms;
  --flyer-title-transition-duration: 550ms;
  --flyer-title-easing: cubic-bezier(.2,.75,.2,1);
  --flyer-title-transition: var(--flyer-title-transition-duration) var(--flyer-title-easing);
  --full-flyer-pad-x: clamp(2.5rem, 5vw, 6rem);
  --full-flyer-pad-y: clamp(2rem, 5vh, 4rem);
  --thumbnail-title-size: 11cqw;
  --thumbnail-title-line-height: 0.88;
  --full-title-size: clamp(2.25rem, 5cqw, 4.8rem);
  --full-title-line-height: 0.86;
  --full-title-centered-width: 92%;
  --full-title-width: min(82%, 60rem);
  --flyer-badge-size: 3.75rem;
  --flyer-badge-border-width: 0.25rem;
  --flyer-badge-overhang: -50%;
  --flyer-badge-icon-size: 58%;
  --stage-close-offset: -0.75rem;
  --stage-pad: clamp(0.75rem, 3vw, 2.5rem);
  --screen-footer-height: 7rem;
  --cta-text-size: 1.25em;
  --cta-icon-size: 2.5rem;
  --cta-icon-padding: 0.4rem;
  --cta-icon-glyph-size: 1.25em;
  --cta-qr-size: calc(var(--screen-footer-height) - var(--space-4));
  --cta-time-size: 3.2rem;
  --cta-label-size: 0.78rem;
  --qr-arrow-size: var(--cta-qr-size);
  --qr-arrow-fill: var(--color-accent);
  --qr-arrow-border: var(--color-blue);
  --qr-arrow-border-width: 8;
  --qr-arrow-point-duration: 1200ms;
  --qr-arrow-point-distance: 0.4rem;
  --die-size: 3.25rem;
  --die-gap: 15px;
  --die-padding: 0.45rem;
  --die-pip-size: 0.48rem;
  --die-shell-width: 0.1rem;
  --dice-message-top: 75%;
  --dice-win-qr-size: 7rem;
  --dice-offer-fade-duration: 250ms;
  --z-dice-offer: 1000;
  --z-dice-game: 1001;
  --z-stage: 100;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) var(--screen-footer-height);
  color: var(--color-white);
  background:
    radial-gradient(circle at 72% 28%, color-mix(in srgb, var(--color-ink) 64%, transparent), transparent 36%),
    linear-gradient(135deg, var(--color-ink-deep), var(--color-black));
  font-family: var(--font-body);
  overflow: hidden;
}

body.startup-blocked {
  grid-template-rows: minmax(0, 1fr);
}

button, a { color: inherit; font: inherit; }
button { cursor: pointer; }

.font-alt-1 { font-family: var(--font-alt-1); }
.font-alt-2 { font-family: var(--font-alt-2); }

.startup-help {
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: var(--space-6);
  color: var(--color-ink);
}

.startup-help__panel {
  width: min(100%, 38rem);
  display: grid;
  gap: var(--space-3);
  padding: var(--space-6);
  border: var(--line-thin) solid color-mix(in srgb, var(--color-accent) 42%, var(--color-white));
  border-radius: var(--radius-sm);
  background: var(--color-paper);
  box-shadow: 0 1rem 3rem color-mix(in srgb, var(--color-black) 32%, transparent);
}

.startup-help__panel h1 {
  margin: 0;
  color: var(--color-ink-deep);
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3.5rem);
  line-height: 0.95;
}

.startup-help__panel p {
  margin: 0;
  color: var(--color-muted);
  font-size: 1.05rem;
  line-height: 1.45;
}

.startup-help__panel code {
  padding: 0.08em 0.35em;
  border-radius: var(--radius-sm);
  color: var(--color-ink-deep);
  background: var(--color-paper-warm);
}

.app-shell {
  width: min(100%, var(--page-max));
  height: 100%;
  min-height: 0;
  margin: auto;
  padding: 0 var(--space-6);
  position: relative;
  overflow: hidden;
}

dice-roller {
  position: relative;
  background: transparent;
  opacity: 0;
  transition: opacity var(--dice-offer-fade-duration) ease;
  z-index: var(--z-dice-offer);
}

dice-roller[visible],
dice-roller[playing] {
  opacity: 1;
}

dice-roller[playing] {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: var(--z-dice-game);
}

dice-roller[playing]::before {
  content: "";
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--color-black) 82%, transparent);
  backdrop-filter: blur(0.35rem);
}

.dice-game__panel {
  display: grid;
  place-items: center;
  position: relative;
  background: transparent;
  z-index: 1;
}

.dice-roller__button {
  display: flex;
  gap: var(--die-gap);
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: var(--radius-sm);
  appearance: none;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none;
  transform-origin: center;
  transition: transform var(--transition-fast);
}

dice-roller[playing] .dice-roller__button {
  transform: scale(var(--dice-game-scale));
}

.die {
  width: var(--die-size);
  aspect-ratio: 1;
  display: block;
  perspective: calc(var(--die-size) * 5);
  filter: drop-shadow(0 var(--space-2) var(--space-5) var(--color-shadow));
}

.die__cube {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transform-origin: center;
  will-change: transform;
}

.die__face {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  place-items: center;
  padding: var(--die-padding);
  border: 0;
  border-radius: 0;
  background: var(--color-accent);
  backface-visibility: hidden;
}

.die__face::before {
  content: "";
  position: absolute;
  inset: var(--die-shell-width);
  border-radius: 0;
  background: var(--color-paper);
  box-shadow: inset 0 0 0 var(--line-thin) var(--color-white);
}

.die__face--front { transform: translateZ(calc(var(--die-size) / 2)); }
.die__face--back { transform: rotateY(180deg) translateZ(calc(var(--die-size) / 2)); }
.die__face--right { transform: rotateY(90deg) translateZ(calc(var(--die-size) / 2)); }
.die__face--left { transform: rotateY(-90deg) translateZ(calc(var(--die-size) / 2)); }
.die__face--top { transform: rotateX(90deg) translateZ(calc(var(--die-size) / 2)); }
.die__face--bottom { transform: rotateX(-90deg) translateZ(calc(var(--die-size) / 2)); }

.die__pip {
  position: relative;
  z-index: 1;
  width: var(--die-pip-size);
  aspect-ratio: 1;
  border-radius: var(--radius-pill);
  background: var(--color-blue);
}

.die__pip--1 { grid-area: 1 / 1; }
.die__pip--3 { grid-area: 1 / 3; }
.die__pip--4 { grid-area: 2 / 1; }
.die__pip--5 { grid-area: 2 / 2; }
.die__pip--6 { grid-area: 2 / 3; }
.die__pip--7 { grid-area: 3 / 1; }
.die__pip--9 { grid-area: 3 / 3; }

.dice-game__message {
  position: fixed;
  top: var(--dice-message-top);
  left: 50%;
  width: min(92vw, 60rem);
  display: none;
  align-items: center;
  justify-content: center;
  gap: var(--space-5);
  padding: var(--space-5) var(--space-6);
  border: 0;
  border-radius: var(--radius-sm);
  color: var(--color-white);
  background: var(--color-accent);
  box-shadow: 0 var(--space-5) var(--space-6) var(--color-shadow);
  transform: translate(-50%, -50%);
}

dice-roller[result] .dice-game__message {
  display: flex;
  animation: dice-message-in 420ms var(--projection-motion-easing);
}

.dice-game__message-text {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 900;
  line-height: 0.95;
  text-align: left;
  text-transform: uppercase;
}

.dice-game__message-copy {
  display: grid;
  gap: var(--space-3);
}

.dice-game__claim {
  display: none;
  color: var(--color-white);
  font-size: clamp(0.9rem, 1.5vw, 1.25rem);
  font-weight: 700;
  line-height: 1.25;
  text-align: left;
}

dice-roller[result] .dice-game__claim {
  display: block;
}

.dice-game__win-qr {
  flex: 0 0 auto;
  width: var(--dice-win-qr-size);
  aspect-ratio: 1;
  display: none;
  background: var(--color-white);
}

dice-roller[won] .dice-game__win-qr {
  display: block;
}

.dice-game__win-qr svg {
  display: block;
  width: 100%;
  height: 100%;
  border: var(--line-thin) solid var(--color-black);
}

.dice-game__close-icon {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  width: 2rem;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: var(--radius-pill);
  color: var(--color-white);
  background: var(--color-blue);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
}

.dice-game__countdown {
  position: relative;
  flex: 0 0 auto;
  width: 5rem;
  aspect-ratio: 1;
  display: none;
  place-items: center;
}

dice-roller[won] .dice-game__countdown {
  display: grid;
}

.dice-game__countdown svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.dice-game__countdown circle {
  fill: none;
  stroke-width: 4;
}

.dice-game__countdown-track {
  stroke: color-mix(in srgb, var(--color-white) 28%, transparent);
}

.dice-game__countdown-progress {
  stroke: var(--color-white);
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}

.dice-game__countdown-value {
  position: relative;
  color: var(--color-white);
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
}

.dice-game__amount,
.dice-game__partner {
  color: var(--color-white);
}

dice-roller[won] .dice-game__message {
  color: var(--color-blue);
  background: var(--color-accent);
}

@keyframes dice-message-in {
  from {
    opacity: 0;
    transform: translate(-50%, calc(-50% + var(--space-5))) scale(0.92);
  }
}

.home-header {
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.brand__logo {
  display: block;
  width: 2.65rem;
  aspect-ratio: 1;
  object-fit: contain;
}

.brand__content {
  display: grid;
  gap: var(--space-1);
}

.brand__text { font-size: 0.75rem; }

.brand__phone {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.brand__phone[hidden] { display: none; }

.brand__phone-icon {
  width: 1em;
  height: 1em;
}

.home-header__status {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: color-mix(in srgb, var(--color-white) 68%, transparent);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.status-dot {
  width: 0.45rem;
  aspect-ratio: 1;
  border-radius: var(--radius-pill);
  background: var(--color-accent);
  box-shadow: 0 0 0 var(--space-2) color-mix(in srgb, var(--color-accent) 17%, transparent);
  animation: pulse 2s infinite;
}

.hero {
  height: calc(100% - var(--header-height));
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.eyebrow {
  margin: 0 0 var(--space-2);
  color: var(--color-accent);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3rem, 5.2vw, 4.8rem);
  font-weight: 900;
  line-height: 0.79;
  text-transform: uppercase;
  letter-spacing: -0.035em;
}

h1 span { color: var(--color-accent); }

.hero__intro {
  max-width: 29rem;
  margin: var(--space-3) auto 0;
  color: color-mix(in srgb, var(--color-white) 66%, transparent);
  font-size: clamp(0.9rem, 1.3vw, 1.05rem);
  line-height: 1.55;
}

flyer-wheel {
  display: block;
  width: var(--wheel-width);
  height: var(--wheel-height);
  margin: var(--space-2) auto 0;
  flex: 0 0 var(--wheel-height);
}

.wheel {
  width: 100%;
  height: 100%;
  position: relative;
  user-select: none;
  touch-action: none;
  cursor: grab;
}

.wheel:active { cursor: grabbing; }

.wheel__ring {
  width: 100%;
  height: 100%;
  position: absolute;
}

.wheel__card {
  --orbit-x: 0%;
  --orbit-y: 0%;
  --orbit-scale: 1;
  --orbit-brightness: 1;
  position: absolute;
  left: 50%;
  top: 45%;
  width: var(--card-width);
  height: auto;
  min-width: 0;
  min-height: 0;
  aspect-ratio: var(--card-ratio);
  appearance: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  padding: 0;
  border: 0;
  border-radius: var(--flyer-radius);
  background: var(--color-paper);
  box-shadow:
    inset 0 0 0 var(--line-thin) color-mix(in srgb, var(--color-white) 20%, transparent),
    0 1.5rem 3rem var(--color-shadow);
  overflow: visible;
  filter: brightness(var(--orbit-brightness));
  transform:
    translate(-50%, -50%)
    translate(var(--orbit-x), var(--orbit-y))
    scale(var(--orbit-scale));
  transition: filter var(--transition-fast);
  will-change: transform, filter;
  container-type: size;
}

.wheel__card:hover,
.wheel__card:focus-visible { filter: brightness(1.08); }

.wheel__card[current] {
  outline: calc(var(--line-medium) * 2) solid var(--color-accent);
  outline-offset: 0;
  filter: brightness(1.12);
}

flyer-wheel[focusing] .wheel__card { pointer-events: none; }
.wheel__card media-flyer {
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

.wheel__controls {
  position: absolute;
  inset: auto 0 0;
  display: flex;
  justify-content: center;
  gap: var(--space-3);
  z-index: 2;
}

.wheel__control {
  width: 2.75rem;
  aspect-ratio: 1;
  border: var(--line-thin) solid var(--color-glass);
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--color-ink-deep) 75%, transparent);
  backdrop-filter: blur(0.7rem);
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.wheel__control:hover { background: var(--color-accent); transform: scale(1.06); }

.wheel-hint {
  margin: var(--space-1) auto 0;
  color: var(--color-muted);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.11em;
}

cta-banner { display: block; }

.cta {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--space-5);
  color: var(--color-ink);
  background: var(--color-paper);
}

.screen-footer {
  width: 100%;
  height: var(--screen-footer-height);
  display: grid;
  place-items: center;
  padding: var(--space-1) var(--space-1);
  color: var(--color-ink);
  background: var(--color-paper);
  box-shadow: 0 -0.8rem 2.5rem color-mix(in srgb, var(--color-black) 18%, transparent);
  z-index: calc(var(--z-stage) + 1);
}

.screen-footer cta-banner {
  width: min(100%, 74rem);
}

.cta--screen {
  width: 100%;
  height: 100%;
  grid-template-columns: 1fr auto auto;
  padding: 0;
}

.cta__promise { display: flex; gap: var(--space-4); }
.cta__dice-slot {
  width: calc(var(--die-size) + var(--die-size) + var(--die-gap));
  height: var(--die-size);
  display: grid;
  place-items: center;
  background: transparent;
}
.cta__item { display: flex; align-items: center; gap: var(--space-2); font-size: var(--cta-text-size); font-weight: 700; }
.cta__icon { display: grid; place-items: center; width: var(--cta-icon-size); aspect-ratio: 1; padding: var(--cta-icon-padding); border-radius: var(--radius-pill); color: var(--color-accent); background: var(--color-paper-warm); }
.cta__icon svg { width: var(--cta-icon-glyph-size); height: var(--cta-icon-glyph-size); }
.cta__action { height: 100%; display: grid; grid-template-columns: auto auto; align-items: center; gap: var(--space-3); text-decoration: none; }
.cta__copy { display: grid; align-content: center; justify-items: stretch; gap: var(--space-2); }
.cta__time { display: inline-flex; align-items: baseline; justify-content: center; gap: var(--space-1); color: var(--color-accent); font-family: var(--font-display); font-size: var(--cta-time-size); font-weight: 900; line-height: 0.72; white-space: nowrap; }
.cta__time-prefix { color: var(--color-blue); font-size: 1em; }
.cta__time-unit { font-size: 0.42em; }
.cta__qr { display: block; width: var(--cta-qr-size); aspect-ratio: 1; }
.cta__qr svg { display: block; width: 100%; height: 100%; border: solid 1px black; }
.cta__label { padding: var(--space-2) var(--space-3); border-radius: var(--radius-sm); color: var(--color-white); background: var(--color-ink); font-size: var(--cta-label-size); font-weight: 800; line-height: 1; text-align: center; text-transform: uppercase; white-space: nowrap; }

flyer-stage {
  position: fixed;
  inset: 0 0 var(--screen-footer-height);
  display: grid;
  place-items: center;
  padding: var(--stage-pad);
  z-index: var(--z-stage);
  visibility: hidden;
}

flyer-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--color-black) 92%, transparent);
  backdrop-filter: blur(1rem);
  opacity: 0;
  transition: opacity var(--projection-backdrop-open-duration) ease;
}

flyer-stage[open] { visibility: visible; }
flyer-stage[open]:not([closing])::before { opacity: 1; }
flyer-stage[closing]::before {
  opacity: 0;
  transition-duration: var(--projection-backdrop-close-duration);
}

.stage {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  place-items: center;
  position: relative;
  z-index: 1;
  min-width: 0;
  min-height: 0;
}

.stage__viewport {
  height: 100%;
  width: auto;
  max-width: 100%;
  aspect-ratio: var(--flyer-aspect);
  min-width: 0;
  min-height: 0;
  overflow: visible;
  container-type: size;
}

.stage__qr-arrow {
  position: fixed;
  right:
    calc(
      var(--cta-qr-size) +
      var(--space-4) +
      max(var(--space-5), calc((100vw - 64rem) / 2)) -
      15px
    );
  bottom: calc(var(--screen-footer-height) + 30px);
  width: var(--qr-arrow-size);
  aspect-ratio: 1;
  z-index: calc(var(--z-stage) + 3);
  opacity: 0;
  transform: translate(0.6rem, calc(50% - 0.6rem)) rotate(-45deg) scale(0.82);
  transform-origin: center;
  pointer-events: none;
  transition:
    opacity var(--transition-fast),
    transform var(--transition-fast);
}

.stage__qr-arrow svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.stage__qr-arrow path {
  fill: var(--qr-arrow-fill);
  stroke: var(--qr-arrow-border);
  stroke-width: var(--qr-arrow-border-width);
  stroke-linecap: round;
  stroke-linejoin: round;
  paint-order: stroke fill;
}

.stage__qr-arrow:not([visible]) {
  visibility: hidden;
}

.stage__qr-arrow[visible] {
  opacity: 1;
  transform: translate(0, 50%) rotate(-45deg) scale(1);
  animation: qr-arrow-point var(--qr-arrow-point-duration) ease-in-out infinite;
}

@keyframes qr-arrow-point {
  0%, 100% {
    transform: translate(0, 50%) rotate(-45deg) scale(1);
  }
  50% {
    transform:
      translate(
        var(--qr-arrow-point-distance),
        calc(50% + var(--qr-arrow-point-distance))
      )
      rotate(-45deg)
      scale(1.04);
  }
}

.wheel__card[projected] {
  overflow: visible;
  filter: brightness(1);
  pointer-events: auto;
  will-change: transform, border-radius;
}

.wheel__card[projected][settled] { overflow: visible; }

.wheel__card[projected] media-flyer {
  overflow: visible;
  border-radius: inherit;
}

.wheel__card[projected][settled] media-flyer {
  overflow: visible;
}

.stage__close {
  position: absolute;
  display: grid;
  place-items: center;
  border: var(--line-thin) solid var(--color-glass);
  border-radius: var(--radius-pill);
  color: var(--color-white);
  background: var(--color-accent);
  backdrop-filter: blur(0.5rem);
  z-index: 3;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.88);
  transition: none;
}

.stage__close {
  top: var(--stage-close-offset);
  right: var(--stage-close-offset);
  width: 3rem;
  aspect-ratio: 1;
  font-size: 1.35rem;
}

.wheel__card[projected][settled]:not([closing-content]) .stage__close {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
  transition:
    opacity var(--transition-fast),
    transform var(--transition-fast);
}

.stage__close:hover { background: var(--color-ink); }

media-flyer { display: block; width: 100%; height: 100%; }
.wheel__card[projected] media-flyer { cursor: pointer; }

media-flyer[mode="full"] .flyer {
  grid-template-columns: 1fr;
  grid-template-rows: auto 1fr auto;
  padding: var(--full-flyer-pad-y) var(--full-flyer-pad-x);
  border-radius: inherit;
  overflow: visible;
}

.flyer__background-video {
  display: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.22;
  filter: saturate(0.45) contrast(0.75) brightness(1.2);
  border-radius: inherit;
  pointer-events: none;
}

media-flyer[mode="full"] .flyer__background-video {
  display: block;
}

.flyer__badge {
  position: absolute;
  top: 0;
  left: 50%;
  width: var(--flyer-badge-size);
  aspect-ratio: 1;
  transform: translate(-50%, var(--flyer-badge-overhang));
  z-index: 4;
}

.flyer__badge-visual {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  border: var(--flyer-badge-border-width) solid var(--color-blue);
  border-radius: var(--radius-pill);
  background: var(--color-accent);
  transform-origin: center;
  will-change: scale;
}

.flyer__badge-visual::before {
  content: "";
  width: var(--flyer-badge-icon-size);
  aspect-ratio: 1;
  background: var(--color-white);
  -webkit-mask: var(--flyer-badge-icon) center / contain no-repeat;
  mask: var(--flyer-badge-icon) center / contain no-repeat;
}

media-flyer[mode="full"] .flyer__header {
  justify-self: center;
  align-self: start;
  width: var(--full-title-centered-width);
  transform: translateY(calc(50cqh - var(--full-flyer-pad-y) - 50%));
  transition: none;
}

.wheel__card[settled] media-flyer[mode="full"] .flyer__header {
  transition:
    width var(--flyer-title-transition),
    transform var(--flyer-title-transition);
}

media-flyer[mode="full"][details-visible] .flyer__header {
  width: var(--full-title-width);
  transform: translateY(0);
}

media-flyer[mode="full"] .flyer__title {
  font-size: var(--thumbnail-title-size);
  line-height: var(--thumbnail-title-line-height);
  transition: none;
}

.wheel__card[settled] media-flyer[mode="full"] .flyer__title {
  transition:
    font-size var(--flyer-title-transition),
    line-height var(--flyer-title-transition);
}

media-flyer[mode="full"][details-visible] .flyer__title {
  font-size: var(--full-title-size);
  line-height: var(--full-title-line-height);
}

media-flyer[mode="full"] .flyer__kicker {
  max-height: 0;
  margin-top: 0;
  overflow: hidden;
  font-size: clamp(0.9rem, 1.5cqw, 1.35rem);
  opacity: 0;
  transform: translateY(var(--space-4));
  transition:
    max-height var(--flyer-details-transition),
    margin var(--flyer-details-transition),
    opacity var(--flyer-details-transition),
    transform var(--flyer-details-transition);
}

media-flyer[mode="full"][details-visible] .flyer__kicker {
  max-height: 4rem;
  margin-top: var(--space-3);
}

media-flyer[mode="full"] .flyer__body {
  width: 100%;
  min-width: 0;
  display: grid;
  place-items: center;
  padding: 0;
  font-size: clamp(1.5rem, 2.4cqw, 2.25rem);
  opacity: 0;
  transform: translateY(var(--space-4));
  transition:
    opacity var(--flyer-details-transition),
    transform var(--flyer-details-transition);
}

media-flyer[mode="full"] .flyer__list {
  width: max-content;
  max-width: 100%;
  justify-self: center;
  padding-left: 1.25em;
  font-size: inherit;
  line-height: 1.35;
  text-align: left;
}

media-flyer[mode="full"] .flyer__footer {
  width: 100%;
  min-width: 0;
  align-self: end;
  opacity: 0;
  transform: translateY(calc(-25cqh + var(--full-flyer-pad-y) + 50%));
  transition:
    opacity var(--flyer-details-transition),
    transform var(--flyer-details-transition);
}

media-flyer[mode="full"] .flyer__statement {
  margin: 0;
  font-size: clamp(2.5rem, 4.8cqw, 5.2rem);
  line-height: 0.82;
}

media-flyer[mode="full"][details-visible] .flyer__kicker,
media-flyer[mode="full"][details-visible] .flyer__body {
  opacity: 1;
}

media-flyer[mode="full"][details-visible] .flyer__kicker {
  transform: translateY(0);
}

media-flyer[mode="full"][details-visible] .flyer__body {
  transform: translateY(0);
  transition-delay: var(--flyer-details-stagger);
}

media-flyer[mode="full"][details-visible] .flyer__footer {
  opacity: 1;
  transform: translateY(0);
  transition-delay: calc(var(--flyer-details-stagger) * 2);
}

media-flyer[mode="thumbnail"] .flyer {
  display: grid;
  grid-template-rows: 1fr;
  padding: var(--space-3);
}

media-flyer[mode="thumbnail"] .flyer__header {
  display: grid;
  place-items: center;
}

media-flyer[mode="thumbnail"] .flyer__title {
  font-size: var(--thumbnail-title-size);
  line-height: var(--thumbnail-title-line-height);
}

media-flyer[mode="thumbnail"] .flyer__kicker,
media-flyer[mode="thumbnail"] .flyer__body,
media-flyer[mode="thumbnail"] .flyer__footer {
  display: none;
}

.flyer {
  --flyer-pad-x: 10cqw;
  --flyer-pad-top: 5.2cqh;
  --flyer-pad-bottom: 5cqh;
  width: 100%;
  height: 100%;
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto 1fr auto;
  padding: var(--flyer-pad-top) var(--flyer-pad-x) var(--flyer-pad-bottom);
  color: var(--color-ink);
  background: var(--color-paper);
  border-radius: var(--flyer-radius);
  overflow: visible;
}

.flyer__header { grid-row: 1; text-align: center; z-index: 1; }
.flyer__title { margin: 0; font-family: var(--font-display); font-size: clamp(1rem, 6.3cqw, 4.3rem); font-weight: 900; line-height: 0.9; text-transform: uppercase; text-wrap: balance; }
.flyer__title .accent, .flyer__statement .accent { color: var(--color-accent); }
.flyer__kicker { margin: 1.4cqh 0 0; font-size: clamp(0.55rem, 2.65cqw, 1.25rem); font-style: italic; font-weight: 600; }
.flyer__body { grid-row: 2; display: grid; place-items: center; min-width: 0; padding: 1.5cqh 0; font-size: clamp(0.65rem, 2.9cqw, 1.4rem); z-index: 1; }
.flyer__list { width: max-content; max-width: 100%; justify-self: center; margin: 0; padding-left: 1.25em; font-size: inherit; line-height: 1.18; text-align: left; }
.flyer__footer { grid-row: 3; min-width: 0; z-index: 1; }
.flyer__solution-label { text-transform: none; }
.flyer__statement { align-self: end; margin: 0; font-family: var(--font-display); font-size: clamp(1rem, 7.7cqw, 5rem); font-weight: 900; line-height: 0.78; text-align: center; text-transform: uppercase; text-wrap: balance; z-index: 1; }
.flyer__statement-small { display: block; color: var(--color-ink); font-size: 0.39em; line-height: 0.9; }

@keyframes pulse { 50% { opacity: 0.45; } }

@media (max-width: 62rem) {
  :root { --wheel-width: 100%; --wheel-height: 20rem; --card-width: 13.5rem; --wheel-orbit-x: 38%; }
  .app-shell { padding-inline: var(--space-4); }
  .hero { padding-top: var(--space-3); text-align: center; }
  .eyebrow, .hero__intro, .wheel-hint { margin-inline: auto; }
  flyer-wheel { margin-top: var(--space-2); }
  .cta--screen { grid-template-columns: 1fr auto auto; }
}

@media (max-width: 38rem) {
  :root { --header-height: 4rem; --screen-footer-height: 6rem; --card-width: 12rem; --wheel-orbit-x: 36%; --cta-qr-size: 3.5rem; }
  .home-header__status { display: none; }
  h1 { font-size: clamp(3.15rem, 16vw, 5rem); }
  .hero { min-height: auto; }
  flyer-wheel { height: 19rem; }
  .screen-footer { padding-inline: var(--space-3); }
  .cta--screen { grid-template-columns: 1fr auto auto; padding: var(--space-2); }
  .cta--screen .cta__promise { gap: var(--space-2); }
  .cta--screen .cta__item { font-size: 0; }
  .cta--screen .cta__action { justify-content: center; }
  .cta--screen .cta__label { display: none; }
  flyer-stage { --stage-pad: var(--space-2); }
  .stage__close { top: var(--space-2); right: var(--space-2); }
}

@media (min-aspect-ratio: 8 / 5) and (max-height: 850px) {
  :root {
    --wheel-height: 19rem;
    --card-width: 15.75rem;
  }

  .hero__intro { margin-top: var(--space-2); }
  flyer-wheel { margin-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

