/* THE SOURCE since 29 Nov 2026: edit here (until then BUILT by tools/build_onboarding.py from prototypes/prologue/prologue.css; both retired). */
#onboard { position: fixed; inset: 0; z-index: 40; background: #000; margin: 0; }
#onboard[hidden] { display: none; }
/* (10 Oct, the director: a thin grey line at the top of the frame during the sprite) the frame is laid out on whole pixels (no transform: a
   half-pixel offset blended one row of the frame's own black level against the page's black) and the page's black is the frame's own */
#onboard #frame { left: 0; top: 0; right: 0; bottom: 0; margin: auto; transform: none; }
#onboard { background: var(--void, #000); }
body.onboarding-on #creditsButton, body.onboarding-on #instructionsButton, body.onboarding-on #fullscreenButton, body.onboarding-on #languageSelectScreen, body.onboarding-on #mobileWarningScreen, body.onboarding-on #playButton, body.onboarding-on #loadingOverlay { display: none !important; }
html.te-mobile-boot #creditsButton, html.te-mobile-boot #instructionsButton, html.te-mobile-boot #fullscreenButton, html.te-mobile-boot #languageSelectScreen, html.te-mobile-boot #mobileWarningScreen, html.te-mobile-boot #videoContainer, html.te-mobile-boot #playButton, html.te-mobile-boot #loadingOverlay, html.te-mobile-boot #frame { display: none !important; }
html.te-mobile-boot body { background: #000; }
/* (25 Oct, the director's first run on the live site: "it loops maybe once or twice and then the poster image comes over the top of everything, but the music keeps looping")
   while the onboarding is the way in, the old way in stays hidden for the WHOLE visit: the old language screen (its poster, fixed at z-index 4000) was hidden only while
   the frame was up (onboarding-on), so when the frame left after the hand-off it came back over the film */
body.onboarding-in #languageSelectScreen, body.onboarding-in #mobileWarningScreen, body.onboarding-in #playButton, body.onboarding-in #loadingOverlay, body.onboarding-in #prerequisitesModal, body.onboarding-in #cameraRequestModal { display: none !important; }
#onboard.film-under { background: transparent; }
#onboard.film-under #frame { background: transparent; }
#onboard.film-under #frame #posterLoop { opacity: 0 !important; transition: opacity var(--fade-ms, 1600ms) ease; }
/* TOKYOECHO prologue prototype. The desktop view lives in one 16:9 frame, the same box the film fills, so the
   prologue loop, the text and the film share one coordinate space. */
#onboard {
    --void: #0c0b0e;                 /* the film's own black level (darkest 5% of frame 0) */
    --text: hsl(52, 100%, 91%);
    --dim: hsla(52, 60%, 88%, .55);
    --faint: hsla(52, 60%, 88%, .28);
    --cyan: #3fe6ff;
    --red: #ff5a6e;
    --line: hsla(52, 100%, 91%, .18);
    --glow: 0 0 .35em hsla(52, 100%, 91%, .45);
    --led: "DotGothic16", "Hiragino Sans", monospace;
    --plain: Helvetica, Arial, "Hiragino Sans", "Yu Gothic", sans-serif;
    --pixel: "Press Start 2P", monospace;
    --body-font: var(--led); --head-font: var(--led); --ui-font: var(--led);
}
#onboard[data-type="mixed"] { --body-font: var(--plain); }
#onboard[data-type="plain"] { --body-font: var(--plain); --head-font: var(--plain); --ui-font: var(--pixel); }

#onboard * { box-sizing: border-box; }
#onboard { color: var(--text); }
#onboard { font-family: var(--body-font); overflow: hidden; -webkit-font-smoothing: antialiased; }
:where(#onboard button) { font: inherit; }

/* ------------------------------------------------------------------ desktop frame */
#frame {
    position: absolute; left: 50%; top: 50%;
    width: min(100vw, 177.7778vh); height: min(56.25vw, 100vh);
    transform: translate(-50%, -50%);
    container-type: size; background: var(--void); overflow: hidden;
}
#onboard.is-mobile #frame { display: none; }
/* (26 Nov 2026) the drag-over hint: while a ticket's picture is dragged over the window, a subtle warm cream dashed frame and soft inner glow
   inside the film frame, so dropping it feels tactile. --ink is the cream in production (the build swaps it in); the lab shows its own grey. */
#tkDrop { position: absolute; inset: 0; z-index: 30; pointer-events: none; opacity: 0; transition: opacity .18s ease;
    border: 2px dashed rgba(var(--ink), .55); box-shadow: inset 0 0 70px rgba(var(--ink), .14); }
html.tk-dragging #tkDrop { opacity: 1; }

/* The sprite: a crop placed in film coordinates (1104 px at x = 1733 of the 3840 px frame), which is exactly where he
   is in the film at 119.24 s. During the onboarding it is moved left (--dx); at the end it slides back to 0. */
.sprite { position: absolute; top: 0; height: 100%; width: 28.75%; opacity: 0; transition: opacity 1.2s ease; }
/* The Scene 1 sprite (the comp's sc1_loop_v002, with alpha), warped into film coordinates: 490 × 1292 px at
   (1528, 628) of the 3840 × 2160 frame. It sits above the film so the street can fade up behind him. */
#breathWrap { left: 39.7917%; top: 29.0741%; width: 12.7604%; height: 59.8148%; z-index: 3; }
#breather { width: 100%; height: 100%; display: block; filter: brightness(var(--bright, 1)); }
#film { z-index: 2; }
#runnerWrap { z-index: 1; }
#runnerWrap { left: 45.13%; transform: translateX(calc(var(--dx, 0) * 100cqw)); }
#frame.prologue[data-style="breath"] #breathWrap, #frame.prologue[data-style="run"] #runnerWrap { opacity: 1; }
#frame[data-speed="slow"] #runner { filter: url(#runBlur) brightness(var(--bright, 1)); }
#frame.sliding #runnerWrap { transition: transform var(--slide-ms, 1600ms) cubic-bezier(.45, 0, .25, 1), opacity .2s ease; }
#frame.sprite-out .sprite { opacity: 0 !important; transition: opacity var(--sprite-out-ms, 200ms) ease; }
.runner {
    width: 100%; height: 100%; object-fit: cover; display: block;
    -webkit-mask-image: radial-gradient(ellipse 42% 58% at 50% 56%, #000 60%, transparent 100%);
    mask-image: radial-gradient(ellipse 42% 58% at 50% 56%, #000 60%, transparent 100%);
    filter: brightness(var(--bright, 1));
}
#ground { display: none; }

/* The film sits above the sprite and is revealed at the switch. */
#film { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; visibility: hidden; }
#frame.switching #film, #frame.released #film { visibility: visible; }
#frame[data-wipe="wipe"].switching #film {
    -webkit-mask-image: linear-gradient(90deg, transparent calc(var(--wx, 100%) - 5%), #000 var(--wx, 100%));
    mask-image: linear-gradient(90deg, transparent calc(var(--wx, 100%) - 5%), #000 var(--wx, 100%));
}
#frame[data-wipe="fade"].switching #film { animation: fade-in var(--fade-ms, 350ms) ease both; }
#frame[data-wipe="whip"].switching #film { animation: whip-in 450ms cubic-bezier(.2, .7, .1, 1) both; filter: url(#whipBlur); }
/* Breathing: the film's Scene 1 loop plays from its own repeated file (no seeks, so no stutter at the wrap). */
#s1Film { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; visibility: hidden; z-index: 2; }
#frame[data-mode="breath"] #film { display: none; }
#frame[data-mode="breath"].switching #s1Film, #frame[data-mode="breath"].released #s1Film { visibility: visible; }
#frame[data-mode="breath"].switching #s1Film { animation: fade-in var(--fade-ms, 350ms) ease both; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes whip-in { from { transform: translateX(14%); opacity: .2; } 60% { opacity: 1; } to { transform: none; opacity: 1; } }

/* ------------------------------------------------------------------ waiting room */
#poster { position: absolute; inset: 0; transition: opacity 1.2s ease, filter 1.2s ease; }
#poster > img { width: 100%; height: 100%; object-fit: cover; display: block; }
#frame:not([data-step="poster"]) #poster { opacity: 0; filter: blur(12px) brightness(.4); pointer-events: none; }
/* The language buttons, as on the current site. */
#langButtons { position: absolute; left: 50%; top: 50%; transform: translate(-50%, calc(-50% + 5vh)); display: flex; align-items: center; }
.lang-button {
    width: 17vmin; height: 17vmin; border-radius: 50%; padding: 0; font-size: 2.816vmin;   /* (10 Oct, the director) twelve percent smaller than the site's 3.2vmin */
    background-color: rgba(0, 0, 0, .5); color: hsl(52, 100%, 91%); border: none; cursor: pointer;
    display: flex; justify-content: center; align-items: center; transition: background-color .2s ease;
    text-shadow: 0 0 7px hsla(52, 100%, 91%, .8), 0 0 14px hsla(52, 100%, 91%, .7);
    animation: buzzFlicker .1s infinite linear; font-family: Helvetica, sans-serif; font-weight: 500; letter-spacing: .5px;
}
.lang-button + .lang-button { margin-left: -2vmin; }
.lang-button:hover, .lang-button:focus-visible { background-color: rgba(0, 0, 0, .65); animation: none; outline: none; }
@keyframes buzzFlicker { 0%, 100% { opacity: 1; } 50% { opacity: .85; } }
@media (prefers-reduced-motion: reduce) { .lang-button { animation: none; } }

#band {
    position: absolute; left: 0; right: 0; bottom: 3.2%;
    text-align: center; font-size: 1.05cqw; line-height: 1.5;
    text-shadow: 0 0 .5em #000, var(--glow);
}
#band p { margin: 0 0 .35em; }
#band .sep { margin: 0 .8em; color: var(--dim); }
#band .counter { font-family: var(--ui-font); letter-spacing: .12em; font-size: .9em; }
#onboard[data-type="plain"] #band .counter { font-size: .72em; }
#band .counter b, .counter b { color: var(--red); font-weight: 400; }
.browser-note { color: var(--dim); }
.browser-note .link { margin-left: .6em; }

#notice {
    position: absolute; left: 50%; top: 47%; transform: translate(-50%, -50%); width: 40%;
    background: rgba(8, 8, 10, .82); border-left: 2px solid var(--red); padding: 1.3cqw 1.6cqw;
    font-size: 1.1cqw; line-height: 1.5; text-shadow: var(--glow);
}
#notice p { margin: 0 0 .5em; }

#laterPanel {
    position: absolute; right: 0; top: 0; bottom: 0; width: 38%;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, .88) 18%);
    padding: 0 4cqw 0 7cqw; display: grid; align-content: center; font-size: 1.15cqw; line-height: 1.5;
}
#laterPanel[hidden] { display: none; }

