:root{color-scheme:dark;--ink:#f7eee6;--muted:#c1c3c8;--gold:#e8c7a1;--night:#10161e;--line:rgba(240,224,202,.21);--ease:cubic-bezier(.2,.65,.25,1)}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;background:var(--night)}body{color:var(--ink);font-family:'Avenir Next','Segoe UI',Arial,sans-serif;-webkit-font-smoothing:antialiased;line-height:1.5}button{font:inherit;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent}button:focus-visible{outline:2px solid #ffe3b5;outline-offset:5px}h1:focus,h2:focus{outline:none}button svg{width:22px;height:22px;flex:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}button{transition:background .2s,box-shadow .2s,transform .2s}button:active{transform:scale(.98)}[hidden]{display:none!important}.sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.ambient-backdrop{position:fixed;inset:-50px;background:linear-gradient(#0a101b80,#080d17d9),url('assets/world-base.webp') center 45%/cover;filter:blur(34px);pointer-events:none;opacity:.58}
.cinema{position:relative;isolation:isolate;min-height:100svh;width:100%;max-width:calc(100svh * .5625);margin:auto;background:#10161e;overflow:clip;box-shadow:0 0 100px 50px #0005}.scenery{position:absolute;inset:0;z-index:-2;overflow:hidden;pointer-events:none}.world{position:absolute;left:0;top:0;width:100%;aspect-ratio:941/1672;transform-origin:57% 30%;will-change:transform;opacity:1}.world::after{content:'';position:absolute;inset:65% 0 -1px;background:linear-gradient(transparent,#10161e)}.plate{position:absolute;inset:0;width:100%;height:100%;object-fit:fill;display:block}.reflection{opacity:1;will-change:opacity;mask-repeat:no-repeat;-webkit-mask-repeat:no-repeat}.woman{mask-image:radial-gradient(ellipse 18% 15.5% at 28.5% 19%,#000 60%,transparent 100%)}.studio{mask-image:radial-gradient(ellipse 20% 7.3% at 30% 28.3%,#000 59%,transparent 100%)}.cafe{mask-image:radial-gradient(ellipse 21% 9% at 30% 41.2%,#000 58%,transparent 100%)}
.sunlight{position:absolute;inset:0;background:radial-gradient(ellipse 19% 14% at 83% 24%,#ffd29258,transparent 85%);mix-blend-mode:screen;opacity:.5;will-change:opacity,transform}.window-glint{position:absolute;inset:0;background:linear-gradient(110deg,transparent 16%,#d1e1ff0c 20%,#ffe1bc18 22%,transparent 28%);mix-blend-mode:screen;opacity:.6}.dust{position:absolute;inset:0;overflow:hidden}.dust i{position:absolute;width:2px;height:2px;border-radius:50%;background:#ffe9c3;opacity:0;box-shadow:0 0 6px #ffdbac;will-change:transform,opacity}.scene-shade{position:absolute;inset:0;background:linear-gradient(180deg,#080f1b28 0%,transparent 13%,transparent 48%,#070c1466 65%,#0a0f19db 90%,#0a101af5 100%);transition:background 1s}.toolbar{position:absolute;top:calc(12px + env(safe-area-inset-top));left:16px;right:16px;display:flex;align-items:center;justify-content:space-between;z-index:5}.icon-button{display:grid;place-items:center;width:44px;height:44px;padding:0;border:1px solid #ffffff26;border-radius:50%;color:#f5eee4;background:#0c172337;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}.icon-button:hover{background:#0c17237a}.playback-controls{display:flex;gap:8px}
.screen{position:relative;min-height:100svh}.welcome{display:flex;align-items:flex-end;padding:0 30px calc(14px + env(safe-area-inset-bottom))}.title-composition{width:100%;text-align:center;padding-top:340px}.opening-line{position:relative;isolation:isolate;font-size:clamp(16px,4.3vw,21px);font-weight:500;line-height:1.5;letter-spacing:.015em;color:#fff9f1;margin:0 0 19px;text-shadow:0 2px 6px #000,0 0 18px #000b;opacity:1}.opening-line::before{content:"";position:absolute;z-index:-1;inset:-10px -12px;background:radial-gradient(ellipse at center,#080e18a6 0%,transparent 72%);pointer-events:none}h1{font-family:'Avenir Next', 'Helvetica Neue','Segoe UI',sans-serif;font-size:clamp(48px,13.8vw,78px);font-weight:200;line-height:1.08;letter-spacing:.18em;margin:0 -6px 28px 0;text-shadow:0 2px 30px #0004}h1 span{display:block;background:linear-gradient(175deg,#fffbf3 12%,#f4e7da 70%,#dcad85 100%);color:#f4e7da;-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}h1 span+span{margin-top:6px;letter-spacing:.205em}.start-button{position:relative;display:flex;align-items:center;justify-content:center;gap:14px;width:100%;min-height:58px;padding:15px 14px;border:1px solid #fff8e4b3;border-radius:12px;background:linear-gradient(135deg,#f5e7d9f5,#cfbcadf2);color:#242936;font-weight:500;font-size:16px;line-height:1.3;box-shadow:0 0 0 3px #fff1df06,0 6px 28px #f3d3ad14,inset 0 1px 0 #fff9f1;overflow:hidden}.start-button:hover{background:linear-gradient(135deg,#fff2e5,#e3cdbb);box-shadow:0 0 30px #ffddbb29}.start-button svg{width:19px;height:19px;opacity:.65}.replay{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;margin-top:8px;padding:9px 12px;border:0;background:transparent;color:#c5c6c9;font-size:11px;letter-spacing:.035em}.replay svg{width:13px;height:13px}.replay:hover{color:white}.load-note{position:absolute;top:80px;left:20px;right:20px;font-size:12px;text-align:center;color:#fff;background:#10161e80;border-radius:8px;padding:7px;transition:opacity .4s}.is-ready .load-note{opacity:0;pointer-events:none}
.js .welcome h1,.js .opening-line{opacity:0}
/* A single shared camera keeps every masked reflection registered with the scene. */
.is-ready .world{animation:camera 32s ease-in-out infinite alternate}.is-ready .man{animation:man-life 18s ease-in-out infinite}.is-ready .woman{animation:woman-life 18s ease-in-out infinite}.is-ready .studio{animation:studio-life 18s ease-in-out infinite}.is-ready .cafe{animation:cafe-life 18s ease-in-out infinite}.is-ready .sunlight{animation:light-breath 11s ease-in-out infinite alternate}.is-ready .window-glint{animation:glass-pass 22s ease-in-out infinite alternate}.is-ready .dust i{animation:float-dust var(--duration) ease-in-out var(--delay) infinite}.is-ready .opening-line{animation:line-reveal .85s var(--ease) .05s both}.is-ready h1{animation:title-reveal 1.2s var(--ease) 1.1s both}.is-ready .welcome .start-button::after{content:'';position:absolute;inset:0;background:linear-gradient(110deg,transparent 30%,#fff9 48%,transparent 67%);transform:translateX(-130%);animation:button-light 12s ease-in-out 5s infinite;pointer-events:none}.paused .scenery *,.suspended .scenery *,.paused .welcome *,.suspended .welcome *{animation-play-state:paused!important}.paused h1,.paused .opening-line,.still h1,.still .opening-line{animation:none!important;opacity:1!important;transform:none;filter:none}.still .world,.still .reflection,.still .sunlight,.still .window-glint,.still .dust i,.still .start-button::after{animation:none!important}.still .reflection{opacity:1}.still .dust{display:none}
@keyframes camera{0%{transform:scale(1.015) translate3d(-.2%,0,0)}100%{transform:scale(1.065) translate3d(.25%,-.45%,0)}}
.man{mask-image:radial-gradient(ellipse 17% 15% at 88% 37%,#000 67%,transparent 100%)}
@keyframes man-life{0%,2%{opacity:0}12%,64%{opacity:1}78%{opacity:.25}90%{opacity:1}100%{opacity:0}}
@keyframes woman-life{0%{opacity:.22}4%,54%{opacity:1}68%{opacity:.35}85%{opacity:1}100%{opacity:.22}}
@keyframes studio-life{0%{opacity:.12}12%,62%{opacity:1}73%{opacity:.35}88%{opacity:1}100%{opacity:.12}}
@keyframes cafe-life{0%,6%{opacity:.1}24%,70%{opacity:1}82%{opacity:.4}92%{opacity:1}100%{opacity:.1}}
@keyframes light-breath{0%{opacity:.25;transform:translate3d(0,0,0)}100%{opacity:.65;transform:translate3d(-1%,.5%,0)}}
@keyframes glass-pass{from{opacity:.15;transform:translateX(-5%)}to{opacity:.6;transform:translateX(4%)}}
@keyframes float-dust{0%{opacity:0;transform:translate3d(0,15px,0)}25%{opacity:.45}75%{opacity:.15}100%{opacity:0;transform:translate3d(16px,-55px,0)}}
@keyframes line-reveal{from{opacity:0;transform:translateY(8px);filter:blur(3px)}to{opacity:1;transform:translateY(0);filter:blur(0)}}
@keyframes title-reveal{from{opacity:0;transform:translateY(12px);filter:blur(7px)}to{opacity:1;transform:translateY(0);filter:blur(0)}}
@keyframes button-light{0%,78%,100%{transform:translateX(-130%);opacity:0}80%{opacity:.5}95%{transform:translateX(130%);opacity:0}}
.character-mode .scene-shade{background:linear-gradient(180deg,#0c142d7a,#0b1422db 32%,#0b111cf8 75%)}.character-mode .world{animation-play-state:paused}.character-mode .toolbar{justify-content:flex-end}.character-mode .playback-controls{display:none}.character-mode .reflection{animation-play-state:paused}.character{padding:calc(23px + env(safe-area-inset-top)) 30px calc(30px + env(safe-area-inset-bottom));animation:screen-in .7s var(--ease)}.back-button{position:relative;z-index:6;display:flex;align-items:center;gap:10px;min-height:44px;padding:0;border:0;background:transparent;color:var(--ink);font-size:13px}.back-button svg{width:20px;height:20px}.character-content{padding-top:clamp(40px,8svh,90px)}.chapter{font-size:10px;font-weight:500;letter-spacing:.18em;color:#e2bfa0;margin:0 0 22px}.character h2{font-family:'Avenir Next','Helvetica Neue','Segoe UI',sans-serif;font-size:clamp(29px,7.6vw,39px);font-weight:300;line-height:1.25;letter-spacing:-.02em;margin:0}.character h2 em{font-style:normal;color:#e5c2a3}.character-lead{font-size:14px;line-height:1.75;color:#d1d1d3;margin:25px 0 30px}.steps{list-style:none;padding:0;margin:0 0 27px}.steps li{display:flex;gap:17px;align-items:center;border-top:1px solid var(--line);padding:14px 0}.steps li:last-child{border-bottom:1px solid var(--line)}.steps li>span{color:#d1b398;font-weight:300;font-size:15px}.steps strong{font-size:14px;font-weight:500}.steps p{font-size:12px;margin:3px 0 0;color:#b8bac2}.prototype-note{font-size:12px!important;line-height:1.7!important;color:#bdc0c9!important;margin:0 0 22px}.secondary{font-size:14px;min-height:52px;background:#ffffff0d;color:#f5e9dd;border-color:#d2b99c60;box-shadow:none}.secondary:hover{background:#ffffff1a}.no-script{position:relative;padding:20px;color:white;background:#10161e}
dialog{max-width:430px;width:calc(100% - 36px);max-height:calc(100svh - 40px);overflow:auto;border:1px solid #d0b79752;border-radius:20px;padding:24px;background:linear-gradient(145deg,#26303e,#101824);color:var(--ink);box-shadow:0 30px 100px #0008}dialog::backdrop{background:#050b148c;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}.dialog-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:23px}.dialog-header .chapter{margin:0}dialog h2{font-size:28px;font-weight:300;line-height:1.3;letter-spacing:-.025em;margin:0 0 20px}dialog p{font-size:14px;line-height:1.75;color:#d1d3d8;margin:0 0 18px}dialog .prototype-note{border-top:1px solid var(--line);padding-top:18px}dialog .start-button{font-size:14px;min-height:52px}@keyframes screen-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@media(min-width:700px){.cinema{max-width:calc(100svh * .5625);min-width:360px}.welcome{padding-left:40px;padding-right:40px}h1{font-size:clamp(55px,8.3svh,95px)}.opening-line{font-size:clamp(17px,2.1svh,23px)}.start-button{font-size:clamp(15px,1.85svh,19px)}.character h2{font-size:clamp(30px,4svh,42px)}}
@media(max-width:600px){.cinema{max-width:none}.ambient-backdrop{display:none}.welcome{min-height:100svh}.title-composition{padding-top:58svh}}
@media(max-height:700px) and (orientation:portrait){.welcome{padding-bottom:calc(6px + env(safe-area-inset-bottom));padding-left:26px;padding-right:26px}.title-composition{padding-top:42svh}h1{font-size:clamp(43px,12.8vw,66px);margin-bottom:21px}.opening-line{font-size:16px;margin-bottom:14px}.replay{margin-top:4px}.character-content{padding-top:30px}}
@media(orientation:landscape) and (max-height:600px){.cinema{max-width:900px;min-width:0}.world{width:60%;top:-10%;left:40%;transform-origin:center 30%}.scenery{background:#111923}.scene-shade{background:linear-gradient(90deg,#0d1520f5 5%,#0d1520da 39%,transparent 70%)}.welcome{justify-content:flex-start;padding:80px 35px 12px}.title-composition{max-width:350px;padding-top:0}h1{font-size:46px;margin-bottom:15px}.opening-line{font-size:16px;margin-bottom:10px}.start-button{min-height:48px;font-size:14px}.replay{margin-top:2px}.character{max-width:550px}.character-content{padding-top:25px}.character h2{font-size:30px}}
@media(prefers-reduced-motion:reduce){.cinema *{animation:none!important;transition:none!important}.reflection{opacity:1!important}.dust{display:none}h1,.opening-line{opacity:1!important;transform:none!important;filter:none!important}}

/* Prologue and casting: the same cinematic world, with real accessible controls. */
.flow-mode .toolbar{justify-content:flex-end}
.flow-mode .reflection{display:none}
.flow-mode .scene-shade{background:linear-gradient(180deg,#080f1b9c 0%,#080f1b50 30%,#080f1b0d 42%,#080f1bcd 65%,#080f1bf2 83%,#080f1b 100%)}
.flow-back{position:absolute;top:calc(12px + env(safe-area-inset-top));left:24px;font-size:12px;color:#eee3d8}
.entry{display:flex;flex-direction:column;justify-content:space-between;padding:calc(105px + env(safe-area-inset-top)) 28px calc(17px + env(safe-area-inset-bottom));gap:70px;animation:scene-arrive .6s var(--ease)}
.entry-heading .chapter,.casting-heading .chapter{font-size:9px;letter-spacing:.2em;margin-bottom:15px;color:#e9c7a8}
.entry h2,.casting h2{font-family:'Avenir Next','Helvetica Neue','Segoe UI',sans-serif;font-size:clamp(30px,8.3vw,43px);font-weight:300;line-height:1.22;letter-spacing:-.035em;margin:0;text-shadow:0 2px 24px #060d1bb3}
.entry h2 em,.casting h2 em{font-style:normal;color:#edc6a1}
.entry-invitation{font-size:14px;font-weight:400;letter-spacing:.01em;color:#e9dfd7;margin:0 0 21px}
.account-choice{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;padding:17px 18px;min-height:82px;border:1px solid #ead6bd91;border-radius:12px;color:#f6eadc;background:linear-gradient(135deg,#c7ae8d24,#c7ae8d0b);text-align:left;backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);box-shadow:inset 0 1px #fff2dd12}
.account-choice:hover{background:#d6bd9a25;border-color:#f2d4ae}
.choice-copy{display:flex;flex-direction:column;gap:6px}.choice-copy strong{font-size:16px;font-weight:500}.choice-copy small{font-size:11px;line-height:1.4;color:#d0c5bc}.soon-badge{font-size:8px;letter-spacing:.12em;color:#e3bc95;border:1px solid #bd9b7445;padding:4px 6px;border-radius:4px}
.guest-choice{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;min-height:59px;padding:16px 18px;margin-top:12px;color:#202938;background:linear-gradient(115deg,#f7e9db,#d4bfa9);border:1px solid #f6e6d7;border-radius:12px;font-size:15px;font-weight:500;box-shadow:0 5px 30px #edc99a15}
.guest-choice:hover{background:#ffeddb}.guest-choice svg{width:19px;height:19px}
.choice-note{font-size:11px;line-height:1.6;text-align:center;color:#b7bac5;margin:11px 0 6px}
.login-link{display:block;margin:0 auto;padding:10px 6px;min-height:44px;font-size:12px;background:none;border:0;color:#bfc0c8}.login-link span{color:#f0d4b5;margin-left:4px;border-bottom:1px solid #f0d4b550}
.availability{font-size:10px;text-align:center;color:#a8afbf;margin:0}
.account-unavailable{border-top:1px solid var(--line);padding-top:16px}.dialog-return{display:block;width:100%;min-height:44px;margin-top:8px;background:transparent;border:0;color:#d0d0d6;font-size:12px}
.casting-mode .scenery{opacity:.25}.casting-mode .world,.casting-mode .dust i{animation-play-state:paused!important}
.casting{display:flex;flex-direction:column;min-height:100svh;padding-top:calc(93px + env(safe-area-inset-top));animation:scene-arrive .65s var(--ease)}
.casting-heading{position:relative;z-index:2;padding:0 28px 12px;flex:none}
.casting h2{font-size:clamp(29px,7.8vw,40px);line-height:1.2}
.casting-hint{font-size:12px;line-height:1.5;color:#c4c7d0;margin:15px 0 0}
.portrait-stage{position:relative;display:flex;gap:2px;width:100%;height:clamp(255px,48svh,530px);flex:1 0 255px;overflow:hidden;isolation:isolate;mask-image:linear-gradient(transparent 0%,#000 7%,#000 96%,transparent);-webkit-mask-image:linear-gradient(transparent 0%,#000 7%,#000 96%,transparent)}
.portrait-choice{position:relative;display:block;flex:1 1 50%;min-width:0;border:0;border-radius:0;padding:0;background:#111a27;color:white;overflow:hidden;text-align:left;transition:flex-basis .75s var(--ease),opacity .6s,filter .6s;animation:portrait-arrive 1s var(--ease) both}
.portrait-choice:nth-child(2){animation-delay:.12s}.portrait-choice:active{transform:none}.portrait-choice:focus-visible{outline:2px solid #ffe1b5;outline-offset:-4px}
.portrait-frame{position:absolute;inset:0;overflow:hidden;transition:transform 1s var(--ease);transform:scale(1.01)}
.portrait-art{display:block;width:100%;height:100%;object-fit:cover;object-position:center top;animation:portrait-camera 10s ease-in-out infinite alternate;transform-origin:50% 35%}
.portrait-choice:nth-child(2) .portrait-art{animation-delay:-3s}
.portrait-choice::after{content:'';position:absolute;inset:0;background:linear-gradient(180deg,#0b13222e,transparent 32%,transparent 53%,#080f1bef 100%);pointer-events:none}
.portrait-glow{position:absolute;inset:0;background:linear-gradient(115deg,transparent 20%,#ffd79e1c 50%,transparent 80%);mix-blend-mode:screen;animation:portrait-light 8s ease-in-out infinite alternate;pointer-events:none}
.portrait-caption{position:absolute;z-index:2;left:20px;right:20px;bottom:27px;display:flex;align-items:center;justify-content:space-between;gap:8px}.portrait-name{font-size:19px;font-weight:400;letter-spacing:-.025em;text-shadow:0 2px 8px #000}.portrait-mark{display:grid;place-items:center;width:27px;height:27px;border:1px solid #f8e4cb50;border-radius:50%;font-size:14px;color:#f3d0a5;flex:none}
.has-selection .portrait-choice:not(.selected){filter:brightness(.65) saturate(.6);flex-basis:42%}.has-selection .portrait-choice.selected{flex-basis:58%}.selected .portrait-frame{transform:scale(1.045)}.selected .portrait-mark{background:#e8c7a1;color:#172131;border-color:#e8c7a1}
.casting-footer{position:relative;z-index:2;padding:4px 28px calc(15px + env(safe-area-inset-bottom));flex:none;background:linear-gradient(#0b131f00,#0b131f 30%)}
.selection-status{white-space:pre-line;min-height:42px;text-align:center;margin:8px 0 14px;color:#c5c6ce;font-size:12px;line-height:1.7}
.casting-footer .start-button{min-height:53px;font-size:15px}
.start-button:disabled{cursor:default;color:#b9b9c1;border-color:#b8b4ba36;background:#bfc3d20d;box-shadow:none}
.guest-session{font-size:8px;letter-spacing:.15em;text-align:center;color:#9da6b7;margin:12px 0 0}
.confirmed .portrait-choice:not(.selected){flex:0 0 0;opacity:0;pointer-events:none}.confirmed .portrait-choice.selected{flex-basis:100%}.confirmed .portrait-art{object-position:center top}.confirmed .portrait-caption{left:28px;right:28px}.confirmed .portrait-stage{gap:0}.confirmed .selected .portrait-frame{transform:scale(1)}
.art-unavailable .portrait-frame::after{content:'Изображение не загрузилось';position:absolute;inset:40% 10% auto;text-align:center;color:#d9cfbf;font-size:12px}
.paused .screen *,.suspended .screen *{animation-play-state:paused!important}
.paused .entry,.paused .casting,.paused .portrait-choice,.suspended .entry,.suspended .casting,.suspended .portrait-choice{animation:none;opacity:1;transform:none}
.still .screen *{animation:none!important;transition:none!important}
@keyframes scene-arrive{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
@keyframes portrait-arrive{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
@keyframes portrait-camera{from{transform:scale(1.015) translateY(0)}to{transform:scale(1.055) translateY(-.5%)}}
@keyframes portrait-light{from{opacity:.2;transform:translateX(-8%)}to{opacity:.7;transform:translateX(8%)}}
@media(min-width:700px){.entry h2{font-size:clamp(32px,4.5svh,46px)}.casting h2{font-size:clamp(30px,4svh,43px)}}
@media(max-width:350px){.entry{padding-left:22px;padding-right:22px}.entry h2{font-size:28px}.casting-heading{padding-left:22px;padding-right:22px}.casting h2{font-size:28px}.casting-footer{padding-left:22px;padding-right:22px}.portrait-caption{left:12px;right:12px}.portrait-name{font-size:17px}.choice-copy small{font-size:10px}.account-choice{padding-left:14px;padding-right:12px}}
@media(max-height:700px) and (orientation:portrait){.entry{padding-top:83px;gap:42px;padding-bottom:12px}.entry h2{font-size:30px}.entry-heading .chapter{margin-bottom:10px}.entry-invitation{margin-bottom:14px;font-size:12px}.account-choice{min-height:70px;padding-top:13px;padding-bottom:13px}.guest-choice{min-height:53px}.casting{padding-top:76px}.casting-heading .chapter{margin-bottom:9px}.casting h2{font-size:28px}.casting-hint{margin-top:9px;font-size:11px}.portrait-stage{height:37svh;flex-basis:215px;min-height:215px}.portrait-caption{bottom:20px}.casting-footer{padding-bottom:10px}.selection-status{font-size:11px;line-height:1.5;margin:4px 0 10px;min-height:34px}.casting-footer .start-button{min-height:48px}.guest-session{margin-top:9px}}
@media(orientation:landscape) and (max-height:600px){.entry{padding-top:85px;gap:35px;min-height:620px;max-width:560px;margin:auto}.flow-mode .world{left:0;width:100%;top:-10%}.casting{max-width:560px;margin:auto;padding-top:85px}.portrait-stage{height:380px;flex-basis:380px}.casting-heading{padding-bottom:16px}.casting-footer{padding-top:10px}.entry h2{font-size:34px}}
@media(prefers-reduced-motion:reduce){.entry,.casting,.portrait-choice{opacity:1;transform:none}.portrait-frame,.portrait-art{transform:none!important}}
.app-icon-preview{display:block;margin:0 0 20px;border-radius:17px;box-shadow:0 8px 28px #0005}
.install-guest-note{font-size:12px;line-height:1.65;color:#c7c9d0;border-top:1px solid var(--line);padding-top:16px}

/* Life periods: a change of scene, not a questionnaire. */
.life-mode .scenery{visibility:hidden}
.life-stage{isolation:isolate;display:flex;flex-direction:column;padding:calc(95px + env(safe-area-inset-top)) 26px calc(16px + env(safe-area-inset-bottom));overflow:hidden;background:#10161e;animation:scene-arrive .6s var(--ease)}
.life-backdrops,.life-backdrop,.life-shade,.life-light{position:absolute;inset:0;pointer-events:none}
.life-backdrops{z-index:-3;overflow:hidden}
.life-backdrop{opacity:0;transition:opacity .65s ease;background:#182432}
.life-backdrop.active{opacity:1}
.life-backdrop img{width:100%;height:100%;object-fit:cover;object-position:center 45%;animation:life-camera 18s ease-in-out infinite alternate;animation-play-state:paused}
.life-backdrop.active img{animation-play-state:running}
.life-shade{z-index:-2;background:linear-gradient(180deg,#07111edb 0%,#07111e75 22%,#07111e10 35%,#07111e30 43%,#07111ec9 61%,#0b131ff5 90%)}
.life-light{z-index:-1;background:radial-gradient(ellipse at 60% 37%,#ffdfa119,transparent 48%);mix-blend-mode:screen;animation:light-breath 9s ease-in-out infinite alternate}
.life-heading .chapter{margin-bottom:13px;font-size:9px;letter-spacing:.16em}
.life-heading h2{font-family:'Avenir Next','Helvetica Neue','Segoe UI',sans-serif;font-size:clamp(30px,8vw,40px);font-weight:300;line-height:1.2;letter-spacing:-.025em;margin:0;text-shadow:0 2px 20px #0008}
.life-heading h2 em{font-style:normal;color:#edc6a1}
.life-invitation{font-size:12px;color:#e1d9d2;margin:13px 0 0;text-shadow:0 1px 7px #000}
.life-breathing-space{min-height:110px;flex:1}
.life-content{width:100%;position:relative}
.life-narration{margin:0 0 18px;text-shadow:0 2px 12px #000}
.life-scene-line{font-size:22px;font-weight:300;letter-spacing:-.025em;margin:0 0 5px;line-height:1.25}
.life-scene-description{font-size:11px;line-height:1.6;color:#e0d8cf;margin:0}
.period-choices{display:flex;flex-direction:column;gap:8px}
.period-choice{display:flex;align-items:center;gap:13px;text-align:left;width:100%;padding:0 14px 0 0;min-height:66px;overflow:hidden;border:1px solid #edd8bf38;border-radius:11px;color:#f7eee6;background:#101c2ab8;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);transition:background .25s,border-color .25s,box-shadow .25s}
.period-choice:hover{border-color:#edd8bf80;background:#293441d9}
.period-choice.selected{border-color:#e8c7a1;background:linear-gradient(100deg,#a0876d38,#5f51434d);box-shadow:inset 0 0 22px #e8c7a10a}
.period-choice img{width:58px;height:66px;object-fit:cover;object-position:50% 42%;flex:none;opacity:.85;mask-image:linear-gradient(90deg,#000 70%,transparent)}
.period-copy{display:flex;flex-direction:column;gap:3px;flex:1;min-width:0}
.period-copy strong{font-size:16px;line-height:1.3;font-weight:500}
.period-copy small{font-size:10px;line-height:1.4;color:#c8c9cc}
.period-mark{flex:none;width:25px;height:25px;display:grid;place-items:center;border:1px solid #e8c7a14d;border-radius:50%;font-size:12px;color:#e8c7a1}
.selected .period-mark{background:#e8c7a1;color:#172131;border-color:#e8c7a1}
.period-context{font-size:10px;line-height:1.7;text-align:center;color:#c3c3c9;margin:13px 0}
.life-content>.start-button{font-size:14px;min-height:52px}
.life-stage .guest-session{margin-top:11px}
.period-result{margin:22px 0 25px;padding-top:18px;border-top:1px solid #e8c7a147;font-size:13px;color:#e1d9d0;line-height:1.7}
.period-result p{margin:0 0 14px}
.period-result .period-chosen{color:#f1d3af;font-size:25px;font-weight:300;letter-spacing:-.025em}
.period-result .period-development{font-size:11px;color:#bac1cc;margin-bottom:0}
.period-confirmed .life-breathing-space{min-height:220px}
.period-confirmed .life-backdrop img{animation-name:life-closeup}
.period-confirmed .life-narration{animation:scene-arrive .5s var(--ease)}
.life-art-error{font-size:11px;text-align:center;color:#e9c7a8}
.paused .life-stage,.suspended .life-stage{animation:none;opacity:1;transform:none}
.paused .life-backdrop,.suspended .life-backdrop{transition:none}
@keyframes life-camera{from{transform:scale(1.01) translateY(0)}to{transform:scale(1.065) translateY(-.5%)}}
@keyframes life-closeup{from{transform:scale(1.065)}to{transform:scale(1.12)}}
@media(max-width:350px){.life-stage{padding-left:20px;padding-right:20px}.life-heading h2{font-size:30px}.period-choice{gap:9px;padding-right:11px}.period-copy strong{font-size:15px}.period-copy small{font-size:9px}.period-choice img{width:48px}.life-scene-line{font-size:21px}}
@media(max-height:740px) and (orientation:portrait){.life-stage{padding-top:calc(77px + env(safe-area-inset-top));padding-bottom:calc(10px + env(safe-area-inset-bottom))}.life-heading h2{font-size:28px}.life-heading .chapter{margin-bottom:9px;font-size:8px}.life-invitation{margin-top:9px;font-size:11px}.life-breathing-space{min-height:65px}.life-narration{margin-bottom:13px}.life-scene-line{font-size:20px}.period-choice{min-height:59px}.period-choice img{height:59px}.period-choices{gap:6px}.period-context{margin:10px 0;font-size:9px}.life-content>.start-button{min-height:48px}.period-confirmed .life-breathing-space{min-height:140px}}
@media(orientation:landscape) and (max-height:600px){.life-stage{max-width:560px;min-height:760px;margin:auto}.life-breathing-space{min-height:120px}}
@media(prefers-reduced-motion:reduce){.life-stage{opacity:1;transform:none}.life-backdrop img{transform:none!important}}
@media(max-height:640px) and (orientation:portrait){.life-stage{padding-top:calc(70px + env(safe-area-inset-top))}.life-breathing-space{min-height:18px}.life-heading h2{font-size:26px}.life-narration{margin-bottom:10px}.period-choice{min-height:52px}.period-choice img{height:52px}.period-context{margin:8px 0}.period-confirmed .life-breathing-space{min-height:65px}}
/* The toolbar's empty area must not cover the scene's back control. */
.toolbar{pointer-events:none}.toolbar button{pointer-events:auto}

/* A layered reflection: face, irises and independent hair, with a shared camera. */
.appearance-mode .scenery{visibility:hidden}
.appearance{display:flex;flex-direction:column;isolation:isolate;padding:calc(79px + env(safe-area-inset-top)) 24px calc(13px + env(safe-area-inset-bottom));overflow:hidden;animation:scene-arrive .6s var(--ease)}
.dressing-room{position:absolute;inset:0;z-index:-2;background:linear-gradient(180deg,#0c1423ad,#0e1720b0 55%,#0b131ff5 78%),url('assets/life-youth.webp') center/cover}
.appearance-heading{position:relative;z-index:2;text-align:center;flex:none}
.appearance-heading .chapter{font-size:8px;letter-spacing:.18em;margin:0 0 9px}
.appearance-heading h2{font-size:31px;line-height:1.15;font-weight:300;letter-spacing:-.025em;margin:0}
.appearance-heading em{font-style:normal;color:#edc6a1}
.appearance-heading>p:last-child{font-size:11px;color:#d8d1c9;margin:8px 0 13px}
.mirror-area{position:relative;flex:1;min-height:295px;display:flex;align-items:center;justify-content:center;padding:0 10px 12px}
.mirror-frame{position:relative;isolation:isolate;width:min(100%,292px);height:clamp(290px,45svh,460px);overflow:hidden;border:2px solid #d7be9699;border-radius:145px 145px 12px 12px;background:#17212b;box-shadow:0 0 0 5px #151e28,0 0 0 6px #a9927259,0 0 34px #edc58e20,0 20px 40px #0008}
.mirror-camera{position:absolute;inset:0;overflow:hidden}
.mirror-portraits{position:absolute;width:100%;aspect-ratio:2/3;left:0;top:0;transform-origin:54% 34%;transform:scale(1);transition:transform .65s var(--ease);animation:mirror-breathe 12s ease-in-out infinite alternate}
.mirror-camera[data-view="face"] .mirror-portraits{transform:scale(1.05)}
.mirror-camera[data-view="eyeColor"] .mirror-portraits{transform:scale(1.75)}
.mirror-portrait{position:absolute;inset:0;opacity:0;transition:opacity .4s ease;isolation:isolate}
.mirror-portrait.current{opacity:1}.mirror-portrait.leaving{opacity:0}
.mirror-face,.mirror-hair{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:fill}
.mirror-hair{z-index:2}
.woman-portrait-art{position:absolute;inset:0;width:100%;height:100%;display:block}
.look-thumbnail .woman-portrait-art{top:-5%;height:auto;aspect-ratio:2/3}
.appearance[data-gender="woman"] .mirror-portrait{transition:none}
.appearance[data-gender="woman"] .mirror-camera[data-view="face"] .mirror-portraits{transform:scale(1)}
.iris-tint{position:absolute;transform:translate(-50%,-50%);border-radius:50%;z-index:1;mix-blend-mode:color;opacity:.88;pointer-events:none;box-shadow:inset 0 0 1px #151a22;mask-image:radial-gradient(ellipse,#000 65%,transparent 100%)}
.mirror-sheen{position:absolute;inset:0;z-index:3;pointer-events:none;background:linear-gradient(108deg,transparent 26%,#fff7dd08 39%,transparent 48%,transparent 74%,#fff4dc0a 77%,transparent 80%);animation:mirror-light 14s ease-in-out infinite alternate;mix-blend-mode:screen}
.mirror-vignette{position:absolute;inset:0;z-index:3;pointer-events:none;background:linear-gradient(180deg,#10172008 65%,#101720a1 100%);box-shadow:inset 0 0 28px #0b131f50}
.mirror-period{position:absolute;z-index:4;bottom:11px;left:0;right:0;text-align:center;color:#e7cfaf;text-transform:uppercase;letter-spacing:.19em;font-size:8px;margin:0;text-shadow:0 1px 5px #000}
.mirror-sill{position:absolute;height:8px;left:4%;right:4%;bottom:7px;border-radius:50%;background:linear-gradient(90deg,transparent,#e8c7a13b,transparent);filter:blur(2px)}
.appearance-controls{position:relative;flex:none;margin-top:7px;padding-top:3px}
.appearance-tabs{display:grid;grid-template-columns:repeat(4,1fr);border-bottom:1px solid #e8c7a12c;margin:0 0 12px}
.appearance-tabs button{min-height:44px;padding:9px 3px;font-size:12px;color:#aeb6c3;background:transparent;border:0;border-bottom:2px solid transparent}
.appearance-tabs button[aria-selected="true"]{color:#f3dec4;border-color:#e8c7a1}
.appearance-options{display:flex;justify-content:center;gap:9px;min-height:101px;align-items:flex-start}
.appearance-option{display:flex;flex-direction:column;align-items:center;gap:7px;min-width:44px;min-height:44px;flex:1;max-width:94px;background:none;border:0;padding:0 0 5px;color:#abb4c1;position:relative}
.look-thumbnail{position:relative;display:block;overflow:hidden;width:100%;height:73px;max-width:72px;border:1px solid #b6a38c46;border-radius:9px;background:#17212b;isolation:isolate;box-shadow:0 3px 10px #0003}
.look-thumbnail img{position:absolute;left:0;top:-5%;width:100%;height:auto;display:block}
.look-thumbnail .thumb-hair{z-index:1}
.appearance-option[aria-pressed="true"]{color:#f7e5cf}
.appearance-option[aria-pressed="true"] .look-thumbnail{border-color:#e8c7a1;box-shadow:0 0 0 2px #e8c7a124}
.appearance-option[aria-pressed="true"]::after{content:'✓';position:absolute;right:1px;top:-4px;border-radius:50%;width:16px;height:16px;background:#e8c7a1;color:#162131;font-size:10px;display:grid;place-items:center;z-index:2}
.option-name{font-size:9px;line-height:1.35;text-align:center;max-width:98px}
.look-swatch{display:block;position:relative;width:35px;height:35px;margin:9px 0 4px;background:radial-gradient(ellipse at 35% 25%,#ffffff4d,transparent 62%),var(--swatch);border-radius:50%;border:1px solid #ffffff3b;box-shadow:0 3px 8px #0005}
.appearance-option[aria-pressed="true"] .look-swatch{outline:1px solid #edc6a1;outline-offset:4px}
.appearance-options[data-feature="eyeColor"] .look-swatch{background:radial-gradient(circle,#12191f 0 18%,transparent 21%),repeating-conic-gradient(#ffffff1f 0 6deg,#00000019 7deg 13deg),var(--swatch);box-shadow:inset 0 0 0 3px #18202a7d}
.appearance-options[data-feature="hairColor"]{gap:6px;flex-wrap:wrap}
.appearance-options[data-feature="hairColor"] .appearance-option{max-width:50px}
.appearance-status{font-size:10px;line-height:1.5;min-height:30px;text-align:center;color:#c4c8ce;margin:6px 0 10px}
.appearance-controls>.start-button{font-size:14px;min-height:51px}
.appearance-result{text-align:center;padding:12px 4px 6px}.appearance-result>p{font-size:18px;font-weight:300;color:#edc6a1;margin:0 0 12px}.appearance-result small{font-size:11px;line-height:1.6;color:#c3c9d0}
.appearance-confirmed .mirror-frame{height:clamp(330px,50svh,520px)}
.paused .appearance,.suspended .appearance{animation:none;opacity:1;transform:none}
.paused .mirror-portraits,.paused .mirror-portrait,.suspended .mirror-portraits,.suspended .mirror-portrait{transition:none}
@keyframes mirror-breathe{from{translate:0 0}to{translate:0 -.5%}}
@keyframes mirror-light{from{opacity:.3;transform:translateX(-8%)}to{opacity:.7;transform:translateX(8%)}}
@media(max-width:350px){.appearance{padding-left:19px;padding-right:19px}.appearance-tabs button{font-size:11px}.appearance-options{gap:7px}.appearance-options[data-feature="hairColor"]{display:grid;grid-template-columns:repeat(3,1fr);row-gap:2px}.appearance-options[data-feature="hairColor"] .appearance-option{max-width:none}.look-swatch{margin-top:6px}.appearance-heading .chapter{font-size:7px}.appearance-heading h2{font-size:28px}}
@media(max-height:740px) and (orientation:portrait){.appearance{padding-top:calc(70px + env(safe-area-inset-top));padding-bottom:8px}.appearance-heading h2{font-size:27px}.appearance-heading>p:last-child{margin-bottom:9px}.mirror-area{min-height:260px}.mirror-frame{height:285px;width:210px;border-radius:110px 110px 10px 10px}.appearance-controls{margin-top:0}.appearance-options{min-height:86px}.look-thumbnail{height:60px;max-width:58px}.appearance-tabs{margin-bottom:9px}.appearance-status{margin:3px 0 7px}.appearance-controls>.start-button{min-height:48px}}
@media(orientation:landscape) and (max-height:600px){.appearance{max-width:560px;margin:auto;min-height:840px}.mirror-frame{height:360px;width:270px}.mirror-area{min-height:380px}}
@media(prefers-reduced-motion:reduce){.appearance{opacity:1;transform:none}.mirror-portraits{animation:none!important}}
.male-iris-layer{position:absolute;inset:0;width:100%;height:100%;z-index:1;pointer-events:none}
.male-ear-layer{position:absolute;inset:0;width:100%;height:100%;z-index:3;pointer-events:none}
/* Thumbnail and full mirror use the same 512×768 coordinate space. */
.registration-plane{position:absolute;left:0;top:-5%;width:100%;aspect-ratio:2/3}
.registration-plane .thumb-face{top:0;width:100%;height:100%}
@media(min-height:741px) and (orientation:portrait){.mirror-frame{height:clamp(290px,42svh,440px)}}
.iris-tint{mix-blend-mode:multiply;opacity:.68}
@media(max-height:640px) and (orientation:portrait){.appearance{padding-top:64px}.appearance-heading h2{font-size:25px}.appearance-heading .chapter{margin-bottom:5px}.appearance-heading>p:last-child{margin:5px 0 8px;font-size:10px}.mirror-area{min-height:215px;padding-bottom:10px}.mirror-frame{height:215px;width:160px;border-radius:85px 85px 9px 9px}.appearance-tabs{margin-bottom:6px}.look-thumbnail{height:53px;max-width:53px}.appearance-options{min-height:77px}.appearance-status{font-size:9px;min-height:27px}.appearance .guest-session{margin-top:8px}.appearance-confirmed .mirror-frame{height:280px;width:210px}}

/* Keep the female fitting preview still; atmosphere continues around it. */
.appearance[data-gender="woman"] .mirror-portraits{animation:none;translate:0 0}

/* Name and character: a continuous cinematic encounter, with one registered hero. */
.identity-mode .scenery{visibility:hidden}
.identity{isolation:isolate;min-height:100svh;padding:90px 24px 22px;--scene-tone:#b69772;--scene-position:50% 45%;animation:identity-enter .55s var(--ease) both}
.identity-backdrop{position:absolute;inset:-20px;z-index:-3;background:linear-gradient(#09141b35,#10161e88 48%,#10161e 85%),url('assets/life-adult.webp') var(--scene-position)/cover;opacity:.7;transition:background-position 1.2s var(--ease);animation:identity-camera 14s ease-in-out infinite alternate}
.identity-light{position:absolute;inset:0;z-index:-1;pointer-events:none;background:radial-gradient(ellipse at 85% 30%,var(--scene-tone),transparent 62%);mix-blend-mode:screen;opacity:.15;transition:background .6s;animation:identity-light 8s ease-in-out infinite alternate}
.identity-heading{position:relative;z-index:2;text-align:center}
.identity-heading .chapter{font-size:9px;letter-spacing:.19em;margin:0 0 10px;color:#e1c9ac}
.identity h2{font-family:Georgia,'Times New Roman',serif;font-size:32px;font-weight:400;line-height:1.14;margin:0;text-wrap:balance;text-shadow:0 2px 16px #0009}
.identity-stage{height:310px;position:relative;margin:0 -24px;overflow:hidden;isolation:isolate}
.identity-hero{position:absolute;width:310px;height:465px;top:-27px;left:calc(50% - 155px);mask-image:linear-gradient(#000 64%,transparent 93%);-webkit-mask-image:linear-gradient(#000 64%,transparent 93%);animation:identity-hero 11s ease-in-out infinite alternate;transform-origin:50% 25%;transition:opacity .35s}
.identity-hero.loading{opacity:0}
.identity-hero .mirror-portrait{opacity:1}
.identity-dialogue{position:absolute;left:24px;right:24px;bottom:8px;text-align:center;z-index:3;text-shadow:0 2px 12px #000}
.identity-moment{font-size:10px;letter-spacing:.06em;color:#e5cfb3;margin:0 0 7px}
.identity-line{font-family:Georgia,'Times New Roman',serif;font-size:21px;line-height:1.3;margin:0;text-wrap:balance}
.identity-controls{position:relative;z-index:3}
#hero-name{display:block;width:100%;padding:12px 8px 14px;text-align:center;color:#fff2df;background:transparent;border:0;border-bottom:1px solid #f3d2a37a;border-radius:0;font:28px Georgia,serif;outline-offset:4px}
#hero-name::placeholder{color:#e5d5c080}#hero-name:focus{outline:0;border-bottom-color:#fff2df;box-shadow:0 8px 13px -12px #e6b873}#hero-name[aria-invalid="true"]{border-color:#e7ac9c}
.identity-status{font-size:11px;color:#c7c4bd;text-align:center;min-height:32px;margin:12px 0;line-height:1.45}
.identity .start-button{min-height:54px;display:flex;align-items:center;justify-content:center;gap:15px;font-size:13px}
.identity .start-button:disabled{opacity:.45;cursor:default}
.identity .guest-session{margin:16px 0 0;font-size:8px;letter-spacing:.13em;text-align:center}
.identity-traits{padding-top:86px}
.identity-traits h2{font-size:30px;max-width:340px;margin:auto}
.identity-traits .identity-stage{height:238px}
.identity-traits .identity-hero{width:270px;height:405px;left:calc(50% - 135px);top:-27px;mask-image:linear-gradient(#000 46%,transparent 82%);-webkit-mask-image:linear-gradient(#000 46%,transparent 82%)}
.identity-traits .identity-dialogue{bottom:8px}
.identity-traits .identity-line{font-size:18px;min-height:47px}
.traits-instruction{text-align:center;font-size:11px;line-height:1.5;color:#d4d1ca;margin:4px auto 15px;max-width:290px}
.trait-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.trait-choice{position:relative;text-align:left;min-height:79px;padding:12px 19px 10px 11px;border:1px solid #d6d6cb24;border-radius:10px;color:#eee6db;background:linear-gradient(125deg,#9caca015,#19242c80);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}
.trait-choice strong{display:block;font-weight:500;font-size:12px;letter-spacing:-.02em}
.trait-description{display:block;font-size:10px;line-height:1.4;color:#adb7b9;margin-top:5px}
.trait-mark{position:absolute;top:10px;right:7px;font-size:11px;color:#ddc1a1}
.trait-choice[aria-pressed="true"]{border-color:#dfb983b3;background:linear-gradient(125deg,#b88e5442,#25323a);box-shadow:inset 0 0 20px #dfb78009}
.trait-choice[aria-pressed="true"] .trait-description{color:#ddd3c4}
.identity-traits .identity-status{min-height:28px;margin:10px 0 6px}
.new-line{animation:identity-dialogue .4s ease-out both}
.identity-name{font:34px Georgia,serif;text-align:center;color:#f2d6b2;margin:0 0 10px;overflow-wrap:anywhere}
.chosen-traits{text-align:center;font-size:13px;color:#e2c5a0;margin:0 0 24px}
.identity-promise{text-align:center;font:18px/1.6 Georgia,serif;color:#eee4d7}
.identity-edit{display:flex;justify-content:center;gap:12px;flex-wrap:wrap}
.identity-edit button{min-height:44px;border:0;border-bottom:1px solid #e5c79a40;background:transparent;color:#d8c6b0;font-size:12px}
.next-chapter-note{text-align:center;color:#a1afb5;font-size:11px;margin:22px 0 0}
@keyframes identity-camera{from{transform:scale(1.04) translateX(-3px)}to{transform:scale(1.09) translateX(4px)}}
@keyframes identity-hero{from{transform:scale(1) translateY(0)}to{transform:scale(1.018) translateY(2px)}}
@keyframes identity-light{from{opacity:.1;transform:translateX(-12px)}to{opacity:.23;transform:translateX(12px)}}
@keyframes identity-enter{from{opacity:.2;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}
@keyframes identity-dialogue{from{opacity:.35;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}
.identity[hidden] *{animation-play-state:paused!important}
.paused .identity,.suspended .identity{animation:none!important;opacity:1;transform:none}
.paused .identity-dialogue,.suspended .identity-dialogue{animation:none!important;opacity:1;transform:none}
.still .identity-hero.loading{opacity:0}
@media(max-width:350px){.identity{padding-left:18px;padding-right:18px}.identity-stage{margin-left:-18px;margin-right:-18px}.identity h2{font-size:28px}.identity-traits .identity-stage{height:215px}.trait-choice{padding-left:8px;min-height:82px}.trait-choice strong{font-size:11px}.trait-description{font-size:10px}.identity-stage{height:280px}}
@media(prefers-reduced-motion:reduce){.identity,.identity *{animation:none!important;transition:none!important}.identity{opacity:1;transform:none}}
/* Feather the portrait's original studio background into the scene, keeping the face opaque. */
.identity-hero{mask-image:linear-gradient(to right,transparent,#000 16%,#000 84%,transparent),linear-gradient(transparent,#000 14%,#000 58%,transparent 94%);mask-composite:intersect;-webkit-mask-image:linear-gradient(to right,transparent,#000 16%,#000 84%,transparent),linear-gradient(transparent,#000 14%,#000 58%,transparent 94%);-webkit-mask-composite:source-in}
.identity-stage::after{content:'';position:absolute;inset:55% 0 0;z-index:1;background:linear-gradient(transparent,#10161e 92%);pointer-events:none}
.identity-controls::before{content:'';position:absolute;inset:-10px -24px -40px;background:#10161ee8;z-index:-1;pointer-events:none}
.identity-traits .identity-stage{height:265px}
.identity-traits .identity-hero{width:250px;height:375px;left:calc(50% - 125px);top:-20px;mask-image:linear-gradient(to right,transparent,#000 16%,#000 84%,transparent),linear-gradient(transparent,#000 14%,#000 48%,transparent 90%);-webkit-mask-image:linear-gradient(to right,transparent,#000 16%,#000 84%,transparent),linear-gradient(transparent,#000 14%,#000 48%,transparent 90%)}
.identity-traits .identity-dialogue{left:18px;right:18px;bottom:8px;padding-bottom:3px}
/* Keep the controls backdrop below the final line, including animated descenders. */
.identity-traits .identity-controls::before{top:-4px}
.identity-traits .identity-line{font-size:18px;min-height:47px}
.identity-traits .identity-moment{font-size:10px;color:#e4cdb0}
.trait-description{font-size:11px}.trait-choice{min-height:76px}
.identity-traits .identity-status{min-height:20px}
@media(max-width:350px){.identity-traits .identity-stage{height:255px}.trait-choice{min-height:80px}.trait-description{font-size:11px}}

/* The final reveal uses one camera for the body and the exact editor portrait. */
.identity-identity-ready{padding-top:84px}
.identity-identity-ready h2{font-size:29px}
.identity-identity-ready .identity-stage{height:clamp(360px,53svh,490px);margin-top:8px;background:radial-gradient(ellipse at 50% 40%,#182b38,#101b25 70%);border-top:1px solid #e4cba219}
.identity-identity-ready .identity-stage::after{inset:0;background:linear-gradient(#10161e44,transparent 12%,transparent 94%,#10161e);pointer-events:none}
.identity-identity-ready .identity-hero{inset:0;left:50%;height:100%;width:auto;aspect-ratio:2/3;transform:translateX(-50%);animation:none;mask-image:none;-webkit-mask-image:none;overflow:visible;transition:opacity .3s}
.body-camera{position:absolute;inset:0;transform-origin:50% 0%;isolation:isolate}
.body-art{display:block;width:100%;height:100%;object-fit:fill;mask-image:linear-gradient(to right,transparent,#000 12%,#000 88%,transparent);-webkit-mask-image:linear-gradient(to right,transparent,#000 12%,#000 88%,transparent)}
.body-portrait{position:absolute;isolation:isolate;mask-image:linear-gradient(to right,transparent,#000 12%,#000 88%,transparent),linear-gradient(#000 85%,transparent 100%);mask-composite:intersect;-webkit-mask-image:linear-gradient(to right,transparent,#000 12%,#000 88%,transparent),linear-gradient(#000 85%,transparent 100%);-webkit-mask-composite:source-in}
.body-portrait .mirror-portrait{opacity:1;transition:none}
.body-reveal .body-camera{animation:body-pullback 2s cubic-bezier(.22,.62,.3,1) both}
.identity-identity-ready .identity-dialogue{display:none}
.body-replay{position:absolute;right:14px;bottom:10px;z-index:4;min-width:44px;min-height:44px;border:1px solid #dcc8ad38;border-radius:24px;background:#101b25a6;backdrop-filter:blur(8px);color:#ddcfbb;font-size:19px;padding:0 12px;display:flex;align-items:center;gap:7px}
.body-replay span{font-size:10px}
.identity-identity-ready .identity-controls{padding-top:13px}
.identity-identity-ready .identity-controls::before{top:0}
.identity-identity-ready .identity-name{font-size:28px;margin:0 0 4px}
.identity-identity-ready .chosen-traits{font-size:12px;margin:0 0 12px}
.identity-identity-ready .identity-promise{font-size:16px;line-height:1.45;margin:0 0 11px}
.identity-identity-ready .next-chapter-note{margin-top:12px;font-size:10px}
.identity-identity-ready .guest-session{margin-top:10px}
@keyframes body-pullback{0%{transform:scale(3.2)}10%{transform:scale(3.2)}100%{transform:scale(1)}}
.suspended .body-camera{animation-play-state:paused!important}
.paused .body-camera{animation:none!important;transform:none!important}
.still .body-camera{animation:none!important;transform:none!important}
.still .body-replay{display:none}
@media(prefers-reduced-motion:reduce){.body-camera{animation:none!important;transform:none!important}.body-replay{display:none}}
@media(max-width:350px){.body-replay span{display:none}.body-replay{padding:0;width:44px;justify-content:center}}

/* The final camera opens into the same sunlit city room, without a studio plate. */
.identity-identity-ready .identity-backdrop{inset:0;background:linear-gradient(#10161e55,transparent 20%,transparent 57%,#10161ee8 85%,#10161e),url('assets/full-body/city-room.webp') center center/cover;opacity:1;animation:none}
.identity-identity-ready .identity-stage{background:transparent;border:0}
.identity-identity-ready .identity-stage::after{background:none}
.identity-identity-ready .identity-stage::before{content:'';position:absolute;left:calc(50% - 66px);bottom:3.5%;width:132px;height:16px;background:radial-gradient(ellipse,#17212db3,transparent 70%);filter:blur(3px);pointer-events:none}
.body-art{mask-image:none;-webkit-mask-image:none}
.identity-identity-ready .identity-controls::before{background:linear-gradient(transparent,#10161ed9 68px,#10161e 140px);top:-44px}
.identity-identity-ready.room-reveal .identity-backdrop{animation:room-pullback 2s cubic-bezier(.22,.62,.3,1) both}
@keyframes room-pullback{0%,10%{transform:scale(1.22)}100%{transform:scale(1)}}
.paused .identity-identity-ready .identity-backdrop,.still .identity-identity-ready .identity-backdrop{animation:none!important;transform:none!important}
/* Dreams: a film frame, six destinations, then one personal intention. */
.identity-dream-next{margin-top:20px}
.dream-screen{isolation:isolate;display:flex;flex-direction:column;padding:calc(88px + env(safe-area-inset-top)) 22px calc(18px + env(safe-area-inset-bottom));overflow:hidden;background:#10161e;animation:dream-enter .6s var(--ease) both}
.dream-heading{position:relative;z-index:2;text-align:center}
.dream-heading .chapter{font-size:9px;letter-spacing:.17em;margin:0 0 12px;text-wrap:balance}
.dream-heading h2{font:400 32px/1.16 Georgia,serif;margin:0;text-wrap:balance;text-shadow:0 2px 18px #0009}
.dream-invitation{font-size:12px;color:#f0e4d3;margin:14px 0 0;overflow-wrap:anywhere}
.dream-backdrop{position:absolute;inset:0;z-index:-4;overflow:hidden;background:linear-gradient(135deg,#31424c,#10161e)}
.dream-image{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 42%;opacity:0;transition:opacity .65s ease;animation:dream-camera 18s ease-in-out infinite alternate;transform-origin:50% 40%}
.dream-image.visible{opacity:1}
.dream-shade{position:absolute;inset:0;z-index:-2;pointer-events:none;background:linear-gradient(#080f18b5 0%,#080f1873 24%,#080f1808 39%,#10161e99 57%,#10161ef2 78%,#10161e 100%)}
.dream-glow{position:absolute;inset:10% -15% 25%;z-index:-1;pointer-events:none;background:radial-gradient(ellipse at 80% 30%,#ffce8b27,transparent 62%);mix-blend-mode:screen;animation:dream-light 9s ease-in-out infinite alternate}
.sphere-stage{display:flex;align-items:flex-end;gap:10px;position:relative;flex:1;min-height:220px;margin:0 -7px 22px;touch-action:pan-y}
.sphere-caption{flex:1;text-align:center;text-shadow:0 2px 15px #000,0 1px 4px #000;min-width:0;padding-top:30px}
.scene-count{color:#f0d7b5;font-size:10px;letter-spacing:.24em;margin:0 0 10px}
.sphere-caption h3{font:400 29px/1.12 Georgia,serif;margin:0;text-wrap:balance}
.sphere-caption>p:last-child{font-size:12px;line-height:1.5;margin:10px 0 0;color:#f2e5d5;text-wrap:balance}
.scene-arrow{display:grid;place-items:center;flex:none;width:44px;height:44px;margin-bottom:24px;border:1px solid #f5dfbf55;border-radius:50%;background:#111b2470;backdrop-filter:blur(8px);color:#fff0da;font:30px/1 Georgia,serif}
.dream-bottom{position:relative;z-index:2}
.sphere-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:18px}
.sphere-choice{display:flex;align-items:center;text-align:left;position:relative;overflow:hidden;gap:9px;min-height:58px;padding:0 8px 0 0;border:1px solid #ead5b32e;border-radius:10px;background:#152029c9;color:#e8e2d9;backdrop-filter:blur(12px)}
.sphere-choice img{display:block;align-self:stretch;width:48px;min-height:58px;object-fit:cover;flex:none;opacity:.8;transition:opacity .3s}
.sphere-choice span{font-size:11px;font-weight:500;line-height:1.3}
.sphere-choice[aria-pressed="true"]{border-color:#f3ce91;background:#79634770;box-shadow:0 0 17px #f2d09914}
.sphere-choice[aria-pressed="true"] img{opacity:1}
.dream-screen .start-button{font-size:14px;min-height:54px}
.dream-screen .start-button:disabled{opacity:.45;cursor:default}
.dream-footnote{font-size:10px;line-height:1.5;color:#c3c0b9;text-align:center;margin:12px 0 0}
.dream-screen .guest-session{font-size:8px;letter-spacing:.1em}
.dream-breathing{flex:1;min-height:190px;display:flex;align-items:flex-end;justify-content:center;padding:20px 14px 22px;text-align:center}
.dream-breathing p{font:19px/1.45 Georgia,serif;margin:0;text-shadow:0 2px 10px #000;text-wrap:balance;color:#fff2dd}
.dream-options{display:grid;gap:9px}
.dream-choice{display:flex;align-items:center;gap:12px;width:100%;min-height:87px;padding:14px 12px;text-align:left;border:1px solid #e5cfab40;border-radius:12px;color:#f8eddf;background:linear-gradient(120deg,#36414ad9,#15222ae8);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px)}
.dream-number{align-self:flex-start;padding-top:2px;font-size:10px;letter-spacing:.05em;color:#c4a882}
.dream-choice>span:nth-child(2){flex:1;min-width:0}
.dream-choice strong{display:block;font:400 19px/1.2 Georgia,serif;text-wrap:balance}
.dream-choice small{display:block;font-size:10px;line-height:1.5;color:#c9c5bd;margin-top:6px}
.dream-mark{flex:none;font-size:15px;color:#ecd1a8}
.dream-choice[aria-pressed="true"]{border-color:#f0c88e;background:linear-gradient(120deg,#806848d9,#25323be8);box-shadow:inset 3px 0 #e9bf80,0 0 22px #ffce8a13}
.dream-choice[aria-pressed="true"] small{color:#f0e2ce}
#dream-selection-status{margin:12px 0;min-height:15px}
.dream-art-status{font-size:11px;text-align:center;color:#eac7a4}
.dream-actor-stage{position:relative;flex:1;min-height:320px;max-height:420px;margin:10px -22px 0;isolation:isolate}
.dream-actor-stage::after{content:'';position:absolute;bottom:5%;left:calc(50% - 55px);width:110px;height:15px;z-index:-1;background:radial-gradient(ellipse,#0009,transparent 70%);filter:blur(3px)}
.dream-actor{position:absolute;inset:0;aspect-ratio:2/3;margin:auto;transition:opacity .4s;animation:dream-actor-breathe 12s ease-in-out infinite alternate}
.dream-actor.loading{opacity:0}
.dream-actor .body-camera{animation:none;transform:none}
.dream-confirmation .dream-shade{background:linear-gradient(#10161ec9,#10161e40 28%,#10161e35 50%,#10161eed 76%,#10161e)}
.dream-confirmation .identity-name{font-size:27px;margin:5px 0 12px}
.dream-ready-line{font:17px/1.5 Georgia,serif;text-align:center;color:#f5e7d3;margin:0 auto 18px;max-width:300px;text-wrap:balance}
.dream-kept{font-size:10px;letter-spacing:.03em;text-align:center;color:#d2bb96}
.dream-confirmation .next-chapter-note{margin-top:16px}
@keyframes dream-camera{from{transform:scale(1.02) translateX(-2px)}to{transform:scale(1.09) translateX(3px)}}
@keyframes dream-light{from{opacity:.35;transform:translateX(-15px)}to{opacity:.85;transform:translateX(15px)}}
@keyframes dream-enter{from{opacity:.3;transform:translateY(6px)}to{opacity:1;transform:none}}
@keyframes dream-actor-breathe{from{transform:translateY(0)}to{transform:translateY(2px)}}
.dream-screen[hidden] *{animation-play-state:paused!important}
.paused .dream-screen,.still .dream-screen{animation:none;opacity:1;transform:none}
.paused .dream-screen *,.still .dream-screen *{animation:none!important;transition:none!important}
@media(max-width:350px){.dream-screen{padding-left:17px;padding-right:17px}.dream-heading h2{font-size:29px}.sphere-choice{gap:7px}.sphere-choice img{width:37px}.sphere-choice span{font-size:10px}.sphere-caption h3{font-size:26px}.dream-choice{gap:9px;padding:12px 10px}.dream-choice strong{font-size:18px}.dream-actor-stage{margin-left:-17px;margin-right:-17px}}
@media(max-height:740px){.dream-screen{padding-top:calc(77px + env(safe-area-inset-top))}.sphere-stage{min-height:160px;margin-bottom:18px}.dream-breathing{min-height:130px}.dream-heading h2{font-size:28px}.dream-heading .chapter{margin-bottom:9px}.dream-invitation{margin-top:9px}.sphere-choices{gap:6px;margin-bottom:13px}.dream-choice{min-height:81px}.dream-confirmation .dream-actor-stage{min-height:290px}.dream-confirmation .next-chapter-note{font-size:10px}}
@media(prefers-reduced-motion:reduce){.dream-screen,.dream-screen *{animation:none!important;transition:none!important}.dream-screen{opacity:1;transform:none}}
.dream-actor{inset:auto;top:0;left:50%;height:100%;width:auto;margin:0;transform:translateX(-50%)}
@keyframes dream-actor-breathe{from{transform:translateX(-50%) translateY(0)}to{transform:translateX(-50%) translateY(2px)}}
/* A lived-in room and one object at a time: choosing an experience through memory. */
.experience-screen{display:flex;flex-direction:column;isolation:isolate;overflow:hidden;background:#10161e;padding:calc(86px + env(safe-area-inset-top)) 22px calc(17px + env(safe-area-inset-bottom));animation:dream-enter .65s var(--ease) both}
.experience-backdrop{position:absolute;inset:0;z-index:-4;background:#343b3d;overflow:hidden}
.experience-backdrop img{width:100%;height:100%;object-fit:cover;object-position:50% 48%;animation:experience-camera 22s ease-in-out infinite alternate}
.experience-shade{position:absolute;inset:0;z-index:-3;pointer-events:none;background:linear-gradient(#10161ec2,#10161e86 25%,#10161e05 40%,#10161e3b 55%,#10161ef0 72%,#10161e 100%)}
.experience-light{position:absolute;inset:0;z-index:-2;pointer-events:none;mix-blend-mode:screen;background:linear-gradient(113deg,#ffc98c1a,transparent 35%,#ffdeba0a 48%,transparent 62%);animation:experience-light 11s ease-in-out infinite alternate}
.experience-heading{min-height:159px;text-align:center;position:relative;z-index:2}
.experience-heading .chapter{font-size:9px;letter-spacing:.18em;margin:0 0 12px}
.experience-heading h2{font:400 32px/1.15 Georgia,serif;text-wrap:balance;margin:0;text-shadow:0 2px 15px #0008}
#experience-prologue{font-size:12px;line-height:1.5;max-width:280px;margin:12px auto 0;color:#eee4d8;text-wrap:balance}
.experience-location{font-size:10px;line-height:1.55;color:#e1cdb0;margin:17px 0 0;text-shadow:0 1px 8px #000}
.experience-location span{display:block}#experience-place{letter-spacing:.08em;text-transform:uppercase;font-size:8px}
.experience-stage{position:relative;min-height:230px;flex:1;max-height:320px;margin:0 -22px;touch-action:pan-y;isolation:isolate}
.experience-object{display:block;position:absolute;left:50%;top:0;transform:translateX(-50%);width:76%;height:calc(100% - 37px);min-height:170px;padding:0;border:0;background:transparent;z-index:2;transition:opacity .3s,filter .5s;filter:drop-shadow(0 17px 10px #100c0b35)}
.experience-object:active{transform:translateX(-50%)}
.experience-object img{width:100%;height:100%;object-fit:contain;transform:scale(1);transition:transform .65s var(--ease);animation:experience-object-in .55s var(--ease) both}
.experience-object.loading{opacity:0}.experience-stage.closeup .experience-object img{transform:scale(1.14)}
.experience-navigation{position:absolute;inset:0;z-index:3;pointer-events:none;transition:opacity .6s,transform .6s}
.experience-side{position:absolute;top:24%;width:83px;height:123px;padding:0;border:0;background:transparent;color:#ffe6c2;pointer-events:auto;transition:opacity .5s,transform .6s;filter:drop-shadow(0 8px 9px #0007)}
.experience-side-prev{left:-22px;transform:rotate(-9deg)}.experience-side-next{right:-22px;transform:rotate(9deg)}
.experience-side img{width:100%;height:84px;object-fit:contain;opacity:.52;filter:blur(.45px)}
.experience-side span{display:grid;place-items:center;border:1px solid #efd4b040;border-radius:50%;width:34px;height:34px;background:#18212a80;font:26px/1 Georgia,serif;margin:auto}
.experience-side-prev span{margin-left:30px}.experience-side-next span{margin-right:30px}
.experience-side:active{transform:scale(.96)}
.experience-object-caption{position:absolute;left:55px;right:55px;bottom:0;text-align:center;z-index:4;pointer-events:none;text-shadow:0 2px 10px #000}
#experience-counter{font-size:8px;letter-spacing:.2em;margin:0 0 5px;color:#dec8a9}
#experience-object-name{font:19px/1.2 Georgia,serif;margin:0;color:#fff1d9}
.experience-hint{text-align:center;font-size:9px;line-height:1.5;color:#c7c1b8;min-height:14px;margin:10px -5px 6px}
.experience-objects{display:flex;align-items:center;justify-content:center;gap:7px;height:60px;opacity:1;transition:height .6s,opacity .5s,transform .6s;overflow:hidden;margin-bottom:12px}
.experience-token{flex:1;max-width:61px;min-width:44px;height:56px;border:0;border-bottom:1px solid #ecd4af30;border-radius:8px 8px 0 0;padding:4px;background:#18232b60;transition:background .3s,border-color .3s}
.experience-token img{width:100%;height:100%;object-fit:contain;opacity:.72}
.experience-token-label{display:grid;place-items:center;height:100%;font-size:8px;line-height:1.2;color:#eedbc0;overflow-wrap:anywhere}
.experience-token[aria-pressed="true"]{border-bottom:2px solid #eac38f;background:#c6a06924;box-shadow:0 6px 10px -8px #ffdba7}
.experience-token[aria-pressed="true"] img{opacity:1}
.experience-recollection{position:relative;text-align:center;min-height:176px;z-index:2;padding:6px 0 10px}
#experience-narrator{font-size:9px;color:#ccb491;letter-spacing:.06em;margin:0 0 8px;overflow-wrap:anywhere}
#experience-memory{font:16px/1.5 Georgia,serif;color:#f5e9d8;margin:0 auto 15px;max-width:330px;min-height:72px;text-wrap:pretty}
#experience-title-item{font-size:12px;font-weight:500;letter-spacing:.04em;color:#ebcda6;margin:0 0 5px}
#experience-benefit{font-size:10px;line-height:1.5;color:#c6c4be;margin:0 auto;max-width:290px}
.experience-footer{position:relative;z-index:2;text-align:center}
.experience-footer .start-button{min-height:53px;font-size:14px}
.experience-footer .start-button:disabled{opacity:.45;cursor:default}
.experience-note{font-size:9px;color:#c3beb5;margin:11px 0 0;text-align:center;line-height:1.5}
.experience-note.guest-session{font-size:8px;letter-spacing:.1em;margin-top:12px}
.experience-text-button{min-height:44px;color:#e1c8a5;padding:8px 12px;border:0;border-bottom:1px solid #dfc39a40;background:transparent;font-size:12px}
.experience-kept{font:20px/1.35 Georgia,serif;margin:0 0 5px;color:#f5ddba}
.experience-footer .next-chapter-note{margin-top:12px;font-size:10px}
.experience-confirmed .experience-navigation{opacity:0;transform:scale(.92);pointer-events:none}
.experience-confirmed .experience-side{pointer-events:none}
.experience-confirmed .experience-objects{height:0;opacity:0;transform:translateY(10px);margin-bottom:0;pointer-events:none}
.experience-confirmed .experience-object img{transform:scale(1.07)}
.experience-confirmed .experience-stage{min-height:245px}
.memory-arrive{animation:identity-dialogue .45s ease-out both}
@keyframes experience-object-in{from{opacity:0;translate:0 5px}to{opacity:1;translate:0 0}}
@keyframes experience-camera{from{transform:scale(1.015)}to{transform:scale(1.04)}}
@keyframes experience-light{from{opacity:.3;transform:translateX(-8px)}to{opacity:.8;transform:translateX(8px)}}
.experience-screen[hidden] *{animation-play-state:paused!important}
.paused .experience-screen,.still .experience-screen{animation:none;opacity:1;transform:none}
.paused .experience-screen *,.still .experience-screen *{animation:none!important;transition:none!important}
@media(max-width:350px){.experience-screen{padding-left:17px;padding-right:17px}.experience-stage{margin-left:-17px;margin-right:-17px}.experience-heading h2{font-size:29px}.experience-token{min-width:43px}.experience-objects{gap:5px}#experience-memory{font-size:15px}.experience-side{width:73px}.experience-side-prev{left:-19px}.experience-side-next{right:-19px}}
@media(max-height:740px){.experience-screen{padding-top:calc(76px + env(safe-area-inset-top))}.experience-heading{min-height:151px}.experience-heading h2{font-size:28px}.experience-location{margin-top:11px}.experience-stage{min-height:190px}.experience-confirmed .experience-stage{min-height:210px}.experience-objects{height:53px;margin-bottom:7px}.experience-token{height:49px}.experience-recollection{min-height:162px}#experience-memory{margin-bottom:10px}}
@media(prefers-reduced-motion:reduce){.experience-screen,.experience-screen *{animation:none!important;transition:none!important}.experience-screen{opacity:1;transform:none}}
/* Bring the tabletop under the props and keep the action within the phone frame. */
.experience-backdrop img{position:absolute;top:-20%;height:120%;left:0}
.experience-heading .chapter{margin-bottom:10px}
.experience-heading h2{font-size:30px}
.experience-location{margin-top:9px}
.experience-heading #experience-prologue{font-size:11px;margin-top:10px}
.experience-stage{min-height:210px}
.experience-recollection{min-height:163px}
.experience-objects{margin-bottom:8px}
@media(max-height:740px){.experience-stage{min-height:180px}.experience-heading h2{font-size:28px}.experience-heading{min-height:151px}.experience-recollection{min-height:162px}.experience-confirmed .experience-stage{min-height:210px}}
/* Keep focusable arrows inside the viewport: focusing an off-screen button
   must never scroll the whole scene sideways. Only the decorative image bleeds. */
.experience-navigation{overflow:clip}
.experience-side-prev{left:0;transform:none}
.experience-side-next{right:0;transform:none}
.experience-side-prev img{transform:translateX(-22px) rotate(-9deg)}
.experience-side-next img{transform:translateX(22px) rotate(9deg)}
.experience-side-prev span,.experience-side-next span{margin-left:auto;margin-right:auto}

/* First playable episode: a stage, one voice, choices inside the scene. */
.episode-screen{position:relative;display:flex;flex-direction:column;isolation:isolate;min-height:100svh;overflow:clip;background:#10161e;padding:calc(84px + env(safe-area-inset-top)) 22px calc(18px + env(safe-area-inset-bottom))}
.episode-background{position:absolute;inset:0;z-index:-4;overflow:hidden;background:#252c2e}
.episode-background img{width:100%;height:100%;object-fit:cover;object-position:50% 35%;animation:episode-dissolve .7s ease both,episode-camera 20s ease-in-out .7s infinite alternate}
.episode-light{position:absolute;inset:0;z-index:-3;pointer-events:none;background:linear-gradient(180deg,#10161e99,transparent 33%,#10161e50 48%,#10161ef2 69%,#10161e 90%)}
.episode-heading{position:relative;z-index:3;text-align:center;pointer-events:none}
.episode-heading .chapter{font-size:9px;letter-spacing:.18em;color:#e9c9a7;margin:0 0 10px}
.episode-heading h2{font:400 30px/1.1 Georgia,serif;margin:0;text-shadow:0 2px 18px #0008}
#episode-place{font-size:10px;letter-spacing:.04em;margin:10px 0 0;color:#e9d5bd}
.episode-frame{position:relative;min-height:260px;flex:1;max-height:400px;margin:0 -22px;overflow:clip}
.episode-actor{position:absolute;inset:0;display:flex;justify-content:center;align-items:flex-end;animation:episode-breathe 6s ease-in-out infinite alternate;transform-origin:50% 85%}
.episode-actor>img{height:120%;max-width:none;width:auto;object-fit:contain;object-position:center bottom;animation:episode-dissolve .45s ease both;filter:drop-shadow(0 10px 25px #0004)}
.episode-vignette{position:absolute;inset:0;background:linear-gradient(transparent 65%,#10161eaa 90%,#10161e);pointer-events:none}
.episode-dialogue{position:relative;z-index:3;margin-top:-16px}
#episode-speaker{color:#efcda6;font-size:11px;letter-spacing:.1em;margin:0 0 12px;text-align:center}
#episode-line{font:18px/1.5 Georgia,serif;text-align:center;white-space:pre-line;margin:0 0 22px;color:#fcf0e1;text-shadow:0 2px 15px #0005;outline:none}
#episode-choices{display:flex;flex-direction:column;gap:8px}
.episode-choice{min-height:50px;width:100%;font:13px/1.4 'Avenir Next','Helvetica Neue',sans-serif;color:#f5e8d7;background:linear-gradient(100deg,#c3a88126,#1b2731e8);border:1px solid #eacda64d;border-radius:10px;padding:13px 16px;text-align:left;box-shadow:inset 0 1px #fff1;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}
.episode-choice:hover{background:#bda27e32;border-color:#e8c7a1b3}.episode-choice:active{transform:translateY(1px)}
.episode-choice:only-child{color:#26303e;background:linear-gradient(110deg,#f3e4d0,#cbbca8);border-color:#f3e4d0;text-align:center;font-size:14px}
.episode-choice:focus-visible{outline:2px solid #fff1d6;outline-offset:2px}
.line-arrives{animation:episode-dialogue-in .32s ease both}
.episode-footer{position:relative;z-index:3;text-align:center;margin-top:14px}
.episode-utility{min-height:44px;color:#dac4aa;border:0;background:transparent;font-size:11px;text-decoration:underline;text-underline-offset:4px;padding:10px}
.episode-footer .guest-session{font-size:8px;letter-spacing:.12em;color:#b7b6b2;margin:8px 0 0}
#episode-art-error{font-size:11px;line-height:1.5;color:#e6cfae}
.episode-summary{position:relative;z-index:3;color:#e9ddcc;font-size:13px;line-height:1.6}
#episode-balance{color:#f3dab8;text-align:center;font-size:15px;border-block:1px solid #ead0ad33;padding:12px 0}
#episode-traces{padding-left:18px}#episode-traces li{padding-bottom:8px}.episode-continuation{font-size:11px;color:#bcbcb9;text-align:center}
.episode-complete .episode-frame{min-height:110px;max-height:170px}.episode-complete #episode-line{font-size:17px}
.episode-start{margin-top:14px}.episode-journal-dialog{max-height:85svh;overflow:auto}.episode-journal-dialog section{border-bottom:1px solid #ead0ad33;margin-bottom:18px;font-size:13px;line-height:1.6}.journal-answer{color:#e5c59e}
.paused .episode-screen *,.still .episode-screen *{animation:none!important;transition:none!important}
.episode-screen[hidden] *{animation-play-state:paused!important}
@keyframes episode-dissolve{from{opacity:0}to{opacity:1}}@keyframes episode-camera{from{transform:scale(1.015)}to{transform:scale(1.055)}}@keyframes episode-breathe{from{transform:translateY(0) scale(1)}to{transform:translateY(2px) scale(1.006)}}@keyframes episode-dialogue-in{from{opacity:.5;transform:translateY(5px)}to{opacity:1;transform:none}}
@media(max-height:740px){.episode-screen{padding-top:calc(76px + env(safe-area-inset-top))}.episode-frame{min-height:220px}.episode-heading h2{font-size:28px}#episode-line{font-size:17px}.episode-choice{padding:11px 13px}}
@media(max-width:350px){.episode-screen{padding-left:17px;padding-right:17px}.episode-frame{margin-left:-17px;margin-right:-17px}.episode-heading h2{font-size:27px}.episode-choice{font-size:12px}#episode-line{font-size:16px}}
@media(prefers-reduced-motion:reduce){.episode-screen *{animation:none!important;transition:none!important}}

.episode-actor{align-items:flex-start}
.episode-actor>img{width:82%;max-width:300px;height:auto;object-position:top center}

/* Waist-up framing. The player's original registered face/hair stay intact. */
.episode-frame{min-height:335px;max-height:410px}
.episode-actor{align-items:flex-start}
.episode-actor>img{height:100%;width:auto;max-width:100%;object-fit:contain;object-position:center top}
.episode-player{position:relative;width:135%;max-width:540px;aspect-ratio:2/3;flex-shrink:0;animation:episode-dissolve .45s ease both}
.episode-player .body-camera{position:absolute;inset:0;animation:none;transform:none}
.episode-player .body-art{width:100%;height:100%}
.episode-review-note{font-size:11px;line-height:1.5;color:#dfc7a8;text-align:center;margin:0 0 12px}
#episode-review-controls{text-align:center}
.episode-choice.previous-choice{border-color:#eacda6;box-shadow:inset 3px 0 #eacda6}
#episode-back:disabled{opacity:.3;cursor:default}
.episode-complete .episode-frame{min-height:110px}
@media(max-height:740px){.episode-frame{min-height:300px}}
@media(max-width:350px){.episode-player{width:140%}.episode-frame{min-height:300px}}

/* Finished actors have a single bitmap; scene styles cannot move their parts. */
.assembled-portrait{display:block;width:100%;height:100%;object-fit:fill}
.body-camera>.assembled-body{display:block;width:100%;height:100%;max-width:none;object-fit:fill;mask-image:none;-webkit-mask-image:none}
:root{--opening-paper:#f8eee1}
/* ARC-02: the whole baked character moves as one image, at its natural ratio. */
.opening-screen{padding:86px 22px 14px;display:flex;flex-direction:column;background:#141b20;min-height:100svh;isolation:isolate}
.opening-heading{position:relative;z-index:1;margin-bottom:12px}
.opening-heading .chapter{font-size:10px;letter-spacing:.2em;margin:0 0 4px;color:#e5c39e}
.opening-heading h2{font-size:30px;font-weight:400;letter-spacing:-.025em;line-height:1.2;margin:0}
.opening-heading>p:last-child{font-size:12px;color:#c0b5a8;margin:7px 0 0}
.opening-stage{position:relative;isolation:isolate;overflow:hidden;height:clamp(290px,43svh,460px);transition:height 1.1s var(--ease);flex:none;margin:0 -22px;background:#242c30}
.opening-room-camera{position:absolute;inset:-3%;transform:scale(1.02);transition:transform 1.1s var(--ease)}
.opening-room-camera>img{display:block;width:100%;height:100%;object-fit:cover;object-position:50% 23%;filter:brightness(.77) saturate(.82)}
.opening-person-camera{position:absolute;top:5%;left:50%;width:180%;transform:translateX(-50%);transform-origin:50% 10%;transition:width 1.1s var(--ease),left 1.1s var(--ease),top 1.1s var(--ease);z-index:1;animation:opening-presence 10s ease-in-out infinite alternate}
.opening-person-camera>#opening-hero{display:block;width:100%;height:auto;max-width:none;aspect-ratio:2/3;filter:drop-shadow(6px 3px 7px #151a2320)}
.opening-screen[data-shot=close] .opening-person-camera{width:240%;top:4%}
.opening-screen[data-shot=close] .opening-room-camera{transform:scale(1.1)}
.opening-screen[data-shot=object] .opening-person-camera,.opening-screen[data-shot=budget] .opening-person-camera{left:77%;width:168%;top:8%}
.opening-screen[data-shot=dream] .opening-person-camera{left:37%;width:195%}
.opening-light{position:absolute;inset:0;background:linear-gradient(115deg,#ffda9c20,transparent 48%);mix-blend-mode:screen;animation:opening-sun 9s ease-in-out infinite alternate;z-index:2;pointer-events:none}
.opening-stage-shade{position:absolute;inset:0;background:linear-gradient(0deg,#141b20 0%,#141b2044 14%,transparent 35%);z-index:3;pointer-events:none}
#opening-prop{position:absolute;z-index:4;width:54%;height:52%;left:3%;bottom:5%;margin:0;padding:10px 8px 8px;display:flex;flex-direction:column;justify-content:end;align-items:center;background-size:100% auto;background-position:center 85%;border-radius:12px;box-shadow:0 7px 18px #0004;border:1px solid #e5d4bb30}
#opening-object{width:100%;height:calc(100% - 30px);object-fit:contain;filter:drop-shadow(0 10px 7px #0007)}
#opening-object-name{padding:4px 10px;background:#141b20bd;border-radius:8px;font-size:12px;color:var(--opening-paper);text-align:center}
#opening-dream{position:relative;z-index:4;margin:8px 0 4px;width:100%;padding:12px 16px;background:linear-gradient(110deg,#141b20e8,#141b20bc);border-left:1px solid #e4c5a0;border-radius:0 10px 10px 0;backdrop-filter:blur(14px)}
#opening-dream>span{font-size:9px;letter-spacing:.2em;color:#e4c5a0}
#opening-dream-text{font-size:22px;line-height:1.25;margin:7px 0 0;text-wrap:balance}
#opening-phone{position:absolute;z-index:4;left:4%;bottom:6%;width:43%;height:84%;padding:20px 12px 16px;background:linear-gradient(145deg,#f2eadb,#d8d2c9);color:#273039;border:5px solid #252b30;border-radius:24px;box-shadow:7px 14px 24px #0005;transform:rotate(-3deg)}
.phone-notch{position:absolute;top:4px;left:36%;width:28%;height:5px;border-radius:4px;background:#252b30}
.phone-label{font-size:8px;letter-spacing:.17em;margin:6px 0}
#opening-balance{font-size:clamp(22px,6vw,31px);font-weight:500;white-space:nowrap}
#opening-costs{border-top:1px solid #27303935;margin-top:13px;padding-top:10px}
#opening-cost{font-size:12px;line-height:1.35;margin:0 0 6px}
#opening-cost-detail{display:block;font-size:10px;line-height:1.45}
.phone-note{display:block;font-size:8px;margin-top:14px;opacity:.7}
#opening-loading,#opening-art-error{position:absolute;z-index:6;left:10%;right:10%;top:30%;padding:18px;background:#141b20ee;border-radius:12px;text-align:center;font-size:14px}
.opening-loading .opening-person-camera{opacity:0}
.opening-dialogue{position:relative;z-index:4;padding:14px 0 0;flex:1}
.opening-dialogue-meta{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:10px;letter-spacing:.06em;color:#d7b792}
#opening-speaker{overflow-wrap:anywhere}
#opening-line{font-size:17px;font-weight:400;line-height:1.58;margin:10px 0 17px;color:#f8eee1;outline:none;overflow-wrap:break-word}
.opening-next,.opening-choice{display:block;width:100%;min-height:50px;padding:13px 16px;color:#f7eee6;background:#f8e5c90b;border:1px solid #ead4b64a;border-radius:10px;text-align:left;line-height:1.35;font-size:15px}
.opening-next{text-align:right;border-color:transparent;background:transparent;color:#ead3b8}
.opening-next:hover,.opening-choice:hover,.opening-choice[aria-pressed=true]{background:#f8e5c91c;border-color:#ead4b691}
.opening-next:disabled,.opening-choice:disabled{opacity:.45;cursor:wait}
#opening-choices{display:grid;gap:9px;padding-top:2px}
#opening-boundary{margin-top:16px;padding:14px;border:1px solid #d3bb9040;border-radius:10px;font-size:13px;line-height:1.6;color:#d7d5ce;outline:none}
#opening-boundary strong{font-weight:500;color:#f6e5d1}
#opening-boundary p{margin:7px 0 0}
.opening-footer{display:flex;align-items:center;justify-content:space-between;gap:20px;color:#938f88;font-size:10px;margin-top:7px}
.opening-footer button{min-height:44px;padding:8px 0;border:0;background:transparent;color:#bab5ad;font-size:11px}
.opening-guest{font-size:8px;margin:2px 0 0;padding-bottom:env(safe-area-inset-bottom);text-align:center;color:#8d9295}
.opening-dialogue.arrive{animation:opening-copy .35s ease-out both}
#music{font-size:24px}
#music[aria-pressed=false]{color:#9babb6}
@keyframes opening-copy{from{opacity:.5;transform:translateY(3px)}to{opacity:1;transform:none}}
@keyframes opening-sun{from{opacity:.45}to{opacity:.85}}
.paused .opening-screen *,.suspended .opening-screen *{animation-play-state:paused!important;transition:none!important}
.paused .opening-dialogue.arrive,.still .opening-dialogue.arrive{animation:none;opacity:1;transform:none}
.still .opening-screen *{animation:none!important;transition:none!important}
@media(prefers-reduced-motion:reduce){.opening-screen *{animation:none!important;transition:none!important}}
@media(max-width:350px){.opening-screen{padding-left:16px;padding-right:16px}.opening-stage{margin-left:-16px;margin-right:-16px}#opening-line{font-size:16px}.opening-heading h2{font-size:28px}}
@media(max-height:650px){.opening-stage{height:260px}.opening-screen{padding-top:78px}.opening-heading{margin-bottom:8px}.opening-heading h2{font-size:26px}}

/* Keep the opening usable when a phone is rotated; its page can scroll. */
.cinema:has(.opening-screen:not([hidden])){max-width:max(360px,calc(100svh * .5625))}

@keyframes opening-presence{from{transform:translateX(-50%)}to{transform:translateX(-50%) translateY(1px) scale(1.004)}}

#opening-phone:has(#opening-costs:not([hidden])) .phone-note{display:none}
@media(max-width:350px){#opening-phone{padding:17px 9px 12px}#opening-costs{padding-top:7px;margin-top:8px}#opening-cost{font-size:11px;margin-bottom:4px}#opening-cost-detail{font-size:9px}}

.opening-screen[data-shot=choice] .opening-stage{height:clamp(170px,28svh,260px)}
.opening-screen[data-shot=choice] .opening-dialogue{padding-top:8px}
.opening-screen[data-shot=choice] #opening-line{margin:5px 0 10px}
.opening-screen[data-shot=choice] .opening-person-camera{width:150%;top:3%}

/* Approved illustrations are complete camera frames, including the actor. */
.opening-scene-camera[hidden]{display:none}
.cinema:has(.opening-composed:not([hidden])){max-width:430px}
.opening-composed{padding:67px 0 0;background:#17201f;--shot-scale:1}
.opening-composed .opening-heading{padding:0 21px;margin:6px 0 15px}
.opening-composed .opening-heading .chapter{font-size:8px;margin:0 0 6px;letter-spacing:.19em}
.opening-composed .opening-heading h2{font-size:25px;margin:0;line-height:1.15}
.opening-composed .opening-heading>p:last-child{font-size:10px;margin:7px 0 0;color:#b5b7ac}
.opening-composed .opening-dialogue{padding:15px 22px 17px;flex:none;background:linear-gradient(115deg,#26332f,#17201f);border-top:1px solid #e5d4b820;z-index:5}
.opening-composed .opening-dialogue-meta{font-size:9px;color:#d6c09d;letter-spacing:.08em}
.opening-composed #opening-line{font-size:17px;line-height:1.5;margin:8px 0 0;color:#fff6e9;font-weight:400}
.opening-composed #opening-dream{padding:9px 0 0;margin:12px 0 0;border:0;border-top:1px solid #d2ba8b44;background:none;backdrop-filter:none;box-shadow:none;border-radius:0}
.opening-composed #opening-dream>span{font-size:8px;letter-spacing:.12em}
.opening-composed #opening-dream-text{font-size:21px;line-height:1.3;margin:5px 0 0;color:#efdbb6}
.opening-composed .opening-stage,.opening-composed[data-shot=choice] .opening-stage{height:auto;width:100%;aspect-ratio:2/3;margin:0;border-radius:0;flex:none;transition:none;background:#746447;overflow:hidden}
.opening-composed .opening-room-camera,.opening-composed .opening-person-camera,.opening-composed .opening-stage-shade{display:none}
.opening-composed .opening-scene-camera{position:absolute;inset:0;transform:scale(var(--shot-scale));transform-origin:50% 18%;transition:transform 2.1s cubic-bezier(.2,.7,.2,1);animation:whole-frame-drift 10s ease-in-out infinite alternate}
.opening-composed #opening-composed-art{display:block;width:100%;height:100%;object-fit:cover;object-position:50% 0;max-width:none}
.opening-composed[data-take=window-near]{--shot-scale:1.04}
.opening-composed[data-take=window-wide]{--shot-scale:1}
.opening-composed[data-take=seated-object]{--shot-scale:1}
.opening-composed[data-take=seated-dream]{--shot-scale:1.045}
.opening-composed[data-take=phone]{--shot-scale:1}
.opening-composed[data-take=phone-near]{--shot-scale:1.012}
.opening-composed[data-take=phone-close]{--shot-scale:1.025}
.opening-composed[data-take=seated-pause]{--shot-scale:1}
.opening-composed[data-take=seated-choice]{--shot-scale:1}
.opening-composed[data-shot=choice] .opening-stage{aspect-ratio:1/1.02}
.opening-composed[data-shot=choice] .opening-scene-camera{bottom:auto;height:147.059%}
.opening-composed .opening-light{z-index:2;opacity:.22;background:linear-gradient(105deg,#ffe5ac12,transparent 53%);animation:whole-frame-light 8s ease-in-out infinite alternate}
.opening-composed #opening-phone{position:static;width:auto;height:auto;transform:none;margin:12px 0 0;padding:10px 0 0;border:0;border-top:1px solid #d2ba8b44;border-radius:0;box-shadow:none;background:none;color:#f4e2bc;display:flex;flex-wrap:wrap;align-items:center;gap:4px 12px}
.opening-composed #opening-phone .phone-notch,.opening-composed #opening-phone .phone-note{display:none}
.opening-composed #opening-phone .phone-label{font-size:8px;letter-spacing:.1em;margin:0}
.opening-composed #opening-balance{font-size:24px}
.opening-composed #opening-costs{width:100%;margin:0;padding:6px 0 0;border:0;color:#ded6c6}
.opening-composed #opening-cost{font-size:12px;line-height:1.45;margin:0 0 4px}
.opening-composed #opening-cost-detail{font-size:11px;line-height:1.45}
/* The selected memory is a small detail beside the thought, never a patch on the actor. */
.opening-composed #opening-prop{position:static;display:flex;flex-direction:row;justify-content:start;align-items:center;gap:14px;width:auto;height:auto;margin:12px 0 0;padding:10px 0 0;border:0;border-top:1px solid #d2ba8b44;border-radius:0;background:none!important;box-shadow:none;transform:none}
.opening-composed #opening-object{width:52px;height:52px;object-fit:contain;flex:none}
.opening-composed #opening-object-name{background:none;text-align:left;font-size:13px;line-height:1.4;padding:0;color:#efdbb6}
.opening-composed .opening-controls{position:sticky;bottom:0;z-index:6;padding:7px 20px max(8px,env(safe-area-inset-bottom));background:#17201ff5;backdrop-filter:blur(12px);border-top:1px solid #e5d4b823}
.opening-composed .opening-next{color:#f3deb6;font-size:15px;min-height:48px;padding:10px 2px}
.opening-composed .opening-footer{padding:0 20px;margin-top:0;background:#17201f}
.opening-composed .opening-guest{padding:0 20px max(10px,env(safe-area-inset-bottom));margin:0;font-size:8px}
.opening-composed[data-shot=choice] .opening-controls{position:relative;padding-top:16px}
.opening-composed #opening-choices{gap:8px}
.opening-composed #opening-loading,.opening-composed #opening-art-error{z-index:7}
.opening-composed #opening-composed-art.take-in{animation:approved-frame-in .55s ease-out both}
@keyframes approved-frame-in{from{opacity:.65;filter:brightness(.85)}to{opacity:1;filter:none}}
@keyframes whole-frame-drift{from{translate:0 0}to{translate:0 -.8px}}
@keyframes whole-frame-light{from{opacity:.1}to{opacity:.3}}
.paused .opening-composed #opening-composed-art,.still .opening-composed #opening-composed-art{animation:none;opacity:1;filter:none}
@media(max-width:350px){.opening-composed .opening-dialogue{padding:13px 18px 15px}.opening-composed #opening-line{font-size:16px}.opening-composed .opening-heading{padding:0 18px}.opening-composed .opening-controls{padding-left:16px;padding-right:16px}}
@media(prefers-reduced-motion:reduce){.opening-composed #opening-composed-art{animation:none;opacity:1;filter:none}}
/* Short screens scroll the intact frame; controls must not cover the face. */
@media(max-height:700px){
 .opening-composed .opening-heading{margin-top:0;margin-bottom:10px}
 .opening-composed .opening-heading .chapter,.opening-composed .opening-heading>p:last-child{display:none}
 .opening-composed .opening-heading h2{font-size:21px}
 .opening-composed .opening-dialogue{padding-top:12px;padding-bottom:13px}
 .opening-composed #opening-line{font-size:15px;line-height:1.45}
 .opening-composed .opening-controls{position:relative}
}
