:root {
  --acid: #e9fb64;
  --white: #f3f6fc;
  --line: #a9bedc42;
  font-family: "Microsoft YaHei","PingFang SC","Noto Sans SC",system-ui,sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { min-height: 100%; background: #060b14; }
body { position: relative; isolation: isolate; margin: 0; min-height: 100svh; color: var(--white); background: #060b14; }
button { min-height: 46px; font: inherit; font-weight: 650; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
button:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
button, button svg { transition: background-color .15s, color .15s, border-color .15s, transform .15s; }
button:active { transform: translateY(1px); }
svg { display: block; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
[hidden] { display: none !important; }
.landscape,.shade,.shock { position: fixed; inset: 0; pointer-events: none; }
.landscape { z-index: -1; overflow: hidden; }
.sky-image { width: 100%; height: 100%; object-fit: cover; object-position: center 65%; }
.shade { background: linear-gradient(180deg,#0206114f 0%,#0409110d 50%,#04071090 100%); }
body:is([data-state=gate],[data-state=verifying]) { background: #000; }
body:is([data-state=gate],[data-state=verifying]) .masthead { display: none; }
body:not([data-state=reveal]) .landscape { display: none; }
.masthead { position: absolute; z-index: 1; top: clamp(21px,4vw,45px); left: clamp(20px,4.7vw,78px); display: flex; align-items: center; gap: 11px; user-select: none; }
.emblem { width: 31px; height: 32px; display: grid; place-items: center; background: var(--acid); color: #0a1014; clip-path: polygon(18% 0,100% 0,100% 79%,80% 100%,0 100%,0 19%); }
.emblem svg { width: 21px; height: 24px; fill: currentColor; stroke: none; }
.masthead b { font-size: 1.32rem; font-weight: 850; letter-spacing: .12em; }
.brand-en { font: 700 .72rem/1.2 "Consolas",monospace; letter-spacing: .15em; color: #c0ccd8; border-left: 1px solid #8d9db17a; padding-left: 11px; }
main { min-height: 100svh; display: grid; place-items: center; padding: 88px 20px 68px; overflow: clip; }
dialog { position: fixed; inset: 0; width: min(438px,calc(100vw - 36px)); max-width: none; max-height: calc(100svh - 30px); margin: auto; padding: 0; overflow: auto; color: var(--white);
  background: linear-gradient(150deg,#17212ef7,#0a121dfc 62%); border: 1px solid #869bb560; border-top: 2px solid #c8d5dfac; border-radius: 12px; box-shadow: 0 32px 90px #0009,0 1px 0 #dce6f11a inset;
}
dialog::backdrop { background: #03091616; }
#gate { --orange: #ff9000; width: min(750px,calc(100vw - 36px)); color: #fff; background: #000; border: 1px solid #313131; border-radius: 2px; box-shadow: 0 0 40px 5px #ffffff20; }
#gate[open] { animation: gate-in .24s ease-out both; }
#gate::backdrop { background: #000; }
.gate-language { position: absolute; top: 8px; left: 10px; display: inline-flex; align-items: center; height: 36px; padding: 0 4px; gap: 4px; color: #c6c6c6; }
.gate-language svg { width: 16px; height: 16px; pointer-events: none; }
.gate-language select { appearance: none; font: inherit; font-size: .875rem; color: inherit; background: #000; border: 0; padding: 8px 17px 8px 3px; cursor: pointer; }
.gate-language .chevron { width: 12px; height: 12px; margin-left: -20px; }
.gate-language select:focus-visible,#gateNotice summary:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.gate-body { display: grid; justify-items: center; padding: 60px 36px 31px; text-align: center; }
.gate-wordmark { display: inline-flex; align-items: center; gap: 3px; color: #fff; font: 800 clamp(2rem,5vw,2.65rem)/1 Arial,Helvetica,sans-serif; letter-spacing: -.065em; }
.gate-wordmark span { display: inline-block; padding: 1px 6px 4px 4px; color: #050505; background: var(--orange); border-radius: 4px; }
h1 { margin: 0; font-weight: 850; }
.gate-body h1 { margin: 21px 0 17px; font-size: clamp(1.8rem,5.2vw,2.5rem); line-height: 1.25; letter-spacing: -.02em; }
#gateNotice { width: 100%; text-align: center; }
#gateNotice summary { display: inline-flex; list-style: none; cursor: pointer; padding: 8px 22px; border: 1px solid #686868; border-radius: 30px; color: #ccc; font-size: .9rem; line-height: 1.4; }
#gateNotice summary::-webkit-details-marker { display: none; }
#gateNotice summary:hover,#gateNotice[open] summary { border-color: var(--orange); color: #fff; }
#noticeText { margin: 13px auto 0; color: #c6c6c6; font-size: .94rem; line-height: 1.55; }
#question { max-width: 580px; margin: 23px 0 0; color: #ccc; font-size: clamp(1.04rem,2.4vw,1.25rem); line-height: 1.5; text-wrap: balance; }
.choices { display: grid; width: min(100%,296px); gap: 10px; margin-top: 36px; }
#gate .choices button { min-height: 49px; padding: 9px 16px; border: 1px solid #767676; border-radius: 40px; color: #dedede; font-size: .99rem; font-weight: 700; background: transparent; }
#gate .choices button:hover,#gate .choices button:focus-visible { border-color: var(--orange); color: #fff; background: #171006; }
.gate-foot { margin-top: 32px; display: inline-flex; align-items: center; gap: 10px; color: #aaa; font: .86rem Arial,sans-serif; }
.gate-foot b { padding: 2px 4px; border: 1px solid #656565; border-radius: 2px; font-size: .78rem; letter-spacing: .02em; }
body[data-state=verifying] :is(.gate-body,.gate-language) { visibility: hidden; }
#verification { position: absolute; inset: 0; padding: 22px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
#verification svg { width: 42px; height: 42px; color: var(--orange); }
#verificationText { max-width: 30em; margin: 18px 0; font-size: clamp(1.12rem,2.8vw,1.5rem); line-height: 1.5; font-weight: 650; text-wrap: balance; }
#verificationText:focus { outline: none; }
.verification-bar { width: 120px; height: 3px; overflow: hidden; border-radius: 2px; background: #37312b; }
.verification-bar::after { display: block; content: ""; height: 100%; background: var(--orange); transform-origin: left; animation: verifying-bar .5s ease-out both; }
@keyframes verifying-bar { from { transform: scaleX(.04); } to { transform: scaleX(1); } }
.secondary { border: 1px solid; border-radius: 5px; }
.secondary { padding: 0 20px; background: #131f2b; border-color: #44515f !important; color: #c6d1dd; font-size: .95rem; }
.secondary:hover,.ending-actions button:hover { background: #263644; border-color: #a2b3c1 !important; }
.ending { container-type: inline-size; width: min(842px,calc(100vw - 28px)); padding: clamp(24px,4.4vw,56px) clamp(16px,5vw,64px) clamp(22px,4vw,44px); border: 1px solid #809ebc; border-top: 4px solid var(--acid); border-radius: 10px; background: linear-gradient(125deg,#0e1d2cf5,#091323ec 74%); box-shadow: 0 32px 100px #02060cbd,0 0 45px #2280db35; transform-origin: 50% 55%; }
.ending::backdrop { background: #03091632; }
.close-popup { position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 40px; min-height: 40px; border: 0; border-radius: 50%; color: #d2dce6; background: transparent; }
.close-popup:hover { background: #ffffff18; }.close-popup svg { width: 20px; height: 20px; }
.recipient { display: flex; align-items: center; gap: 14px; margin: 0 0 7px; font-size: clamp(1.5rem,6cqw,2.5rem); line-height: 1.4; font-weight: 750; }
.recipient span { width: 32px; height: 4px; background: var(--acid); transform: skewX(-23deg); }
#revealTitle { font-size: min(21cqw,8.9rem); letter-spacing: -.07em; line-height: 1.16; white-space: nowrap; text-shadow: 0 6px 32px #07111f9c; }
#revealTitle span { color: var(--acid); }
#twist { color: #edf5ff; margin: 7px 0 0; line-height: 1.45; font-size: clamp(1.11rem,4.5cqw,1.8rem); font-weight: 700; }
h1:focus { outline: none; }
.message { margin-top: clamp(20px,3vw,27px); padding-left: 15px; border-left: 2px solid var(--acid); display: flex; align-items: flex-start; gap: 12px; }
.warn-symbol { display: grid; place-items: center; margin-top: .5em; width: 20px; height: 20px; flex-shrink: 0; color: var(--acid); border: 1.5px solid currentColor; border-radius: 50%; font: 700 .85rem/1 monospace; }
.message p { margin: 0; font-size: clamp(1.25rem,5.8cqw,2.16rem); line-height: 1.42; font-weight: 650; }
.message .phone { margin-top: 4px; color: #dce5ec; }
.phone b { color: var(--acid); font: 700 1.08em/1.1 "Consolas","Courier New",monospace; letter-spacing: .035em; }
.after-audio { min-height: 1.6em; margin-top: 15px; color: #c3d0de; font-size: clamp(.94rem,3.2cqw,1.1rem); line-height: 1.6; }
#speedLine { margin: 0; animation: quip-in .22s ease-out both; }
@keyframes quip-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.ending-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.ending-actions button { display: flex; align-items: center; justify-content: center; gap: 7px; font-size: .91rem; padding: 0 16px; border: 1px solid #526276; border-radius: 5px; color: #eef4fd; background: #101b29dd; }
.ending-actions svg { width: 16px; height: 16px; }.ending-actions .pause { stroke-width: 3; }.ending-actions .play { display: none; fill: currentColor; stroke: none; }
#toggleAudio[data-paused=true] .pause { display: none; }#toggleAudio[data-paused=true] .play { display: block; }
.exit-screen { text-align: center; padding: 32px; border: 1px solid var(--line); border-radius: 12px; background: #0a121eeb; }
.exit-icon { display: grid; place-items: center; color: #c8d2dd; }.exit-icon svg { width: 31px; height: 31px; }
.exit-screen h1 { margin: 12px 0 23px; font-size: 2rem; }
.shock { z-index: 2; overflow: hidden; }.shock canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.wave { display: none; position: absolute; left: 48%; top: 50%; width: 36vmin; height: 36vmin; border-radius: 50%; box-shadow: 0 0 28px 4px #b7e2ff66,inset 0 0 36px 9px #7db1e84f; }
body[data-state=reveal] .wave { display: block; opacity: 0; animation: impact .8s cubic-bezier(.18,.66,.34,1) both; }
.ending[open] { animation: pop-in .52s cubic-bezier(.18,.74,.22,1) both; }
body[data-state=reveal] .sky-image { animation: sky-strike 1.1s ease-out both; }
@keyframes impact { from { opacity: .7; transform: translate(-50%,-50%) scale(.15); } to { opacity: 0; transform: translate(-50%,-50%) scale(5); } }
@keyframes gate-in { from { opacity: .45; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes pop-in { 0% { opacity: .05; transform: translateY(28px) scale(.48); } 62% { opacity: 1; transform: translateY(-3px) scale(1.035); } 82% { transform: scale(.99); } 100% { opacity: 1; transform: none; } }
@keyframes sky-strike { 0% { filter: brightness(1.06); } 15% { filter: brightness(1.55) saturate(1.2); } 100% { filter: brightness(1); } }
@media(max-width:600px) {
  .masthead { gap: 8px; }.emblem { width: 25px; height: 27px; }.emblem svg { width: 17px; }.masthead b { font-size: 1.1rem; }.brand-en { font-size: .66rem; }
  .sky-image { object-position: 62% 60%; }#gate { width: calc(100vw - 24px); }.gate-body { padding: 55px 20px 26px; }
  .choices { margin-top: 26px; }.gate-foot { margin-top: 24px; }
  .ending { padding: 28px 14px 22px; }.message { gap: 8px; padding-left: 10px; }
}
@media(max-height:560px) {
  .masthead { top: 14px; }.gate-body { padding-block: 42px 18px; }.gate-body h1 { margin: 12px 0 8px; }#question { margin-top: 12px; }.choices { margin-top: 14px; gap: 7px; }.gate-foot { margin-top: 15px; }
}
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { animation: none !important; transition: none !important; } .shock { display: none; } }