/* ------------------------------------------------------------------ the column */
#column {
    position: absolute; left: 57%; width: 36%; top: 0; bottom: 0;
    display: grid; align-content: center; font-size: 1.22cqw; line-height: 1.55; pointer-events: none;
}
.step { grid-area: 1 / 1; visibility: hidden; opacity: 0; transition: opacity .6s ease, visibility 0s linear .6s; }
.step.on { visibility: visible; opacity: 1; pointer-events: auto; transition: opacity .6s ease; }
.step p { margin: 0 0 .75em; }
.step.on > p, .step.on > div { animation: var(--arrive) .9s ease both; }
.step.on > :nth-child(2) { animation-delay: .08s; } .step.on > :nth-child(3) { animation-delay: .16s; }
.step.on > :nth-child(4) { animation-delay: .24s; } .step.on > :nth-child(5) { animation-delay: .32s; }
.step.on > :nth-child(6) { animation-delay: .4s; }  .step.on > :nth-child(7) { animation-delay: .48s; }
@keyframes arrive-echo {
    0%   { opacity: 0; text-shadow: -.9em 0 0 rgba(63, 230, 255, 0), .9em 0 0 rgba(255, 90, 110, 0); }
    25%  { opacity: .6; text-shadow: -.5em 0 0 rgba(63, 230, 255, .55), .5em 0 0 rgba(255, 90, 110, .45); }
    100% { opacity: 1; text-shadow: 0 0 0 rgba(63, 230, 255, 0), 0 0 0 rgba(255, 90, 110, 0), var(--glow); }
}
@keyframes arrive-fade { from { opacity: 0; transform: translateY(.4em); } to { opacity: 1; transform: none; } }
#onboard[data-entrance="echo"] { --arrive: arrive-echo; }
#onboard[data-entrance="fade"] { --arrive: arrive-fade; }
#frame.leaving #column { opacity: 0; transition: opacity .5s ease; }

.title { font-family: var(--plain); font-size: 2.6cqw; font-weight: 800; font-style: italic; letter-spacing: -.01em; line-height: 1; margin-bottom: .45em !important; }
.title .tokyo { color: var(--cyan); text-shadow: 0 0 .45em rgba(63, 230, 255, .55); }
.title .echo { color: #fff; }
.head { font-family: var(--head-font); font-size: 1.45em; line-height: 1.3; }
.big { font-family: var(--head-font); font-size: 1.6em; line-height: 1.3; }
.step p:not(.title) { text-shadow: var(--glow); }
.small { font-size: .8em; color: var(--dim); }
.hint { font-size: .85em; color: var(--dim); }
.led-line { font-family: var(--ui-font); letter-spacing: .08em; color: var(--dim); }

.actions { display: flex; flex-wrap: wrap; gap: .7em 1.1em; align-items: center; margin: .4em 0 1.1em; }
.actions:empty { display: none; }
.primary, .secondary { font-family: var(--ui-font); letter-spacing: .12em; cursor: pointer; background: transparent; padding: .85em 1.5em; font-size: .9em; }
#onboard[data-type="plain"] .primary, #onboard[data-type="plain"] .secondary { font-size: .72em; }
.primary { color: var(--cyan); border: 1px solid var(--cyan); box-shadow: 0 0 .8em rgba(63, 230, 255, .25); }
.secondary { color: var(--text); border: 1px solid var(--dim); }
.primary:hover, .primary:focus-visible { background: rgba(63, 230, 255, .1); outline: none; }
.secondary:hover, .secondary:focus-visible { background: hsla(52, 100%, 91%, .08); outline: none; }
.link { background: none; border: 0; padding: 0; color: var(--dim); cursor: pointer; text-decoration: underline; text-underline-offset: .25em; font-family: var(--body-font); font-size: inherit; }
.link:hover, .link:focus-visible { color: var(--text); outline: none; }
select.mic-pick { font: inherit; font-size: .85em; background: #0c0f10; color: var(--text); border: 1px solid var(--dim); padding: .4em; max-width: 100%; }

.reminders { display: grid; gap: .6em; margin: .4em 0 1em; }
.reminders .row { display: flex; flex-wrap: wrap; gap: .6em; }
.reminders .when { font-size: .8em; color: var(--dim); margin: .2em 0 0; }
.reminders .secondary { padding: .7em 1.1em; }

#marker { position: absolute; top: 16%; left: 0; display: flex; gap: .6cqw; align-items: center; opacity: 0; transition: opacity .8s ease; }
#frame.prologue[data-progress="dashes"] #marker, #frame.prologue[data-progress="count"] #marker { opacity: 1; }
#frame.leaving #marker { opacity: 0 !important; }
#marker i { width: 2.2cqw; height: .28cqw; background: var(--line); transition: background .6s ease; }
#marker i.done { background: var(--dim); }
#marker i.now { background: var(--text); box-shadow: 0 0 .6cqw hsla(52, 100%, 91%, .6); }
#frame[data-progress="count"] #marker i { display: none; }
#markerCount { font-family: var(--ui-font); font-size: .8cqw; color: var(--dim); letter-spacing: .1em; display: none; }
#frame[data-progress="count"] #markerCount { display: inline; }

#passage { font-size: 1.3em; line-height: 1.5; margin: .9em 0 .9em; min-height: 3em; }
#passage .ln { display: block; }
#passage span { color: var(--faint); transition: color .18s ease, text-shadow .3s ease; }
#passage span.lit { color: var(--text); text-shadow: var(--glow); }
.read-ctl { display: flex; align-items: center; gap: 1.2em; min-height: 3.4em; }
#count { font-family: var(--ui-font); font-size: 2.6em; line-height: 1; margin: 0 !important; color: var(--cyan); text-shadow: 0 0 .4em rgba(63, 230, 255, .6); }
#count.tick { animation: tick .6s ease-out; }
@keyframes tick { from { transform: scale(1.35); opacity: .4; } to { transform: none; opacity: 1; } }
.status { min-height: 1.4em; }

#scene1Prompt {
    position: absolute; left: 50%; top: 4%; transform: translateX(-50%); width: 62%;
    text-align: center; font-family: var(--plain); font-size: 1.1cqw; line-height: 1.4;
    text-shadow: 0 0 5px hsla(52, 100%, 91%, .53), 0 0 10px hsla(52, 100%, 91%, .47);
    opacity: 0; transition: opacity 1s ease; pointer-events: none;
}
#scene1Prompt p { margin: .35em 0; }
#frame.s1 #scene1Prompt { opacity: 1; }

/* ------------------------------------------------------------------ phones and tablets */
#mobile {
    position: fixed; inset: 0; overflow-y: auto; background: var(--void);
    padding: max(16px, env(safe-area-inset-top)) 20px max(24px, env(safe-area-inset-bottom));
    display: grid; grid-template-rows: auto minmax(34vh, 44vh) auto; align-content: start;
    font-size: 16px; line-height: 1.55;
}
#mobile[hidden] { display: none; }
.m-lang { display: flex; justify-content: flex-end; gap: 4px; }
.m-lang button { background: none; border: 1px solid transparent; color: var(--dim); padding: 6px 10px; font-family: var(--plain); font-size: 14px; }
.m-lang button[aria-pressed="true"] { color: var(--text); border-color: var(--dim); }
.m-runner { position: relative; overflow: hidden; display: flex; justify-content: center; }
.m-runner video { height: 100%; width: auto; aspect-ratio: 490 / 1292; }
.m-text { max-width: 30em; margin: 0 auto; width: 100%; }
.m-text .title { font-size: 34px; margin: 6px 0 .45em; }
.m-text p { margin: 0 0 .8em; text-shadow: var(--glow); }
.m-head { font-size: 1.2em; margin-top: 1.2em !important; }
#mobile .primary, #mobile .secondary { font-size: 14px; }
#mobile .reminders .row { display: grid; grid-template-columns: 1fr 1fr; }
@media (orientation: landscape) and (max-height: 520px) {
    #mobile { grid-template-columns: 40% 1fr; grid-template-rows: auto 1fr; column-gap: 20px; }
    .m-lang { grid-column: 1 / -1; }
    .m-runner { grid-row: 2; height: 78vh; }
    .m-text { grid-row: 2; }
}

