/* Automatic cinematic. Controls disappear while watching; captions follow the timeline. */
#screen[data-view="opening"] { z-index:30; background:#071114; overflow:hidden; }
body[data-screen="title"] #screen[data-view="opening"]::after { display:none; }
#screen > .opening { position:relative; width:100%; height:100%; overflow:hidden; color:#ece6d6; background:#071114; isolation:isolate; }
.opening { outline:none; }
.opening-picture,.opening-shade { position:absolute; inset:0; pointer-events:none; }
.opening-picture { overflow:hidden; background:radial-gradient(ellipse at 60% 35%,#284642,#09171e 75%); }
.opening-image { position:absolute; width:100%; height:100%; object-fit:cover; object-position:center 42%; opacity:0; transition:opacity 1.6s ease; animation:opening-camera 22s ease-in-out both; }
.opening-image.current { opacity:1; }
.opening-shade { background:linear-gradient(180deg,#020c1344,transparent 28%,#05121610 48%,#040e17c9 82%,#030b13 100%); }
.opening-copy { position:absolute; left:10%; right:10%; bottom:10%; max-width:900px; margin:auto; text-align:center; text-shadow:0 2px 15px #02090f; pointer-events:none; }
.opening-kicker { color:#c9bb8d; letter-spacing:.45em; font-size:11px; margin:0 0 16px; }
.opening-copy h1 { margin:0 0 18px; font-family:"Noto Serif SC","Microsoft YaHei",serif; font-size:clamp(24px,2.5vw,36px); font-weight:500; line-height:1.4; letter-spacing:.12em; }
.opening-text { max-width:800px; margin:0 auto; font-size:clamp(15px,1.3vw,18px); line-height:1.95; letter-spacing:.07em; }
.opening-status { position:absolute; top:24px; left:24px; right:24px; text-align:center; font-size:11px; color:#bcc9c4; }
.opening-controls { position:absolute; right:max(24px,env(safe-area-inset-right)); bottom:max(20px,env(safe-area-inset-bottom)); display:flex; align-items:center; gap:12px; opacity:0; transition:opacity .65s; pointer-events:none; }
.opening.show-controls .opening-controls,.opening-controls:has(:focus-visible),.opening-controls:hover { opacity:1; pointer-events:auto; }
.opening-controls span { color:#a5b6b1; font-size:11px; letter-spacing:.08em; }
.opening button { min-height:40px; padding:8px 15px; border:1px solid #c7c0a32b; border-image:none; border-radius:2px; background:#0d202366; box-shadow:none; color:#d7dbd1; text-shadow:none; font-size:12px; }
.opening button:hover { background:#30413f; border-color:#cfbc87; }
.opening button:focus-visible { outline:2px solid #ead9a0; outline-offset:4px; }
.opening.is-paused .opening-image { animation-play-state:paused; }
.story-create { max-width:620px; }
.story-create .story-intent { line-height:1.9; padding:12px 0; color:#c4cdbb; }
.title-menu { max-height:calc(100dvh - 32px); max-width:100%; margin-bottom:0; }
.title-menu .menu { overflow-y:auto; min-height:0; flex-shrink:1; }
.title-menu > .logo,.title-menu > .tagline,.title-menu > .build { flex-shrink:0; }
.title-menu .logo { font-size:clamp(32px,8.1vw,106px); letter-spacing:.09em; padding-left:.09em; white-space:nowrap; }
@keyframes opening-camera { from { transform:scale(1.025) translateX(-.4%); } to { transform:scale(1.09) translateX(.4%); } }
@media (max-width:600px) {
 .opening-picture { top:6%; bottom:36%; mask-image:linear-gradient(180deg,transparent,#000 14%,#000 72%,transparent); }
 .opening-image { object-fit:cover; object-position:center; }
 .opening-shade { background:linear-gradient(180deg,#040f1722,transparent 30%,#07111455 50%,#071114 72%); }
 .opening-copy { left:7%; right:7%; bottom:13%; }
 .opening-copy h1 { font-size:24px; margin-bottom:14px; }
 .opening-kicker { margin-bottom:13px; font-size:10px; }
 .opening-text { font-size:15px; line-height:1.85; }
 .opening-controls { right:6%; bottom:18px; gap:9px; }
 .opening-controls span { display:none; }
}
@media (max-height:600px) and (min-width:601px) {
 .opening-copy { bottom:19%; max-width:760px; }
 .opening-copy h1 { font-size:24px; margin-bottom:8px; }
 .opening-kicker { margin-bottom:7px; }
 .opening-text { font-size:14px; line-height:1.6; }
 .opening-controls { bottom:12px; }
}
@media (prefers-reduced-motion:reduce) { .opening-image { animation:none; transition:none; transform:none; } .opening-controls { transition:none; } }
