*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  /* 084 / 050-1: permanent page canvas (splash + main). Not launch-gated —
     exitLaunch() must not leave Safari safe-area gutters on UA white. */
  background: var(--canvas-sky);
  /* 105: kill WebKit/Blink rectangular tap flash (MDN -webkit-tap-highlight-color);
     inherited — one root declaration covers all elements. Trade-off: no system tap cue. */
  -webkit-tap-highlight-color: transparent;
  /* overflow-x не на html/body: иначе Safari/Chromium схлопывают
     scrollport и обрезают низ длинного hero (004). */
}

:root {
  --object-card-width: 0px;
  --hero-area-width: 100vw;
  --object-card-open-duration: 1000ms;
  --object-card-swap-duration: 480ms;
  /* Open/close panel+preview shells. Swap stays a separate duration token. */
  --object-card-easing: cubic-bezier(0.22, 1, 0.36, 1);
  /* 065: softer ease-out for object→object content swap only. */
  --object-card-swap-easing: cubic-bezier(0.33, 1, 0.68, 1);
  /*
   * 115/115-1/160/160-2: top layout guide from ?safeAreaTop=.
   * Query = pt from МП; web interprets → --mm-safe-area-top
   * (1:1 numeric pt→CSS px on guide). Missing/invalid → 0.
   */
  --mm-safe-area-top: 0px;
  --hero-zoom-scale: 1;
  --hero-zoom-ox: 50%;
  --hero-zoom-oy: 50%;
  --hero-zoom-tx: 0px;
  --hero-zoom-ty: 0px;
  --hero-zoom-duration: 320ms;
  --font-monochrome-sans: "Monochrome Sans", Arial, Helvetica, sans-serif;
  --font-onest: "Onest", Arial, Helvetica, sans-serif;
  /* 185: page canvas #fff (token name kept; was H2 sky #6b91bb via 084 / 050-1). */
  --canvas-sky: #fff;
}