/* ------------------------------------------------------------------ dev */
#devToggle { position: fixed; left: 10px; bottom: 10px; width: 26px; height: 26px; border-radius: 50%; border: 1px solid #333; background: #111; color: #888; cursor: pointer; z-index: 20; }
#dev {
    position: fixed; left: 10px; bottom: 44px; width: 310px; max-height: calc(100vh - 60px); overflow: auto;
    background: rgba(12, 14, 15, .95); border: 1px solid #2c3438; padding: 14px 16px; z-index: 20;
    font: 12px/1.4 -apple-system, Helvetica, sans-serif; color: #d9dcd3; display: grid; gap: 10px;
}
#dev[hidden] { display: none; }
#dev h2 { font-size: 12px; margin: 0; letter-spacing: .08em; text-transform: uppercase; color: #8fa0a0; font-weight: 600; }
#dev label { display: grid; gap: 4px; }
#dev select { width: 100%; background: #1b2124; color: #e6e6dc; border: 1px solid #333c40; padding: 4px; }
.dev-row { display: flex; gap: 8px; }
.dev-row button { flex: 1; background: #1b2124; color: #e6e6dc; border: 1px solid #333c40; padding: 6px; cursor: pointer; font: inherit; }
.dev-state { font-family: ui-monospace, Menlo, monospace; font-size: 11px; color: #8fa0a0; margin: 0; white-space: pre-wrap; }
.dev-help { color: #7b8686; margin: 0; }

@media (prefers-reduced-motion: reduce) {
    .step.on > p, .step.on > div { animation: none !important; }
    #frame.switching #film { animation-name: fade-in !important; filter: none !important; }
}

/* Welcome step: the promise, the visits, and the soft ask for camera and microphone */
#notice { border-left: 2px solid var(--red); padding: .2em 0 .2em .9em; margin: 0 0 1em; }
#notice p { margin: 0 0 .45em; }
#ask { margin: .6em 0 .4em; }
.ask-icons { display: flex; gap: .9em; color: var(--text); margin-bottom: .7em; filter: drop-shadow(0 0 .3em hsla(52, 100%, 91%, .45)); }
.ask-icons svg { width: 2.4em; height: 2.4em; }
#stepWelcome .counter { display: block; }
#jumpPlay {
    position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 30;
    font-family: var(--ui-font); letter-spacing: .12em; color: var(--cyan); background: #000; border: 1px solid var(--cyan); padding: 1em 1.8em; cursor: pointer;
}

/* Poster look: the baked loop (him included) with live grain; the film fades up over it at the switch. */
#posterLoop { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; opacity: 0; transition: opacity 1.2s ease; pointer-events: none; }
#frame.prologue[data-look="poster"][data-style="breath"] #posterLoop, #frame.prologue[data-look="bright"][data-style="breath"] #posterLoop { opacity: 1; }
#frame.prologue[data-look="poster"][data-style="breath"] #breathWrap, #frame.prologue[data-look="bright"][data-style="breath"] #breathWrap { visibility: hidden; }  /* he is in the poster loop */
#column { z-index: 5; }
#scene1Prompt { z-index: 5; }
#frame[data-look="poster"][data-style="breath"] .step p:not(.title) { text-shadow: 0 0 .6em rgba(0, 0, 0, .9), 0 0 .2em rgba(0, 0, 0, .9), var(--glow); }

/* ------------------------------------------------------------------ the title: a live canvas of light, screen-blended */
#title {
    position: absolute; left: 46.2%; top: 17%; width: 36%; aspect-ratio: 1400 / 402; z-index: 5; pointer-events: none;
    transform: translate(-55%, -50%); opacity: 0; transition: opacity 1.6s ease; mix-blend-mode: screen;
}
#frame.prologue #title { opacity: 1; }
#frame.leaving #title { opacity: 0; transition-duration: .8s; }
/* on the bright look the title turns to dark ink: its light inverted (hue kept) and multiplied */
#frame[data-look="bright"] #title { mix-blend-mode: multiply; filter: invert(1) hue-rotate(180deg) saturate(1.3); }
/* scan lines over the frame: uneven lines and a slow rolling refresh bar */
#scanCv { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 6; pointer-events: none; mix-blend-mode: multiply; opacity: 0; transition: opacity 1.2s ease; }
#frame.prologue[data-scan="on"] #scanCv { opacity: .55; }
#frame.switching #scanCv { opacity: 0 !important; }
/* the bright look: dark text on the lit haze */
#frame[data-look="bright"] { --text: hsl(200, 20%, 12%); }
#onboard[data-type="subtitle"] #frame[data-look="bright"] #column { color: hsla(205, 30%, 10%, .88); }
#onboard[data-type="subtitle"] #frame[data-look="bright"] .step p:not(.title) { text-shadow: 0 0 .6em rgba(255, 255, 255, .35); }
#onboard[data-type="subtitle"] #frame[data-look="bright"] .small, #onboard[data-type="subtitle"] #frame[data-look="bright"] .hint,
#onboard[data-type="subtitle"] #frame[data-look="bright"] #counter { color: hsla(205, 25%, 12%, .6); }
#onboard[data-type="subtitle"] #frame[data-look="bright"] #counter b,
#onboard[data-type="subtitle"] #frame[data-look="bright"] .primary, #onboard[data-type="subtitle"] #frame[data-look="bright"] .secondary,
#onboard[data-type="subtitle"] #frame[data-look="bright"] #passage span.lit, #onboard[data-type="subtitle"] #frame[data-look="bright"] #count { color: hsla(205, 35%, 9%, .95); text-shadow: none; }
#onboard[data-type="subtitle"] #frame[data-look="bright"] .primary, #onboard[data-type="subtitle"] #frame[data-look="bright"] .secondary { border-bottom-color: hsla(205, 35%, 9%, .5); }
#onboard[data-type="subtitle"] #frame[data-look="bright"] #passage span { color: hsla(205, 25%, 12%, .3); }
#onboard[data-type="subtitle"] #frame[data-look="bright"] .ask-icons { color: hsla(205, 35%, 9%, .8); }
#onboard[data-type="subtitle"] #frame[data-look="bright"] #marker i { background: hsla(205, 35%, 9%, .25); }
#onboard[data-type="subtitle"] #frame[data-look="bright"] #marker i.now { background: hsla(205, 35%, 9%, .85); }
#frame[data-look="bright"] #grainCv { mix-blend-mode: soft-light; }
/* grain: a new pattern every frame, over everything in the frame (image, title, text) */
#grainCv { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 6; pointer-events: none; mix-blend-mode: overlay; opacity: 0; transition: opacity 1.2s ease; }
#frame.prologue #grainCv { opacity: var(--grain, .36); }
#frame.switching #grainCv { opacity: 0; }
/* subtitle text style: one typeface, two sizes, warm white, no boxes */
#onboard[data-type="subtitle"] { --body-font: "Helvetica Neue", Helvetica, Arial, "Hiragino Sans", sans-serif; --head-font: var(--body-font); --ui-font: var(--body-font); }
#onboard[data-type="subtitle"] #column { color: hsla(40, 45%, 90%, .86); font-size: 1.12cqw; letter-spacing: .01em; }
#onboard[data-type="subtitle"] .step p:not(.title) { text-shadow: 0 0 .5em rgba(0, 0, 0, .6); }
#onboard[data-type="subtitle"] .head, #onboard[data-type="subtitle"] .big { font-weight: 400; font-size: 1.5em; letter-spacing: -.005em; }
#onboard[data-type="subtitle"] .small, #onboard[data-type="subtitle"] .hint { color: hsla(40, 30%, 88%, .55); }
#onboard[data-type="subtitle"] #counter { letter-spacing: .16em; font-size: .78em; text-transform: uppercase; color: hsla(40, 30%, 88%, .6); }
#onboard[data-type="subtitle"] #counter b { color: hsla(40, 45%, 92%, .95); font-weight: 500; }
#onboard[data-type="subtitle"] .primary, #onboard[data-type="subtitle"] .secondary {
    border: 0; box-shadow: none; background: none; padding: .3em 0; color: hsla(40, 45%, 92%, .95);
    letter-spacing: .14em; font-size: .82em; text-transform: uppercase; border-bottom: 1px solid hsla(40, 45%, 92%, .45);
}
#onboard[data-type="subtitle"] .primary::after { content: "  \2192"; letter-spacing: 0; }
#onboard[data-type="subtitle"] .primary:hover, #onboard[data-type="subtitle"] .secondary:hover { border-bottom-color: hsla(40, 45%, 92%, .95); background: none; }
#onboard[data-type="subtitle"] .reminders .row { gap: .4em 1.6em; }
#onboard[data-type="subtitle"] #count { font-family: var(--body-font); font-weight: 300; color: hsla(40, 45%, 92%, .9); text-shadow: none; }
#onboard[data-type="subtitle"] .ask-icons { color: hsla(40, 45%, 90%, .8); filter: none; }
#onboard[data-type="subtitle"] #marker i.now { background: hsla(40, 45%, 92%, .9); box-shadow: none; }
#onboard[data-type="subtitle"] #passage span.lit { color: hsla(40, 45%, 94%, .98); text-shadow: 0 0 .4em rgba(0, 0, 0, .5); }

/* progress dashes at the foot of the column, clear of the title */
#marker { top: auto; bottom: 9%; }

#onboard[data-type="subtitle"] #frame[data-look="bright"] .link { color: hsla(205, 30%, 12%, .7); }
#onboard[data-type="subtitle"] #frame[data-look="bright"] .link:hover { color: hsla(205, 35%, 9%, .95); }

/* ====================================================================================================================
   Instructional design, round 6 (4 Oct 2026). Plain grey-white type with no glow, one dark circle with three echoes
   toward Omi, thin line icons, choices as overlapping circles, a gentle flicker. The title, grain and poster are the
   film's and are untouched.
   ==================================================================================================================== */
#onboard.ui2 { --ink: 255, 250, 208;   /* (10 Oct) the cream he chose on 7 Oct, as the site's prompts and scene three */ }
#onboard.ui2 #disc { position: absolute; inset: 0; z-index: 4; opacity: 0; transition: opacity .9s ease; pointer-events: none; }
#onboard.ui2 #disc i { position: absolute; top: 12.5cqw; left: calc(55cqw + var(--d, 0cqw)); width: 38cqw; height: 38cqw; border-radius: 50%; background: rgba(0, 0, 0, var(--a, .52)); }
#onboard.ui2 #disc .echo { animation: ui2-ripple 3.6s ease-in-out infinite;
    -webkit-mask-image: radial-gradient(circle at calc(19cqw - var(--d)) 50%, transparent 0 18.95cqw, #000 19cqw); mask-image: radial-gradient(circle at calc(19cqw - var(--d)) 50%, transparent 0 18.95cqw, #000 19cqw); }
@keyframes ui2-ripple { 0%, 60%, 100% { opacity: .62; } 22% { opacity: 1; } }
#onboard.ui2 #frame.prologue:is([data-step="welcome"], [data-step="ask"], [data-step="later"], [data-step="read"], [data-step="see"], [data-step="wait"], [data-step="problem"]) #disc { opacity: 1; }
#onboard.ui2 #frame.leaving #disc { opacity: 0; transition-duration: .5s; }
/* (10 Oct, 20:20) THE CREDITS OVER THE FILM (#frame.popup) are THE SAME ONE PIECE as on the onboarding's page (his note, more than once: "the credits
   circle is one piece … it all comes out together, not in separate parts"): the same circle, drawn by the same canvas with the same entrance
   (the photograph washing in from screen right with its streaks) and the same exit backwards; the three echo circles strobe in beside it a
   beat apart and strobe out with it. NO backdrop of its own: no band, no dark circle arriving first, the grain only on the photograph and
   only once it is there. Nothing of the prologue shows but the disc and the credits step. */
#onboard.ui2 #frame.popup { background: transparent; }
#onboard.ui2 #frame.popup :is(#posterLoop, #scanCv, #title, #poster, #menu, #marker, .sprite) { visibility: hidden !important; }
#onboard.ui2 #frame.popup #grainCv { visibility: visible; opacity: var(--grain, .36); clip-path: inset(12.5cqw 0 calc(100% - 50.5cqw) 55cqw round 19cqw 0 0 19cqw); animation: grain-in .45s ease .5s both; }   /* the pill's shape (the circle alone left a seam where the pill runs on to screen right) */
#onboard.ui2 #frame.popup #column { opacity: 1 !important; }   /* after the film has begun the frame carries .leaving, which hides the column: the pop-up's text and close button live in it */   /* an animation, not a transition: coming back from hidden a transition's delay does not run, and the grain stood there as a grey disc before the photograph */
@keyframes grain-in { from { opacity: 0; } }
#onboard.ui2 #frame.popup.popup-out #grainCv { animation: none; opacity: 0 !important; }
#onboard.ui2 #frame.popup #disc { opacity: 1; transition: none; pointer-events: none; }
#onboard.ui2 #frame.popup #disc .main { background: transparent; transition: none; animation: none; }
/* the echoes carry inline animation-delays (.5s, .25s) for their ripple on the onboarding: here the delays are set outright, or the outermost one arrived and left half a second late (it was "left behind") */
#onboard.ui2 #frame.popup #disc .echo[style*="-6cqw"] { animation: strobe-in .26s cubic-bezier(.2, .7, .2, 1) both, ui2-pulse 2.6s ease-in-out infinite; animation-delay: .2s, 1.1s !important; }
#onboard.ui2 #frame.popup #disc .echo[style*="-4cqw"] { animation: strobe-in .26s cubic-bezier(.2, .7, .2, 1) both, ui2-pulse 2.6s ease-in-out infinite; animation-delay: .13s, 1s !important; }
#onboard.ui2 #frame.popup #disc .echo[style*="-2cqw"] { animation: strobe-in .26s cubic-bezier(.2, .7, .2, 1) both, ui2-pulse2 3.2s ease-in-out infinite; animation-delay: .06s, .9s !important; }   /* in: the photograph first, the echoes a beat apart behind it, outward */
#onboard.ui2 #frame.popup.popup-out #disc .echo[style*="-2cqw"] { animation: strobe-out .2s ease-in both; animation-delay: .1s !important; }   /* out: all of it inside the photograph's own .48 s, the outermost first */
#onboard.ui2 #frame.popup.popup-out #disc .echo[style*="-4cqw"] { animation: strobe-out .2s ease-in both; animation-delay: .05s !important; }
#onboard.ui2 #frame.popup.popup-out #disc .echo[style*="-6cqw"] { animation: strobe-out .2s ease-in both; animation-delay: 0s !important; }
#onboard.ui2 #frame.popup #column #stepCredits { transition: opacity .15s ease; }
#onboard.ui2 #frame.popup-out #column #stepCredits { opacity: 0 !important; }
/* the info over the film: the same pill (drawn dark by the canvas), the page's own info text on it, arriving once the pill is most of the way in */
#onboard.ui2 #frame.popup #column :is(#stepInfo, #stepFriend).on { animation: grain-in .45s ease .5s both; }
#onboard.ui2 #frame.popup-out #column :is(#stepInfo, #stepFriend) { opacity: 0 !important; animation: none; transition: opacity .15s ease; }
@keyframes strobe-in { from { opacity: 0; transform: translateX(7cqw); } }
@keyframes strobe-out { to { opacity: 0; transform: translateX(7cqw); } }

#onboard.ui2 #column { left: 63.5%; width: 21.5%; top: 6.8cqw; bottom: 0; color: rgb(var(--ink)); font: 400 1.15cqw/1.45 Helvetica, "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", sans-serif; letter-spacing: 0; animation: ui2-buzz .1s infinite linear; }
@keyframes ui2-buzz { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(.9); } }
#onboard.ui2 #column .step p { margin: 0 0 .9cqw; text-shadow: none !important; color: inherit; }
#onboard.ui2 #column .head, #onboard.ui2 #column .big { font: inherit; font-size: 1.55cqw; line-height: 1.28; letter-spacing: 0; }
#onboard.ui2 #column :is(.small, .hint, .counter, .browser-note, .when, .status:empty) { font: inherit; font-size: .95cqw; line-height: 1.4; opacity: .66; color: inherit; letter-spacing: 0; text-transform: none; }
#onboard.ui2 #column .status { min-height: 0; } #onboard.ui2 #column .status:empty { display: none; }
#onboard.ui2 #column #counter b { font-weight: 400; color: inherit; }
#onboard.ui2 .icons { display: flex; gap: 1.2cqw; margin: 0 0 .9cqw; color: inherit; filter: none; }
#onboard.ui2 .ico { display: inline-flex; flex: none; width: 3.2cqw; height: 3.2cqw; }
#onboard.ui2 .ico svg { width: 100%; height: 100%; overflow: visible; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
#onboard.ui2 .i-load .spin { transform-origin: 24px 24px; animation: ui2-spin 1.4s linear infinite; }
@keyframes ui2-spin { to { transform: rotate(360deg); } }
#onboard.ui2 .i-eye .eo { transform-origin: 24px 24px; animation: ui2-eye-o 5s ease-in-out infinite; }
#onboard.ui2 .i-eye .ec { animation: ui2-eye-c 5s ease-in-out infinite; }
@keyframes ui2-eye-o { 0%, 22% { transform: scaleY(1); opacity: 1; } 32%, 82% { transform: scaleY(.06); opacity: 0; } 92%, 100% { transform: scaleY(1); opacity: 1; } }
@keyframes ui2-eye-c { 0%, 24% { opacity: 0; } 32%, 82% { opacity: 1; } 90%, 100% { opacity: 0; } }

