@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700&family=DM+Sans:wght@400;500;600;700&display=swap');
:root{color-scheme:dark;--bg:#101116;--stone:#1c1b24;--line:#3c3444;--text:#e3dbe8;--muted:#96869e;--gold:#d8b777;--violet:#bda0e2;--nav:78px;--head:68px}*{box-sizing:border-box}body{margin:0;background:#0b0d12;color:var(--text);font:12px 'DM Sans',sans-serif;overflow:hidden}button,input,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.4;cursor:not-allowed}button:focus-visible,input:focus-visible,select:focus-visible,a:focus-visible,summary:focus-visible{outline:2px solid #e3c18a;outline-offset:3px}button,a{-webkit-tap-highlight-color:transparent}a{color:inherit;text-decoration:none}.hidden{display:none!important}.topbar{height:var(--head);display:flex;align-items:center;gap:22px;padding:0 max(24px,calc((100vw - 1360px)/2));background:linear-gradient(#1d1c25,#15151d);border-bottom:1px solid #544052;position:relative;z-index:5}.brand{display:flex;align-items:center;gap:11px;font:600 22px 'Barlow Condensed',sans-serif;letter-spacing:1.2px;white-space:nowrap}.brand>span{color:var(--gold);font-size:37px;filter:drop-shadow(0 0 12px #c8a16733)}.brand em{font-style:normal;color:#b392d4}.brand small{font:6px 'DM Sans',sans-serif;display:block;letter-spacing:3px;color:#927e9d;margin-top:5px}.resources{display:flex;gap:30px;align-items:center;margin-left:auto}.resources>div,.resources>button{display:grid;grid-template-columns:auto auto;gap:2px 8px;align-items:center;position:relative;background:none;border:0;text-align:left;padding:4px;color:#d9c3e8}.resources span{font-size:23px;color:var(--gold);grid-row:1/3}.resources button span{color:#b799db}.resources b{font-size:14px;font-weight:500}.resources small{font-size:6px;letter-spacing:1.4px;color:#927f9c}.icon-button{width:30px;height:30px;display:grid;place-items:center;border:1px solid #5d4b6488;border-radius:5px;background:#272030c9;color:#c4aad3;font-size:19px;padding:0}.help-button{font-size:13px;width:28px;height:28px;border-radius:50%;margin-left:7px}.game-shell{height:calc(100dvh - var(--head) - var(--nav));max-width:1400px;margin:auto;position:relative;background:#0b0d12}.world-stage{height:calc(100% - 25px);position:relative;overflow:hidden;background:#0d0f16;isolation:isolate}.world-stage:after{content:'';position:absolute;inset:0;pointer-events:none;box-shadow:inset 0 0 65px #040409aa;z-index:1}#game{width:100%;height:100%;display:block;image-rendering:pixelated;touch-action:manipulation;cursor:crosshair}.stage-top{position:absolute;top:0;left:0;right:0;height:54px;padding:0 24px;display:flex;align-items:center;justify-content:space-between;background:linear-gradient(#101018d9,transparent);z-index:2;pointer-events:none}.stage-top button{pointer-events:auto}.dungeon-name{display:flex;align-items:center;gap:10px}.live-dot{width:5px;height:5px;border-radius:50%;background:#bc94da;box-shadow:0 0 12px #bb8ce777;display:inline-block}.dungeon-name>b{font-size:11px;font-weight:500;color:#d1bccf;text-shadow:0 2px 5px #000}.floor-mark{display:flex;align-items:center;gap:8px;font-size:7px;letter-spacing:1px;color:#a188ac;border-left:1px solid #6a4e6c88;padding-left:13px;margin-left:4px}.floor-mark strong{font:500 23px 'Barlow Condensed',sans-serif;color:#d9b7eb}.world-controls{display:flex;gap:7px}.hero-hud{position:absolute;top:65px;left:25px;display:flex;align-items:center;gap:9px;z-index:2;width:215px;filter:drop-shadow(0 2px 7px #000a)}.hero-avatar{width:42px;height:46px;background:linear-gradient(#403049,#211a2c);border:1px solid #9e79ad;color:#d1b3e3;font-size:28px;border-radius:5px;box-shadow:inset 0 0 15px #a377bf18}.hero-hud>div{flex:1;min-width:0}.hero-hud-name{display:flex;justify-content:space-between;align-items:center;margin-bottom:7px;font-size:10px}.hero-hud-name b{font-size:8px;font-weight:400;color:#c6b0ce}.track{height:4px;background:#2c2435;overflow:hidden;border-radius:2px}.track i{display:block;height:100%;background:#ac84d0;transition:width .16s}.hp-track{height:5px;background:#412431}.hp-track i{background:linear-gradient(90deg,#95546d,#d78894)}.hero-hp-numbers{display:flex;justify-content:space-between;margin-top:4px;font-size:7px;color:#c6a1b3}.hero-hp-numbers>span:last-child{color:#b993da}.xp-track{height:2px;margin-top:5px}.xp-track i{background:#93b6ce}.enemy-hud{position:absolute;right:25px;top:68px;width:185px;text-align:right;filter:drop-shadow(0 2px 6px #000b);z-index:2}.enemy-hud>div:first-child{display:flex;flex-direction:column;gap:5px;margin-bottom:8px}.enemy-hud span{font-size:6px;letter-spacing:1.5px;color:#b78b9a}.enemy-hud b{font-size:10px;font-weight:500;color:#dcb7c6}.enemy-hud .track{height:4px;background:#3c2431}.enemy-hud .track i{background:#c57d96}.enemy-hud small{font-size:7px;color:#ad8a9a;display:block;margin-top:4px}.enemy-hud.boss{width:220px}.enemy-hud.boss b{color:#e3b6d7}.enemy-hud.elite b{color:#e9c68a}.enemy-hud.elite .track i{background:#d6b276}.status-pill{position:absolute;top:128px;left:25px;color:#a68fae;font-size:8px;text-shadow:0 2px 5px #000;z-index:2}.stage-bottom{position:absolute;left:24px;right:24px;bottom:15px;z-index:2;max-width:800px;margin:auto}.skill-dock{display:flex;align-items:center;justify-content:center;gap:13px;margin-bottom:15px}.battle-power{position:relative;display:flex;align-items:center;justify-content:center;width:49px;height:49px;border:1px solid #b58aca;border-radius:9px;background:linear-gradient(#4b325bd9,#241b32ed);color:#dcc5ed;box-shadow:0 3px 13px #0007,inset 0 0 10px #b184cd22}.battle-power .power-symbol{font-size:28px}.battle-power .power-number{position:absolute;left:4px;top:3px;font-size:6px;color:#b39bc1}.battle-power .power-time{position:absolute;bottom:3px;font-size:7px;text-shadow:0 2px 3px #000}.battle-power.locked{border-color:#615064;background:#221c2ad9}.battle-power.locked .power-symbol{font-size:20px;color:#9982a7}.battle-power:disabled{opacity:.65}.battle-power.active{box-shadow:0 0 22px #bb8be855,inset 0 0 20px #ba89e844;border-color:#e5bcff}.expedition-row{display:flex;align-items:center;gap:11px;padding-bottom:12px;font-size:9px}.play-control{border:1px solid #745a80;background:#31233bce;color:#d3b9e0;border-radius:4px;padding:7px 11px;font-size:8px;min-width:110px}.speed-control{background:#281d34b9;border:1px solid #5f446f;color:#c9aadf;border-radius:4px;padding:6px 10px;font-size:10px;margin-left:auto}.expedition-row .icon-button{height:27px;width:28px;font-size:17px}#buff-line{color:#d0b9df;font-size:8px;text-shadow:0 1px 5px #000}.floor-progress>div:first-child{display:flex;justify-content:space-between;font-size:7px;letter-spacing:.7px;margin-bottom:6px;color:#b69dbf;text-shadow:0 2px 4px #000}.floor-progress b{font-weight:400;color:#b6a7c4}.floor-progress .track{height:3px;background:#4b3a4c88}.floor-progress i{background:linear-gradient(90deg,#8c6aa8,#ceb1e2)}.minimap{position:absolute;right:24px;bottom:156px;border:1px solid #9b7fa177;background:#111019db;padding:5px;z-index:2}.minimap canvas{width:135px;height:95px;display:block;image-rendering:pixelated}.world-caption{height:25px;display:flex;align-items:center;justify-content:space-between;padding:0 25px;font-size:6px;letter-spacing:1px;color:#6d5d78;background:#11121a;border-top:1px solid #28202e}.world-caption small{font-size:6px;color:#705e7b;letter-spacing:.2px}.merchant-alert{position:absolute;bottom:184px;left:25px;z-index:2}.merchant-alert button{border:1px solid #b08a4f88;background:#2c251ce8;color:#d9bd83;padding:10px 12px;font-size:9px;border-radius:4px;box-shadow:0 3px 15px #0005}.merchant-alert span{font-size:7px;display:block;color:#a7916b;margin:5px 0 0 14px}.bottom-nav{position:fixed;bottom:0;left:0;right:0;height:var(--nav);padding:8px max(18px,calc((100vw - 1100px)/2)) max(8px,env(safe-area-inset-bottom));display:grid;grid-template-columns:repeat(4,1fr);gap:8px;background:linear-gradient(#25202c,#17151e);border-top:1px solid #70536e;z-index:20;box-shadow:0 -5px 35px #0005}.bottom-nav button{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;border:1px solid transparent;background:none;color:#a58daf;border-radius:6px;padding:0}.bottom-nav button>span{font-size:26px;line-height:1.1;color:#b79ac8}.bottom-nav b{font-size:9px;font-weight:400}.bottom-nav button:hover,.bottom-nav button.active{background:linear-gradient(#57405d55,#3a284c44);border-color:#89689266;color:#e3c8ef}.bottom-nav button.active>span{color:#e6c3fd;text-shadow:0 0 12px #d2a2f166}.bottom-nav button i{position:absolute;top:7px;right:calc(50% - 24px);width:5px;height:5px;background:#dbb27d;border-radius:50%}.sheet-backdrop{position:fixed;inset:var(--head) 0 var(--nav);background:#07070c33;z-index:8}.system-sheet{position:fixed;top:88px;bottom:calc(var(--nav) + 14px);right:max(20px,calc((100vw - 1360px)/2));width:min(490px,46vw);background:linear-gradient(135deg,#28202f,#1a1822 65%);border:1px solid #81618c;border-radius:11px;box-shadow:0 20px 70px #000a;z-index:10;display:flex;flex-direction:column;overflow:hidden;animation:sheet-in .22s ease}.sheet-handle{display:none}.sheet-heading{display:flex;align-items:center;justify-content:space-between;padding:22px 24px 17px;border-bottom:1px solid #4c3955;background:linear-gradient(100deg,#39283d66,transparent);flex:none}.sheet-heading>div>span{font-size:7px;letter-spacing:1.5px;color:#ac88ba}.sheet-heading h1{font:500 30px 'Barlow Condensed',sans-serif;margin:6px 0 0;letter-spacing:.5px;color:#e6d2f0}.sheet-heading .icon-button{font-size:24px;background:#38283f}.sheet-body{overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#71517d #201925;padding:20px 24px;flex:1;min-height:0}.sheet-footer{display:flex;justify-content:space-between;gap:10px;padding:11px 18px;font-size:6px;color:#8b7297;background:#19141e;border-top:1px solid #3d2d48;flex:none}.sheet-footer span:last-child{color:#715d7c}.purchase-toolbar{display:flex;gap:10px;justify-content:space-between;align-items:center;margin-bottom:14px}.segmented{display:flex;background:#19141f;border:1px solid #62446f;border-radius:5px;padding:3px;gap:3px}.segmented button{font-size:9px;border:0;background:none;color:#a589b6;padding:7px 13px;border-radius:3px;min-width:39px}.segmented button.selected{background:#624475;color:#f0dffc}.toggle-button{background:#251d2e;border:1px solid #5c426c;color:#a78bb8;border-radius:4px;font-size:8px;padding:9px 10px}.toggle-button[aria-pressed=true]{color:#dec2ee;border-color:#ac7dc9;background:#4c315d}.auto-priority{display:flex;align-items:center;justify-content:space-between;font-size:9px;color:#b69cc3;margin:16px 0 10px}select{background:#201927;color:#c9add7;border:1px solid #654673;border-radius:4px;padding:8px;font-size:9px;max-width:100%;outline-offset:2px}.helper{font-size:8px;line-height:1.9;color:#9a80a8;margin:10px 0 17px}.evolution-grid{display:grid;grid-template-columns:1fr 1fr;gap:11px}.evo-card{background:linear-gradient(130deg,#302239,#241c2c);padding:14px;border:1px solid #684b77;border-radius:6px}.evo-head{display:flex;gap:9px;align-items:center}.evo-icon{width:30px;font-size:24px;color:#c8a6de}.evo-head h3{font-size:10px;font-weight:500;margin:0;color:#dfc9eb}.evo-head small{font-size:7px;color:#a485b5;display:block;margin-top:5px}.evo-value{font:500 27px 'Barlow Condensed',sans-serif;color:#e5d3ee;margin:16px 0 7px}.evo-next{font-size:7px;color:#ab8dbb;min-height:27px;line-height:1.8}.evo-card button{display:flex;align-items:center;justify-content:space-between;width:100%;gap:7px;padding:9px;margin-top:12px;border:1px solid #976cae;background:#4b315c;color:#e1c6ef;border-radius:4px;font-size:8px}.evo-card button span{color:#e6c48a;white-space:nowrap}.compact-details{border:1px solid #594061;border-radius:5px;background:#211925;margin:17px 0 0;padding:12px}.compact-details summary{font-size:9px;cursor:pointer;color:#baa0cb;line-height:1.7}.compact-details p{font-size:8px;color:#9e83ad;line-height:1.9;margin:12px 0 0}.compact-details strong{color:#c1a3d2;font-weight:500}.class-heading{display:flex;justify-content:space-between;gap:10px;align-items:center}.class-heading span{font-size:8px;letter-spacing:1px;color:#ae8fc0}.class-heading h2{font:500 27px 'Barlow Condensed',sans-serif;margin:7px 0;color:#e5d0f0}.small-button{background:#35253f;color:#ccb0dd;border:1px solid #79538a;border-radius:4px;padding:9px 12px;font-size:9px}.mastery-progress{margin:15px 0 20px}.mastery-progress>div:first-child{display:flex;justify-content:space-between;font-size:8px;color:#ac8dbd;margin-bottom:9px}.switch-line{display:flex;align-items:center;justify-content:space-between;gap:18px;font-size:9px;line-height:1.8;color:#c3a6d4;padding:12px 0;cursor:pointer}.switch-line small{display:block;font-size:7px;line-height:1.8;color:#987aa8;margin-top:3px}.switch-line input{accent-color:#b084cc;width:15px;height:15px;flex:none}.section-title{font-size:7px;letter-spacing:1.2px;color:#b595c7;margin:22px 0 13px}.section-title small{font-size:7px;letter-spacing:0;color:#8f709f;margin-left:7px}.power-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.power-card{display:flex;align-items:center;gap:11px;position:relative;text-align:left;padding:14px 11px;background:#352440;border:1px solid #8d619f;border-radius:6px;min-height:80px;color:#e3c8f0}.power-card.locked{background:#231b2b;border-color:#594163;color:#9b81ab}.power-card>span{font-size:28px;color:#c89fe5}.power-card h3{font-size:10px;font-weight:500;margin:0 0 7px;line-height:1.6}.power-card small{font-size:7px;color:#ad8ec0;display:block;line-height:1.7}.power-card.locked small{color:#8c6c9c}.milestone-list{display:flex;flex-direction:column;gap:8px;margin-top:15px}.milestone{display:flex;gap:12px;align-items:center;padding:8px 0;border-bottom:1px solid #3d2a46;color:#8c6c9b;font-size:8px}.milestone b{font:500 21px 'Barlow Condensed',sans-serif;width:25px;flex:none}.milestone.done{color:#d2b3e3}.mastery-overview{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:14px}.mastery-mini{background:#2d2035;border:1px solid #594067;padding:12px;border-radius:4px;font-size:9px}.mastery-mini span{display:block;color:#b38ac8;font-size:8px;margin-top:7px}.inner-tabs{display:flex;overflow:auto;gap:6px;padding:3px 0 11px;scrollbar-width:thin;border-bottom:1px solid #4d3658;margin-bottom:19px}.inner-tabs button{border:1px solid #594067;background:#261d2d;color:#a88abb;white-space:nowrap;font-size:8px;border-radius:4px;padding:8px 10px;flex:1}.inner-tabs button.selected{background:#5a3c6d;border-color:#a77bc0;color:#f0d6ff}.inner-tabs button span{font-size:7px;color:#dbbcf0}.equipment-slots{display:grid;grid-template-columns:1fr 1fr;gap:10px}.slot-card{border:1px solid #655072;background:#291f32;border-radius:6px;padding:13px;text-align:left;min-height:110px;color:#d8c3e6;position:relative}.slot-card:first-child{grid-column:1/-1;display:flex;align-items:center;gap:18px;min-height:90px}.slot-card.empty{border-style:dashed;color:#94759f;background:#231a2a}.slot-card .item-icon{font-size:29px;display:block;margin:11px 0 9px}.slot-card:first-child .item-icon{width:42px;text-align:center;margin:0}.slot-card .slot-name{font-size:6px;letter-spacing:1px;color:#9676a5;display:block}.slot-card b{display:block;font-size:10px;font-weight:500;line-height:1.7}.slot-card small{display:block;font-size:7px;line-height:1.8;margin-top:4px;color:#a68ab6}.slot-card .slot-remove{position:absolute;top:8px;right:8px;font-size:12px;border:0;background:none;color:#a58aaf;padding:2px}.inventory-list{display:flex;flex-direction:column;gap:9px}.inventory-item{display:flex;align-items:center;gap:13px;text-align:left;background:#2c2034;border:1px solid #61456f;color:#d7c0e5;border-radius:5px;padding:12px}.inventory-item>.item-icon{font-size:26px;width:35px;text-align:center;flex:none}.inventory-item>div{flex:1;min-width:0}.inventory-item b{font-size:10px;font-weight:500;display:block;margin:4px 0;line-height:1.5}.inventory-item small{font-size:7px;color:#a68ab6;line-height:1.7;display:block}.inventory-item>span:last-child{font-size:8px;color:#bba0cd}.rarity-label{font-size:6px;letter-spacing:1px}.inventory-tools{display:flex;justify-content:space-between;align-items:center;margin-bottom:13px;color:#9e80ad;font-size:8px}.empty-state{text-align:center;border:1px dashed #6a4a78;border-radius:6px;padding:30px 20px;color:#a98ab9;font-size:10px;line-height:2}.empty-state>span{font-size:35px;display:block;color:#b58dce;margin-bottom:15px}.set-card{border:1px solid #674474;border-radius:6px;padding:16px;background:linear-gradient(130deg,#33223d,#251b2e);margin-bottom:12px}.set-card.complete{border-color:#d0a475;box-shadow:inset 0 0 25px #bd8c4e18}.set-title{display:flex;justify-content:space-between;gap:10px;align-items:center}.set-title h3{font:500 22px 'Barlow Condensed',sans-serif;margin:0;color:#dcc3ec}.set-title small{font-size:7px;color:#a68ab6}.set-pieces{display:flex;gap:7px;margin:15px 0}.set-piece{width:35px;height:35px;display:grid;place-items:center;color:#776080;border:1px solid #594262;background:#1e1825;border-radius:4px;font-size:20px}.set-piece.owned{color:#bf99da;border-color:#966fa9;background:#35243f}.set-piece.equipped{color:#edd6a5;border-color:#cfa569;background:#4b382b}.set-bonus{font-size:8px;color:#866592;line-height:1.9;margin:5px 0}.set-bonus.active{color:#d1b3e0}.set-card>p{font-size:7px;color:#aa86b6;line-height:1.8}.relic-cap{font-size:9px;text-align:center;color:#c7a5dd;margin:15px 0}.relic-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.relic-card{position:relative;padding:20px 13px;background:radial-gradient(ellipse at 50% 0,#76528355,#251a32 80%);border:1px solid #9974af;border-radius:8px;color:#dcbdec;text-align:center;min-height:175px}.relic-card.active{border-color:#e4c28e;box-shadow:0 0 20px #d1a36f18,inset 0 0 25px #d1a36f22}.relic-card.unknown{background:#221b29;border-color:#493750;color:#695575}.relic-card>span{display:block;font-size:42px;margin-bottom:14px;filter:drop-shadow(0 0 12px #bb92e955)}.relic-card.unknown>span{filter:none;font-size:32px}.relic-card b{font-size:10px;font-weight:500;line-height:1.8;display:block}.relic-card small{display:block;font-size:8px;line-height:1.9;color:#a688b9;margin:9px 0}.relic-card.unknown small{color:#796086}.relic-card em{font-size:7px;font-style:normal;color:#d8b67d}.merchant-offer{border:1px solid #b18b57;background:linear-gradient(130deg,#433020,#281f26);padding:23px;border-radius:7px;text-align:center}.merchant-offer .item-icon{font-size:48px;display:block;margin:18px}.merchant-offer h3{font:500 26px 'Barlow Condensed',sans-serif;margin:10px}.merchant-offer p{font-size:10px;line-height:1.9;color:#bc9e80}.merchant-offer small{font-size:8px;color:#ac9072;line-height:1.9}.primary-button{border:1px solid #bc92d6;background:linear-gradient(120deg,#9870b5,#714b91);color:#fff0ff;border-radius:5px;padding:12px 18px;font-size:10px;font-weight:500;cursor:pointer}.primary-button:hover{filter:brightness(1.1)}.wide{width:100%}.merchant-offer .primary-button{background:linear-gradient(#aa834e,#80603b);border-color:#cba668;color:#fff1d8;margin:15px 0 10px}.rebirth-summary{display:flex;gap:13px;align-items:center;padding-bottom:17px;border-bottom:1px solid #4c3358}.soul-symbol{font-size:48px;color:#cfabea;text-shadow:0 0 22px #a66fcd55;width:49px;flex:none}.rebirth-summary>div:nth-child(2)>span{font-size:6px;letter-spacing:1.7px;color:#a283b5;display:block}.rebirth-summary strong{font:500 34px 'Barlow Condensed',sans-serif;display:block;color:#ecd5fa;margin:5px 0}.rebirth-summary small{font-size:7px;color:#a081b1}.rebirth-numbers{margin-left:auto;display:flex;flex-direction:column;gap:13px}.rebirth-numbers span{font-size:7px;color:#9d7dad;text-align:right}.rebirth-numbers b{display:block;font-size:14px;font-weight:400;margin-top:5px;color:#d5b6e7}.soul-bonuses{display:flex;justify-content:space-between;gap:10px;padding:18px 0}.soul-bonuses>div{text-align:center;flex:1;border-right:1px solid #51385c}.soul-bonuses>div:last-child{border:0}.soul-bonuses span{font-size:7px;color:#9c7cac;display:block}.soul-bonuses b{font:500 20px 'Barlow Condensed',sans-serif;color:#cfacdf;margin-top:7px;display:block}.rebirth-reward{display:flex;justify-content:space-between;align-items:center;background:#3d294d;border:1px solid #805494;border-radius:5px;padding:13px;font-size:10px;color:#c8a4dd}.rebirth-reward b{font-weight:500;color:#ecd1fc}.rebirth-options>label:first-child{display:flex;align-items:center;justify-content:space-between;font-size:8px;color:#b190c4;margin:17px 0 5px}.rebirth-options .switch-line{padding-bottom:17px}#rebirth{padding:14px}.soul-node{padding:15px;border:1px solid #6c497c;border-radius:5px;background:#2c1e36;display:flex;align-items:center;gap:12px;margin-bottom:10px}.soul-node>span{font-size:26px;color:#bf95da;width:30px;text-align:center;flex:none}.soul-node>div{flex:1;min-width:0}.soul-node h3{font-size:10px;font-weight:500;margin:0 0 7px;color:#d6b9e6}.soul-node p{font-size:8px;line-height:1.8;color:#a283b4;margin:0}.soul-node small{display:block;font-size:7px;color:#866393;margin-top:6px}.soul-node button{border:1px solid #9763ad;background:#58376b;color:#e9c9fb;font-size:9px;border-radius:4px;padding:9px 10px;flex:none}.soul-node button span{font-size:7px;display:block;margin-top:5px;color:#b593c9}.path-card{border:1px solid #674372;background:#2d1e36;border-radius:6px;padding:19px;margin-bottom:13px}.path-card.chosen{border-color:#c49ad9;background:#462d53}.path-card h3{font:500 25px 'Barlow Condensed',sans-serif;margin:0 0 12px;color:#d9b9e9}.path-card p{font-size:9px;color:#aa88bd;line-height:1.9}.path-card .small-button{width:100%;margin-top:10px}.mark-card{display:flex;gap:13px;padding:15px;border:1px solid #50345d;border-radius:5px;background:#241a2b;margin-bottom:11px;color:#8b6d9b}.mark-card.done{border-color:#a47cb8;background:#34223f;color:#cfaddf}.mark-card>span{font-size:25px}.mark-card h3{font-size:10px;font-weight:500;margin:0 0 7px}.mark-card p{font-size:8px;line-height:1.9;margin:0;color:inherit}.achievement{display:flex;gap:11px;padding:12px 0;border-bottom:1px solid #42294e;color:#886696;font-size:8px;line-height:1.9}.achievement.done{color:#d0aee0}.achievement b{display:block;font-size:9px;font-weight:500}.statistics{display:grid;grid-template-columns:1fr 1fr;gap:11px;margin:17px 0;font-size:8px;color:#a283b4}.statistics b{display:block;font-size:14px;color:#cfadde;font-weight:400;margin-top:5px}.respec-switch{border-top:1px solid #53375f;margin-top:18px;padding-top:18px}.toast{position:fixed;bottom:calc(var(--nav) + 15px);left:24px;z-index:30;max-width:min(380px,90vw);padding:12px 17px;border:1px solid #8b6b9d;background:#2d203beF;color:#e5c9f5;border-radius:6px;font-size:10px;line-height:1.7;box-shadow:0 8px 25px #0007;opacity:0;transform:translateY(15px);pointer-events:none;transition:.2s}.toast.show{opacity:1;transform:translateY(0)}dialog{color:#e4d0ee;background:radial-gradient(ellipse at 50% 0,#402d4d,#1c1725 70%);border:1px solid #9065a4;border-radius:10px;padding:29px;max-width:94vw;max-height:90dvh;overflow:auto;box-shadow:0 30px 120px #000b}dialog::backdrop{background:#07060cbe;backdrop-filter:blur(4px)}dialog h2{font:500 33px 'Barlow Condensed',sans-serif;color:#ead4f6;margin:13px 0}dialog>p{font-size:11px;line-height:1.9;color:#b095c1}.modal-kicker{font-size:7px;letter-spacing:1.6px;color:#ab86c0}#classes{width:760px;text-align:center}#classes>small{display:block;font-size:8px;color:#8e70a1;margin-top:17px}#class-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:11px;margin:25px 0}.class-card{position:relative;min-width:0;background:linear-gradient(#31233c,#231b2c);border:1px solid #674574;color:#d6bce6;border-radius:6px;text-align:left;padding:12px}.class-card.selected{border-color:#d5b0ec;box-shadow:inset 0 0 20px #b080cb19}.class-card.selected:after{content:'✓';position:absolute;top:9px;right:9px;color:#e0bdf7}.class-card canvas{display:block;image-rendering:pixelated;width:100%;height:100px;background:radial-gradient(ellipse,#80559b33,transparent 68%)}.class-card b{font:500 22px 'Barlow Condensed',sans-serif;display:block;margin:12px 0 8px}.class-card p{font-size:8px;line-height:1.8;color:#a285b3;margin:5px 0}.class-card small{font-size:7px;line-height:1.7;color:#c4a2d6;display:block;margin-top:12px}#notice{width:430px;text-align:center}.dialog-actions{display:flex;justify-content:center;gap:12px;margin-top:24px}#cancel{display:none}#details{width:440px}.detail-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:17px}.detail-symbol{font-size:45px;color:#d6acef;display:block;margin:15px 0}.detail-text{font-size:10px;color:#b192c2;line-height:1.9}.detail-stats{display:flex;flex-direction:column;gap:11px;padding:16px 0;margin:17px 0;border-top:1px solid #5e3b70;border-bottom:1px solid #5e3b70;font-size:9px;color:#ba96d0}.detail-stats>div{display:flex;justify-content:space-between;gap:15px}.detail-stats b{font-weight:400;color:#e4c4f6}.delta.good{color:#99cca8}.delta.bad{color:#db969f}.detail-actions{display:flex;gap:10px}.detail-actions button{flex:1}.event{display:flex;gap:10px;font-size:9px;color:#b195c0;line-height:1.9;padding:10px 0;border-bottom:1px solid #472c54}.event time{font-size:8px;color:#856394;white-space:nowrap}.event.special{color:#d5b3e8}@keyframes sheet-in{from{opacity:0;transform:translateX(20px)}to{opacity:1;transform:translateX(0)}}
@media(min-width:1500px){.game-shell{border-left:1px solid #322638;border-right:1px solid #322638}}@media(max-width:1050px){.topbar{padding:0 22px}.system-sheet{right:15px;width:46vw}.sheet-heading{padding:18px 19px 15px}.sheet-body{padding:17px 19px}.sheet-footer span:last-child{display:none}.evo-card{padding:12px}.evo-head h3{font-size:9px}.evo-card button{padding:8px 6px;font-size:7px}.power-card{padding:12px 9px;gap:8px}.power-card h3{font-size:9px}.inner-tabs{gap:4px}.inner-tabs button{font-size:7px;padding:8px}.hero-hud{width:200px}.stage-top{padding:0 20px}.enemy-hud{width:165px}.enemy-hud.boss{width:180px}}
@media(max-width:700px){:root{--head:58px;--nav:76px}.topbar{padding:0 13px;gap:10px}.brand{font-size:17px;gap:7px;letter-spacing:.5px}.brand>span{font-size:29px}.brand small{font-size:5px;letter-spacing:1.8px;margin-top:4px}.resources{gap:12px}.resources span{font-size:19px}.resources b{font-size:11px}.resources small{font-size:5px;letter-spacing:1px}.resources>div,.resources>button{gap:2px 5px;padding:3px}.help-button{width:23px;height:23px;font-size:11px;margin-left:0}.game-shell{height:calc(100dvh - var(--head) - var(--nav))}.world-stage{height:calc(100% - 19px)}.stage-top{height:43px;padding:0 13px}.dungeon-name{gap:7px}.dungeon-name>b{font-size:9px}.floor-mark{font-size:6px;gap:5px;padding-left:9px;margin-left:2px}.floor-mark strong{font-size:19px}.world-controls{gap:5px}.world-controls .icon-button{width:25px;height:25px;font-size:17px}.hero-hud{left:14px;top:53px;width:173px;gap:7px}.hero-avatar{width:32px;height:38px;font-size:23px;border-radius:4px}.hero-hud-name{font-size:9px;margin-bottom:6px}.hero-hud-name b{font-size:7px}.hero-hp-numbers{font-size:6px}.hp-track{height:4px}.enemy-hud{right:14px;top:57px;width:125px}.enemy-hud.boss{width:140px}.enemy-hud>div:first-child{gap:4px;margin-bottom:6px}.enemy-hud span{font-size:5px;letter-spacing:1px}.enemy-hud b{font-size:8px}.enemy-hud small{font-size:6px}.enemy-hud .track{height:3px}.status-pill{left:14px;top:109px;font-size:7px}.stage-bottom{left:14px;right:14px;bottom:12px}.skill-dock{gap:11px;margin-bottom:14px}.battle-power{width:43px;height:43px;border-radius:7px}.battle-power .power-symbol{font-size:25px}.battle-power.locked .power-symbol{font-size:17px}.battle-power .power-time{font-size:6px}.expedition-row{padding-bottom:11px;gap:8px}.play-control{font-size:7px;padding:7px 9px;min-width:100px}#buff-line{font-size:6px}.speed-control{font-size:9px;padding:6px 8px}.expedition-row .icon-button{width:25px;height:25px}.floor-progress>div:first-child{font-size:6px;margin-bottom:6px}.world-caption{height:19px;padding:0 14px;font-size:5px;letter-spacing:.6px}.world-caption>span:nth-child(2){display:none}.world-caption small{font-size:5px}.bottom-nav{padding:7px 9px max(7px,env(safe-area-inset-bottom));gap:5px}.bottom-nav button>span{font-size:25px}.bottom-nav b{font-size:8px}.sheet-backdrop{background:#07060b22}.system-sheet{top:auto;left:8px;right:8px;bottom:calc(var(--nav) + 5px);width:auto;max-height:65dvh;border-radius:13px 13px 7px 7px;animation:mobile-sheet .2s ease}.sheet-handle{display:block;width:32px;height:3px;background:#94729f;border-radius:3px;margin:9px auto 0;flex:none}.sheet-heading{padding:12px 17px 13px}.sheet-heading>div>span{font-size:6px;letter-spacing:1.3px}.sheet-heading h1{font-size:27px;margin-top:4px}.sheet-heading .icon-button{width:27px;height:27px;font-size:23px}.sheet-body{padding:16px 17px}.sheet-footer{padding:9px 14px;font-size:6px}.purchase-toolbar{gap:9px;margin-bottom:12px}.segmented button{padding:7px 12px;font-size:9px}.toggle-button{font-size:8px;padding:9px}.auto-priority{font-size:8px;margin-top:13px}.helper{font-size:8px}.evolution-grid{gap:10px}.evo-card{padding:13px}.evo-head{gap:7px}.evo-head h3{font-size:10px}.evo-head small{font-size:7px}.evo-value{font-size:26px;margin-top:14px}.evo-next{font-size:7px}.evo-card button{font-size:8px;padding:9px 7px}.section-title{margin-top:18px}.power-card{padding:13px 10px;gap:9px;min-height:78px}.power-card h3{font-size:10px}.power-card small{font-size:7px}.inner-tabs{gap:5px}.inner-tabs button{font-size:8px;padding:8px}.class-heading h2{font-size:25px}.class-heading span{font-size:7px}.class-heading .small-button{font-size:8px}.relic-card{min-height:168px;padding:17px 12px}.slot-card{padding:12px}.slot-card b{font-size:10px}.rebirth-summary{gap:10px}.rebirth-summary strong{font-size:31px}.rebirth-numbers span{font-size:6px}.rebirth-numbers b{font-size:13px}.soul-symbol{width:40px;font-size:43px}.soul-bonuses b{font-size:20px}.soul-node{padding:13px;gap:10px}.soul-node h3{font-size:10px}.soul-node p{font-size:8px}.soul-node button{padding:8px;font-size:8px}.soul-node small{font-size:6px}.respec-switch{font-size:8px}.toast{left:12px;bottom:calc(var(--nav) + 10px);font-size:9px;max-width:calc(100vw - 24px);padding:10px 13px}.minimap{right:14px;bottom:155px;padding:4px}.minimap canvas{width:108px;height:76px}.merchant-alert{left:14px;bottom:168px}.merchant-alert button{font-size:8px;padding:9px 10px}.merchant-alert span{font-size:6px}.sheet-open .merchant-alert,.sheet-open .stage-bottom{pointer-events:none}.sheet-open .status-pill{display:none}.sheet-open .hero-hud{top:50px}.sheet-open .enemy-hud{top:53px}#classes{padding:23px 17px}#class-grid{grid-template-columns:1fr 1fr;margin:20px 0;gap:10px}.class-card{padding:11px}.class-card canvas{height:83px}.class-card b{font-size:21px;margin:7px 0}.class-card p{font-size:8px}.class-card small{font-size:7px;margin-top:9px}dialog h2{font-size:29px}dialog>p{font-size:10px}.modal-kicker{font-size:6px}.primary-button{font-size:10px}#details{padding:23px}#notice{padding:25px}.detail-actions{gap:8px}.detail-actions .small-button{font-size:8px}.detail-text{font-size:9px}@keyframes mobile-sheet{from{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}}
@media(max-width:370px){.brand{font-size:15px}.brand small{letter-spacing:1.4px;font-size:4px}.brand>span{font-size:25px}.resources{gap:8px}.resources b{font-size:10px}.help-button{display:none}.dungeon-name>b{font-size:8px}.enemy-hud{width:110px}.enemy-hud.boss{width:125px}.hero-hud{width:157px}.bottom-nav b{font-size:7px}.inner-tabs button{font-size:7px;padding:8px 7px}.evo-head h3{font-size:9px}.evo-card{padding:11px}.evo-card button{font-size:7px}.rebirth-numbers span{font-size:6px}.sheet-body{padding:14px}.power-card h3{font-size:9px}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
.slot-card:focus-within{outline:2px solid #d8b777;outline-offset:2px}
@media(max-height:580px) and (max-width:700px){.system-sheet{max-height:55dvh}.sheet-open .hero-hud{display:none}.sheet-open .enemy-hud{display:none}}
.update-banner{position:fixed;z-index:100;top:4.5rem;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:.75rem;flex-wrap:wrap;justify-content:center;width:max-content;max-width:90vw;padding:.7rem 1rem;background:#211a32;border:1px solid #a57bd4;border-radius:.7rem;color:#fff;box-shadow:0 8px 30px #0009}.update-banner.hidden{display:none}.update-banner small{flex-basis:100%;color:#ffb8b8;text-align:center}
.auth-screen[open]{position:fixed;inset:0;width:100%;height:100%;max-width:none;max-height:none;margin:0;border:0;display:grid;place-items:center;padding:20px;background:radial-gradient(ellipse at 50% 20%,#302244f5,#0b0b13fa 65%);overflow:auto}.auth-card{width:min(100%,390px);padding:30px;border:1px solid #6d548a;border-radius:16px;background:#15121e;box-shadow:0 20px 80px #000a;text-align:center;color:#eee5fa}.auth-card h1{margin:.3em 0;font-size:1.6rem}.auth-card p{color:#c9bdd9}.auth-mark{font-size:2.5rem;color:#c3a3f5}.auth-card form{text-align:left;display:grid;gap:.65rem;margin-top:1.5rem}.auth-card form[hidden],.auth-card [hidden]{display:none}.auth-card label{font-size:.85rem}.auth-card input{width:100%;padding:.8rem;border:1px solid #59476e;border-radius:8px;color:#fff;background:#0e0c16}.auth-card button{cursor:pointer}.auth-link{border:0;background:transparent;color:#d4baf7;padding:.8rem;cursor:pointer}.auth-card small{display:block;color:#a99ab9;line-height:1.5}.auth-card .auth-error{color:#ffaaaa}
.auth-card select{display:block;width:100%;max-width:100%;padding:.75rem;margin:.75rem 0;border:1px solid #59476e;border-radius:8px;background:#0e0c16;color:#fff;font-size:1rem}
.cloud-indicator{font-size:.65rem;line-height:1.1;max-width:6rem;text-align:center;color:#c5b4dc;overflow-wrap:anywhere}.cloud-indicator[hidden]{display:none}
.cloud-indicator{font-size:.65rem;line-height:1.1;max-width:6rem;text-align:center;color:#c5b4dc;overflow-wrap:anywhere}.cloud-indicator[hidden]{display:none}
@media(max-width:700px){.topbar{gap:5px;padding:0 8px}.brand{min-width:0;flex:0 1 auto}.brand>div{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.brand small{display:none}.resources{gap:4px}.cloud-indicator{flex:0 1 58px;min-width:0;font-size:.57rem}.topbar #auth-entry{flex-shrink:0;padding:5px;font-size:.65rem}}
.settings-section{padding:16px 0;border-bottom:1px solid #59456c}.settings-section h3{color:#ddc6f6;margin:0 0 8px}.settings-section p{color:#bcaecb;line-height:1.5;margin:8px 0}.settings-section button{min-height:44px;max-width:100%}
.auth-screen.has-save-choice[open]{align-items:start}.auth-screen.has-save-choice .auth-card{margin-block:12px}.save-choice{max-height:48dvh;overflow:auto;display:flex;flex-direction:column;gap:12px;text-align:left;overflow-wrap:anywhere}.save-comparison{border:1px solid #59476e;border-radius:8px;padding:12px}.save-comparison summary{font-weight:bold;cursor:pointer;color:#ddc6f6}.save-comparison p{white-space:pre-line;font-size:.85rem;line-height:1.55}.save-choice button{min-height:48px;flex-shrink:0}
#idle-report{width:min(420px,calc(100vw - 28px));max-height:calc(100dvh - 40px);overflow:auto;overflow-wrap:anywhere}#idle-report [hidden]{display:none}#idle-report button{min-height:48px}#idle-report p{line-height:1.55}.idle-rewards{display:grid;gap:12px;text-align:left;margin:20px 0}.idle-rewards>div{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px;background:#211a2b;border:1px solid #59456c;border-radius:8px}.idle-rewards dt{color:#c7b6d5;font-size:.85rem}.idle-rewards dd{margin:0;font-weight:700;color:#edd19c}#idle-progress{display:block;width:100%;height:14px;margin:20px 0;accent-color:#b998e9}#idle-message{font-size:.9rem;color:#c9bada}
.game-shell.with-first-journey{display:flex;flex-direction:column}.with-first-journey .world-stage{height:auto;flex:1;min-height:0}.with-first-journey .world-caption{flex-shrink:0}
.first-journey{flex:0 0 auto;background:linear-gradient(110deg,#251c31,#14141e 75%);border-top:1px solid #755a83;padding:0 16px 12px;overflow-wrap:anywhere}.first-journey[hidden],.first-journey [hidden]{display:none!important}
.journey-heading{display:flex;align-items:center;gap:8px}.journey-heading button{min-height:44px;border:0;background:transparent;color:#dbcae9}.journey-heading #journey-toggle{display:flex;align-items:center;gap:10px;text-align:left;padding:0;flex:1;min-width:0;font-size:13px}.journey-symbol{color:var(--gold);font-size:22px}#journey-label{flex:1}#journey-label small{font-size:11px;color:#b8a5c7}#journey-count{font-size:12px;color:var(--gold);white-space:nowrap}#journey-chevron{width:18px;text-align:center}#journey-dismiss{font-size:12px;text-decoration:underline;text-underline-offset:3px;padding:0 6px}
#journey-progress{display:block;width:100%;height:3px;border:0;appearance:none;background:#3c304b;accent-color:var(--gold);margin:0}#journey-progress::-webkit-progress-bar{background:#3c304b}#journey-progress::-webkit-progress-value{background:var(--gold);transition:width .2s}#journey-progress::-moz-progress-bar{background:var(--gold)}
#journey-body{display:grid;grid-template-columns:1fr auto;gap:4px 18px;align-items:center;padding-top:10px}#journey-body h2{font-size:15px;line-height:1.3;margin:0;color:#f0e4f6}#journey-description{font-size:12px;line-height:1.5;color:#c1afcf;margin:0;grid-column:1}#journey-action{grid-column:2;grid-row:1/3;min-height:44px;font-size:12px;padding:8px 14px}.journey-storage{font-size:11px;color:#e8bf91;margin:8px 0 0}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
@media(max-width:700px){.first-journey{padding:0 12px 10px}#journey-body{gap:4px 10px}#journey-body h2{font-size:14px}#journey-action{grid-column:1;grid-row:auto;justify-self:start;margin-top:4px}#journey-label small{font-size:10px}.journey-heading #journey-toggle{gap:7px;font-size:12px}}
.region-discovery{position:absolute;z-index:3;top:130px;left:50%;transform:translateX(-50%);width:max-content;max-width:calc(100% - 32px);padding:12px 22px;text-align:center;pointer-events:none;background:linear-gradient(90deg,#15121b00,#191521ed 15%,#191521ed 85%,#15121b00);border-block:1px solid #a58b6b88;animation:region-enter .35s ease-out}.region-discovery[hidden]{display:none}.region-discovery small{display:block;color:#cfb387;font-size:10px;letter-spacing:1.5px;text-transform:uppercase}.region-discovery strong{display:block;margin-top:5px;color:#eee2f5;font:600 21px 'Barlow Condensed',sans-serif;letter-spacing:.5px}@keyframes region-enter{from{opacity:0;translate:0 5px}to{opacity:1;translate:0 0}}@media(max-width:700px){.region-discovery{top:122px;padding:10px 14px}.region-discovery strong{font-size:19px}}

/* Alpha 04A · equipment UI. No game/save state is stored in these controls. */
#panel-items .items-tabs{position:sticky;top:-20px;z-index:2;background:#211b29;box-shadow:0 -20px #211b29;padding:6px 0 12px;margin-bottom:14px;overflow:visible;gap:5px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr))}
#panel-items .items-tabs button{min-height:44px;padding:8px 3px;font-size:12px;line-height:1.3;border-radius:6px;white-space:normal;color:#d0bedc}
#panel-items .items-tabs button.selected{background:linear-gradient(#644276,#462c58);border-color:#bd96d5;box-shadow:inset 0 1px #e2c4ef22;color:#fff0ff}
#panel-items .items-tabs button span{font-size:11px;white-space:nowrap;color:inherit}
#panel-items .equipment-slots{grid-template-columns:minmax(0,1fr);gap:8px}
#panel-items .slot-card,#panel-items .inventory-item{--rarity:#80708f;display:flex;align-items:center;gap:12px;grid-column:auto;position:relative;width:100%;min-height:86px;padding:11px 12px;border:1px solid color-mix(in srgb,var(--rarity) 55%,#382c43);border-left:3px solid var(--rarity);border-radius:8px;background:linear-gradient(110deg,#302238,#231c2c);text-align:left;color:#e9dfee}
#panel-items button.slot-card:hover,#panel-items .inventory-item:hover{background:linear-gradient(110deg,#3b2945,#2b2034)}
#panel-items .slot-card.empty{border:1px dashed #6c5a7a;background:#1d1924;color:#b6a6c4;min-height:80px}
.gear-icon{--rarity:#a995bc;display:inline-flex;align-items:center;justify-content:center;flex:0 0 48px;width:48px;height:52px;padding:4px;border-radius:8px;background:radial-gradient(ellipse at 50% 65%,#6c467344,#15121e 85%);border:1px solid color-mix(in srgb,var(--rarity) 65%,#34283f);box-shadow:inset 0 0 10px #0005;color:var(--rarity)}
.gear-icon svg{display:block;width:100%;height:100%;filter:drop-shadow(0 2px 1px #0009)}
#panel-items .equipment-copy{flex:1;min-width:0;display:block}
#panel-items .slot-name{display:block;color:#bfadca;text-transform:uppercase;font-size:10px;letter-spacing:1px;line-height:1.4;margin-bottom:2px}
#panel-items .slot-card b,#panel-items .inventory-item b{display:block;margin:0 0 3px;font-size:14px;line-height:1.4;font-weight:600;color:#f1e7f6;overflow-wrap:anywhere}
#panel-items .rarity-label,.item-detail .rarity-label{display:inline-block;font-size:11px;line-height:1.5;letter-spacing:.3px;font-weight:600}
#panel-items .item-attributes{display:block;color:#d2bfdc;font-size:12px;line-height:1.65;margin-top:3px;overflow-wrap:anywhere}
#panel-items .item-class{display:block;font-size:11px;line-height:1.5;color:#c4afd7;margin-top:2px}
#panel-items .item-chevron{flex:none;font-size:22px;color:#a48ab9;align-self:center}
#panel-items .inventory-list{display:flex;flex-direction:column;gap:9px;padding-bottom:6px}
#panel-items .inventory-item{min-height:100px}
#panel-items .item-ownership{display:block;font-size:11px;line-height:1.5;color:#c2aecf;margin-top:5px}
#panel-items .equipped-label{color:#b8d8ae;font-weight:600}
#panel-items .inventory-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-bottom:12px}
#panel-items .inventory-filters button{min-height:44px;min-width:0;padding:8px 4px;font-size:12px;border:1px solid #5f476e;border-radius:6px;color:#d5c3e0;background:#251d2e}
#panel-items .inventory-filters button.selected{color:#f4e4fc;background:#55366a;border-color:#b58ace;box-shadow:inset 0 1px #e8d1f322}
#panel-items .inventory-tools{font-size:11px;line-height:1.5;gap:8px;color:#bdaacb;flex-wrap:wrap;margin-bottom:12px}
#panel-items .helper{font-size:12px;line-height:1.7;color:#c1accf}
#panel-items .empty-state{padding:28px 12px;color:#c3acd1;font-size:13px;line-height:1.6}
#panel-items .empty-state b{display:block;color:#e9d8f1;font-size:15px}
#panel-items .empty-state p{font-size:12px;line-height:1.7;margin:8px 0}
#panel-items .set-card{padding:14px}
#panel-items .set-title{gap:8px;align-items:start}
#panel-items .set-title h3{font-size:16px;line-height:1.4;flex:1}
#panel-items .set-title small{font-size:11px;line-height:1.5;white-space:nowrap}
#panel-items .set-card>p,#panel-items .set-bonus{font-size:12px;line-height:1.7;color:#c0a8ce}
#panel-items .set-bonus.active{color:#e3c68d}
#panel-items .set-pieces{display:flex;gap:5px;justify-content:space-between}
#panel-items .set-piece{padding:0;flex:0 1 48px;height:46px;min-width:0;border-radius:6px}
#panel-items .set-piece .gear-icon{width:100%;height:100%;padding:4px;border:0;box-shadow:none;background:none}
#panel-items .set-piece:not(.owned) .gear-icon{opacity:.45}
#panel-items .relic-cap{font-size:13px}
#panel-items .relic-card{padding:16px 10px;min-width:0}
#panel-items .relic-card b{font-size:14px;line-height:1.5}
#panel-items .relic-card small{font-size:12px;line-height:1.6;color:#c4aed4}
#panel-items .relic-card em{font-size:12px}
#panel-items .relic-card.unknown{color:#b4a1c1}
#panel-items .relic-card.unknown small{color:#ad99bc}
#details:has(.item-detail){width:540px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);overflow:auto;padding:20px;overscroll-behavior:contain;scrollbar-width:thin}
#details:has(.item-detail) .detail-heading{gap:12px;margin-bottom:10px}
#details:has(.item-detail) .modal-kicker{font-size:11px;line-height:1.5;letter-spacing:1px}
#details:has(.item-detail) #close-details{flex:none;min-width:44px;min-height:44px}
.item-detail h2{font-size:22px;line-height:1.35;margin:6px 0;color:#f1e3fb;overflow-wrap:anywhere}
#details .item-detail .detail-text{font-size:12px;color:#c2acce;line-height:1.7;margin:8px 0 16px}
.item-comparison{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.comparison-item{padding:12px 10px;border:1px solid #725585;border-radius:8px;background:linear-gradient(135deg,#35263f,#221b2a);min-width:0}
.comparison-item h3{font-size:12px;color:#d7bd93;margin:0 0 10px;line-height:1.5}
.comparison-item>div{display:flex;align-items:center;gap:8px}
.comparison-item>div>div{min-width:0}
.comparison-item .gear-icon{width:40px;height:44px;flex-basis:40px}
.comparison-item b{font-size:14px;line-height:1.4;display:block;overflow-wrap:anywhere}
.comparison-item p,.item-detail .comparison-note{font-size:12px;line-height:1.7;color:#c9b4d6;margin:10px 0 0;overflow-wrap:anywhere}
#details .item-detail .detail-stats{font-size:12px;margin:16px 0;gap:12px}
.item-detail .detail-stats>div{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.5fr);align-items:start;gap:12px;color:#d1badf}
.item-detail .detail-stats b{text-align:right;line-height:1.5;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.item-detail .detail-stats .delta{display:block;font-size:11px;margin-top:2px}
.item-detail .comparison-columns{font-size:11px;color:#bfa6ce}
#details .item-detail button{min-height:44px;font-size:13px;line-height:1.5}
#details .item-detail button:disabled{opacity:1;background:#29232f;color:#b4a5be;border-color:#55425f}
.remove-equipment{margin-top:12px;border-top:1px solid #594268;padding-top:4px}
.remove-equipment summary{min-height:44px;align-content:center;cursor:pointer;color:#d3b7de;font-size:12px;padding:10px 0;line-height:1.5}
.remove-equipment p{font-size:12px;line-height:1.6;color:#c8b1d7;margin:4px 0 12px}
.cloud-indicator{overflow-wrap:normal;word-break:normal;min-width:64px;line-height:1.4}
@media(max-width:900px){#panel-items .items-tabs{top:-17px;box-shadow:0 -17px #211b29}}
@media(max-width:700px){
 #panel-items .items-tabs{top:-16px;box-shadow:0 -16px #211b29}
 #panel-items .items-tabs button{font-size:11px}
 #panel-items .slot-card,#panel-items .inventory-item{gap:10px;padding:10px;min-height:86px}
 #panel-items .inventory-item{min-height:100px}
 #panel-items .gear-icon{flex-basis:44px;width:44px;height:48px}
 #details .item-detail .comparison-item>div{display:block}
 #details .item-detail .comparison-item .gear-icon{margin-bottom:8px}
 .cloud-indicator{flex:0 0 64px;min-width:64px;font-size:10px}
}
@media(max-width:380px){#panel-items .items-tabs{top:-14px;box-shadow:0 -14px #211b29}#panel-items .slot-card,#panel-items .inventory-item{gap:8px;padding:9px}#panel-items .slot-card b,#panel-items .inventory-item b{font-size:13px}.item-detail h2{font-size:20px}.comparison-item b{font-size:13px}}

#panel-items .equipment-meta{display:flex;justify-content:space-between;align-items:baseline;gap:8px;margin-bottom:3px}
#panel-items .equipment-meta .slot-name{margin:0}
#panel-items .equipment-meta .rarity-label{white-space:nowrap}
#system-sheet[data-view="items"] #close-sheet{min-width:44px;min-height:44px}
@media(max-width:700px){#system-sheet[data-view="items"]{max-height:75dvh}#system-sheet[data-view="items"] .sheet-heading{padding:12px 17px}}
#panel-items .slot-card{min-height:78px;padding:8px 12px}
@media(max-width:700px){#panel-items .slot-card{padding:8px 10px}}
/* Alpha 04B: real before/after values, with text as well as color. */
#details .item-detail .comparison-affiliation{font-size:11px;line-height:1.5;color:#cfb389;margin-top:7px}
.item-detail h3{font-size:15px;line-height:1.5;color:#ead7f5;margin:18px 0 8px}
.item-detail .comparison-item h3{font-size:12px;margin:0 0 10px;color:#dfc699}
#details .item-detail .comparison-stat{grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);gap:10px}
.comparison-stat>span{font-size:12px;line-height:1.5;color:#d4bfdf}
.comparison-stat small{font-size:10px;color:#b9a3c5;white-space:nowrap}
.item-detail .stat-delta{display:block;font-size:11px;margin-top:3px;font-weight:500}
.item-detail .gain .stat-delta,.set-change.new{color:#a9d6a7}
.item-detail .loss .stat-delta,.set-change.lost{color:#f1a7b5}
.item-detail .same .stat-delta,.set-change.kept{color:#b9afc7}
.comparison-more{padding:4px 0 10px;border-bottom:1px solid #614372}
.item-detail summary{font-size:12px;line-height:1.5;min-height:44px;padding:12px 0;color:#d9c4e8;cursor:pointer}
.comparison-set{padding:10px 12px;margin:10px 0;border:1px solid #675077;border-radius:7px;background:#211a2a}
.comparison-set h4{display:flex;flex-wrap:wrap;justify-content:space-between;gap:5px 12px;margin:0;color:#e4c891;font-size:13px;line-height:1.6}
.comparison-set h4 span{white-space:nowrap;color:#e2cdef;font-size:12px}
.comparison-set p{font-size:12px;line-height:1.65;margin:8px 0;overflow-wrap:anywhere}
.comparison-set details summary{font-size:11px;padding:12px 0}
.comparison-achievements{background:#3b2c212e;border:1px solid #9f7f55;border-radius:7px;margin:12px 0;padding:0 12px 10px}
.comparison-achievements h3{font-size:14px;margin-top:12px;color:#edc991}
.comparison-achievements p{font-size:12px;line-height:1.65;color:#ddc9a9}
.comparison-restriction{font-size:13px;line-height:1.7;padding:12px;border:1px solid #98717b;border-radius:7px;color:#f1bdc8;background:#3d242d55;margin:14px 0}
.comparison-controls{margin-top:18px;padding-top:12px;border-top:1px solid #5d456e}
#details .item-detail .comparison-columns{font-size:11px;color:#baa4c9}
#details .item-detail .detail-stats{gap:12px}
@media(max-width:380px){#details:has(.item-detail){padding:16px}.comparison-item{padding:10px 8px}.item-comparison{gap:8px}.item-detail .comparison-note{font-size:11px}.comparison-stat>span{font-size:11px}}
.comparison-alert{font-size:12px;line-height:1.6;margin:10px 0;padding:9px 11px;border:1px solid #6e5b7a;border-radius:6px;background:#211a2a;color:#d8c6e3}
.comparison-alert.lost{border-color:#9d6474;color:#f1b6c5;background:#46263344}
.comparison-alert.new{border-color:#668767;color:#b6dfb1;background:#253c3044}
#details:has(.item-detail) .detail-heading{position:sticky;top:-20px;z-index:2;background:#2a2032;padding:8px 0;border-bottom:1px solid #54415f}
@media(max-width:380px){#details:has(.item-detail) .detail-heading{top:-16px}}
/* Alpha 04C: one optional, character-scoped equipment preference. */
#panel-items .auto-equipment{padding:12px;border:1px solid #685177;border-radius:8px;background:linear-gradient(110deg,#302339,#211b29);margin-bottom:14px}
#panel-items .auto-equipment-toggle{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:44px;padding:6px 0;border:0;background:transparent;text-align:left;color:#e9d9f2;font-size:13px;line-height:1.5}
#panel-items .auto-equipment-toggle span{flex:1;min-width:0}
#panel-items .auto-equipment-toggle b{font-size:12px;color:#bba8c9;border:1px solid #685078;border-radius:20px;padding:5px 9px}
#panel-items .auto-equipment-toggle[aria-pressed="true"] b{color:#c3e3b6;border-color:#77966f;background:#2a3b2d}
#panel-items .auto-equipment p{font-size:12px;color:#c4b0d2;line-height:1.65;margin:7px 0}
#panel-items .auto-equipment .small-button{min-height:44px;font-size:12px;padding:8px 12px;margin-top:3px}
#panel-items .auto-equipment{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:0 10px}
#panel-items .auto-equipment-toggle{grid-column:1;grid-row:1}
#panel-items .auto-equipment p{grid-column:1/-1;margin-bottom:0}
#panel-items .auto-equipment .auto-equipment-review{grid-column:2;grid-row:1;width:44px;min-height:44px;margin:0;padding:9px;align-self:center;font-size:20px}
.auto-equipment-review svg{display:block;width:22px;height:22px}
/* Alpha 05A: keep the evolution cards, make long exact prices readable. */
#panel-evolution .evolution-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
#panel-evolution .evo-card{min-width:0}
#panel-evolution .evo-head{min-width:0}
#panel-evolution .evo-head>div{min-width:0}
#panel-evolution .evo-head h3{font-size:13px;line-height:1.4}
#panel-evolution .evo-head small{font-size:11px;line-height:1.5;overflow-wrap:anywhere}
#panel-evolution .evo-value{font-size:25px;overflow-wrap:anywhere;line-height:1.3}
#panel-evolution .evo-next{font-size:11px;line-height:1.6;min-height:36px;overflow-wrap:anywhere}
#panel-evolution .evo-card button{flex-direction:column;align-items:flex-start;font-size:12px;min-height:48px;padding:10px;line-height:1.5}
#panel-evolution .evo-card button span{font-size:11px;white-space:normal;overflow-wrap:anywhere;max-width:100%;font-variant-numeric:tabular-nums}
#panel-evolution .purchase-toolbar button{min-height:44px;font-size:12px}
#panel-evolution .auto-priority,#panel-evolution .helper{font-size:12px;line-height:1.6}
#panel-evolution .auto-priority{gap:8px;flex-wrap:wrap}
@media(max-width:380px){#panel-evolution .evolution-grid{grid-template-columns:minmax(0,1fr)}}
#panel-evolution .evo-card button span{overflow-wrap:normal;word-break:normal}
#panel-evolution .evo-card button:disabled{opacity:1;background:#2a2330;border-color:#644b72;color:#c1aecf}
#panel-evolution .evo-card button:disabled span{color:#cbb388}
.bestiary-regions{display:grid;grid-template-columns:1fr 1fr;gap:8px}.bestiary-regions button{min-height:52px;border:1px solid #755786;border-radius:6px;background:#281e31;color:#d8c7e4;padding:9px;font-size:12px;text-align:left}.bestiary-regions small{display:block;font-size:11px;margin-top:5px;color:#bba4ca}.bestiary-regions button[aria-pressed="true"]{background:#513466;border-color:#bd96d5;color:#fff0ff}#panel-bestiary h2{font-size:19px;color:#e2c28f;margin:18px 0 8px}#panel-bestiary .helper{font-size:12px;line-height:1.7}.bestiary-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.bestiary-card{min-width:0;background:radial-gradient(ellipse at 50% 0,#51355d55,#211b29);border:1px solid #70517e;border-radius:8px;padding:10px;text-align:center}.bestiary-card canvas{display:block;width:144px;max-width:100%;height:auto;margin:auto;image-rendering:pixelated}.bestiary-card>span{font-size:11px;color:#ddbd88}.bestiary-card h3{font-size:14px;line-height:1.5;margin:5px 0;color:#e8d8f1;overflow-wrap:anywhere}.bestiary-card p{font-size:11px;color:#bfa9cd;line-height:1.6}#panel-bestiary .small-button{min-height:44px;font-size:12px;margin:8px 0}

/* Continuous exploration: status replaces the removed manual pause. */
.idle-active-label{font-size:11px;color:var(--muted,#c3b3d6);padding:10px 0;white-space:nowrap}.soul-category{font-size:13px;color:#dac092;margin:18px 0 8px}.soul-node small{line-height:1.55}.soul-node h3{overflow-wrap:anywhere}
/* Permanent decisions need readable net benefits on narrow screens. */
#souls-content .soul-node{gap:10px;align-items:start;padding:14px 10px}
#souls-content .soul-node>div{min-width:0;flex:1}
#souls-content .soul-node h3{font-size:13px;line-height:1.4;margin:0 0 6px}
#souls-content .soul-node p{font-size:12px;line-height:1.5}
#souls-content .soul-node small{display:block;font-size:11px;line-height:1.55;color:#c3b3cf;overflow-wrap:anywhere}
#souls-content .soul-node button{min-width:58px;min-height:44px;font-size:14px;padding:8px}
#souls-content .soul-node button span{font-size:11px}

.auto-rebirth-box{border:1px solid var(--line);border-radius:10px;background:#20172b;padding:12px;margin:14px 0}.auto-rebirth-box .switch-line{margin:0;gap:12px;align-items:center}.auto-rebirth-box .switch-line span{font-size:14px}.auto-rebirth-box b{display:block;color:var(--gold);font-size:12px;margin-top:4px}.auto-rebirth-box .helper{font-size:12px;line-height:1.6;margin:8px 0 0;overflow-wrap:anywhere}.auto-rebirth-box input{min-width:24px;min-height:24px}
/* Permanent missions reuse the existing sheet; no overlay over combat. */
.mission-tabs{display:flex;gap:8px;position:sticky;top:0;z-index:2;background:#15111f;padding:8px 0 12px}.mission-tabs button{flex:1;min-height:44px;border:1px solid #514365;border-radius:8px;background:#211a2e;color:#d9cde7;font:inherit;font-size:13px}.mission-tabs button[aria-pressed=true]{border-color:#b28bdd;background:#382548;color:#f0dfbc}.mission-intro{color:#c3b9ce;font-size:12px;line-height:1.65;margin:6px 0 16px}.mission-chapter{border:1px solid #493956;border-radius:10px;background:#1c1627;margin-bottom:12px;overflow:hidden}.mission-chapter>summary{min-height:60px;padding:14px 12px;color:#e4cf9d;cursor:pointer;font-size:14px;font-weight:bold;display:flex;align-items:center;gap:8px}.mission-chapter>summary:before{content:'›';font-size:22px;color:#b997db}.mission-chapter[open]>summary:before{content:'⌄'}.mission-chapter summary small{display:block;color:#bfb1ce;font-size:11px;font-weight:normal;margin-top:5px;line-height:1.5}.mission-cards{padding:0 10px 10px;display:grid;gap:10px}.mission-card{min-width:0;padding:13px;background:#14111d;border:1px solid #3e324e;border-radius:8px}.mission-card.ready{border-color:#a1844b}.mission-card.claimed{border-color:#445f58}.mission-card-title{display:flex;align-items:center;justify-content:space-between;gap:8px}.mission-card h3,.achievement-card h3{font-size:14px;line-height:1.5;margin:0;color:#ede1f5}.mission-seal{color:#c5a064;font-size:20px}.mission-card p,.achievement-card p{font-size:12px;line-height:1.6;color:#c6bcd1;margin:7px 0}.mission-progress label{display:block;text-align:right;color:#ddc4ef;font-size:12px;margin:5px 0}.mission-progress progress{appearance:none;width:100%;height:6px;border:0;border-radius:8px;overflow:hidden;background:#30253e;accent-color:#ad86d0}.mission-progress progress::-webkit-progress-bar{background:#30253e}.mission-progress progress::-webkit-progress-value{background:#ad86d0}.mission-reward{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:12px;color:#e7c782;font-size:13px}.mission-reward small{display:block;font-size:11px;color:#b9acc9;margin-top:4px}.mission-reward button{min-height:44px;min-width:104px;font-size:12px}.mission-card .mission-status,.mission-status{font-size:11px;line-height:1.6;color:#b9acc9}.ready .mission-status{color:#e4c78c}.claimed .mission-status,.achievement-card.done .mission-status{color:#aacdbb}.achievement-list{display:grid;gap:10px}.achievement-card{display:flex;align-items:flex-start;gap:12px;background:#191321;border:1px solid #44334f;border-radius:10px;padding:14px}.achievement-card.done{border-color:#917547}.achievement-card .achievement-bonus{color:#dfc38d}.mission-tabs button:focus-visible,.mission-chapter summary:focus-visible{outline:2px solid #e5be79;outline-offset:-3px}
@media(min-width:700px){.achievement-list{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){#system-sheet[data-view="missions"]{max-height:75dvh}#system-sheet[data-view="missions"] .sheet-heading{padding:12px 17px}#system-sheet[data-view="missions"] .sheet-heading h1{font-size:clamp(22px,6vw,28px)}}
#system-sheet[data-view="missions"] #close-sheet{min-width:44px;min-height:44px}
/* Permanent mastery shares the existing Powers panel. */
.permanent-summary{border:1px solid #806349;border-radius:10px;background:linear-gradient(130deg,#2f203b,#18131f);padding:16px;margin-bottom:18px}.permanent-kicker{font-size:10px;letter-spacing:.1em;color:#cbb384}.permanent-summary h2{font-size:25px;line-height:1.3;margin:7px 0 12px;color:#ead4a3;overflow-wrap:anywhere}.permanent-summary>p{font-size:12px;line-height:1.6;margin:4px 0;color:#d8c7e3}.total-bonuses{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:14px}.total-bonuses>div{padding:9px;border:1px solid #493554;border-radius:6px;background:#19121f;min-width:0}.total-bonuses span{display:block;font-size:11px;color:#bdafc8}.total-bonuses b{font-size:15px;color:#d7bded;line-height:1.7;overflow-wrap:anywhere}.total-bonuses .mastery-note{grid-column:1/-1}.mastery-note,#total-milestones p{font-size:12px!important;line-height:1.65;color:#c6b7cf!important}.mastery-class-row{padding:12px;border:1px solid #47344e;border-radius:8px;background:#1c1525;min-width:0}.mastery-class-row.active{border-color:#aa82c8}.mastery-class-row h3{font-size:13px;margin:0 0 6px;color:#eddff3}.mastery-class-row b{font-size:13px;color:#d7bbe9;overflow-wrap:anywhere}.mastery-class-row span{display:block;font-size:11px;line-height:1.6;color:#bdaace}.mastery-class-row p{font-size:12px;line-height:1.6;color:#d2c3dc;margin:7px 0}.mastery-class-row progress{width:100%;height:6px;accent-color:#b28bdd}.mastery-overview{gap:10px}#panel-mastery .class-heading h2{font-size:20px;overflow-wrap:anywhere}#panel-mastery .class-heading>div{min-width:0}#panel-mastery .class-heading .small-button{min-height:44px;font-size:11px}#panel-mastery .mastery-progress>div{flex-wrap:wrap;gap:8px;font-size:12px}#panel-mastery .compact-details summary{font-size:12px;min-height:44px;align-content:center}#panel-mastery .power-card{min-height:70px}#panel-mastery .power-card h3{font-size:12px}#panel-mastery .power-card small{font-size:11px}#panel-mastery .section-title{font-size:12px;line-height:1.6}
@media(max-width:700px){#system-sheet[data-view="mastery"]{max-height:75dvh}#system-sheet[data-view="mastery"] #close-sheet{min-width:44px;min-height:44px}#panel-mastery .class-heading{align-items:flex-start;gap:10px}#panel-mastery .class-heading .small-button{max-width:115px;white-space:normal}#panel-mastery .mastery-overview{grid-template-columns:1fr}}
#panel-mastery .switch-line{min-height:44px;font-size:12px}#panel-mastery .switch-line small,#panel-mastery .section-title small{font-size:11px}
@media(min-width:360px) and (max-width:700px){#panel-mastery .mastery-overview{grid-template-columns:repeat(2,minmax(0,1fr))}}
.ranking-tabs{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:16px}.ranking-tabs button{min-height:44px;background:#2b2039;color:#e2cfed;border:1px solid #725184;border-radius:7px;font:inherit;font-size:13px}.ranking-tabs button[aria-pressed=true]{border-color:#dfb876;color:#efd7a4}.ranking-row{display:grid;grid-template-columns:40px minmax(0,1fr) auto;gap:8px;padding:14px 8px;border-bottom:1px solid #49364e;font-size:13px;align-items:center}.ranking-row div{overflow-wrap:anywhere}.ranking-row.mine{background:#382842;border:1px solid #bc96da}.ranking-row:first-of-type{color:#e7c48a}.ranking-message{font-size:14px;line-height:1.7;color:#dfc9e8}#ranking-content label{display:block;font-size:12px;line-height:1.8;margin:16px 0}#ranking-content input{display:block;width:100%;box-sizing:border-box;min-height:44px;background:#17111e;color:#eee;border:1px solid #795988;padding:9px;font:inherit}#ranking-content .small-button{min-height:44px;margin:8px 8px 8px 0}#system-sheet[data-view=ranking] #close-sheet{min-height:44px;min-width:44px}@media(max-width:700px){#system-sheet[data-view=ranking]{max-height:75dvh}}

.ranking-row strong{max-width:42vw;overflow-wrap:anywhere}.ranking-row b{color:#d8bc82}.ranking-row:nth-of-type(2),.ranking-row:nth-of-type(3){border-left:2px solid #81629c}

#ranking-content .small-button{font-size:12px}#ranking-content .helper{font-size:11px;line-height:1.6}

/* Alpha 07B · Eclipse. Semantic tokens; class/rarity/biome colors remain data-driven. */
:root{--bg:#101820;--stone:#202d38;--surface:#202d38;--surface-raised:#293946;--surface-low:#16222c;--line:#405461;--text:#f0f5f7;--muted:#b5c5ce;--accent:#66d3e6;--gold:#e6ba72;--violet:#a48be8;--success:#a6d9b8;--danger:#f1adb6;--head:72px;--nav:80px;--touch:44px}
body{background:var(--bg);color:var(--text);font-size:14px;line-height:1.5}
button:focus-visible,input:focus-visible,select:focus-visible,a:focus-visible,summary:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
button:disabled{opacity:.6}.topbar,.bottom-nav{background:var(--bg);border-color:var(--line);box-shadow:none}.brand em{color:var(--accent)}.brand small{font-size:10px;color:var(--muted);letter-spacing:1px}.brand>span{filter:none}
.resources>div,.resources>button{color:var(--text)}.resources b{font-size:15px;font-weight:600}.resources small{font-size:10px;letter-spacing:.4px;color:var(--muted)}.resources button span{color:var(--violet)}
.icon-button,.small-button,.toggle-button,.segmented button,.inner-tabs button{min-height:var(--touch);border-color:var(--line);background:var(--surface);color:var(--text);font-size:13px;border-radius:8px;box-shadow:none}.icon-button{min-width:var(--touch);font-size:22px}.primary-button{min-height:44px;font-size:14px;background:var(--accent);color:#101820;border:1px solid transparent;border-radius:8px;box-shadow:none}
.bottom-nav button{min-height:48px;color:var(--muted);gap:3px}.bottom-nav b{font-size:12px;font-weight:500}.bottom-nav button>span{font-size:24px;color:var(--muted)}.bottom-nav button:hover,.bottom-nav button.active{background:var(--surface);border-color:transparent;color:var(--accent)}.bottom-nav button.active>span{color:var(--accent);text-shadow:none}
.stage-top{background:linear-gradient(#101820ee,transparent);height:56px}.dungeon-name>b{font-size:13px;color:var(--text)}.live-dot{background:var(--accent);box-shadow:none}.floor-mark{font-size:11px;color:var(--muted);border-color:var(--line)}.floor-mark strong{font-size:24px;color:var(--gold)}
.hero-hud{top:65px;width:235px}.hero-avatar{border-color:var(--line);background:var(--surface);box-shadow:none}.hero-hud-name{font-size:13px;gap:8px;margin-bottom:5px}.hero-hud-name b,.hero-hp-numbers{font-size:11px;color:var(--text)}.track{background:var(--surface-raised);height:5px}.hp-track{height:6px}.hp-track i{background:#ce8295}.xp-track{height:3px}.xp-track i{background:var(--accent)}
.enemy-hud{top:67px;width:205px}.enemy-hud span,.enemy-hud small{font-size:11px;color:var(--muted);letter-spacing:0}.enemy-hud b{font-size:13px;color:var(--text)}.enemy-hud.boss b{color:#e9b9da}.status-pill{top:143px;font-size:11px;color:var(--muted)}
.battle-power{width:48px;height:48px;background:var(--surface-low);border-color:#718c9b;box-shadow:none}.battle-power .power-symbol{color:var(--text);font-size:26px}.battle-power .power-number,.battle-power .power-time{font-size:11px;color:var(--text)}.battle-power.active{background:#254550;border-color:var(--accent);box-shadow:none}.battle-power.locked{background:var(--surface-low);border-color:var(--line)}.battle-power.locked .power-symbol{color:var(--muted)}
.expedition-row{font-size:12px;padding-bottom:8px}.expedition-row .icon-button{width:44px;height:44px}#buff-line{font-size:11px;color:var(--text)}.floor-progress>div:first-child{font-size:11px;letter-spacing:0;color:var(--text)}.floor-progress b{color:var(--muted)}.floor-progress i{background:var(--accent)}.world-caption{font-size:10px;letter-spacing:0;background:var(--bg);color:var(--muted)}.world-caption small{font-size:10px;color:var(--muted)}
.system-sheet,dialog,.auth-card{background:var(--surface-low);color:var(--text);border-color:var(--line);box-shadow:0 12px 32px #0006}.sheet-heading{background:var(--surface);border-color:var(--line);padding:16px 20px}.sheet-heading h1{font-size:28px;color:var(--text);letter-spacing:0}.sheet-heading>div>span,.modal-kicker{font-size:11px;color:var(--accent);letter-spacing:.8px}.sheet-heading .icon-button{background:var(--surface-raised);width:44px;height:44px}.sheet-handle{background:var(--line)}.sheet-body{padding:18px 20px;scroll-padding:18px;scrollbar-color:var(--line) var(--surface-low)}.sheet-footer{font-size:10px;background:var(--surface-low);color:var(--muted);border-color:var(--line)}
#system-sheet p,#system-sheet label{font-size:14px;line-height:1.6}#system-sheet small{font-size:12px;line-height:1.5}#system-sheet h3{font-size:15px}#system-sheet button,#system-sheet select{font-size:13px;min-height:44px}#system-sheet input:not([type=checkbox]){min-height:44px;font-size:14px}#system-sheet summary{min-height:44px;font-size:14px;align-content:center}
#system-sheet :is(.helper,.section-title,.evo-next,.evo-head small,.slot-name,.class-heading span,.rebirth-numbers span,.mission-status,.bestiary-rank,.set-bonus,.set-piece,.switch-line,.auto-priority){font-size:12px;line-height:1.6;color:var(--muted)}
#system-sheet :is(.evo-card,.power-card,.slot-card,.inventory-item,.set-card,.relic-card,.soul-node,.path-card,.mark-card,.mission-card,.achievement-card,.mastery-class-row,.total-bonuses>div,.permanent-summary,.bestiary-card,.settings-section,.comparison-item){background:var(--surface);border-color:var(--line);box-shadow:none;border-radius:10px}
#system-sheet :is(.evo-head h3,.power-card h3,.slot-card b,.inventory-item b,.soul-node h3,.mastery-class-row h3){font-size:14px;color:var(--text)}
#system-sheet :is(.helper,.mastery-note,.mission-intro,.mission-card p,.achievement-card p,.mastery-class-row p,.soul-node p,.bestiary-card p){color:var(--muted)}
#system-sheet :is(.inner-tabs,.items-tabs,.mission-tabs,.purchase-toolbar){background:var(--surface-low)}
#system-sheet :is(.inner-tabs button,.mission-tabs button,.ranking-tabs button,.segmented button){background:var(--surface);color:var(--muted);border-color:transparent}
#system-sheet :is(.inner-tabs button.active,.items-tabs button[aria-selected=true],.mission-tabs button[aria-selected=true],.ranking-tabs button[aria-pressed=true],.segmented button.active){background:#29424d;color:var(--accent);border-color:var(--accent)}
#panel-items .items-tabs{box-shadow:0 -18px var(--surface-low);border-color:var(--line)}#system-sheet .gear-icon{background:var(--surface-low)}#system-sheet .rarity-label{font-size:12px}#system-sheet .item-filter{background:var(--surface-low);border-color:var(--line);color:var(--muted)}#system-sheet .item-filter[aria-pressed=true]{color:var(--accent);border-color:var(--accent)}
#ranking-content input{background:var(--surface);color:var(--text);border-color:var(--line)}.ranking-message{color:var(--text)}.ranking-row{border-color:var(--line)}.ranking-row.mine{background:#29424d;border-color:var(--accent)}
#system-sheet .permanent-summary h2,#system-sheet .rebirth-reward{color:var(--gold)}#system-sheet .total-bonuses b{color:var(--text)}.settings-section{padding:14px}.first-journey{background:var(--surface-low);border-color:var(--line)}.journey-heading button{min-height:44px;color:var(--text)}#journey-dismiss{min-width:44px}.toast{background:var(--surface);color:var(--text);border-color:var(--line);font-size:13px}.cloud-indicator{white-space:nowrap;word-break:normal;font-size:11px;color:var(--muted)}
dialog p,.auth-card p,.detail-text{font-size:14px;line-height:1.6}dialog small{font-size:12px}.detail-actions button{min-height:44px;font-size:14px}dialog input,dialog select{background:var(--surface);color:var(--text);border-color:var(--line);min-height:44px}.class-card p,.class-card small{font-size:12px}.class-card{background:var(--surface);border-color:var(--line)}
@media(max-width:700px){
 :root{--head:64px;--nav:calc(72px + env(safe-area-inset-bottom));}
 .topbar{padding:env(safe-area-inset-top) 8px 0;gap:6px;height:calc(var(--head) + env(safe-area-inset-top))}.game-shell{height:calc(100dvh - var(--head) - env(safe-area-inset-top) - var(--nav))}
 .brand{font-size:15px;letter-spacing:0;flex:1;min-width:0}.brand>span{font-size:25px}.brand small{display:none}.resources{gap:4px;margin-left:0;flex:none}.resources>div,.resources>button{gap:0 4px;padding:0;min-height:44px}.resources b{font-size:13px}.resources small{font-size:10px;letter-spacing:0}.resources span{font-size:17px}.help-button{display:none}.topbar #auth-entry{font-size:12px;min-height:44px;padding:5px 8px}.topbar .icon-button{min-width:44px;width:44px;height:44px}.cloud-indicator{position:absolute;right:9px;top:calc(100% + 2px);max-width:100%;padding:2px 7px;background:var(--surface-low);border-radius:4px;z-index:6;pointer-events:none}
 .bottom-nav{padding:6px 5px max(6px,env(safe-area-inset-bottom));gap:3px}.bottom-nav b{font-size:11px}.bottom-nav button>span{font-size:22px}.world-caption{display:none}.world-stage{height:100%}
 .stage-top{padding:0 10px;height:52px}.dungeon-name{gap:6px;min-width:0}.dungeon-name>b{font-size:12px;max-width:42vw;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.floor-mark{font-size:10px;padding-left:8px;gap:5px;margin-left:0}.floor-mark strong{font-size:22px}.world-controls{gap:4px}.world-controls .icon-button{width:44px;height:44px;font-size:20px}
 .hero-hud,.sheet-open .hero-hud{left:10px;top:58px;width:calc(50% - 16px);gap:6px}.hero-avatar{width:32px;min-width:32px;height:44px;font-size:23px}.hero-hud-name{flex-wrap:wrap;gap:0;margin:0 0 4px;font-size:12px}.hero-hud-name b{font-size:10px;white-space:nowrap}.hero-hp-numbers{font-size:10px}.hero-hp-numbers>span:last-child{display:none}.enemy-hud,.enemy-hud.boss,.sheet-open .enemy-hud{right:10px;top:58px;width:calc(50% - 12px)}.enemy-hud span{font-size:10px}.enemy-hud b{font-size:12px;line-height:1.3}.enemy-hud>div:first-child{gap:2px;margin-bottom:4px}.enemy-hud small{font-size:10px}.status-pill{top:128px;left:10px;font-size:11px}
 .stage-bottom{left:10px;right:10px;bottom:10px}.skill-dock{gap:10px;margin-bottom:6px}.battle-power{width:46px;height:46px}.battle-power .power-time{font-size:11px}.battle-power .power-number{display:none}.expedition-row{padding-bottom:6px;font-size:11px;gap:8px}.floor-progress>div:first-child{font-size:10px;line-height:1.4}.floor-progress b{flex-shrink:0}.floor-progress>div:first-child>span{max-width:85%}
 .system-sheet,#system-sheet[data-view]{left:6px;right:6px;bottom:calc(var(--nav) + 4px);max-height:75dvh;width:auto;top:auto;border-radius:14px 14px 8px 8px}.sheet-heading,#system-sheet[data-view] .sheet-heading{padding:10px 14px;gap:10px}.sheet-heading>div{min-width:0}.sheet-heading>div>span{font-size:10px}.sheet-heading h1,#system-sheet[data-view] .sheet-heading h1{font-size:25px;line-height:1.15;margin:3px 0}.sheet-body{padding:14px;scroll-padding:14px}.sheet-footer{padding:6px 12px;font-size:10px}.sheet-footer span:last-child{display:none}.sheet-handle{margin:7px auto 0}
 #panel-items .items-tabs{top:-14px;box-shadow:0 -14px var(--surface-low)}.inner-tabs{gap:4px;flex-wrap:wrap}.inner-tabs button{flex:1;padding:8px}.evolution-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.evo-card{padding:12px;min-width:0}.evo-value{font-size:25px}.power-grid{grid-template-columns:1fr}.soul-node{flex-wrap:wrap}.soul-node button{margin-left:auto}.rebirth-numbers{flex-wrap:wrap;gap:10px}.minimap{bottom:158px}.first-journey{padding:0 10px 6px}#journey-body p{font-size:12px}.journey-heading{min-height:44px}
}
@media(max-width:350px){.brand>span{display:none}.brand{font-size:13px}.resources small{font-size:10px}.bottom-nav b{font-size:10px}.hero-avatar{display:none}.hero-hud,.sheet-open .hero-hud{width:calc(50% - 16px)}.floor-mark{border:0;padding-left:3px}.dungeon-name>b{max-width:36vw}.world-controls .icon-button{width:40px;min-width:40px}.sheet-heading h1,#system-sheet[data-view] .sheet-heading h1{font-size:23px}.evolution-grid{grid-template-columns:1fr}}
@media(prefers-reduced-motion:no-preference){button{transition:background-color .12s,border-color .12s,color .12s}.system-sheet{animation-duration:.16s}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Explicit component states use their existing classes/ARIA contracts. */
#panel-items .items-tabs button.selected,#panel-items .inventory-filters button.selected,#system-sheet .mission-tabs button[aria-pressed=true],#system-sheet .segmented button.selected{background:#29424d;border-color:var(--accent);color:var(--accent);box-shadow:none}
#system-sheet :is(.segmented,.auto-equipment,.auto-rebirth-box,.mission-chapter,.comparison-summary){background:var(--surface);border-color:var(--line)}
#panel-items .auto-equipment-toggle,#panel-items .auto-equipment p,#panel-items .auto-equipment-toggle b{color:var(--muted)}
#panel-items .auto-equipment-toggle b{border-color:var(--line)}
#panel-evolution .evo-card button{background:#29424d;border-color:#507d8a;color:var(--text)}
#panel-evolution .evo-card button:disabled{background:var(--surface-low);border-color:var(--line);color:var(--muted)}
#panel-evolution .evo-value{color:var(--text)}#panel-evolution .evo-card button span{color:var(--gold)}
#system-sheet select,#system-sheet .segmented{background:var(--surface);border-color:var(--line);color:var(--text)}
#system-sheet :is(.set-bonuses,.set-pieces,.relic-description,.soul-node small,.path-card small,.mark-card small){font-size:12px;line-height:1.6;color:var(--muted)}
#system-sheet .mastery-mini{font-size:13px;background:var(--surface);border-color:var(--line)}#system-sheet .mastery-mini span{font-size:12px;color:var(--muted)}
.sheet-footer span:last-child{color:var(--muted)}#system-sheet .compact-details{background:var(--surface-low);border-color:var(--line)}
#system-sheet .milestone{font-size:12px;line-height:1.6;color:var(--muted);border-color:var(--line)}#system-sheet .milestone.done{color:var(--success)}
#system-sheet .rebirth-summary>div:nth-child(2)>span,#system-sheet .soul-bonuses span,#system-sheet .relic-card em{font-size:12px;color:var(--muted);letter-spacing:.3px}
#system-sheet .soul-node button{background:#29424d;color:var(--text);border-color:#507d8a}#system-sheet .soul-node button span{font-size:12px;color:var(--gold)}
@media(max-width:700px){.cloud-indicator{left:8px;right:auto;top:auto;bottom:2px;max-width:35vw;padding:0;background:none;font-size:10px}}
