:root{--bg-deep: #141013;--panel-bg: rgba(24, 20, 29, .92);--panel-solid: #1e1926;--panel-border: #6b5b7b;--panel-highlight: #e7c973;--text-main: #f4eedf;--text-muted: #b3a8b8;--accent-green: #69c96c;--accent-red: #e05353;--accent-blue: #5eb9e6;--accent-orange: #f09543;--accent-purple: #b87cf0}*{box-sizing:border-box;user-select:none;-webkit-user-select:none}html,body{margin:0;padding:0;width:100%;height:100%;overflow:hidden;background:radial-gradient(circle at center,#241d2b,#100d14);color:var(--text-main);font-family:Microsoft YaHei,PingFang SC,Noto Sans SC,monospace,sans-serif}#game-shell{width:100vw;height:100vh;display:flex;align-items:center;justify-content:center;padding:8px}#stage{position:relative;width:min(100%,calc((100vh - 16px) * 16 / 9));aspect-ratio:16 / 9;background:#120f17;border:3px solid #4a3f55;box-shadow:0 18px 50px #000000b8,inset 0 0 0 2px #261f2e;overflow:hidden}#game-canvas{display:block;width:100%;height:100%;image-rendering:pixelated;image-rendering:crisp-edges;cursor:crosshair}#ui-layer{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none;display:flex;flex-direction:column;justify-content:space-between;padding:10px 12px;font-size:13px;line-height:1.35}.interactive{pointer-events:auto}.pixel-panel{background:var(--panel-bg);border:2px solid var(--panel-border);box-shadow:0 3px #0b090e,inset 0 0 0 1px #ffffff14;border-radius:3px}.pixel-btn{pointer-events:auto;background:#332a3e;color:var(--text-main);border:2px solid #79678c;box-shadow:0 2px #120d17;border-radius:3px;padding:4px 10px;font-size:12px;font-weight:700;cursor:pointer;transition:transform .06s,background .1s,border-color .1s;font-family:inherit}.pixel-btn:hover:not(:disabled){background:#443852;border-color:var(--panel-highlight)}.pixel-btn:active:not(:disabled){transform:translateY(1px);box-shadow:0 1px #120d17}.pixel-btn:disabled{opacity:.45;cursor:not-allowed}.pixel-btn.primary{background:#2e6d44;border-color:#77d484}.pixel-btn.primary:hover:not(:disabled){background:#388352}.pixel-btn.danger{background:#6c2a32;border-color:#d96b75}.pixel-btn.warn{background:#734b22;border-color:#f0aa53}.top-bar{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}.hud-group{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.stat-pill{display:inline-flex;align-items:center;gap:6px;padding:5px 9px}.badge{display:inline-flex;align-items:center;gap:4px;padding:2px 7px;border-radius:3px;font-size:11px;font-weight:700;background:#ffffff14;border:1px solid rgba(255,255,255,.16)}.badge.gold{color:#ffe28a;background:#e7c97329;border-color:#e7c97373}.badge.green{color:#9bf09d;background:#69c96c26;border-color:#69c96c73}.badge.fire{color:#ffb067;background:#f0954329;border-color:#f0954373}.badge.frost{color:#8ee2ff;background:#5eb9e629;border-color:#5eb9e673}.badge.wild{color:#d7a6ff;background:#b87cf029;border-color:#b87cf073}.badge.rarity-common{color:#a6f2a8;background:#69c96c24;border-color:#69c96c6b}.badge.rarity-rare{color:#84d2ff;background:#5eb9e629;border-color:#5eb9e680}.badge.rarity-epic{color:#dca6ff;background:#b87cf02e;border-color:#b87cf085}.badge.rarity-legendary{color:#ffe388;background:#f0aa5338;border-color:#ffe28a99}.hotbar-wrap{position:relative;display:flex;flex-direction:column;align-items:center;gap:5px}.hotbar-drawer{pointer-events:auto;display:flex;flex-wrap:wrap;justify-content:center;gap:5px;padding:6px 8px;max-width:min(92%,740px)}.hotbar{display:flex;align-items:center;gap:5px;padding:5px 7px;max-width:100%;overflow-x:auto}.hot-more-btn{pointer-events:auto;min-width:74px;padding:6px 8px;background:#332a44;border:2px solid #7d6b99;border-radius:3px;color:#ffe28a;font-size:11px;font-weight:700;cursor:pointer;font-family:inherit;white-space:nowrap}.hot-more-btn:hover,.hot-more-btn.active{border-color:var(--panel-highlight);background:#46395c}.tab-row{display:flex;gap:6px;flex-wrap:wrap}.hot-slot{pointer-events:auto;position:relative;min-width:72px;padding:4px 7px;background:#272030;border:2px solid #594b69;border-radius:3px;cursor:pointer;display:flex;flex-direction:column;align-items:flex-start;gap:2px;color:var(--text-main);font-family:inherit;text-align:left}.hot-slot:hover{border-color:#9886ad}.hot-slot.active{border-color:var(--panel-highlight);background:#382e46;box-shadow:0 0 0 1px #e7c97366}.hot-slot .slot-key{font-size:10px;color:var(--panel-highlight);font-weight:700}.hot-slot .slot-name{font-size:11px;font-weight:700;white-space:nowrap}.hot-slot .slot-count{position:absolute;top:2px;right:4px;font-size:10px;color:#9bf09d;font-weight:700}.controls-hint{font-size:11px;color:var(--text-muted);background:#0e0b12c7;padding:3px 10px;border-radius:3px;border:1px solid rgba(255,255,255,.1)}.tooltip-card{position:absolute;right:12px;bottom:84px;width:245px;padding:8px 10px;font-size:12px;pointer-events:none}.tooltip-card h4{margin:0 0 4px;font-size:13px;color:var(--panel-highlight)}.tooltip-card p{margin:2px 0;color:var(--text-muted);font-size:11px}.toast-banner{position:absolute;top:56px;left:50%;transform:translate(-50%);padding:5px 12px;font-size:12px;font-weight:700;color:#fff3c4;background:#221b2bf0;border:2px solid var(--panel-highlight);border-radius:3px;pointer-events:none;z-index:30}.hp-hearts{display:inline-flex;gap:2px;font-size:14px}.bar-outer{width:150px;height:10px;background:#14101a;border:1px solid #6b5b7b;border-radius:2px;overflow:hidden}.bar-fill{height:100%;transition:width .1s linear}.xp-fill{background:linear-gradient(90deg,#43b5e8,#7df2c8)}.boss-bar-wrap{position:absolute;top:48px;left:50%;transform:translate(-50%);width:min(360px,60%);padding:5px 10px;text-align:center}.boss-bar-outer{width:100%;height:10px;background:#1a0f14;border:1px solid #d96b75;margin-top:3px}.boss-bar-fill{height:100%;background:linear-gradient(90deg,#b8293d,#f06e53)}.combat-bar{display:flex;align-items:center;gap:8px;padding:6px 10px;flex-wrap:wrap;justify-content:center}.combat-chip{display:flex;align-items:center;gap:5px;background:#272031;border:1px solid #594b69;padding:3px 8px;border-radius:3px;font-size:11px}.combat-chip strong{color:var(--panel-highlight)}.modal-backdrop{pointer-events:auto;position:absolute;top:0;right:0;bottom:0;left:0;background:#09070dc2;display:flex;align-items:center;justify-content:center;padding:16px;z-index:40}.modal-box{width:min(760px,96%);max-height:92%;display:flex;flex-direction:column;background:var(--panel-solid);border:3px solid var(--panel-border);box-shadow:0 12px 40px #000c,inset 0 0 0 1px #ffffff14;border-radius:4px;overflow:hidden}.modal-header{display:flex;align-items:center;justify-content:space-between;padding:9px 14px;background:#2a2234;border-bottom:2px solid #554764}.modal-header h2{margin:0;font-size:15px;color:var(--panel-highlight)}.modal-body{padding:12px 14px;overflow-y:auto;display:flex;flex-direction:column;gap:10px}.modal-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:8px}.item-card{background:#282132;border:2px solid #4f425e;border-radius:3px;padding:8px 10px;display:flex;flex-direction:column;justify-content:space-between;gap:6px}.item-card.equipped{border-color:var(--accent-green);background:#23332b}.item-card h4{margin:0;font-size:13px;display:flex;align-items:center;justify-content:space-between;gap:4px}.item-card p{margin:0;font-size:11px;color:var(--text-muted)}.card-foot{display:flex;align-items:center;justify-content:space-between;gap:6px;margin-top:2px}.blessing-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.blessing-card{pointer-events:auto;background:#2a2135;border:2px solid #715e87;border-radius:4px;padding:12px;text-align:left;color:var(--text-main);cursor:pointer;display:flex;flex-direction:column;gap:6px;font-family:inherit;transition:transform .08s,border-color .1s,background .1s}.blessing-card:hover{transform:translateY(-2px);border-color:var(--panel-highlight);background:#362b45}.blessing-card h3{margin:0;font-size:14px;color:var(--panel-highlight)}.blessing-card p{margin:0;font-size:12px;color:#d3cad9}.section-title{font-size:12px;font-weight:700;color:#d6c5eb;border-left:3px solid var(--panel-highlight);padding-left:7px;margin:2px 0}.summary-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}.summary-box{background:#272031;border:1px solid #524563;border-radius:3px;padding:8px 10px;font-size:12px}.summary-box h4{margin:0 0 5px;font-size:12px;color:var(--panel-highlight)}.gamepad-badge{display:inline-flex;align-items:center;gap:4px;background:#22352c;border:1px solid #59c983;color:#a9f5be;border-radius:99px;padding:2px 8px;font-size:11px;font-weight:700}.gp-focus{outline:2px solid #ffd866!important;outline-offset:2px;box-shadow:0 0 0 3px #ffd86647!important}.item-card-compact{background:#272031;border:1px solid #554764;border-radius:4px;padding:8px 9px;display:flex;flex-direction:column;gap:6px}.item-card-compact.equipped{border-color:var(--accent-green);background:#22332a}.item-compact-row{display:flex;align-items:center;gap:9px}.item-icon-box{width:40px;height:40px;flex-shrink:0;background:#1a1522;border:1px solid #635375;border-radius:4px;display:flex;align-items:center;justify-content:center}.item-icon-box img{width:34px;height:34px;image-rendering:pixelated;display:block}.item-main{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}.item-head{display:flex;align-items:center;justify-content:space-between;gap:6px}.item-title-row{display:flex;align-items:center;gap:5px;flex-wrap:wrap;font-size:13px;font-weight:700}.item-meta{font-size:11px;color:var(--text-muted);display:flex;align-items:center;gap:8px;flex-wrap:nowrap;white-space:nowrap;overflow:hidden}.item-stock-row{font-size:11px;color:#c7bdd6;line-height:1.3}.info-toggle-btn{pointer-events:auto;width:22px;height:22px;flex-shrink:0;padding:0;border-radius:50%;background:#352b44;border:1px solid #72608a;color:#e4daf0;font-size:11px;font-weight:700;cursor:pointer;display:inline-flex;align-items:center;justify-content:center}.info-toggle-btn.open,.info-toggle-btn:hover{background:#4b3d61;border-color:var(--panel-highlight);color:var(--panel-highlight)}.item-desc-drawer{background:#1c1724;border:1px solid #443854;border-radius:3px;padding:6px 8px;font-size:11px;color:#d6cee0;line-height:1.45}.item-actions-row{display:flex;align-items:center;justify-content:space-between;gap:6px;flex-wrap:wrap}.char-tabs{display:flex;gap:6px;flex-wrap:wrap}.char-tab{pointer-events:auto;display:inline-flex;align-items:center;gap:6px;padding:5px 10px;background:#261f30;border:1px solid #584a69;border-radius:4px;color:var(--text-muted);font-size:12px;font-family:inherit;cursor:pointer}.char-tab img{width:20px;height:20px;image-rendering:pixelated}.char-tab.active{background:#362d47;border-color:var(--panel-highlight);color:var(--panel-highlight);font-weight:700}.char-tab.selected-badge{box-shadow:inset 0 -2px 0 var(--accent-green)}.char-showcase{display:grid;grid-template-columns:185px 1fr;gap:12px;background:#231c2c;border:1px solid #564866;border-radius:5px;padding:12px}@media(max-width:600px){.char-showcase{grid-template-columns:1fr}}.char-showcase-left{display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center}.char-portrait-frame{width:124px;height:124px;background:radial-gradient(circle at 50% 42%,#3a3052,#1a1524 75%);border:2px solid #7c6896;border-radius:6px;display:flex;align-items:center;justify-content:center;box-shadow:inset 0 0 12px #00000080}.char-portrait-frame img{width:112px;height:112px;image-rendering:pixelated}.char-three-views{display:grid;grid-template-columns:repeat(3,1fr);gap:5px;width:100%}.char-view-btn{pointer-events:auto;display:flex;flex-direction:column;align-items:center;gap:2px;padding:4px 2px;background:#1b1623;border:1px solid #554764;border-radius:4px;color:var(--text-muted);font-size:10px;font-family:inherit;cursor:pointer}.char-view-btn img{width:36px;height:36px;image-rendering:pixelated}.char-view-btn.active{background:#2f2542;border-color:var(--panel-highlight);color:var(--panel-highlight);font-weight:700}.char-anim-toggle{width:100%;font-size:11px;padding:4px 8px}.char-showcase-right{display:flex;flex-direction:column;gap:9px}.stat-bars{display:flex;flex-direction:column;gap:5px;background:#1b1623;border:1px solid #453954;border-radius:4px;padding:8px 10px}.stat-row{display:grid;grid-template-columns:52px 1fr 30px;align-items:center;gap:8px;font-size:11px}.stat-label{color:#cbbfe0;font-weight:700}.stat-bar-track{height:8px;background:#120e18;border:1px solid #4d3f5e;border-radius:3px;overflow:hidden}.stat-bar-fill{height:100%;border-radius:2px;transition:width .2s ease}.stat-val{text-align:right;color:#e8def5;font-family:monospace}.feed-box{display:flex;align-items:center;justify-content:space-between;gap:10px;background:#1e1828;border:1px solid #4e415e;border-radius:4px;padding:8px 10px}.char-nav-bar{display:flex;align-items:center;justify-content:space-between;gap:10px;background:#1c1624;border:1px solid #4b3e5c;border-radius:4px;padding:6px 10px}.char-nav-counter{font-size:12px;color:#dcd2eb;font-weight:700}.plot-popover{position:absolute;z-index:25;pointer-events:auto;transform:translateY(-50%);min-width:116px;max-width:185px;padding:7px 8px;display:flex;flex-direction:column;gap:5px}.plot-popover-head{display:flex;align-items:center;justify-content:space-between;gap:6px;font-size:11px;font-weight:700;color:var(--panel-highlight);border-bottom:1px solid #4e415e;padding-bottom:3px}.plot-popover-close{pointer-events:auto;background:transparent;border:none;color:var(--text-muted);font-size:13px;line-height:1;cursor:pointer;padding:0 2px}.plot-popover-close:hover{color:#fff}.plot-popover-actions{display:flex;flex-direction:column;gap:5px}.plot-popover-btn{display:flex;align-items:center;justify-content:space-between;gap:6px;width:100%;text-align:left;font-size:11px;padding:4px 7px}.plot-fert-icon{width:16px;height:16px;image-rendering:pixelated;vertical-align:middle}.qty-preset-row{display:flex;align-items:center;gap:6px;font-size:11px;color:var(--text-muted)}.qty-preset-btn{padding:2px 8px;font-size:11px}.qty-stepper{display:inline-flex;align-items:center;gap:3px;background:#1a1522;border:1px solid #594b69;border-radius:3px;padding:1px 3px}.qty-btn{pointer-events:auto;width:18px;height:18px;padding:0;border:none;background:#2f263d;color:#f4eedf;font-size:12px;font-weight:700;line-height:1;border-radius:2px;cursor:pointer}.qty-btn:hover{background:#46395c;color:var(--panel-highlight)}.qty-num{min-width:18px;text-align:center;font-size:11px;font-weight:700;color:#ffe28a;font-family:monospace}.settings-row{display:flex;flex-direction:column;gap:6px;background:#231c2c;border:1px solid #554764;border-radius:4px;padding:10px 12px}.settings-label-row{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:13px;font-weight:700}.settings-slider{width:100%;accent-color:var(--panel-highlight);cursor:pointer}.char-tab.locked{opacity:.78}.skill-panel-head{display:flex;align-items:center;gap:9px;margin-bottom:6px}.skill-icon-box{width:38px;height:38px;flex-shrink:0;background:#1a1522;border:1px solid #72608a;border-radius:4px;display:flex;align-items:center;justify-content:center}.skill-icon-box img{width:32px;height:32px;image-rendering:pixelated;display:block}.combat-skill-fab{position:absolute;right:16px;bottom:20px;z-index:20;pointer-events:auto;display:none}.combat-skill-btn{pointer-events:auto;position:relative;display:flex;flex-direction:column;align-items:center;gap:3px;background:#1c1624eb;border:2px solid var(--panel-border);border-radius:6px;padding:6px 8px 5px;min-width:68px;color:var(--text-main);font-family:inherit;cursor:pointer;box-shadow:0 6px 18px #000000a6;transition:transform .08s,border-color .12s}.combat-skill-btn.ready:hover{transform:translateY(-1px);border-color:var(--panel-highlight)}.combat-skill-btn.ready{border-color:#7fe69a;box-shadow:0 0 12px #7fe69a59,0 6px 16px #000000a6}.combat-skill-btn.cooling{border-color:#5c5368;cursor:not-allowed}.combat-skill-btn.passive{cursor:default;border-color:#6bc4eb}.skill-fab-media{position:relative;width:44px;height:44px;background:#14101a;border:1px solid #594b69;border-radius:4px;overflow:hidden}.skill-fab-gray,.skill-fab-color{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;image-rendering:pixelated;display:block}.skill-fab-gray{filter:grayscale(100%) brightness(.42)}.skill-fab-color-mask{position:absolute;top:0;right:0;bottom:0;left:0;overflow:hidden;transition:clip-path .06s linear}.skill-fab-cd-text{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:700;color:#fff6d6;text-shadow:0 1px 2px #000,0 0 4px #000;pointer-events:none}.skill-fab-label{font-size:11px;font-weight:700;color:#f4eedf;line-height:1.1}.skill-fab-key{font-size:10px;color:#b7adcc;line-height:1}