/* choices: overlapping dark circles */
#onboard.ui2 #column .actions, #onboard.ui2 .reminders .row, #onboard.ui2 #column .read-ctl { display: flex; flex-wrap: nowrap; gap: 0; align-items: center; margin: .4cqw 0 .9cqw; min-height: 0; }
#onboard.ui2 #column .actions:empty { display: none; }
#onboard.ui2 :is(#column .actions, .reminders .row, #column .read-ctl) button, #onboard.ui2 #count {
    width: 6.4cqw; height: 6.4cqw; flex: none; border-radius: 50%; border: 0; box-shadow: none; background: rgba(0, 0, 0, .55); color: rgb(var(--ink));
    font: 400 1cqw/1.2 Helvetica, "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", sans-serif; letter-spacing: 0; text-transform: none; text-decoration: none; text-shadow: none;
    padding: 0 .5cqw; margin: 0; display: grid; place-items: center; align-content: center; gap: .3cqw; cursor: pointer; opacity: 1;
}
#onboard.ui2 :is(#column .actions, .reminders .row) button + button { margin-left: .6cqw; background: rgba(0, 0, 0, .42); color: rgba(var(--ink), .72); }
#onboard.ui2 #column .actions button#haveCircle + button#beginBtn { background: rgba(255, 255, 255, .1); color: rgb(var(--ink)); }   /* (23 Nov 2026, the director) the two ticket circles are equal: neither is the lesser choice */
#onboard.ui2 #column .actions button .ico { width: 1.7cqw; height: 1.7cqw; opacity: .85; }
#onboard.ui2 #column .ask-icons { margin: .3cqw 0 1.1cqw; }
#onboard.ui2 .reminders .row button { background: rgba(0, 0, 0, .5); color: rgb(var(--ink)); font-size: .78cqw; }
#onboard.ui2 .reminders .row button .ico { width: 2cqw; height: 2cqw; }
#onboard.ui2 :is(#column .actions, .reminders .row, #column .read-ctl) button::after { content: none; }
#onboard.ui2 :is(#column .actions, .reminders .row, #column .read-ctl) button:is(:hover, :focus-visible) { background: rgba(0, 0, 0, .8); color: rgb(var(--ink)); outline: none; border: 0; }
#onboard.ui2 :is(#column .actions, #column .read-ctl) button[hidden] { display: none; }
#onboard.ui2 .reminders { display: block; margin: 0; }
#onboard.ui2 #count { cursor: default; font-size: 3.1cqw; font-weight: 300; line-height: 1; padding: 0; margin: 0 !important; opacity: 1 !important; }
#onboard.ui2 #count:empty { display: none; }
#onboard.ui2 #count.tick { animation: none; }
#onboard.ui2 #column .link { font: inherit; font-size: .95cqw; color: inherit; opacity: .8; text-underline-offset: .2em; }
#onboard.ui2 #passage { font-size: 1.3cqw; line-height: 1.5; margin: 0 0 .9cqw; min-height: 0; }
/* (10 Oct, the director: after the 3-2-1 "my eyes have to flick back up to start reading") READY, THEN THE COUNT, SIT BESIDE THE LINES: a
   smaller circle at the left of the passage, so the eye goes from the count straight on to the right, into the words */
#onboard.ui2 #column .read-row { display: flex; align-items: flex-start; gap: 1cqw; margin: 0 0 .6cqw; }
#onboard.ui2 #column .read-row #passage { flex: 1 1 auto; margin: .2cqw 0 0; }
#onboard.ui2 #column .read-row .read-ctl { flex: none; margin: 0; min-height: 0; }
#onboard.ui2 #column .read-row .read-ctl button, #onboard.ui2 #column .read-row #count { width: 4.6cqw; height: 4.6cqw; font-size: .9cqw; }
#onboard.ui2 #column .read-row #count { font-size: 2.2cqw; }
#onboard.ui2 #passage span { color: rgba(var(--ink), .38); text-shadow: none; }
#onboard.ui2 #passage span.lit { color: rgb(var(--ink)); text-shadow: none; }
/* (14 Nov 2026) the settled calibration text, ONE PHRASE PER LINE (prologue.js buildPassage, .phrases): the column is too narrow for its long
   phrases at a readable size, so each phrase starts on a line of its own and a phrase that has to wrap carries on indented under itself,
   with a little air between phrases, so a phrase always reads as one piece */
#onboard.ui2 #passage.phrases .ln { padding-left: 1.1em; text-indent: -1.1em; margin-bottom: .18em; }
/* (14 Nov 2026, the director: "make the recording button smaller and further over to the left of the circle … that first line as one whole
   line … the text smaller … one or two lines for the final sentence") with the phrase text: the Ready / count circle smaller and moved left
   into the dark circle's free space (the row reaches out of the column to the left), the text smaller, so the phrases have the width */
#onboard.ui2 #column .read-row.phrases { --ph-shift: 9cqw; --ph-btn: 3.3cqw; margin-left: calc(-1 * var(--ph-shift)); gap: .9cqw; }
#onboard.ui2 #column .read-row.phrases .read-ctl button, #onboard.ui2 #column .read-row.phrases #count { width: var(--ph-btn); height: var(--ph-btn); font-size: .72cqw; }
#onboard.ui2 #column .read-row.phrases #count { font-size: 1.6cqw; }
#onboard.ui2 #passage.phrases { font-size: 1.01cqw; }
/* (19 Nov 2026, the director: "when I hit record … the text and the record button jumped, and when I finished … it jumped again") THE CONTROL'S
   SLOT KEEPS ITS SIZE: Ready and the count share ONE fixed cell (one shows at a time), so neither Ready hiding, the count emptying (the 0.9 s around
   the go beep, the end of the take) nor the red dot moves the lines beside it */
#onboard.ui2 #column .read-row .read-ctl { display: grid; width: 4.6cqw; height: 4.6cqw; }
#onboard.ui2 #column .read-row.phrases .read-ctl { width: var(--ph-btn); height: var(--ph-btn); }
#onboard.ui2 #column .read-row .read-ctl > * { grid-area: 1 / 1; }
#onboard.ui2 select.mic-pick { font: inherit; font-size: .95cqw; background: rgba(0, 0, 0, .5); color: inherit; border: .06cqw solid rgba(var(--ink), .45); border-radius: .3cqw; padding: .35cqw .6cqw; margin-right: .8cqw; max-width: 12cqw; width: auto; height: auto; }
#onboard.ui2 #notice { position: static; transform: none; width: auto; background: none; border: 0; padding: 0; margin: 0; font: inherit; text-shadow: none; }
#onboard.ui2 #notice[hidden] { display: none; }

/* Scene 1 prompt: above the dancer, on small faint circles, with a soft shadow */
#onboard.ui2 #scene1Prompt { left: 22%; width: 56%; top: 6.9cqw; transform: translateY(-50%); display: grid; justify-items: center; gap: .35cqw;
    color: rgb(var(--ink)); font: 400 1.08cqw/1.35 Helvetica, "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", sans-serif; text-shadow: 0 0 .3cqw rgba(0, 0, 0, .95), 0 .05cqw 1cqw rgba(0, 0, 0, .8); animation: ui2-buzz .1s infinite linear; }
#onboard.ui2 #scene1Prompt p { margin: 0; display: flex; align-items: center; gap: .7cqw; white-space: nowrap; position: relative; z-index: 1; }
#onboard.ui2 #scene1Prompt .ico { width: 2.5cqw; height: 2.5cqw; filter: drop-shadow(0 0 .3cqw rgba(0, 0, 0, .95)); }
#onboard.ui2 #scene1Prompt .chain i { position: absolute; top: calc(50% - 4.5cqw); left: calc(50% - 4.5cqw + (var(--k) * 7.6cqw)); width: 9cqw; height: 9cqw; border-radius: 50%; background: rgba(0, 0, 0, .4); }
#onboard.ui2 #scene1Prompt .chain i:nth-child(1) { --k: -2; background: rgba(0, 0, 0, .27); } #onboard.ui2 #scene1Prompt .chain i:nth-child(2) { --k: -1; }
#onboard.ui2 #scene1Prompt .chain i:nth-child(3) { --k: 0; } #onboard.ui2 #scene1Prompt .chain i:nth-child(4) { --k: 1; } #onboard.ui2 #scene1Prompt .chain i:nth-child(5) { --k: 2; background: rgba(0, 0, 0, .27); }

