dialog.opening-scene{position:fixed;inset:0;width:100%;max-width:none;height:100%;height:100dvh;max-height:none;margin:0;padding:0;border:0;border-radius:0;background:var(--paper);color:var(--ink);overflow:auto;animation:opening-reveal 3.6s ease both}
.opening-scene::backdrop{background:var(--paper)}
.opening-inner{width:min(100%,1000px);min-height:100%;margin:auto;padding:25px 35px 22px;display:flex;flex-direction:column;align-items:center;justify-content:center}
.opening-top{display:flex;align-items:center;justify-content:space-between;gap:20px;align-self:stretch;margin-bottom:20px}
.opening-top .brand-logo{width:200px}.opening-skip{font-size:14px;min-height:44px}.opening-skip .icon{width:18px}
.opening-art{position:relative;isolation:isolate;width:min(100%,610px);height:clamp(235px,40vh,370px);margin:10px 0 32px}
.opening-garden{position:absolute;inset:0 5%;overflow:hidden;border-radius:160px 160px 40px 40px;border:1px solid var(--surface-edge);background:var(--surface-soft);animation:opening-garden-in 1.3s ease both}
.opening-garden img{width:100%;height:100%;object-fit:cover;object-position:50% 60%;animation:opening-garden-zoom 3.6s ease-out both}
.opening-garden::after{content:'';position:absolute;inset:0;background:linear-gradient(0deg,#183d2e88,transparent 60%)}
.opening-companion{position:absolute;bottom:-22px;left:8%;animation:opening-seedy-in 1.15s .15s cubic-bezier(.2,.7,.3,1) both;transform-origin:50% 100%;background:#d2e2d5;border:4px solid var(--paper);border-radius:50%;box-shadow:0 10px 22px #15332335}
 .opening-companion .character-portrait.opening-portrait{width:clamp(160px,23vw,245px);height:auto;aspect-ratio:1;background:#d2e2d5;mix-blend-mode:multiply;box-shadow:none;border-radius:50%}
.opening-hello{position:absolute;right:6%;bottom:24%;display:grid;gap:6px;background:var(--violet-light);color:var(--violet-ink);border:1px solid var(--violet-line);border-radius:24px 24px 24px 5px;padding:19px 25px;box-shadow:0 8px 25px #1d35231a;animation:opening-hello-in .6s .15s both}
.opening-hello>span:first-child{font-size:42px;line-height:1.15;font-weight:700;letter-spacing:-1px}.opening-hello>span:last-child{font-size:14px}
.opening-copy{text-align:center;animation:opening-hello-in .7s .1s both}.opening-copy>.eyebrow{font-size:12px;letter-spacing:1.7px}.opening-copy h1{font-size:clamp(28px,4vw,39px);line-height:1.2;letter-spacing:-1px;margin:12px 0}.opening-copy p{font-size:16px;line-height:1.6;color:var(--muted);margin:0}
.opening-footer{margin-top:28px;text-align:center;color:var(--muted);font-size:14px}.opening-timer{width:100px;height:3px;margin:13px auto 0;overflow:hidden;border-radius:4px;background:var(--surface-inset)}.opening-timer i{display:block;width:100%;height:100%;background:var(--violet);transform-origin:left;animation:opening-time 3.6s linear both}
html[data-theme="dark"] .opening-garden img{filter:brightness(.8) saturate(.9)}
@keyframes opening-reveal{0%,92%{opacity:1}100%{opacity:0}}
@keyframes opening-garden-in{from{opacity:0;transform:translateY(9px)}to{opacity:1;transform:translateY(0)}}
@keyframes opening-garden-zoom{from{transform:scale(1.055)}to{transform:scale(1)}}
@keyframes opening-seedy-in{0%{opacity:0;transform:translateY(38px) rotate(-7deg)}55%{opacity:1;transform:translateY(-8px) rotate(3deg)}78%{transform:translateY(2px) rotate(-1deg)}100%{opacity:1;transform:translateY(0) rotate(0)}}
@keyframes opening-hello-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
@keyframes opening-time{from{transform:scaleX(0)}to{transform:scaleX(1)}}
@media(max-width:600px){.opening-inner{padding:22px 20px max(22px,env(safe-area-inset-bottom))}.opening-top{margin-bottom:24px}.opening-top .brand-logo{width:155px}.opening-skip{gap:8px}.opening-art{height:290px;margin-top:auto;margin-bottom:32px}.opening-garden{inset:0;border-radius:120px 120px 30px 30px}.opening-companion{left:0;bottom:-18px}.opening-companion .character-portrait.opening-portrait{width:190px}.opening-hello{right:0;bottom:41%;padding:16px 20px}.opening-hello>span:first-child{font-size:35px}.opening-hello>span:last-child{font-size:13px}.opening-copy h1{max-width:310px;margin:12px auto}.opening-footer{margin-bottom:auto;padding-top:0;margin-top:24px}}
@media(max-height:620px){.opening-inner{padding-top:14px;padding-bottom:14px}.opening-top{margin-bottom:8px}.opening-art{height:200px;margin-top:0;margin-bottom:22px}.opening-companion .character-portrait.opening-portrait{width:160px}.opening-hello{padding:12px 20px}.opening-hello>span:first-child{font-size:30px}.opening-copy h1{font-size:27px;margin:8px 0}.opening-footer{margin-top:15px}}
@media(prefers-reduced-motion:reduce){dialog.opening-scene,.opening-scene *{animation:none!important}}

html[data-theme="dark"] .opening-companion .character-portrait.opening-portrait{background:#d2e2d5;mix-blend-mode:multiply;border-radius:50%}