@font-face {
  font-family: "Monochrome Sans";
  src: url("https://storage.yandexcloud.net/monochrome.ru/museum/assets/fonts/MonochromeSans-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Onest";
  src: url("https://storage.yandexcloud.net/monochrome.ru/museum/assets/fonts/Onest-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

.frame {
  display: flex;
  justify-content: center;
  width: 100%;
  padding-inline-end: 0;
  overflow-x: hidden;
  /* 039: padding reserve is instant — animating it layout-thrashes H2 tiles.
     Panel + launch-chrome keep transform transitions for the open motion. */
}

/*
 * 045: viewport-wide clip around the intentionally wider .hero. The Y
 * scrollport (.frame) must not inherit a horizontal scroll range from the map
 * — on real iOS Safari that range flashes white / shifts X on zone select even
 * when overflow-x is hidden and JS clamps scrollLeft.
 *
 * Clip X only: `overflow: hidden` on a flex item zeros the automatic
 * min-height and would collapse mapScrollMax to 0 inside the 100dvh frame.
 */
.hero-clip {
  /* 045 clip shell; main logo CB is `.hero` (083-4), not this clip. */
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex: 0 0 auto;
  width: 100%;
  max-width: 100%;
  min-height: min-content;
  overflow-x: clip;
  overflow-y: visible;
  line-height: 0;
}

@supports not (overflow-x: clip) {
  .hero-clip {
    overflow-x: hidden;
  }
}

.frame[data-card-state="open"] {
  padding-inline-end: 0;
}

/*
 * 075: desktop @1600 — clip = W (closed) / W−panel (open); map fits clip
 * width (full CSS frame 1600 ↔ source 3200), no side crop of the frame.
 * Width transition only while [data-layout-motion=panel]; resize stays sync.
 */
@media (min-width: 721px) {
  :root {
    --layout-ref-w: 1600;
    --layout-scale: calc(100vw / var(--layout-ref-w) * 1px);
    --object-card-width: 0px;
    --hero-area-width: 100vw;
  }

  .frame[data-card-state="open"] {
    --object-card-width: calc(428 * 100vw / var(--layout-ref-w));
    --hero-area-width: calc(100vw - 428 * 100vw / var(--layout-ref-w));
  }

  /*
   * Desktop panel open: hero-clip width token (023/052). Main logo lives
   * inside .hero (083-4; was .hero-clip in 083-2), so H-center follows the
   * hero column width — no chrome translateX. Body mirror kept for any
   * non-frame consumers of the token.
   */
  body:has(.frame[data-card-state="open"]) {
    --object-card-width: calc(428 * 100vw / var(--layout-ref-w));
  }

  .frame {
    justify-content: flex-start;
  }

  .frame[data-card-state="open"] {
    padding-inline-end: 0;
  }

  .hero-clip {
    width: var(--hero-area-width);
    transition: none;
  }

  /* Main map: fit full CSS frame into clip (open/close rescales with area). */
  html:not(.is-launch) .hero {
    width: var(--hero-area-width);
  }

  .frame[data-layout-motion="panel"] .hero-clip,
  .frame[data-layout-motion="panel"] .hero {
    transition: width var(--object-card-open-duration) var(--object-card-easing);
  }

  @media (prefers-reduced-motion: reduce) {
    .frame[data-layout-motion="panel"] .hero-clip,
    .frame[data-layout-motion="panel"] .hero {
      transition: none;
    }
  }
}

/* 195-1: mobile endgame keeps only its entry chrome; raffle content is
 * handed to the existing event sheet instead of rendering a second overlay. */
@media (max-width: 720px) {
  .endgame {
    position: fixed;
    inset: 0;
    z-index: 4;
    pointer-events: none;
  }

  .endgame[hidden] {
    display: none;
  }

  /* 196-16/210: V-guideline |-24-[back]-… from native guide (not env --safe-top). */
  .endgame__back {
    position: absolute;
    top: calc(24 * 100vw / 440 + var(--mm-safe-area-top, 0px));
    left: 50%;
    z-index: 6;
    display: inline-flex;
    width: calc(36 * 100vw / 440);
    height: calc(36 * 100vw / 440);
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: calc(12 * 100vw / 440);
    opacity: 0;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.24);
    -webkit-backdrop-filter: blur(14.667px);
    backdrop-filter: blur(14.667px);
    pointer-events: auto;
  }

  /* 196-12: Figma 6966:38196 @440 — 321×44 pill; 196-16 bottom inset 24. */
  .endgame__participate {
    position: absolute;
    bottom: calc(24 * 100vw / 440 + var(--safe-bottom, 0px));
    left: 50%;
    z-index: 6;
    box-sizing: border-box;
    display: inline-flex;
    width: calc(321 * 100vw / 440);
    height: calc(44 * 100vw / 440);
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: calc(22 * 100vw / 440);
    padding: 0;
    opacity: 0;
    transform: translateX(-50%);
    background: #000;
    color: #fff;
    font-family: var(--font-monochrome-sans);
    font-weight: 500;
    font-size: 15.4px;
    line-height: 15.4px;
    text-align: center;
    white-space: nowrap;
    cursor: pointer;
    pointer-events: auto;
  }

  /* 192/196-12: frost participated — keep mobile 321 width (not desktop 367). */
  .endgame__participate.is-participated {
    border-color: transparent;
    background: rgba(0, 0, 0, 0.24);
    -webkit-backdrop-filter: blur(14.667px);
    backdrop-filter: blur(14.667px);
    cursor: default;
  }

  .endgame__participate-check {
    display: block;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    pointer-events: none;
  }

  .endgame__participate-label {
    display: block;
    pointer-events: none;
  }

  .endgame-raffle {
    display: none;
  }

  /* 196-4: parity desktop hide — non-seam skybox stays offscreen until pan mount. */
  .endgame > .endgame__skybox,
  .endgame > .endgame__backdrop {
    position: absolute;
    inset: 0;
  }

  .endgame > .endgame__skybox:not([data-endgame-skybox-seam]) {
    transform: translateY(-100%);
    overflow: hidden;
  }

  /* 196-5: decode warm-up must not paint strips before seam mount. */
  .endgame > .endgame__skybox:not([data-endgame-skybox-seam]) img {
    visibility: hidden;
  }

  /* 198-5: exit fade parks skybox as viewport cover (not offscreen warm hide). */
  .endgame > .endgame__skybox[data-endgame-exit-cover] {
    transform: none;
    overflow: hidden;
  }

  .endgame > .endgame__skybox[data-endgame-exit-cover] img {
    visibility: visible;
  }

  /* 196-5: sustain preview/arrows hidden after scroll-time fade (openChest). */
  html[data-endgame-active] .mobile-preview,
  html[data-endgame-active] .hero-center-arrows {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  /* 196-5: center-arrows fade sync with preview exit (140ms). */
  html[data-endgame-arrows-fade] .hero-center-arrows {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      opacity 140ms ease-in,
      visibility 0s linear 140ms;
  }

  /* 196-5: debug gate — final endgame chrome off until later phases ship. */
  html[data-endgame-mobile-skybox-debug] .endgame__back,
  html[data-endgame-mobile-skybox-debug] .endgame__participate,
  html[data-endgame-mobile-skybox-debug] .endgame__logo {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  /*
   * 196-10 / 196-11 / 196-13: overlay letter/sphere — only when letter parent
   * is `.endgame`. Do NOT target `.hero__stage > .endgame__letter` (phase-1
   * pin): absolute envelope centering there collapses stage paint.
   * 196-13: sphere root fills letter so envelope is not clipped to the
   * 109@440 hemisphere band; that clip wraps `.sphere` tiles only.
   */
  .endgame > .endgame__letter {
    position: absolute;
    z-index: 4;
    isolation: isolate;
    display: block;
    height: auto;
    aspect-ratio: 2455 / 2721;
    container-type: inline-size;
    overflow: hidden;
    pointer-events: none;
  }

  /* 198-6: author display:block beats UA [hidden]; mirror chest[hidden]. */
  .endgame > .endgame__letter[hidden] {
    display: none;
  }

  .endgame > .endgame__letter.endgame__letter--interactive {
    overflow: visible;
    pointer-events: auto;
  }

  .endgame > .endgame__letter .endgame-letter-sphere {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    overflow: visible;
    touch-action: none;
    user-select: none;
    pointer-events: none;
  }

  .endgame > .endgame__letter .endgame-letter-sphere--interactive {
    pointer-events: auto;
    cursor: grab;
  }

  .endgame > .endgame__letter .sphere-container {
    position: relative;
    z-index: 2;
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    perspective: 120vw;
    perspective-origin: center;
  }

  /* 196-13: hemisphere wraps tiles only (envelope is a sibling — not clipped).
   * 211-1: letter-centered sphere + overflow visible (no 109-band clip).
   * 211-3: product reversal — hemisphere behind the letter (z < envelope);
   * stacking from 211 (z 201 > envelope 200) cancelled. */
  .endgame > .endgame__letter .sphere-hemisphere {
    position: absolute;
    inset: 0;
    z-index: 199;
    display: grid;
    place-items: center;
    overflow: visible;
    pointer-events: none;
  }

  .endgame > .endgame__letter .sphere {
    position: relative;
    width: 0;
    height: 0;
    transform-style: preserve-3d;
    opacity: 0;
    transition: opacity 1s ease;
  }

  .endgame > .endgame__letter.endgame__letter--interactive .sphere {
    opacity: 1;
  }

  .endgame > .endgame__letter .envelope {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 200;
    width: 100%;
    height: auto;
    max-width: none;
    object-fit: contain;
    transform: translate(-50%, -50%);
    transform-origin: center;
    pointer-events: none;
    user-select: none;
  }

  .endgame > .endgame__letter .media {
    position: absolute;
    top: 50%;
    left: 50%;
    width: clamp(48px, 28cqw, 176px);
    height: clamp(48px, 28cqw, 176px);
    max-width: none;
    margin: calc(clamp(48px, 28cqw, 176px) / -2);
    border-radius: clamp(4px, 0.4vw, 8px);
    overflow: hidden;
    backface-visibility: hidden;
    transform-style: preserve-3d;
    pointer-events: none;
  }

  .endgame > .endgame__letter:not(.endgame__letter--interactive) .media {
    visibility: hidden;
  }

  .endgame > .endgame__letter .media-layer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    backface-visibility: hidden;
  }

  .endgame__logo {
    position: absolute;
    z-index: 5;
    top: -56px;
    left: 50%;
    transform: translateX(-50%);
    /* 196-12: Figma 6963:37114 width 279@440 (was 297). */
    width: calc(279 * 100vw / 440);
    height: auto;
    line-height: 0;
  }

  .endgame__logo-img {
    display: block;
    width: 100%;
    height: auto;
    max-width: none;
    pointer-events: none;
  }
}

/*
 * 051: desktop map scrollport = document. Classic/non-overlay scrollbar
 * shrinks flow width while fixed .object-card stays at viewport edge →
 * white seam at hero↔panel during scroll. Stable gutter + hidden track
 * prevent layout jump; wheel/trackpad scroll unchanged.
 */
@media (min-width: 721px) {
  html:not(.is-launch) {
    scrollbar-gutter: stable;
    scrollbar-width: none;
  }

  html:not(.is-launch)::-webkit-scrollbar {
    display: none;
  }
}

.object-card {
  position: fixed;
  top: 0;
  bottom: 0;
  right: 0;
  z-index: 3;
  width: var(--object-card-width);
  height: 100vh;
  height: 100dvh;
  margin: 0;
  padding: 0;
  transform: translateX(100%);
  background: #fff;
  color: #000;
  font-family: var(--font-onest);
  line-height: normal;
  transition: transform var(--object-card-open-duration) var(--object-card-easing);
  will-change: transform;
}

/*
 * 086 / 086-1: after base width:var(--object-card-width) so cascade wins.
 * Closed token stays 0 for hero/chrome; panel itself keeps open width for
 * translateX slide (else mid-close width collapses to 0).
 */
@media (min-width: 721px) {
  .object-card {
    width: calc(428 * 100vw / var(--layout-ref-w));
  }
}

.object-card[hidden] {
  display: none;
}

.object-card[data-motion-state="opening"],
.object-card[data-motion-state="open"] {
  transform: translateX(0);
}

/*
 * 100: hold async card paint off while closed pose is forced for one painted
 * frame (openPanel paint-hold). Opening clears data-content-paint.
 */
.object-card[data-content-paint="deferred"] .object-card__content {
  visibility: hidden;
}

.object-card__content {
  position: relative;
  width: 100%;
  height: 100%;
  min-width: 0;
  overflow-x: hidden;
  overflow-y: hidden;
}

.object-card__article {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 24px 30px 120px;
  -ms-overflow-style: none;
  scrollbar-width: none;
  overscroll-behavior: contain;
  /* 057/065: vertical opacity+translateY swap (was translateX page slide in 016). */
  transform: translateY(0);
  opacity: 1;
  transition:
    transform var(--object-card-swap-duration) var(--object-card-swap-easing),
    opacity var(--object-card-swap-duration) var(--object-card-swap-easing);
  background: #fff;
}

.object-card__article[data-card-page-state="entering"] {
  z-index: 1;
  transform: translateY(calc(var(--swap-dir, 1) * -52px));
  opacity: 0;
}

.object-card__article[data-card-page-state="incoming"] {
  z-index: 1;
  transform: translateY(0);
  opacity: 1;
}

.object-card__article[data-card-page-state="outgoing"] {
  transform: translateY(calc(var(--swap-dir, 1) * 52px));
  opacity: 0;
}

.object-card__article::-webkit-scrollbar {
  display: none;
}

.object-card__date {
  margin: 0 0 16px;
  color: #d3184b;
  font-family: var(--font-monochrome-sans);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
}

.object-card__title {
  margin: 0 0 32px;
  font-family: var(--font-monochrome-sans);
  font-size: 23px;
  font-weight: 500;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  white-space: pre-line;
}

.object-card__media {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 0 32px;
  border-radius: 12px;
  user-select: none;
  -webkit-user-drag: none;
}

.object-card__video {
  object-fit: cover;
  background: #eee;
}

.object-card__hero-media {
  position: relative;
}

.object-card__hero-media > .hero-video-mute-toggle {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.24);
  -webkit-backdrop-filter: blur(14.667px);
  backdrop-filter: blur(14.667px);
  cursor: pointer;
}

.object-card__hero-media > .hero-video-mute-toggle > .hero-video-mute-toggle__icon {
  display: block;
  width: 24px;
  height: 24px;
  pointer-events: none;
}

/* 159: desktop sheet mute — hide while pointer on map; show on sheet hover. */
@media (min-width: 721px) {
  .object-card__hero-media > .hero-video-mute-toggle {
    opacity: 0;
    pointer-events: none;
    transition: opacity 160ms ease;
  }

  .object-card:hover .object-card__hero-media > .hero-video-mute-toggle,
  .object-card__hero-media > .hero-video-mute-toggle:focus-visible {
    opacity: 1;
    pointer-events: auto;
  }
}

.object-card__description {
  margin: 0 0 48px;
  font-family: var(--font-onest);
  font-size: 16px;
  font-weight: 500;
  line-height: 19px;
  letter-spacing: 0.16px;
}

.object-card__description:last-child {
  margin-bottom: 0;
}

/* 095: content links = body #000 + underline (not UA blue / visited purple). */
.object-card a,
.object-card a:link,
.object-card a:visited,
.object-card a:hover,
.object-card a:active,
.mobile-sheet a,
.mobile-sheet a:link,
.mobile-sheet a:visited,
.mobile-sheet a:hover,
.mobile-sheet a:active,
.mobile-preview a,
.mobile-preview a:link,
.mobile-preview a:visited,
.mobile-preview a:hover,
.mobile-preview a:active {
  color: #000;
  text-decoration: underline;
}

/* 082: Lottie sheet loader (splash gesture, black via brightness(0)). */
.object-card__loader {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  background: #fff;
  pointer-events: none;
  opacity: 1;
  transition: opacity 240ms ease;
}

.object-card__loader[data-card-page-state="entering"],
.object-card__loader[data-card-page-state="incoming"],
.object-card__loader[data-card-page-state="outgoing"] {
  transition:
    transform var(--object-card-swap-duration) var(--object-card-swap-easing),
    opacity var(--object-card-swap-duration) var(--object-card-swap-easing);
}

.object-card__loader[data-card-page-state="entering"] {
  z-index: 1;
  transform: translateY(calc(var(--swap-dir, 1) * -52px));
  opacity: 0;
}

.object-card__loader[data-card-page-state="incoming"] {
  z-index: 1;
  transform: translateY(0);
  opacity: 1;
}

.object-card__loader[data-card-page-state="outgoing"] {
  transform: translateY(calc(var(--swap-dir, 1) * 52px));
  opacity: 0;
}

.object-card__loader.is-fading {
  opacity: 0;
  transition: opacity 240ms ease;
  z-index: 2;
}

.object-card__loader-mark {
  box-sizing: border-box;
  width: 56px;
  height: 56px;
  overflow: hidden;
  /* loader_white.json fills are pure white → black on sheet. */
  filter: brightness(0);
}

.object-card__loader-mark > svg {
  display: block;
  width: 100%;
  height: 100%;
}

@media (prefers-reduced-motion: reduce) {
  .object-card__loader {
    transition: none;
  }
}

/*
 * 052-2: panel content tokens after base .object-card* so cascade wins.
 * All layout/type × W/1600 → wrap-invariant on W-resize.
 */
@media (min-width: 721px) {
  .object-card__article {
    padding: calc(28 * 100vw / var(--layout-ref-w))
      calc(30 * 100vw / var(--layout-ref-w))
      calc(30 * 100vw / var(--layout-ref-w));
  }

  .object-card__article[data-card-page-state="entering"] {
    transform: translateY(calc(var(--swap-dir, 1) * -52 * 100vw / var(--layout-ref-w)));
  }

  .object-card__article[data-card-page-state="outgoing"] {
    transform: translateY(calc(var(--swap-dir, 1) * 52 * 100vw / var(--layout-ref-w)));
  }

  .object-card__loader[data-card-page-state="entering"] {
    transform: translateY(calc(var(--swap-dir, 1) * -52 * 100vw / var(--layout-ref-w)));
  }

  .object-card__loader[data-card-page-state="outgoing"] {
    transform: translateY(calc(var(--swap-dir, 1) * 52 * 100vw / var(--layout-ref-w)));
  }

  .object-card__date {
    margin: 0 0 calc(9 * 100vw / var(--layout-ref-w));
    font-size: calc(14 * 100vw / var(--layout-ref-w));
  }

  .object-card__title {
    margin: 0 0 calc(24 * 100vw / var(--layout-ref-w));
    font-size: calc(22 * 100vw / var(--layout-ref-w));
  }

  /* 052-2 tokens for all media; 052-1 fixed frame only on primary cover.
   * 053-1: gap contract text↔media | media↔media = 28@ref (margin-bottom). */
  .object-card__media {
    margin: 0 0 calc(28 * 100vw / var(--layout-ref-w));
    border-radius: calc(12 * 100vw / var(--layout-ref-w));
  }

  /* Primary = title + next media (img|video) or mute wrapper (094). */
  .object-card__title + .object-card__media,
  .object-card__title + .object-card__hero-media {
    width: calc(368 * 100vw / var(--layout-ref-w));
    height: calc(528 * 100vw / var(--layout-ref-w));
    object-fit: cover;
  }

  .object-card__title + .object-card__hero-media {
    overflow: hidden;
    border-radius: calc(12 * 100vw / var(--layout-ref-w));
    margin: 0 0 calc(28 * 100vw / var(--layout-ref-w));
  }

  .object-card__title + .object-card__hero-media > .object-card__media {
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: cover;
  }

  /*
   * 178: chest locked sheet — V:|-24-[date]-16-[title]-32-[video]-32-[text]-32-[cta]-30-|
   * H inset 30. Cover height fills remaining visible panel (crop); not fixed 368×528.
   */
  .object-card__article[data-object-id="28"] {
    display: flex;
    flex-direction: column;
    padding: calc(24 * 100vw / var(--layout-ref-w))
      calc(30 * 100vw / var(--layout-ref-w))
      calc(30 * 100vw / var(--layout-ref-w));
    overflow-y: hidden;
  }

  .object-card__article[data-object-id="28"] .object-card__date {
    flex: 0 0 auto;
    margin: 0 0 calc(16 * 100vw / var(--layout-ref-w));
  }

  .object-card__article[data-object-id="28"] .object-card__title {
    flex: 0 0 auto;
    margin: 0 0 calc(32 * 100vw / var(--layout-ref-w));
  }

  .object-card__article[data-object-id="28"] .object-card__title + .object-card__media,
  .object-card__article[data-object-id="28"] .object-card__title + .object-card__hero-media,
  .object-card__article[data-object-id="28"] .object-card__cover--chest {
    flex: 1 1 auto;
    align-self: stretch;
    width: calc(368 * 100vw / var(--layout-ref-w));
    height: auto;
    min-height: 0;
    margin: 0 0 calc(32 * 100vw / var(--layout-ref-w));
    overflow: hidden;
    border-radius: calc(12 * 100vw / var(--layout-ref-w));
    object-fit: cover;
  }

  .object-card__article[data-object-id="28"] .object-card__cover--chest > .object-card__media {
    width: 100%;
    height: 100%;
    margin: 0;
    border-radius: 0;
    object-fit: cover;
  }

  .object-card__article[data-object-id="28"] .object-card__description {
    flex: 0 0 auto;
    margin: 0 0 calc(32 * 100vw / var(--layout-ref-w));
    font-size: calc(16 * 100vw / var(--layout-ref-w));
    font-weight: 500;
    line-height: calc(19 * 100vw / var(--layout-ref-w));
    letter-spacing: calc(0.16 * 100vw / var(--layout-ref-w));
    text-align: center;
    white-space: pre-line;
  }

  .object-card__article[data-object-id="28"] .object-card__cta {
    flex: 0 0 auto;
    box-sizing: border-box;
    width: 100%;
    height: calc(44 * 100vw / var(--layout-ref-w));
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: calc(22 * 100vw / var(--layout-ref-w));
    font-family: var(--font-monochrome-sans);
    font-size: calc(15.4 * 100vw / var(--layout-ref-w));
    font-weight: 500;
    line-height: calc(15.4 * 100vw / var(--layout-ref-w));
    text-align: center;
    text-transform: uppercase;
  }

  .object-card__article[data-object-id="28"] .object-card__cta--locked {
    background: #ececec;
    color: #9b9b9b;
    cursor: default;
  }

  /* 151: unlocked desktop CTA — black pill, white text (Figma 5710:21708). */
  .object-card__article[data-object-id="28"] .object-card__cta--unlocked {
    background: #000;
    color: #fff;
    cursor: pointer;
  }

  .object-card__description {
    margin: 0 0 calc(28 * 100vw / var(--layout-ref-w));
    font-size: calc(15 * 100vw / var(--layout-ref-w));
    font-weight: 400;
    line-height: calc(19 * 100vw / var(--layout-ref-w));
    letter-spacing: calc(0.16 * 100vw / var(--layout-ref-w));
  }
}

.hero {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0;
  line-height: 0;
  flex: 0 0 auto;
}

/* 017/063: map zoom (+ temporary inspect pan) on stage — `.hero` layout box unchanged */
.hero__stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
  line-height: 0;
  transform: translate(var(--hero-zoom-tx), var(--hero-zoom-ty))
    scale(var(--hero-zoom-scale));
  transform-origin: var(--hero-zoom-ox) var(--hero-zoom-oy);
  transition: transform var(--hero-zoom-duration) ease-out;
}

/*
 * 168-2: Chest_open in map/stage % space (Scene_12 @ stitchY 35105).
 * Inherits desktop --hero-area-width fit and mobile 620 center-crop.
 */
.hero__stage > .endgame__chest {
  position: absolute;
  z-index: 2;
  top: calc((35105 + 638) / 40315 * 100%);
  left: calc(1429 / 3200 * 100%);
  width: calc(332 / 3200 * 100%);
  height: auto;
  pointer-events: none;
}

.hero__stage > .endgame__chest[hidden] {
  display: none;
}

.hero__stage > .endgame__letter[hidden] {
  display: none;
}

/*
 * 174-1: letter on map stage during shutter (same % space as chest);
 * reparented back to `.endgame` before letter-fly.
 * 196-15: hemisphere tiles must not take flow height here — they push the
 * start envelope below overflow:hidden so the fly origin asset disappears.
 */
.hero__stage > .endgame__letter {
  position: absolute;
  z-index: 3;
  height: auto;
  aspect-ratio: 2455 / 2721;
  overflow: hidden;
  pointer-events: none;
}

.hero__stage > .endgame__letter .sphere-hemisphere {
  display: none;
}

/*
 * 196-3: JS reparents the skybox into map space at every viewport width.
 * Keep this limited to the stage variant: desktop's fixed endgame chrome
 * remains owned by its desktop media query.
 */
.hero__stage:has(> .endgame__skybox[data-endgame-skybox-seam]) {
  z-index: 3;
}

.hero__stage > .endgame__skybox[data-endgame-skybox-seam] {
  position: absolute;
  inset: auto;
  left: 0;
  width: 100%;
  height: auto;
  transform: none;
  z-index: 3;
  overflow: hidden;
  pointer-events: none;
}

.hero__stage > .endgame__skybox[data-endgame-skybox-seam] img {
  display: block;
  width: 100%;
  height: auto;
}

/* Keep the source-tile bleed overlap when the seamed stack is mobile-mounted. */
.hero__stage > .endgame__skybox[data-endgame-skybox-seam] img:has(+ img) {
  margin-bottom: calc(-100% / 3200);
}

.hero__stage > .endgame__letter .envelope {
  display: block;
  position: static;
  top: auto;
  left: auto;
  width: 100%;
  height: auto;
  max-width: none;
  transform: none;
  object-fit: contain;
}

.hero__hits {
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* 130/137: keys after hits in DOM; same z=1 → paint above zones; under chrome (044) */
.hero__keys {
  position: absolute;
  inset: 0;
  z-index: 1;
  margin: 0;
  padding: 0;
  pointer-events: none;
}

.hero__keys-layer {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  pointer-events: none;
}

.hero__key {
  position: absolute;
  max-width: none;
  margin: 0;
  padding: 0;
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
  object-fit: fill;
  transform-origin: center center;
  transition: none;
}

.hero__key--hitbox {
  z-index: 0;
  pointer-events: auto;
  cursor: pointer;
  opacity: 1;
}

.hero__key--hitbox[data-collected="1"] {
  opacity: 0;
  pointer-events: none;
  cursor: default;
}

.hero__key--discovered {
  z-index: 1;
  opacity: 0;
  visibility: hidden;
}

.hero__key--discovered[data-collected="1"] {
  opacity: 1;
  visibility: visible;
}

.hero__hit {
  position: absolute;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.hero__selection {
  position: absolute;
  inset: 0;
  z-index: 2;
  margin: 0;
  padding: 0;
  pointer-events: none;
}

.hero__selection[hidden] {
  display: none;
}

.hero__selection-pair {
  position: absolute;
  inset: 0;
  /* Single-slot path (014/018): visible when unhidden. Dual-pair fade (011)
     can override via inline opacity when restored. */
  opacity: 1;
}

.hero__selection-pair[hidden] {
  display: none;
}

.hero__selection-layer {
  position: absolute;
  max-width: none;
  margin: 0;
  padding: 0;
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
}

.hero__selection-layer--vector {
  z-index: 0;
  transform-origin: center center;
}

.hero__selection-layer--pointer {
  z-index: 1;
}

/* 103-1: shared period; Vector opacity + Pointer bob — infinite alternate (no end pause) */
.hero__selection-pair--motion .hero__selection-layer--vector {
  animation: selection-vector-pulse 0.9s ease-in-out infinite alternate;
}

.hero__selection-pair--motion .hero__selection-layer--pointer {
  animation: selection-pointer-bob 0.9s ease-in-out infinite alternate;
}

@keyframes selection-vector-pulse {
  from {
    opacity: 0.7;
  }
  to {
    opacity: 1;
  }
}

/* zones.json pointer = bottom (from); bob only up to -6px; reverse returns without hang */
@keyframes selection-pointer-bob {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-6px);
  }
}

/*
 * 158 / 207: map footer — absolute bottom of .hero__stage; scrolls with map.
 * Desktop: Scene_13 7641:9129 — © 7641:9131 (0,2976,700×224), H&H 7641:9133
 * (2500,2976,700×224) @3200; paint = *-desktop.webp. HTML/SVG opacity 0;
 * H&H hit = <a> + SVG rect (158-2).
 */
.hero__footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  box-sizing: border-box;
  margin: 0;
  height: calc(224 / 3200 * var(--hero-area-width));
  padding: 0;
  pointer-events: none;
  line-height: normal;
  color: #fff;
  font-family: var(--font-onest);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.12px;
}