/* phones and tablets: the same circle and column, upright over the animated poster (27 Nov: full circle fits inside phone width & viewport) */
#onboard.ui2 #mobile {
    display: flex; flex-direction: column; align-items: center;
    padding: max(8px, env(safe-area-inset-top)) 12px max(18px, env(safe-area-inset-bottom));
    overflow-x: hidden; overflow-y: auto; -webkit-overflow-scrolling: touch;
    background: #000 url(assets/poster-still.jpg?v=9b6daa541a) 44% 50% / cover no-repeat;
    color: rgb(var(--ink)); font: 400 14.5px/1.4 Helvetica, "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", sans-serif;
}
#onboard.ui2 #mobile[hidden] { display: none; }
#onboard.ui2 #mPoster { position: fixed; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 44% 50%; z-index: 0; pointer-events: none; }
#onboard.ui2 .m-lang { position: fixed; top: max(8px, env(safe-area-inset-top)); right: 10px; z-index: 12; }
#onboard.ui2 .m-lang button { color: rgba(var(--ink), .65); min-height: 40px; padding: 6px 12px; touch-action: manipulation; } #onboard.ui2 .m-lang button[aria-pressed="true"] { color: rgb(var(--ink)); border-color: rgba(var(--ink), .5); }
#onboard.ui2 .m-title { position: relative; flex: none; margin: max(38px, 4.5vh) auto 8px; width: min(74vw, 320px); aspect-ratio: 1400 / 402; mix-blend-mode: screen; z-index: 2; pointer-events: none; }
#onboard.ui2 .m-stage { position: relative; flex: 1 0 auto; width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 8px 0; z-index: 2; }
#onboard.ui2 .m-disc { position: absolute; left: 50%; top: 50%; width: min(94vw, 374px); height: min(94vw, 374px); transform: translate(-50%, -50%); border-radius: 50%; background: rgba(0, 0, 0, .68); z-index: 0; pointer-events: none; }
#onboard.ui2 .m-text { position: relative; width: min(74vw, 286px); max-width: none; margin: 0 auto; z-index: 1; text-align: center; }
#onboard.ui2 .m-text p { margin: 0 0 8px; text-shadow: none; }
#onboard.ui2 .m-text .head { font: inherit; font-size: 18px; line-height: 1.26; }
#onboard.ui2 #mobile .ico { width: 30px; height: 30px; } #onboard.ui2 #mobile .icons { justify-content: center; margin-bottom: 6px; }
#onboard.ui2 #mobile .reminders .row { display: flex; flex-wrap: nowrap; justify-content: center; margin: 4px 0 6px; }
#onboard.ui2 #mobile .reminders .row button { width: 66px; height: 66px; font-size: 10.5px; padding: 0 4px; gap: 3px; }
#onboard.ui2 #mobile .reminders .row button + button { margin-left: -6px; }
#onboard.ui2 #mobile .reminders .row button .ico { width: 20px; height: 20px; }
#onboard.ui2 #mobile .when { font-size: 12px; opacity: .66; margin: 0; }
@media (orientation: landscape) and (max-height: 520px) {
    #onboard.ui2 #mobile { flex-direction: row; flex-wrap: nowrap; justify-content: space-evenly; align-items: center; gap: 12px; }
    #onboard.ui2 .m-title { margin: 0; width: 34vw; }
    #onboard.ui2 .m-stage { flex: 0 1 56vw; }
    #onboard.ui2 .m-disc { width: min(88vh, 380px); height: min(88vh, 380px); }
    #onboard.ui2 .m-text { width: min(46vw, 310px); }
}
@media (prefers-reduced-motion: reduce) { #onboard.ui2 #column, #onboard.ui2 #scene1Prompt, #onboard.ui2 #disc .echo { animation: none; } }

#onboard.ui2 #column .step { align-self: center; }
#onboard.ui2 #column [hidden] { display: none !important; }

/* the poster and its language buttons sit above everything while they are showing; sprites and videos never take clicks */
.sprite, #posterLoop, #film, #s1Film, #grainCv, #scanCv { pointer-events: none; }
#frame[data-step="poster"] #poster { z-index: 8; }
/* (27 Nov 2026, the director) THE LANGUAGE POSTER, new image (img/landing_page_omi.jpg: Codex's painted Omi, no title in it) with the live
   title over where the old poster's baked letters were: the same art, mapped onto the old letters' box (letters at 22.53–76.59 % x and
   68.55–81.93 % y of landing_page.jpg; inside the 1400 × 402 art at x 153–1291, y 124–281). A soft shadow from the title's own halo sits
   under it so the light reads over his white vest. Both inside #poster, so they fade and blur away with it when a language is chosen. */
#posterShade, #posterTitle { position: absolute; left: 15.26%; top: 58.08%; width: 66.5%; aspect-ratio: 1400 / 402; pointer-events: none; }
#posterShade { mix-blend-mode: multiply; filter: blur(.9cqw); }
#posterTitle { mix-blend-mode: screen; }
/* the language buttons in the FRAME's units (cqh), not the window's (vmin / vh): they scale with the frame and always sit above the title
   (circles 46.5–63.5 % of the frame's height, the letters from 68.55 %); at a 16:9 window the same size and place as before */
#frame #langButtons { top: 46.5cqh; transform: translateX(-50%); }
#frame #langButtons .lang-button { width: 17cqh; height: 17cqh; font-size: 2.816cqh; }
#frame #langButtons .lang-button + .lang-button { margin-left: -2cqh; }
/* the frame's scan lines and grain over the whole poster (buttons and title too), as on the steps after it */
#frame[data-step="poster"][data-scan="on"] #scanCv { opacity: .55; z-index: 9; }
#frame[data-step="poster"] #grainCv { opacity: var(--grain, .36); z-index: 9; }

/* the echo pulse: a clear swell that travels from the text circle out toward Omi, then rests */
#onboard.ui2 #disc .echo { --a: .34; opacity: .36; animation: ui2-pulse 2.6s ease-in-out infinite; }
@keyframes ui2-pulse { 0%, 55%, 100% { opacity: .36; } 18% { opacity: 1; } }

/* the echo pulse, gentle: the text circle itself never changes */
#onboard.ui2 #disc .echo { --a: .2; opacity: .72; animation: ui2-pulse2 3.2s ease-in-out infinite; }
@keyframes ui2-pulse2 { 0%, 55%, 100% { opacity: .72; } 20% { opacity: 1; } }
#onboard.ui2 #disc .main { animation: none; opacity: 1; }
/* (10 Oct, the director: "a cool little gif style backdrop to pop up behind that credits page … bound in those circles") the loop sits exactly
   on the main circle, masked by it, darkened toward its edge so the names read; it only shows, and only plays, on the credits step */
#onboard.ui2 #disc #creditsFilm { position: absolute; top: 12.5cqw; left: 55cqw; width: 45cqw; height: 38cqw; opacity: 0; transition: opacity .1s ease .55s; pointer-events: none; }   /* leaving: the canvas wipes the piece off first (creditsCanvas), then this goes */   /* (10 Oct, evening) the circle's box plus the room to its right, up to the frame's edge: picture and streaks are one canvas (no mask, no radius here: the canvas draws the shape) */
#onboard.ui2 #disc #creditsFilm video { position: absolute; left: 0; top: 0; width: 38cqw; height: 38cqw; object-fit: cover; opacity: 0; }   /* only the source: drawn by creditsCanvas() */
#onboard.ui2 #disc #creditsFilm #creditsPic { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
#onboard.ui2 #disc #creditsFilm #creditsType { position: absolute; left: 0; top: 0; width: 38cqw; height: 38cqw; animation: ui2-flick .1s infinite linear; }   /* the column's own flicker: these lines are no longer in the column */
/* (10 Oct, 20:40, his note) NO vignette on the loop: "get rid of the vignette completely, it's just not working" */
/* (10 Oct, the director) THE CREDITS LAID OUT ACROSS THE PICTURE, inside the circle: "Credits" above the heads at the top, the lines centred
   from the midriff down across the bodies (role, name, role, name …), Back at the bottom of the circle; every line with a drop shadow */
/* (10 Oct, his note: the welcome text "gets shifted off … out of place" when Credits is clicked) the column no longer moves for the credits: the credits step
   places ITSELF on the circle from inside the column (the column is at 63.5cqw / 6.8cqw; the circle at 55cqw / 12.5cqw), so the step that is leaving fades where it stands */
#onboard.ui2 #frame[data-step="credits"] #marker { opacity: 0 !important; }
#onboard.ui2 #column #stepCredits.step { position: absolute; grid-area: auto; left: -8.5cqw; top: 5.7cqw; right: auto; bottom: auto; width: 38cqw; height: 38cqw; transform: none; margin: 0; display: block; text-align: center; padding: 0; }
#onboard.ui2 #column #stepCredits.step > :not(.actions) { animation: none !important; }
#onboard.ui2 #column #stepCredits .actions { animation: none; }
#onboard.ui2 #column #stepCredits .actions { opacity: 0; transition: opacity .3s ease; }
#onboard.ui2 #frame.prologue #column #stepCredits.on .actions { opacity: 1; transition: opacity .5s ease 1.25s; }   /* the close button comes last, after the photograph and the lines */
#onboard.ui2 #frame.popup #column #stepCredits.on .actions { opacity: 1; transition: none; animation: grain-in .5s ease 1.2s both; }   /* an animation (see the grain): the close button comes after the lines, here too */   /* no arriving slide here: the lines are drawn as light and strike on in turn (creditsCanvas) */
/* (10 Oct, evening) the credits' type is drawn as the title's light by creditsCanvas() (core, halo, spill and the comb trail, per line); these lines stay for
   layout, for the canvas to read, and for screen readers, unseen. data-cr-font="archivo" on #frame = the title's own face, for the comparison. */
#onboard.ui2 #column #stepCredits .cr, #onboard.ui2 #column #stepCredits .cr span { color: transparent; text-shadow: none !important; }
#onboard.ui2 #frame[data-cr-font="archivo"] #column #stepCredits .cr, #onboard.ui2 #frame[data-cr-font="archivo"] #column #stepCredits .cr span { font-family: Archivo, Helvetica, "Hiragino Kaku Gothic ProN", sans-serif; font-style: italic; font-weight: 800; }
#onboard.ui2 #column #stepCredits .head { display: none; }   /* (10 Oct, 23:00, his note) no 'Credits' title: 'it's obvious that this is the credits' */   /* (10 Oct, 21:55, his note) every line a little bigger, about a tenth */
#onboard.ui2 #column #stepCredits .cr-lines { position: absolute; top: 50%; left: 6%; right: 6%; margin: 0; }
#onboard.ui2 #column #stepCredits .cr { margin: 0 0 .7cqw; font-size: 1.3cqw; font-weight: 700; line-height: 1.3; letter-spacing: .06em; text-transform: uppercase; }   /* 700: a regular-weight core does not survive its own halo */
#onboard.ui2 #column #stepCredits .cr .nm { display: block; font-size: inherit; }
#onboard.ui2 #column #stepCredits .cr .role { display: block; font-size: 1cqw; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; opacity: 1; margin: 0 0 .12cqw; }   /* (10 Oct, 21:40, his note) the role lines with more weight and a little bigger */
#onboard.ui2 #column #stepCredits .actions { position: absolute; bottom: 1.5cqw; left: 0; right: 0; margin: 0; justify-content: center; }
#onboard.ui2 #column .actions button.cr-close { width: 4cqw; height: 4cqw; padding: 0; background: rgba(0, 0, 0, .55); color: rgb(var(--ink)); box-shadow: inset 0 0 0 .08cqw rgba(var(--ink), .75), 0 .2cqw .8cqw rgba(0, 0, 0, .7); }   /* (10 Oct, 21:10) the site's own button: the dark fill, the ink ring (as Ready has), a soft shadow under it */
#onboard.ui2 #column .actions button.cr-close .ico { width: 1.8cqw; height: 1.8cqw; opacity: .95; }
#onboard.ui2 #column .actions button.cr-close > span { display: grid; place-items: center; line-height: 0; }   /* (10 Oct, his note: the X sat high) the wrapper was a line of text 33 px tall round a 29 px icon: the cross sat 2 px above the circle's centre */
#onboard.ui2 #column .actions button.cr-close .ico { display: block; }
#onboard.ui2 #column .actions button.cr-close .ico svg { stroke-width: 1.7; }
#onboard.ui2 #frame.prologue[data-step="credits"] #disc #creditsFilm, #onboard.ui2 #frame.popup #disc #creditsFilm { opacity: 1; transition: opacity .2s ease; }   /* coming up, the canvas does the fading itself (the wash from screen right) */
#onboard.ui2 #disc .main { transition: background-color .7s ease; }
#onboard.ui2 #frame.prologue[data-step="credits"] #disc .main { background: transparent; transition: background-color 1s ease .35s; }   /* the dark circle stays while the photograph washes in over it, then gives way */
   /* (10 Oct, 23:15, his question) under the loop the main circle's black is gone, so the 20 % that the loop lets through is the poster's streaks, not black; over the film the band is .35 for the same reason */

/* 4 Oct: the day's count beside the icons, in red; a primary choice reads as a button; the count-in is red and ends on a dot */
#onboard.ui2 { --red: 255, 92, 84; }
#onboard.ui2 .iconrow { display: flex; align-items: center; gap: 1.4cqw; margin: .2cqw 0 .9cqw; }
#onboard.ui2 .iconrow .icons { margin: 0; }
#onboard.ui2 #column .iconrow #counter { margin: 0; font-size: 1.05cqw; line-height: 1.25; opacity: 1; color: rgb(var(--red)); }
#onboard.ui2 :is(#column .actions, #column .read-ctl) button.primary { box-shadow: inset 0 0 0 .08cqw rgba(var(--ink), .75); background: rgba(0, 0, 0, .62); }
#onboard.ui2 :is(#column .actions, #column .read-ctl) button.primary:is(:hover, :focus-visible) { box-shadow: inset 0 0 0 .12cqw rgb(var(--ink)); }
#onboard.ui2 #count { color: rgb(var(--red)); }
#onboard.ui2 #count.rec { display: grid; }
#onboard.ui2 #count.rec::before { content: ""; width: 1.5cqw; height: 1.5cqw; border-radius: 50%; background: rgb(var(--red)); }

#onboard.ui2 #column #count { color: rgb(var(--red)) !important; }

/* 4 Oct (evening): lighter type with the film's own opacity flicker; circles that show on the dark circle */
#onboard.ui2 #column { font-family: "Helvetica Neue", Helvetica, Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", sans-serif; font-weight: 300; letter-spacing: .012em; animation: none; }
#onboard.ui2 #frame:not(.leaving) #column { animation: ui2-flick .1s infinite linear; }
@keyframes ui2-flick { 0%, 100% { opacity: 1; } 50% { opacity: .85; } }
#onboard.ui2 #column .head, #onboard.ui2 #column .big { font-weight: 300; }
#onboard.ui2 :is(#column .actions, .reminders .row, #column .read-ctl) button, #onboard.ui2 #count {
    background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 .06cqw rgba(var(--ink), .3); font-weight: 300; font-family: inherit; }
