/* 主神空间 UI：冷峻科技感（黑 / 青 / 等宽字 / 扫描线） */
:root {
  --bg: #05070c; --panel: rgba(8, 14, 24, .92); --line: #1d3a4a; --cyan: #4af0ff; --cyan2: #1aa8c0;
  --text: #cfe8f0; --dim: #6a8a98; --gold: #ffd84a; --red: #ff3355; --purple: #c07bff;
  --mono: "Consolas", "Cascadia Mono", "Microsoft YaHei", monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); font-family: var(--mono); overflow: hidden; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; touch-action: manipulation; overscroll-behavior: none; -webkit-text-size-adjust: 100%; }
/* iPad / 手机：连点不缩放、不选中文字、不弹长按菜单 */
button, .btn, #ui, #ui * { touch-action: manipulation; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
canvas#gl, canvas#overlay { position: fixed; inset: 0; width: 100%; height: 100%; display: block; image-rendering: pixelated; touch-action: none; }
canvas#overlay { pointer-events: none; }
#ui { position: fixed; inset: 0; pointer-events: none; }
#ui > * { pointer-events: auto; }
#ui .hud, #ui .hud * { pointer-events: none; }
button { font-family: var(--mono); cursor: pointer; }

.boot { position: fixed; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--bg); z-index: 99; }
.boot-title { font-size: 48px; letter-spacing: 16px; color: var(--cyan); text-shadow: 0 0 20px rgba(74,240,255,.6); }
.boot-sub { margin-top: 12px; color: var(--dim); letter-spacing: 4px; font-size: 13px; animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .3; } }

.scan::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,.025) 0 1px, transparent 1px 3px); }

