/* A part's page (art/ui/web/watch/watch-phone.png frame 2, drops-phone.png frames 2 and 3): 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); every size that grows with the page is a clamp() of the container's
   width. The mockups draw a 50 px status bar the page does not have, so the art block is 50 px less than the mockup's percentage of the screen (72 % of 844 less 50 is
   557.7 px = 143 cqw at 390; 66 % is 507 px = 130 cqw) and the shade's stops are the mockup's less the same 50 px.
   The page is as tall as the screen (a minimum) and its copy stands at the foot of it, so the button is where the thumb is; a taller copy grows the page.
   Three states draw the copy: open (a part the viewer can watch: watch-phone frame 2), drop (a part that has not dropped, and soon: the drops frames) and predrop. */
.part-page { --pad: 24px; }

.part-hero {
  --art-h: 143cqw;
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 100svh; padding: 72px var(--pad) 44px; overflow: hidden;
}
.part-media { position: absolute; top: 0; left: 0; right: 0; height: var(--art-h); }
.part-art { position: absolute; inset: 0; --mask-left: var(--mask-all); }
.part-art .pic img { object-position: 50% 40%; }
.part-shade { position: absolute; top: 0; left: 0; right: 0; height: 203.59cqw; pointer-events: none;                          /* 794 px at 390 wide: the screen less its status bar */
  background: linear-gradient(180deg, rgba(10, 10, 11, .5) -6.3%, rgba(10, 10, 11, 0) 10.71%, rgba(10, 10, 11, 0) 36.22%, rgba(10, 10, 11, .9) 63.86%, var(--bg) 76.61%); }
.part-copy { position: relative; }

/* the drops frames: the art 66 % of the screen and a touch darker, the shade's stops where the frame has them, the copy 61.5 px from the foot: its top is then at 300 in the frame (the title's line is 21.5 px at the device's scale, so the copy is half a point taller than the 478 the frame draws) */
.part-hero[data-kind="drop"], .part-hero[data-kind="soon"], .part-hero[data-kind="predrop"] { --art-h: 130cqw; padding-bottom: 61.5px; }
.part-hero[data-kind="drop"] .part-art .pic img, .part-hero[data-kind="soon"] .part-art .pic img, .part-hero[data-kind="predrop"] .part-art .pic img { object-position: 50% 42%; filter: brightness(.8); }
.part-hero[data-kind="drop"] .part-shade, .part-hero[data-kind="soon"] .part-shade, .part-hero[data-kind="predrop"] .part-shade {
  background: linear-gradient(180deg, rgba(10, 10, 11, .55) -6.3%, rgba(10, 10, 11, 0) 10.71%, rgba(10, 10, 11, 0) 21.34%, rgba(10, 10, 11, .75) 40.47%, rgba(10, 10, 11, .95) 55.35%, var(--bg) 68.11%); }

