*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden;background:#427dcc;font-family:"Microsoft YaHei",sans-serif}.stage{position:relative;width:100%;height:100svh;overflow:hidden}video{width:100%;height:100%;object-fit:cover;display:block}.brand{position:absolute;width:min(86vw,1320px);left:50%;top:50%;transform:translate(-50%,-50%);pointer-events:none;transition:width 1.1s cubic-bezier(.2,.7,.2,1),left 1.1s,top 1.1s,transform 1.1s;filter:drop-shadow(0 8px 15px #163c7020)}.started .brand{width:260px;left:22px;top:4px;transform:translate(0,-24%)}.prompt{position:absolute;bottom:6%;left:50%;transform:translateX(-50%);border:1px solid #ffffff70;border-radius:40px;background:#164f9129;backdrop-filter:blur(12px);padding:13px 24px;color:white;font-size:13px;letter-spacing:2px;cursor:pointer;transition:opacity .35s}.prompt span{display:inline-block;margin-left:12px;animation:down 1.5s infinite}.started .prompt{opacity:0;pointer-events:none}.entries{position:absolute;inset:0;opacity:0;pointer-events:none;transition:opacity .8s}.ready .entries{opacity:1;pointer-events:auto}.portal{position:absolute;top:68%;left:25%;transform:translate(-50%,25px);display:flex;align-items:center;gap:24px;white-space:nowrap;color:#194a8c;text-decoration:none;font-size:clamp(14px,1.3vw,21px);font-weight:700;background:linear-gradient(#fff,#dfedff);border:2px solid white;border-radius:18px;padding:22px 26px;box-shadow:0 7px 0 #729ed9,0 15px 32px #123d7c45;transition:transform .45s,box-shadow .2s}.portal:nth-child(2){left:75%}.ready .portal{transform:translate(-50%,0)}.portal:hover{transform:translate(-50%,-7px);box-shadow:0 12px 0 #729ed9,0 22px 40px #123d7c55}.portal:active{transform:translate(-50%,5px);box-shadow:0 2px 0 #729ed9}.portal b{border-radius:50%;background:#ff416c;color:white;width:32px;height:32px;text-align:center;line-height:32px;font-size:21px}.portal:focus-visible,button:focus-visible{outline:3px solid #ff416c;outline-offset:6px}.replay{position:absolute;right:24px;top:24px;background:#ffffff25;border:1px solid #ffffff80;border-radius:50%;width:40px;height:40px;color:white;font-size:24px;cursor:pointer;display:none}.started .replay{display:block}.status{position:absolute;bottom:20px;left:50%;transform:translateX(-50%);color:white;font-size:13px}@keyframes down{50%{transform:translateY(5px)}}@media(max-width:650px){.started .brand{width:190px;left:10px}.portal{padding:15px 13px;gap:8px;font-size:12px;border-radius:13px;top:72%;left:24%}.portal:nth-child(2){left:76%}.portal b{width:23px;height:23px;line-height:23px;font-size:16px}.prompt{font-size:11px;white-space:nowrap}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition-duration:.01s!important}}
/* Pulse button trial: soft expanding rings, pill silhouette and hover glow. */
.portal{isolation:isolate;justify-content:center;min-width:250px;border-radius:999px;padding:20px 28px;color:#fff;background:linear-gradient(135deg,#ff4779,#ed2860);border:1px solid #ffffffaa;box-shadow:0 8px 28px #d82c6950,inset 0 1px 0 #ffffff66;transition:transform .4s,box-shadow .3s,background .3s}
.portal::before,.portal::after{content:"";position:absolute;inset:-2px;border:1px solid #ffd1df;border-radius:inherit;pointer-events:none;opacity:0;z-index:-1}
.ready .portal::before{animation:pulse-ring 2.8s ease-out infinite}.ready .portal::after{animation:pulse-ring 2.8s ease-out 1.4s infinite}.portal:nth-child(2)::before{animation-delay:.35s}.portal:nth-child(2)::after{animation-delay:1.75s}
.portal:hover{transform:translate(-50%,-4px) scale(1.035);background:linear-gradient(135deg,#ff638d,#f3316b);box-shadow:0 12px 38px #ec397e80,0 0 25px #ffb2ce66,inset 0 1px 0 #ffffff80}.portal:active{transform:translate(-50%,0) scale(.97);box-shadow:0 4px 16px #d82c6950}.portal b{background:#ffffff22;border:1px solid #ffffff55;transition:transform .3s}.portal:hover b{transform:rotate(45deg)}
@keyframes pulse-ring{0%{opacity:.65;transform:scale(1)}80%,100%{opacity:0;transform:scale(1.18,1.65)}}
@media(max-width:650px){.portal{min-width:0;padding:16px 14px;gap:8px;font-size:12px;max-width:46vw}.portal b{flex-shrink:0}}
@media(prefers-reduced-motion:reduce){.portal::before,.portal::after{animation:none!important}}
/* Reference button: blue pill, activity dot, rotating arrow and staggered label. */
.portal{min-width:230px;padding:13px 19px;gap:19px;border-radius:999px;border:1px solid #729aff;background:linear-gradient(180deg,#164bea,#0032bb);font-size:16px;font-weight:500;box-shadow:inset 0 1px 5px #a4c4ff80,0 5px 12px #00257565,0 10px 25px #00226345;color:#fff}
.portal::before,.portal::after{display:none}.portal b{position:relative;display:block;width:30px;height:26px;line-height:26px;background:transparent;border:0;color:#0747d3;font-size:24px;transform:none}.portal b::before{content:"";position:absolute;width:7px;height:7px;left:12px;top:10px;background:#14f14d;border-radius:50%;box-shadow:0 0 9px #25ff5c80;animation:activity 1.8s ease-in-out infinite;transition:opacity .18s,transform .25s}.portal b::after{content:"↗";position:absolute;inset:0;border-radius:999px;background:#d8ebff;opacity:0;transform:rotate(-100deg) scale(.4);transition:opacity .25s,transform .4s cubic-bezier(.2,.8,.2,1)}.portal:hover,.portal:focus-visible{background:linear-gradient(180deg,#2054ee,#0038c8);box-shadow:inset 0 1px 5px #a4c4ff80,0 5px 12px #00257565,0 10px 25px #00226345;transform:translate(-50%,0)}.portal:hover b,.portal:focus-visible b{transform:none}.portal:hover b::before,.portal:focus-visible b::before{opacity:0;transform:scale(.2);animation:none}.portal:hover b::after,.portal:focus-visible b::after{opacity:1;transform:rotate(0) scale(1)}.portal span i{display:inline-block;font-style:normal}.portal:hover span i,.portal:focus-visible span i{animation:letter-shift .45s both;animation-delay:calc(var(--i)*24ms)}.portal:active{transform:translate(-50%,1px) scale(.98)}@keyframes activity{0%,100%{opacity:1}50%{opacity:.25}}@keyframes letter-shift{0%,100%{transform:translateY(0);opacity:1}40%{transform:translateY(-3px);opacity:.5}}
.brand{transition:none}.started .brand{opacity:0;visibility:hidden}.pixel-title{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.corner-title{position:absolute;left:22px;top:22px;width:260px;height:45px;overflow:hidden;opacity:0;pointer-events:none}.corner-title img{position:absolute;width:100%;height:auto;top:-63px;left:0}.assembled .corner-title{opacity:1}@media(max-width:650px){.portal{min-width:0;font-size:12px;padding:10px 12px;gap:6px}.portal b{width:25px}.corner-title{left:12px;top:18px;width:200px;height:36px}.corner-title img{top:-48px}}@media(prefers-reduced-motion:reduce){.portal b::before,.portal span i{animation:none!important}}
/* Motion matched to the supplied recording: slide-in capsule + staggered reveal. */
.portal{overflow:hidden;min-width:0;padding:12px 53px 12px 19px;gap:0;transition:padding-right .34s cubic-bezier(.22,1,.36,1),box-shadow .2s,transform .2s;background:linear-gradient(100deg,#0926ae,#0754f1 65%,#003bc6)}
.portal b{position:absolute;right:4px;top:4px;bottom:4px;width:39px;height:auto;line-height:normal;display:grid;place-items:center}
.portal b::before{left:15px;top:calc(50% - 3.5px);transition:opacity .1s,transform .15s}
.portal b::after{content:"";inset:0;background:#d6eaff;opacity:1;transform:translateX(54px);transition:transform .32s cubic-bezier(.22,1,.36,1);border-radius:999px}
.portal b svg{position:relative;width:24px;height:24px;z-index:1;stroke:#1f5ad7;stroke-width:2;fill:none;opacity:0;transform:translateX(54px) rotate(90deg);transition:transform .36s cubic-bezier(.22,1,.36,1),opacity .16s}
.portal:hover,.portal:focus-visible{padding-right:65px;background:linear-gradient(100deg,#0926ae,#0754f1 65%,#003bc6)}
.portal:hover b::after,.portal:focus-visible b::after{transform:translateX(0);transition-delay:70ms}
.portal:hover b svg,.portal:focus-visible b svg{opacity:1;transform:translateX(0) rotate(0);transition-delay:70ms}
.portal span{display:block;line-height:1.3}.portal span i,.portal:hover span i,.portal:focus-visible span i{animation:none;transform:none}
@media(max-width:650px){.portal{padding:12px 35px 12px 12px}.portal:hover,.portal:focus-visible{padding-right:43px}.portal b{width:29px}.portal b::before{left:11px}.portal b svg{width:20px;height:20px}}
@media(prefers-reduced-motion:reduce){.portal b svg{transition:none}}
.corner-title img{top:-46px}@media(max-width:650px){.corner-title img{top:-34px}}
.corner-title{width:290px;height:175px;left:22px;top:12px;overflow:visible}
.corner-title img{width:100%;height:auto;left:0;top:0}
@media(max-width:650px){.corner-title{width:210px;height:128px;left:12px;top:10px}.corner-title img{top:0}}
/* Initial cover title centered before the pixel transition begins. */
.brand{top:50%;transform:translate(-50%,-50%)}
/* Match the marked side regions in the supplied frame; equal wide buttons. */
.portal,.portal:nth-child(2){width:clamp(300px,20.5vw,400px);height:clamp(76px,10.4vh,110px);top:73%;left:30%;padding:12px 66px 12px 22px;font-size:clamp(18px,1.55vw,25px)}
.portal:nth-child(2){left:70%}
.portal span{width:100%;text-align:center;white-space:nowrap}
.portal b{right:5px;top:5px;bottom:5px;width:48px}
.portal b::before{left:20px;top:calc(50% - 3.5px)}
.portal:hover,.portal:focus-visible{padding-right:66px}
.ready .portal{animation:button-arrive .9s cubic-bezier(.2,.75,.2,1) both;animation-delay:calc(var(--order,0)*.12s)}
@media(max-width:650px){.portal,.portal:nth-child(2){width:44vw;height:58px;top:73%;padding:8px 36px 8px 10px;font-size:clamp(12px,3vw,16px);left:27%}.portal:nth-child(2){left:73%}.portal:hover,.portal:focus-visible{padding-right:36px}.portal b{width:27px}.portal b::before{left:10px}}
html,body,.stage,.stage *{cursor:url("assets/pixel-cursor.webp") 5 2, auto}
.portal,.prompt,.replay{cursor:url("assets/pixel-cursor.webp") 5 2, pointer}
/* Use supplied pixel-art button artwork without stretching. */
.portal,.portal:nth-child(2){width:clamp(320px,20.5vw,440px);height:auto;aspect-ratio:3/1;padding:0;overflow:visible;background:none;border:0;border-radius:0;box-shadow:none;display:block}
.portal:hover,.portal:focus-visible{padding:0;background:none;box-shadow:none;transform:translate(-50%,0)}
.portal .button-art{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;transition:opacity .18s ease;pointer-events:none}
.portal .hover-art{opacity:0}.portal:hover .hover-art,.portal:focus-visible .hover-art{opacity:1}.portal:hover .button-art:not(.hover-art),.portal:focus-visible .button-art:not(.hover-art){opacity:0}
.portal span,.portal b{display:none!important}
@media(max-width:650px){.portal,.portal:nth-child(2){width:43vw;height:auto;aspect-ratio:3/1;padding:0}.portal:hover,.portal:focus-visible{padding:0}}