#onboard.ui2 :is(#column .actions, .reminders .row) button + button { background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 .06cqw rgba(var(--ink), .22); }
#onboard.ui2 :is(#column .actions, #column .read-ctl) button.primary { background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 .08cqw rgba(var(--ink), .8); }
#onboard.ui2 :is(#column .actions, .reminders .row, #column .read-ctl) button:is(:hover, :focus-visible) { background: rgba(255, 255, 255, .18); }
#onboard.ui2 #count { box-shadow: inset 0 0 0 .06cqw rgba(var(--red), .55); }
#onboard.ui2 #column .note { font-size: .82cqw; font-style: italic; opacity: .55; margin: 1.5cqw 0 0; }
#onboard.ui2 #column #readyHint { display: none !important; }
#onboard.ui2 #column .iconrow #counter { white-space: nowrap; }

/* (26 Nov 2026, the director) the small red "i" now sits in its own row, bottom-right, below the circles */
#onboard.ui2 #column .limitrow { display: flex; justify-content: flex-end; margin: .5cqw 0 0; }
#onboard.ui2 #column .limitrow .ibtn { margin: 0; }
#onboard.ui2 #column .limitrow:has(.ibtn[hidden]) { display: none; }
/* the small "i" beside the day's count opens a short note about the limit */
#onboard.ui2 #column .ibtn { width: 1.7cqw; height: 1.7cqw; padding: 0; margin: 0 0 0 -.7cqw; border: 0; background: none; color: rgb(var(--red)); opacity: .8; cursor: pointer; flex: none; }
#onboard.ui2 #column .ibtn:is(:hover, :focus-visible) { opacity: 1; outline: none; }
#onboard.ui2 #column .ibtn svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
#onboard.ui2 #column #counter2 { font-size: 1.05cqw; color: rgb(var(--red)); opacity: 1; }
#onboard.ui2 #frame.prologue[data-step="limit"] #disc { opacity: 1; }

/* the menu: four quiet marks, bottom right; present through the onboarding and, fainter, through the film */
#onboard.ui2 #menu { position: absolute; right: 2.4cqw; bottom: 2cqw; z-index: 7; display: flex; gap: 1.1cqw; align-items: center; opacity: 0; pointer-events: none; transition: opacity .8s ease; color: rgb(var(--ink)); }
#onboard.ui2 #frame.prologue:not([data-step="poster"]):not([data-step="prologue"]):not([data-step="read"]) #menu { opacity: .55; pointer-events: auto; }
#onboard.ui2 #frame.released #menu { opacity: .3; pointer-events: auto; }
#onboard.ui2 #frame:is(.leaving, .switching):not(.released) #menu { opacity: 0; pointer-events: none; }
#onboard.ui2 #menu:hover { opacity: 1 !important; }
#onboard.ui2 #menu button { background: none; border: 0; padding: 0; margin: 0; color: inherit; cursor: pointer; font: 300 .9cqw/1 "Helvetica Neue", Helvetica, Arial, "Hiragino Kaku Gothic ProN", sans-serif; display: inline-flex; align-items: center; }
#onboard.ui2 #menu .ico { width: 1.7cqw; height: 1.7cqw; } #onboard.ui2 #menu .ico svg { stroke-width: 1.8; }
/* (10 Oct, his note) Credits is a button with its word, as on the film (#creditsButton in styles.css: same box, same type, bottom right), not the heads icon */
/* (10 Oct, his note) the (i) sits alone in the bottom LEFT corner, on the onboarding and on the film alike (the film's is #instructionsButton in styles.css, same mark, same place) */
#onboard.ui2 #menu #menuInfo { position: absolute; right: 93.64cqw; bottom: 0; }   /* its left edge 2.4cqw from the frame's, as the Credits box's right edge is from the other side */
#onboard.ui2 #menu #menuInfo .ico { width: 1.56cqw; height: 1.56cqw; } #onboard.ui2 #menu #menuInfo .ico svg { stroke-width: 1.5; }   /* (22:15, his note: 'back to 25 and just lower it down') the circle at its first size (25 px at 1600), its BOTTOM on the Credits box's bottom line and its left edge as far in as the box's right edge */
/* (10 Oct, his note: it sat higher than the Credits box) the mark as tall as the box (2.2cqw), so its bottom and its corner distance match the box's in the other corner */
#onboard.ui2 #menu #menuCredits { padding: .6cqw .95cqw; border: 1px solid rgba(var(--ink), .5); border-radius: .32cqw; background: rgba(0, 0, 0, .3); text-transform: uppercase; letter-spacing: .08em; margin-left: .3cqw; }
#onboard.ui2 #frame.prologue:is([data-step="info"], [data-step="credits"]) #disc { opacity: 1; }
/* (10 Oct) the first credits' generic .cr rules lived here; the credits step has its own now (they were shrinking its name spans) */

/* 9 Oct: the assistant route under the reminders, a quiet line with a small robot mark */

/* ====================================================================================================================
   THE TICKET STAGE (2 Nov 2026): the onboarding's first stage. Nothing here is a second look: the steps (scan, ticket, when, booked; the waits and refusals
   are the problem step) are the onboarding's own, with its circles (.actions buttons, .primary / .secondary, .reminders .row), type (.head, .small),
   icons and arrivals. The ONLY new picture is the ticket, which the director approved (box office 532d8a0): its layer and its rollers are below.
   ==================================================================================================================== */
#onboard.ui2 #frame.prologue:is([data-step="scan"], [data-step="ticket"], [data-step="when"], [data-step="booked"], [data-step="collect"]) #disc { opacity: 1; }   /* (the problem step shows it already) */
#onboard.ui2 #column #probBody:empty { display: none; }
#onboard.ui2 #column .small .link { text-align: left; }
#onboard.ui2 #column #turnstile:empty { display: none; }
#onboard.ui2 #column #welcomeNote { margin-top: .2cqw; }
#onboard.ui2 #column .actions button:disabled { opacity: .45; cursor: default; }

/* THE TICKET PICTURE. It does not flicker, so it is not in #column (whose flicker is an opacity on the whole column): this layer lies over the ticket step's
   empty slot (the script keeps it there, frame by frame) and fades with the step. The live ticket's own rules (client/lib/live-ticket.ts: two drawn layers over the
   picture, one multiplied, one laid over; the whole pivots a little in 3D) are the box office's, unchanged. */
#onboard.ui2 #column .tslot { --w: 14cqw; width: var(--w); aspect-ratio: 4 / 5; margin: .3cqw 0 .8cqw calc(var(--w) * -.1389); }   /* the picture has a margin of its own (the card is 72 % of its width, 150 of 1080 px in): the card's left edge sits on the column's */
#onboard.ui2 #column #bkSlot, #onboard.ui2 #column #pbSlot { --w: 10cqw; }
#onboard.ui2 #column #pbSlot[hidden] { display: none; }
#onboard.ui2 #column :is(#tkMore, #bkMore) { margin-top: .1cqw; }
#onboard.ui2 #column #tkMore .link + .link { margin-left: 1.3cqw; }
#onboard.ui2 #mobile :is(#tkMore, #bkMore) { margin-top: 2px; }
/* (26 Nov 2026) the booked step: ticket + Save/Share companion circles side by side, two roomy reminder circles, opaque popover calendar menu */
#onboard.ui2 #column .bk-ticket-row { display: flex; align-items: center; gap: 1.1cqw; margin: .3cqw 0 .9cqw calc(10cqw * -.1389); }
#onboard.ui2 #column .bk-ticket-row .tslot { margin: 0; flex: none; }
#onboard.ui2 #column .bk-ticket-row .bk-side { display: flex; flex-direction: column; gap: .65cqw; flex: none; }
#onboard.ui2 #column .bk-ticket-row .bk-save { width: 5.2cqw; height: 5.2cqw; flex: none; border-radius: 50%; border: 0; cursor: pointer; padding: 0 .45cqw;
    display: grid; place-items: center; align-content: center; gap: .22cqw;
    background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 .06cqw rgba(var(--ink), .3);
    color: rgb(var(--ink)); font: 300 .74cqw/1.15 Helvetica, "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", sans-serif;
    letter-spacing: 0; text-transform: none; text-shadow: none; text-align: center; }
#onboard.ui2 #column .bk-ticket-row .bk-save:is(:hover, :focus-visible) { background: rgba(255, 255, 255, .18); outline: none; }
#onboard.ui2 #column .bk-ticket-row .bk-save .ico { width: 1.45cqw; height: 1.45cqw; opacity: .88; }
#onboard.ui2 #column #bookedReminders { position: relative; z-index: 20; }
#onboard.ui2 #column #bookedReminders .row button { width: 6.4cqw; height: 6.4cqw; padding: 0 .6cqw; gap: .25cqw; font-size: .82cqw; line-height: 1.2; background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 .06cqw rgba(var(--ink), .3); }
#onboard.ui2 #column #bookedReminders .row button .ico { width: 1.65cqw; height: 1.65cqw; opacity: .88; }
/* (27 Nov 2026) calendar menu mounted at top level of #onboard (position: fixed, z-index: 95) so it never traps inside #column/#m-stage or collides with #ticketsToday / #ticketLayer */
#onboard.ui2 > .cal-menu { position: fixed; left: 0; top: 0; z-index: 95; min-width: 194px; padding: 6px 5px; border-radius: 8px;
    background: #101013; box-shadow: 0 10px 28px rgba(0, 0, 0, .82), inset 0 0 0 1px rgba(var(--ink), .42); display: flex; flex-direction: column; gap: 2px;
    font: 300 13.5px/1.35 Helvetica, "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", sans-serif; color: rgb(var(--ink)); }
