/* TOKYOECHO · the scene prompts in the settled instruction design (7 Oct 2026; from prototypes/design-lab/instruct, "round 6", his pick).
   One or two lines of a slightly grey white Helvetica, no glow, on a chain of dark circles sized to the text, the icon in the line, a
   gentle flicker. Applied to the scene popups (#scene1Popup, #scene2Popup, #scene4Popup, #scene5Popup) by js/prompts.js, which only
   re-arranges what applyTranslations / initPopupText already put there (the <p> word spans are kept: the typewriter still works).
   Scene three keeps its own sign (scene3-clap.js) for now. Sizes are in cqw of the popup, which is bound to the film's frame. */
#scene1Popup.te-prompts, #scene2Popup.te-prompts, #scene4Popup.te-prompts, #scene5Popup.te-prompts {
    container-type: size; padding: 0; align-items: stretch; justify-content: stretch;
    --ink: 255, 250, 208;                                 /* (7 Oct, his words: "this sort of beige font looked better actually … the new one feels too bright and white") the site's old cream, hsl(52,100%,91%), for the type and the icons; was the lab's grey white 226,227,224 */
}
.te-prompts .scene1-content, .te-prompts .scene2-content, .te-prompts .scene4-content, .te-prompts .scene5-content {
    position: absolute; inset: 0; max-width: none; width: 100%; margin: 0; padding: 0;
    color: rgb(var(--ink)); text-shadow: none; font-family: Helvetica, "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", sans-serif; font-weight: 400;
}
html[lang="ja"] .te-prompts [class$="-content"] { font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", sans-serif; }

/* the chain of circles (the lab's .c): drawn behind the lines, each sized by js/prompts.js */
.te-prompts .te-c { position: absolute; border-radius: 50%; background: rgba(0, 0, 0, var(--a, .5)); pointer-events: none; }

/* the lines, centred in the chain (the lab's .prompt) */
.te-prompts .te-lines { position: absolute; left: 22cqw; width: 56cqw; transform: translateY(-50%); display: grid; justify-items: center; gap: .55cqw; font-size: 1.08cqw; line-height: 1.35; text-align: center; }
.te-prompts .te-line { display: flex; align-items: center; justify-content: center; gap: .7cqw; white-space: nowrap; }
.te-prompts .te-line p { margin: 0; font: inherit; color: inherit; text-shadow: none; letter-spacing: normal; }
.te-prompts .te-line p span { font: inherit; }

/* the flicker (the lab's .flick) */
.te-prompts .te-flick { animation: te-buzz .1s infinite linear; }
@keyframes te-buzz { 0%, 100% { opacity: 1; } 50% { opacity: .9; } }
@media (prefers-reduced-motion: reduce) { .te-prompts .te-flick { animation: none; } }

/* the icons (the lab's .ico): thin lines on a 48 grid */
.te-prompts .ico { display: inline-flex; flex: none; width: 2.5cqw; height: 2.5cqw; }
.te-prompts .ico svg { width: 100%; height: 100%; overflow: visible; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.te-prompts .ico.ohands { aspect-ratio: 77 / 46; width: auto; height: 2.7cqw; }
.te-prompts .ico.humwide { aspect-ratio: 64 / 48; width: auto; height: 2.6cqw; }
.te-prompts .ico.clap4 { position: relative; width: 2.8cqw; height: 2.8cqw; }
.te-prompts .ico.clap4 i { position: absolute; inset: 0; background: currentColor; -webkit-mask: url(../img/instruct-clap-thin.png?v=e02f6d72d8) center / contain no-repeat; mask: url(../img/instruct-clap-thin.png?v=e02f6d72d8) center / contain no-repeat; }
.te-prompts .ico.clap4 svg { position: absolute; inset: 0; }
/* their motion, as in the lab */
.te-prompts .i-eye .eo { transform-origin: 24px 24px; animation: te-eye-o 5s ease-in-out infinite; }
.te-prompts .i-eye .ec { animation: te-eye-c 5s ease-in-out infinite; }
@keyframes te-eye-o { 0%, 22% { transform: scaleY(1); opacity: 1; } 32%, 82% { transform: scaleY(.06); opacity: 0; } 92%, 100% { transform: scaleY(1); opacity: 1; } }
@keyframes te-eye-c { 0%, 24% { opacity: 0; } 32%, 82% { opacity: 1; } 90%, 100% { opacity: 0; } }
.te-prompts .ohands .oh { animation: te-oh 4.5s ease-in-out infinite; }
@keyframes te-oh { 0%, 12% { transform: translateX(-7px); } 50%, 88% { transform: translateX(0); } 100% { transform: translateX(-7px); } }
.te-prompts .i-hum .scope { animation: te-scope .5s linear infinite; }
@keyframes te-scope { from { transform: translateX(-4px); } to { transform: translateX(0); } }
.te-prompts .clap4 .tk { opacity: 1; animation: te-burst .75s steps(1) infinite; }
@keyframes te-burst { 0% { transform: translate(0, 0); opacity: 1; } 33% { transform: translate(calc(var(--dx) * .8), calc(var(--dy) * .8)); opacity: 1; } 66% { transform: translate(calc(var(--dx) * 1.6), calc(var(--dy) * 1.6)); opacity: .55; } }

/* the review's stills (snap): nothing moves */
body.te-still .te-prompts .te-flick, body.te-still .te-prompts .ico * { animation: none !important; }

/* the old bubble-chain backdrop (styles.css ::before box-shadow circles) is not drawn under the new chain */
.te-prompts .scene1-content::before, .te-prompts .scene2-content::before, .te-prompts .scene4-content::before, .te-prompts .scene5-content::before { display: none !important; }
/* the runtime lines that are not part of the prompt: scene two's hands-out-of-view hint, a camera error: a small line under the chain */
.te-prompts [class$="-content"] > p[data-hand-hint], .te-prompts [class$="-content"] > p[data-camera-error] { position: absolute; left: 10cqw; right: 10cqw; top: 14.6cqw; margin: 0; text-align: center; font-size: .95cqw; line-height: 1.4; color: rgba(var(--ink), .92); text-shadow: 0 0 .3cqw #000; }

/* scene two: the hands animation as its own row between the two lines, a touch larger */
.te-prompts .te-line.te-mid .ico.ohands { height: 3.4cqw; }

/* scene four (7 Oct, later, his words: "move it up so it's in between those two lines … a touch bigger … a little bit further away from the
   words … with the frequency waveform going into the gap between the two lines"): the hum head beside the pair of lines, not in the second
   line; larger (2.6 -> 3.2cqw), further from the words (.7 -> 1.3cqw); its wave runs at 31 of the icon's 48 (64.6 % down), so the icon is
   raised by 14.6 % of its height from centre: the wave sits level with the gap between the two lines */
.te-prompts .te-lines.te-beside { display: flex; justify-content: center; align-items: center; gap: 1.3cqw; }
.te-prompts .te-pair { display: grid; justify-items: center; gap: .55cqw; }
.te-prompts .te-beside > .ico.humwide { height: 3.2cqw; transform: translateY(-14.6%); }

/* scene one, the eyes opened too early (8 Oct, his words: "the original lines fade out and this line fades up … just keep the new single line
   and the animating eye icons … about a one second fade up"): js/prompts.js s1Fast() adds one line (the eye on either side) over the two and
   sets .te-s1-fasted on the lines; the two go out as the one comes up, over a second; it stays */
#scene1Popup.te-prompts .te-lines > .te-line { transition: opacity 1s ease; }
#scene1Popup.te-prompts .te-lines > .te-line.te-s1-fast { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); opacity: 0; }
#scene1Popup.te-prompts .te-lines.te-s1-fasted > .te-line { opacity: 0; }
#scene1Popup.te-prompts .te-lines.te-s1-fasted > .te-line.te-s1-fast { opacity: 1; }
