/* 首页 v5：真网页。固定深色，不跟系统切浅色。画面按 393×852 点设计，整块按屏宽缩放。 */
@font-face { font-family: 'XgSong'; src: url('XgSong.woff2') format('woff2'); font-weight: 200 900; font-display: block; }
:root { color-scheme: dark; }
html, body { margin: 0; padding: 0; height: 100%; background: #000; overflow: hidden; overscroll-behavior: none; }
body { position: fixed; inset: 0; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
#stage { position: fixed; inset: 0; overflow: hidden; background: #000; }
#pg { position: absolute; left: 0; top: 0; width: 393px; height: 852px; overflow: hidden; background: #160a08; transform-origin: 0 0; --uy: 0px; --hy: 0px; }
.ab { position: absolute; display: block; pointer-events: none; }
img.ab, video.ab { max-width: none; }
svg.ab { overflow: visible; }
canvas.ab { background: transparent; }
video.ab { object-fit: fill; opacity: 0; transition: opacity .35s linear; }
video.ab.on { opacity: 1; }

/* 法阵：自己匀速转，一圈 8.75 秒（英雄视频两圈） */
@keyframes fz { from { transform: rotateX(67deg) rotateZ(0deg); } to { transform: rotateX(67deg) rotateZ(360deg); } }
#faz img { position: absolute; left: 0; top: 0; width: 272px; height: 272px; max-width: none; transform-origin: 50% 50%; animation: fz 8.75s linear infinite; will-change: transform; }
.paused #faz img { animation-play-state: paused; }

/* 按钮：手指压下去缩一点，外面一圈光 */
.disc { transition: transform .1s ease-out; will-change: transform; transform-origin: 50% 50%; }
.disc.press { transform: scale(.93); transition-duration: .06s; }
.hit { pointer-events: auto; border-radius: 50%; cursor: pointer; outline: none; touch-action: manipulation; }
.hold { border-radius: 50%; opacity: 0; transition: opacity .12s linear; }
.hold.press { opacity: 1; transition-duration: .05s; }
@keyframes ring { from { transform: scale(.92); opacity: 1; } to { transform: scale(1.38); opacity: 0; } }
.ring { border-radius: 50%; animation: ring .5s cubic-bezier(.2, .7, .3, 1) forwards; }

/* 「即将开放」提示层：点任意处关 */
#tip { pointer-events: auto; left: 0; top: 0; width: 100%; height: 100%; z-index: 200; background: rgba(3, 2, 2, .58); opacity: 0; visibility: hidden; transition: opacity .16s linear, visibility 0s linear .16s; cursor: pointer; }
#tip.on { opacity: 1; visibility: visible; transition: opacity .16s linear; }
#tip > svg { transform: scale(.94); transition: transform .2s cubic-bezier(.2, .8, .3, 1.2); }
#tip.on > svg { transform: scale(1); }

/* 11-18 接入：按钮流光（盘面上那层画布，用加亮叠上去；不支持 plus-lighter 的浏览器退回 screen） */
canvas.flow { mix-blend-mode: screen; mix-blend-mode: plus-lighter; }

/* 11-18 接入：名片、消息、设置、底部小图标、面板 */
.ui { pointer-events: auto; -webkit-tap-highlight-color: transparent; outline: none; }
#card, #gear, #mail { transition: transform .1s ease-out; transform-origin: 50% 50%; }
#card.press { transform: scale(.97); } #gear.press, #mail.press { transform: scale(.92); }
.dk { transition: background-color .12s; border-radius: 10px; }
.dk.press { background: radial-gradient(closest-side, rgba(96,236,196,.22), rgba(96,236,196,0)); }
.pop { background: rgba(2, 5, 5, .55); opacity: 0; visibility: hidden; transition: opacity .16s linear, visibility 0s linear .16s; }
.pop.on { opacity: 1; visibility: visible; transition: opacity .16s linear; }
.pop .sheet { position: absolute; transform: translateY(-6px); transition: transform .2s cubic-bezier(.2, .8, .3, 1.1); }
.pop.on .sheet { transform: none; }
.pop .btn { position: absolute; cursor: pointer; transition: transform .08s ease-out; }
.pop .btn.press, .pop .row.press { transform: scale(.96); }
#pfName { position: absolute; box-sizing: border-box; margin: 0; padding: 0 12px; border: 1px solid rgba(201, 164, 90, .72); border-radius: 8px;
  background: linear-gradient(#020202, #14100c); color: #f3e6c8; caret-color: #e2bd78; outline: none; -webkit-appearance: none; appearance: none;
  font: 800 17px XgSong, 'Songti SC', STSong, 'Noto Serif CJK SC', 'Source Han Serif SC', SimSun, serif; letter-spacing: .06em;
  -webkit-user-select: text; user-select: text; box-shadow: inset 0 1px 3px rgba(0, 0, 0, .8); }
#pfName::placeholder { color: rgba(201, 174, 120, .45); }
#pfName:focus { border-color: #e2bd78; box-shadow: inset 0 1px 3px rgba(0, 0, 0, .8), 0 0 0 1px rgba(226, 189, 120, .25), 0 0 10px rgba(83, 224, 184, .25); }

/* 开屏：法阵慢转 */
@keyframes spin { to { transform: rotate(360deg); } }
