*{box-sizing:border-box}html,body{margin:0;background:#030510;color:#fff3dc;font-family:"Microsoft YaHei",sans-serif}button{font:inherit;color:inherit;cursor:pointer}button:focus-visible{outline:2px solid #f9dca1;outline-offset:5px}[hidden]{display:none!important}#show{position:relative;width:100%;height:var(--vh,100svh);min-height:580px;overflow:hidden;background:#030510}.scenery,.shade,#sky{position:absolute;inset:0;width:100%;height:100%}.scenery{background:url('img/castle.png') center 65%/cover no-repeat;transform:scale(1.075);transition:opacity 3s,transform 18s;opacity:.45}.shade{background:linear-gradient(#03051055,transparent 45%,#02040b22 70%,#02040be8)}#sky{touch-action:pan-y}header,footer{position:absolute;z-index:5;left:7%;right:7%;display:flex;align-items:center;justify-content:space-between}header{top:max(25px,env(safe-area-inset-top));font-size:9px;letter-spacing:2px;color:#e4ccacb0}button{border:1px solid #dac49b55;border-radius:30px;background:#090d1a80;padding:10px 16px;font-size:11px;letter-spacing:1px}header button{font-size:10px;padding:8px 10px}.opening{position:absolute;z-index:3;top:17%;left:8%;right:8%;text-align:center;transition:opacity 1.1s,transform 1.1s}.eyebrow{font-size:10px;letter-spacing:4px;color:#e7c895;margin:0 0 20px}h1,h2{font-family:"STSong","SimSun",serif;font-weight:400;margin:0;line-height:1.5;letter-spacing:5px}h1{font-size:clamp(30px,5vw,54px)}.opening>p:not(.eyebrow){font-size:12px;letter-spacing:2px;line-height:2;margin:22px 0}.primary{display:block;margin:32px auto 14px;padding:15px 25px;background:linear-gradient(120deg,#efd8ae,#bc9062);color:#201320;border:0;font-size:12px;min-width:214px}.primary span{margin-left:18px}small{font-size:9px;color:#dcc7b29c;letter-spacing:1px}.caption{position:absolute;pointer-events:none;z-index:3;top:12%;left:7%;right:7%;text-align:center;opacity:0;transition:opacity 1s}.caption h2{font-size:clamp(23px,4vw,38px);overflow-wrap:anywhere}.caption>p:last-child{font-size:11px;letter-spacing:2px;line-height:1.9}.letter{position:absolute;z-index:3;left:8%;right:8%;bottom:115px;text-align:center;padding:22px 20px;background:linear-gradient(180deg,#05071355,#050713ed);border-top:1px solid #d8ba7555;max-height:37%;overflow-y:auto}.letter .eyebrow{margin-bottom:8px;font-size:9px}.letter h2{font-size:24px;letter-spacing:3px}.letter #message{font-size:12px;line-height:2;white-space:pre-wrap;overflow-wrap:anywhere;margin:12px auto;max-width:440px}.letter #signature{font-size:10px;color:#d8ba90;letter-spacing:2px;overflow-wrap:anywhere}footer{bottom:max(28px,env(safe-area-inset-bottom));flex-direction:column;gap:14px}#hint{font-size:10px;letter-spacing:2px;color:#ead4b9b0}.controls{display:flex;gap:12px}.progress{width:100%;height:1px;background:#e9c68a25;margin-top:6px}.progress i{display:block;height:1px;background:#e9c68a;width:0}#show:not([data-stage="0"]) .opening{opacity:0;transform:translateY(-18px);pointer-events:none}#show:not([data-stage="0"]) .caption{opacity:1}#show:not([data-stage="0"]) .scenery{opacity:1;transform:scale(1)}#show[data-stage="1"] .scenery,#show[data-stage="2"] .scenery{opacity:.35}#show[data-stage="4"] .caption{top:10%}#show[data-stage="4"] .caption .eyebrow{margin-bottom:8px}@media(min-width:700px){#show{max-width:1200px;margin:auto}.scenery{background-size:auto 120%;background-color:#02040c}.letter{left:25%;right:25%}}@media(max-height:700px){.opening{top:14%}.opening h1{font-size:30px}.opening>p:not(.eyebrow){margin:12px 0}.primary{margin-top:18px}.caption{top:13%}.caption .eyebrow{margin-bottom:9px}.letter{bottom:108px;padding:12px;max-height:32%}.letter h2{font-size:21px}header{top:20px}header>span{font-size:8px;letter-spacing:1px}}@media(prefers-reduced-motion:reduce){*{transition:none!important}.scenery{transform:none!important}}

/* Reserve platform music and brand positions. */
header{right:65px}footer{bottom:max(38px,calc(env(safe-area-inset-bottom) + 30px))}.letter{bottom:130px}.opening h1{overflow-wrap:anywhere}#show:not([data-stage="0"]) .opening{visibility:hidden}.caption{max-height:27%;overflow-y:auto;pointer-events:auto}.caption h2{font-size:clamp(20px,4vw,34px)}