/* the head: the show's name, PART N and the part's title */
.part-show { font-family: var(--display); font-weight: 800; font-size: 26px; line-height: 1; }
.part-no { font-family: var(--display); font-weight: 800; font-size: min(104px, 26.6667cqw); line-height: .86; margin: 6px 0 4px; }          /* 104 px at 390 wide, and a narrower page takes it down so "PART 10" stays on one line */
.part-no span { color: var(--gold); }
.part-no[data-long] { font-size: min(88px, 22.5cqw); }                                         /* PART 10 has a digit more: it comes out one line on the narrowest page too */
.part-title { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.part-hero:not([data-kind="open"]) .part-show { font-size: 24px; }
.part-hero:not([data-kind="open"]) .part-no { font-size: min(100px, 25.641cqw); margin: 8px 0 2px; }
.part-hero:not([data-kind="open"]) .part-no[data-long] { font-size: min(85px, 21.7cqw); }
.part-hero:not([data-kind="open"]) .part-title { color: var(--soft); margin-bottom: 0; }

.part-dyn.is-pending { visibility: hidden; }                                              /* what depends on who is looking waits for /api/me: the place is kept */
.part-line { font-size: 14px; color: var(--soft); margin-bottom: 22px; }
.part-line b { color: var(--gold); font-weight: 700; }

/* the drops clock and the two times (the clock's cells are base.css's, at this frame's size) */
.count { margin: 26px 0 8px; }
.count small { display: block; font-size: 12px; font-weight: 700; letter-spacing: .18em; color: var(--muted); margin-bottom: 6px; }
.part-page .clock-cell { width: 74px; height: 78px; border-radius: 12px; border-color: #2c2c32; padding-top: 4px; }
.part-page .clock-num { font-size: 38px; }
.part-page .clock-cell small { margin: 2px 0 0; font-size: 10px; font-weight: 600; letter-spacing: .1em; color: var(--faint); }
.part-page .clock-colon { margin-top: 0; font-family: var(--body); font-weight: 400; font-size: 30px; line-height: normal; }         /* the frame draws the colons in the body face, 8.9 x 36 */
.part-soon { margin: 0; font-size: 15px; color: var(--soft); }
.times { margin: 18px 0 20px; border-radius: 14px; border: 1px solid #2c2c32; overflow: hidden; }
.times .r { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; font-size: 15px; }
.times .r + .r { border-top: 1px solid #2c2c32; }
.times .r b { font-weight: 700; }
.times .r.me { background: rgba(255, 197, 61, .10); }
.times .r.me span:first-child { color: var(--gold); font-weight: 700; }
.part-soon + .part-cta { margin-top: 20px; }

/* the one button, Start from Part 1, and the member's news box */
.part-cta { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 16px; border-radius: var(--radius-big); background: var(--gold); color: var(--ink); text-align: center;
  font-family: var(--display); font-weight: 800; font-size: 21px; text-wrap: balance; transition: background-color var(--fade-ms); }
.part-cta:hover { background: var(--gold-hi); }
.part-cta svg { flex: none; width: 20px; height: 20px; margin-top: -2px; }
.part-hero:not([data-kind="open"]) .part-cta { font-size: 20px; }
.part-start { display: block; text-align: center; margin-top: 16px; font-size: 15px; color: var(--soft); text-decoration: underline; text-underline-offset: 3px; }
.part-hero:not([data-kind="open"]) .part-start { margin-top: 14px; padding-bottom: 4px; }              /* as tall as the member's note beside it, so both frames' copy ends in the same place */
.part-note { display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 14px; font-size: 14px; color: #c4c4cc; text-align: left; }
.part-note .tick { flex: 0 0 22px; width: 22px; height: 22px; border-radius: 6px; display: flex; align-items: center; justify-content: center; color: var(--ink);
  background: transparent; border: 2px solid #52525b; transition: background-color var(--fade-ms), border-color var(--fade-ms); }
.part-note .tick svg { width: 14px; height: 14px; opacity: 0; transition: opacity var(--fade-ms); }
.part-note.is-on .tick { background: var(--gold); border-color: var(--gold); }
.part-note.is-on .tick svg { opacity: 1; }

/* ---- the wide page: no mockup draws it, so it follows the show page's hero (the still on the right two-thirds, fading into the page, the copy in a column at the left) -- */
@container page (min-width: 700px) {
  .probe.wide-only { display: block; }                                                    /* lib/layout.js reads the layout from this: without it isWide() was false on a wide part page and the 9:16 still was drawn zoomed (the Task 11 bug) */
  .part-page { --pad: clamp(24px, 4.4444cqw, 64px); }
  .part-hero, .part-hero[data-kind="drop"], .part-hero[data-kind="soon"], .part-hero[data-kind="predrop"] { min-height: min(100svh, clamp(640px, 56cqw, 900px)); padding: 120px 0 clamp(48px, 5cqw, 80px); }
  .part-media { inset: 0; height: auto; }
  .part-art { left: auto; width: 66%; --mask-left: var(--mask-left-full); --mask-bottom: var(--mask-all); }
  .part-art .pic img, .part-hero[data-kind="drop"] .part-art .pic img, .part-hero[data-kind="soon"] .part-art .pic img, .part-hero[data-kind="predrop"] .part-art .pic img { object-position: 50% 40%; }
  .part-shade, .part-hero[data-kind="drop"] .part-shade, .part-hero[data-kind="soon"] .part-shade, .part-hero[data-kind="predrop"] .part-shade { 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%); }
  .part-copy { margin-left: var(--pad); width: min(560px, 46cqw); }
  .part-show, .part-hero:not([data-kind="open"]) .part-show { font-size: 32px; }
  .part-no, .part-hero:not([data-kind="open"]) .part-no { font-size: clamp(104px, 10cqw, 152px); margin: 8px 0 4px; }
  .part-no[data-long], .part-hero:not([data-kind="open"]) .part-no[data-long] { font-size: clamp(88px, 8.5cqw, 128px); }
  .part-title, .part-hero:not([data-kind="open"]) .part-title { font-size: 24px; }
  .part-line { font-size: 16px; margin-bottom: 26px; }
  .part-dyn { display: flex; flex-direction: column; align-items: flex-start; }
  .part-cta { min-width: 280px; padding: 0 32px; }
  .part-start, .part-hero:not([data-kind="open"]) .part-start { margin-top: 18px; text-align: left; }
  .part-note { width: auto; }
  .times { align-self: stretch; max-width: 420px; }
  .part-soon + .part-cta { margin-top: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .part-cta, .part-note .tick, .part-note .tick svg { transition-duration: var(--fade-ms); }
}
