/* The home page (art/ui/web/watch/): phone first, laid out by the page's own width (a container query on #app, never the viewport and never a coordinate).
   Sizes and gaps are the mockups' (the 390 pt phone, the 1440 desktop); every size that grows with the page is a clamp() of the container's width, so the
   mockup's own numbers come out exactly at its own width. The phone's mock draws a 50 px status bar the page does not have: the page starts where the
   mock's content does, 50 px higher. */

.page {
  --pad: 22px;
  --card-w: 104px;
  --card-h: 185px;
}
.page { padding-bottom: 64px; }

/* ---- the hero ---------------------------------------------------------------------------------------------------------------------- */
.hero { --art-h: 130cqw; --art-w: 66%; position: relative; overflow: hidden; padding-top: 89.7436cqw; }                                 /* 350 px at 390 wide: where the copy starts */
.hero-media { position: absolute; top: 0; left: 0; right: 0; height: var(--art-h); }          /* the art block: 507 px at 390 wide */
.hero-art { position: absolute; inset: 0; --mask-left: var(--mask-all); }                    /* a phone's art fades at its foot only; a wide page's at its left only */
.hero-art .pic img { object-position: 50% 30%; }
.hero[data-mode="predrop"] { padding-top: 87.1795cqw; }                               /* new-phone's frame starts its copy 10 px higher: 340 px at 390 wide */
.hero-fade { position: absolute; top: 0; left: 0; right: 0; height: 203.6cqw; pointer-events: none;
  background: linear-gradient(180deg, rgba(10, 10, 11, .55) 0%, rgba(10, 10, 11, 0) 12.8%, rgba(10, 10, 11, 0) 29.8%, rgba(10, 10, 11, .92) 59.6%, var(--bg) 72.4%); }
.hero-copy { position: relative; padding: 0 var(--pad); }
.original { font-family: var(--display); font-weight: 700; font-size: 12px; letter-spacing: .3em; color: var(--gold); }
.title { display: block; font-family: var(--display); font-weight: 800; font-size: 60px; line-height: .86; margin: 10px 0 12px; }
.meta { display: flex; align-items: center; gap: 4px; font-size: 13px; color: var(--soft); margin-bottom: 10px; }
.meta .new { color: var(--red); font-weight: 700; }
.meta .dot { opacity: .5; }
.meta .meta-season { display: none; }
.logline { font-size: 15px; line-height: 1.45; color: var(--softer); margin-bottom: 18px; }
.logline-full { display: none; }
.buttons { display: block; }
/* the phone's Play is the big gold button; on a wide page it is the plain .btn-white of the primitives */
@container page (width < 700px) {
  .hero-play { display: flex; width: 100%; height: 56px; padding: 0; background: var(--gold); color: var(--ink); border-radius: var(--radius-big); font-family: var(--display); font-weight: 800; font-size: 21px; }
  .hero-play:hover { background: var(--gold-hi); }
  .hero-play svg { width: 20px; height: 20px; margin-top: -2px; }
}
.buttons.is-pending { visibility: hidden; }                                              /* a member's buttons wait for /api/me: the place is kept, nothing shows wrong */
.members { display: flex; align-items: center; justify-content: center; gap: 7px; font-size: 14px; color: var(--soft); margin-top: 12px; }
.members svg { flex: none; width: 15px; height: 15px; color: var(--gold); }
.members b { color: var(--gold); font-weight: 700; }

