html,body{overscroll-behavior:none}.touch-wrap{display:flex;flex-direction:column;min-height:100dvh;max-width:980px;margin:0 auto;padding-bottom:env(safe-area-inset-bottom);user-select:none;-webkit-user-select:none}.touch-top{display:flex;align-items:center;gap:10px;padding:8px 10px}.touch-title{font-weight:700;letter-spacing:.14em;color:#7fe3c0;font-size:13px}.touch-top select{background:#131b30;color:#dfe7ff;border:1px solid #2a3a5e;border-radius:6px;padding:6px 8px;font:inherit}.touch-hpbar{display:flex;align-items:center;gap:10px;padding:0 10px 6px;font-size:13px;color:#9fb2d8}.touch-hptrack{flex:1;height:8px;border-radius:4px;background:#1a2238;overflow:hidden}.touch-hpfill{height:100%;background:linear-gradient(90deg,#23c197,#7fe3c0);transition:width .2s}.touch-foes{white-space:nowrap}.touch-stage{position:relative;width:100%;-webkit-tap-highlight-color:transparent}.touch-stage canvas{display:block;width:100%;height:auto;pointer-events:none}.result-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:40;display:flex;align-items:center;justify-content:center;background:#0e101c73;padding:16px}.result-overlay .result-card{max-height:calc(100dvh - 48px);overflow-y:auto}.intro-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:35;display:flex;align-items:center;justify-content:center;background:#0e101c8c;pointer-events:none}.touch-stage.frozen canvas{filter:grayscale(.5) brightness(.92);transition:filter .15s}.touch-frozen-badge{position:absolute;top:2px;left:50%;transform:translate(-50%);display:flex;align-items:center;gap:6px;padding:2px 9px;border-radius:999px;background:#0a0e1a73;border:1px solid rgba(74,107,160,.55);color:#9adcffd9;font-size:10.5px;font-weight:700;letter-spacing:.1em;white-space:nowrap;pointer-events:none}.touch-frozen-dot{width:8px;height:8px;border-radius:50%;background:#9adcff;animation:touch-pulse 1s infinite alternate}.touch-chargetrack{width:70%;height:8px;border-radius:4px;background:#1a2238;overflow:hidden}.touch-chargefill{height:100%;background:linear-gradient(90deg,#7dd3fc,#c9b2ff)}.touch-chargefill.full{background:linear-gradient(90deg,#ffd166,#ff9d5c);animation:touch-pulse .4s infinite alternate}@keyframes touch-pulse{0%{opacity:.7}to{opacity:1}}.touch-controls{display:flex;gap:10px;padding:4px 10px 10px}.touch-controls.lefty{flex-direction:row-reverse}.touch-focusbtn,.touch-glyphbtn{font:inherit;flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-height:74px;border-radius:14px;border:1px solid #2a3a5e;background:#121a2f;color:#dfe7ff;padding:10px}.touch-glyphbtn{flex-direction:row;border-color:#8f5f2f;background:#221a10;color:#ffe9b0;font-weight:700}.touch-glyphbtn:disabled{opacity:.45}.touch-focusbtn.ready{border-color:#ffd166;background:#2c2010;color:#ffe9b0;animation:touch-pulse .6s infinite alternate}.touch-btnlabel{font-size:14px;font-weight:700;letter-spacing:.08em}.touch-btnlabel.dim{color:#6d7ea6}.touch-gaugetrack{width:90%;height:7px;border-radius:4px;background:#1a2238;overflow:hidden}.touch-gaugefill{height:100%;background:linear-gradient(90deg,#eba81f,#ffd166)}.touch-pad{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-height:170px;margin:0 10px 10px;border-radius:16px;border:1.5px dashed #2f4066;background:radial-gradient(ellipse at center,#1c28468c,#121a2f59);touch-action:none;-webkit-tap-highlight-color:transparent;user-select:none;-webkit-user-select:none}.touch-pad:active{border-color:#4a6ba0;background:radial-gradient(ellipse at center,#26365cb3,#121a2f66)}.touch-pad.charging{border-color:#ffd166;box-shadow:0 0 18px #ffd16626 inset}.touch-pad-cross{font-size:34px;color:#3d568a;line-height:1}.touch-pad-hint{color:#6d7ea6;font-size:12.5px;text-align:center;padding:0 14px}.touch-pad.charging .touch-pad-hint{color:#ffd166;font-weight:700}.touch-custom{flex:1;display:flex;flex-direction:column;gap:8px;padding:8px 10px 14px}.touch-custom .touch-customrow{margin-top:auto}.touch-customtop{display:flex;align-items:baseline;gap:12px}.touch-label{font-weight:700;letter-spacing:.1em;font-size:12.5px;color:#ffd166}.touch-timer{font-family:Space Mono,monospace;color:#ff9db0;font-size:14px}.touch-ki{margin-left:auto;font-size:13px;color:#9fb2d8}.touch-hand{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;padding:2px 0 6px}.touch-card{position:relative;display:flex;flex-direction:column;align-items:center;gap:3px;padding:10px 6px;border-radius:10px;border:1px solid #2a3a5e;background:#121a2f;color:#dfe7ff;font:inherit}.touch-card.selected{border-color:#ffd166;background:#23203a;box-shadow:0 0 0 1.5px #ffd166 inset,0 0 14px #ffd16673;transform:translateY(-3px)}.touch-card.disabled{opacity:.38}.touch-order{position:absolute;top:-9px;right:-7px;width:27px;height:27px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:linear-gradient(180deg,#ffd166,#eba81f);border:2px solid #191307;color:#191307;font-size:15px;font-weight:800;box-shadow:0 2px 6px #0006;z-index:2}.touch-hand{padding-top:10px;overflow:visible}.pick-strip{display:flex;align-items:center;flex-wrap:wrap;gap:6px;font-size:12px;color:#6d7ea6;min-height:26px}.pick-chip{display:inline-flex;align-items:center;gap:5px;padding:3px 9px;border-radius:999px;background:#2c2010;border:1px solid #8f5f2f;color:#ffe9b0;font-weight:700;font-size:12.5px}.pick-chip b{color:#ffd166}.touch-cardname{font-size:12px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}.touch-handsize{font-size:12px;font-weight:700;color:#c9b2ff}.touch-cardstats{font-size:11px;color:#8fa2c8}.touch-customrow{display:flex;gap:8px}.touch-tool{font:inherit;font-size:13px;padding:12px;border-radius:10px;border:1px solid #2f5f8f;background:#10233c;color:#9adcff;white-space:nowrap}.touch-tool:disabled{opacity:.4}.touch-send{font:inherit;flex:1;font-size:16px;font-weight:700;letter-spacing:.08em;padding:13px;border-radius:12px;border:1px solid #ffd166;background:linear-gradient(180deg,#4a3618,#2c2010);color:#ffe9b0}.deck-wrap{display:flex;flex-direction:column;min-height:100dvh;max-width:980px;margin:0 auto;user-select:none;-webkit-user-select:none}.deck-count{margin-left:auto;font-family:Space Mono,monospace;font-size:14px;font-weight:700;color:#ff9db0}.deck-count.full{color:#7fe3c0}.deck-filters{display:flex;gap:6px;padding:2px 10px 8px;overflow-x:auto;-webkit-overflow-scrolling:touch}.deck-filter{font:inherit;font-size:13px;padding:8px 14px;border-radius:999px;border:1px solid #2a3a5e;background:#121a2f;color:#9fb2d8;white-space:nowrap}.deck-filter.on{border-color:#ffd166;color:#ffe9b0;background:#2c2010}.deck-grid{flex:1;display:grid;grid-template-columns:repeat(3,1fr);gap:8px;align-content:start;padding:0 10px 10px;overflow-y:auto}.deck-card{min-height:108px}.deck-incount{position:absolute;top:4px;left:6px;font-size:12px;font-weight:700;color:#ffd166}.deck-cap{font-size:10px;color:#8fa2c8;font-weight:400}.rarity-pip{font-size:9.5px;letter-spacing:.08em;text-transform:uppercase;color:#6d7ea6}.rarity-pip.prime{color:#9adcff}.rarity-pip.apex{color:#ffd166}.deck-remove{position:absolute;top:2px;right:4px;width:30px;height:30px;border-radius:8px;border:1px solid #8f2f3f;background:#2c1016;color:#ff9db0;font-size:17px;line-height:1}.deck-footer{position:sticky;bottom:0;display:flex;flex-direction:column;gap:6px;padding:8px 10px calc(10px + env(safe-area-inset-bottom));background:linear-gradient(180deg,rgba(240,236,227,0),var(--bg, #f0ece3) 35%)}.deck-issue{margin:0;font-size:12px}.deck-issue.error{color:#ff9db0}.deck-issue.warn{color:#eba81f}.deck-actions{display:flex;gap:8px}.deck-actions .touch-send{flex:1}.deck-actions .touch-send:disabled{opacity:.45}.view-wrap{display:flex;flex-direction:column;min-height:100dvh;max-width:980px;margin:0 auto;padding-bottom:env(safe-area-inset-bottom)}.view-back{font-size:18px;min-width:44px;min-height:40px}.view-note{margin:0;padding:0 12px 10px;color:#6d7ea6;font-size:12.5px}.home-wrap{display:flex;flex-direction:column;min-height:100dvh;max-width:560px;margin:0 auto;padding:0 16px calc(16px + env(safe-area-inset-bottom));justify-content:center;gap:26px}.home-hero{text-align:center}.home-title{margin:0;font-size:34px;letter-spacing:.18em;color:#1d2a3f}.home-sub{margin:6px 0 0;color:#6d7ea6;font-size:13px}.home-menu{display:flex;flex-direction:column;gap:10px}.home-btn{font:inherit;font-size:17px;font-weight:700;letter-spacing:.05em;text-align:left;padding:16px 18px;border-radius:14px;border:1px solid #2a3a5e;background:#121a2f;color:#dfe7ff;display:flex;align-items:baseline;gap:10px}.home-btn.primary{border-color:#ffd166;background:linear-gradient(180deg,#4a3618,#2c2010);color:#ffe9b0}.home-btn-sub{margin-left:auto;font-size:12px;font-weight:400;color:#9fb2d8}.home-btn.primary .home-btn-sub{color:#cfa855}.mission-list{flex:1;overflow-y:auto;padding:0 12px 16px;display:flex;flex-direction:column;gap:6px}.mission-areaname{margin:14px 0 2px;font-size:14px;letter-spacing:.12em;color:#0e9c94}.mission-blurb{margin:0 0 6px;font-size:12px;color:#6d7ea6}.mission-card{font:inherit;display:flex;align-items:center;gap:10px;width:100%;padding:14px;margin-bottom:6px;border-radius:12px;border:1px solid #2a3a5e;background:#121a2f;color:#dfe7ff}.mission-name{font-weight:700;font-size:15px}.mission-meta{margin-left:auto;display:flex;align-items:center;gap:8px;font-size:12px;color:#8fa2c8}.threat-pips{display:inline-flex;gap:2px}.threat-pip{width:6px;height:10px;border-radius:2px;background:#26314e}.threat-pip.on{background:#e24a45}.mission-rank{min-width:30px;text-align:center;font-weight:700;font-size:16px}.mission-rank.new{color:#3d568a}.collection-grid{padding-bottom:16px}.sheet-scrim{position:fixed;top:0;right:0;bottom:0;left:0;background:#080a1273;display:flex;align-items:flex-end;z-index:20}.sheet{width:100%;max-width:980px;margin:0 auto;background:#10182b;border-radius:18px 18px 0 0;border:1px solid #2a3a5e;border-bottom:none;padding:8px 16px calc(16px + env(safe-area-inset-bottom));color:#dfe7ff;display:flex;flex-direction:column;gap:10px}.sheet-grip{width:42px;height:4px;border-radius:2px;background:#2f4066;margin:2px auto 4px}.sheet-head{display:flex;align-items:center;gap:12px}.sheet-name{margin:0 0 2px;font-size:18px}.sheet-elem{margin-left:8px;font-size:11px;text-transform:uppercase;letter-spacing:.08em}.sheet-desc{margin:0;font-size:13.5px;color:#b9c6e4}.sheet-stats{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:4px;font-size:13px}.sheet-stats li{display:flex;justify-content:space-between;border-bottom:1px solid #1c2740;padding:4px 0}.sheet-stats span{color:#8fa2c8}.look-list{display:flex;flex-direction:column;gap:8px;padding:0 12px}.look-card{font:inherit;display:flex;align-items:center;gap:12px;padding:14px;border-radius:12px;border:1px solid #2a3a5e;background:#121a2f;color:#dfe7ff;font-size:15px;font-weight:700}.look-card.on{border-color:#ffd166;box-shadow:0 0 0 1px #ffd166 inset}.look-swatches{display:inline-flex;gap:4px}.look-swatch{width:18px;height:18px;border-radius:50%;border:1px solid rgba(255,255,255,.25)}.look-current{margin-left:auto;color:#ffd166}.pvp-lobby{display:flex;flex-direction:column;gap:12px;padding:10px 14px;max-width:560px;width:100%;margin:0 auto}.pvp-lobby .versus-or{text-align:center;color:#6d7ea6;font-size:12px;letter-spacing:.1em}.pvp-room{font:inherit;font-size:16px;padding:13px 14px;border-radius:12px;border:1px solid #2a3a5e;background:#121a2f;color:#dfe7ff}.pvp-status{margin:0;text-align:center;color:#eba81f;font-size:13px}.pvp-net{margin-left:auto;display:inline-flex;align-items:center;gap:6px;font-family:Space Mono,monospace;font-size:12px;color:#6d7ea6}.net-dot{width:8px;height:8px;border-radius:50%;background:#6d7ea6}.net-dot.net-open{background:#23c197}.net-dot.net-reconnecting{background:#eba81f}.net-dot.net-closed{background:#e24a45}.pvp-stall{position:absolute;bottom:8px;left:50%;transform:translate(-50%);padding:3px 10px;border-radius:999px;background:#0a0e1ab3;color:#eba81f;font-size:11.5px;white-space:nowrap}.touch-hptrack.foe{transform:scaleX(-1)}.touch-hpfill.foe{background:linear-gradient(90deg,#e24a45,#ff8a7a)}.pvp-waitpick{margin:0;padding:18px 0;text-align:center;color:#9adcff;font-size:13.5px;animation:touch-pulse 1s infinite alternate}.touch-creator .creator{max-width:980px;margin:0 auto;padding:0 10px calc(16px + env(safe-area-inset-bottom))}@media(max-width:700px){.touch-creator .creator-body{display:flex;flex-direction:column;gap:12px}.touch-creator .creator-preview{position:sticky;top:0;z-index:5;flex-direction:row;align-items:center;gap:12px;padding:8px 10px}.touch-creator .creator-preview canvas{width:92px;flex:0 0 auto}.touch-creator .creator-preview{flex-wrap:wrap}.touch-creator .creator-name{flex:1 1 120px;min-width:0}.touch-creator .creator-actions{flex:1 0 100%;flex-direction:row;gap:6px}.touch-creator .creator-actions button{padding:10px 14px}.touch-creator .opt{padding:10px 14px;font-size:13px}.touch-creator .swatch{width:34px;height:34px}}.deck-card.unowned{opacity:.45;filter:grayscale(.7)}.deck-unowned-tag{font-size:10px;color:#eba81f}.shop-monbar{display:flex;align-items:center;gap:12px;padding:0 12px 8px;font-size:14px;color:#3a465f}.shop-filter{margin-left:auto;display:inline-flex;align-items:center;gap:6px;font-size:12.5px;color:#6d7ea6}.shop-flash{margin:0;padding:0 12px 6px;color:#0e9c94;font-size:13px;font-weight:600}.shop-section{padding:0 0 8px}.shop-h{margin:6px 12px 4px;font-size:13px;letter-spacing:.12em;color:#0e9c94}.shop-upgrades{display:grid;grid-template-columns:repeat(2,1fr);gap:8px;padding:0 12px}.shop-upgrade{font:inherit;display:flex;flex-direction:column;gap:3px;padding:12px;border-radius:12px;border:1px solid #2a3a5e;background:#121a2f;color:#dfe7ff;text-align:left}.shop-upgrade:disabled{opacity:.45}.shop-upname{font-weight:700;font-size:14px}.shop-uplevel{font-size:11.5px;color:#8fa2c8}.shop-upcost{font-size:13px;color:#ffd166;font-weight:700}.shop-grid{padding-top:4px}.shop-price{font-size:12px;font-weight:700;color:#ffd166}.shop-price.dim{color:#6d7ea6}.touch-rewards{display:flex;flex-direction:column;align-items:center;gap:6px;margin:4px 0}.acq-eyebrow{font-size:12px;font-weight:700;letter-spacing:.22em;color:#b8860b;margin-top:4px}.acq-row{display:flex;flex-wrap:wrap;gap:10px;justify-content:center}.acq-card{display:flex;flex-direction:column;align-items:center;gap:4px;min-width:104px;padding:12px 14px;border-radius:14px;border:2px solid #ffd166;background:linear-gradient(180deg,#2c2010,#191307);color:#ffe9b0;box-shadow:0 0 0 1px #ffd16659,0 0 22px #ffd16659;animation:acq-pop .45s cubic-bezier(.2,1.6,.4,1) both}.acq-card.rarity-prime{border-color:#9adcff;box-shadow:0 0 0 1px #9adcff59,0 0 22px #9adcff66}.acq-card.rarity-apex,.acq-card.rarity-relic{border-color:#ff9d5c;box-shadow:0 0 0 1px #ff9d5c73,0 0 26px #ff9d5c80}.acq-name{font-size:14px;font-weight:700}.acq-card .rarity-pip{color:#cfa855}@keyframes acq-pop{0%{transform:scale(.6);opacity:0}60%{transform:scale(1.08)}to{transform:scale(1);opacity:1}}.run-archetypes{display:flex;flex-direction:column;gap:8px;padding:0 12px 14px}.run-archetype{font:inherit;display:flex;flex-direction:column;gap:4px;text-align:left;padding:14px;border-radius:12px;border:1px solid #2a3a5e;background:#121a2f;color:#dfe7ff}.run-archetype b{font-size:15px}.run-archetype span{font-size:12.5px;color:#8fa2c8;line-height:1.45}.run-archetype.skip{border-style:dashed;color:#9fb2d8}.run-archetype:disabled{opacity:.45}.run-node-elite{border-color:#8f2f3f}.run-node-boss{border-color:#e24a45;background:#1f1016}.run-relic{border-color:#8f5f2f;background:#221a10;color:#ffe9b0}.run-status{font-size:13px}.run-backbtn{margin:0 12px 14px}.run-over{flex:1;display:flex;flex-direction:column;justify-content:center;gap:14px;padding:0 16px calc(20px + env(safe-area-inset-bottom));max-width:480px;width:100%;margin:0 auto}.run-over h2{text-align:center;margin:0;letter-spacing:.1em}.run-over .result-stats{list-style:none;margin:0;padding:0}.run-over .result-stats li{display:flex;justify-content:space-between;padding:8px 0;border-bottom:1px solid #d8d2c4;font-size:14px}.howto{flex:1;overflow-y:auto;padding:0 14px 20px}.howto h3{margin:16px 0 4px;font-size:14px;letter-spacing:.1em;color:#0e9c94}.howto p{margin:0;font-size:13.5px;line-height:1.55;color:#3a465f}@media(min-width:700px){.touch-hand{flex-wrap:wrap}.deck-grid{grid-template-columns:repeat(6,1fr)}}@media(max-width:700px){.touch-stage{aspect-ratio:960 / 360;overflow:hidden}.touch-stage canvas{margin-top:-12%}}
