@font-face{font-family:"GLT Terminus";src:url("/fonts/GLT-GonunneTerminus.otf") format("opentype");font-display:swap}
*{box-sizing:border-box}
html,body{margin:0;height:100%;overflow:hidden;background:#05070a;color:#f2ede2;
  font-family:"Noto Serif SC","Source Han Serif SC","Songti SC",SimSun,serif;-webkit-font-smoothing:antialiased;overscroll-behavior:none;touch-action:none;user-select:none}
#stage{position:fixed;inset:0;touch-action:none}
#gl{position:absolute;inset:0;width:100%;height:100%;display:block}
#fx{position:absolute;inset:0;pointer-events:none;mix-blend-mode:screen}
#fx.normal{mix-blend-mode:normal}
#fx canvas{position:absolute;inset:0;width:100%!important;height:100%!important;display:block}

#rail{position:fixed;right:22px;top:50%;transform:translateY(-50%);display:flex;flex-direction:column;gap:12px;z-index:5}
#rail button{all:unset;cursor:pointer;display:flex;align-items:center;justify-content:flex-end;gap:8px;font:400 15px "GLT Terminus",monospace;color:rgba(255,255,255,.5);
  text-shadow:0 1px 6px rgba(0,0,0,.6);transition:color .3s}
#rail button i{display:block;width:14px;height:2px;background:currentColor;transition:width .3s}
#rail button span{opacity:0;transition:opacity .3s;font:400 12px "Noto Serif SC",SimSun,serif;letter-spacing:.1em}
#rail button:hover span,#rail button[aria-current="true"] span{opacity:1}
#rail button[aria-current="true"]{color:#fff}
#rail button[aria-current="true"] i{width:30px}
body.paper #rail button{color:rgba(40,40,50,.5);text-shadow:none}
body.paper #rail button[aria-current="true"]{color:#22242c}

#card{position:fixed;left:34px;bottom:30px;z-index:5;pointer-events:none;text-shadow:0 2px 14px rgba(0,0,0,.65);transition:opacity .45s,transform .45s}
#card.off{opacity:0;transform:translateY(10px)}
#card .k{margin:0 0 4px;font:400 20px "GLT Terminus",monospace;letter-spacing:.12em;color:rgba(255,255,255,.82);display:flex;gap:14px;align-items:baseline}
#card .k b{font-weight:400;font-size:34px}
#card h1{margin:0;font-size:30px;font-weight:600;letter-spacing:.2em}
#card .e{margin:6px 0 0;font:400 11px ui-monospace,Consolas,monospace;letter-spacing:.28em;color:rgba(255,255,255,.6)}
#card .h{margin:10px 0 0;font-size:13px;letter-spacing:.12em;color:rgba(255,255,255,.78)}
body.paper #card{text-shadow:0 1px 10px rgba(255,255,255,.8);color:#262830}
body.paper #card .k,body.paper #card .e,body.paper #card .h{color:rgba(38,40,48,.78)}

#sound{all:unset;box-sizing:border-box;position:fixed;left:34px;top:64px;width:196px;z-index:5;cursor:pointer;text-align:center;font-size:11.5px;letter-spacing:.2em;padding:6px 12px;border:1px solid rgba(255,255,255,.22);
  border-radius:2px;color:rgba(244,240,230,.82);background:rgba(10,12,18,.56);backdrop-filter:blur(8px);box-shadow:0 8px 24px rgba(0,0,0,.32);transition:border-color .2s,background .2s,color .2s}
#sound:hover{color:#fff;border-color:rgba(255,255,255,.52)}
#sound[aria-pressed="true"]{color:#ffe6b0;border-color:rgba(255,226,166,.78);background:linear-gradient(rgba(255,226,166,.18),rgba(255,226,166,.18)),rgba(10,12,18,.66)}
body.paper #sound{color:#333;border-color:rgba(40,40,50,.4);background:rgba(255,255,255,.4)}
#arrow{position:fixed;left:50%;bottom:18px;transform:translateX(-50%);z-index:5;font-size:20px;color:rgba(255,255,255,.7);animation:bob 2.2s ease-in-out infinite;pointer-events:none;text-shadow:0 1px 8px rgba(0,0,0,.6)}
body.paper #arrow{color:rgba(40,40,50,.6);text-shadow:none}
@keyframes bob{0%,100%{transform:translate(-50%,0)}50%{transform:translate(-50%,7px)}}

#tip{position:fixed;z-index:6;pointer-events:none;padding:7px 12px 8px;background:rgba(14,13,12,.82);border:1px solid rgba(232,200,140,.5);border-radius:2px;
  font-size:13px;letter-spacing:.1em;line-height:1.55;max-width:300px;color:#f4ead6;transform:translate(16px,18px);backdrop-filter:blur(4px)}