/* before the drop: the DROPS IN title and the one time (the clock itself is base.css's) */
.dropsin { font-family: var(--display); font-weight: 700; font-size: 11px; letter-spacing: .26em; color: var(--muted); margin: 4px 0 8px; }
.when { margin-top: 12px; font-size: 14px; color: var(--soft); }
.when b { color: #fff; }

/* ---- the season row ---------------------------------------------------------------------------------------------------------------- */
.row { padding: 0 var(--pad); }
.row h2 { font-family: var(--display); font-weight: 700; font-size: 19px; margin: 26px 0 10px; display: flex; align-items: baseline; gap: 14px; }
.row[data-mode="predrop"] h2 { margin-top: 20px; }                                      /* and its row heading 6 px nearer */
.row[data-mode="predrop"] .card { --card-h: 150px; }                                    /* and its cards 150 px high: the clock takes the room */
.row h2 small { display: none; font-family: var(--body); font-size: 14px; font-weight: 500; color: var(--muted); }
.strip { position: relative; display: flow-root; }
.cards { position: relative; display: flex; gap: 8px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; padding-block: 20px; margin-block: -20px; margin-right: calc(-1 * var(--pad)); }
.cards::-webkit-scrollbar { display: none; }
.cards.is-paging { scroll-snap-type: none; }
.cards .card { scroll-snap-align: start; }
.card-label { top: 7px; left: 8px; font-size: 17px; line-height: normal; }
.card .badge { left: 8px; bottom: 9px; font-size: 10px; padding: 3px 6px 2px; }
.card .badge svg { width: 10px; height: 10px; }
.card .badge-members { max-width: calc(100% - 16px); white-space: normal; }   /* MEMBERS FIRST wraps rather than run off a 104 px card */
.card.is-dim .pic img { filter: brightness(.42) saturate(.85); }
.cards[data-mode="predrop"] .card.is-dim .pic img { filter: brightness(.55); }
.card.is-locked .pic img { filter: blur(3px) brightness(.5); transform: scale(1.1); }
.card-clock { position: absolute; z-index: 2; top: 50%; left: 50%; width: 30px; height: 30px; margin: -15px 0 0 -15px; color: var(--softer); }
.card-caption { font-size: 12px; }
.soon .card { flex: none; }
.soon .cards { overflow: visible; margin-right: 0; }

/* ---- the game band ----------------------------------------------------------------------------------------------------------------- */
/* The art is a window at the band's head fading into its navy (the frames' 150 px), so the copy and the live drop's card (base.css .dc) stand on the navy whatever the band's height: the band is as tall as
   its copy and the card need (art/ui/web/watch/drops/ frames 1, 2). The card is under the App Store button on a phone and beside it on a wide page. */
.game { position: relative; margin: 32px var(--pad) 0; border-radius: var(--radius-band); overflow: hidden; background: #0f2236; }
.game-art { position: absolute; top: 0; left: 0; right: 0; height: 150px; --mask-left: linear-gradient(180deg, #000 45%, transparent 100%); }
.game-art .pic img { object-position: 50% 32%; }
.game-fade { display: none; }
.game-copy { position: relative; padding: 122px 16px 16px; }
.game .label { font-family: var(--display); font-weight: 700; font-size: 11px; letter-spacing: .26em; color: var(--gold); }
.game .name { display: none; }
.game p { font-size: 15px; line-height: 1.35; margin: 6px 0 12px; color: #eef2f7; }
.game .actions { display: flex; flex-direction: column; align-items: flex-start; }
.game .dc-slot { align-self: stretch; max-width: 460px; margin-top: 14px; }
.appstore { display: flex; flex: none; align-items: center; gap: 8px; white-space: nowrap; background: #000; border: 1px solid #a6a6a6; border-radius: 9px; padding: 5px 12px 5px 9px; color: #fff; }
.appstore svg { width: 21px; height: 21px; }
.appstore small { display: block; font-size: 9px; line-height: 1; }
.appstore strong { display: block; font-size: 17px; line-height: 1.05; font-weight: 600; }

/* ---- the wide page ------------------------------------------------------------------------------------------------------------------ */
@container page (min-width: 700px) {
  .probe.wide-only { display: block; }
  .page {
    --pad: clamp(24px, 4.4444cqw, 64px);
    --card-w: clamp(150px, 14.1667cqw, 240px);
    --card-h: calc(var(--card-w) * 363 / 204);
  }

  /* the hero is as tall as the mockup draws it at 1440 (a minimum) and as tall as its copy needs: the copy flows in a column under its top padding, so longer copy grows
     the hero, it is never cut by it; the art and the fade stand behind it, filling whatever the height comes to */
  .hero, .hero[data-mode="predrop"] { min-height: clamp(640px, 54.1667cqw, 900px); padding-top: 0; }
  .hero-media { inset: 0; height: auto; }
  .hero-art { left: auto; width: var(--art-w); --mask-left: var(--mask-left-full); --mask-bottom: var(--mask-all); }
  .hero-art .pic img { object-position: 50% 38%; }
  .hero-fade { height: auto; inset: 0;
    background: linear-gradient(90deg, var(--bg) 30%, rgba(10, 10, 11, .75) 46%, rgba(10, 10, 11, 0) 70%), linear-gradient(0deg, var(--bg) 0%, rgba(10, 10, 11, 0) 30%); }
  .hero-copy { margin-left: var(--pad); width: min(600px, 46cqw); padding: clamp(120px, 13.6111cqw, 230px) 0 48px; }
  .original { font-size: 14px; }
  .title { font-size: clamp(64px, 7.7778cqw, 128px); margin: 18px 0 22px; letter-spacing: -.01em; text-shadow: 0 6px 30px rgba(0, 0, 0, .4); }
  .meta { gap: 10px; font-size: 15px; margin-bottom: 0; }
  .meta .meta-season { display: inline; }
  .logline { font-size: 19px; line-height: 1.5; margin: 18px 0 28px; max-width: 520px; }
  .logline-full { display: inline; }
  .logline-short { display: none; }
  .buttons { display: flex; gap: 12px; }
  .hero-info.wide-only { display: inline-flex; }
  .members { justify-content: flex-start; margin-top: 22px; gap: 8px; font-size: 15px; }
  .members svg { width: 16px; height: 16px; }

  .row { margin-top: 8px; }
  .row h2, .row[data-mode="predrop"] h2 { font-size: 26px; margin: 0 0 14px; }
  .row[data-mode="predrop"] .card { --card-h: calc(var(--card-w) * 363 / 204); }
  .row h2 small { display: inline; }
  .cards { gap: 12px; margin-left: calc(-1 * var(--pad)); padding-left: var(--pad); scroll-padding-left: var(--pad); }
  .card-label { top: 12px; left: 14px; font-size: calc(var(--card-w) * .147); line-height: 1; }
  .poster::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .45) 0%, rgba(0, 0, 0, 0) 26%, rgba(0, 0, 0, 0) 62%, rgba(0, 0, 0, .85) 100%); }
  .card-show.wide-only { display: block; position: absolute; z-index: 2; bottom: 14px; left: 0; right: 0; text-align: center; font-family: var(--display); font-weight: 800; font-size: 19px; line-height: 1; }
  .soon .card-show { font-size: 22px; }
  .card .badge { top: 14px; right: 12px; left: auto; bottom: auto; font-size: 11px; padding: 4px 7px 3px; }
  .card .badge-members { top: calc(var(--card-w) * .255); left: 14px; right: auto; padding: 4px 7px 3px; }
  .card .badge svg { width: 11px; height: 11px; }
  .card .badge-members { max-width: calc(100% - 28px); }
  .card .badge-time, .card .badge-soon { top: calc(var(--card-w) * .255); left: 14px; right: auto; }
  .soon .card .badge-soon { top: 14px; left: auto; right: 12px; }
  .card.is-dim .pic img { filter: none; }
  .card.is-dim .pic img, .cards[data-mode="predrop"] .card.is-dim .pic img { filter: brightness(.7); }
  .card.is-locked .pic img { filter: none; transform: none; }
  .card-caption { font-size: 14px; }
  .card-caption.wide-only { display: block; }
  .row-arrow.wide-only { display: grid; place-items: center; position: absolute; z-index: 3; top: calc(var(--card-h) / 2 - 22px); width: 44px; height: 44px; border-radius: 50%; background: rgba(20, 20, 22, .72); border: 1px solid rgba(255, 255, 255, .4); opacity: 0; transition: opacity var(--fade-ms) ease-out; }
  .row-arrow svg { width: 22px; height: 22px; }
  .row-arrow-prev { left: calc(var(--pad) / 2 - 22px + 8px); }
  .row-arrow-next { right: 12px; }
  .strip:hover .row-arrow:not(:disabled), .row-arrow:focus-visible { opacity: 1; }
  .row-arrow:disabled { opacity: 0; pointer-events: none; }
  .soon { margin-top: 56px; }
  .game { margin-top: 56px; margin-inline: var(--pad); min-height: 280px; }
  .game-copy { padding: 28px; }
  .game .name { display: flex; align-items: center; gap: 16px; margin: 14px 0 12px; }
  .game .name img { width: 56px; height: 56px; border-radius: 13px; }
  .game .name div { font-family: var(--display); font-weight: 800; font-size: 32px; line-height: 1; }
  .game .label { font-size: 12px; letter-spacing: .28em; }
  .game p { font-size: 16px; }

}

/* the game band lays its copy beside the art from 1100 up; between the phone's and that, the phone's band (copy over the foot of the art) is wider */
@container page (min-width: 1100px) {
  .game { margin: 56px var(--pad) 0; min-height: clamp(300px, 25cqw, 380px); background: #0d1b2b; }
  .game-art { top: 0; bottom: 0; left: auto; width: 66%; height: auto; --fade-stop: 45%; --mask-left: var(--mask-left-full); }
  .game-art .pic img { object-position: 50% 45%; }
  .game-fade { display: block; background: linear-gradient(90deg, rgba(13, 27, 43, .9) 30%, rgba(13, 27, 43, 0) 58%); }
  .game-copy { width: min(608px, 100%); padding: 46px 0 42px 48px; }
  .game .label { font-size: 14px; letter-spacing: .28em; }
  .game .name { display: flex; align-items: center; gap: 16px; margin: 14px 0 12px; }
  .game .name img { width: 64px; height: 64px; border-radius: 15px; }
  .game .name div { font-family: var(--display); font-weight: 800; font-size: 40px; line-height: 1; }
  .game p { font-size: 17px; line-height: 1.5; max-width: 480px; margin: 0; color: #dbe3ec; }
  .game .actions { flex-direction: row; align-items: center; gap: 24px; margin-top: 24px; }
  .game .dc-slot { align-self: auto; flex: none; max-width: none; margin-top: 0; }
  .game .dc { width: 340px; }
  .appstore { gap: 10px; border-radius: 10px; padding: 7px 16px 7px 12px; }
  .appstore svg { width: 26px; height: 26px; }
  .appstore small { font-size: 11px; }
  .appstore strong { font-size: 21px; letter-spacing: -.01em; }
  .dc-next { font-size: 16px; }
  /* the card a size up */
  .game .dc-band { height: 32px; padding: 0 7px 0 14px; }
  .game .dc-name { font-size: 16px; }
  .game .dc-clock { height: 22px; font-size: 13px; padding: 0 9px 0 7px; }
  .game .dc-body { gap: 12px; padding: 10px 12px 11px 10px; }
  .game .dc-pic { width: 60px; height: 60px; }
  .game .dc-gift b { font-size: 22px; }
  .game .dc-gift span { font-size: 14px; }
  .game .dc-btn { height: 44px; padding: 0 20px; border-radius: 12px; }
  .game .dc-btn span { font-size: 19px; }
}

@media (hover: none) {
  .row-arrow { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  .row-arrow { transition-duration: var(--fade-ms); }
}
