:root{color-scheme:dark;--ink:#07111c;--panel:#0b1b2a;--line:#355469;--ice:#c7eeff;--blue:#42c9fa;--muted:#9cb6c8}*{box-sizing:border-box}html,body{margin:0;min-height:100%;background:var(--ink);color:#edf7ff;font-family:"Noto Sans TC","Microsoft JhengHei",system-ui,sans-serif}button,input,textarea,select{font:inherit}button,a,select,input{touch-action:manipulation}button{cursor:pointer}a{color:inherit}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #8cdbff;outline-offset:4px}[hidden]{display:none!important}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.brandbar{height:88px;display:flex;align-items:center;justify-content:space-between;padding:0 4.5%;position:relative;z-index:20;background:linear-gradient(100deg,#142234,#07111ce8);border-bottom:1px solid #45677f66}.brand{display:flex;align-items:center;gap:14px;text-decoration:none;font-size:26px;font-weight:750;letter-spacing:.08em}.brand img{width:51px;height:51px;object-fit:contain}.brand small{display:block;font-size:12px;letter-spacing:.14em;color:var(--muted);margin-top:3px}.edition{color:#a4bed0;font-size:15px;letter-spacing:.1em}.quiet{border:1px solid #54758a;color:#d9eef9;background:#122737;padding:10px 16px;border-radius:7px}.eyebrow{font-size:14px;letter-spacing:.2em;color:#89cbea;margin:0 0 18px}.portal{height:calc(100dvh - 132px);min-height:690px;position:relative;overflow:hidden;background:radial-gradient(ellipse at 64% 35%,#174e7144,transparent 50%),linear-gradient(115deg,#07131f,#0b2033 65%,#08111e)}.portal-lines{position:absolute;inset:0;background:linear-gradient(90deg,transparent 49.8%,#76c6f211 50%,transparent 50.2%),repeating-linear-gradient(0deg,transparent 0 74px,#54aadb08 75px);background-size:110px 100%,100% 100%;transform:perspective(800px) rotateY(-7deg)}.door-scene{position:absolute;left:-3%;top:7%;width:67%;aspect-ratio:961/616;max-height:85%;overflow:hidden;perspective:1000px;border-block:1px solid #507186;box-shadow:0 25px 80px #0008}.door-half{position:absolute;inset:0;z-index:3;transform-origin:center;background:#0b1729;transition:transform 1.8s cubic-bezier(.66,.01,.3,1),filter 1s}.door-half img{position:absolute;width:159.8335%;max-width:none;height:auto;top:-13.474%;left:0}.door-half.left{clip-path:polygon(0 0,50% 0,50% 100%,0 100%)}.door-half.right{clip-path:polygon(50% 0,100% 0,100% 100%,50% 100%)}.inner-light{position:absolute;inset:0;background:radial-gradient(ellipse at center,#d6f5ff 0,#2682aa 9%,#0d263a 38%,#030a10 70%)}.seam{position:absolute;left:49.8%;top:4%;height:91%;width:3px;background:#80e5ff;box-shadow:0 0 20px #29bfff,0 0 5px white;z-index:4;opacity:0;transition:opacity .4s}.gear{position:absolute;width:270px;aspect-ratio:1;border-radius:50%;background:repeating-conic-gradient(#638ba3 0 10deg,#1c3445 10deg 22.5deg);mask:radial-gradient(circle,transparent 0 34%,#000 35% 69%,transparent 70%);border:18px solid #1d3f55;z-index:2;opacity:.65}.gear-one{left:5%;top:18%}.gear-two{right:5%;bottom:6%;width:340px}.mist{position:absolute;z-index:6;width:85%;height:30%;left:8%;bottom:-20%;background:radial-gradient(ellipse,#c4f0ff66,transparent 62%);filter:blur(15px);opacity:0;pointer-events:none}.mist-two{left:30%;width:65%;height:40%}.edge-label{position:absolute;bottom:15px;left:7%;font:13px ui-monospace,monospace;letter-spacing:.25em;color:#b7cfe5;z-index:7}.hero-copy{position:absolute;right:5%;top:19%;width:34%;z-index:8;padding:30px 0 34px 34px;background:linear-gradient(90deg,#071724ba,transparent);transition:opacity .7s,transform .7s}.hero-copy h1{font-size:clamp(38px,3.5vw,59px);line-height:1.45;letter-spacing:.035em;margin:0 0 28px;text-shadow:0 2px 18px #000}.services-line{font-size:21px;line-height:1.8;color:#c7dce9}.primary{border:1px solid #b8e9ff;border-radius:8px;background:linear-gradient(130deg,#d0ecfa,#8ed6f1);color:#102e42;min-height:60px;padding:14px 24px;font-weight:750;font-size:20px;box-shadow:0 0 26px #3ed5ff22}.primary:hover{filter:brightness(1.08)}.start{display:flex;justify-content:space-between;align-items:center;width:100%;max-width:390px;margin-top:35px}.start span{font-size:28px;font-weight:300}.hero-note{font-size:16px;color:#9ab6ca;line-height:1.8;margin-top:22px}.portal-bottom{position:absolute;bottom:25px;left:4.5%;right:4.5%;display:flex;justify-content:space-between;color:#82abc3;font-size:14px;letter-spacing:.12em}.phase-gallery{height:44px;display:flex;align-items:center;justify-content:center;gap:18px;padding:0 14px;overflow-x:auto;background:#050d14;border-top:1px solid #33546b;color:#9db9cd;font-size:13px;white-space:nowrap}.phase-gallery a{text-decoration:none}.phase-gallery a:hover{color:#d7f4ff}.phase-gallery>span{color:#5fd0f4}.opening .door-half.left,[data-phase=opening] .door-half.left{transform:translateX(-58%) rotateY(-14deg);filter:brightness(.65)}.opening .door-half.right,[data-phase=opening] .door-half.right{transform:translateX(58%) rotateY(14deg);filter:brightness(.65)}[data-phase=opening] .seam{opacity:1}[data-phase=opening] .hero-copy{opacity:0;transform:translateX(25px)}[data-phase=opening] .gear-one{animation:gears 2s linear forwards}[data-phase=opening] .gear-two{animation:gears 2s linear reverse forwards}[data-phase=opening] .mist{animation:gas 2s ease-out forwards}[data-phase=opening] .mist-two{animation-delay:.25s}@keyframes gears{to{transform:rotate(170deg)}}@keyframes gas{15%{opacity:.7}70%{opacity:.48;transform:translateY(-190px) scale(1.4)}100%{opacity:0;transform:translateY(-310px) scale(1.7)}}.blackout{position:fixed;inset:0;background:#000;z-index:45;opacity:0;pointer-events:none;transition:opacity .38s}[data-phase=blackout] .blackout{opacity:1;pointer-events:auto}.experience{display:grid;grid-template-columns:55% 45%;height:calc(100dvh - 132px);min-height:690px;position:relative;background:radial-gradient(ellipse at 28% 12%,#193c5477,transparent 42%),linear-gradient(110deg,#0b1b2b,#07131f);opacity:0;visibility:hidden;position:absolute;top:88px;left:0;right:0;transition:opacity .8s}.experience:before{content:'';position:absolute;inset:0;background:repeating-linear-gradient(90deg,transparent 0 159px,#6fadc10a 160px);pointer-events:none}[data-phase=arrival] .portal,[data-phase=form] .portal,[data-phase=review] .portal,[data-phase=complete] .portal{visibility:hidden}[data-phase=arrival] .experience,[data-phase=form] .experience,[data-phase=review] .experience,[data-phase=complete] .experience{opacity:1;visibility:visible}.host-panel{display:flex;flex-direction:column;min-height:0;position:relative;padding:28px 25px 14px 6vw;border-right:1px solid #56809b77;overflow:hidden}.host-heading{display:flex;align-items:center;gap:17px;flex-wrap:wrap;z-index:2}.host-heading .eyebrow{margin:0;width:100%;font-size:12px}.host-heading h2{margin:0;font-size:31px;font-weight:650}.host-heading h2 span{font-size:14px;font-weight:400;letter-spacing:.14em;margin-left:10px;color:#8daec3}.live-indicator{color:#9dc2d9;font-size:15px;margin-left:auto}.character{position:relative;flex:1;min-height:0;overflow:hidden;margin-top:8px;background:#0d2032}.character>.character-media>img,.character>.character-media>video,.character>.character-media>.outgoing-frame{position:absolute;height:100%;width:auto;max-width:none;left:50%;top:0;transform:translateX(-28%);object-fit:contain}.character>.character-media>video{opacity:0}.character[data-ready=true]>.character-media>video{opacity:1}.character-shade{position:absolute;inset:0;background:linear-gradient(0deg,#0b1b2b 0,transparent 22%,transparent 88%,#0b1b2b 100%);pointer-events:none}.host-caption{position:absolute;bottom:9px;left:8px;right:8px;display:flex;align-items:center;gap:12px;font-size:19px;text-shadow:0 1px 7px #000;background:linear-gradient(90deg,#081724e8,transparent);padding:9px 5px}.host-caption p{margin:0}.signal{width:7px;height:7px;border-radius:50%;background:#8ae8ff;box-shadow:0 0 13px #3bd2ff;flex-shrink:0}.host-controls{display:flex;gap:9px;align-items:center;margin-top:10px;flex-shrink:0;z-index:2}.host-controls button,.host-controls select{background:#112c3e;color:#d5ebf8;border:1px solid #557b93;border-radius:7px;padding:9px 11px;min-height:43px;font-size:15px}.host-controls label{margin-left:auto}.media-status{margin:8px 0 0;color:#829fb4;font-size:13px;line-height:1.5}.fallback{margin-top:8px}.question-panel{padding:35px 4.5vw 22px 3.5vw;overflow:auto;overscroll-behavior:contain;z-index:2}.question-top{display:flex;justify-content:space-between;gap:14px;align-items:center;font-size:16px;color:#8fc5e3;letter-spacing:.06em}.concept-pill{border:1px solid #426076;border-radius:20px;padding:5px 10px;font-size:13px;white-space:nowrap;color:#a8c0d1}.progress{height:2px;background:#284256;margin:18px 0 34px}.progress i{display:block;background:#8adefb;height:100%;width:20%;box-shadow:0 0 10px #3dc8ff;transition:width .4s}.question h2{font-size:clamp(28px,2.6vw,40px);font-weight:650;line-height:1.45;margin:0 0 14px;letter-spacing:.025em}.hint{font-size:18px;color:#a9c2d4;line-height:1.8;margin:0 0 26px}.choices{display:grid;gap:12px}.choice{display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:70px;width:100%;padding:17px 20px;color:#e4f3fb;background:linear-gradient(105deg,#19364b,#102839);border:1px solid #436d88;border-radius:10px;font-size:20px;text-align:left;line-height:1.5}.choice .radio{width:21px;height:21px;border:1px solid #84b8d3;border-radius:50%;flex-shrink:0}.choice[aria-pressed=true]{border-color:#99e2ff;background:#1b445e;box-shadow:inset 3px 0 #83dafa}.choice[aria-pressed=true] .radio{background:#a2e7ff;box-shadow:inset 0 0 0 5px #21465d}.question label{display:block;margin:20px 0 9px;font-size:18px;color:#bfdbe9}.question input,.question textarea{width:100%;border:1px solid #6d98b2;background:#102b3e;color:#eef8ff;border-radius:9px;padding:15px 17px;font-size:21px;line-height:1.6}.question textarea{height:160px;resize:vertical}.question input::placeholder,.question textarea::placeholder{color:#7795aa}.actions{display:flex;align-items:center;gap:15px;margin-top:28px}.actions .primary{flex:1;min-width:0}.secondary{border:1px solid #526f85;border-radius:8px;background:#122635;color:#c6dfed;padding:14px 19px;font-size:18px;min-height:58px}.privacy{border-top:1px solid #355267;padding-top:18px;margin-top:29px;color:#84a3ba;font-size:14px;line-height:1.7}.error{color:#ffd9a5;border-left:3px solid #dca960;padding:10px 14px;margin:16px 0;font-size:17px;background:#58422633}.summary{border-block:1px solid #47738a;margin-top:20px}.summary>div{padding:15px 0;border-bottom:1px solid #29485d;display:grid;grid-template-columns:100px 1fr;gap:12px}.summary>div:last-child{border:0}.summary dt{color:#8bbed8;font-size:16px}.summary dd{margin:0;font-size:19px;line-height:1.65;overflow-wrap:anywhere;white-space:pre-wrap}.complete-mark{width:70px;height:70px;border:1px solid #79cdea;border-radius:50%;display:grid;place-items:center;font-size:31px;color:#bbedff;background:#21435b66;margin-bottom:25px;box-shadow:0 0 30px #41c5ee1a}.complete-note{padding:16px 0;color:#9dbbcf;font-size:18px;line-height:1.8}dialog{color:#e9f7ff;width:min(580px,calc(100vw - 36px));padding:42px 46px 28px;background:radial-gradient(ellipse at 50% 0,#254f68aa,transparent 65%),#0b1b2b;border:1px solid #6e9db7;border-radius:17px;box-shadow:0 35px 160px #000c,0 0 45px #3ebbea16;text-align:center;z-index:60}dialog::backdrop{background:#020710cc;backdrop-filter:blur(9px)}dialog h2{font-size:34px;line-height:1.5;font-weight:600;margin:16px 0 20px}dialog p:not(.eyebrow){font-size:18px;line-height:1.8;color:#b8d4e3}dialog .primary,dialog .secondary{width:100%;margin-top:12px}dialog .consent-note{font-size:13px!important;color:#779ab2!important;margin-top:22px}.consent-orbit{width:72px;height:72px;margin:0 auto 25px;border:1px solid #75c1df;border-radius:50%;position:relative;box-shadow:0 0 30px #54c5f526,inset 0 0 22px #70c9f21a}.consent-orbit:before,.consent-orbit:after{content:'';position:absolute;top:22px;bottom:22px;left:28px;width:3px;border-radius:3px;background:#a7e4ff;box-shadow:9px 0 #a7e4ff,-9px 0 #a7e4ff}.consent-orbit:after{top:14px;bottom:14px;left:37px;width:3px}.capture-mode .phase-gallery{display:none}.capture-mode .portal,.capture-mode .experience{height:812px;min-height:812px}.capture-mode[data-phase=opening] .door-half{transition:none}.capture-mode[data-phase=opening] .gear{animation:none;transform:rotate(55deg)}.capture-mode[data-phase=opening] .mist{animation:none;transform:translateY(-140px) scale(1.2);opacity:.7}.capture-mode .blackout{transition:none}.capture-mode *{animation-play-state:paused!important}
@media(max-width:1000px){.brandbar{padding:0 24px}.edition{font-size:13px}.hero-copy{width:40%;right:4%;padding-left:20px}.door-scene{width:72%;left:-14%;top:14%}.hero-copy h1{font-size:40px}.experience{grid-template-columns:52% 48%}.host-panel{padding-left:25px;padding-right:18px}.question-panel{padding:29px 25px}.host-controls{gap:6px}.host-controls button,.host-controls select{font-size:14px;padding:8px}.question h2{font-size:29px}.choice{font-size:18px;padding:14px;min-height:64px}}
@media(max-width:720px){.brandbar{height:76px;padding:0 18px}.brand{font-size:22px;gap:10px}.brand img{width:39px;height:39px}.brand small{font-size:10px}.edition{display:none}.portal{height:auto;min-height:calc(100dvh - 120px);padding:330px 23px 70px}.door-scene{top:10px;left:-4%;width:108%;max-height:none}.hero-copy{position:relative;top:auto;right:auto;width:100%;padding:17px 0 0;background:none}.hero-copy .eyebrow{font-size:12px;margin-bottom:12px}.hero-copy h1{font-size:34px;margin-bottom:16px}.services-line{font-size:18px}.start{margin-top:22px;max-width:none;font-size:19px}.hero-note{font-size:15px}.portal-bottom{font-size:11px;bottom:15px;gap:18px}.portal-bottom span:last-child{max-width:130px;text-align:right}.experience{top:76px;display:flex;flex-direction:column;height:auto;min-height:calc(100dvh - 120px);position:absolute}.host-panel{padding:22px 18px 12px;border-right:0;border-bottom:1px solid #36556b;overflow:visible}.host-heading .eyebrow{display:none}.host-heading h2{font-size:27px}.live-indicator{font-size:13px}.character{height:360px;min-height:300px;flex:none}.host-caption{font-size:17px;bottom:8px}.host-controls{margin-top:10px;gap:7px}.host-controls button,.host-controls select{font-size:14px;padding:9px 10px}.media-status{font-size:12px}.question-panel{padding:27px 22px 30px;overflow:visible}.question h2{font-size:30px}.hint{font-size:18px;margin-bottom:23px}.choice{font-size:18px;min-height:65px}.progress{margin-bottom:25px}.question-top{font-size:14px}.concept-pill{font-size:12px}.phase-gallery{position:relative;justify-content:flex-start;height:44px;gap:16px}.experience~.phase-gallery{position:relative}.summary>div{grid-template-columns:90px 1fr}.summary dd{font-size:18px}dialog{padding:32px 24px 23px}dialog h2{font-size:29px}.host-panel .quiet{align-self:flex-start}.capture-mode .portal,.capture-mode .experience{height:auto;min-height:824px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}

@media(max-width:720px){.experience{display:none;position:relative;top:auto;min-height:0}[data-phase=arrival] .portal,[data-phase=form] .portal,[data-phase=review] .portal,[data-phase=complete] .portal{display:none}[data-phase=arrival] .experience,[data-phase=form] .experience,[data-phase=review] .experience,[data-phase=complete] .experience{display:flex}}
/* Revision 2: one continuous scene. UI arrives only when self-introduction ends. */
body.scene-active .brandbar,body.scene-active .portal,body.scene-active .phase-gallery{display:none!important}
body.scene-active main{min-height:100dvh}
.experience{grid-template-columns:none;display:block;top:0;min-height:100dvh;height:100dvh;background:#102132;overflow:hidden}
body.scene-active .experience{position:relative;top:0;opacity:1;visibility:visible}
.experience:before{display:none}.host-panel{position:absolute;inset:0;display:block;padding:0;border:0;overflow:visible}
.host-heading,.host-caption,.question-top,.progress{display:none!important}
.character{position:absolute;inset:0;width:100%;height:100%;margin:0;min-height:0;background:#102132;overflow:hidden}
.character>.character-media>img,.character>.character-media>video,.character>.character-media>.outgoing-frame{position:absolute;inset:0;width:100%;height:100%;transform:none;object-fit:cover;object-position:center;max-width:none;transition:opacity .65s ease}
.character-shade{background:linear-gradient(90deg,transparent 0,#06132010 38%,#061320a6 64%,#061320cc 100%),linear-gradient(0deg,#0613208f,transparent 20%,transparent 85%,#06132033);transition:opacity .6s}
.experience[data-media=intro]{background:#102132}.experience[data-media=intro] .character{background:#102132}.experience[data-media=intro] .character>.character-media>img{opacity:0}.experience[data-media=intro] .character>.character-media>video{object-fit:contain;background:#102132}.experience[data-media=intro] .character-shade{opacity:0}
[data-phase=arrival] .question-panel,[data-phase=arrival] .host-controls,[data-phase=arrival] .media-status{visibility:hidden;opacity:0;pointer-events:none}
.question-panel{position:absolute;right:6%;left:auto;top:16%;bottom:6%;width:35%;padding:0;overflow:auto;overscroll-behavior:contain;background:none;border:0;box-shadow:none;transition:opacity .7s,transform .7s;scrollbar-width:thin;scrollbar-color:#749caf66 transparent}
.question h2{font-size:clamp(30px,2.8vw,43px);line-height:1.4;margin-bottom:16px;text-shadow:0 2px 20px #0009}.hint{font-size:19px;color:#d1e1eb;line-height:1.8;text-shadow:0 1px 10px #000a}
.choice{background:transparent;border:0;border-bottom:1px solid #91b8cf7a;border-radius:0;box-shadow:none;min-height:68px;padding:15px 10px;font-size:20px}.choice[aria-pressed=true]{background:#91d7f217;border-color:#a4e8ff;box-shadow:inset 3px 0 #9fdfff}.question input,.question textarea{background:#061b2c63;border:1px solid #80adc7;border-radius:5px;color:white;font-size:20px;box-shadow:none}.question input::placeholder{color:#bad0e0}.question label{color:#d3e6f3}.actions .primary{font-size:19px;min-height:57px}.privacy{font-size:13px;border:0;margin-top:22px;color:#a9c1d0}.summary{border-color:#8daabd}.summary>div{border-color:#7194ad66}.summary dt{color:#b7d9ed}.summary dd{color:#f0f9ff}.complete-mark{background:#87dbff0f}.complete-note{color:#d3e3ed}
.host-controls{position:absolute;left:4%;bottom:32px;width:43%;display:flex;gap:7px;justify-content:center;align-items:center;margin:0;opacity:0;transform:translateY(5px);pointer-events:none;transition:opacity .25s,transform .25s;z-index:5}.host-controls button,.host-controls select{font-size:13px;min-height:35px;padding:6px 10px;background:#061726a6;border:1px solid #8bb4ca77;backdrop-filter:blur(10px)}.host-controls label{margin-left:0}.experience:hover .host-controls,.host-controls:focus-within,.experience.controls-visible .host-controls{opacity:.8;transform:none;pointer-events:auto}.host-controls:focus-within,.host-controls:hover{opacity:1}.host-controls #home{font-size:13px}
.media-status{position:absolute;left:4%;bottom:8px;width:43%;margin:0;text-align:center;font-size:12px;opacity:0;color:#aec9dc;transition:opacity .25s}.experience.controls-visible .media-status,.experience:hover .media-status{opacity:.8}.fallback{position:absolute;left:7%;bottom:90px;z-index:9;font-size:18px;padding:14px 20px;max-width:42%;box-shadow:0 10px 40px #0006}.experience[data-playback=failed] .media-status{visibility:visible!important;opacity:1!important;bottom:52px}.experience[data-playback=failed] .fallback{visibility:visible;pointer-events:auto}.experience[data-media=intro][data-playback=failed] .fallback{left:50%;bottom:12%;transform:translateX(-50%);max-width:80%;background:#193c51;color:#f1fbff}
.photo-demo{margin-top:22px;padding:12px 0;border-top:1px solid #7395ac66}.photo-demo input[type=file]{font-size:16px;padding:10px;background:transparent;border-style:dashed}.photo-demo p{font-size:14px;color:#b7cfdf}.photo-thumbs{display:flex;gap:8px;flex-wrap:wrap}.photo-thumbs img{width:82px;height:64px;object-fit:cover;border:1px solid #709ab2;border-radius:3px}.photo-count{font-size:15px;color:#c6e3f2}
.capture-mode .experience{height:900px;min-height:900px}.capture-mode.scene-active .host-controls{opacity:0;pointer-events:none}.capture-mode.scene-active[data-phase=form] .host-controls{opacity:.65;pointer-events:auto}
@media(max-width:1000px) and (min-width:721px){.question-panel{right:4%;width:40%;top:13%;bottom:7%}.question h2{font-size:31px}.choice{font-size:18px;min-height:62px}.host-controls{left:2%;width:47%}}
@media(max-width:720px){body.scene-active .experience{display:block;position:relative;min-height:100dvh;height:auto;overflow:visible}.host-panel{position:absolute;inset:0}.character{position:absolute;inset:0 0 auto;height:490px;min-height:0}.character>.character-media>img,.character>.character-media>video,.character>.character-media>.outgoing-frame{width:auto;height:100%;left:50%;right:auto;transform:translateX(-28%);object-fit:contain;max-width:none}.character-shade{background:linear-gradient(0deg,#102132 0,transparent 32%,transparent 92%,#10213244)}.experience[data-media=intro] .character{height:100dvh}.experience[data-media=intro] .character>.character-media>video{width:100%;height:100%;inset:0;transform:none;object-fit:contain}.experience[data-media=intro] .character-shade{display:none}.experience[data-media=intro]{min-height:100dvh!important;height:100dvh!important}.question-panel{position:relative;inset:auto;width:100%;padding:440px 25px 35px;overflow:visible;min-height:100dvh;background:linear-gradient(0deg,#102132 0,#102132 45%,transparent 72%)}.question h2{font-size:30px}.hint{font-size:18px}.choice{font-size:19px;min-height:64px}.host-controls{left:4%;bottom:auto;top:387px;width:92%;justify-content:center;gap:5px;z-index:6}.host-controls button,.host-controls select,.host-controls #home{font-size:12px;min-height:33px;padding:6px 7px}.media-status{left:4%;top:425px;bottom:auto;width:92%;font-size:11px}.fallback{left:5%;bottom:auto;top:340px;max-width:90%;font-size:16px}.experience[data-playback=failed] .media-status{top:410px;bottom:auto}.experience[data-media=intro][data-playback=failed] .fallback{left:50%;top:auto;bottom:15%;max-width:90%}[data-phase=arrival] .question-panel{display:none}.capture-mode .experience{height:auto;min-height:900px}.capture-mode[data-phase=arrival] .experience{height:900px}.privacy{font-size:13px}.summary>div{grid-template-columns:90px 1fr}}
.experience[data-media=intro] .character>.character-media>img{opacity:1;inset:0;width:100%;height:100%;transform:none;object-fit:contain;background:#102132}
@media(max-width:720px){body.scene-active:not([data-phase=arrival]) .host-controls{top:500px}body.scene-active:not([data-phase=arrival]) .media-status{top:539px}body.scene-active:not([data-phase=arrival]) .question-panel{padding-top:568px}}

/* Controls are available throughout the complete introduction chain. */
body>.host-controls{position:fixed;left:20px;bottom:18px;top:auto;width:auto;max-width:calc(100% - 40px);flex-wrap:wrap;opacity:1!important;visibility:visible!important;pointer-events:auto!important;transform:none;z-index:120}
body>.host-controls[hidden]{display:none!important}
body[data-media=survey] .character>.character-media>video{object-fit:contain;background:#102132}
@media(max-width:720px){body>.host-controls{left:10px;bottom:10px;top:auto!important;max-width:calc(100% - 20px);gap:4px}body>.host-controls button,body>.host-controls select{font-size:12px;min-height:36px}body.scene-active:not([data-phase=arrival]) .question-panel{padding-bottom:110px}}

/* Phone consultation: one fixed viewport, persistent actor, local accessible overflow. */
@media(max-width:720px){body.scene-active{height:var(--view-h,100dvh);overflow:hidden;overscroll-behavior:none}body.scene-active .experience{position:fixed;top:var(--view-top,0px);inset-inline:0;height:var(--view-h,100dvh)!important;min-height:0!important;overflow:hidden}body.scene-active .character{height:var(--avatar-h,30dvh);min-height:0}body.scene-active .question-panel,body.scene-active:not([data-phase=arrival]) .question-panel{position:absolute;top:calc(var(--avatar-h,30dvh) + 44px);bottom:0;left:0;right:0;width:auto;padding:10px 20px 0!important;min-height:0;overflow:auto;overscroll-behavior:contain;scroll-padding-block:15px 75px;background:#102132}body.scene-active .question{padding:0}body.scene-active .question h2{font-size:23px;line-height:1.35;margin:0 0 9px}body.scene-active .hint{font-size:18px;line-height:1.35;margin:5px 0 10px}body.scene-active .choice{min-height:46px;padding:8px 4px;font-size:18px}body.scene-active .choices{gap:0}body.scene-active .question label{font-size:18px;margin:6px 0}body.scene-active .question input,body.scene-active .question textarea{font-size:18px;padding:10px;min-height:44px}body.scene-active .question textarea{height:76px;min-height:76px}body.scene-active .actions{position:sticky;bottom:0;background:#102132;z-index:3;margin-top:12px;padding:8px 0 max(8px,env(safe-area-inset-bottom));display:flex;gap:8px}body.scene-active .actions button{min-height:44px;font-size:18px;padding:8px 14px}body.scene-active .privacy{display:none}body.scene-active .photo-demo{margin:0;padding:0}body.scene-active .photo-thumbs img{width:52px;height:38px}body.scene-active .summary>div{padding:10px 0;grid-template-columns:90px 1fr}body.scene-active .summary dd{font-size:18px;overflow-wrap:anywhere}body.scene-active .host-controls,body.scene-active:not([data-phase=arrival]) .host-controls{top:calc(var(--view-top,0px) + var(--avatar-h,30dvh))!important;bottom:auto;left:0;width:100%;max-width:100%;height:44px;gap:4px;flex-wrap:nowrap;background:#102132}body.scene-active .host-controls button,body.scene-active .host-controls select{font-size:14px;min-height:40px;padding:5px 7px}body.scene-active .media-status{display:none}body.scene-active .fallback{top:10px;bottom:auto;left:10px;max-width:90%;font-size:18px}body.scene-active[data-phase=arrival] .character{height:calc(var(--view-h,100dvh) - 54px)}body.scene-active[data-phase=arrival] .host-controls{top:auto!important;bottom:10px}body.scene-active[data-phase=arrival] .character>.character-media>video,body.scene-active[data-phase=arrival] .character>.character-media>.outgoing-frame{width:100%;height:100%;inset:0;transform:none;object-fit:contain}body.scene-active[data-phase=arrival] .character>.character-media>img{width:100%;height:100%;inset:0;transform:none;object-fit:contain}.keyboard-compact .hint{display:none}.keyboard-compact .question h2{font-size:20px!important}}

@media(max-width:720px){body.scene-active .question{min-height:100%;display:flex;flex-direction:column}body.scene-active .question form{flex:1;display:flex;flex-direction:column}body.scene-active .actions{margin-top:auto}body.scene-active .error{font-size:18px;color:#ffccbd;margin:6px 0}body.scene-active .hint:has(+h2){font-size:18px}}

#audio-note{position:fixed;right:14px;top:8px;max-width:70%;font-size:14px;line-height:1.4;color:#eff8ff;background:#102132cc;padding:5px 8px;z-index:125;pointer-events:none}#audio-note[hidden]{display:none}body:not(.scene-active) #audio-note{display:none}@media(max-width:720px){#audio-note{font-size:12px;max-width:75%;top:4px;padding:3px 5px}body.scene-active .host-controls #language{max-width:85px}body.scene-active .host-controls button{white-space:nowrap}}
/* Fill the phone's exposed margin with the approved room's empty right wall.
   Keep the actor's existing centered, full-height framing; do not crop head/tablet. */
@media(max-width:720px){body.scene-active:not([data-phase=arrival]) .character{background-color:#162737;background-image:url('/preview/assets/images/niyu-approved-still.png');background-repeat:no-repeat;background-position:right center;background-size:400% 100%}body.scene-active:not([data-phase=arrival]) .character>.character-media>img,body.scene-active:not([data-phase=arrival]) .character>.character-media>video,body.scene-active:not([data-phase=arrival]) .character>.character-media>.outgoing-frame{object-fit:contain}body.scene-active:not([data-phase=arrival]) .character-shade{background:linear-gradient(0deg,#102132 0,transparent 24%);pointer-events:none}}

/* Loading posters are exact frames of the current clip, with the same full-frame fit. */
body[data-phase=arrival] .character>.character-media>img,body[data-phase=arrival] .character>.character-media>video,body[data-phase=arrival] .character>.character-media>.outgoing-frame{object-fit:contain;object-position:center}

/* Never insert a static character between clips while the next real frame is loading. */
.experience[data-loading=true] .character>.character-media>img{opacity:0!important}.experience[data-loading=true] .character>.character-media>video{transition:none}

/* Persistent, prominent sending feedback within the immersive scene. */
.mail-pending{padding:14px 0;color:#c5ecff;font-size:19px;line-height:1.6}.mail-result{font-size:18px;line-height:1.7;color:#d7e8f2;border-left:3px solid #8bd4ef;padding:12px 16px;margin:18px 0 22px;background:linear-gradient(90deg,#15394b88,transparent)}.mail-result strong{display:block;margin-top:12px;font-size:17px;color:#aacee0}.mail-result code{display:block;overflow-wrap:anywhere;word-break:break-word;font-size:16px;line-height:1.65;color:#edf8ff;margin-top:4px}.receipt-next-step{display:block;margin-top:15px;color:#c4dce9}#submission-title{font-size:clamp(28px,3vw,40px);line-height:1.4;color:#edfaff;outline-offset:6px}body[data-phase=complete] .complete-mark{margin-bottom:15px}@media(max-width:650px){.mail-result{padding:10px 13px;margin:14px 0 18px}.mail-result code{font-size:15px}#submission-title{font-size:28px}}

body.scene-active[data-phase=complete] .question form{flex:0;display:block}body.scene-active[data-phase=complete] .actions{position:static;margin-top:15px;display:flex;flex-direction:column;align-items:stretch;background:transparent;padding-bottom:25px}body.scene-active[data-phase=complete] .actions>*{width:100%;min-height:48px;text-align:center;justify-content:center}.receipt-line{display:flex;align-items:center;gap:12px;text-decoration:none;font-size:19px;padding:14px 20px}body[data-phase=complete] #question>.hint:empty{display:none}body[data-phase=complete] .question-panel{scroll-padding-top:15px}

.receipt-heading{display:flex;align-items:center;gap:16px;margin:0 0 12px}.receipt-heading .complete-mark{flex:none;width:58px;height:58px;margin:0!important;font-size:34px}.question .receipt-heading #submission-title{font-size:clamp(48px,4.5vw,68px);font-weight:800;line-height:1.1;letter-spacing:.06em;color:#d0f6ff;margin:0}.receipt-subtitle{font-size:23px;font-weight:650;line-height:1.5;margin:0 0 10px;color:#f1f9ff}@media(max-width:650px){body.scene-active[data-phase=complete] .question-panel{display:flex;flex-direction:column;overflow:hidden}body.scene-active[data-phase=complete] .question{flex:1;min-height:0;height:100%;overflow:hidden}body.scene-active[data-phase=complete] .mail-result{flex:1;min-height:70px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}body.scene-active[data-phase=complete] .question form{flex:none}body.scene-active[data-phase=complete] .actions{padding-bottom:max(10px,env(safe-area-inset-bottom));margin-top:0;gap:8px}.receipt-heading{gap:12px;margin-bottom:8px}.receipt-heading .complete-mark{width:44px;height:44px;font-size:28px}.question .receipt-heading #submission-title{font-size:48px}.receipt-subtitle{font-size:21px;margin-bottom:2px}}@media(max-height:440px){body.scene-active[data-phase=complete] .question-panel{overflow:auto}body.scene-active[data-phase=complete] .question{height:auto;overflow:visible}body.scene-active[data-phase=complete] .mail-result{overflow:visible;flex:none}}

/* Approved original steel film: one full frame, then the same character player. */
.experience[data-media=opening] .character{height:100dvh;background:#07111c}
.experience[data-media=opening] .character>.character-media>video,.experience[data-media=opening] .character>.character-media>img,.experience[data-media=opening] .character>.character-media>.outgoing-frame{inset:0;width:100%;height:100%;transform:none;object-fit:contain;object-position:center;mask-image:none;-webkit-mask-image:none;background:#07111c}
.experience[data-media=opening] .character-shade{display:none}
.experience[data-media=opening][data-playback=failed] .fallback{visibility:visible;pointer-events:auto;z-index:130;left:50%;top:20%;bottom:auto;transform:translateX(-50%);max-width:85%}
@media(max-width:720px){body.scene-active[data-phase=arrival] .experience[data-media=opening] .character{height:calc(var(--view-h,100dvh) - 54px)}}

.character>.character-media>.outgoing-frame{z-index:4;pointer-events:none;background:#102132;opacity:1;transition:opacity .18s ease-out}.character>.character-media>.outgoing-frame.frame-ready{opacity:0}@media(prefers-reduced-motion:reduce){.character>.character-media>.outgoing-frame{transition:none}}

.character.frame-staged>.character-media>video{transition:none!important}

/* Full-frame introductions and surveys have no form readability overlay. */
body[data-phase=arrival] .character-shade{display:none!important;opacity:0!important}

/* Approved whole-paragraph captions: no burned-in text and no cue changes. */
.cinematic-caption{position:absolute;z-index:6;box-sizing:border-box;margin:0;padding:12px;color:#eff9ff;background:#102b3dee;border:1px solid #719daf;font-family:'Noto Sans TC','Noto Sans JP','Microsoft JhengHei',system-ui,sans-serif;font-size:clamp(22px,2.23vw,32px);font-weight:800;line-height:1.19;text-shadow:0 1px 1px #071622;clip-path:polygon(10px 0,calc(100% - 10px) 0,100% 10px,100% calc(100% - 10px),calc(100% - 10px) 100%,10px 100%,0 calc(100% - 10px),0 10px);overflow:auto;overscroll-behavior:contain;line-break:strict;overflow-wrap:break-word}
.cinematic-caption[hidden]{display:none!important}
@media(max-width:720px){.cinematic-caption{padding:14px;font-size:18px;line-height:1.5}}
body[data-phase=arrival] .character[data-caption-layout=stacked]>.character-media>video,body[data-phase=arrival] .character[data-caption-layout=stacked]>.character-media>img,body[data-phase=arrival] .character[data-caption-layout=stacked]>.character-media>.outgoing-frame{left:var(--caption-video-left)!important;top:var(--caption-video-top)!important;right:auto;bottom:auto;width:var(--caption-video-width)!important;height:var(--caption-video-height)!important;transform:none;object-fit:contain}
.character[data-caption-compact=true] .cinematic-caption{font-size:18px;line-height:1.4;padding:6px}

body.scene-active .question-panel{transition:opacity .18s ease,transform .18s ease}
@media(prefers-reduced-motion:reduce){body.scene-active .question-panel{transition:none}}

/* Form controls remain above the noninteractive captured-scene handoff. */
body.scene-active:not([data-phase=arrival]) .question-panel{z-index:6}
.experience.form-handoff-active .character>.character-media>video{transition:none!important}

@media(min-width:721px){.cinematic-caption,.character[data-caption-compact=true] .cinematic-caption{background:none;border:0;clip-path:none;padding:0;overflow:visible;overscroll-behavior:auto;white-space:pre-line;font-size:clamp(24px,2.23vw,32px);line-height:1.35;text-shadow:0 2px 3px #000,0 0 8px #061320c0}.character[data-caption-compact=true] .cinematic-caption{font-size:20px;line-height:1.4}}

.gate-fade{position:absolute;inset:0;background:rgb(3,7,12);z-index:5;pointer-events:none;opacity:0}
.niyu-nameplate{display:inline-flex;align-items:baseline;justify-content:center;gap:.32em;min-width:0;position:absolute;z-index:7;box-sizing:border-box;color:#f1fbff;background:#071a29e6;border:1px solid #77d8ee99;clip-path:polygon(9px 0,calc(100% - 9px) 0,100% 9px,100% calc(100% - 9px),calc(100% - 9px) 100%,9px 100%,0 calc(100% - 9px),0 9px);padding:5px 12px 5px 10px;font-weight:800;line-height:1.2;white-space:nowrap;pointer-events:none;text-shadow:0 1px 2px #00131d;box-shadow:inset 0 0 8px #57cdec22;transform-origin:70% 70%}.niyu-nameplate::before{content:"";position:absolute;inset:0;border:1px solid #d2f8ff;clip-path:inherit;pointer-events:none;opacity:0;background:linear-gradient(105deg,transparent 25%,#dbfaffbb 46%,#73dcff66 53%,transparent 72%);background-size:240% 100%;background-position:150% 0}.niyu-nameplate::after{content:"";position:absolute;inset:0;pointer-events:none;opacity:0;background:radial-gradient(ellipse 1px 8px at 92% 25%,#efffff 10%,#8ee9ff 45%,transparent 85%),radial-gradient(ellipse 8px 1px at 92% 25%,#efffff 10%,#8ee9ff 45%,transparent 85%),radial-gradient(ellipse 1px 5px at 8% 78%,#efffff 10%,#8ee9ff 45%,transparent 85%),radial-gradient(ellipse 5px 1px at 8% 78%,#efffff 10%,#8ee9ff 45%,transparent 85%),radial-gradient(ellipse 1px 4px at 77% 85%,#efffff 10%,#8ee9ff 45%,transparent 85%),radial-gradient(ellipse 4px 1px at 77% 85%,#efffff 10%,#8ee9ff 45%,transparent 85%)}.nameplate-enter{animation:nameplate-reveal .7s cubic-bezier(.16,.75,.25,1) both}.nameplate-enter::before{animation:nameplate-edge .7s ease-out both;animation-play-state:inherit}.nameplate-enter::after{animation:nameplate-star .7s ease-out both;animation-play-state:inherit}@keyframes nameplate-reveal{0%{opacity:0;transform:translateY(10px) scale(.88);text-shadow:0 1px 2px #00131d}24%{opacity:1;text-shadow:0 0 10px #bdf5ffbb}58%{opacity:1;transform:translateY(-3px) scale(1.09);text-shadow:0 0 7px #92e7fa99}80%{transform:translateY(1px) scale(.995)}100%{opacity:1;transform:none;text-shadow:0 1px 2px #00131d}}@keyframes nameplate-edge{0%{clip-path:inset(0 100% 0 0);opacity:1;background-position:150% 0}30%{clip-path:inset(0 0 0 0);opacity:1}75%{opacity:.9;background-position:-70% 0}100%{clip-path:inset(0 0 0 0);opacity:0;background-position:-100% 0}}@keyframes nameplate-star{0%,24%{opacity:0;transform:scale(.7)}52%{opacity:1;transform:scale(1.05)}100%{opacity:0;transform:scale(1)}}@media(prefers-reduced-motion:reduce){.nameplate-enter,.nameplate-enter::before,.nameplate-enter::after{animation:none}}

.character.gate-transition>.character-media>video{transition:none!important}

.entrance-preparation{margin:16px 0}.entrance-preparation img{width:120px;height:auto;display:block;margin:0 auto 12px}.entrance-preparation button{display:block;margin:8px auto;min-height:44px}#consent button:disabled{opacity:.45;cursor:wait}
.media-diagnostics{position:fixed;right:8px;bottom:8px;z-index:200;max-width:min(340px,90vw);padding:8px;color:#e7f6ff;background:#071521ed;border:1px solid #6895ad;font:12px/1.4 ui-monospace,monospace}.media-diagnostics summary{cursor:pointer;min-height:24px}.media-diagnostics pre{max-height:35vh;overflow:auto;white-space:pre-wrap}

.nameplate-code{font-family:ui-monospace,'SFMono-Regular',Consolas,monospace;font-size:.68em;font-weight:650;letter-spacing:.075em;color:#baddeb}.nameplate-name{font-family:'Arial Rounded MT Bold','Noto Sans TC','Noto Sans JP','Microsoft JhengHei','Yu Gothic',system-ui,sans-serif;font-weight:900;letter-spacing:.08em}.niyu-nameplate[data-language=en] .nameplate-name{letter-spacing:.035em}.niyu-nameplate[data-language=ja] .nameplate-name{letter-spacing:.07em}

/* Responsive controls reserve their measured rows, without shrinking touch targets. */
@media(max-width:720px){body.scene-active .host-controls,body.scene-active:not([data-phase=arrival]) .host-controls{height:auto;min-height:44px;flex-wrap:wrap;padding:0 6px;box-sizing:border-box;gap:4px}body.scene-active .host-controls button{min-height:44px;min-width:44px;max-width:100%;white-space:normal;line-height:1.2}body.scene-active .question-panel,body.scene-active:not([data-phase=arrival]) .question-panel{top:calc(var(--avatar-h,30dvh) + var(--controls-h,44px))}body.scene-active[data-phase=arrival] .character{height:calc(var(--view-h,100dvh) - var(--controls-h,44px) - 10px)}}
@media(max-width:720px){body.scene-active .host-controls #home{min-height:44px}body.scene-active[data-phase=arrival] .experience[data-media=opening] .character{height:calc(var(--view-h,100dvh) - var(--controls-h,44px) - 10px)}}

/* v94: decoded door frame advances into the measured opening, then yields to decoded intro. */
.character>.door-push-frame{position:absolute;max-width:none;z-index:6;pointer-events:none;transform-origin:52% 46%;will-change:transform,opacity;background:#07111c}
@media(prefers-reduced-motion:reduce){.character>.door-push-frame{display:none}}

/* One composited media surface prevents masked layers from changing edge brightness. */
.character>.character-media{position:absolute;inset:0;isolation:isolate}
body.scene-active:not([data-phase=arrival]) .character>.character-media{z-index:1}
body.scene-active:not([data-phase=arrival]) .character>.character-media>img,
body.scene-active:not([data-phase=arrival]) .character>.character-media>video,
body.scene-active:not([data-phase=arrival]) .character>.character-media>.outgoing-frame{inset:0;width:100%;height:100%;transform:none;object-fit:cover;mask-image:none;-webkit-mask-image:none}
body.scene-active:not([data-phase=arrival]) .character>.character-media>img,
body.scene-active:not([data-phase=arrival]) .character>.character-media>video{transition:none}
body.scene-active:not([data-phase=arrival]) .character[data-ready=true]>.character-media>img,
body.scene-active:not([data-phase=arrival]) .character.frame-staged>.character-media>img{opacity:0!important}
body.scene-active:not([data-phase=arrival]) .character>.character-shade{z-index:5;opacity:1;transition:none}
@media(max-width:720px){body.scene-active:not([data-phase=arrival]) .character>.character-media{left:50%;right:auto;width:calc(var(--avatar-h,30dvh)*1.7391304347826086);height:100%;transform:translateX(-28%);mask-image:linear-gradient(90deg,transparent 0,#000 9%,#000 91%,transparent 100%);-webkit-mask-image:linear-gradient(90deg,transparent 0,#000 9%,#000 91%,transparent 100%)}body.scene-active:not([data-phase=arrival]) .character>.character-media>img,body.scene-active:not([data-phase=arrival]) .character>.character-media>video,body.scene-active:not([data-phase=arrival]) .character>.character-media>.outgoing-frame{object-fit:contain}}

/* Native form-frame handoff: keep the old decoded surface until new paint. */
.character>.character-media>video[data-surface=inactive],
.character>.character-media>video[data-surface=pending]{opacity:0!important;z-index:2;transition:none!important}
.character>.character-media>video[data-surface=held]{opacity:1!important;z-index:2;transition:none!important}
.character>.character-media>video[data-surface=current]{opacity:1!important;transition:none!important}
.character>.character-media.video-held>img{opacity:0!important}

body.scene-active:not([data-phase=arrival]) .character>.character-media>video[data-surface=current]{z-index:3}

/* v176 approved complete film: show the encoded frame without legacy crops or overlays. */
body[data-phase=arrival] .experience[data-approved-flow=true] .character>.character-media{inset:0;width:100%;height:100%;transform:none;mask-image:none;-webkit-mask-image:none}
body[data-phase=arrival] .experience[data-approved-flow=true] .character>.character-media>video,body[data-phase=arrival] .experience[data-approved-flow=true] .character>.character-media>img{inset:0!important;width:100%!important;height:100%!important;transform:none!important;object-fit:contain!important;object-position:center;mask-image:none;-webkit-mask-image:none}
body[data-phase=arrival] .experience[data-approved-flow=true] .door-push-frame,body[data-phase=arrival] .experience[data-approved-flow=true] .niyu-nameplate{display:none!important}

/* Keep the approved-film cover visible until an actual video frame arrives. */
body[data-phase=arrival] .experience[data-approved-flow=true] .character[data-ready=false]>.character-media>img{opacity:1!important;z-index:3}