.hero__footer-copy {
  margin: 0;
  padding: 0;
  line-height: 19px;
  white-space: nowrap;
  opacity: 0;
}

.hero__footer-copy-art,
.hero__footer-badge-art {
  display: none;
}

.hero__footer-copy-art--desktop,
.hero__footer-badge-art--desktop {
  display: block;
  position: absolute;
  bottom: 0;
  height: auto;
  margin: 0;
  padding: 0;
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
}

.hero__footer-copy-art--desktop {
  left: 0;
  width: calc(700 / 3200 * 100%);
  aspect-ratio: 700 / 224;
}

.hero__footer-badge-art--desktop {
  left: calc(2500 / 3200 * 100%);
  width: calc(700 / 3200 * 100%);
  aspect-ratio: 700 / 224;
}

.hero__footer-badge-link {
  display: block;
  position: absolute;
  left: calc(2500 / 3200 * 100%);
  bottom: 0;
  width: calc(700 / 3200 * 100%);
  height: calc(224 / 3200 * var(--hero-area-width));
  line-height: 0;
  /* Footer is pointer-events: none; re-enable the external H&H link. */
  pointer-events: auto;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}

.hero__footer-badge {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: visible;
  opacity: 0;
  -webkit-user-drag: none;
  user-select: none;
}