#onboard.ui2 > .cal-menu[hidden] { display: none; }
#onboard.ui2 > .cal-menu button { width: 100%; padding: 8px 12px; text-align: left; font: inherit; color: rgb(var(--ink)); background: none; border: 0;
    border-radius: 5px; cursor: pointer; white-space: nowrap; letter-spacing: 0; text-transform: none; text-shadow: none; touch-action: manipulation; }
#onboard.ui2 > .cal-menu button:is(:hover, :focus-visible) { background: rgba(255, 255, 255, .14); outline: none; }
#onboard.ui2.is-mobile > .cal-menu { min-width: 204px; padding: 6px 5px; font-size: 14.5px; }
#onboard.ui2.is-mobile > .cal-menu button { padding: 10px 14px; }
#onboard.ui2 #column #stepScan .icons { margin: 0 0 .45cqw; }
#onboard.ui2 #column #stepScan .icons .ico { width: 4.2cqw; height: 4.2cqw; }
/* (3 Nov, the director: "We need to make sure the ticket is on top") z 7: over the frame's scan lines and grain (both 6), as the ticket's own picture */
#onboard.ui2 #ticketLayer { position: absolute; z-index: 7; left: 0; top: 0; width: 0; pointer-events: none; opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility 0s linear .6s; }
#onboard.ui2 #ticketLayer.on { opacity: 1; visibility: visible; transition: opacity .6s ease; }
#onboard.ui2 #frame.leaving #ticketLayer { opacity: 0; transition: opacity .5s ease; }
#onboard.ui2 #ticketLayer .tl-in { opacity: 0; transition: opacity .9s ease .16s; }
#onboard.ui2 #ticketLayer .tl-in.ready { opacity: 1; }
#onboard.ui2 #ticketLayer .live { position: relative; width: 100%; transform-origin: 50% 50%; will-change: transform; pointer-events: auto; }
#onboard.ui2 #ticketLayer .live img { display: block; width: 100%; height: auto; border-radius: .3cqw; }
#onboard.ui2 .live img.saved { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; }   /* the saved picture (the print with one frame of the live view baked in) lies unseen over the plain print: right-click, long-press and dragging give it */
#onboard.ui2 .live canvas.fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; border-radius: .3cqw; }
#onboard.ui2 .live canvas.ink { mix-blend-mode: multiply; }
#onboard.ui2 .live canvas.light { mix-blend-mode: normal; }

/* (26 Nov 2026, the director) the scan step's dashed dropzone: click to upload, highlights while a file is dragged over it */
#onboard.ui2 #column #scanDrop { display: flex; align-items: center; justify-content: center; gap: .7cqw; width: 22cqw; max-width: 100%; min-height: 6.5cqw; margin: .3cqw auto .9cqw; padding: 1.1cqw 1.3cqw; border: .12cqw dashed rgba(var(--ink), .5); border-radius: .5cqw; background: rgba(255, 255, 255, .03); color: rgba(var(--ink), .82); font: inherit; font-size: 1cqw; line-height: 1.35; text-align: center; cursor: pointer; transition: border-color .15s ease, background .15s ease; }
#onboard.ui2 #column #scanDrop[hidden] { display: none; }
#onboard.ui2 #column #scanDrop:is(:hover, :focus-visible) { border-color: rgba(var(--ink), .85); background: rgba(255, 255, 255, .06); outline: none; }
#onboard.ui2 #column #scanDrop.over { border-style: solid; border-color: rgb(var(--ink)); background: rgba(var(--ink), .1); }
#onboard.ui2 #column #scanDrop .ico { width: 1.9cqw; height: 1.9cqw; opacity: .85; flex: none; }
/* (26 Nov 2026, the director) the dropzone and "Scan from phone" side by side, the same height; Back sits alone beneath in .actions */
#onboard.ui2 #column .scan-row { display: flex; gap: .8cqw; align-items: stretch; margin: .3cqw 0 .9cqw; }
#onboard.ui2 #column .scan-row[hidden] { display: none; }                 /* display:flex beats the UA [hidden] rule, so it needs saying */
#onboard.ui2 #column .scan-row #scanDrop { width: auto; margin: 0; flex: 1 1 0; min-height: 7cqw; }
#onboard.ui2 #column .scan-row .scanbtn { display: flex; align-items: center; justify-content: center; gap: .7cqw; flex: 1 1 0; min-height: 7cqw; padding: 1.1cqw 1.3cqw; border: .12cqw solid rgba(var(--ink), .45); border-radius: .5cqw; background: rgba(255, 255, 255, .05); color: rgb(var(--ink)); font: inherit; font-size: 1cqw; line-height: 1.35; text-align: center; cursor: pointer; transition: border-color .15s ease, background .15s ease; }
#onboard.ui2 #column .scan-row .scanbtn:is(:hover, :focus-visible) { border-color: rgb(var(--ink)); background: rgba(255, 255, 255, .09); outline: none; }
#onboard.ui2 #column .scan-row .scanbtn .ico { width: 1.9cqw; height: 1.9cqw; opacity: .85; flex: none; }

/* (26 Nov 2026, the director) the floating Pass-it-on toast: under the column, out of flow, so it never shifts the centred column; fades in, holds, fades out */
#onboard.ui2 #passToast { position: absolute; left: 63.5%; width: 21.5%; bottom: 2cqw; z-index: 9; display: flex; justify-content: center; pointer-events: none; opacity: 0; transition: opacity .5s ease; }
#onboard.ui2 #passToast.show { opacity: 1; }
#onboard.ui2 #passToast span { max-width: 100%; padding: .6cqw 1cqw; border-radius: 1.2cqw; background: rgba(0, 0, 0, .82); color: rgb(var(--ink)); box-shadow: inset 0 0 0 .07cqw rgba(var(--ink), .55); font: inherit; font-size: .9cqw; line-height: 1.4; text-align: center; text-shadow: none; }

/* The scan step's camera, as small as the picture it looks for */
#onboard.ui2 #column #scanVideo { display: block; width: 15cqw; border-radius: .32cqw; margin: .3cqw 0 .9cqw; }
#onboard.ui2 #column #scanVideo[hidden] { display: none; }

/* BOOK A TIME: the night and the hour on rollers, like setting an alarm on an iPhone (the box office's own, 15 Oct), in the onboarding's idiom: the faint light fill
   and ink ring of its circles, its type, its ink */
#onboard.ui2 #column .rollers { --row: 2.3cqw; position: relative; display: flex; gap: .5cqw; margin: .5cqw 0 .9cqw; }
#onboard.ui2 #column .rollers::before { content: ""; position: absolute; left: 0; right: 0; top: calc(var(--row) * 2); height: var(--row); border-radius: calc(var(--row) / 2);
    background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 .06cqw rgba(var(--ink), .3); pointer-events: none; }
#onboard.ui2 #column .roller { position: relative; height: calc(var(--row) * 5); overflow-y: scroll; scroll-snap-type: y mandatory; scrollbar-width: none; outline: none;
    -webkit-mask-image: linear-gradient(transparent, #000 32%, #000 68%, transparent); mask-image: linear-gradient(transparent, #000 32%, #000 68%, transparent); }
#onboard.ui2 #column .roller::-webkit-scrollbar { display: none; }
#onboard.ui2 #column .roller .pad { height: calc(var(--row) * 2); }
#onboard.ui2 #column .roller .it { height: var(--row); display: flex; align-items: center; gap: .5cqw; padding: 0 .8cqw; scroll-snap-align: center; cursor: pointer; white-space: nowrap; font-size: 1.12cqw; }
#onboard.ui2 #column .roller .it.full { opacity: .35; }
#onboard.ui2 #column .roller .it small { font-size: .78em; opacity: .7; }
#onboard.ui2 #column .r-day { flex: 1 1 auto; }
#onboard.ui2 #column .r-hour { flex: 0 0 6.6cqw; }
#onboard.ui2 #column .r-hour .it { justify-content: center; }
#onboard.ui2 #column #whenSum { margin-bottom: .3cqw; }
#onboard.ui2 .moon { width: 1cqw; height: 1cqw; display: block; }
#onboard.ui2 .moon circle { fill: rgba(var(--ink), .14); }
#onboard.ui2 .moon path { fill: rgba(var(--ink), .85); }

/* a phone showing its ticket to a computer's camera: the picture full screen on the page's black, and the circle to close it */
#onboard.ui2 #present { position: fixed; inset: 0; z-index: 100; background: #000; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: max(16px, env(safe-area-inset-top)) 16px max(24px, env(safe-area-inset-bottom)); color: rgb(var(--ink)); }
#onboard.ui2 #present img { max-width: 100%; max-height: 66vh; border-radius: 4px; }
#onboard.ui2 #present p { font: 300 15px/1.4 "Helvetica Neue", Helvetica, Arial, "Hiragino Kaku Gothic ProN", sans-serif; text-align: center; max-width: 320px; margin: 0; opacity: .8; }
#onboard.ui2 #present button { min-width: 84px; min-height: 84px; width: 84px; height: 84px; border-radius: 50%; border: 0; color: inherit; font: 300 14px/1.2 "Helvetica Neue", Helvetica, Arial, "Hiragino Kaku Gothic ProN", sans-serif; background: rgba(255, 255, 255, .09); box-shadow: inset 0 0 0 1px rgba(var(--ink), .45); cursor: pointer; touch-action: manipulation; }

/* ---- THE PHONE PAGE, ticket stage (2 Nov): the same steps in the phone's own layout (px, as the rest of the phone page is): its home keeps the page's words and adds the
   counter, Take a ticket and the way in for a ticket held; every other step moves into its text block (#mSteps). The circles, type and rollers are the desktop's, at phone size. */
#onboard.ui2 #mobile #mHome[hidden], #onboard.ui2 #mobile #mSteps[hidden], #onboard.ui2 #mobile #mTicketHome[hidden] { display: none; }
#onboard.ui2 #mobile #mSteps { display: grid; }
#onboard.ui2 #mobile #mSteps .step:not(.on) { display: none; }
#onboard.ui2 #mobile #mSteps .step.on > p, #onboard.ui2 #mobile #mSteps .step.on > div { animation: arrive-fade .9s ease both; }
#onboard.ui2 #mobile .step p { margin: 0 0 8px; text-shadow: none; }
#onboard.ui2 #mobile .step .head { font: inherit; font-size: 18px; line-height: 1.26; font-weight: 300; }
#onboard.ui2 #mobile :is(.small, .counter) { font-size: 12.5px; line-height: 1.38; opacity: .72; }
#onboard.ui2 #mobile .iconrow { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 2px 0 6px; }
#onboard.ui2 #mobile .iconrow .counter { margin: 0; opacity: 1; color: rgb(var(--red)); font-size: 13.5px; white-space: nowrap; }
#onboard.ui2 #mobile .counter b { font-weight: 400; }
#onboard.ui2 #mobile .link { font: inherit; font-size: 12.5px; color: inherit; opacity: .82; text-underline-offset: .2em; text-align: center; }
#onboard.ui2 #mobile .small .link + .link { margin-left: 14px; }
#onboard.ui2 #mobile .actions { display: flex; flex-wrap: nowrap; align-items: center; justify-content: center; gap: 8px; margin: 6px 0 8px; }
#onboard.ui2 #mobile .actions button { flex: none; width: 74px; height: 74px; border: 0; border-radius: 50%; padding: 0 5px; display: grid; place-items: center; align-content: center; gap: 3px; cursor: pointer; touch-action: manipulation;
    color: rgba(var(--ink), .8); font: 300 11.5px/1.15 "Helvetica Neue", Helvetica, Arial, "Hiragino Kaku Gothic ProN", sans-serif; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(var(--ink), .26); }