#tip b{display:block;font:400 15px "GLT Terminus",monospace;color:#e8c88c;letter-spacing:.14em;margin-bottom:2px}
#tip small{display:block;font-size:11.5px;color:rgba(244,234,214,.72);letter-spacing:.06em}
#bubble{position:fixed;z-index:6;pointer-events:none;padding:10px 15px;background:#fffdf6;color:#2b2a30;border:2px solid #2b2a30;border-radius:14px 14px 14px 3px;
  font-size:14px;letter-spacing:.06em;line-height:1.6;max-width:260px;transform:translate(14px,-100%);box-shadow:4px 4px 0 rgba(43,42,48,.18)}

#panel{position:fixed;inset:0;z-index:8;display:flex;align-items:center;justify-content:center;background:rgba(6,8,12,.42);backdrop-filter:blur(3px);cursor:pointer}
#panel[hidden]{display:none}
#panel .in{width:min(520px,86vw);padding:30px 36px 22px;background:#f5eedd;color:#2d2924;border-radius:3px;box-shadow:0 30px 80px rgba(0,0,0,.5);
  background-image:linear-gradient(rgba(120,90,50,.07) 1px,transparent 1px);background-size:100% 30px;animation:rise .45s cubic-bezier(.2,.8,.2,1)}
#panel.dark .in{background:#0c0c10;color:#d9d6cf;background-image:none;border:1px solid rgba(255,255,255,.14)}
#panel .pk{margin:0 0 6px;font:400 15px "GLT Terminus",monospace;letter-spacing:.16em;color:#a0763c}
#panel h2{margin:0 0 14px;font-size:21px;letter-spacing:.14em;font-weight:600}
#panel .pb{font-size:14.5px;line-height:30px;letter-spacing:.05em;white-space:pre-wrap}
#panel .pc{margin:16px 0 0;font-size:11px;letter-spacing:.2em;opacity:.5;text-align:right}
@keyframes rise{from{opacity:0;transform:translateY(18px) scale(.97)}to{opacity:1;transform:none}}

#load{position:fixed;inset:0;z-index:9;display:flex;flex-direction:column;align-items:center;justify-content:center;background:#05070a;
  font:400 22px "GLT Terminus",monospace;letter-spacing:.2em;color:#cfd6dc;transition:opacity .8s;text-align:center;line-height:2}