@media (max-width: 720px) {
  /*
   * 189-2: Scene_13_mobile 7001:39859 — absolute component boxes @3200,
   * scaled to hero width (--hero-mobile-layout-at-440 = 620px). Art y+h
   * flush with scene bottom → bottom:0. Desktop arts hidden below.
   */
  .hero__footer {
    height: calc(405 / 3200 * var(--hero-mobile-layout-at-440));
    padding: 0;
  }

  .hero__footer-copy-art--desktop,
  .hero__footer-badge-art--desktop {
    display: none;
  }

  .hero__footer-copy,
  .hero__footer-badge {
    opacity: 0;
  }

  .hero__footer-copy-art--mobile,
  .hero__footer-badge-art--mobile {
    display: block;
    position: absolute;
    bottom: 0;
    height: auto;
    margin: 0;
    padding: 0;
    pointer-events: none;
    -webkit-user-drag: none;
    user-select: none;
  }

  .hero__footer-copy-art--mobile {
    left: calc(495 / 3200 * 100%);
    width: calc(894 / 3200 * 100%);
    aspect-ratio: 894 / 405;
  }

  .hero__footer-badge-art--mobile {
    left: calc(1656 / 3200 * 100%);
    width: calc(1004 / 3200 * 100%);
    aspect-ratio: 1004 / 405;
  }

  .hero__footer-badge-link {
    left: calc(1656 / 3200 * 100%);
    bottom: 0;
    width: calc(1004 / 3200 * 100%);
    height: calc(405 / 3200 * var(--hero-mobile-layout-at-440));
  }

  .hero__footer-badge {
    width: 100%;
    height: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .frame,
  .object-card,
  .object-card__article,
  .hero__stage,
  .launch-chrome.is-main {
    transition: none;
  }

  .hero__selection-pair--motion .hero__selection-layer--vector,
  .hero__selection-pair--motion .hero__selection-layer--pointer {
    animation: none;
  }

  .hero__selection-pair {
    transition: none !important;
  }

  /* 189: footer chrome enter/leave — cut, no 0.4s */
  .session-melody-mute,
  .hero-center-arrows {
    transition: none !important;
  }
}

@media (max-width: 720px) {
  :root {
    /*
     * 052: mobile proportional layout @440 (Figma 2741:15184 / Карта 2741:15185).
     * Layout widths use flat calc(N * 100vw / 440) — do not nest --mobile-layout-scale.
     */
    --mobile-layout-ref-w: 440;
    --mobile-layout-scale: calc(100vw / var(--mobile-layout-ref-w) * 1px);
    /* Must match JS HERO_MOBILE_LAYOUT_WIDTH_AT_440 (620 — FOV W/620). */
    --hero-mobile-layout-at-440: 620px;
  }

  /*
   * 106-1: Main visual = 620px (S=620/1600 on CSS-1600 during morph;
   * post-exit width bakes FOV = W/620). Geometrically centered in clip
   * (justify-content center on .hero-clip). Launch keeps centered 1600 +
   * transform scale. Sheet/preview are overlays — map width unchanged when open.
   */
  html:not(.is-launch) .hero {
    width: 620px;
  }
}

.hero__tile {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
  margin: 0;
  padding: 0;
  -webkit-user-drag: none;
  user-select: none;
}

/* 117: 1 source-px overlap (bleed) → cancels bilinear seams at non-integer scale.
 * Not :last-child — .hero__hits / .hero__selection follow the tile stack. */
.hero__tile:has(+ .hero__tile) {
  margin-bottom: calc(-100% / 3200);
}

/*
 * 019/032/050-1/108: launch = same H3 surface, CSS scale.
 * Zoom vs main layout scale (052 family / 106-1 mobile FOV):
 *   desktop (108): (2250/1600)×(W/1600) → @1600 map visual width 2250 (crop ±325)
 *   mobile (106-1): Entry/Splash/Main all S=denom/1600; Main post-exit width 620px
 * On W-resize within a gate, visible natural crop stays constant (proportions).
 * Gate jump 720/721 changes central model → different FOV (acceptable).
 * transform-origin top center → first strip @ top, X-centered; scrollY = 0 early.
 * CSS full frame width 1600 (source 3200). Morph reads computed scale via WAAPI.
 */
html.is-launch {
  --launch-scale: calc(2250 / 1600 * 100vw / 1600px);
  /* 084: canvas paint lives on html/body via --canvas-sky (always on). */
}

html.is-launch,
html.is-launch body {
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: none;
}

html.is-launch .frame {
  height: 100%;
  overflow: hidden;
}

/* 040-4: scrollport active during morph for coordinated cold-start scroll.
 * 050-2: same during hold entrance/dwell for real parallax scrollY.
 * Desktop + mobile: scroll the .frame (document max stays 0 under height:100%). */
html.is-launch:has(.launch-chrome.is-morphing),
html.is-launch:has(.launch-chrome.is-morphing) body,
html.is-launch:has(.launch-chrome.is-holding),
html.is-launch:has(.launch-chrome.is-holding) body,
html.is-launch:has(.launch-chrome.is-main),
html.is-launch:has(.launch-chrome.is-main) body {
  overflow-y: auto;
  overflow-x: hidden;
}

html.is-launch:has(.launch-chrome.is-morphing) .frame,
html.is-launch:has(.launch-chrome.is-holding) .frame,
html.is-launch:has(.launch-chrome.is-main) .frame {
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior-y: none;
}

html.is-launch .hero {
  width: 1600px;
  /* Transform scale ≠ layout size: default flex stretch would squash
     cross-size to the viewport (~100vh) and break 022 morph FLIP/intrinsic
     height. Keep natural box, then scale visually. */
  align-self: flex-start;
  height: auto;
  transform: scale(var(--launch-scale));
  transform-origin: top center;
  /* 085: override head critical hide once launch scale CSS is active. */
  visibility: visible;
}

html.is-launch .hero__hits,
html.is-launch .hero__key--hitbox,
html.is-launch .object-card,
html.is-launch-locked .hero__hits,
html.is-launch-locked .hero__key--hitbox,
html.is-launch-locked .object-card,
html.is-launch-locked .mobile-preview {
  pointer-events: none;
}

/*
 * 020/032-2: launch chrome (logo + loader). Fixed to viewport during
 * splash/hold/morph — outside scaled .hero. SoT Figma launch @ 1600×900.
 * 083-4: after park, `.is-main` reparents into `.hero` (absolute, scrolls
 * with map + inherits 079 origin-crop margin). 044 z-ladder: arrows 1 →
 * launch-chrome 2 → object-card / mobile-preview 3 → sheet-backdrop 10 →
 * sheet 11. 044-1: sheet/backdrop stay body siblings; soft-blur main logo
 * while open.
 */
.launch-chrome {
  position: fixed;
  inset: 0;
  z-index: 2;
  display: block;
  margin: 0;
  padding: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 400ms ease;
}

.launch-chrome[hidden] {
  display: none;
}

.launch-chrome.is-visible {
  opacity: 1;
}

/*
 * 159: desktop session melody mute (Figma 6028:21473 / 6045:21681 / 6045:21671).
 * Fixed 36/36 — same splash bottom inset as CTA (230@1600, bottom 36).
 * Outline on splash/loading; filled+blur after map (is-main / !is-launch).
 * Hidden on mobile (≤720).
 */
.session-melody-mute {
  display: none;
}

@media (min-width: 721px) {
  .session-melody-mute {
    position: fixed;
    left: 36px;
    bottom: 36px;
    z-index: 2;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    border-radius: 12px;
    cursor: pointer;
    color: #fff;
    -webkit-backdrop-filter: blur(14.667px);
    backdrop-filter: blur(14.667px);
    /* outline (splash / loading) */
    border: 1px solid #fff;
    background: transparent;
    /* 189: footer Scene_13 chrome enter/leave */
    transition: opacity 0.4s ease;
  }

  .session-melody-mute[hidden] {
    display: none;
  }

  /* filled after morph→map */
  html:not(.is-launch) .session-melody-mute,
  html.is-launch:has(.launch-chrome.is-main) .session-melody-mute {
    border: 0;
    background: rgba(0, 0, 0, 0.24);
  }

  /* 180: mute above endgame overlay (z=4) while active */
  html[data-endgame-active] .session-melody-mute {
    z-index: 5;
  }

  .session-melody-mute__icon {
    display: block;
    width: 24px;
    height: 24px;
    pointer-events: none;
  }
}

/* 189: in Scene_13 hide band → opacity 0 (~0.4s); leave restores. */
html[data-footer-chrome-faded] .session-melody-mute {
  opacity: 0;
  pointer-events: none;
}

html[data-footer-chrome-faded] .hero-center-arrows {
  opacity: 0;
}

/*
 * 138 / 138-1 / 138-3 / 138-2 / 138-4 / 138-5 / 138-6 / 138-8: Keys HUD chrome.
 * Fixed to viewport — same chrome tier as .launch-chrome, outside .hero scroll.
 * SoT desktop chrome insets: left=36, top=36 @1600-ref (equal inset).
 * Cancel absolute-98 (Scene_02 crop −93+191) as product placement source —
 * that was Figma artboard Y from 138-1, not chrome inset.
 * Mobile SoT (138-8/138-9): left=40 @440 (was 16; abs key ≥ 0 with tip
 * −40 after full KEY webp tip-remeasure); vertical = gap 24@440 between
 * HUD box bottom and .mobile-preview top (supersedes 138-4 gap 32). Prefer
 * bottom: preview.bottom(16) + preview.height(126) + gap(24) = 166@440 +
 * safe-bottom.
 * Local Figma (16,632) on HUD_Mobile is nested Y, not viewport top.
 * Frame size still 130×69; internals from HUD_Mobile 5931:15088 / 5468:40651.
 * 138-10: mobile right 16@440; key 72 hangs right of pill; gap 28;
 * pill hug + right 21. Frost rgba(0,0,0,0.28)+blur(14.667) kept.
 * Key z above pill (no clip-path on key). Desktop z-index 2; mobile 4
 * above .mobile-preview (3). 187-5: sequential fade + card overhang clip.
 * Gap is from .keys-hud box bottom (height 69@440), not KEY overhang.
 * pointer-events:none so HUD never steals zone/key hits (139 bounce on
 * .keys-hud__key only if needed). 170: `.is-keys-chest-jump` enables
 * hit-target only at 10/10 + opacity > 0. Default hide via fade targets
 * (pill + key-picture) opacity 0 — not root opacity (153: ancestor opacity /
 * WAAPI makes a backdrop root and kills pill backdrop-filter).
 */
.keys-hud {
  position: fixed;
  left: calc(36 * 100vw / var(--layout-ref-w, 1600));
  top: calc(36 * 100vw / var(--layout-ref-w, 1600));
  z-index: 2;
  width: calc(136 * 100vw / var(--layout-ref-w, 1600));
  height: calc(98 * 100vw / var(--layout-ref-w, 1600));
  margin: 0;
  padding: 0;
  pointer-events: none;
  opacity: 1;
}

/* 170: 10/10 shortcut — jump to chest; opacity gate still via JS class. */
.keys-hud.is-keys-chest-jump {
  pointer-events: auto;
  cursor: pointer;
}

.keys-hud__pill {
  position: absolute;
  left: calc(28 * 100vw / var(--layout-ref-w, 1600));
  top: calc(2 * 100vw / var(--layout-ref-w, 1600));
  z-index: 0;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  /* 138-7: hug content (Figma autolayout); was fixed 96@1600 → extra right air. */
  width: fit-content;
  height: calc(44 * 100vw / var(--layout-ref-w, 1600));
  margin: 0;
  padding: calc(8 * 100vw / var(--layout-ref-w, 1600))
    calc(18 * 100vw / var(--layout-ref-w, 1600))
    calc(13 * 100vw / var(--layout-ref-w, 1600))
    calc(29 * 100vw / var(--layout-ref-w, 1600));
  border-radius: 0 calc(12 * 100vw / var(--layout-ref-w, 1600))
    calc(12 * 100vw / var(--layout-ref-w, 1600))
    calc(12 * 100vw / var(--layout-ref-w, 1600));
  background: rgba(0, 0, 0, 0.28);
  -webkit-backdrop-filter: blur(14.667px);
  backdrop-filter: blur(14.667px);
  opacity: 0;
}

/* 153: fade with pill (not root); bounce still targets .keys-hud__key. */
.keys-hud__key-picture {
  opacity: 0;
}

.keys-hud__count {
  display: block;
  margin: 0;
  /* 138-7: optical vertical center — padding 8/13 pulls glyphs up ~2@1600. */
  transform: translateY(calc(2 * 100vw / var(--layout-ref-w, 1600)));
  color: #fff;
  font-family: var(--font-monochrome-sans);
  font-size: calc(23 * 100vw / var(--layout-ref-w, 1600));
  font-weight: 500;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.keys-hud__key {
  position: absolute;
  left: calc(-16.4375 * 100vw / var(--layout-ref-w, 1600));
  top: calc(-5.4365 * 100vw / var(--layout-ref-w, 1600));
  z-index: 1;
  display: block;
  width: calc(94 * 100vw / var(--layout-ref-w, 1600));
  height: calc(94 * 100vw / var(--layout-ref-w, 1600));
  margin: 0;
  padding: 0;
  max-width: none;
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
  object-fit: contain;
}

/*
 * 187-2/187-3: complete HUD is a proportional Figma variant, not a second CTA.
 * Arrow SVG from Figma 7169:11637 / 7178:12241. Desktop left = abs sibling
 * (146−36=110); vertical = pill bottom (66.147) + 8px gap (export node Y is
 * board-placed above HUD, not composition — 187-2 top:100 was too low).
 * Mobile: 7170:11981 − 7170:11926 → left −36, top 51.282 (left of HUD).
 * Default↔complete: 240ms ease (no Figma motion); reduced-motion = cut.
 */
.keys-hud,
.keys-hud__pill,
.keys-hud__count,
.keys-hud__key {
  transition-property: width, height, left, right, top, padding, border-radius,
    font-size, line-height, transform, -webkit-backdrop-filter, backdrop-filter;
  transition-duration: 240ms;
  transition-timing-function: ease;
}

.keys-hud__arrow {
  position: absolute;
  /* Desktop: under pill; left from Figma abs (146−36) */
  left: calc(110 * 100vw / var(--layout-ref-w, 1600));
  top: calc(74.147 * 100vw / var(--layout-ref-w, 1600));
  display: block;
  width: calc(24 * 100vw / var(--layout-ref-w, 1600));
  height: calc(24 * 100vw / var(--layout-ref-w, 1600));
  pointer-events: none;
  opacity: 0;
  transition: opacity 240ms ease;
}

.keys-hud.is-keys-complete {
  width: calc(196 * 100vw / var(--layout-ref-w, 1600));
  height: calc(141.2353 * 100vw / var(--layout-ref-w, 1600));
}

.keys-hud.is-keys-complete .keys-hud__pill {
  left: calc(40.35294 * 100vw / var(--layout-ref-w, 1600));
  top: calc(2.88235 * 100vw / var(--layout-ref-w, 1600));
  height: calc(63.26471 * 100vw / var(--layout-ref-w, 1600));
  padding: calc(11.52941 * 100vw / var(--layout-ref-w, 1600))
    calc(25.94118 * 100vw / var(--layout-ref-w, 1600))
    calc(18.73529 * 100vw / var(--layout-ref-w, 1600))
    calc(41.79412 * 100vw / var(--layout-ref-w, 1600));
  border-radius: 0 calc(17.29412 * 100vw / var(--layout-ref-w, 1600))
    calc(17.29412 * 100vw / var(--layout-ref-w, 1600))
    calc(17.29412 * 100vw / var(--layout-ref-w, 1600));
}

.keys-hud.is-keys-complete .keys-hud__count {
  transform: translateY(calc(2.88235 * 100vw / var(--layout-ref-w, 1600)));
  font-size: calc(33 * 100vw / var(--layout-ref-w, 1600));
}

.keys-hud.is-keys-complete .keys-hud__key {
  left: calc(-23.68934 * 100vw / var(--layout-ref-w, 1600));
  top: calc(-7.83499 * 100vw / var(--layout-ref-w, 1600));
  width: calc(135.4706 * 100vw / var(--layout-ref-w, 1600));
  height: calc(135.4706 * 100vw / var(--layout-ref-w, 1600));
}

.keys-hud.is-keys-complete .keys-hud__arrow {
  animation: keys-hud-arrow-bob 2400ms ease-in-out infinite;
}

@keyframes keys-hud-arrow-bob {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(10px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .keys-hud,
  .keys-hud__pill,
  .keys-hud__count,
  .keys-hud__key,
  .keys-hud__arrow {
    transition: none !important;
  }

  .keys-hud.is-keys-complete .keys-hud__arrow {
    animation: none;
  }
}

@media (max-width: 720px) {
  .keys-hud {
    /* 138-10: right 16@440 (scene 6356:36283); bottom (16+126+28)=170 +
     * safe-bottom; frame 117×69. 138-13: key 63.09+72 overhangs frame
     * (~2@440 past vw−16 per Figma 6790:17255) — no clip. */
    left: auto;
    right: calc(16 * 100vw / 440);
    top: auto;
    bottom: calc((16 + 126 + 28) * 100vw / 440 + var(--safe-bottom));
    width: calc(117 * 100vw / 440);
    height: calc(69 * 100vw / 440);
    /* 187-5: the fixed key must paint over the footer preview during its fade. */
    z-index: 4;
  }

  /*
   * 138-10 HUD_Mobile: frost pill (0.28 + blur), hug width, right 21@440,
   * pad pt9/pr24/pb12/pl18; key 72 hangs right.
   * 138-11: uniform radius 12@440 (Figma rounded-[12px]; desktop TL=0 N/A).
   * 138-13: key left 63.09 / top −2.01 @440 (Figma 6790:17255).
   */
  .keys-hud__pill {
    left: auto;
    right: calc(21 * 100vw / 440);
    top: calc(28 * 100vw / 440);
    /* Figma HUD_Mobile: keep the frosted edge above the key overlap. */
    z-index: 1;
    width: fit-content;
    height: calc(40 * 100vw / 440);
    padding: calc(9 * 100vw / 440) calc(24 * 100vw / 440)
      calc(12 * 100vw / 440) calc(18 * 100vw / 440);
    border-radius: calc(12 * 100vw / 440);
    background: rgba(0, 0, 0, 0.28);
    -webkit-backdrop-filter: blur(14.667px);
    backdrop-filter: blur(14.667px);
  }

  .keys-hud__count {
    position: relative;
    z-index: 0;
    transform: none;
    font-size: calc(19 * 100vw / 440);
  }

  .keys-hud__key {
    left: calc(63.09 * 100vw / 440);
    top: calc(-2.01 * 100vw / 440);
    z-index: 2;
    width: calc(72 * 100vw / 440);
    height: calc(72 * 100vw / 440);
  }

  .keys-hud__arrow {
    /* Mobile Figma baseline left −36; 187-4: top nudge −6@440 (was 51.282) */
    left: calc(-36 * 100vw / 440);
    top: calc(45.282 * 100vw / 440);
    width: calc(24 * 100vw / 440);
    height: calc(24 * 100vw / 440);
  }

  .keys-hud.is-keys-complete {
    width: calc(148 * 100vw / 440);
    height: calc(87.28205 * 100vw / 440);
  }

  .keys-hud.is-keys-complete .keys-hud__pill {
    right: calc(26.5641 * 100vw / 440);
    top: calc(35.41862 * 100vw / 440);
    height: calc(51.5641 * 100vw / 440);
    padding: calc(11.38461 * 100vw / 440) calc(30.35897 * 100vw / 440)
      calc(15.17949 * 100vw / 440) calc(22.76923 * 100vw / 440);
    border-radius: calc(15.17949 * 100vw / 440);
    -webkit-backdrop-filter: blur(18.553px);
    backdrop-filter: blur(18.553px);
  }

  .keys-hud.is-keys-complete .keys-hud__count {
    font-size: calc(24.034 * 100vw / 440);
    line-height: calc(24.034 * 100vw / 440);
  }

  .keys-hud.is-keys-complete .keys-hud__key {
    left: calc(79.80719 * 100vw / 440);
    top: calc(-2.54677 * 100vw / 440);
    width: calc(91.07693 * 100vw / 440);
    height: calc(91.07693 * 100vw / 440);
  }
}

.launch-chrome__logo,
.launch-chrome__loader,
.launch-chrome__cta,
.launch-chrome__wordmark,
.launch-chrome__subtitle {
  display: block;
  max-width: none;
}

/* Launch pose only — morph sets inline fixed; is-main uses flex strip below.
 * Wrapper keeps Figma 2370:34407 aspect; width = 2× main logo (214→428 @1600). */
html.is-launch .launch-chrome:not(.is-morphing):not(.is-main) .launch-chrome__logo {
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(100vw * 428 / 1600);
  aspect-ratio: 345 / 63.705360412597656;
  height: auto;
  transform: translate(-50%, -50%);
}

/*
 * 125: hold loader center = CTA center (230@1600, bottom 36@1600).
 * Center Y = 100% − (36 + 115) vw/1600; size stays 56 (not inflated to 230).
 */
html.is-launch .launch-chrome:not(.is-morphing):not(.is-main) .launch-chrome__loader {
  position: absolute;
  left: 50%;
  top: calc(100% - 151 * 100vw / 1600);
  width: calc(100vw * 56 / 1600);
  height: calc(100vw * 56 / 1600);
  transform: translate(-50%, -50%);
  transform-origin: center;
}

html.is-launch .launch-chrome:not(.is-morphing):not(.is-main) .launch-chrome__cta {
  position: absolute;
  left: 50%;
  bottom: calc(36 * 100vw / 1600);
  width: calc(230 * 100vw / 1600);
  height: calc(230 * 100vw / 1600);
  transform: translateX(-50%) scale(0.92);
  transform-origin: center;
}

html.is-launch .launch-chrome:not(.is-morphing):not(.is-main) .launch-chrome__cta.is-visible {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

html.is-launch .launch-chrome:not(.is-morphing):not(.is-main) .launch-chrome__loader.is-fading {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.92);
  transition:
    opacity 480ms ease,
    transform 480ms ease;
}

.launch-chrome__logo {
  position: relative;
  width: calc(100vw * 428 / 1600);
  aspect-ratio: 345 / 63.705360412597656;
  height: auto;
  overflow: visible;
}

.launch-chrome__wordmark {
  width: 100%;
  height: auto;
}

/* Subtitle pose fractions from Figma 2370:34407 / 2370:34409. */
.launch-chrome__subtitle {
  position: absolute;
  left: calc(100% * 104.58984375 / 345);
  top: calc(100% * 52.442138671875 / 63.705360412597656);
  width: calc(100% * 141.27197265625 / 345);
  height: auto;
}

.launch-chrome__loader {
  width: calc(100vw * 56 / 1600);
  height: calc(100vw * 56 / 1600);
  overflow: hidden;
}

/* 078: Lottie SVG fills the 56×56 slot; container stays the morph/hold target. */
.launch-chrome__loader > svg {
  display: block;
  width: 100%;
  height: 100%;
}

/*
 * 125-1: CTA Lottie button — opacity + scale crossfade with loader (480ms ease).
 * Chrome root is pointer-events:none; CTA opts in when .is-armed.
 */
.launch-chrome__cta {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 480ms ease,
    transform 480ms ease;
}

.launch-chrome__cta[hidden] {
  display: none;
}

.launch-chrome__cta.is-visible {
  opacity: 1;
}

.launch-chrome__cta.is-armed {
  pointer-events: auto;
}

.launch-chrome__cta > svg {
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .launch-chrome__cta,
  html.is-launch .launch-chrome:not(.is-morphing):not(.is-main) .launch-chrome__loader.is-fading {
    transition: none;
  }
}

/*
 * 168: endgame is a desktop visual layer only. Its JS owns timed state;
 * 165 owns the lifecycle, input lock, and CTA exit.
 */
@media (min-width: 721px) {
  .endgame {
    position: fixed;
    z-index: 4;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    font-family: var(--font-monochrome-sans);
    color: #fff;
  }

  .endgame[hidden] {
    display: none;
  }

  .endgame > .endgame__skybox,
  .endgame > .endgame__backdrop {
    position: absolute;
    inset: 0;
  }

  .endgame > .endgame__skybox:not([data-endgame-skybox-seam]) {
    transform: translateY(-100%);
    overflow: hidden;
  }

  /* 198-5: exit fade parks skybox as viewport cover (not offscreen warm hide). */
  .endgame > .endgame__skybox[data-endgame-exit-cover] {
    transform: none;
    overflow: hidden;
  }

  .endgame > .endgame__skybox[data-endgame-exit-cover] img {
    visibility: visible;
  }

  /*
   * 168-15: scroll-linked seam on `.hero__stage` (JS reparents + map % top).
   * 168-8: internal skybox z=3 above map chrome inside stage.
   * 168-19: stage itself must beat `.launch-chrome.is-main` (z=2, later in
   * DOM) — else wordmark paints over seamed skybox. `.endgame` stays z=4.
   */
  .hero__stage:has(> .endgame__skybox[data-endgame-skybox-seam]) {
    z-index: 3;
  }

  .hero__stage > .endgame__skybox[data-endgame-skybox-seam] {
    position: absolute;
    inset: auto;
    left: 0;
    width: 100%;
    height: auto;
    transform: none;
    z-index: 3;
    overflow: hidden;
    pointer-events: none;
  }

  .endgame__skybox img {
    display: block;
    width: 100%;
    height: auto;
  }

  /* 172: 1px source-bleed overlap (same contract as H3 hero tiles). */
  .endgame__skybox img:has(+ img) {
    margin-bottom: calc(-100% / 3200);
  }

  .endgame__backdrop {
    --endgame-backdrop-blur-peak: 90px;
    z-index: 2;
    opacity: 0;
    background: rgb(255 255 255 / 20%);
    -webkit-backdrop-filter: blur(0);
    backdrop-filter: blur(0);
  }

  .endgame__letter {
    position: absolute;
    z-index: 4;
    /* 190: flatten 3D sphere/envelope so chrome (z>4) paints/hits above letter */
    isolation: isolate;
    /* 168-2: Scene_12 letter relative fallback; JS pins to live chest gBCR at start */
    top: calc(287.9727 * var(--hero-area-width) / 1172);
    left: calc(564.3906 * var(--hero-area-width) / 1172);
    display: block;
    width: calc(43.95 * var(--hero-area-width) / 1172);
    /* 179: native Figma Letter 6796:18322 trim ~2455×2721 (design-context PNG + alpha) */
    height: auto;
    aspect-ratio: 2455 / 2721;
    /* 169-2: cqw for .media — % resolved against .sphere{width:0} → 48px */
    container-type: inline-size;
    /* Compact fly: clip sphere; interactive final: tiles may overflow */
    overflow: hidden;
    pointer-events: none;
  }

  /* 198-6: same as overlay/chest — author display:block vs [hidden]. */
  .endgame__letter[hidden] {
    display: none;
  }

  .endgame__letter.endgame__letter--interactive {
    overflow: visible;
    pointer-events: auto;
  }

  /* 169: photo-sphere + letter (scoped port of mwg-099 globals.css) */
  .endgame__letter .endgame-letter-sphere {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    overflow: visible;
    touch-action: none;
    user-select: none;
    pointer-events: none;
  }

  .endgame__letter .endgame-letter-sphere--interactive {
    pointer-events: auto;
    cursor: grab;
  }

  .endgame__letter .endgame-letter-sphere--interactive:active {
    cursor: grabbing;
  }

  .endgame__letter .sphere-container {
    position: relative;
    z-index: 2;
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    perspective: 120vw;
    perspective-origin: center;
  }

  .endgame__letter .sphere {
    position: relative;
    width: 0;
    height: 0;
    transform-style: preserve-3d;
    /* 180: fade tiles in when interactive (no snap). */
    opacity: 0;
    transition: opacity 1s ease;
  }

  .endgame__letter.endgame__letter--interactive .sphere {
    opacity: 1;
  }

  .endgame__letter .envelope {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 200;
    width: 100%;
    height: auto;
    max-width: none;
    object-fit: contain;
    transform: translate(-50%, -50%);
    transform-origin: center;
    will-change: transform;
    pointer-events: none;
    user-select: none;
  }

  .endgame__letter .media {
    position: absolute;
    top: 50%;
    left: 50%;
    /* 169-2: 28cqw = 28% letter inline-size (W_053); was 28% of .sphere w=0 */
    width: clamp(48px, 28cqw, 176px);
    height: clamp(48px, 28cqw, 176px);
    max-width: none;
    margin: calc(clamp(48px, 28cqw, 176px) / -2);
    border-radius: clamp(4px, 0.4vw, 8px);
    overflow: hidden;
    backface-visibility: hidden;
    transform-style: preserve-3d;
    transition:
      filter 220ms linear,
      opacity 360ms ease;
    will-change: transform, filter, opacity;
    pointer-events: none;
  }

  /* Compact fly: letter-only; reveal tiles after fly / final. */
  .endgame__letter:not(.endgame__letter--interactive) .media {
    visibility: hidden;
  }

  .endgame__letter .media-layer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    backface-visibility: hidden;
    will-change: opacity, filter, transform;
  }

  .endgame__letter .media-layer--incoming {
    z-index: 2;
    animation: endgame-media-fade-in 2200ms ease-in-out both;
  }

  .endgame__letter .media-layer--static {
    z-index: 2;
    opacity: 1;
  }

  .endgame__letter .media-layer--outgoing {
    z-index: 1;
    opacity: 1;
  }

  @keyframes endgame-media-fade-in {
    from {
      opacity: 0;
      filter: saturate(0.55) brightness(1.14);
      transform: scale(1.025);
    }
    to {
      opacity: 1;
      filter: saturate(1) brightness(1);
      transform: scale(1);
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .endgame__letter .sphere {
      transition: none;
    }

    .endgame__letter .media {
      transition: none;
    }

    .endgame__letter .media-layer {
      animation: none;
    }

    .endgame__letter .envelope {
      will-change: auto;
    }
  }

  /* 180: vector logo under overflowing sphere tiles (letter z=4). */
  .endgame__logo {
    position: absolute;
    z-index: 1;
    top: -56px;
    left: 50%;
    transform: translateX(-50%);
    width: 297px;
    height: 22px;
    line-height: 0;
  }

  .endgame__logo-img {
    display: block;
    width: 297px;
    height: 22px;
    max-width: none;
    pointer-events: none;
  }

  /* 180/190: frost back — exit/rewind; top 36 user override (Figma was 97) */
  .endgame__back {
    position: absolute;
    z-index: 6;
    top: 36px;
    left: 36px;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 12px;
    opacity: 0;
    background: rgba(0, 0, 0, 0.24);
    -webkit-backdrop-filter: blur(14.667px);
    backdrop-filter: blur(14.667px);
    color: #fff;
    cursor: pointer;
    pointer-events: auto;
  }

  .endgame__back-icon {
    display: block;
    width: 24px;
    height: 24px;
    pointer-events: none;
  }

  /* 180/190: participate pill (Figma 6776:3625) — bottom 36; above letter */
  .endgame__participate {
    position: absolute;
    z-index: 6;
    bottom: 36px;
    left: 50%;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 323px;
    height: 44px;
    margin: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 22px;
    padding: 0;
    transform: translateX(-50%);
    opacity: 0;
    background: #000;
    color: #fff;
    font-family: var(--font-monochrome-sans);
    font-weight: 500;
    font-size: 15.4px;
    line-height: 15.4px;
    text-align: center;
    white-space: nowrap;
    cursor: pointer;
    pointer-events: auto;
  }

  /* 192: frost participated CTA (Figma 6961:36817 content ~367×44). */
  .endgame__participate.is-participated {
    width: 367px;
    padding: 0 32px;
    border-color: transparent;
    background: rgba(0, 0, 0, 0.24);
    -webkit-backdrop-filter: blur(14.667px);
    backdrop-filter: blur(14.667px);
    cursor: default;
  }

  .endgame__participate-check {
    display: block;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    pointer-events: none;
  }

  .endgame__participate-label {
    display: block;
    pointer-events: none;
  }

  /*
   * 192/205-3/208-1: raffle overlay above logo (z1) + participate (z6).
   * Panel: x=542 top=24 w=530 height=100%-48 radius 8.
   * Toast: Y-center = panel top (208-1); w=353 left=624.
   * Mobile: midpoint viewport top → sheet top (Figma `6963:37136`).
   */
  .endgame-raffle {
    position: absolute;
    z-index: 8;
    inset: 0;
    pointer-events: auto;
  }

  .endgame-raffle[hidden] {
    display: none;
  }

  .endgame-raffle__dismiss {
    position: absolute;
    inset: 0;
    background: transparent;
  }

  .endgame-raffle__toast {
    position: absolute;
    z-index: 2;
    /* 208-1: Y-center of toast = panel top (24px). */
    top: 24px;
    left: calc(624 * 100vw / 1600);
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    width: calc(353 * 100vw / 1600);
    height: 44px;
    margin: 0;
    padding: 12px 16px;
    border-radius: 24px;
    transform: translateY(-50%);
    background: #e40046;
    color: #fff;
    font-family: var(--font-onest);
    font-weight: 500;
    font-size: 16px;
    line-height: normal;
    text-align: center;
    pointer-events: none;
  }

  .endgame-raffle__toast[hidden] {
    display: none;
  }

  .endgame-raffle__panel {
    position: absolute;
    z-index: 1;
    top: 24px;
    left: calc(542 * 100vw / 1600);
    box-sizing: border-box;
    display: flex;
    align-items: flex-start;
    width: calc(530 * 100vw / 1600);
    height: calc(100% - 48px);
    padding: 32px 64px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
    border-radius: 8px;
    background: #f3f4f9;
    color: #000;
  }

  .endgame-raffle__form,
  .endgame-raffle__success {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
    height: 100%;
  }

  .endgame-raffle__copy {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    text-align: center;
  }

  .endgame-raffle__title {
    margin: 0;
    font-family: var(--font-monochrome-sans);
    font-weight: 500;
    font-size: 28px;
    line-height: 1;
    text-transform: uppercase;
    color: #000;
  }

  .endgame-raffle__sub {
    margin: 0;
    font-family: var(--font-onest);
    font-weight: 500;
    font-size: 16px;
    line-height: 19px;
    letter-spacing: 0.16px;
    color: #000;
  }

  .endgame-raffle__link {
    color: inherit;
    text-decoration: underline;
    text-underline-position: from-font;
    text-decoration-skip-ink: none;
  }

  .endgame-raffle-consent__text a,
  .endgame-raffle__policy {
    display: inline;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    letter-spacing: inherit;
    line-height: inherit;
    text-decoration: underline;
    text-underline-position: from-font;
    text-decoration-skip-ink: none;
    cursor: pointer;
  }

  .endgame-raffle__fields {
    display: flex;
    flex-direction: column;
    width: 100%;
  }

  .endgame-raffle__consents {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    min-width: 0;
  }

  .endgame-raffle-field {
    position: relative;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 8px;
    width: 100%;
    height: 80px;
    padding-bottom: 16px;
    border-bottom: 1px solid #000;
    color: #999;
    cursor: text;
  }

  .endgame-raffle-field.is-error {
    border-bottom-color: #e40046;
    color: #e40046;
  }

  .endgame-raffle-field:not(.is-filled):not(:focus-within) {
    justify-content: center;
    gap: 0;
    padding-bottom: 0;
  }

  .endgame-raffle-field__label {
    font-family: var(--font-onest);
    font-weight: 500;
    font-size: 16px;
    line-height: normal;
  }

  .endgame-raffle-field.is-filled .endgame-raffle-field__label {
    color: #999;
  }

  .endgame-raffle-field.is-error .endgame-raffle-field__label {
    color: #e40046;
  }

  .endgame-raffle-field:not(.is-filled):not(:focus-within) .endgame-raffle-field__input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
  }

  .endgame-raffle-field__input {
    box-sizing: border-box;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    outline: none;
    background: transparent;
    color: #000;
    font-family: var(--font-onest);
    font-weight: 500;
    font-size: 16px;
    line-height: normal;
  }

  .endgame-raffle-field__input:focus,
  .endgame-raffle-field__input:focus-visible {
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
  }

  .endgame-raffle-field__input::-webkit-contacts-auto-fill-button,
  .endgame-raffle-field__input::-webkit-credentials-auto-fill-button {
    display: none !important;
    visibility: hidden;
    pointer-events: none;
  }

  .endgame-raffle-field.is-error .endgame-raffle-field__input {
    color: #e40046;
  }

  .endgame-raffle-consent {
    display: flex;
    gap: 14px;
    align-items: center;
    width: 100%;
    cursor: pointer;
  }

  .endgame-raffle-consent--top {
    align-items: flex-start;
  }

  .endgame-raffle-consent__input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .endgame-raffle-consent__box {
    box-sizing: border-box;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border: 1px solid #000;
    border-radius: 6px;
    background: transparent;
  }

  .endgame-raffle-consent.is-error .endgame-raffle-consent__box {
    border-color: #e40046;
  }

  .endgame-raffle-consent.is-error .endgame-raffle-consent__text {
    color: #e40046;
  }

  .endgame-raffle-consent__check {
    display: none;
    width: 24px;
    height: 24px;
    pointer-events: none;
  }

  .endgame-raffle-consent__input:checked + .endgame-raffle-consent__box {
    border-color: transparent;
  }

  .endgame-raffle-consent__input:checked
    + .endgame-raffle-consent__box
    .endgame-raffle-consent__check {
    display: block;
  }

  .endgame-raffle-consent__text {
    flex: 1 1 auto;
    min-width: 0;
    font-family: var(--font-onest);
    font-weight: 500;
    font-size: 13px;
    line-height: 20px;
    letter-spacing: 0.13px;
    color: #000;
  }

  .endgame-raffle__captcha {
    display: flex;
    justify-content: center;
    width: 100%;
    min-height: 100px;
    border-radius: 12px;
  }

  .endgame-raffle__captcha.is-error {
    outline: 1px solid #e40046;
    outline-offset: 4px;
  }

  .endgame-raffle__submit {
    box-sizing: border-box;
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 44px;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 22px;
    background: #000;
    color: #fff;
    font-family: var(--font-monochrome-sans);
    font-weight: 500;
    font-size: 15.4px;
    line-height: 15.4px;
    text-align: center;
    cursor: pointer;
  }

  .endgame-raffle__submit[disabled] {
    cursor: wait;
  }

  .endgame-raffle__success-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    overflow: visible;
  }

  .endgame-raffle__success-icon img {
    display: block;
    width: 56px;
    height: 56px;
    object-fit: contain;
    pointer-events: none;
  }

  .endgame-raffle__copy--success {
    align-items: center;
  }

  .endgame-raffle [data-endgame-raffle-view="form"]:not([hidden]),
  .endgame-raffle [data-endgame-raffle-view="success"]:not([hidden]) {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
  }

  .endgame-raffle [data-endgame-raffle-view="form"][hidden],
  .endgame-raffle [data-endgame-raffle-view="success"][hidden] {
    display: none;
  }

  .endgame-raffle [data-endgame-raffle-view="form"]:not([hidden]) {
    min-height: 100%;
    height: auto;
  }

  .endgame-raffle [data-endgame-raffle-view="form"]:not([hidden]) .endgame-raffle__form {
    min-height: 100%;
    height: auto;
  }

  .endgame-raffle [data-endgame-raffle-view="form"] .endgame-raffle__top {
    display: flex;
    flex: none;
    flex-direction: column;
    gap: 40px;
    justify-content: flex-start;
    min-height: auto;
    overflow: visible;
  }

  .endgame-raffle [data-endgame-raffle-view="form"] .endgame-raffle__intro {
    display: flex;
    flex-direction: column;
    gap: 32px;
    width: 100%;
  }

  .endgame-raffle [data-endgame-raffle-view="success"] .endgame-raffle__success {
    height: 100%;
  }

  .endgame-raffle [data-endgame-raffle-view="success"] .endgame-raffle__success-main {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    min-height: 0;
    width: 100%;
  }
}

/* During WAAPI morph children are position:fixed + transform FLIP (046);
 * keep overlay opaque. */
.launch-chrome.is-morphing {
  transition: none;
  opacity: 1;
}

/*
 * 083-2/083-4 natural sync (replaces 056-1 pin + JS hideY): main logo is
 * absolute inside `.hero` at `--main-logo-doc-top` (= coldStartY + pose pad).
 * Compositor scroll + 079 crop margin move logo with the map — no JS hide-Y.
 * 023 H-center: full width of `.hero` (panel shrinks hero-area with clip).
 * z-index 2 above `.hero__stage` stacking context (transform) and hits.
 */
.launch-chrome.is-main {
  position: absolute;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  inset: auto;
  top: var(--main-logo-doc-top, 0px);
  left: 0;
  right: 0;
  bottom: auto;
  width: auto;
  height: auto;
  padding: 0;
  gap: 0;
  opacity: 1;
  transform: none;
  transition: none;
  pointer-events: none;
}

.launch-chrome.is-main .launch-chrome__logo {
  position: static;
  left: auto;
  top: auto;
  transform: none;
  width: calc(214 * 100vw / var(--layout-ref-w, 1600));
  aspect-ratio: 346 / 43;
  height: auto;
}

/* 032 / 032-1: anniversary subtitle gone in main (wordmark only @ 023 pose). */
.launch-chrome.is-main .launch-chrome__subtitle {
  display: none;
}

.launch-chrome.is-main .launch-chrome__loader[hidden],
.launch-chrome.is-main .launch-chrome__cta[hidden] {
  display: none;
}

html:not(.is-launch) .launch-chrome:not(.is-main) {
  opacity: 0;
}

/*
 * 038/040: mobile launch (Figma 730:10645) + main logo (730:10737).
 * Gate = max-width:720px (052-3; was 867/040). Desktop 1.35 / 1728 unchanged.
 */
@media (max-width: 720px) {
  :root {
    /* 042: additive safe-area insets for chrome (hero/frame stay full-bleed). */
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-right: env(safe-area-inset-right, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --safe-left: env(safe-area-inset-left, 0px);
  }

  html.is-launch {
    /*
     * 106: Entry FOV denom 1629.18 on CSS-full-1600 (S = denom/1600).
     * Hold entrance WAAPI → Splash 1289.46; morph → Main 620/1600 (106-1).
     */
    --launch-scale: calc(1629.18 / 1600);
  }

  html.is-launch .launch-chrome:not(.is-morphing):not(.is-main) .launch-chrome__logo {
    /* 050-9: 1.5× main logo (214@440 → 321); desktop hold stays 428@1600. */
    width: calc(321 * 100vw / 440);
    /* Center in the safe content box (inset=0 → identical to 50%/50%). */
    left: calc(50% + (var(--safe-left) - var(--safe-right)) / 2);
    top: calc(50% + (var(--safe-top) - var(--safe-bottom)) / 2);
  }

  /*
   * 125: loader center = CTA center (230@440, bottom 44@440 + safe-bottom).
   * Center Y = 100svh − safe-bottom − (44 + 115) vw/440; size stays 36.
   * Center-anchor (-50%/-50%) like desktop so entry travelY stays consistent.
   */
  html.is-launch .launch-chrome:not(.is-morphing):not(.is-main) .launch-chrome__loader {
    left: calc(50% + (var(--safe-left) - var(--safe-right)) / 2);
    top: calc(100svh - var(--safe-bottom) - 159 * 100vw / 440);
    width: calc(36 * 100vw / 440);
    height: calc(36 * 100vw / 440);
    transform: translate(-50%, -50%);
    transform-origin: center;
  }

  html.is-launch .launch-chrome:not(.is-morphing):not(.is-main) .launch-chrome__cta {
    left: calc(50% + (var(--safe-left) - var(--safe-right)) / 2);
    bottom: calc(44 * 100vw / 440 + var(--safe-bottom));
    width: calc(230 * 100vw / 440);
    height: calc(230 * 100vw / 440);
  }

  .launch-chrome.is-main .launch-chrome__logo {
    /* Figma mobile A: 214×43 @440; doc-top includes 92@440 + safe-top (042/052). */
    width: calc(214 * 100vw / 440);
  }

  /*
   * 040: mobile center scrollport = .frame (not html/body — desktop
   * document bounce stays). Vertical scroll works; rubber-band off.
   */
  html:not(.is-launch),
  html:not(.is-launch) body {
    height: 100%;
    overflow: hidden;
  }

  /*
   * 045/063: Y-pan only at the map scrollport compositor boundary. 063 owns
   * temporary pinch via Pointer Events — native `pinch-zoom` would persist and
   * fight snap-back. Keep X overscroll policy separate below.
   */
  .frame {
    touch-action: pan-y;
    overscroll-behavior-x: none;
  }

  /* Native one-finger pan-y + inertia. Inspect takes over on 2nd finger
   * via non-passive touch preventDefault; while inspect is on, lock native. */
  html:not(.is-launch) .hero {
    touch-action: pan-y;
  }

  html:not(.is-launch) .frame.is-temp-inspect .hero {
    touch-action: none;
  }

  html:not(.is-launch) .frame {
    /* 040-7: definite 100dvh + default align-items:stretch collapsed .hero
       border-box to the viewport while .hero__stage overflowed — gBCR
       height/bottom lied, so visibleHeroCenterY / axis∩hit drifted. Same
       align-self as launch morph. justify-content still centers on X. */
    align-items: flex-start;
    height: 100%;
    height: 100dvh;
    overflow-x: hidden;
    overflow-y: auto;
    /* 079: allow local native bounce at scrollTop=0 (origin crop); no chaining. */
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
  }

  /* 195-2-w3: while raffle owns the sheet article, keep mobile map scrollport
   * locked. Nested article scroll stays native; endgame gate must not punch a
   * wheel/touch hole through the whole raffle panel. */
  html:has(.mobile-sheet__article[data-object-id="endgame-raffle"])
    .frame {
    overflow-y: hidden;
    overscroll-behavior-y: none;
  }

  html:not(.is-launch) .hero {
    align-self: flex-start;
    height: auto;
  }

  /* 040-4: mobile .frame scroll during launch morph (040 scrollport).
   * 050-2: same during hold for parallax scrollY. */
  html.is-launch:has(.launch-chrome.is-morphing) .frame,
  html.is-launch:has(.launch-chrome.is-holding) .frame {
    overflow-y: auto;
    overscroll-behavior-y: none;
  }

  /* 040-2 / 042: viewing region above open preview + home-indicator inset. */
  html:not(.is-launch) .frame:has(.mobile-preview[data-state="open"]) {
    scroll-padding-bottom: calc(
      142 * 100vw / 440 + env(safe-area-inset-bottom, 0px)
    );
  }
}

@media (prefers-reduced-motion: reduce) {
  .launch-chrome {
    transition: none;
  }
}

/*
 * 041 / 041-1 / 041-2 / 041-3 / 054 / 050-5: center-crop arrows.
 * Fixed viewport overlay — not inside .hero__stage (040-2 scroll).
 * One tight SVG (19.0526×16.5) + CSS rotate.
 * Visible during morph (is-launch + is-morphing) and on main.
 * 050-5: opacity-only entrance (WAAPI during morph); no slide-in.
 * Mobile: full-bleed, inset 1px, band center @50dvh.
 * Desktop (054 / 050-11): map-column width (panel-aware), inset ~18.5px,
 * band center @50dvh (viewport / map-column mid).
 */
.hero-center-arrows {
  display: none;
  opacity: 1;
  /* 189: footer chrome enter/leave ~0.4s (was hero-zoom 320ms). */
  transition: opacity 0.4s ease;
}

@media (max-width: 720px) {
  html.is-launch:has(.launch-chrome.is-morphing) .hero-center-arrows,
  html:not(.is-launch) .hero-center-arrows {
    display: block;
    position: fixed;
    inset-inline: 0;
    width: auto;
    /* Figma 464@956 + h28 → center @478 (=50%); keep mid when h scales (052). */
    top: calc(50dvh - (14 * 100vw / 440));
    height: calc(28 * 100vw / 440);
    z-index: 1;
    margin: 0;
    padding: 0;
    pointer-events: none;
  }

  /* Slot = post-rotate AABB (16.5×19.05); img intrinsic then rotate about center. */
  .hero-center-arrows__slot {
    position: absolute;
    top: 50%;
    width: calc(16.5 * 100vw / 440);
    height: calc(19.0526 * 100vw / 440);
    margin: 0;
    padding: 0;
  }

  .hero-center-arrows__arrow {
    display: block;
    position: absolute;
    left: 50%;
    top: 50%;
    width: calc(19.0526 * 100vw / 440);
    height: calc(16.5 * 100vw / 440);
    margin: 0;
    padding: 0;
    transform-origin: center center;
    -webkit-user-drag: none;
    user-select: none;
  }

  html.is-launch:has(.launch-chrome.is-morphing) .hero-center-arrows__slot--left,
  html:not(.is-launch) .hero-center-arrows__slot--left {
    left: calc(1 * 100vw / 440);
    transform: translateY(-50%);
  }

  html.is-launch:has(.launch-chrome.is-morphing) .hero-center-arrows__slot--right,
  html:not(.is-launch) .hero-center-arrows__slot--right {
    right: calc(1 * 100vw / 440);
    transform: translateY(-50%);
  }

  html.is-launch:has(.launch-chrome.is-morphing) .hero-center-arrows__arrow--left,
  html:not(.is-launch) .hero-center-arrows__arrow--left {
    transform: translate(-50%, -50%) rotate(90deg);
  }

  html.is-launch:has(.launch-chrome.is-morphing) .hero-center-arrows__arrow--right,
  html:not(.is-launch) .hero-center-arrows__arrow--right {
    transform: translate(-50%, -50%) rotate(-90deg);
  }
}

/* 054 + 052 + 050-11: desktop — same DOM/asset; map-column strip, mid @50dvh. */
@media (min-width: 721px) {
  html.is-launch:has(.launch-chrome.is-morphing) .hero-center-arrows,
  html:not(.is-launch) .hero-center-arrows {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    width: auto;
    /* Band center = viewport/map-column mid; half-height scales with 052. */
    top: calc(50dvh - (14 * 100vw / var(--layout-ref-w)));
    height: calc(28 * 100vw / var(--layout-ref-w));
    z-index: 1;
    margin: 0;
    padding: 0;
    pointer-events: none;
    /* 083-6 H2: interpolate `right` on the panel-open timeline (token is discrete). */
    transition:
      opacity 0.4s ease,
      right var(--object-card-open-duration) var(--object-card-easing);
  }

  /* Match panel open — arrows over map only (052 --object-card-width). */
  html:not(.is-launch) .frame[data-card-state="open"] .hero-center-arrows {
    right: var(--object-card-width);
  }

  /* 168-7: inverse open — right→0 + opacity→0 @ panel clock; visibility after fade. */
  html[data-endgame-shutter="closing"] .hero-center-arrows {
    right: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      opacity var(--object-card-open-duration) var(--object-card-easing),
      right var(--object-card-open-duration) var(--object-card-easing),
      visibility 0s linear var(--object-card-open-duration);
  }

  /* Slot ≈ post-rotate AABB for ~28@1600 glyph (scale of 19.0526×16.5 SVG). */
  .hero-center-arrows__slot {
    position: absolute;
    top: 50%;
    width: calc(24.25 * 100vw / var(--layout-ref-w));
    height: calc(28 * 100vw / var(--layout-ref-w));
    margin: 0;
    padding: 0;
  }

  .hero-center-arrows__arrow {
    display: block;
    position: absolute;
    left: 50%;
    top: 50%;
    width: calc(28 * 100vw / var(--layout-ref-w));
    height: calc(24.25 * 100vw / var(--layout-ref-w));
    margin: 0;
    padding: 0;
    transform-origin: center center;
    -webkit-user-drag: none;
    user-select: none;
  }

  html.is-launch:has(.launch-chrome.is-morphing) .hero-center-arrows__slot--left,
  html:not(.is-launch) .hero-center-arrows__slot--left {
    left: calc(18.5 * 100vw / var(--layout-ref-w));
    transform: translateY(-50%);
  }

  html.is-launch:has(.launch-chrome.is-morphing) .hero-center-arrows__slot--right,
  html:not(.is-launch) .hero-center-arrows__slot--right {
    right: calc(18.5 * 100vw / var(--layout-ref-w));
    transform: translateY(-50%);
  }

  html.is-launch:has(.launch-chrome.is-morphing) .hero-center-arrows__arrow--left,
  html:not(.is-launch) .hero-center-arrows__arrow--left {
    transform: translate(-50%, -50%) rotate(90deg);
  }

  html.is-launch:has(.launch-chrome.is-morphing) .hero-center-arrows__arrow--right,
  html:not(.is-launch) .hero-center-arrows__arrow--right {
    transform: translate(-50%, -50%) rotate(-90deg);
  }
}

/*
 * 024/027-2/040: mobile preview card at bottom (Figma 740:26412).
 * Mobile-only: hidden outside max-width:720px. Slides up from bottom.
 * Model: scene shell + two-layer stack of full cards (white bg, radius 24,
 * pl24/pr20/py20). Swap = scale+opacity on whole cards, not a slider track.
 */
.mobile-preview {
  display: none;
}

@media (max-width: 720px) {
  /* 024–027 own the mobile presentation. Keep the desktop panel from
     covering the preview/sheet or narrowing the hero after object selection. */
  .object-card {
    display: none;
  }

  .frame[data-card-state="open"] {
    padding-inline-end: 0;
  }

  /* 024/027-2: scene shell — position + primary reveal only; card chrome
     (white, radius) lives on .mobile-preview__card. */
  .mobile-preview {
    display: block;
    position: fixed;
    left: calc(50% + (var(--safe-left) - var(--safe-right)) / 2);
    /* 052: 16@440 + additive safe-area (042). */
    bottom: calc(16 * 100vw / 440 + var(--safe-bottom));
    /* 044: same slot as .object-card — above .launch-chrome (2). */
    z-index: 3;
    /* 052: 408@440; 32@440 side inset + additive safe L/R. */
    width: min(
      calc(408 * 100vw / 440),
      calc(100vw - 32 * 100vw / 440 - var(--safe-left) - var(--safe-right))
    );
    height: calc(126 * 100vw / 440);
    padding: 0;
    overflow: visible;
    background: transparent;
    color: #000;
    line-height: normal;
    transform: translate(-50%, 100%);
    transition:
      transform var(--object-card-open-duration) var(--object-card-easing),
      opacity var(--hero-zoom-duration) ease-out;
    will-change: transform;
  }

  /*
   * 187-6/218: after first key, keep white/blur out of the HUD key AABB
   * without overflow:hidden (that clipped mid-swap ±64@440 travel).
   * Outer polygon = shell ± --keys-safe-travel; top-right L-notch matches
   * card overhang clip (187-5). 027-2: overflow stays visible until keys.
   */
  .mobile-preview[data-keys-safe-clip] {
    overflow: visible;
    clip-path: polygon(
      0px calc(-1 * var(--keys-safe-travel, 0px)),
      calc(100% - var(--keys-safe-notch-w, 0px))
        calc(-1 * var(--keys-safe-travel, 0px)),
      calc(100% - var(--keys-safe-notch-w, 0px))
        var(--keys-safe-notch-bottom, 0px),
      100% var(--keys-safe-notch-bottom, 0px),
      100% calc(100% + var(--keys-safe-travel, 0px)),
      0px calc(100% + var(--keys-safe-travel, 0px))
    );
  }

  /* 158-2: fade===0 still paints opacity on __stage; shell must not eat footer taps. */
  .mobile-preview[data-fade-inert] {
    pointer-events: none;
  }

  .mobile-preview[hidden] {
    display: none;
  }

  /* 024: primary reveal — whole preview area slides up from bottom. */
  .mobile-preview[data-state="open"] {
    transform: translate(-50%, 0);
  }

  /* 063-2/063-6: one class on .frame fades preview + arrows + main logo. */
  .frame.is-temp-inspect-chrome-hidden .mobile-preview,
  .frame.is-temp-inspect-chrome-hidden .hero-center-arrows,
  .frame.is-temp-inspect-chrome-hidden .launch-chrome {
    opacity: 0;
    pointer-events: none;
  }

  /*
   * .launch-chrome.is-main { transition: none } would snap hide/show.
   * Opacity-only while inspect is live (class stays through restore so
   * reverse fade runs). Do not enable transform — morph uses none.
   */
  .frame.is-temp-inspect .launch-chrome.is-main {
    transition: opacity var(--hero-zoom-duration) ease-out;
  }

  @media (prefers-reduced-motion: reduce) {
    .hero-center-arrows,
    .mobile-preview,
    .frame.is-temp-inspect-chrome-hidden .mobile-preview,
    .frame.is-temp-inspect-chrome-hidden .hero-center-arrows,
    .frame.is-temp-inspect-chrome-hidden .launch-chrome,
    .frame.is-temp-inspect .launch-chrome.is-main {
      transition: none;
    }
  }

  /* 027-2/062/065: swap stage — overflow visible so Y travel is not clipped.
     Card height stays 126@440; travel offset is independent (065: ±64). */
  .mobile-preview__stage {
    position: relative;
    width: 100%;
    height: calc(126 * 100vw / 440);
    overflow: visible;
    /* 158: scroll-linked chest preview fade (zone 28); no CSS tween */
    opacity: var(--mobile-preview-fade, 1);
  }

  /* 027-2: full card (Figma 740:25572) — white bg, radius, padding on card.
     062/065: whole-card slide ±64@440 + scale 0.7; 640ms + swap-easing. */
  .mobile-preview__card {
    position: absolute;
    inset: 0;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: calc(20 * 100vw / 440);
    padding: calc(20 * 100vw / 440) calc(20 * 100vw / 440) calc(20 * 100vw / 440)
      calc(24 * 100vw / 440);
    overflow: clip;
    background: #fff;
    border-radius: calc(24 * 100vw / 440);
    /* 187-5: JS sets --keys-hud-clip-* when key AABB overlaps the card. */
    clip-path: polygon(
      0% 0%,
      calc(100% - var(--keys-hud-clip-w, 0px)) 0%,
      calc(100% - var(--keys-hud-clip-w, 0px)) var(--keys-hud-clip-h, 0px),
      100% var(--keys-hud-clip-h, 0px),
      100% 100%,
      0% 100%
    );
    transform: translateY(0) scale(1);
    transform-origin: center;
    opacity: 1;
    transition:
      transform 640ms var(--object-card-swap-easing),
      opacity 640ms var(--object-card-swap-easing);
    will-change: transform, opacity;
  }

  /* 071: dir=+1 (scroll down) → enter from below (+Y), exit up (−Y). */
  .mobile-preview__card[data-card-state="entering"] {
    z-index: 1;
    transform: translateY(calc(var(--swap-dir, 1) * 64 * 100vw / 440)) scale(0.7);
    opacity: 0;
  }

  .mobile-preview__card[data-card-state="incoming"] {
    z-index: 1;
    transform: translateY(0) scale(1);
    opacity: 1;
  }

  .mobile-preview__card[data-card-state="outgoing"] {
    transform: translateY(calc(var(--swap-dir, 1) * -64 * 100vw / 440)) scale(0.7);
    opacity: 0;
  }

  /* 027-3: basis 258 @408; shrink when shell < 408 so media keeps pr 20. */
  .mobile-preview__text {
    flex: 0 1 calc(258 * 100vw / 440);
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: calc(14 * 100vw / 440);
  }

  .mobile-preview__date {
    margin: 0;
    color: #e40046;
    font-family: var(--font-monochrome-sans);
    font-size: calc(19 * 100vw / 440);
    font-weight: 500;
    line-height: calc(19 * 100vw / 440);
    text-transform: uppercase;
  }

  .mobile-preview__title {
    margin: 0;
    color: #000;
    font-family: var(--font-onest);
    font-size: calc(16 * 100vw / 440);
    font-weight: 500;
    line-height: calc(19 * 100vw / 440);
    letter-spacing: calc(0.16 * 100vw / 440);
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
    /* 183: pre-line honors catalog `\n`. -webkit-box collapses it in practice,
     * so max-height (3× lh) keeps the 3-line ceiling for long titles. */
    white-space: pre-line;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    max-height: calc(3 * 19 * 100vw / 440);
  }

  /*
   * 150-1 / Figma 6087:29301 + 6087:29194: chest miniature typography.
   * Title Mono 19 uppercase; remaining/CTA Onest 16 pink; text gap 8@440
   * (other previews keep gap 14). Supersedes 150 “intentional invert”.
   */
  .mobile-preview__card[data-object-id="28"] .mobile-preview__text {
    gap: calc(8 * 100vw / 440);
  }

  .mobile-preview__card[data-object-id="28"] .mobile-preview__title {
    display: block;
    color: #000;
    font-family: var(--font-monochrome-sans);
    font-size: calc(19 * 100vw / 440);
    font-weight: 500;
    line-height: calc(19 * 100vw / 440);
    letter-spacing: 0;
    text-transform: uppercase;
    white-space: pre-line;
    overflow: hidden;
    text-overflow: clip;
    -webkit-line-clamp: unset;
  }

  .mobile-preview__card[data-object-id="28"] .mobile-preview__remaining {
    margin: 0;
    color: #e40046;
    font-family: var(--font-onest);
    font-size: calc(16 * 100vw / 440);
    font-weight: 500;
    line-height: calc(19 * 100vw / 440);
    letter-spacing: calc(0.16 * 100vw / 440);
  }

  /* 151: unlocked pink Onest CTA (Figma 5533:43087 / 6087:29194). */
  .mobile-preview__card[data-object-id="28"]
    .mobile-preview__remaining.is-chest-unlocked {
    font-family: var(--font-onest);
  }

  /* 196: endgame mobile card exits visually without changing map geometry. */
  .mobile-preview.is-endgame-exiting .mobile-preview__card {
    transform: translateY(calc(100vh + 100%));
    opacity: 0;
    transition:
      transform 140ms ease-in,
      opacity 140ms ease-in;
  }

  .mobile-preview__media {
    flex: 0 0 calc(86 * 100vw / 440);
    width: calc(86 * 100vw / 440);
    height: calc(86 * 100vw / 440);
    object-fit: cover;
    border-radius: calc(12 * 100vw / 440);
    user-select: none;
    -webkit-user-drag: none;
  }

  @media (prefers-reduced-motion: reduce) {
    .mobile-preview,
    .mobile-preview__card {
      transition: none;
    }
  }
}

/*
 * 025/040: mobile bottom sheet — full object detail (Figma 730:10705).
 * Mobile-only: hidden outside max-width:720px. Slides up from bottom.
 * Sheet shell still capped at 440 (Figma frame); gate ≠ shell width.
 */
.mobile-sheet,
.mobile-sheet-backdrop,
.embed-exit {
  display: none;
}

@media (max-width: 720px) {
  /*
   * 044-1: even when main logo is in-scroll under the sheet stack, keep a
   * soft-blur so the wordmark does not read crisp through the frosted sheet
   * (backdrop-filter sampling of in-frame layers is still uneven).
   */
  body:has(.mobile-sheet[data-state="open"]) .launch-chrome.is-main {
    filter: blur(30px);
  }

  .mobile-sheet-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 10;
    background: rgba(255, 255, 255, 0.2);
    -webkit-backdrop-filter: blur(30px);
    backdrop-filter: blur(30px);
    opacity: 0;
    transition: opacity var(--object-card-open-duration) var(--object-card-easing);
    will-change: opacity;
  }

  .mobile-sheet-backdrop[hidden] {
    display: none;
  }

  .mobile-sheet-backdrop[data-state="open"] {
    opacity: 1;
  }

  .mobile-sheet {
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 50%;
    /* 080: article top = 60@440 + layout guide; shell fills to bottom (no dvh-fraction height).
       115/160/160-2: --mm-safe-area-top = top layout guide (?safeAreaTop= pt from МП); not env(). */
    top: calc(60 * 100vw / 440 + var(--mm-safe-area-top, 0px));
    bottom: 0;
    z-index: 11;
    /* 052: 416@440 overlay — map width unchanged when sheet open. */
    width: calc(416 * 100vw / 440);
    max-width: calc(416 * 100vw / 440);
    background: transparent;
    color: #000;
    line-height: normal;
    transform: translate(-50%, 100%);
    transition: transform var(--object-card-open-duration) var(--object-card-easing);
    will-change: transform;
  }

  .mobile-sheet[hidden] {
    display: none;
  }

  .mobile-sheet[data-state="open"] {
    transform: translate(-50%, 0);
  }

  /* 026: during drag, follow the finger (no transition). */
  .mobile-sheet.is-dragging {
    transition: none;
    transform: translate(-50%, var(--sheet-drag-y, 0px));
  }

  /* 080: chrome sits above article — grabber-(7)-sheet / |-(12)-close-(12)-sheet. */
  .mobile-sheet__header {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 100%;
    height: calc(60 * 100vw / 440 + var(--mm-safe-area-top, 0px));
  }

  .mobile-sheet__grabber {
    position: absolute;
    bottom: calc(7 * 100vw / 440);
    left: 50%;
    transform: translateX(-50%);
    width: calc(32 * 100vw / 440);
    height: calc(5 * 100vw / 440);
    background: #fff;
    border-radius: 100px;
    transition: opacity var(--object-card-open-duration) var(--object-card-easing);
  }

  .mobile-sheet__close {
    position: absolute;
    top: calc(12 * 100vw / 440 + var(--mm-safe-area-top, 0px));
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    width: calc(36 * 100vw / 440);
    height: calc(36 * 100vw / 440);
    margin: 0;
    padding: 0;
    border: 0;
    background: rgba(0, 0, 0, 0.24);
    border-radius: calc(8 * 100vw / 440);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--object-card-open-duration) var(--object-card-easing);
  }

  /* 026: scrolled past threshold → close icon visible, grabber hidden. */
  .mobile-sheet[data-close-visible="true"] .mobile-sheet__close {
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-sheet[data-close-visible="true"] .mobile-sheet__grabber {
    opacity: 0;
  }

  .mobile-sheet__close-bar {
    position: absolute;
    width: calc(14 * 100vw / 440);
    height: calc(2 * 100vw / 440);
    background: #fff;
    border-radius: 1px;
  }

  .mobile-sheet__close-bar:first-child {
    transform: rotate(45deg);
  }

  .mobile-sheet__close-bar:last-child {
    transform: rotate(-45deg);
  }

  /*
   * 160 / 160-1: iOS embed exit on launch + main (Figma 6065:28488 / 28503).
   * Gate: only inside this @media (max-width: 720px) + html[data-embed="1"].
   * Wider viewport (desktop / WK desktop content mode / evidence 1280x700) ->
   * default .embed-exit { display:none } — intentional, not a web regression.
   * --mm-safe-area-top = top layout guide (pt from МП → web); top = guide + 16@440.
   * Frost = desktop mute toggle (blur 12px + opacity 0.24), not sheet backdrop 30px.
   * 219: z-index 2 — same tier as launch-chrome (later in DOM → paints above it),
   * below seamed stage/skybox (3) and .endgame (4) so sky covers exit; still below
   * backdrop(10)/sheet(11).
   * 219-1: while endgame open (incl. early frames before sky seam), hide + disable
   * hit so exit cannot show or post close over .endgame__back.
   */
  html[data-embed="1"] .embed-exit {
    display: flex;
    position: fixed;
    top: calc(16 * 100vw / 440 + var(--mm-safe-area-top, 0px));
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    width: calc(36 * 100vw / 440);
    height: calc(36 * 100vw / 440);
    margin: 0;
    padding: 0;
    border: 0;
    background: rgba(0, 0, 0, 0.24);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-radius: calc(8 * 100vw / 440);
    cursor: pointer;
    align-items: center;
    justify-content: center;
  }

  html[data-embed="1"][data-endgame-active] .embed-exit {
    visibility: hidden;
    pointer-events: none;
  }

  .embed-exit__icon {
    display: block;
    width: calc(24 * 100vw / 440);
    height: calc(24 * 100vw / 440);
    pointer-events: none;
  }

  .mobile-sheet__article {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: #fff;
    border-radius: calc(24 * 100vw / 440) calc(24 * 100vw / 440) 0 0;
    /* Figma 730:10705 article pt 10 + scroll pt 24 → 34; px 24; pb 120. @440 via 052. */
    padding: calc(34 * 100vw / 440) calc(24 * 100vw / 440) calc(120 * 100vw / 440);
    /* 080: hide scrollbar; keep overflow-y for close/CTA scroll-gates (026). */
    -ms-overflow-style: none;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .mobile-sheet__loader {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: grid;
    place-items: center;
    background: #fff;
    pointer-events: none;
    opacity: 1;
    transition: opacity 240ms ease;
  }

  .mobile-sheet__loader.is-fading {
    opacity: 0;
    transition: opacity 240ms ease;
    z-index: 2;
  }

  .mobile-sheet__loader-mark {
    box-sizing: border-box;
    width: calc(56 * 100vw / 440);
    height: calc(56 * 100vw / 440);
    overflow: hidden;
    filter: brightness(0);
  }

  .mobile-sheet__loader-mark > svg {
    display: block;
    width: 100%;
    height: 100%;
  }

  @media (prefers-reduced-motion: reduce) {
    .mobile-sheet__loader {
      transition: none;
    }
  }

  .mobile-sheet__article::-webkit-scrollbar {
    display: none;
  }

  .mobile-sheet__date {
    margin: 0 0 calc(16 * 100vw / 440);
    color: #e40046;
    font-family: var(--font-monochrome-sans);
    font-size: calc(14 * 100vw / 440);
    font-weight: 500;
    line-height: 1;
    text-align: center;
    text-transform: uppercase;
  }

  .mobile-sheet__title {
    margin: 0 0 calc(32 * 100vw / 440);
    font-family: var(--font-monochrome-sans);
    font-size: calc(23 * 100vw / 440);
    font-weight: 500;
    line-height: 1;
    text-align: center;
    text-transform: uppercase;
    white-space: pre-line;
  }

  /* 061 / 052: secondary + body media — intrinsic proportions. */
  .mobile-sheet__media {
    display: block;
    width: 100%;
    height: auto;
    margin: 0 0 calc(32 * 100vw / 440);
    border-radius: calc(12 * 100vw / 440);
    object-fit: cover;
    user-select: none;
    -webkit-user-drag: none;
  }

  .mobile-sheet__video {
    background: #eee;
  }

  .mobile-sheet__hero-media {
    position: relative;
  }

  .hero-video-mute-toggle {
    position: absolute;
    right: calc(12 * 100vw / 440);
    bottom: calc(12 * 100vw / 440);
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: calc(34 * 100vw / 440);
    height: calc(34 * 100vw / 440);
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: calc(8 * 100vw / 440);
    background: rgba(0, 0, 0, 0.24);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    cursor: pointer;
  }

  .hero-video-mute-toggle__icon {
    display: block;
    width: calc(18 * 100vw / 440);
    height: calc(18 * 100vw / 440);
    pointer-events: none;
  }

  /* 061/094: primary = title + next media (img|video) or mute wrapper. */
  .mobile-sheet__title + .mobile-sheet__media,
  .mobile-sheet__title + .mobile-sheet__hero-media {
    width: calc(368 * 100vw / 440);
    height: calc(528 * 100vw / 440);
    object-fit: cover;
  }

  .mobile-sheet__title + .mobile-sheet__hero-media {
    overflow: hidden;
    border-radius: calc(12 * 100vw / 440);
    margin: 0 0 calc(32 * 100vw / 440);
  }

  .mobile-sheet__title + .mobile-sheet__hero-media > .mobile-sheet__media {
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: cover;
  }

  /* After body copy, Figma major-block gap is 48 (not first media→desc 32). */
  .mobile-sheet__description + .mobile-sheet__media {
    margin-bottom: calc(48 * 100vw / 440);
  }

  .mobile-sheet__description {
    margin: 0 0 calc(48 * 100vw / 440);
    font-family: var(--font-onest);
    font-size: calc(16 * 100vw / 440);
    font-weight: 500;
    line-height: calc(19 * 100vw / 440);
    letter-spacing: calc(0.16 * 100vw / 440);
  }

  .mobile-sheet__description:last-child {
    margin-bottom: 0;
  }

  /*
   * 178: locked chest mobile sheet —
   * V:|-24-[date]-16-[title]-32-[video]-32-[text]-32-[cta]-24-| H=24.
   * In-flow CTA; hide floating «вернуться…». Cover crop fills leftover height.
   */
  .mobile-sheet__article[data-object-id="28"] {
    display: flex;
    flex-direction: column;
    padding: calc(24 * 100vw / 440) calc(24 * 100vw / 440)
      calc(24 * 100vw / 440);
    overflow-y: hidden;
  }

  .mobile-sheet__article[data-object-id="28"] .mobile-sheet__date {
    flex: 0 0 auto;
    margin: 0 0 calc(16 * 100vw / 440);
  }

  .mobile-sheet__article[data-object-id="28"] .mobile-sheet__title {
    flex: 0 0 auto;
    margin: 0 0 calc(32 * 100vw / 440);
  }

  .mobile-sheet__article[data-object-id="28"] .mobile-sheet__title + .mobile-sheet__media,
  .mobile-sheet__article[data-object-id="28"] .mobile-sheet__title + .mobile-sheet__hero-media,
  .mobile-sheet__article[data-object-id="28"] .mobile-sheet__cover--chest {
    flex: 1 1 auto;
    align-self: stretch;
    width: calc(368 * 100vw / 440);
    height: auto;
    min-height: 0;
    margin: 0 0 calc(32 * 100vw / 440);
    overflow: hidden;
    border-radius: calc(12 * 100vw / 440);
    object-fit: cover;
  }

  .mobile-sheet__article[data-object-id="28"]
    .mobile-sheet__cover--chest
    > .mobile-sheet__media {
    width: 100%;
    height: 100%;
    margin: 0;
    border-radius: 0;
    object-fit: cover;
  }

  .mobile-sheet__article[data-object-id="28"] .mobile-sheet__description {
    flex: 0 0 auto;
    margin: 0 0 calc(32 * 100vw / 440);
    text-align: center;
    white-space: pre-line;
  }

  .mobile-sheet__article[data-object-id="28"] .mobile-sheet__chest-cta {
    flex: 0 0 auto;
    box-sizing: border-box;
    width: 100%;
    height: calc(44 * 100vw / 440);
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: calc(22 * 100vw / 440);
    font-family: var(--font-monochrome-sans);
    font-size: calc(15.4 * 100vw / 440);
    font-weight: 500;
    line-height: calc(15.4 * 100vw / 440);
    text-align: center;
    text-transform: uppercase;
  }

  .mobile-sheet__article[data-object-id="28"] .mobile-sheet__chest-cta--locked {
    background: #ececec;
    color: #9b9b9b;
    cursor: default;
  }

  .mobile-sheet__article[data-object-id="28"] .mobile-sheet__chest-cta--unlocked {
    background: #000;
    color: #fff;
    cursor: pointer;
  }

  .mobile-sheet:has(.mobile-sheet__article[data-object-id="28"]) .mobile-sheet__cta {
    display: none;
  }

  .mobile-sheet__cta {
    position: absolute;
    left: 50%;
    bottom: calc(-65 * 100vw / 440);
    transform: translateX(-50%);
    width: calc(309 * 100vw / 440);
    height: calc(44 * 100vw / 440);
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: calc(22 * 100vw / 440);
    background: #000;
    color: #fff;
    font-family: var(--font-monochrome-sans);
    font-size: calc(15.4 * 100vw / 440);
    font-weight: 500;
    line-height: calc(15.4 * 100vw / 440);
    text-align: center;
    white-space: nowrap;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition:
      opacity var(--object-card-open-duration) var(--object-card-easing),
      bottom var(--object-card-open-duration) var(--object-card-easing);
  }

  /* 040-3: CTA hidden at scroll top (730:10705), visible after scroll (730:10729). */
  .mobile-sheet[data-cta-visible="true"] .mobile-sheet__cta {
    bottom: calc(24 * 100vw / 440);
    opacity: 1;
    pointer-events: auto;
  }

  /*
   * 208-2 / Figma 7625:6873 @440: article inset y=56 within МОДАЛКА
   * (was absolute white y=178 — gap too large). .mobile-sheet__article is
   * the scroll owner.
   * --mm-sheet-keyboard-inset: visualViewport covered band (main.js).
   * Content pad 42 (= article pt10 + scroll pt32), px24, pb24+keyboard.
   * 208-5: sheet bottom:0 (content-sheet parity); former 65@440 clearance
   * was only for shared CTA, removed after 208-4 hid CTA on raffle.
   */
  .mobile-sheet__article[data-object-id="endgame-raffle"] {
    box-sizing: border-box;
    flex: 1 1 0;
    min-height: 0;
    max-height: 100%;
    padding: calc(42 * 100vw / 440) calc(24 * 100vw / 440)
      calc(24 * 100vw / 440 + var(--mm-sheet-keyboard-inset, 0px));
    overflow-y: auto;
    overscroll-behavior-y: contain;
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
    background: #fff;
  }

  /* 208-2 base top 56@440; 210: + --mm-safe-area-top guide (not env --safe-top).
   * 208-5: bottom:0 — no CTA clearance gap under sheet. */
  .mobile-sheet:has(.mobile-sheet__article[data-object-id="endgame-raffle"]) {
    top: calc(56 * 100vw / 440 + var(--mm-safe-area-top, 0px));
    bottom: 0;
    height: auto;
  }

  .mobile-sheet:has(.mobile-sheet__article[data-object-id="endgame-raffle"])
    .mobile-sheet__header {
    height: calc(56 * 100vw / 440 + var(--mm-safe-area-top, 0px));
  }

  /* 208-4: raffle is form chrome, not a content event sheet — hide shared
   * «вернуться к путешествию» CTA. */
  .mobile-sheet:has(.mobile-sheet__article[data-object-id="endgame-raffle"])
    .mobile-sheet__cta {
    display: none;
  }

  .mobile-sheet__article[data-object-id="endgame-raffle"]
    .endgame-raffle__panel {
    position: static;
    display: block;
    width: 100%;
    height: auto;
    min-height: 0;
    padding: 0;
    overflow: visible;
    border-radius: 0;
    background: transparent;
  }

  .mobile-sheet__article[data-object-id="endgame-raffle"]
    .endgame-raffle__dismiss {
    display: none;
  }

  /* Toast is mounted on body while raffle sheet is open (avoid transform
   * containing block from .mobile-sheet).
   * 208-1/210: Y-center = midpoint viewport top → sheet top
   * (base 56@440 + --mm-safe-area-top; Figma `6963:37136`). */
  html:has(.mobile-sheet__article[data-object-id="endgame-raffle"])
    .endgame-raffle__toast {
    position: fixed;
    z-index: 20;
    top: calc((56 * 100vw / 440 + var(--mm-safe-area-top, 0px)) / 2);
    left: 50%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    width: calc(353 * 100vw / 440);
    height: calc(44 * 100vw / 440);
    margin: 0;
    padding: calc(12 * 100vw / 440) calc(16 * 100vw / 440);
    border-radius: calc(24 * 100vw / 440);
    transform: translate(-50%, -50%);
    background: #e40046;
    color: #fff;
    font-family: var(--font-onest);
    font-weight: 500;
    font-size: calc(16 * 100vw / 440);
    line-height: normal;
    text-align: center;
    pointer-events: none;
  }

  html:has(.mobile-sheet__article[data-object-id="endgame-raffle"])
    .endgame-raffle__toast[hidden] {
    display: none;
  }

  .mobile-sheet__article[data-object-id="endgame-raffle"]
    .endgame-raffle__form,
  .mobile-sheet__article[data-object-id="endgame-raffle"]
    .endgame-raffle__success {
    display: flex;
    flex-direction: column;
    gap: calc(56 * 100vw / 440);
    width: 100%;
    height: auto;
  }

  .mobile-sheet__article[data-object-id="endgame-raffle"]
    .endgame-raffle__copy,
  .mobile-sheet__article[data-object-id="endgame-raffle"]
    .endgame-raffle__fields,
  .mobile-sheet__article[data-object-id="endgame-raffle"]
    .endgame-raffle__intro,
  .mobile-sheet__article[data-object-id="endgame-raffle"]
    .endgame-raffle-field,
  .mobile-sheet__article[data-object-id="endgame-raffle"]
    .endgame-raffle-consent {
    box-sizing: border-box;
    width: 100%;
  }

  .mobile-sheet__article[data-object-id="endgame-raffle"]
    .endgame-raffle__fields {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .mobile-sheet__article[data-object-id="endgame-raffle"]
    .endgame-raffle__consents {
    display: flex;
    flex-direction: column;
    gap: calc(10 * 100vw / 440);
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    min-width: 0;
  }

  .mobile-sheet__article[data-object-id="endgame-raffle"]
    .endgame-raffle-field {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: calc(8 * 100vw / 440);
    height: calc(80 * 100vw / 440);
    padding-bottom: calc(16 * 100vw / 440);
    border-bottom: 1px solid #000;
    color: #999;
    cursor: text;
  }

  .mobile-sheet__article[data-object-id="endgame-raffle"]
    .endgame-raffle-field.is-error {
    border-bottom-color: #e40046;
    color: #e40046;
  }

  .mobile-sheet__article[data-object-id="endgame-raffle"]
    .endgame-raffle-field:not(.is-filled):not(:focus-within) {
    justify-content: center;
    gap: 0;
    padding-bottom: 0;
  }

  .mobile-sheet__article[data-object-id="endgame-raffle"]
    .endgame-raffle-field__label {
    font-family: var(--font-onest);
    font-weight: 500;
    font-size: calc(16 * 100vw / 440);
    line-height: normal;
  }

  .mobile-sheet__article[data-object-id="endgame-raffle"]
    .endgame-raffle-field.is-filled
    .endgame-raffle-field__label {
    color: #999;
  }

  .mobile-sheet__article[data-object-id="endgame-raffle"]
    .endgame-raffle-field.is-error
    .endgame-raffle-field__label {
    color: #e40046;
  }

  /* Store form scripts add input_text--focus/filled to the label. Their
   * global rule draws an inset rectangle around the whole phone row. */
  .mobile-sheet__article[data-object-id="endgame-raffle"]
    .endgame-raffle-field,
  .mobile-sheet__article[data-object-id="endgame-raffle"]
    .endgame-raffle-field.input_text--focus,
  .mobile-sheet__article[data-object-id="endgame-raffle"]
    .endgame-raffle-field.input_text--filled {
    box-shadow: none !important;
    outline: 0 !important;
  }

  .mobile-sheet__article[data-object-id="endgame-raffle"]
    .endgame-raffle-field:not(.is-filled):not(:focus-within)
    .endgame-raffle-field__input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
  }

  .mobile-sheet__article[data-object-id="endgame-raffle"]
    .endgame-raffle-field__input {
    box-sizing: border-box;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    outline: none;
    background: transparent;
    color: #000;
    font-family: var(--font-onest);
    font-weight: 500;
    font-size: calc(16 * 100vw / 440);
    line-height: normal;
  }

  .mobile-sheet__article[data-object-id="endgame-raffle"]
    .endgame-raffle-field__input:focus,
  .mobile-sheet__article[data-object-id="endgame-raffle"]
    .endgame-raffle-field__input:focus-visible {
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
  }

  .mobile-sheet__article[data-object-id="endgame-raffle"]
    .endgame-raffle-field.is-error
    .endgame-raffle-field__input {
    color: #e40046;
  }

  .mobile-sheet__article[data-object-id="endgame-raffle"]
    .endgame-raffle__top {
    display: flex;
    flex: none;
    flex-direction: column;
    gap: calc(40 * 100vw / 440);
    justify-content: flex-start;
    width: 100%;
  }

  .mobile-sheet__article[data-object-id="endgame-raffle"]
    .endgame-raffle__intro {
    display: flex;
    flex-direction: column;
    gap: calc(32 * 100vw / 440);
  }

  .mobile-sheet__article[data-object-id="endgame-raffle"]
    .endgame-raffle__copy {
    display: flex;
    flex-direction: column;
    gap: calc(20 * 100vw / 440);
    text-align: center;
  }

  .mobile-sheet__article[data-object-id="endgame-raffle"]
    .endgame-raffle-consent {
    position: relative;
    display: flex;
    gap: calc(14 * 100vw / 440);
    align-items: center;
    min-height: 0;
    cursor: pointer;
  }

  .mobile-sheet__article[data-object-id="endgame-raffle"]
    .endgame-raffle-consent--top {
    align-items: flex-start;
  }

  .mobile-sheet__article[data-object-id="endgame-raffle"]
    .endgame-raffle-consent__input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .mobile-sheet__article[data-object-id="endgame-raffle"]
    .endgame-raffle-consent__box {
    box-sizing: border-box;
    flex-shrink: 0;
    width: calc(24 * 100vw / 440);
    height: calc(24 * 100vw / 440);
    border: 1px solid #000;
    border-radius: calc(6 * 100vw / 440);
    background: transparent;
  }

  .mobile-sheet__article[data-object-id="endgame-raffle"]
    .endgame-raffle-consent.is-error
    .endgame-raffle-consent__box {
    border-color: #e40046;
  }

  .mobile-sheet__article[data-object-id="endgame-raffle"]
    .endgame-raffle-consent.is-error
    .endgame-raffle-consent__text {
    color: #e40046;
  }

  .mobile-sheet__article[data-object-id="endgame-raffle"]
    .endgame-raffle-consent__check {
    display: none;
    width: calc(24 * 100vw / 440);
    height: calc(24 * 100vw / 440);
    pointer-events: none;
  }

  .mobile-sheet__article[data-object-id="endgame-raffle"]
    .endgame-raffle-consent__input:checked
    + .endgame-raffle-consent__box {
    border-color: transparent;
  }

  .mobile-sheet__article[data-object-id="endgame-raffle"]
    .endgame-raffle-consent__input:checked
    + .endgame-raffle-consent__box
    .endgame-raffle-consent__check {
    display: block;
  }

  .mobile-sheet__article[data-object-id="endgame-raffle"]
    .endgame-raffle-consent__text {
    flex: 1 1 auto;
    min-width: 0;
    font-family: var(--font-onest);
    font-weight: 500;
    font-size: calc(13 * 100vw / 440);
    line-height: calc(20 * 100vw / 440);
    letter-spacing: calc(0.13 * 100vw / 440);
    color: #000;
  }

  .mobile-sheet__article[data-object-id="endgame-raffle"]
    .endgame-raffle__captcha {
    min-height: calc(100 * 100vw / 440);
  }

  .mobile-sheet__article[data-object-id="endgame-raffle"]
    .endgame-raffle-consent__text
    a,
  .mobile-sheet__article[data-object-id="endgame-raffle"]
    .endgame-raffle__policy,
  .mobile-sheet__article[data-object-id="endgame-raffle"]
    .endgame-raffle__link {
    color: inherit;
    text-decoration: underline;
    text-underline-position: from-font;
    text-decoration-skip-ink: none;
  }

  .mobile-sheet__article[data-object-id="endgame-raffle"]
    .endgame-raffle__title {
    box-sizing: border-box;
    width: 100%;
    min-height: calc(56 * 100vw / 440);
    margin: 0;
    font-family: var(--font-monochrome-sans);
    font-weight: 500;
    font-size: calc(28 * 100vw / 440);
    line-height: 1;
    text-align: center;
    text-transform: uppercase;
    color: #000;
  }

  .mobile-sheet__article[data-object-id="endgame-raffle"]
    .endgame-raffle__sub {
    margin: 0;
    font-family: var(--font-onest);
    font-weight: 500;
    font-size: calc(16 * 100vw / 440);
    line-height: calc(19 * 100vw / 440);
    letter-spacing: calc(0.16 * 100vw / 440);
    text-align: center;
    color: #000;
  }

  .mobile-sheet__article[data-object-id="endgame-raffle"]
    .endgame-raffle__sub-break {
    display: none;
  }

  .mobile-sheet__article[data-object-id="endgame-raffle"]
    .endgame-raffle__submit {
    box-sizing: border-box;
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: calc(44 * 100vw / 440);
    margin: 0;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: calc(22 * 100vw / 440);
    background: #000;
    color: #fff;
    font-family: var(--font-monochrome-sans);
    font-weight: 500;
    font-size: calc(15.4 * 100vw / 440);
    line-height: calc(15.4 * 100vw / 440);
    text-align: center;
    cursor: pointer;
  }

  .mobile-sheet__article[data-object-id="endgame-raffle"]
    .endgame-raffle__success-main {
    display: flex;
    flex: none;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: calc(32 * 100vw / 440);
    min-height: calc(502 * 100vw / 440);
    width: 100%;
  }

  .mobile-sheet__article[data-object-id="endgame-raffle"]
    .endgame-raffle__success-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: calc(56 * 100vw / 440);
    height: calc(56 * 100vw / 440);
    margin: calc(150 * 100vw / 440) auto 0;
    overflow: visible;
  }

  .mobile-sheet__article[data-object-id="endgame-raffle"]
    .endgame-raffle__success-icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
  }

  @media (prefers-reduced-motion: reduce) {
    .mobile-sheet,
    .mobile-sheet-backdrop,
    .mobile-sheet__grabber,
    .mobile-sheet__close,
    .mobile-sheet__cta {
      transition: none;
    }
  }

  /* 026: reduce transparency on devices that request it. */
  @media (prefers-reduced-transparency: reduce) {
    .mobile-sheet-backdrop {
      -webkit-backdrop-filter: none;
      backdrop-filter: none;
      background: rgba(0, 0, 0, 0.4);
    }
  }
}