#onboard.ui2 #mobile .actions button.primary { color: rgb(var(--ink)); background: rgba(255, 255, 255, .11); box-shadow: inset 0 0 0 1.4px rgba(var(--ink), .8); }
#onboard.ui2 #mobile .actions button { text-transform: none; letter-spacing: 0; text-shadow: none; text-decoration: none; }
#onboard.ui2 #mobile .actions button::after { content: none; }
#onboard.ui2 #mobile .actions button + button { margin-left: 0; }
#onboard.ui2 #mobile .actions button .ico { width: 20px; height: 20px; opacity: .88; }
#onboard.ui2 #mobile .actions button:disabled { opacity: .45; }
#onboard.ui2 #mobile .tslot { --w: min(34vw, 132px); width: var(--w); aspect-ratio: 4 / 5; margin: 0 auto 8px; cursor: pointer; }
#onboard.ui2 #mobile #bkSlot, #onboard.ui2 #mobile #pbSlot { --w: min(30vw, 120px); }
#onboard.ui2 #mobile #pbSlot[hidden] { display: none; }
#onboard.ui2 #mobile .bk-ticket-row { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 2px 0 10px; }
#onboard.ui2 #mobile .bk-ticket-row .tslot { margin: 0; flex: none; }
#onboard.ui2 #mobile .bk-ticket-row .bk-side { display: flex; flex-direction: column; gap: 8px; flex: none; }
#onboard.ui2 #mobile .bk-ticket-row .bk-save { width: 66px; height: 66px; flex: none; border-radius: 50%; border: 0; cursor: pointer; padding: 0 5px;
    display: grid; place-items: center; align-content: center; gap: 3px;
    background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(var(--ink), .3);
    color: rgb(var(--ink)); font: 300 10.5px/1.15 Helvetica, "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", sans-serif;
    letter-spacing: 0; text-transform: none; text-shadow: none; text-align: center; }
#onboard.ui2 #mobile .bk-ticket-row .bk-save .ico { width: 18px; height: 18px; opacity: .88; }
#onboard.ui2 #mobile #bookedReminders { position: relative; z-index: 20; }
#onboard.ui2 #mobile #bookedReminders .row button { width: 78px; height: 78px; max-width: none; padding: 0 6px; font-size: 11px; line-height: 1.2; background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(var(--ink), .3); }
#onboard.ui2 #mobile #passToast { position: fixed; left: 16px; right: 16px; width: auto; bottom: max(46px, calc(env(safe-area-inset-bottom) + 36px)); z-index: 90; }
#onboard.ui2 #mobile #passToast span { padding: 8px 14px; border-radius: 16px; box-shadow: inset 0 0 0 1px rgba(var(--ink), .55); font-size: 13px; }
#onboard.ui2 #mobile #scanVideo { display: block; width: 60%; border-radius: 5px; margin: 4px auto 10px; }
#onboard.ui2 #mobile #scanVideo[hidden] { display: none; }
#onboard.ui2 #mobile .rollers { --row: 38px; position: relative; display: flex; gap: 8px; margin: 6px 0 12px; }
#onboard.ui2 #mobile .rollers::before { content: ""; position: absolute; left: 0; right: 0; top: calc(var(--row) * 2); height: var(--row); border-radius: calc(var(--row) / 2); background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(var(--ink), .3); pointer-events: none; }
#onboard.ui2 #mobile .roller { position: relative; height: calc(var(--row) * 5); overflow-y: scroll; scroll-snap-type: y mandatory; scrollbar-width: none; outline: none;
    -webkit-mask-image: linear-gradient(transparent, #000 32%, #000 68%, transparent); mask-image: linear-gradient(transparent, #000 32%, #000 68%, transparent); }
#onboard.ui2 #mobile .roller::-webkit-scrollbar { display: none; }
#onboard.ui2 #mobile .roller .pad { height: calc(var(--row) * 2); }
#onboard.ui2 #mobile .roller .it { height: var(--row); display: flex; align-items: center; gap: 8px; padding: 0 12px; scroll-snap-align: center; cursor: pointer; white-space: nowrap; font-size: 17px; }
#onboard.ui2 #mobile .roller .it.full { opacity: .35; } #onboard.ui2 #mobile .roller .it small { font-size: .78em; opacity: .7; }
#onboard.ui2 #mobile .r-day { flex: 1 1 auto; } #onboard.ui2 #mobile .r-hour { flex: 0 0 92px; } #onboard.ui2 #mobile .r-hour .it { justify-content: center; }
#onboard.ui2 #mobile .moon { width: 13px; height: 13px; }
#onboard.ui2 #mobile #ticketLayer { z-index: 7; }

/* ---- THE TICKET COLLECTOR (2 Nov): the ticket (its saved picture) and the stub on the ticket layer, steady, outside the column. The tear is the box office's own (client/box-office, the
   stub page's torn ticket): the picture's top part with the torn edge along its perforation, the bottom part falling away, then the stub. One step's arrival, as every step's. */
#onboard.ui2 #ticketLayer .tl-in .coll { display: none; }
#onboard.ui2 #ticketLayer .tl-in.collect .live { display: none; }
#onboard.ui2 #ticketLayer .tl-in.collect .coll { display: block; position: relative; width: 100%; aspect-ratio: 4 / 5; }
#onboard.ui2 #ticketLayer .coll img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; border-radius: .3cqw; }
#onboard.ui2 #ticketLayer .coll .c-up { clip-path: polygon(0 0, 100% 0, 100% 58%, 86% 63%, 72% 57%, 58% 64%, 44% 58%, 30% 64%, 15% 58%, 0 63%); transition: opacity calc(.55s * var(--k, 1)) ease calc(.35s * var(--k, 1)); }
#onboard.ui2 #ticketLayer .coll .c-dn { clip-path: polygon(0 63%, 15% 58%, 30% 64%, 44% 58%, 58% 64%, 72% 57%, 86% 63%, 100% 58%, 100% 100%, 0 100%); transform-origin: 18% 62%;
    transition: transform calc(.9s * var(--k, 1)) cubic-bezier(.55, 0, .85, .45), opacity calc(.7s * var(--k, 1)) ease calc(.2s * var(--k, 1)); }
#onboard.ui2 #ticketLayer .coll .c-stub { opacity: 0; transition: opacity calc(.8s * var(--k, 1)) ease; }   /* --k: a test slows the whole moment down by it (the frames are then taken at their own moments); 1 otherwise */
#onboard.ui2 #ticketLayer .coll.tear .c-dn { transform: translate(7%, 24%) rotate(6deg); opacity: 0; }
#onboard.ui2 #ticketLayer .coll.tear .c-up { opacity: 0; }
#onboard.ui2 #ticketLayer .coll.handed .c-stub { opacity: 1; }
@media (prefers-reduced-motion: reduce) { #onboard.ui2 #ticketLayer .coll img { transition: none !important; } }
#onboard.ui2 #mobile #ticketLayer .coll img { border-radius: 4px; }
#onboard.ui2 #mobile #clSlot { --w: min(52vw, 210px); }

/* ---- THE DEMO'S LINE (box office main, 70a66db): a quiet line at the very top where the box office says it is the demo; its controls are small text buttons in the same line (the line
   lets clicks through; only the buttons take them). The box office's own rules, in the onboarding's ink. */
#onboard.ui2 #demoBar { position: fixed; top: 0; left: 0; right: 0; z-index: 60; padding: 6px 16px 0; text-align: center; pointer-events: none;
    font: 400 clamp(10px, .85vw, 13px)/1.2 Helvetica, "Helvetica Neue", Arial, sans-serif; letter-spacing: .14em; font-variant-numeric: tabular-nums; color: rgba(var(--ink), .6); text-shadow: 0 0 6px rgba(0, 0, 0, .9); }
#onboard.ui2 #demoBar[hidden] { display: none; }
#onboard.ui2 #demoControls:not(:empty)::before, #onboard.ui2 #demoControls button + button::before { content: "\00b7"; margin: 0 .55em; }
#onboard.ui2 #demoControls button { font: inherit; letter-spacing: inherit; color: inherit; text-shadow: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; pointer-events: auto; text-underline-offset: .25em; }
#onboard.ui2 #demoControls button + button::before { pointer-events: none; text-decoration: none; display: inline-block; }
#onboard.ui2 #demoControls button:is(:hover, :focus-visible) { color: rgb(var(--ink)); text-decoration: underline; outline: none; }
#onboard.ui2 #demoControls button:disabled { opacity: .5; cursor: default; }

/* (23 Nov 2026, the director) tickets available today, on the whole onboarding from the language page on: at the bottom, under the poster's title and the idle dancer's feet; never over the film */
#onboard.ui2 #ticketsToday { position: absolute; bottom: 3.4cqw; left: 0; right: 0; z-index: 9; margin: 0; text-align: center; pointer-events: none;
    font: 300 1.05cqw/1.25 "Helvetica Neue", Helvetica, Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", sans-serif; letter-spacing: .012em; font-variant-numeric: tabular-nums; color: rgb(var(--red)); text-shadow: 0 0 .5cqw rgba(0, 0, 0, .85); }
#onboard.ui2 #ticketsToday b { font-weight: 400; }
#onboard.ui2 #ticketsToday[hidden], #onboard.ui2 #frame:is(.leaving, .released, .popup) #ticketsToday { display: none; }
#onboard.ui2 #mobile #ticketsToday { position: relative; flex: none; top: auto; bottom: auto; left: auto; right: auto; margin: 6px auto 0; z-index: 3; text-align: center; font-size: 13px; line-height: 1.3; text-shadow: 0 0 6px rgba(0, 0, 0, .85); }

/* (23 Nov 2026, the arrivals sheet) what happened to a ticket stands alone, without the tagline under it */
#onboard.ui2 #stepWelcome.has-lead > :is([data-t="promise"], [data-t="needs"]) { display: none; }
#onboard.ui2 #mobile #mLead { margin: 2px 0 8px; }
#onboard.ui2 #mobile #mLead[hidden] { display: none; }
/* phone reminder circles: four across the column, side by side, never over each other */
#onboard.ui2 #mobile .reminders .row button { flex: 0 1 auto; width: calc((100% - 15px) / 4); max-width: 76px; height: auto; aspect-ratio: 1; min-width: 0; }
#onboard.ui2 #mobile .reminders .row button + button { margin-left: 5px; }
/* Japanese circle labels break between phrases, never inside a word */
html[lang="ja"] #onboard.ui2 :is(#column, #mobile) .actions button { word-break: keep-all; word-break: auto-phrase; }
html[lang="ja"] #onboard.ui2 #column .actions button { padding-inline: 1cqw; }
html[lang="ja"] #onboard.ui2 #mobile .actions button { padding-inline: 12px; }
/* the two ticket circles: room for four characters a line, so both read チケット / あり, なし, the same shape */
html[lang="ja"] #onboard.ui2 #column .actions :is(#haveCircle, #beginBtn) { word-break: normal; padding-inline: calc((6.4cqw - 4.5em) / 2); }
html[lang="ja"] #onboard.ui2 #mobile .actions :is(#mHave, #mTake) { word-break: normal; padding-inline: calc((84px - 4.5em) / 2); }
html[lang="ja"] #onboard.ui2 :is(#counterLead, #mLead, #notice p, #probTitle, #probBody) { word-break: auto-phrase; }

/* (21 Nov 2026) the booked step: "Download the ticket" inline after "Keep this ticket", its icon beside it */
#onboard.ui2 #column .link.dl { white-space: nowrap; }
#onboard.ui2 #column .link.dl .ico { width: 1.25em; height: 1.25em; vertical-align: -.25em; margin-right: .3em; display: inline-block; }
#onboard.ui2 #mobile .link.dl .ico { width: 1.25em; height: 1.25em; vertical-align: -.25em; margin-right: .3em; display: inline-block; }