/* ---------------- HUD ---------------- */
.hud { position: absolute; inset: 0; font-size: 13px; text-shadow: 0 1px 2px #000, 0 0 3px #000; }
.xpbar { position: absolute; top: 0; left: 0; right: 0; height: 8px; background: rgba(0,0,0,.6); border-bottom: 1px solid var(--line); }
.xpbar > i { display: block; height: 100%; background: linear-gradient(90deg, var(--cyan2), var(--cyan)); box-shadow: 0 0 10px var(--cyan); transition: width .1s; }
.lv { position: absolute; top: 12px; left: 14px; color: var(--cyan); font-size: 15px; }
.hud-left { position: absolute; top: 34px; left: 14px; line-height: 1.7; }
.hud-left b { color: #fff; }
.timer { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); text-align: center; }
.timer .t { font-size: 30px; color: #fff; letter-spacing: 2px; }
.timer .w { font-size: 12px; letter-spacing: 3px; }
.timer .bosscd { display: none; margin-top: 3px; color: #ff8a9a; font-size: 14px; letter-spacing: 2px; }
.timer .bosscd.urgent { color: var(--red); font-size: 18px; animation: blink .6s infinite; }
.bossbar { position: absolute; top: 74px; left: 50%; transform: translateX(-50%); width: min(560px, 70vw); text-align: center; color: var(--red); display: none; }
.bossbar .bar { height: 10px; background: rgba(0,0,0,.6); border: 1px solid #5a1020; margin-top: 3px; }
.bossbar .bar > i { display: block; height: 100%; background: linear-gradient(90deg, #a01030, var(--red)); }
.rules { position: absolute; top: 12px; right: 14px; width: 260px; }
.rule { margin-bottom: 8px; }
.rule .lbl { display: flex; justify-content: space-between; }
.rule .bar { height: 5px; background: rgba(0,0,0,.6); margin-top: 2px; }
.rule .bar > i { display: block; height: 100%; }
.skills { position: absolute; left: 14px; bottom: 14px; display: flex; gap: 6px; flex-wrap: wrap; max-width: 60vw; }
.slot { width: 46px; height: 54px; background: var(--panel); border: 1px solid var(--line); position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.slot img { width: 30px; height: 30px; image-rendering: pixelated; }
.slot .pips { font-size: 10px; color: var(--cyan); }
.slot.fused { border-color: var(--gold); box-shadow: 0 0 10px rgba(255,216,74,.5); }
.slot.passive { width: 36px; height: 42px; }
.slot.passive img { width: 22px; height: 22px; }
.recipes { position: absolute; right: 14px; bottom: 14px; width: 270px; font-size: 12px; }
.recipes .r { background: var(--panel); border: 1px solid var(--line); padding: 5px 8px; margin-top: 4px; }
.recipes .ok { color: var(--gold); }
.perf { position: absolute; left: 14px; top: 120px; color: #7f7; font-size: 12px; background: rgba(0,0,0,.6); padding: 6px 8px; display: none; white-space: pre; }
.hint { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); color: var(--dim); font-size: 11px; }

/* ---------------- 播报 ---------------- */
.toasts { position: absolute; top: 110px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 6px; pointer-events: none !important; }
.toast { padding: 6px 16px; background: rgba(4,8,14,.85); border-left: 3px solid currentColor; font-size: 14px; animation: tin .25s ease-out; white-space: nowrap; }
.toast.big { font-size: 18px; padding: 10px 22px; letter-spacing: 1px; box-shadow: 0 0 24px rgba(0,0,0,.6); }
@keyframes tin { from { opacity: 0; transform: translateY(-8px) scale(1.05); } }

/* ---------------- 模态 ---------------- */
.modal { position: absolute; inset: 0; background: rgba(2,4,8,.72); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.modal h2 { margin: 0; color: var(--cyan); letter-spacing: 6px; font-weight: normal; font-size: 26px; }
.modal .sub { color: var(--dim); margin: 6px 0 22px; min-height: 16px; }
.cards { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; padding: 0 16px; }
.card { width: 250px; min-height: 290px; background: var(--panel); border: 1px solid var(--line); padding: 16px; position: relative; text-align: left; color: var(--text); transition: transform .1s, border-color .1s; }
.card:hover { transform: translateY(-4px); border-color: var(--cyan); box-shadow: 0 0 24px rgba(74,240,255,.25); }
.card .key { position: absolute; top: 8px; right: 10px; color: var(--dim); font-size: 12px; }
.card .ic { width: 56px; height: 56px; image-rendering: pixelated; display: block; margin: 4px 0 10px; }
.card .nm { font-size: 19px; color: #fff; }
.card .kind { font-size: 11px; letter-spacing: 2px; margin: 4px 0 8px; }
.card .ds { font-size: 13px; line-height: 1.6; color: var(--text); }
.card .up { margin-top: 8px; color: var(--cyan); font-size: 13px; }
.card .fh { margin-top: 10px; color: var(--gold); font-size: 12px; }
.chips { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 4px; }
.chip { font-size: 10px; padding: 1px 6px; border: 1px solid currentColor; opacity: .85; }
.card.fusion { border-color: var(--gold); background: linear-gradient(160deg, rgba(60,40,0,.95), rgba(10,10,20,.95)); box-shadow: 0 0 30px rgba(255,216,74,.35); animation: glowp 1.2s infinite alternate; }
@keyframes glowp { to { box-shadow: 0 0 50px rgba(255,216,74,.6); } }
.card.fusion .nm { color: var(--gold); }
.row-btns { margin-top: 20px; display: flex; gap: 12px; }
.btn { background: transparent; color: var(--cyan); border: 1px solid var(--cyan2); padding: 9px 22px; font-size: 14px; letter-spacing: 2px; }
.btn:hover:not(:disabled) { background: rgba(74,240,255,.12); box-shadow: 0 0 14px rgba(74,240,255,.3); }
.btn:disabled { opacity: .35; cursor: default; }
.btn.gold { color: var(--gold); border-color: #a08020; }
.btn.red { color: var(--red); border-color: #801828; }
.btn.big { font-size: 20px; padding: 14px 40px; letter-spacing: 8px; }

/* ---------------- 主神空间 ---------------- */
.hub { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 30%, #0c1a28 0%, #04060a 70%); overflow: auto; }
.hub-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 28px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: rgba(4,6,10,.92); z-index: 2; }
.hub-title { font-size: 26px; letter-spacing: 10px; color: var(--cyan); text-shadow: 0 0 16px rgba(74,240,255,.5); }
.hub-title small { display: block; font-size: 11px; letter-spacing: 4px; color: var(--dim); text-shadow: none; }
.pts { font-size: 22px; color: var(--gold); }
.pts small { font-size: 12px; color: var(--dim); margin-right: 6px; }
.tabs { display: flex; gap: 4px; padding: 0 28px; border-bottom: 1px solid var(--line); position: sticky; top: 72px; background: rgba(4,6,10,.92); z-index: 2; }
.tab { padding: 10px 18px; color: var(--dim); background: none; border: none; border-bottom: 2px solid transparent; font-size: 15px; letter-spacing: 2px; }
.tab.on { color: var(--cyan); border-bottom-color: var(--cyan); }
.hub-body { padding: 24px 28px 60px; max-width: 1280px; margin: 0 auto; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.panel { background: var(--panel); border: 1px solid var(--line); padding: 16px; position: relative; }
.panel h3 { margin: 0 0 4px; font-weight: normal; font-size: 18px; color: #fff; }
.panel .meta { color: var(--dim); font-size: 12px; margin-bottom: 8px; }
.panel p { margin: 6px 0; font-size: 13px; line-height: 1.6; }
.panel .buff { color: var(--cyan); font-size: 12px; }
.world-card { border-top: 3px solid currentColor; }
.draw-zone { text-align: center; margin: 10px 0 26px; }
.upg { display: flex; gap: 12px; align-items: center; }
.upg img { width: 40px; height: 40px; image-rendering: pixelated; }
.lvl { color: var(--cyan); font-size: 12px; }
.locked { opacity: .5; }
.lore { font-size: 13px; line-height: 1.7; margin: 4px 0; }
.lore.no { color: #3a4a52; }
.hist { font-size: 12px; color: var(--dim); line-height: 1.8; }
.set-row { display: flex; align-items: center; gap: 14px; margin: 12px 0; }
.set-row input[type=range] { width: 220px; }
.keys { font-size: 13px; line-height: 2; color: var(--dim); }
.keys b { color: var(--cyan); display: inline-block; min-width: 110px; }

/* 抽取演出 */
.draw { position: absolute; inset: 0; background: rgba(0,0,0,.9); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.draw .roll { font-size: 56px; letter-spacing: 14px; color: #fff; min-height: 80px; text-shadow: 0 0 30px currentColor; }
.draw .roll-sub { color: var(--dim); letter-spacing: 6px; margin-top: 8px; }
.draw .reveal { margin-top: 26px; max-width: 640px; text-align: left; display: none; }
.draw .reveal.on { display: block; animation: tin .3s; }

/* 结算 */
.result .rank { font-size: 120px; line-height: 1; margin: 10px 0; text-shadow: 0 0 40px currentColor; }
.result table { border-collapse: collapse; margin: 10px auto; font-size: 13px; }
.result td { padding: 3px 14px; border-bottom: 1px solid #12222c; }
.result .earn { font-size: 26px; color: var(--gold); margin: 12px 0; }

/* 波次模式：计时 / 属性卡 / 主神商店 */
.timer .t.urgent { color: var(--red); animation: blink .5s infinite alternate; }
.card.stat { min-height: 200px; width: 200px; }
.card.stat img { width: 48px; height: 48px; image-rendering: pixelated; display: block; margin: 4px 0 10px; }
.shop { justify-content: flex-start; padding: 18px 20px; overflow-y: auto; background: rgba(2,4,8,.9); }
.shop-head { width: min(1280px, 100%); display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.shop-title { font-size: 24px; color: var(--cyan); letter-spacing: 5px; }
.shop-sub { color: var(--dim); font-size: 12px; margin-top: 4px; }
.shop-money { display: flex; gap: 18px; font-size: 16px; }
.shop-body { width: min(1280px, 100%); display: grid; grid-template-columns: 210px 1fr 300px; gap: 14px; align-items: start; }
@media (max-width: 1000px) { .shop-body { grid-template-columns: 1fr; } }
.shop-stats .srow, .shop-inv .srow, .fuse-box .srow { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; padding: 3px 0; border-bottom: 1px solid #10202a; }
.srow img, .wslot img, .shop-card img { image-rendering: pixelated; }
.srow img { width: 18px; height: 18px; vertical-align: middle; }
.shop-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.shop-card { background: var(--panel); border: 1px solid var(--line); padding: 12px; position: relative; display: flex; flex-direction: column; min-height: 250px; }
.shop-card.locked { border-color: var(--gold); box-shadow: 0 0 14px rgba(255,216,74,.25); }
.shop-card.empty { align-items: center; justify-content: center; color: var(--dim); }
.shop-card img { width: 44px; height: 44px; margin-bottom: 6px; }
.shop-card .key { position: absolute; top: 6px; right: 8px; color: var(--dim); font-size: 12px; }
.shop-card .nm { font-size: 17px; color: #fff; }
.shop-card .kind { font-size: 11px; letter-spacing: 2px; margin: 3px 0 6px; }
.shop-card .ds { font-size: 12px; line-height: 1.55; flex: 1; }
.shop-card .fh { color: var(--gold); font-size: 12px; margin-top: 6px; }
.shop-buy { display: flex; gap: 6px; margin-top: 10px; }
.shop-buy .btn { padding: 6px 10px; flex: 1; }
.shop-center .row-btns { margin-top: 12px; display: flex; justify-content: center; }
.fuse-box { margin-top: 12px; border-color: #5a4a10; }
.wslot { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); padding: 6px; margin: 5px 0; font-size: 13px; background: rgba(0,0,0,.25); }
.wslot img { width: 30px; height: 30px; }
.wslot.empty { color: var(--dim); justify-content: center; border-style: dashed; min-height: 30px; }
.btn.mini { padding: 3px 8px; font-size: 12px; letter-spacing: 0; }
.dim { color: var(--dim); font-size: 12px; }
.sets { margin-top: 12px; }
.setrow { font-size: 12px; line-height: 1.6; padding: 3px 0; border-bottom: 1px solid #10202a; }
.setrow .on { color: var(--gold); }
.setrow .dim { color: #4a5a64; }
.item-grid { display: flex; flex-wrap: wrap; gap: 6px; }
.item-ico { position: relative; width: 38px; height: 38px; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.3); cursor: help; }
.item-ico img { width: 28px; height: 28px; image-rendering: pixelated; }
.item-ico i { position: absolute; right: 2px; bottom: 0; font-style: normal; font-size: 11px; color: #fff; text-shadow: 0 0 3px #000; }
.char-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin-bottom: 18px; }
.char-card { background: var(--panel); border: 1px solid var(--line); padding: 10px 12px; cursor: pointer; text-align: left; color: var(--text); font-family: inherit; }
.char-card.on { box-shadow: 0 0 16px rgba(74,240,255,.35); border-color: var(--cyan); }
.char-card .nm { font-size: 15px; margin-bottom: 4px; display: flex; align-items: center; gap: 8px; }
.char-card .nm img { width: 26px; height: 26px; image-rendering: pixelated; }
.char-card .ln { font-size: 12px; line-height: 1.55; color: var(--dim); }
.mode-pick { display: flex; gap: 10px; justify-content: center; margin-bottom: 16px; }
.mode-pick .btn.on { background: rgba(74,240,255,.18); box-shadow: 0 0 14px rgba(74,240,255,.35); }

/* ---------------- v3：专属技能 / 选项面板 / 结算目标 ---------------- */
.active { position: absolute; left: 50%; bottom: 40px; transform: translateX(-50%); width: 120px; height: 46px; background: var(--panel); border: 1px solid var(--line); text-align: center; overflow: hidden; }
.active.ready { border-color: var(--cyan); box-shadow: 0 0 16px rgba(74,240,255,.45); }
.act-ic { position: relative; z-index: 1; font-size: 14px; color: #fff; margin-top: 5px; }
.act-k { position: relative; z-index: 1; font-size: 11px; color: var(--cyan); }
.act-cd { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(255,255,255,.08); }
.opts { display: flex; flex-direction: column; gap: 8px; width: min(620px, 92vw); max-height: 62vh; overflow-y: auto; }
.opt { display: flex; align-items: center; gap: 12px; background: var(--panel); border: 1px solid var(--line); padding: 10px 14px; color: var(--text); text-align: left; position: relative; }
.opt:hover:not(:disabled) { border-color: var(--cyan); box-shadow: 0 0 14px rgba(74,240,255,.25); }
.opt.off { opacity: .4; }
.opt img { width: 36px; height: 36px; image-rendering: pixelated; }
.opt .key { color: var(--dim); font-size: 12px; min-width: 26px; }
.opt-t { flex: 1; }
.opt .nm { font-size: 16px; color: #fff; }
.opt .ds { font-size: 12px; color: var(--dim); margin-top: 2px; line-height: 1.5; }
.opt .fh { font-size: 12px; color: var(--red); }
.opt .cost { color: #7dffb0; font-size: 16px; min-width: 50px; text-align: right; }
.goals { margin: 10px 0; width: min(520px, 90vw); }
.goal { display: grid; grid-template-columns: 1fr 160px 90px; gap: 10px; align-items: center; font-size: 13px; margin: 4px 0; }
.gbar { height: 6px; background: rgba(0,0,0,.6); border: 1px solid var(--line); }
.gbar > i { display: block; height: 100%; background: var(--gold); }
.ach { color: var(--gold); margin: 6px 0; font-size: 14px; }
.shop-card .diff { font-size: 11px; margin-top: 2px; }
.shop-tip { width: min(1280px, 100%); margin: -4px 0 12px; padding: 8px 12px; border: 1px solid #1a6a7a; background: rgba(10,40,50,.6); color: #9af0ff; font-size: 13px; }

/* ---------------- v3：可走动大厅 ---------------- */
.hub-hud { position: absolute; inset: 0; pointer-events: none !important; }
.hub-hud * { pointer-events: none; }
.hub-top { position: absolute; top: 12px; left: 14px; right: 14px; display: flex; justify-content: space-between; text-shadow: 0 1px 2px #000; }
.hub-top .cur { font-size: 15px; }
.hub-top .money { display: flex; gap: 18px; font-size: 16px; }
.hub-help { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); color: var(--dim); font-size: 12px; text-shadow: 0 1px 2px #000; }
.npc-say { position: absolute; transform: translate(-50%, -100%); background: rgba(4,10,16,.88); border: 1px solid var(--line); padding: 6px 10px; font-size: 13px; max-width: 280px; white-space: normal; text-align: center; }
.hub-panel { position: absolute; inset: 0; background: rgba(2,4,8,.78); display: flex; align-items: center; justify-content: center; }
.hub-panel .box { width: min(980px, 94vw); max-height: 86vh; overflow-y: auto; background: var(--panel); border: 1px solid var(--line); padding: 20px 24px; position: relative; }
.hub-panel .box h2 { margin: 0 0 4px; color: var(--cyan); font-weight: normal; letter-spacing: 4px; font-size: 24px; }
.hub-panel .close { position: absolute; top: 10px; right: 12px; }
.row { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid #10202a; }
.row img { width: 36px; height: 36px; image-rendering: pixelated; }
.row .grow { flex: 1; }
.row .t { font-size: 15px; color: #fff; }
.row .d { font-size: 12px; color: var(--dim); line-height: 1.5; }
.pill { display: inline-block; border: 1px solid currentColor; padding: 0 6px; font-size: 11px; margin-left: 6px; }
.factors { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; margin: 10px 0; }
.factor { border: 1px solid var(--line); padding: 8px 10px; background: rgba(0,0,0,.25); color: var(--text); text-align: left; font-family: inherit; }
.factor.on { border-color: var(--red); box-shadow: 0 0 12px rgba(255,51,85,.3); }
.gacha-res { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 12px 0; }
.gacha-res div { border: 1px solid var(--line); padding: 8px; font-size: 12px; text-align: center; min-height: 54px; }
.gacha-res .rare { border-color: var(--gold); color: var(--gold); box-shadow: 0 0 12px rgba(255,216,74,.3); }
.dialog { font-size: 15px; line-height: 1.8; margin: 10px 0 16px; color: #e8f8ff; }
.tabs2 { display: flex; gap: 6px; margin: 10px 0; flex-wrap: wrap; }
.tabs2 .btn.on { background: rgba(74,240,255,.18); }

/* ---------------- v3.1 标题画面 ---------------- */
.title-screen { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 46px; background: radial-gradient(ellipse at center, rgba(5,7,12,.15) 0%, rgba(5,7,12,.75) 80%); }
.title-logo { text-align: center; animation: titleIn 1.4s ease-out both; }
.title-main { font-size: clamp(44px, 9vw, 104px); font-weight: 900; letter-spacing: .25em; color: #e8fbff; text-shadow: 0 0 6px #4af0ff, 0 0 28px rgba(74,240,255,.7), 4px 4px 0 #0a2a3a; font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif; }
.title-sub { margin-top: 10px; font-size: clamp(13px, 2vw, 20px); letter-spacing: .6em; color: var(--cyan); opacity: .85; }
.title-menu { display: flex; flex-direction: column; gap: 10px; min-width: min(340px, 86vw); animation: titleIn 1.4s .3s ease-out both; }
.title-menu .btn { font-size: 17px; padding: 12px 18px; backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); }
.title-foot { position: absolute; bottom: 18px; color: var(--dim); font-size: 12px; letter-spacing: 2px; }
@keyframes titleIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
/* ---------------- 孵化室开蛋 ---------------- */
.egg-reveal { position: relative; text-align: center; padding: 18px 10px 14px; margin-bottom: 10px; border: 1px solid var(--gold); background: radial-gradient(circle, rgba(255,216,74,.15), transparent 70%); animation: eggPop .8s ease-out both; }
.egg-crack { width: 46px; height: 56px; margin: 0 auto 10px; border-radius: 50% 50% 46% 46% / 60% 60% 40% 40%; background: linear-gradient(#f4f4fa, #b8b8c8); box-shadow: 0 0 22px rgba(255,216,74,.7); animation: eggShake .5s ease-in-out 2, eggBurst .4s .9s ease-out forwards; }
.egg-prize { font-size: 18px; color: var(--gold); animation: titleIn .6s .9s ease-out both; }
@keyframes eggShake { 25% { transform: rotate(-14deg); } 75% { transform: rotate(14deg); } }
@keyframes eggBurst { to { transform: scale(1.6); opacity: 0; } }
@keyframes eggPop { from { transform: scale(.9); opacity: 0; } to { transform: none; opacity: 1; } }
/* ---------------- 触屏按键 ---------------- */
.touch-ui { position: fixed; inset: 0; pointer-events: none; z-index: 40; }
.touch-stick { position: absolute; left: 24px; bottom: 24px; width: 140px; height: 140px; border-radius: 50%; border: 2px solid rgba(74,240,255,.35); background: rgba(4,10,16,.25); pointer-events: auto; touch-action: none; }
.touch-stick i { position: absolute; left: 45px; top: 45px; width: 50px; height: 50px; border-radius: 50%; background: rgba(74,240,255,.45); }
.touch-btn { position: absolute; width: 76px; height: 76px; border-radius: 50%; border: 2px solid rgba(255,216,74,.5); background: rgba(4,10,16,.35); color: #fff; font-size: 14px; pointer-events: auto; touch-action: none; display: flex; align-items: center; justify-content: center; }
@media (max-width: 720px) { .hub-panel .box { width: 96vw !important; max-height: 88vh; } .gacha-res { grid-template-columns: repeat(3, 1fr); } }