#load span{font:400 12px "Noto Serif SC",SimSun,serif;letter-spacing:.3em;opacity:.6}
#load.off{opacity:0;pointer-events:none}
#nogl{position:fixed;inset:0;z-index:10;display:flex;align-items:center;justify-content:center;background:#05070a}
#nogl[hidden]{display:none}
@media (max-width:700px){#card{left:18px;bottom:20px}#card h1{font-size:22px}#rail{right:10px}}

/* 符号标记（少女终末旅行风格）：细线符号 + 终末文字；面板默认收起 */
.gl-g{all:unset;position:fixed;z-index:7;cursor:pointer;display:flex;align-items:center;gap:7px;color:rgba(255,255,255,.76);text-shadow:0 1px 6px rgba(0,0,0,.6);transition:color .2s,opacity .2s}
.gl-g svg{width:30px;height:30px;padding:5px;box-sizing:border-box;border:1px solid rgba(255,255,255,.28);border-radius:2px;background:rgba(10,12,18,.48);backdrop-filter:blur(6px);fill:none;stroke:currentColor;stroke-width:1.3;stroke-linecap:square;transition:border-color .25s,background .25s}
.gl-g i{font:400 12px "GLT Terminus",monospace;font-style:normal;letter-spacing:.14em;opacity:.75}
.gl-g:hover{color:#fff}.gl-g:hover svg{border-color:rgba(255,255,255,.6)}
.gl-g.on{color:#ffe6b0}.gl-g.on svg{border-color:rgba(255,226,166,.78);background:linear-gradient(rgba(255,226,166,.18),rgba(255,226,166,.18)),rgba(10,12,18,.66)}
.gl-g .gl-x{display:none}.gl-g.mute .gl-x{display:inline}.gl-g.mute{color:rgba(255,255,255,.45)}
.gl-snd{left:34px;top:26px}
.gl-wx,.gl-cam{bottom:22px;flex-direction:column-reverse;gap:3px}
.gl-cam{right:22px}.gl-wx{right:70px}
.gl-wx i,.gl-cam i{font-size:10px}
.gl-wx,.gl-cam{display:none}body.box-on .gl-wx,body.box-on .gl-cam{display:flex}
body:not(.ui-snd) #sound,body:not(.ui-snd) .bx-snd{display:none!important}
body:not(.ui-wx) .bx-wx{display:none!important}
body:not(.ui-cam) .bx-cam{display:none!important}
body.box-on .bx-cam{bottom:82px}body.box-on .bx-wx{bottom:82px}
body.building .gl-cam,body.building .gl-wx{bottom:164px}
.gl-fs{right:22px;top:46px;flex-direction:row-reverse}
.gl-pure{right:22px;top:84px;flex-direction:row-reverse}
.gl-pure .gl-eye-closed{display:none}
body.pure .gl-pure .gl-eye-open{display:none}
body.pure .gl-pure .gl-eye-closed{display:inline}
body.pure #card,body.pure #rail,body.pure #sound,body.pure .bx-snd,body.pure .bx-wx,body.pure .bx-cam,body.pure .bx-ui,body.pure #arrow,body.pure #tip,body.pure #bubble,body.pure #panel,body.pure .gl-corner,body.pure .gl-credits,body.pure .gl-g:not(.gl-pure){display:none!important}
body.pure .gl-pure{right:22px;top:26px;opacity:.68;color:rgba(255,255,255,.82);transition:opacity .25s,color .25s}
body.pure .gl-pure svg{border-color:rgba(255,255,255,.32);background:rgba(10,12,18,.42)}
body.pure .gl-pure:hover{opacity:1;color:#fff}
body.pure .gl-pure:hover svg{border-color:rgba(255,255,255,.68)}
.gl-corner{all:unset;position:fixed;top:0;right:0;width:52px;height:52px;z-index:8;cursor:pointer;clip-path:polygon(0 0,100% 0,100% 100%);background:linear-gradient(225deg,rgba(255,255,255,.075),rgba(255,255,255,.012) 72%);backdrop-filter:blur(10px) saturate(1.18);-webkit-backdrop-filter:blur(10px) saturate(1.18);color:rgba(255,255,255,.7);transition:background .25s,color .25s}
.gl-corner svg{display:block;width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:1.1;stroke-linecap:round}
.gl-corner .gl-ce{stroke:rgba(255,255,255,.22);stroke-width:1}
.gl-corner:hover,.gl-corner.on{color:#ffe6b0;background:linear-gradient(225deg,rgba(255,226,166,.15),rgba(255,255,255,.025) 74%)}
.gl-corner:hover .gl-ce,.gl-corner.on .gl-ce{stroke:rgba(255,230,176,.62)}
.gl-credits{position:fixed;top:122px;right:22px;z-index:9;width:min(368px,calc(100vw - 44px));padding:11px 12px 12px;border-radius:2px;background:rgba(12,16,24,.36);backdrop-filter:blur(16px) saturate(1.2);-webkit-backdrop-filter:blur(16px) saturate(1.2);border:1px solid rgba(255,255,255,.22);box-shadow:0 14px 36px rgba(0,0,0,.38);color:rgba(244,240,230,.92);font-size:12px;line-height:1.5;letter-spacing:.04em}
.gl-credits[hidden]{display:none}
.gl-cr-h{display:flex;align-items:center;justify-content:space-between;margin:0 0 9px;padding-bottom:6px;border-bottom:1px solid rgba(255,255,255,.16);font:400 11px "GLT Terminus",monospace;letter-spacing:.16em;color:rgba(255,230,176,.9)}
.gl-cr-x{all:unset;cursor:pointer;font-size:15px;line-height:1;padding:0 3px;opacity:.68;transition:opacity .2s}.gl-cr-x:hover{opacity:1}
.gl-cr-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.gl-cr-card{display:flex;flex-direction:column;align-items:center;gap:6px;padding:9px 8px 8px;border:1px solid rgba(255,255,255,.2);border-radius:2px;background:rgba(255,255,255,.035);text-align:center}
.gl-cr-av{width:38px;height:38px;display:flex;align-items:center;justify-content:center;border:1px solid rgba(255,255,255,.26);border-radius:2px;background:rgba(10,14,22,.22);color:rgba(255,230,176,.92)}
.gl-cr-av svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.45;stroke-linecap:round;stroke-linejoin:round}
.gl-cr-av .gl-cr-fill{fill:currentColor;stroke:none}
.gl-cr-av.gl-cr-m81 span{font:400 14px/1 "GLT Terminus",monospace;letter-spacing:.06em;color:rgba(255,230,176,.96);transform:translateX(.03em)}
.gl-cr-meta{display:flex;flex-direction:column;align-items:center;gap:2px;min-width:0}
.gl-cr-name{font-size:12px;font-weight:600;letter-spacing:.08em;color:rgba(248,244,234,.96)}
.gl-cr-role{font-size:10.5px;letter-spacing:.12em;color:rgba(226,220,204,.72)}
.gl-cr-m{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:8px;padding:6px 9px;border:1px solid rgba(255,255,255,.18);border-radius:2px;background:rgba(255,255,255,.03);font-size:11.5px;color:rgba(232,226,210,.82)}
.gl-cr-m a{color:#ffe6b0;text-decoration:none;border-bottom:1px solid rgba(255,230,176,.35);padding-bottom:1px;word-break:break-all}.gl-cr-m a:hover{border-bottom-color:#ffe6b0}
body.pure .gl-pure i{display:none}
body.paper .gl-g{color:rgba(40,40,50,.7);text-shadow:none}body.paper .gl-g svg{border-color:rgba(40,40,50,.35);background:rgba(255,255,255,.45)}
body.paper.pure .gl-pure{color:#262830}body.paper.pure .gl-pure svg{border-color:rgba(40,40,50,.35);background:rgba(255,255,255,.48)}
body.paper.pure .gl-pure:hover{color:#111}body.paper.pure .gl-pure:hover svg{border-color:rgba(40,40,50,.65)}
body.paper .gl-corner{background:linear-gradient(225deg,rgba(255,255,255,.26),rgba(255,255,255,.05) 72%);color:rgba(40,40,50,.75)}
body.paper .gl-corner .gl-ce{stroke:rgba(40,40,50,.24)}
body.paper .gl-credits{background:rgba(248,245,238,.52);border-color:rgba(40,40,50,.22);color:#262830;box-shadow:0 14px 36px rgba(0,0,0,.14)}
body.paper .gl-cr-h{border-bottom-color:rgba(40,40,50,.14);color:#7a5a26}
body.paper .gl-cr-card{border-color:rgba(40,40,50,.18);background:rgba(255,255,255,.28)}
body.paper .gl-cr-av{border-color:rgba(40,40,50,.24);background:rgba(255,255,255,.35);color:#7a5a26}
body.paper .gl-cr-av.gl-cr-m81 span{color:#5e4318}
body.paper .gl-cr-name{color:#22242c}body.paper .gl-cr-role{color:#5c5850}
body.paper .gl-cr-m{border-color:rgba(40,40,50,.18);background:rgba(255,255,255,.24);color:#4a463e}body.paper .gl-cr-m a{color:#7a5a26;border-bottom-color:rgba(122,90,38,.4)}
#rail.fold button{transition:opacity .35s,color .3s}
#rail.fold button:not([aria-current="true"]){opacity:0;pointer-events:none}
#rail.fold button span{opacity:0!important}
#rail.fold.intro button[aria-current="true"] span{opacity:1!important}
#rail.fold:hover button{opacity:1;pointer-events:auto}
#rail.fold:hover button span{opacity:0!important}#rail.fold:hover button:hover span{opacity:1!important}
.gl-card-corner{all:unset;position:fixed;left:0;bottom:0;width:52px;height:52px;z-index:8;cursor:pointer;clip-path:polygon(0 0,0 100%,100% 100%);background:linear-gradient(45deg,rgba(255,255,255,.075),rgba(255,255,255,.012) 72%);backdrop-filter:blur(10px) saturate(1.18);-webkit-backdrop-filter:blur(10px) saturate(1.18);color:rgba(255,255,255,.7);transition:background .25s,color .25s}
.gl-card-corner[hidden]{display:none}
.gl-card-corner svg{display:block;width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:1.1;stroke-linecap:round}
.gl-card-corner .gl-ce{stroke:rgba(255,255,255,.22);stroke-width:1}
.gl-card-corner:hover,.gl-card-corner.on{color:#ffe6b0;background:linear-gradient(45deg,rgba(255,226,166,.15),rgba(255,255,255,.025) 74%)}
.gl-card-corner:hover .gl-ce,.gl-card-corner.on .gl-ce{stroke:rgba(255,230,176,.62)}
body.paper .gl-card-corner{background:linear-gradient(45deg,rgba(255,255,255,.26),rgba(255,255,255,.05) 72%);color:rgba(40,40,50,.75)}
body.paper .gl-card-corner .gl-ce{stroke:rgba(40,40,50,.24)}
body.pure .gl-card-corner{display:none!important}
@media (max-width:700px){.gl-snd{left:14px;top:14px}.gl-corner,.gl-card-corner{width:44px;height:44px}.gl-credits{top:116px;right:10px;width:min(320px,calc(100vw - 20px))}.gl-fs{right:10px;top:42px}.gl-pure{right:10px;top:78px}body.pure .gl-pure{right:10px;top:14px}#sound{left:14px;top:50px;width:170px}.gl-cam{right:10px}.gl-wx{right:56px}body.box-on #card{bottom:78px;max-width:calc(100vw - 36px)}}
