@import"https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=Inter:wght@400;500;600;700&display=swap";@font-face{font-family:Pixelify Sans;src:url(/assets/fonts/PixelifySans.ttf) format("truetype");font-weight:400 700;font-display:swap}.initial-loading{position:fixed;inset:0;z-index:1000;min-height:100vh;min-height:100dvh;overflow:hidden;background:#10172c;color:#ead3ab;opacity:1;transition:opacity .32s ease-out;font-family:Pixelify Sans,monospace}.initial-loading--leaving{opacity:0}.initial-loading:after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(transparent 40%,#0b102266 65%,#0a0d20ed)}.initial-loading-content{position:absolute;z-index:1;bottom:max(7vh,28px);left:50%;transform:translate(-50%);width:min(460px,calc(100% - 48px));text-align:center}.initial-loading-content h1{margin:0 0 22px;font:600 clamp(32px,6vw,48px)/1 "Pixelify Sans",monospace;letter-spacing:4px;text-shadow:3px 3px #0a0c20}.initial-loading-content h1 span{color:#edc58e}.initial-loading-status{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px;font-size:14px;letter-spacing:1px}.initial-loading-status b{color:#f4cd7e;font-size:20px}.initial-loading-track{box-sizing:border-box;height:20px;padding:3px;background:#141326;border:2px solid #b39a84;box-shadow:3px 3px #090c1c,inset 1px 1px #3b304c}.initial-loading-track i{display:block;height:100%;background:repeating-linear-gradient(90deg,#dbb980 0 10px,#a67c64 10px 12px);box-shadow:inset 0 2px #f1cc89}.initial-loading-tip{min-height:2.7em;margin:16px 0 0;font:16px/1.35 Pixelify Sans,monospace;color:#c7bbd5}.initial-loading-content small{display:block;font-size:12px;color:#cbaa85}.reduce-motion .initial-loading{transition:none}@media(prefers-reduced-motion:reduce){.initial-loading{transition:none}}.journey-scene{position:absolute;inset:0;overflow:hidden;pointer-events:none;background:#10172c;contain:layout paint}.journey-scene>svg{display:block;width:100%;height:100%;image-rendering:pixelated}.journey-star{animation:journey-twinkle 6s steps(4,end) infinite}.journey-cloud{animation:journey-cloud-drift 48s steps(24,end) infinite alternate}.journey-cloud--far{animation-duration:66s;animation-direction:alternate-reverse}.journey-window,.journey-warmth,.journey-gate-glow{animation:journey-warm-light 5s steps(4,end) infinite}.journey-flame-a{animation:journey-flame 1s steps(1,end) infinite}.journey-flame-b{opacity:0;animation:journey-flame 1s steps(1,end) infinite reverse}.journey-boughs{animation:journey-branches 9s steps(2,end) infinite alternate}.journey-meteor{opacity:0;animation:journey-shooting-star 29s steps(12,end) infinite}.journey-firefly{opacity:0;animation:journey-fireflies 11s steps(12,end) infinite}@keyframes journey-twinkle{0%,to{opacity:.4}50%{opacity:1}}@keyframes journey-cloud-drift{0%{transform:translate(-6px)}to{transform:translate(8px)}}@keyframes journey-warm-light{0%,to{opacity:.7}40%{opacity:1}65%{opacity:.8}}@keyframes journey-flame{0%,to{opacity:1}50%{opacity:0}}@keyframes journey-branches{0%{transform:translate(0)}to{transform:translate(1px)}}@keyframes journey-shooting-star{0%,64%,69%,to{opacity:0;transform:translate(0)}64.2%{opacity:.8;transform:translate(0)}68%{opacity:0;transform:translate(-60px,24px)}}@keyframes journey-fireflies{0%,to{opacity:0;transform:translateY(4px)}30%{opacity:.65}70%{opacity:.35}90%{opacity:0;transform:translate(var(--journey-drift, 4px),-7px)}}.journey-scene--still *,.reduce-motion .journey-scene *{animation:none!important}.journey-scene--still .journey-meteor,.journey-scene--still .journey-firefly,.reduce-motion .journey-meteor,.reduce-motion .journey-firefly{display:none}@media(prefers-reduced-motion:reduce){.journey-scene *{animation:none!important}.journey-scene .journey-meteor,.journey-scene .journey-firefly{display:none}}.auth-screen.auth-screen--journey{overflow:hidden;background:#10172c;grid-template-columns:minmax(0,1fr)}.auth-screen.auth-screen--journey>*{min-width:0}.auth-screen.auth-screen--journey .auth-card{min-width:0}.auth-screen.auth-screen--journey>.journey-scene{z-index:-3}.auth-screen.auth-screen--journey .auth-vignette{background:linear-gradient(90deg,#080e2010 28%,#0d102b26 59%,#0b102b73),linear-gradient(0deg,#080d20b0,transparent 32%,transparent 80%,#080c2066)}.auth-screen.auth-screen--journey .auth-card{background:#1b1932ee;border:2px solid #766184;box-shadow:inset 0 2px #a78ea625,4px 4px #0b0c20}.auth-screen.auth-screen--journey .auth-card:before{background:#b99d84}.auth-screen.auth-screen--journey .auth-card h2{color:#f0d8b1}.auth-screen.auth-screen--journey .auth-card>.muted{color:#b9afc9}.auth-screen.auth-screen--journey .auth-security{color:#aaa0ba;border-color:#66567466}.auth-screen.auth-screen--journey .auth-header,.auth-screen.auth-screen--journey .auth-footer{position:relative}.auth-header .wordmark .auth-wordmark-name{color:#f0d8b1;font-weight:inherit}@supports (background-clip: text){.auth-header .wordmark .auth-wordmark-name{background:linear-gradient(180deg,#fff1cd,#eac489 52%,#c89265);-webkit-background-clip:text;background-clip:text;color:transparent;text-shadow:none;filter:drop-shadow(2px 2px 0 #08050e)}}.auth-screen.auth-screen--journey .auth-header .server-tag{background:#18182dcc;border-color:#72607999;color:#c4b6cd}.auth-screen.auth-screen--journey .auth-footer{color:#b6a4bb;background:#10152680;border-color:#6c5b793d}.auth-screen.auth-screen--journey .auth-footer b{color:#e0ba84}.loading:has(>.journey-scene){background:#10172c;isolation:isolate}.loading>.journey-scene{z-index:-2}.loading:has(>.journey-scene):before{z-index:-1;background:linear-gradient(transparent 36%,#0b102275 60%,#0a0d20e8)}.loading:has(>.journey-scene) h1 span{color:#edc58e}.loading:has(>.journey-scene) .loading-track{height:16px;padding:3px;border:2px solid #b39a84;background:#131326;box-shadow:3px 3px #090c1c}.loading:has(>.journey-scene) .loading-track i{height:100%;background:#dbb980}.reduce-motion .loading:has(>.journey-scene) .loading-track i{animation:none;margin:auto}@media(prefers-reduced-motion:reduce){.loading:has(>.journey-scene) .loading-track i{animation:none;margin:auto}}@media(max-width:760px)and (orientation:portrait){.journey-scene--portrait .journey-moon{transform:translate(300px,20px)}.auth-screen.auth-screen--journey .auth-content{flex-direction:row;justify-content:center;align-items:flex-end;padding:10px 0 24px}.auth-screen.auth-screen--journey .auth-card{background:#1b1932ed;padding:18px 22px}.auth-screen.auth-screen--journey .auth-card .crest{display:none}.auth-screen.auth-screen--journey .auth-card h2{font-size:23px}.auth-screen.auth-screen--journey .auth-card>.eyebrow{margin-bottom:10px}.auth-screen.auth-screen--journey .auth-card>.muted,.auth-screen.auth-screen--journey .auth-tabs,.auth-screen.auth-screen--journey .auth-card label{margin-bottom:12px}.auth-screen.auth-screen--journey .auth-security{margin-top:12px;padding-top:10px}.auth-screen.auth-screen--journey .auth-card .forgot{margin-bottom:10px}.auth-screen.auth-screen--journey .auth-card .primary{min-height:44px;padding-top:10px;padding-bottom:10px}}@media(max-height:700px){.auth-screen.auth-screen--journey .auth-content{align-items:center;padding:6px 0}}@media(max-width:760px)and (max-height:680px){.auth-screen.auth-screen--journey .auth-card{padding:14px 18px}.auth-screen.auth-screen--journey .auth-card h2{font-size:22px}}.evolution-crest-button{display:flex;flex-direction:column;gap:6px;width:100%;margin:14px 0 0;padding:10px 6px;background:#241c30;border:1px solid #7b6247;color:#dabc7c;text-align:center;font:12px/1.3 Pixelify Sans,monospace}.evolution-crest-button svg{width:36px;height:40px}.evolution-crest-button small{font:10px/1.3 Pixelify Sans,monospace;color:#bdaec9}.evolution-crest-button.evolution-available,.city-hud .city-player-card.evolution-available{animation:evolution-ready 2.6s steps(8,end) infinite}.evolution-overlay{position:fixed;inset:0;z-index:500;display:grid;place-items:center;background:#090615e8;padding:18px;animation:evolution-darken .42s ease-out both}.evolution-window{position:relative;width:min(900px,100%);max-height:calc(100dvh - 36px);overflow:auto;border:2px solid #aa8754;background:#1a1427;box-shadow:inset 0 0 0 3px #38283f,5px 5px #080610;color:#eee3db;padding:24px;outline:none;font-family:Pixelify Sans,monospace}.evolution-window>header{text-align:center;margin-bottom:18px;padding:0 24px}.evolution-window h2{font:600 29px/1.1 Pixelify Sans,monospace;margin:6px 0;color:#eed49b}.evolution-close{position:absolute;right:9px;top:9px;z-index:5;width:32px;height:32px;padding:0;font:24px/1 monospace}.evolution-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;animation:evolution-cards-in .4s steps(6,end) both}.evolution-card{min-width:0;padding:16px;background:#231a30;border:2px solid #5d455c;box-shadow:inset 0 0 0 2px #130f20;display:flex;flex-direction:column;align-items:center}.evolution-card.selected{border-color:var(--class-color);box-shadow:inset 0 0 0 2px #5a3d51,0 0 12px #d9b77d20}.evolution-card h3{font:600 27px/1.15 Pixelify Sans,monospace;margin:6px 0;color:var(--class-color)}.evolution-card>p{font:13px/1.4 Pixelify Sans,monospace;min-height:38px;text-align:center;color:#c5b6c9}.evolution-card-portrait{position:relative;width:112px;height:150px;display:grid;place-items:center;background:radial-gradient(ellipse at 50% 75%,#77529333,transparent 65%)}.evolution-card-portrait .sprite{width:96px;height:144px;image-rendering:pixelated}.evolution-card ul{list-style:none;padding:0;margin:10px 0 16px;align-self:stretch;flex:1}.evolution-card li{padding:9px 0;border-top:1px solid #5b405c80;font:12px/1.4 Pixelify Sans,monospace}.evolution-card li strong{display:block;color:var(--class-color);font-size:14px}.evolution-card li strong small{float:right;color:#e4cd91;font-size:11px}.evolution-card li span{display:block;color:#c5b6c9;margin-top:4px}.evolution-card>button{width:100%;font:13px Pixelify Sans,monospace}.evolution-confirmation{position:sticky;bottom:-24px;margin:16px -8px -12px;padding:10px 8px 4px;background:#1a1427f5;text-align:center;border-top:1px solid #64465e}.evolution-confirmation>p{font:12px/1.35 Pixelify Sans,monospace;color:#d4bd94;margin:4px 0 9px}.evolution-confirmation button{font:14px Pixelify Sans,monospace}.evolution-confirmation .error{color:#efa1a1}.evolution-ceremony{position:relative;isolation:isolate;height:350px;display:grid;place-items:center;overflow:hidden}.evolution-original,.evolution-transformed{grid-area:1/1;z-index:2}.evolution-ceremony .sprite{width:128px;height:192px;image-rendering:pixelated;filter:drop-shadow(0 6px #100c1a)}.evolution-circle{position:absolute;top:50%;left:50%;width:230px;height:230px;translate:-50% -50%;border:3px solid var(--evolution-color);clip-path:polygon(20% 0,80% 0,80% 8%,92% 8%,92% 20%,100% 20%,100% 80%,92% 80%,92% 92%,80% 92%,80% 100%,20% 100%,20% 92%,8% 92%,8% 80%,0 80%,0 20%,8% 20%,8% 8%,20% 8%);opacity:.5;animation:evolution-ring 1.8s steps(10,end) both}.evolution-rays{position:absolute;width:280px;height:280px;top:50%;left:50%;translate:-50% -50%;background:radial-gradient(ellipse,var(--evolution-color),transparent 60%);opacity:.18}.evolution-burst{position:absolute;z-index:3;width:36px;height:36px;left:50%;top:50%;background:#fff2cf;translate:-50% -50%;box-shadow:0 -18px var(--evolution-color),0 18px var(--evolution-color),-18px 0 var(--evolution-color),18px 0 var(--evolution-color);animation:evolution-flash 1.8s steps(10,end) both}.evolution-particle{position:absolute;width:5px;height:5px;background:var(--evolution-color);top:50%;left:50%;z-index:3;animation:evolution-particle 1.5s steps(10,end) both}.evolution-ceremony>p{position:absolute;bottom:4px;left:0;right:0;text-align:center;color:var(--evolution-color);font:20px Pixelify Sans,monospace;margin:0}.evolution-opening .evolution-original,.evolution-transforming .evolution-original{animation:evolution-vanish 1.8s steps(8,end) both}.evolution-transformed{animation:evolution-reveal 1.8s steps(8,end) both}.evolution-success{display:flex;flex-direction:column;align-items:center;text-align:center;gap:10px;padding:10px 12px 20px}.evolution-success .sprite{width:112px;height:168px}.evolution-success h3{font:600 32px Pixelify Sans,monospace;color:var(--evolution-color);margin:0}.evolution-success p{margin:0;color:#f0d698;font-size:16px}.evolution-success small{max-width:470px;color:#c9b8ce;font-size:12px;line-height:1.4;margin-bottom:10px}@keyframes evolution-ready{0%,to{border-color:#8a6b49;box-shadow:inset 0 0 0 2px #302437,0 0 3px #e7c56a22}50%{border-color:#efd18b;box-shadow:inset 0 0 0 2px #302437,0 0 9px #e7c56a66}}@keyframes evolution-darken{0%{background:#09061530}to{background:#090615e8}}@keyframes evolution-cards-in{0%{opacity:0;translate:0 8px}to{opacity:1;translate:0 0}}@keyframes evolution-ring{0%{scale:.7;opacity:0}40%,60%{scale:1;opacity:.6}to{scale:1.1;opacity:0}}@keyframes evolution-flash{0%,35%{opacity:0;scale:.2}55%{opacity:.95;scale:5}80%,to{opacity:0;scale:7}}@keyframes evolution-vanish{0%,35%{opacity:1;filter:brightness(1)}55%{opacity:1;filter:brightness(3)}65%,to{opacity:0;filter:brightness(2)}}@keyframes evolution-reveal{0%,60%{opacity:0}70%{opacity:1;filter:brightness(2)}to{opacity:1;filter:brightness(1)}}@keyframes evolution-particle{0%{opacity:0;translate:calc(var(--particle-x) * 1.2) calc(var(--particle-y) * 1.2)}30%{opacity:.8}70%{opacity:1;translate:0 0}to{opacity:0;translate:var(--particle-x) var(--particle-y)}}.evolution-reduced *{animation:none!important}.evolution-reduced :is(.evolution-rays,.evolution-particle,.evolution-burst,.evolution-circle){display:none}.evolution-reduced .evolution-transformed{opacity:1}.evolution-reduced .evolution-transforming .evolution-original{opacity:0}@media(max-width:700px){.evolution-overlay{padding:10px}.evolution-window{padding:16px;max-height:calc(100dvh - 20px)}.evolution-options{grid-template-columns:1fr;gap:12px}.evolution-window h2{font-size:24px}.evolution-card{padding:12px}.evolution-card-portrait{height:115px}.evolution-card-portrait .sprite{width:72px;height:108px}.evolution-card>p{min-height:0;margin:6px 0}.evolution-card ul{margin-bottom:10px}.evolution-confirmation{bottom:-16px}.evolution-ceremony{height:310px}}@media(prefers-reduced-motion:reduce){.evolution-available,.evolution-overlay,.evolution-options,.evolution-ceremony *{animation:none!important}.evolution-particle,.evolution-rays,.evolution-burst{display:none}}.modal.ally-picker{width:min(490px,100%)}.ally-picker-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:10px;margin:16px 0}.ally-picker-toolbar button{padding:8px;font-size:10px}.online-player-list{display:grid;gap:8px}.online-player-list article{display:flex;align-items:center;gap:12px;justify-content:space-between;padding:12px;background:#171328;border:1px solid #645078}.online-player-list small{display:block;margin-top:5px;color:var(--muted);font-size:10px}.online-player-list button{padding:9px;font-size:10px;flex-shrink:0}.load-online{margin-top:14px;width:100%}.expedition-invitation{position:fixed;z-index:125;top:92px;right:18px;width:min(350px,calc(100vw - 24px));padding:18px;background:#211a32;border:2px solid #b49068;box-shadow:5px 5px #090611}.expedition-invitation h3{font-size:20px;line-height:1.2;margin:10px 0}.expedition-invitation>p:not(.eyebrow){font-size:12px;line-height:1.5}.expedition-invitation .eyebrow{font-size:9px}.expedition-invitation .button-row{margin-bottom:0}.party-grid button.party-card.empty{width:100%;color:var(--gold);flex-direction:column;min-height:190px;border-style:dashed}@media(max-width:600px){.expedition-invitation{top:82px;right:12px;padding:14px}}.modal.torment-modal,.lobby.panel.torment-lobby{border-color:#9c536d;background:#21182f;color:#eee3ef}.modal.torment-modal>header h2,.torment-lobby>h1{color:#f0a3ab}.torment-portal,.torment-details,.torment-actions,.torment-progress{display:grid;gap:12px}.torment-details,.torment-actions,.torment-progress{grid-template-columns:repeat(2,minmax(0,1fr))}.torment-progress,.torment-facts,.torment-intro{margin:0}.torment-intro,.torment-details p{color:#c8b7d0}.torment-progress>div,.torment-details section{padding:12px;background:#191427;border:1px solid #68415f;box-shadow:inset 0 2px #ad64772c}.torment-progress dt,.torment-facts dt{color:#d3bfd7}.torment-progress dd{font:600 26px Pixelify Sans,monospace;color:#f4a8ad;margin:4px 0 0}.torment-details h3{color:#eb9daa;font-size:17px;margin:0 0 8px}.torment-details p{font-size:12px;margin:8px 0 16px;line-height:1.4}.torment-facts>div{display:flex;justify-content:space-between;gap:8px;padding:4px 0;border-bottom:1px solid #43304b}.torment-facts dd{text-align:right;color:#f2d3e2;margin:0}.torment-tier{display:grid;gap:6px}.torment-tier-entry{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:8px}.torment-tier-entry button{min-height:46px}.torment-portal .join-code,.torment-lobby .torment-details{margin-top:8px}@media(max-width:680px){.torment-details{grid-template-columns:minmax(0,1fr)}}.lobby.panel{position:relative;isolation:isolate}.lobby>.battle-world{z-index:-1;overflow:hidden}.lobby>.battle-world:after{background:linear-gradient(#100d20c9,#100d20b8 45%,#100d20e3)}.lobby-map-heading{display:flex;justify-content:space-between;align-items:baseline;gap:4px}.lobby-recommended{color:#f18c91;font:8px Pixelify Sans,monospace;white-space:nowrap;text-align:right}@media(max-width:440px){.lobby-recommended{font-size:7px}}.game-shell.home-view{position:relative}.city-bottom.city-chat-dock[hidden]{display:none}.home-view .city-bottom.city-chat-dock{bottom:58px;align-items:flex-end;gap:8px}.game-shell.lobby-chat-view{display:flex;flex-direction:column;height:100dvh;min-height:0;padding-bottom:74px}.lobby-chat-view>.game-header{flex-shrink:0}.lobby-chat-scroll{display:flow-root;flex:1;min-height:0;overflow:auto}.lobby-chat-view:has(.city-chat-panel) .lobby-chat-scroll{padding-bottom:calc(clamp(80px,30dvh,240px) + 88px)}.lobby-chat-view .city-bottom.city-chat-dock{position:relative;z-index:1;flex:0 0 99px;align-items:flex-end;padding:10px 22px;background:linear-gradient(transparent,#100d18e8);pointer-events:none}@media(max-width:760px){.home-view .city-bottom.city-chat-dock{bottom:60px}.game-shell.lobby-chat-view{padding-bottom:70px}.lobby-chat-view .city-bottom.city-chat-dock{padding-inline:12px}}.city-bottom .city-chat{position:relative;display:block;flex:0 1 32rem;min-width:0;pointer-events:auto;color:#ece0f1;background:#100e1bd9;border:1px solid #705781;box-shadow:3px 3px #090711bb}.city-bottom .city-chat-toggle{width:100%;min-height:32px;display:flex;justify-content:flex-start;gap:8px;padding:5px 9px;color:#ecc686;background:#231b32;border:0;box-shadow:inset 0 1px #685475;font:600 14px/1 Pixelify Sans,monospace}.city-chat-toggle svg:last-child{margin-left:auto}.city-chat-preview{cursor:pointer;min-height:30px}.city-chat-preview ol,.city-chat-history{padding:5px 9px;margin:0;list-style:none;font:400 14px/1.35 Pixelify Sans,monospace}.city-chat li b{color:#efc988}.city-chat-preview li{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.city-chat-muted{color:#c1adc9}.city-chat-preview>p{margin:0;padding:5px 9px;font-size:12px}.city-chat-panel{position:absolute;display:flex;flex-direction:column;bottom:100%;left:-1px;right:-1px;z-index:4;background:#161124ed;border:1px solid #705781;border-bottom:0;box-shadow:3px -3px #09071180;padding:4px 0 0}.city-chat-history{height:clamp(80px,30dvh,240px);overflow:auto;overscroll-behavior:contain;overflow-wrap:anywhere;scrollbar-color:#78578a #1b1429;scrollbar-width:thin}.city-chat-history li{padding:3px 0}.city-chat form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px;border-top:1px solid #513963;padding:7px}.city-chat form input{min-width:0;min-height:35px;padding:6px;font-size:13px}.city-chat form button,.city-chat-connection button{font-size:10px;padding:5px 8px}.city-chat-notice,.city-chat-connection{color:#f0bf92;font-size:11px;margin:0;padding:0 7px 7px}.city-chat-connection p{margin:0 0 5px}.city-chat-dock>.text-button{margin-left:auto;flex-shrink:0}@media(max-width:520px){.city-bottom .city-chat{flex-basis:30rem}.city-chat-panel{width:min(460px,calc(100vw - 24px))}.city-chat form input{font-size:16px}.city-chat form button{min-height:40px}}.item-detail .item-visual-set{color:var(--pixel-gold, #ebc787)}.item-lock-icon{display:block;width:24px;height:24px;flex-shrink:0}.inventory-lock-mark{position:absolute;top:2px;left:2px;z-index:2;color:#ebc787;background:#211a31dc;pointer-events:none}.inventory-lock-mark .item-lock-icon{width:13px;height:13px}.gear-modal .item-detail .button-row .item-lock-button{display:inline-flex;align-items:center;justify-content:center;flex:0 0 36px;min-width:36px;padding:5px;color:#b3a0bd}.gear-modal .item-detail .button-row .item-lock-button[aria-pressed=true],.item-detail .item-lock-message{color:var(--pixel-gold, #ebc787)}.item-detail .item-lock-message{font-size:11px;line-height:1.4}.modal.gear-modal .inventory-capacity{display:flex;align-items:center;gap:8px}.modal.gear-modal .inventory-expand{width:28px;height:28px;min-height:0;padding:0;font-size:20px}.modal.gear-modal .inventory-pagination{display:flex;gap:10px;align-items:center;justify-content:center;padding:6px 0;font-size:10px}.modal.gear-modal .inventory-pagination button{padding:3px 12px;font-size:18px}.modal.gear-modal .inventory-empty{border:1px solid #443653;background:#151020;box-shadow:inset 2px 2px #090710}.modal.gear-modal .inventory-grid .item-icon>small{display:none}.inventory-expand-backdrop{position:fixed;inset:0;z-index:130;display:grid;place-items:center;padding:20px;background:#090610df}.inventory-expand-dialog{width:min(440px,100%);padding:24px;border:2px solid #ad8b65;background:#211a31;box-shadow:5px 5px #080610}@media(min-width:761px){section.modal.gear-modal{width:min(1480px,100%);height:min(760px,calc(100dvh - 32px));max-height:calc(100dvh - 32px);overflow:visible}.modal.gear-modal .gear-layout{flex:1;display:grid;grid-template-columns:clamp(185px,20vw,250px) minmax(0,1fr);gap:18px;min-height:0}.modal.gear-modal .gear-character{min-height:0;padding-right:16px;display:flex;flex-direction:column}.modal.gear-modal .gear-character .portrait-stage{height:clamp(130px,22vh,195px);min-height:0}.modal.gear-modal .gear-character .portrait-stage .sprite{width:128px;height:190px;max-height:100%}.modal.gear-modal .equipment-slots{gap:8px;margin:10px 0;grid-template-columns:repeat(3,minmax(0,1fr))}.modal.gear-modal .equipment-slots button{min-width:0;min-height:68px;padding:5px}.modal.gear-modal .equipment-slots .item-icon{width:48px;height:48px}.modal.gear-modal .equipment-slots .sprite.item{width:42px;height:42px}.modal.gear-modal .gear-character h3{margin:8px 0}.modal.gear-modal .gear-character .derived-grid{margin:10px 0 0;gap:7px}.modal.gear-modal .gear-character .derived-grid b{font-size:16px}.modal.gear-modal .inventory-main{display:grid;grid-template-columns:minmax(0,1fr) clamp(200px,21vw,280px);grid-template-rows:auto minmax(148px,1fr) auto auto;gap:10px 16px;min-height:0}.modal.gear-modal .inventory-toolbar{grid-column:1/-1;margin:0;flex-wrap:wrap}.modal.gear-modal .inventory-main .inventory-grid{grid-column:1;grid-row:2;grid-template-columns:repeat(10,minmax(0,1fr));grid-auto-rows:min-content;align-content:start;gap:4px;padding:8px;overflow:visible;min-height:0;scrollbar-gutter:auto}.modal.gear-modal .inventory-grid>button{min-width:0;padding:0;width:100%;height:auto;aspect-ratio:1}.modal.gear-modal .inventory-empty{aspect-ratio:1}.modal.gear-modal .inventory-grid .item-icon{width:100%;height:100%;padding:2px}.modal.gear-modal .inventory-grid .sprite.item{width:100%;height:100%;object-fit:contain}.modal.gear-modal .inventory-pagination{grid-column:1;grid-row:3}.modal.gear-modal .supplies{grid-column:1;grid-row:4;margin:0;padding:8px 0;display:flex;flex-wrap:wrap;gap:6px 12px}.modal.gear-modal .supplies .eyebrow{flex-basis:100%;margin:0}.modal.gear-modal .item-detail{grid-column:2;grid-row:2/5;border-top:0;border-left:1px solid #4c3b5d;padding:0 0 0 14px;margin:0;min-width:0;font-size:11px}.modal.gear-modal .item-detail h3{font-size:19px;margin:4px 0}.modal.gear-modal .item-detail .item-title .item-icon{width:48px;height:48px;flex-shrink:0}.modal.gear-modal .item-detail .affix-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}.modal.gear-modal .item-detail .button-row{gap:6px;flex-wrap:wrap}.modal.gear-modal .item-detail .button-row button{padding:8px;font-size:10px}.modal.gear-modal .item-detail .confirmation{padding:9px;margin-top:9px}.modal.gear-modal .item-detail-empty{display:flex;flex-direction:column;justify-content:center}.modal.gear-modal .vanity-grid{min-height:0;overflow:auto}}@media(max-width:760px){.modal.gear-modal .inventory-grid{grid-template-columns:repeat(5,minmax(0,1fr))}.modal.gear-modal .inventory-empty{min-height:48px}.modal.gear-modal .inventory-toolbar{flex-wrap:wrap}.modal.gear-modal .item-detail-empty{display:none}}.modal.encyclopedia-modal{width:min(1180px,100%);height:min(860px,calc(100dvh - 40px));max-height:calc(100dvh - 40px);display:flex;flex-direction:column;overflow:hidden;padding:24px}.modal.encyclopedia-modal>header{flex-shrink:0;margin-bottom:10px;padding-bottom:13px}.knowledge-encyclopedia{display:flex;flex-direction:column;flex:1;min-height:0;overflow:hidden}.knowledge-encyclopedia>.knowledge-tabs{flex-shrink:0;margin:0 0 14px}.knowledge-tabs button{min-height:42px}.encyclopedia-pane{flex:1;min-height:0}.encyclopedia-pane[hidden]{display:none}.encyclopedia-pane--creatures{overflow-y:auto;overscroll-behavior:contain;padding-right:5px}.encyclopedia-pane--archives{display:flex;overflow:hidden}.archives-view{display:flex;flex-direction:column;flex:1;gap:12px;min-width:0;min-height:0;font-size:12px}.archives-heading{display:flex;gap:14px;justify-content:space-between;align-items:end;flex-shrink:0}.archives-heading .eyebrow{display:flex;align-items:center;gap:7px;margin:0 0 4px;color:var(--gold)}.archives-heading h2{font-family:Pixelify Sans,monospace;font-size:25px;margin:0}.archives-heading>span{color:var(--muted);font-size:11px;white-space:nowrap;padding-bottom:4px}.archives-toolbar{display:flex;gap:10px;flex-shrink:0}.archives-search{display:flex;align-items:center;gap:10px;flex:1;min-width:0;background:#141222;border:1px solid #5c4b70;padding:0 12px}.archives-search svg{color:#b59a70;flex-shrink:0}.encyclopedia-modal .archives-search input{width:100%;min-width:0;border:0;outline-offset:-3px;background:transparent;box-shadow:none;padding:11px 0;margin:0;font-size:12px}.archives-toolbar>select{display:none}.archives-categories{display:flex;gap:5px;flex-wrap:wrap;flex-shrink:0}.archives-categories button{padding:9px 11px;font-size:10px;background:#211b31;border:1px solid #554467;color:#c2b3ca}.archives-categories button.selected{background:#3b2f44;border-color:#b59663;color:#f1d394}.archives-layout{display:grid;grid-template-columns:minmax(235px,31%) minmax(0,1fr);gap:14px;flex:1;min-height:0}.archives-list,.archives-detail{min-width:0;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-color:#756080 #181424;border:1px solid #514160}.archives-list{padding:8px;background:#171322}.archive-row{display:flex;width:100%;align-items:center;gap:10px;margin-bottom:7px;text-align:left;background:#231d33;border:1px solid #45384f;padding:10px;box-shadow:inset 1px 1px #45374e}.archive-row:hover{border-color:#947a9b}.archive-row.selected{border-color:#c6a76e;background:#332839;box-shadow:inset 2px 0 #d2ad70}.archive-row>span:not(.archive-icon){min-width:0}.archive-row strong{display:block;font-size:12px;font-weight:600;line-height:1.4;overflow-wrap:anywhere}.archive-row small{display:block;color:#b7a5bd;font-size:9px;margin-top:4px;line-height:1.5}.archive-row:has(.archive-set-thumbs){display:grid;grid-template-columns:1fr;gap:4px}.archive-row:has(.archive-set-thumbs)>small{color:#d8b978;font-size:8px;letter-spacing:.6px}.archive-icon{display:inline-flex;align-items:center;justify-content:center;width:46px;height:46px;border:1px solid #776187;background:#14111f;box-shadow:inset 2px 2px #080813;flex-shrink:0}.archives-view .archive-icon .sprite.item{width:36px;height:36px;max-width:100%;object-fit:contain;image-rendering:pixelated}.archive-set-thumbs{display:flex;gap:6px}.archive-set-thumbs .archive-icon{width:36px;height:36px}.archive-set-thumbs .archive-icon .sprite.item{width:30px;height:30px}.archives-detail{padding:18px 20px;background:#201a2d}.archives-detail section{margin-top:20px}.archives-detail h3{font-family:Pixelify Sans,monospace;font-size:24px;margin:0 0 5px;line-height:1.15}.archives-detail h4{color:#e6c986;font-size:11px;letter-spacing:.7px;text-transform:uppercase;margin:0 0 10px}.archives-detail h5{color:#dcc2dd;font-size:12px;margin:0 0 10px}.archives-detail p{line-height:1.6;margin:8px 0;overflow-wrap:anywhere}.archives-detail .muted{font-size:11px}.archive-item-heading{display:flex;align-items:center;gap:14px;margin:0 0 14px}.archive-item-heading .archive-icon{width:64px;height:64px}.archives-view .archive-item-heading .sprite.item{width:50px;height:50px}.archive-item-heading .eyebrow{font-size:8px;color:#c3a77f;margin:0 0 6px}.archive-item-heading p:last-child{margin:0;color:#ac9bba;font-size:10px}.archive-facts{display:grid;grid-template-columns:1fr 1fr;gap:1px;padding:1px;background:#493a55;margin:16px 0}.archive-facts>div{background:#231c31;padding:10px;min-width:0}.archive-facts dt{font-size:9px;color:#b7a2bf;margin-bottom:5px}.archive-facts dd{margin:0;font-size:11px;line-height:1.5;overflow-wrap:anywhere}.archive-rarities,.archive-affixes,.archive-intrinsic,.archive-rarity-counts{display:flex;flex-wrap:wrap;gap:6px}.archive-rarities>span,.archive-affixes>span,.archive-intrinsic>span,.archive-rarity-counts>span{padding:5px 7px;background:#171222;font-size:10px;border:1px solid #4c3e5c;line-height:1.5}.archive-intrinsic>span{color:#a8cea7}.archive-intrinsic small{color:#a599aa;margin-left:3px}.archive-explanation{margin-top:10px;border-top:1px solid #493b56;padding-top:10px}.archive-explanation summary,.archive-set-variants summary{cursor:pointer;color:#c8adce;font-size:11px;line-height:1.5;padding-bottom:6px}.archive-explanation p{color:#ab9bb7;font-size:10px}.archive-explanation .table-scroll{overflow-x:auto}.archive-explanation th,.archive-explanation td{padding:7px 5px;font-size:10px}.archive-source{padding:12px;margin-top:10px;border:1px solid #53405a;border-left:2px solid #a18261;background:#191524}.archive-source p{font-size:11px}.archive-encounter{display:flex;justify-content:space-between;align-items:start;gap:10px;border-top:1px solid #352b43;padding:9px 0}.archive-encounter b{display:block;color:#e1ceaa;font-size:10px}.archive-encounter span{display:block;color:#b9a8c2;font-size:10px;margin-top:4px;line-height:1.6}.archive-encounter>strong{color:#e7c987;font-size:11px;white-space:nowrap}.archives-detail .archive-footnote{font-size:10px;color:#ad9db7}.archive-consumable-effect{padding:12px;border:1px solid #6f5a7d;background:#2b2339;color:#ecd4a4}.archive-visual{display:flex;align-items:center;gap:6px;color:#eac783;font-size:11px}.archive-set-heading{padding-bottom:10px}.archive-set-heading .eyebrow{color:#ac91b7;font-size:9px}.archive-set-pieces{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin:8px 0 15px}.archive-set-pieces>button{display:flex;flex-direction:column;align-items:center;padding:10px 5px;gap:6px;background:#1b1627;border:1px solid #564462;min-width:0;text-align:center}.archive-set-pieces>button.selected{border-color:#c9ac75;background:#352b3e}.archive-set-pieces small{font-size:8px;color:#c6b0cc}.archive-set-pieces b{font-size:10px;font-weight:500;line-height:1.4;overflow-wrap:anywhere}.archive-set-variants{margin-bottom:20px}.archive-set-variants>div{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-top:5px}.archive-set-variants button{display:block;text-align:left;padding:8px;font-size:10px;background:#241b30;border:1px solid #4f3d5c;line-height:1.4}.archive-set-variants button.selected{border-color:#c9ac75}.archive-set-variants small{display:block;color:#bca9c6;margin-top:5px;font-size:9px}.archives-empty{display:flex;align-items:center;justify-content:center;text-align:center;flex-direction:column;padding:25px 14px;gap:12px;color:#baa7c8}.archives-empty h3{font-size:20px}.archive-back{display:none}@media(max-width:760px){.modal.encyclopedia-modal{padding:14px;height:calc(100dvh - 20px);max-height:calc(100dvh - 20px)}.modal.encyclopedia-modal>header{padding-bottom:13px;margin-bottom:5px}.knowledge-tabs{margin-bottom:10px}.knowledge-tabs button{padding:10px 14px;font-size:10px}.archives-view{gap:9px}.archives-heading{align-items:start;gap:8px}.archives-heading h2{font-size:20px}.archives-heading>span{font-size:9px;text-align:right;white-space:normal;line-height:1.5;max-width:90px}.archives-heading .eyebrow{font-size:8px}.archives-toolbar{flex-wrap:wrap;gap:7px}.archives-search{flex:1 1 100%}.encyclopedia-modal .archives-search input{padding:9px 0;font-size:12px}.archives-toolbar>select{display:block;width:100%;min-height:38px;font-size:11px;padding:7px}.archives-categories{display:none}.archives-layout{display:block;overflow:hidden}.archives-list,.archives-detail{height:100%}.archives-detail{display:none;padding:12px}.archives-layout[data-detail=true]>.archives-detail{display:block}.archives-layout[data-detail=true]>.archives-list{display:none}.archive-back{position:sticky;top:-12px;z-index:1;display:flex;align-items:center;gap:7px;width:calc(100% + 24px);margin:-12px -12px 16px;padding:12px;border:0;border-bottom:1px solid #665077;background:#211a2e;font-size:10px;color:#e4c888}.archives-detail h3{font-size:21px}.archive-set-pieces{gap:5px}.archive-set-pieces b{font-size:9px}.archive-facts{grid-template-columns:1fr}.archive-item-heading{gap:10px}.archive-item-heading .archive-icon{width:54px;height:54px}.archive-set-variants>div{grid-template-columns:1fr}}.codex-world-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:12px 0 20px}.codex-world-heading>div{min-width:0}.codex-world-heading h2{margin:0 0 8px}.codex-world-heading p{margin:0}.encyclopedia .codex-world-chest{flex:0 0 92px;min-height:96px;display:flex;flex-direction:column;gap:8px;padding:10px 6px;border-color:#715238;background:#201827;font:10px Pixelify Sans,monospace}.codex-chest-art{display:block;width:54px;height:45px;overflow:visible;flex-shrink:0}.codex-chest-lid{transform-origin:24px 18px}.codex-chest-open .codex-chest-lid{transform:translateY(-10px) rotate(-8deg)}.encyclopedia .codex-world-chest.codex-locked{opacity:.65;filter:saturate(.65)}.encyclopedia .codex-world-chest.codex-claimed{opacity:1;color:#a997b3}.encyclopedia .codex-world-chest.codex-available{color:#ffe19a;border-color:#d8b064;box-shadow:0 0 13px #e8b65542,inset 0 0 0 1px #74552d}.codex-available .codex-chest-art{animation:codex-small-shake 1.8s steps(5,end) infinite;filter:drop-shadow(0 0 5px #f6c56a99)}.game-shell .bottom-nav>button.encyclopedia-reward-notice{color:#ffe09a;box-shadow:inset 0 2px #bd934f;animation:codex-menu-glow 2.2s ease-in-out infinite}.game-shell .bottom-nav>button.encyclopedia-reward-notice svg{filter:drop-shadow(0 0 4px #f6c56a88)}.codex-reveal-backdrop{position:fixed;inset:0;z-index:600;display:grid;place-items:center;padding:16px;background:#090612ed}.codex-reveal{position:relative;width:min(560px,100%);max-height:calc(100dvh - 32px);overflow-y:auto;padding:30px 24px 26px;border:2px solid #b58d53;box-shadow:5px 5px #030207,inset 0 0 0 3px #36283b;background:radial-gradient(ellipse at 50% 45%,#3a2442,#191222 70%);text-align:center}.codex-reveal>.eyebrow{padding:0 24px;font-size:9px}.codex-reveal>h2{font:500 clamp(22px,5vw,30px)/1.25 "Pixelify Sans",monospace;margin:10px 0 0;color:#e4c593}.codex-reveal .codex-reveal-close{position:absolute;right:10px;top:10px;z-index:5}.codex-reveal-scene{position:relative;height:290px;margin-top:10px}.codex-reveal-fall{position:absolute;left:50%;bottom:20px;width:192px;height:160px;margin-left:-96px;animation:codex-chest-drop 1s cubic-bezier(.3,.1,.6,1) both}.codex-reveal-shake{width:100%;height:100%;animation:codex-chest-shake 1s steps(8,end) 1s both}.codex-reveal-fall .codex-chest-art{width:100%;height:100%;filter:drop-shadow(0 8px 0 #08050d)}.codex-reveal-fall .codex-chest-lid{animation:codex-lid-open .65s steps(8,end) 1.95s both}.codex-reveal-light{position:absolute;inset:18px 12% 10px;background:radial-gradient(ellipse,#ffdf99a6,#b37be433 43%,transparent 70%);opacity:0;animation:codex-magic-light 1.2s ease-out 2.05s both;pointer-events:none}.codex-reveal-prize{position:absolute;bottom:140px;left:50%;margin-left:-48px;animation:codex-item-rise .95s steps(10,end) 2.45s both}.codex-reveal-prize .item-icon{width:96px;height:96px;background:#1b1225;box-shadow:0 0 18px #e9c27844}.codex-reveal-prize .sprite.item{width:80px;height:80px;object-fit:contain}.codex-reveal-description{animation:codex-prize-text .8s ease-out 2.65s both}.codex-reveal-description h3{font:500 25px/1.3 Pixelify Sans,monospace;margin:8px 0}.codex-reveal-description .eyebrow{margin:8px 0}.codex-reveal-description .muted{margin-bottom:0;font-size:12px}@keyframes codex-small-shake{0%,65%,to{translate:0}73%,89%{translate:-2px 0}81%,96%{translate:2px 0}}@keyframes codex-menu-glow{0%,to{background:#2b2130;text-shadow:0 0 4px #d9ad5755}50%{background:#463327;text-shadow:0 0 8px #efc26e88}}@keyframes codex-chest-drop{0%{translate:0 -55dvh;opacity:0}15%{opacity:1}70%{translate:0 0;scale:1}80%{translate:0 3px;scale:1.04 .96}90%{translate:0 -8px;scale:1}to{translate:0 0;opacity:1;scale:1}}@keyframes codex-chest-shake{0%,to{translate:0}15%,45%,75%{translate:-4px 0}30%,60%,90%{translate:4px -1px}}@keyframes codex-lid-open{0%{transform:translateY(0) rotate(0)}to{transform:translateY(-10px) rotate(-8deg)}}@keyframes codex-magic-light{0%{opacity:0;scale:.6}35%{opacity:1;scale:1.08}to{opacity:.5;scale:1}}@keyframes codex-item-rise{0%{opacity:0;translate:0 50px;scale:.7}to{opacity:1;translate:0 0;scale:1}}@keyframes codex-prize-text{0%{opacity:0;translate:0 6px}to{opacity:1;translate:0 0}}.codex-reveal-reduced .codex-reveal-fall,.codex-reveal-reduced .codex-reveal-shake,.codex-reveal-reduced .codex-chest-lid,.codex-reveal-reduced .codex-reveal-light,.codex-reveal-reduced .codex-reveal-prize,.codex-reveal-reduced .codex-reveal-description{animation:none}.codex-reveal-reduced .codex-reveal-light{opacity:.4}.reduce-motion .codex-available .codex-chest-art,.reduce-motion .bottom-nav>button.encyclopedia-reward-notice{animation:none}@media(prefers-reduced-motion:reduce){.codex-available .codex-chest-art,.game-shell .bottom-nav>button.encyclopedia-reward-notice,.codex-reveal-fall,.codex-reveal-shake,.codex-reveal-fall .codex-chest-lid,.codex-reveal-light,.codex-reveal-prize,.codex-reveal-description{animation:none}.codex-reveal-light{opacity:.4}}@media(max-width:480px){.codex-world-heading{gap:8px}.encyclopedia .codex-world-chest{flex-basis:78px;font-size:9px;padding:10px 3px}.codex-reveal{padding:24px 14px}.codex-reveal-scene{height:255px}.codex-reveal-fall{width:168px;height:140px;margin-left:-84px}.codex-reveal-prize{bottom:120px}}.evolution-glyph{color:var(--spell-color)}.spell-berserker_slash .spell-main{animation:none}.spell-berserker_fury .spell-main{width:110px;height:140px;left:-55px;top:-78px;animation-name:evolution-fury-flare}.spell-berserker_fury .spell-ring{width:94px;height:60px;left:-47px;top:-30px}.evo-cut-first{animation:evolution-cut .22s steps(5,end) var(--spell-hit) both}.evo-cut-second{animation:evolution-cut .22s steps(5,end) calc(var(--spell-hit) + .14s) both}.spell-necromancer_shackles .spell-main{width:100px;height:110px;left:-50px;top:-30px;transform-origin:bottom;animation-name:evolution-chain-rise}.spell-warlock_flame .spell-main{width:92px;height:115px;left:-46px;top:-58px;animation-name:evolution-profane-flare}.spell-paladin_aura .spell-main,.spell-oracle_omen .spell-main{animation-name:evolution-shield-appear}.spell-oracle_omen .spell-ring{width:106px;height:54px;left:-53px;top:-20px;border-width:4px}.spell-berserker_execution .spell-main,.spell-templar_spear .spell-main,.spell-templar_seal .spell-main,.spell-paladin_judgment .spell-main,.spell-templar_sentence .spell-main{display:none}.evolution-banner,.specter-apparition,.evolution-abyss-wave,.evolution-falling-weapon,.evolution-falling-meteor,.evolution-sky-sigil,.evolution-floor-sigil{position:absolute;pointer-events:none;color:var(--spell-color)}.evolution-banner{width:64px;height:96px;translate:-20px 0;animation:evolution-banner-rise 1.1s steps(8,end) both}.evolution-banner svg,.specter-apparition img,.specter-apparition svg{display:block;width:100%;height:100%;object-fit:contain;image-rendering:pixelated}.specter-apparition{width:96px;height:96px;margin:-48px;opacity:.85;filter:drop-shadow(2px 2px #211a37);animation:evolution-specter-charge 1.1s steps(12,end) both}.evolution-abyss-wave{width:94px;height:125px;margin-left:-47px;animation:evolution-wave-cross .75s steps(10,end) both}.evolution-falling-weapon{width:110px;height:140px;margin-left:-55px;animation:evolution-weapon-fall .8s steps(8,end) calc(var(--spell-hit) - .4s) both}.evolution-spear{width:65px;height:145px;margin-left:-32px}.evolution-falling-meteor{width:56px;height:56px;margin:-28px;animation:evolution-meteor-fall .5s steps(8,end) calc(var(--spell-hit) - .5s + var(--evo-delay)) both}.evolution-sky-sigil{width:76px;height:76px;margin:-38px;animation:evolution-sigil-light 1.05s steps(8,end) both}.evolution-great-sigil{width:112px;height:112px;margin:-56px}.evolution-holy-pillar{position:absolute;width:48px;margin-left:-24px;background:linear-gradient(90deg,transparent 0 15%,#e4b95c55 15% 30%,#ffdf99cc 30% 45%,#fff1c8ed 45% 60%,#ffdf99cc 60% 75%,#e4b95c55 75% 85%,transparent 85%);animation:evolution-pillar-strike .68s steps(7,end) calc(var(--spell-hit) - .16s) both}.evolution-floor-sigil{width:100px;height:55px;margin:-25px -50px;animation:evolution-seal-bloom .9s steps(8,end) calc(var(--spell-hit) - .26s) both}.evolution-drain-mote{position:absolute;width:7px;height:7px;background:var(--spell-color);box-shadow:3px 0 #e4d0f5,-3px 0 #8062ab;animation:evolution-drain-return .6s steps(10,end) calc(var(--spell-hit) + var(--evo-delay)) both}.evolution-restoring-spark{position:absolute;width:6px;height:6px;background:#fff0bc;box-shadow:0 3px var(--spell-color),3px 0 var(--spell-color),-3px 0 var(--spell-color),0 -3px var(--spell-color);animation:evolution-restoration-fall .55s steps(8,end) var(--evo-delay) both}.evolution-aurora{position:absolute;clip-path:polygon(25% 0,75% 0,75% 10%,84% 10%,84% 20%,92% 20%,92% 35%,100% 35%,100% 100%,0 100%,0 35%,8% 35%,8% 20%,16% 20%,16% 10%,25% 10%);background:linear-gradient(#fff0b538,#f4d8870d);animation:evolution-aurora-light 1.3s steps(9,end) both}@keyframes evolution-cut{0%{opacity:0;translate:5px -5px}25%,70%{opacity:1;translate:0 0}to{opacity:0;translate:-4px 4px}}@keyframes evolution-fury-flare{0%{opacity:0;scale:.7}30%,70%{opacity:.85;scale:1}to{opacity:0;scale:1.08}}@keyframes evolution-chain-rise{0%{opacity:0;translate:0 28px;scale:1 .5}30%,70%{opacity:1;translate:0 0;scale:1 1}to{opacity:0;translate:0 5px}}@keyframes evolution-profane-flare{0%{opacity:0;scale:.65 .5}20%,60%{opacity:1;scale:1 1}40%{scale:.95 1.1}to{opacity:0;scale:1.1 .8}}@keyframes evolution-shield-appear{0%{opacity:0;scale:.6}25%,65%{opacity:.9;scale:1}to{opacity:0;scale:1.12}}@keyframes evolution-banner-rise{0%{opacity:0;translate:-20px 24px}30%,75%{opacity:1;translate:-20px 0}to{opacity:0;translate:-20px -4px}}@keyframes evolution-specter-charge{0%{opacity:0;translate:-20px 7px;scale:.6}20%{opacity:.8;translate:-10px 0;scale:1}65%{opacity:.8;translate:var(--flight-x) var(--flight-y);scale:1}to{opacity:0;translate:var(--flight-x) var(--flight-y);scale:.5}}@keyframes evolution-wave-cross{0%{opacity:0;translate:0 0}15%{opacity:.8}75%{opacity:.8;translate:var(--flight-x) var(--flight-y)}to{opacity:0;translate:var(--flight-x) var(--flight-y)}}@keyframes evolution-weapon-fall{0%{opacity:0;translate:0 -75px}20%{opacity:1;translate:0 -60px}55%,70%{opacity:1;translate:0 10px}to{opacity:0;translate:0 15px}}@keyframes evolution-meteor-fall{0%{opacity:0;translate:0 0}20%{opacity:1}85%{opacity:1;translate:var(--flight-x) var(--flight-y)}to{opacity:0;translate:var(--flight-x) var(--flight-y)}}@keyframes evolution-sigil-light{0%{opacity:0;scale:.6}25%,70%{opacity:1;scale:1}to{opacity:0;scale:1.15}}@keyframes evolution-pillar-strike{0%{opacity:0;scale:.25 1}25%,60%{opacity:.9;scale:1 1}to{opacity:0;scale:.4 1}}@keyframes evolution-seal-bloom{0%{opacity:0;scale:.6}30%,65%{opacity:1;scale:1}to{opacity:0;scale:1.25}}@keyframes evolution-drain-return{0%{opacity:0;translate:0 0}15%{opacity:.9}85%{opacity:.9;translate:var(--flight-x) var(--flight-y)}to{opacity:0;translate:var(--flight-x) var(--flight-y)}}@keyframes evolution-restoration-fall{0%{opacity:0;translate:0 0}20%{opacity:1}80%{opacity:1;translate:0 70px}to{opacity:0;translate:0 80px}}@keyframes evolution-aurora-light{0%{opacity:0}25%,70%{opacity:.85}to{opacity:0}}.spell-reduced :is(.evo-cut-first,.evo-cut-second){animation:none}.spell-reduced:is(.spell-berserker_execution,.spell-templar_spear,.spell-templar_seal,.spell-paladin_judgment,.spell-templar_sentence) .spell-main{display:block}.specter-invocation{pointer-events:none;color:var(--spell-color)}.spell-necromancer_specter .spell-main{display:none}.specter-concentration{position:absolute;pointer-events:none}.specter-summon-seal{position:absolute;inset:12%;width:76%;height:76%;opacity:0;animation:specter-seal 2.1s steps(12,end) both}.specter-summon-mote{position:absolute;left:50%;top:50%;width:5px;height:5px;margin:-2px;background:#c4a0f3;box-shadow:3px 0 #65428a;animation:specter-condense 1.6s steps(16,end) var(--mote-delay) both}.spell-necromancer_specter .specter-apparition{margin:0;opacity:1;filter:none;animation:specter-charge var(--specter-flight) cubic-bezier(.7,0,1,.5) var(--specter-depart) both}.specter-body{width:100%;height:100%;opacity:0;filter:drop-shadow(3px 2px #211a37) drop-shadow(0 0 5px #8354bea0);animation:specter-materialize var(--specter-reveal) steps(9,end) var(--specter-form) both,specter-dissolve var(--specter-exit) steps(6,end) var(--specter-hit) forwards}.specter-body img,.specter-body svg{display:block;width:100%;height:100%;object-fit:contain;image-rendering:pixelated}.specter-reduced .specter-apparition{animation:none}.specter-reduced .specter-body{animation:none;opacity:.75;filter:none}@keyframes specter-condense{0%{opacity:0;translate:var(--particle-x) var(--particle-y)}20%{opacity:.85;translate:var(--particle-x) var(--particle-y)}65%{opacity:1;translate:0 0}to{opacity:0;translate:0 -8px}}@keyframes specter-seal{0%{opacity:0;scale:.65}35%{opacity:.35;scale:.85}65%,85%{opacity:.55;scale:1}to{opacity:0;scale:1}}@keyframes specter-materialize{0%{opacity:0;clip-path:inset(100% 0 0)}30%{opacity:.3;clip-path:inset(55% 0 0)}70%{opacity:.65;clip-path:inset(15% 0 0)}to{opacity:.95;clip-path:inset(0)}}@keyframes specter-charge{0%{translate:0 0}to{translate:var(--flight-x) var(--flight-y)}}@keyframes specter-dissolve{0%{opacity:.95;scale:1}45%{opacity:.65;scale:1}to{opacity:0;scale:.85}}@media(prefers-reduced-motion:reduce){.specter-concentration{display:none}.specter-invocation .specter-apparition{animation:none!important}.specter-invocation .specter-body{animation:none!important;opacity:.75;filter:none}}.monster-dialogue{position:fixed;z-index:24;box-sizing:border-box;width:min(190px,calc(100vw - 28px));padding:9px 11px;border:2px solid #b09bbd;border-radius:0;background:#21192ded;color:#f3e5cf;box-shadow:3px 3px #0a0711,inset 0 0 0 2px #3d2c4b;font:15px/1.2 Pixelify Sans,monospace;text-align:left;pointer-events:none;-webkit-user-select:none;user-select:none;animation:monster-speech 4.5s steps(5,end) both}.monster-dialogue small{display:block;margin-bottom:4px;color:#dcb679;font:10px/1.15 Pixelify Sans,monospace}.monster-dialogue:after{content:"";position:absolute;top:14px;width:6px;height:4px;background:#b09bbd;box-shadow:3px 3px #21192d}.monster-dialogue[data-side=left]:after{right:-8px}.monster-dialogue[data-side=right]:after{left:-8px}@keyframes monster-speech{0%{opacity:0;translate:0 3px}8%,88%{opacity:1;translate:0 0}to{opacity:0;translate:0 -2px}}.monster-dialogue.monster-dialogue-reduced{animation:none}@media(prefers-reduced-motion:reduce){.monster-dialogue{animation:none}}@media(max-width:760px){.monster-dialogue{width:clamp(112px,34vw,144px);padding:7px 8px;font-size:14px;line-height:1.15}.monster-dialogue small{display:none}}.boss-target-mark{position:absolute;bottom:calc(100% + 5px);left:50%;translate:-50% 0;z-index:12;width:24px;height:28px;pointer-events:none;filter:drop-shadow(1px 2px #201424)}.boss-target-mark svg{display:block;width:100%;height:100%}.boss-devastating-charge{position:fixed;z-index:24;pointer-events:none}.boss-devastating-charge>svg{width:100%;height:100%;overflow:visible}.devastating-energy{transform-origin:center;animation:devastating-energy 1.6s steps(7,end) both}.devastating-warning{position:absolute;top:50%;left:50%;translate:-50% -50%;width:230px;margin:0;padding:5px;text-align:center;color:#ffe196;background:#281923eb;border:1px solid #bd854b;box-shadow:2px 2px #110c1a;font:600 12px/1.3 Pixelify Sans,monospace}.devastating-warning small{display:block;font-size:10px}.battle-enemy.boss-devastating-charging{animation:devastating-charge 1.6s steps(8,end) infinite}.enemy-claws.claws-devastating{filter:drop-shadow(0 0 5px #dca352)}.enemy-claws.claws-devastating g path:first-child{fill:#9f493d}.enemy-claws.claws-devastating g path:last-child{fill:#ffe1a0}@keyframes devastating-charge{0%,to{filter:brightness(1);translate:0 0}20%,60%{filter:brightness(1.45) drop-shadow(0 0 5px #de8b42);translate:-1px 0}35%,75%{filter:brightness(1.2);translate:1px 0}}@keyframes devastating-energy{0%{opacity:0;transform:scale(1.15)}20%,70%{opacity:.9}to{opacity:0;transform:scale(.4)}}.devastating-reduced .devastating-energy,.battle-enemy.boss-devastating-charging.devastating-reduced{animation:none}@media(prefers-reduced-motion:reduce){.devastating-energy,.battle-enemy.boss-devastating-charging{animation:none}}@media(max-width:760px){.boss-target-mark{width:20px;height:24px}.devastating-warning{width:210px;font-size:11px}}.combat-target-menu,.combat-effect-tooltip{position:fixed;z-index:300;box-sizing:border-box;width:min(238px,calc(100vw - 20px));max-height:calc(100dvh - 20px);overflow-y:auto;padding:10px;border:2px solid #8c6678;background:#1b1425;color:#e5cda8;box-shadow:3px 3px #08050d,inset 0 0 0 1px #38283f;font:12px/1.4 Pixelify Sans,monospace}.combat-target-menu .eyebrow{margin:0 0 8px;font-size:9px}.combat-target-menu button{display:block;box-sizing:border-box;width:100%;min-height:34px;margin:3px 0;padding:7px 9px;text-align:left;white-space:normal;overflow-wrap:anywhere;font:13px/1.25 Pixelify Sans,monospace}.combat-target-menu .target-menu-cancel{margin-top:9px;text-align:center;color:#bdacbf;font-size:11px}.expedition .fighter.target-preview>.sprite,.expedition .enemy-unit.target-preview>.sprite.battle-enemy{filter:drop-shadow(1px 0 #bd5865) drop-shadow(-1px 0 #bd5865) drop-shadow(0 1px #bd5865) drop-shadow(0 -1px #bd5865)}.effect-tags .effect-badge{min-height:0;padding:2px 5px;color:#bd9fcf;background:#2b1c37;border:1px solid #583b65;box-shadow:none;font:9px/1.35 Consolas,monospace}.combat-effect-tooltip{z-index:400;pointer-events:none;border-color:#7c648c}.combat-effect-tooltip strong{color:#e4c488;font-size:14px}.combat-effect-tooltip p{margin:5px 0;font:inherit}.combat-effect-tooltip small{display:block;color:#bba7c5;font:11px/1.4 Pixelify Sans,monospace}.enemy-claws{position:absolute;z-index:16;pointer-events:none;transform:translate(-50%,-50%)}.enemy-claws svg{width:100%;height:100%;overflow:visible}.enemy-claws g{opacity:0;animation:enemy-claw-cut .56s steps(5,end) both}@keyframes enemy-claw-cut{0%{opacity:0;clip-path:inset(0 0 100% 0)}15%{opacity:.95;clip-path:inset(0 0 75% 0)}55%,72%{opacity:.95;clip-path:inset(0)}to{opacity:0;clip-path:inset(0)}}.enemy-claws.claws-reduced g{animation:none;opacity:.55}.portrait-guard{position:fixed;inset:0;z-index:5000;display:grid;place-items:center;box-sizing:border-box;padding:max(16px,env(safe-area-inset-top)) max(20px,env(safe-area-inset-right)) max(16px,env(safe-area-inset-bottom)) max(20px,env(safe-area-inset-left));background:#100c18f5;color:#dfc390}.portrait-card{max-width:380px;padding:20px 24px;border:2px solid #746080;box-shadow:4px 4px #07050c,inset 0 0 0 2px #2a2034;text-align:center;background:#211a2b}.portrait-card svg{width:56px;height:56px}.portrait-card h2{margin:12px 0;font:600 24px/1.2 Pixelify Sans,monospace}.portrait-card p{margin:0;color:#baa9c2;font:15px/1.5 Pixelify Sans,monospace}@media(max-height:360px){.portrait-card{padding:12px 20px}.portrait-card svg{width:40px;height:40px}}@media(prefers-reduced-motion:reduce){.enemy-claws g{animation:none;opacity:.55}}.reduce-motion .enemy-claws g{animation:none;opacity:.55}.combat-effects{position:absolute;inset:0;pointer-events:none;z-index:7}.combat-feedback{position:absolute;display:inline-flex;align-items:center;justify-content:center;transform:translate(-50%);animation:combat-feedback-rise .82s steps(8,end) .26s both}.combat-block svg{width:24px;height:28px;filter:drop-shadow(2px 2px 0 #10162d)}.combat-dodge{font:600 14px Pixelify Sans,monospace;white-space:nowrap;color:#e5dcff;text-shadow:2px 2px 0 #1a122a}.combat-damage{position:absolute;display:flex;flex-direction:column;align-items:center;color:#fff1bd;font:700 22px/1 Pixelify Sans,monospace;white-space:nowrap;text-shadow:-2px 0 #160e23,2px 0 #160e23,0 -2px #160e23,0 2px #160e23,2px 3px #160e23;transform:translate(-50%);animation:combat-damage-rise .9s steps(10,end) both}.combat-damage b{font:inherit}.combat-critical{color:#ff737f;font-size:28px;animation-name:combat-critical-rise}.combat-critical small{font:700 9px/1.4 Pixelify Sans,monospace}@keyframes combat-damage-rise{0%{opacity:0;transform:translate(-50%,4px)}10%,70%{opacity:1}to{opacity:0;transform:translate(-50%,-28px)}}@keyframes combat-critical-rise{0%{opacity:0;transform:translate(-50%,4px) scale(.9)}15%{opacity:1;transform:translate(-50%,-1px) scale(1.2)}30%,70%{opacity:1}to{opacity:0;transform:translate(-50%,-30px) scale(1)}}.run-view .fighter.fallen.combat-receiving-hit{opacity:1;filter:none}@keyframes combat-feedback-rise{0%{opacity:0;transform:translate(-50%,3px)}15%{opacity:1}70%{opacity:1}to{opacity:0;transform:translate(-50%,-22px)}}.combat-effects.reduced .combat-feedback,.reduce-motion .combat-feedback,.combat-effects.reduced .combat-damage,.reduce-motion .combat-damage{animation:none}@media(prefers-reduced-motion:reduce){.combat-feedback,.combat-damage{animation:none}}.target-confirmation{display:flex;align-items:center;justify-content:space-between;flex-wrap:nowrap;gap:8px;border:0;background:#291923;padding:0;margin:0;font-size:11px;position:absolute;inset:0;z-index:2}.action-heading{position:relative}.choosing-target>.eyebrow,.choosing-target>label{visibility:hidden}.target-confirmation>span{min-width:0;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.target-confirmation .button-row{flex-wrap:nowrap;flex-shrink:0}.target-confirmation .button-row{margin:0;gap:6px}.target-confirmation button{min-height:25px;height:25px;padding:3px 8px;font-size:9px}.enemy-single{display:contents}.defense-panel{position:relative}.defense-pending>:not(.defense-preparing-note){visibility:hidden;pointer-events:none}.defense-preparing-note{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font:14px Pixelify Sans,monospace;color:#cdb892}.run-view .enemy-formation{position:absolute;inset:45px 3% 5% 55%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));gap:8px;translate:0 12px}.run-view .enemy-formation[data-count="2"]{grid-template-rows:1fr}.run-view .enemy-formation .enemy-unit{position:relative;inset:auto;min-width:0;min-height:0;padding:5px 2px;justify-content:flex-end}.run-view .enemy-formation[data-count="3"] .enemy-unit:nth-child(-n+2){translate:0 14px}.run-view .enemy-formation[data-count="3"] .enemy-unit:last-child{grid-column:1 / 3;width:55%;justify-self:center}.run-view .enemy-formation .enemy-info{width:100%}.run-view .enemy-formation .enemy-info .eyebrow{display:none}.run-view .enemy-formation .enemy-elite .enemy-info .eyebrow{display:block;color:#d8b981}.run-view .enemy-formation .enemy-info h2{font-size:clamp(13px,1.5vw,19px);margin:0 0 5px}.run-view .enemy-formation .battle-enemy.sprite{height:min(14dvh,105px);max-height:55%;max-width:85%;margin:3px 0 0}.run-view .enemy-formation .effect-tags:empty{display:none}.enemy-unit.enemy-fallen{opacity:.25}.enemy-unit.enemy-attacking .enemy-info h2{color:#f0c092}.enemy-unit .enemy-target{position:absolute;inset:0;z-index:5;width:100%;height:100%;padding:0;border:0;background:transparent;box-shadow:none;cursor:crosshair;outline:0;min-height:0;min-width:0;transform:none;transition:none}.enemy-unit.enemy-selected .enemy-target,.enemy-unit .enemy-target:hover{border:0;background:transparent;transform:none;box-shadow:none}.enemy-unit .enemy-target:focus-visible{outline:0;box-shadow:none;transform:none}.enemy-target-arrows{position:absolute;z-index:6;top:-22px;left:50%;width:32px;height:16px;color:#e65d6e;opacity:.55;transform:translate(-50%);filter:drop-shadow(1px 2px 0 #291420);animation:target-arrows-float 1.1s steps(5,end) infinite;pointer-events:none}.enemy-target-arrows svg{display:block;width:100%;height:100%}.enemy-selected .enemy-target-arrows,.enemy-unit:has(.enemy-target:focus-visible) .enemy-target-arrows{opacity:1;color:#ff8c95}@keyframes target-arrows-float{0%,to{translate:0 0}50%{translate:0 -3px}}.reduce-motion .enemy-target-arrows{animation:none}@media(prefers-reduced-motion:reduce){.enemy-target-arrows{animation:none}}.final-boss-health{position:absolute;z-index:8;top:43px;left:3%;right:3%;text-align:center}.final-boss-health .eyebrow{font-size:8px;margin:2px 0;color:#d5b18b}.run-view .final-boss-health h2{font-size:clamp(21px,2.4vw,32px);margin:0 0 7px;color:#f0d2b0}.final-boss-health>.bar{height:20px;border:2px solid #b29164;border-radius:0;box-shadow:0 0 0 2px #17111d,3px 3px #09060c;background:#251520}.final-boss-health>.bar>i{background:linear-gradient(#cf6d66 0 35%,#993e53 35% 80%,#672d42 80%)}.final-boss-health>.bar span{font-size:10px;line-height:16px}.run-view .final-boss-stage:is(.phase-action,.phase-defense) .enemy-unit{top:130px}.run-view .final-boss-stage:is(.phase-action,.phase-defense) .battle-party{top:130px}.run-view .final-boss-stage .battle-enemy.sprite{height:min(26dvh,210px);max-height:85%}.boss-effects{position:absolute;z-index:7;inset:0;pointer-events:none}.boss-entry-shade{position:absolute;inset:0;background:#05030b;animation:boss-shade 2.5s steps(10,end) both}.boss-entry-playing{animation:boss-tremor .32s steps(1,end) .35s}.boss-entry-playing .battle-enemy{animation:boss-arrive 2.5s steps(10,end) both}.boss-entry-playing .final-boss-health{animation:boss-title .6s steps(6,end) both}.boss-death-playing .battle-enemy{animation:boss-dissolve 5.3s steps(1,end) both}.boss-particles{position:absolute;top:55%;left:76%}.boss-particles i{position:absolute;width:5px;height:5px;background:#efbc7c;box-shadow:0 0 5px #d4829f;opacity:0;animation:boss-particle .7s steps(8,end) calc(3.05s + var(--particle-delay)) both}.boss-particles i:nth-child(3n){background:#d397ce}.boss-chest-fall{--chest-width: 144px;--chest-height: 120px;position:absolute;top:calc(var(--boss-bottom, 70%) - var(--chest-height));left:calc(var(--boss-center, 76%) - var(--chest-width) / 2);width:var(--chest-width);animation:boss-chest-drop .65s steps(10,end) 3.25s both}.boss-chest-shake{animation:boss-chest-shake .3s steps(1,end) 3.95s infinite}.boss-chest-shake svg{display:block;width:var(--chest-width);height:var(--chest-height);image-rendering:pixelated;filter:drop-shadow(0 5px 8px #f6b95450)}.boss-chest-shake span{position:absolute;top:100%;left:50%;width:min(176px,41vw);transform:translate(-50%);text-align:center;font:14px Pixelify Sans,monospace;color:#f4d18d}@keyframes boss-shade{0%{opacity:0}15%,65%{opacity:.4}to{opacity:0}}@keyframes boss-tremor{0%,to{translate:0}20%,60%{translate:-2px 1px}40%,80%{translate:2px -1px}}@keyframes boss-arrive{0%{opacity:0;translate:20px 0;filter:brightness(4) drop-shadow(0 0 20px #f8d4b5)}25%{opacity:1;translate:0;filter:brightness(2.5) drop-shadow(0 0 16px #f8d4b5)}to{opacity:1;translate:0;filter:drop-shadow(0 20px 15px #09050d)}}@keyframes boss-title{0%{opacity:0;translate:0 -6px}to{opacity:1;translate:0}}@keyframes boss-dissolve{0%,22%,34%,42%,46%,50%,52%{filter:drop-shadow(0 20px 15px #09050d);opacity:1}14%,28%,38%,44%,48%,51%{filter:brightness(0) invert(1);opacity:1}53%,59%{filter:brightness(0) saturate(100%) invert(20%) sepia(100%) saturate(7500%) hue-rotate(0deg);opacity:1}60%,to{opacity:0}}@keyframes boss-particle{0%{opacity:1;translate:0}to{opacity:0;translate:var(--px) var(--py)}}@keyframes boss-chest-drop{0%{opacity:0;translate:0 -330px}1%{opacity:1}68%{opacity:1;translate:0 0;scale:1.06 .94}83%{translate:0 -12px;scale:1}to{opacity:1;translate:0;scale:1}}@keyframes boss-chest-shake{0%,60%,to{rotate:0deg}15%,45%{rotate:-3deg}30%{rotate:3deg}}.boss-reduced.boss-entry-playing,.boss-reduced .boss-chest-shake{animation:none}.boss-reduced.boss-entry-playing .battle-enemy,.boss-reduced.boss-entry-playing .final-boss-health{animation:boss-title .5s linear both}.boss-reduced .boss-entry-shade{animation-duration:.5s}.boss-reduced.boss-death-playing .battle-enemy{animation:boss-quiet-fade .3s linear both}.boss-reduced .boss-particles{display:none}.boss-reduced .boss-chest-fall{animation:boss-title .2s linear .3s both}@keyframes boss-quiet-fade{to{opacity:0}}@media(max-width:760px){.enemy-target-arrows{left:16px}.boss-chest-fall{--chest-width: 120px;--chest-height: 100px}.run-view .enemy-formation{left:54%;right:2%;gap:5px;bottom:185px;grid-template-columns:minmax(0,1fr);grid-template-rows:repeat(3,minmax(0,1fr));translate:0 8px}.run-view .enemy-formation[data-count="3"] .enemy-unit:nth-child(1){translate:0 16px}.run-view .enemy-formation[data-count="3"] .enemy-unit:nth-child(2){translate:0 8px}.run-view .enemy-formation[data-count="2"]{grid-template-rows:repeat(2,minmax(0,1fr))}.run-view .enemy-formation[data-count="3"] .enemy-unit:last-child{grid-column:auto;width:100%}.run-view .enemy-formation .enemy-info h2{font-size:15px}.run-view .enemy-formation .battle-enemy.sprite{height:70px;max-height:55%}.run-view .battle-stage:has(.enemy-formation[data-count="3"]){min-height:550px}.run-view .final-boss-stage:is(.phase-action,.phase-defense) .battle-party{top:auto}.run-view .final-boss-stage:is(.phase-action,.phase-defense) .enemy-unit{top:130px;bottom:190px}.run-view .final-boss-stage{min-height:470px}.run-view .final-boss-stage:is(.phase-action,.phase-defense):has(.battle-party[data-size="1"]){min-height:470px}.run-view .final-boss-stage:is(.phase-action,.phase-defense):has(.battle-party[data-size="4"]){min-height:470px}.final-boss-health{top:43px}.run-view .final-boss-health h2{font-size:22px}}.skill-effects{position:absolute;inset:0;z-index:6;pointer-events:none;color:var(--spell-color);overflow:hidden}.spell-icon{display:block;width:100%;height:100%;overflow:visible;image-rendering:pixelated}.spell-burst{position:absolute;width:0;height:0}.spell-main,.spell-sigil,.spell-projectile{position:absolute;width:76px;height:76px;filter:drop-shadow(2px 3px 0 #171220)}.spell-main{left:-38px;top:-38px;animation:spell-materialize .7s steps(8,end) var(--spell-hit) both}.spell-ring{position:absolute;left:-34px;top:-22px;width:68px;height:44px;border:3px solid currentColor;clip-path:polygon(20% 0,80% 0,80% 12%,100% 12%,100% 88%,80% 88%,80% 100%,20% 100%,20% 88%,0 88%,0 12%,20% 12%);animation:spell-ripple .65s steps(9,end) var(--spell-hit) both}.spell-spark{position:absolute;width:4px;height:4px;left:-2px;top:-2px;background:currentColor;animation:spell-scatter .65s steps(9,end) calc(var(--spell-hit) + var(--spark-delay)) both}.spell-projectile{margin:-32px;width:64px;height:64px;animation:spell-flight var(--spell-hit) linear both}.spell-fire .spell-projectile{rotate:70deg}.spell-ice .spell-projectile{rotate:70deg;width:48px;height:76px}.spell-meteor .spell-projectile{width:90px;height:90px;margin:-45px;rotate:140deg}.spell-meteor .spell-main{width:100px;height:100px;left:-50px;top:-50px}.spell-sigil{width:56px;height:56px;margin:-28px;animation:spell-sigil .65s steps(8,end) both}.spell-beam{position:absolute;width:34px;margin-left:-17px;background:linear-gradient(90deg,transparent 0 12%,#b68a4b99 12% 24%,#ffedb2cc 24% 40%,#fff8d9e6 40% 60%,#ffedb2cc 60% 76%,#b68a4b99 76% 88%,transparent 88%);transform-origin:top;animation:spell-beam .65s steps(8,end) calc(var(--spell-hit) - .24s) both}.spell-judgment .spell-beam{width:62px;margin-left:-31px}.spell-power_strike .spell-main,.spell-execute .spell-main{animation:spell-sword .85s steps(9,end) calc(var(--spell-hit) - .26s) both}.spell-bleed .spell-main{animation:spell-cut .7s steps(8,end) calc(var(--spell-hit) - .18s) both}.spell-bleed .spell-spark{width:4px;height:7px}.spell-taunt .spell-main,.spell-warcry .spell-main{animation:spell-rise .85s steps(8,end) .18s both}.spell-taunt .spell-ring,.spell-warcry .spell-ring{animation:spell-ripple .9s steps(10,end) .18s both}.spell-focus .spell-main,.spell-barrier .spell-main,.spell-wall .spell-main,.spell-bless .spell-main,.spell-curse .spell-main{animation:spell-aura 1.1s steps(10,end) .16s both}.spell-heal .spell-main,.spell-group_heal .spell-main,.spell-purify .spell-main{animation:spell-rise 1s steps(10,end) .18s both}.spell-heal .spell-spark,.spell-group_heal .spell-spark,.spell-purify .spell-spark{animation-name:spell-heal-motes}.spell-wall .spell-main,.spell-barrier .spell-main{width:86px;height:100px;left:-43px;top:-50px}.spell-curse .spell-ring{border-style:dashed}@keyframes spell-flight{0%{opacity:0;translate:0 0;scale:.55}12%{opacity:1}85%{opacity:1}to{opacity:0;translate:var(--flight-x) var(--flight-y);scale:1}}@keyframes spell-materialize{0%{opacity:0;scale:.55}18%{opacity:1;scale:1.1}65%{opacity:.9;scale:1}to{opacity:0;scale:.8}}@keyframes spell-sword{0%{opacity:0;translate:-20px -20px;rotate:-25deg}20%{opacity:1}52%{opacity:1;translate:8px 9px;rotate:16deg}72%{opacity:1}to{opacity:0;translate:15px 18px;rotate:20deg}}@keyframes spell-cut{0%{opacity:0;scale:.3;translate:14px -14px}28%{opacity:1}60%{opacity:1;scale:1.2;translate:-5px 5px}to{opacity:0;scale:1}}@keyframes spell-ripple{0%{opacity:0;scale:.3}15%{opacity:.8}to{opacity:0;scale:1.7}}@keyframes spell-scatter{0%{opacity:0;translate:0 0}10%{opacity:.9}to{opacity:0;translate:var(--spark-x) var(--spark-y)}}@keyframes spell-heal-motes{0%{opacity:0;translate:var(--spark-x) 24px}20%{opacity:1}to{opacity:0;translate:calc(var(--spark-x) * .6) -65px}}@keyframes spell-rise{0%{opacity:0;translate:0 14px;scale:.7}22%{opacity:1;scale:1}68%{opacity:1}to{opacity:0;translate:0 -32px}}@keyframes spell-aura{0%{opacity:0;scale:.7}25%{opacity:.85;scale:1}72%{opacity:.8;scale:1.05}to{opacity:0;scale:1.1}}@keyframes spell-sigil{0%{opacity:0;scale:.4}35%{opacity:1;scale:1}70%{opacity:1}to{opacity:0;scale:.8}}@keyframes spell-beam{0%{opacity:0;scale:1 0}32%{opacity:.9;scale:1 1}65%{opacity:.75}to{opacity:0;scale:.5 1}}.spell-reduced .spell-main{animation:none;width:40px;height:40px;left:-20px;top:-20px;opacity:.65;filter:none}.spell-reduced .spell-ring{display:none}@media(prefers-reduced-motion:reduce){.skill-effects *{animation:none!important}.skill-effects .spell-projectile,.skill-effects .spell-beam,.skill-effects .spell-sigil,.skill-effects .spell-spark,.skill-effects .spell-ring{display:none}.skill-effects .spell-main{opacity:.65}}.game-shell.run-view>.game-header{display:none}.map-entry-banner{position:absolute;top:18%;left:8%;right:8%;z-index:8;pointer-events:none;text-align:center;color:#f2d5a0;padding:14px 10px;background:linear-gradient(90deg,transparent,#181224e8 20%,#181224e8 80%,transparent);animation:map-title-arrive 1.1s ease-out both}.map-entry-banner small{display:block;font-size:8px;letter-spacing:3px;margin-bottom:9px}.map-entry-banner strong{font:500 clamp(23px,3vw,38px)/1.2 "Pixelify Sans",monospace;text-shadow:2px 2px #110c19}.map-entry-active .fighter{animation:map-party-arrive .9s ease-out both}@keyframes map-title-arrive{0%{opacity:0;translate:0 5px}20%,75%{opacity:1;translate:0 0}to{opacity:0;translate:0 -3px}}@keyframes map-party-arrive{0%{opacity:0}to{opacity:1}}.map-entry-reduced .fighter,.map-entry-reduced .map-entry-banner{animation:none}@media(prefers-reduced-motion:reduce){.map-entry-active .fighter,.map-entry-banner{animation:none}}.run-view .expedition{--enemy-sprite-height: min(23dvh, 180px);--elite-sprite-height: min(26dvh, 208px);--fighter-sprite-height: min(19dvh, 140px);--boss-sprite-height: min(38dvh, 312px, calc(44vw - 120px) )}.run-view .expedition:has(.battle-stage){overflow-y:auto}.run-view .battle-stage [data-enemy-type=normal]>.battle-enemy.sprite{height:var(--enemy-sprite-height);width:auto;max-height:none;max-width:none;flex-shrink:0;object-fit:contain}.run-view .battle-stage :is([data-enemy-type=wanted],[data-enemy-type=mini])>.battle-enemy.sprite{height:var(--elite-sprite-height);width:auto;max-height:none;max-width:none;flex-shrink:0;object-fit:contain}.run-view .battle-stage:has(.enemy-elite):has(.enemy-formation[data-count="3"]),.run-view .battle-layout:has(.enemy-elite):has(.enemy-formation[data-count="3"]){min-height:calc(2 * var(--elite-sprite-height) + 166px)}.run-view .battle-stage .battle-party .fighter>.sprite{height:var(--fighter-sprite-height);width:auto;max-height:none;max-width:none;flex-shrink:0;object-fit:contain}.run-view .battle-stage:has(.enemy-formation[data-count="3"]){min-height:calc(2 * var(--enemy-sprite-height) + 166px)}.run-view .battle-layout:has(.enemy-formation[data-count="3"]){min-height:calc(2 * var(--enemy-sprite-height) + 166px)}.run-view .battle-stage .enemy-formation{bottom:5%;grid-template-rows:auto auto;align-content:end;row-gap:12px;translate:none}.run-view .battle-stage .enemy-formation[data-count="2"]{grid-template-rows:auto}.run-view .battle-stage .enemy-formation .enemy-unit{padding:0;translate:none}.run-view .battle-stage.final-boss-stage{min-height:calc(var(--boss-sprite-height) + 200px)}.run-view .battle-layout:has(.final-boss-stage){min-height:calc(var(--boss-sprite-height) + 200px)}.run-view .battle-stage [data-enemy-type=boss]>.battle-enemy.sprite{height:var(--boss-sprite-height);width:auto;max-height:none;max-width:none;flex-shrink:0;object-fit:contain}@media(min-width:761px)and (max-width:1100px){.run-view .battle-stage:has(.enemy-elite) .enemy-formation{left:30%}.run-view .battle-stage:has(.enemy-elite) .enemy-formation .enemy-unit:nth-child(-n+2){justify-content:flex-start}.run-view .battle-stage:has(.enemy-elite) .enemy-formation .enemy-unit:nth-child(-n+2) .enemy-info{min-height:90px}.run-view .battle-stage:has(.enemy-elite) .enemy-formation[data-count="3"] .enemy-unit:last-child{justify-self:end}.run-view .battle-stage:has(.enemy-elite):has(.enemy-formation[data-count="3"]),.run-view .battle-layout:has(.enemy-elite):has(.enemy-formation[data-count="3"]){min-height:calc(2 * var(--elite-sprite-height) + 210px)}}@media(max-width:760px){.run-view .expedition{--enemy-sprite-height: 100px;--elite-sprite-height: 116px;--fighter-sprite-height: 100px;--boss-sprite-height: min(280px, calc(96vw - 66px) )}.run-view .battle-stage{min-height:350px}.run-view .battle-stage:not(.final-boss-stage):has(.battle-party:is([data-size="3"],[data-size="4"])){min-height:420px}.run-view .battle-stage:has(.enemy-formation[data-count="2"]){min-height:350px}.run-view .battle-stage:has(.enemy-formation[data-count="3"]){min-height:350px}.run-view .battle-stage .battle-party{inset:auto 52% 18px 3%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:end;justify-items:center;gap:12px 6px;direction:rtl}.run-view .battle-stage .battle-party[data-size="1"]{grid-template-columns:minmax(0,1fr);justify-items:end}.run-view .battle-stage .battle-party .fighter{width:100%;max-width:100%;direction:ltr}.run-view .battle-stage .battle-party .fighter[data-local-player=true]{order:-1}.run-view .battle-stage .battle-party[data-size="1"] .fighter{width:100px}.run-view .battle-stage .enemy-unit{inset:auto 3% 18px 54%}.run-view .battle-stage:has(.enemy-elite){min-height:420px}.run-view .battle-stage .enemy-single>.enemy-elite{inset:44px 3% 185px 54%}.run-view .battle-stage .enemy-formation{position:relative;inset:auto;width:43%;margin:auto 3% 18px auto;padding-top:12px;flex-shrink:0;display:flex;flex-direction:column;gap:8px}.run-view .battle-stage .enemy-formation[data-count] .enemy-unit:nth-child(n){position:relative;inset:auto;width:100%;translate:none}.run-view .battle-stage [data-enemy-type=normal] .enemy-info h2{font-size:14px;letter-spacing:0;line-height:1.15;margin:0 0 4px}.run-view .battle-stage .effect-tags{overflow-wrap:anywhere}.run-view .battle-stage.final-boss-stage:is(.phase-action,.phase-defense):has(.battle-party){min-height:calc(var(--boss-sprite-height) + var(--fighter-sprite-height) + 290px)}.run-view .battle-stage.final-boss-stage .enemy-unit{inset:126px 5% auto;height:calc(var(--boss-sprite-height) + 32px)}.run-view .battle-stage.final-boss-stage .final-boss-health h2{font-size:clamp(18px,5.6vw,22px);line-height:1.15;letter-spacing:0}.run-view .battle-stage.final-boss-stage .battle-party{inset:auto 3% 18px;grid-template-columns:repeat(4,minmax(0,1fr))}.run-view .battle-stage.final-boss-stage .battle-party[data-size="1"]{right:52%;grid-template-columns:minmax(0,1fr)}.run-view .battle-stage.final-boss-stage .battle-party[data-size="2"]{grid-template-columns:repeat(2,minmax(0,1fr))}.run-view .battle-stage.final-boss-stage .battle-party[data-size="3"]{grid-template-columns:repeat(3,minmax(0,1fr))}}.run-view .action-panel.compact-actions{--action-grid-height: 112px;padding:8px}.run-view .compact-actions .action-heading{margin:0 0 4px}.run-view .compact-actions .action-heading .eyebrow{font-size:8px;line-height:12px;margin:0}.run-view .compact-actions.inactive .evolution-action-grid{height:calc(var(--action-grid-height) - 16px)}.run-view .action-grid.evolution-action-grid{grid-template-columns:repeat(4,minmax(0,1fr)) minmax(38px,.6fr);grid-template-rows:repeat(3,minmax(0,1fr));height:var(--action-grid-height);gap:2px;margin-bottom:0}.combat-skill-cell{display:flex;min-width:0;min-height:0;touch-action:pan-y;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}.run-view .evolution-action-grid .combat-skill-cell button{width:100%;background:#2b2236;box-shadow:inset 0 1px #80658e44,2px 2px #0c0812}.combat-skill-cell button:disabled{pointer-events:none}.run-view .action-grid.evolution-action-grid button:hover:not(:disabled){background:#403257;border-color:#b29469}.skill-inspection-dismiss{position:fixed;inset:0;z-index:399;background:transparent}.combat-skill-tooltip{pointer-events:auto;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}.run-view .action-grid.evolution-action-grid button{min-width:0;min-height:0;height:100%;display:flex;flex-direction:row;flex-wrap:wrap;align-content:center;align-items:center;gap:1px 4px;padding:2px 4px;overflow-wrap:anywhere;font-family:Pixelify Sans,monospace}.run-view .action-grid.evolution-action-grid button b{font:600 13px/1.1 Pixelify Sans,monospace}.run-view .action-grid.evolution-action-grid button small{font:11px/1.1 Pixelify Sans,monospace;color:#b8a5c4}.run-view .action-grid.evolution-action-grid .specialization-skill{border-color:#765d83;background:#302139}.run-view .action-grid.evolution-action-grid .specialization-skill b{color:#e6cb8d}.run-view .action-grid.evolution-action-grid>.specialization-placeholder small{font-size:10px}.run-view .action-grid.evolution-action-grid>.action-pass{flex-direction:column;gap:4px}@media(max-width:1100px){.run-view .action-grid.evolution-action-grid{--action-grid-height: 156px}.run-view .action-grid.evolution-action-grid button b{font-size:12px}.run-view .action-grid.evolution-action-grid button small{font-size:10px}}@media(max-width:760px){.run-view .action-grid.evolution-action-grid{--action-grid-height: 206px}.run-view .action-grid.evolution-action-grid button{padding:3px 2px;gap:1px 3px}.run-view .action-grid.evolution-action-grid button b{font-size:11px;line-height:1.12}.run-view .action-grid.evolution-action-grid button small{font-size:10px;line-height:1.1}.run-view .action-grid.evolution-action-grid>.specialization-placeholder small{font-size:8px}}@media(max-width:360px){.run-view .action-grid.evolution-action-grid button b{font-size:10px;line-height:1.1}.run-view .action-grid.evolution-action-grid button small{font-size:8px}}.home-view .city-scene.city-scene--courtyard{position:absolute;inset:0;width:100%;height:100%;min-height:0;max-height:none;transform:none;overflow:hidden;background:#111031}.home-view .city-frame:has(.city-scene--courtyard){background:#111031}.city-scene--courtyard .town-letter{font-family:Pixelify Sans,monospace;font-weight:600;fill:#dfc595;letter-spacing:.25px;pointer-events:none}.town-shop-title{font-size:5.5px}.town-hall-title{font-size:6.5px}.town-portal-title{font-size:4.5px}.town-future-title{font-size:5.5px}.city-scene--courtyard .town-future-note{font-size:4.5px;fill:#b4a2b6}.city-scene--courtyard .town-destination{outline:none}.city-scene--courtyard .town-destination--active{cursor:pointer}.city-scene--courtyard .town-focus-outline{fill:none;stroke:#e1bc89;stroke-width:1;opacity:0;pointer-events:none}.city-scene--courtyard .town-destination--active:is(:hover,:focus-visible) .town-focus-outline,.city-scene--courtyard .town-auction:has(>.town-destination--active:is(:hover,:focus-visible))>.town-focus-outline{opacity:.8}.city-scene--courtyard .town-destination--active:focus-visible .town-focus-outline,.city-scene--courtyard .town-auction:has(>.town-destination--active:focus-visible)>.town-focus-outline{stroke:#ffe3a2;stroke-width:1.5;opacity:1}.city-scene--courtyard .town-destination--active:is(:hover,:focus-visible) .town-roof{filter:brightness(1.13)}.city-scene--courtyard .town-destination--active:is(:hover,:focus-visible) .town-portal-face{fill:#944fd4}.town-future{cursor:default}.town-auction .town-letter{fill:#f0cf92}.town-auction-smoke-puff{opacity:0;animation:town-auction-smoke 4.8s steps(9,end) infinite}@keyframes town-auction-smoke{0%{opacity:0;transform:translate(0)}15%{opacity:.48;transform:translateY(-2px)}60%{opacity:.3;transform:translate(2px,-10px)}to{opacity:0;transform:translate(6px,-20px)}}.city-scene--courtyard.city-scene--still .town-auction-smoke{display:none}@media(prefers-reduced-motion:reduce){.city-scene--courtyard .town-auction-smoke{display:none}}.town-flame-a{animation:town-flame-a .8s steps(1,end) infinite}.town-flame-b{animation:town-flame-b .8s steps(1,end) infinite}.town-warmth{animation:town-warmth 2.8s steps(3,end) infinite}.town-fire--small .town-warmth{opacity:.65}.town-star{animation:town-star 5s steps(3,end) infinite}.town-cloud{animation:town-cloud 24s steps(6,end) infinite alternate}.town-banner{animation:town-banner 7s steps(2,end) infinite}.town-window-light{animation:town-window-light 6s steps(3,end) infinite}.town-portal-rim{animation:town-rim 3s steps(4,end) infinite}.town-portal-aura{animation:town-warmth 3s steps(4,end) infinite}.town-portal-flow{animation:town-flow 3.5s steps(8,end) infinite}.town-portal-sparks{animation:town-sparks 4s steps(6,end) infinite}.town-meteor{animation:town-meteor 1.1s steps(10,end) both}.city-scene--courtyard .city-avatar{gap:1px}.city-scene--courtyard .city-avatar .sprite{width:12px;height:18px;filter:drop-shadow(0 2px 0 #17172a)}.city-scene--courtyard .city-avatar>span{font-size:3.5px;max-width:35px;padding:1px 2px;background:#17142be0}.city-scene--courtyard.city-scene--portrait .city-avatar .sprite{width:16px;height:24px}.city-scene--courtyard.city-scene--portrait .city-avatar>span{font-size:4px}@keyframes town-flame-a{0%,to{opacity:1}50%{opacity:0}}@keyframes town-flame-b{0%,to{opacity:0}50%{opacity:1}}@keyframes town-warmth{0%,to{opacity:.65}45%{opacity:1}70%{opacity:.8}}@keyframes town-star{0%,to{opacity:.35}50%{opacity:1}}@keyframes town-cloud{0%{transform:translate(0)}to{transform:translate(6px)}}@keyframes town-banner{0%,to{transform:translate(0)}50%{transform:translate(1px)}}@keyframes town-window-light{0%,to{opacity:1}40%{opacity:.75}75%{opacity:.9}}@keyframes town-rim{0%,to{opacity:.7}50%{opacity:1}}@keyframes town-flow{0%{transform:translateY(6px);opacity:.4}to{transform:translateY(-14px);opacity:.9}}@keyframes town-sparks{0%,to{transform:translateY(3px);opacity:.3}50%{transform:translateY(-4px);opacity:.9}}@keyframes town-meteor{0%{opacity:0;transform:translate(0)}15%{opacity:.9}85%{opacity:.7}to{opacity:0;transform:translate(54px,25px)}}.city-scene--courtyard.city-scene--still *{animation:none!important}.city-scene--courtyard.city-scene--still .town-flame-a{opacity:1}.city-scene--courtyard.city-scene--still :is(.town-flame-b,.town-meteor){display:none}@media(prefers-reduced-motion:reduce){.city-scene--courtyard *{animation:none!important}.city-scene--courtyard .town-flame-a{opacity:1}.city-scene--courtyard :is(.town-flame-b,.town-meteor){display:none}}.city-scene--courtyard .town-camera{transform-box:view-box;transition:transform .9s cubic-bezier(.22,.61,.36,1);will-change:transform}.city-scene--courtyard .town-destination[aria-disabled=true]{pointer-events:none}.city-scene--courtyard .town-sign-text{font-size:7px}.city-scene--courtyard .town-rift-title{font-size:4.2px;fill:#f1c1a3}.city-scene--courtyard .town-farm-title{font-size:5px}.city-scene--courtyard .town-upcoming-title{font-size:6px}.city-scene--courtyard .town-upcoming-note{font-size:5px;fill:#c5afcd}.city-scene--courtyard .town-red-portal .town-destination:is(:hover,:focus-visible) .town-rift-energy{fill:#b64453}.town-farm-crops{animation:town-banner 6s steps(2,end) infinite}.city-scene--courtyard.city-scene--still .town-camera{transition:none}.city-scene--courtyard.city-scene--still .town-farm-smoke{display:none}@media(prefers-reduced-motion:reduce){.city-scene--courtyard .town-camera{transition:none}.city-scene--courtyard .town-farm-smoke{display:none}}.game-shell.home-view{position:relative;overflow:hidden}.home-view>.city-hud{position:absolute;top:max(14px,env(safe-area-inset-top));left:max(18px,env(safe-area-inset-left));right:max(18px,env(safe-area-inset-right));z-index:35;display:flex;align-items:flex-start;justify-content:space-between;gap:12px;pointer-events:none}.city-hud .city-hud-card{position:relative;height:78px;min-width:0;padding:9px 12px;color:#f0e4da;background:#1c1727ed;border:2px solid #806245;box-shadow:inset 0 0 0 2px #302437,3px 3px #100d20b3;border-radius:0;pointer-events:auto;font-family:Pixelify Sans,monospace}.city-hud-card:before{content:"";position:absolute;inset:-2px;pointer-events:none;background:linear-gradient(#e0bd7b,#e0bd7b) top left / 7px 2px,linear-gradient(#e0bd7b,#e0bd7b) top left / 2px 7px,linear-gradient(#e0bd7b,#e0bd7b) bottom right / 7px 2px,linear-gradient(#e0bd7b,#e0bd7b) bottom right / 2px 7px;background-repeat:no-repeat}.city-hud .city-player-card{display:grid;grid-template-columns:56px minmax(0,1fr) 32px;width:290px;gap:10px;text-align:left}.city-hud .city-player-card:hover:not(:disabled){background:#251d30f2;border-color:#b8945f}.city-portrait{position:relative;display:block;width:56px;height:56px;overflow:hidden;border:1px solid #79604f;background:#30273d;box-shadow:inset 0 0 0 2px #171322}.city-portrait .sprite{position:absolute;left:50%;top:-16px;width:80px;height:120px;max-width:none;max-height:none;transform:translate(-50%);image-rendering:pixelated}.city-player-info{display:flex;min-width:0;flex-direction:column;justify-content:center;gap:5px}.city-player-info strong,.city-player-info small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.city-player-info strong{font-size:17px;font-weight:600;line-height:1.15}.city-player-info small{color:#e6c27a;font-size:12px;line-height:1.25}.city-level-crest{position:relative;display:grid;align-self:center;width:32px;height:40px;place-items:center}.city-level-crest svg{position:absolute;inset:0;width:100%;height:100%}.city-level-crest b{position:relative;padding-bottom:6px;color:#fff0be;font-size:15px;font-weight:600;line-height:1;font-variant-numeric:tabular-nums}.city-hud .city-resources-card{display:flex;align-items:center;gap:16px}.city-gold{display:grid;grid-template-columns:18px auto;align-items:center;gap:1px 7px}.city-gold>svg{grid-row:1 / 3;width:18px;height:23px}.city-gold-value{color:#f0ce83;font-size:18px;line-height:1.1;font-variant-numeric:tabular-nums;white-space:nowrap}.city-gold small{color:#b69a75;font-size:9px;letter-spacing:1px}.city-hud .icon-button{width:38px;height:38px;padding:0;color:#e6c27a;border:1px solid #705647;background:#2a2132}.home-view .city-frame>.city-status{top:106px}@media(max-width:700px){.home-view>.city-hud{top:max(10px,env(safe-area-inset-top));left:max(10px,env(safe-area-inset-left));right:max(10px,env(safe-area-inset-right));gap:8px}.city-hud .city-hud-card{height:68px;padding:7px}.city-hud .city-player-card{width:calc(58% - 4px);grid-template-columns:44px minmax(0,1fr) 24px;gap:5px}.city-portrait{width:44px;height:50px}.city-portrait .sprite{top:-14px;width:72px;height:108px}.city-player-info{gap:4px}.city-player-info strong{font-size:14px}.city-player-info small{font-size:10px}.city-level-crest{width:24px;height:30px}.city-level-crest b{padding-bottom:4px;font-size:12px}.city-hud .city-resources-card{display:grid;width:calc(42% - 4px);grid-template-columns:minmax(0,1fr) 28px;grid-template-rows:16px 26px;align-content:center;gap:2px 4px}.city-gold{display:contents}.city-gold-value{grid-column:1 / -1;grid-row:1;font-size:12px;justify-self:end}.city-gold>svg{grid-column:1;grid-row:2;width:12px;height:15px}.city-gold small{grid-column:1;grid-row:2;padding-left:16px;font-size:8px;letter-spacing:0}.city-hud .icon-button{grid-column:2;grid-row:2;width:28px;height:26px}.city-hud .icon-button svg{width:17px;height:17px}.home-view .city-frame>.city-status{top:93px}}@media(max-width:380px){.city-player-info strong{font-size:12px}.city-player-info small{font-size:9px}.city-gold-value{font-size:10px}}.auction-modal{width:min(1040px,96vw)}.auction-panel{min-width:0}.auction-topline,.auction-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.auction-topline{margin-bottom:14px}.auction-topline button{margin-left:auto}.auction-panel .tabs{display:flex;gap:6px;flex-wrap:wrap}.auction-panel .tabs button{flex:1}.auction-panel label{display:grid;gap:6px;color:#cbb8dd;font-size:12px}.auction-panel input,.auction-panel select{min-width:0;max-width:100%;width:100%}.auction-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:16px 0}.auction-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:12px 0 18px}.auction-card,.auction-draft,.auction-confirm{min-width:0;border:2px solid #6a537c;background:#1b1528;padding:14px;box-shadow:3px 3px #090610,inset 0 0 0 1px #30243e}.auction-card{display:flex;flex-direction:column;gap:8px}.auction-equipment-heading{display:flex;gap:10px;align-items:center}.auction-equipment-heading .item-icon{flex-shrink:0}.auction-equipment h3{margin:0 0 5px;font-size:20px;line-height:1.15;overflow-wrap:anywhere}.auction-equipment small,.auction-card-footer small{display:block;line-height:1.4;color:#bcaccb;font-size:11px}.auction-equipment p{font-size:12px;line-height:1.45;margin:9px 0}.auction-equipment .visual-set-label{color:#ebc787}.auction-equipment .affix-list{display:flex;flex-wrap:wrap;gap:5px 10px;font-size:11px}.auction-card-footer{margin-top:auto;display:grid;gap:6px;padding-top:12px}.auction-card-footer button{width:100%}.auction-notice{border:1px solid #6e8e68;background:#243126;padding:10px;color:#c7e3ac}.auction-state{font-size:12px;color:#d8bd82;margin:5px 0}.auction-sell-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:18px;margin-top:14px}.auction-inventory{display:grid;grid-template-columns:repeat(auto-fill,minmax(58px,1fr));gap:7px}.auction-inventory button{padding:7px;min-height:64px}.auction-inventory button.selected{outline:2px solid #e6bf7e;outline-offset:-2px}.auction-draft label{margin:12px 0}.auction-confirm{margin:14px 0;border-color:#c49f67}.auction-confirm .auction-equipment{max-width:500px}.auction-history{display:grid;gap:8px;margin-top:12px}.auction-history>div{display:flex;gap:10px;align-items:center;border:1px solid #443252;padding:9px}.auction-history>div>span{flex:1;min-width:0}.auction-history small{display:block;color:#a99aba;font-size:10px;line-height:1.5}.auction-history strong{white-space:nowrap;font-size:12px}@media(max-width:640px){.auction-modal{width:96vw;padding:14px}.auction-grid,.auction-sell-layout{grid-template-columns:minmax(0,1fr)}.auction-filters{gap:7px}.auction-panel .tabs button{padding:9px 5px;font-size:11px}.auction-equipment h3{font-size:19px}.auction-panel .inventory-pagination{gap:5px;font-size:10px}.auction-panel .inventory-pagination button{padding:8px}.auction-history>div{flex-wrap:wrap}}:root{font-family:Inter,system-ui,sans-serif;color:#eee8e3;background:#100e18;font-synthesis:none;font-size:14px;font-weight:400;--muted: #9b91a5;--line: #3a3042;--gold: #c8a569;--panel: #1a1623;--purple: #a68bc9;--red: #d67b79}*{box-sizing:border-box}body{margin:0;min-width:320px}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:#e7dfe9;border:1px solid var(--line);background:#24202e;padding:12px 16px;display:inline-flex;align-items:center;justify-content:center;gap:9px;transition:background .2s,border-color .2s,transform .2s}button:hover:not(:disabled){background:#322838;border-color:#897452}button:disabled{opacity:.38;cursor:not-allowed}button:focus-visible,a:focus-visible,[role=button]:focus-visible{outline:2px solid #dac080;outline-offset:4px}button.selected,button.active{border-color:var(--gold);background:#3c2e34}a{color:inherit;text-decoration:none}input,select{border:1px solid var(--line);color:#e9e3ed;background:#130f1c;border-radius:3px;min-height:46px;padding:12px;width:100%;outline:none}input:focus,select:focus{border-color:var(--gold)}input::placeholder{color:#6d6377}select{cursor:pointer}label{display:block;font-size:10px;letter-spacing:1.5px;color:#b8aabd;font-weight:600}label input,label select{margin-top:9px;letter-spacing:0;font-size:13px;font-weight:400}h1,h2,h3,p{margin-top:0}h1,h2{font-family:Cormorant Garamond,Georgia,serif;font-weight:600}h1{font-size:42px;line-height:1.15}h2{font-size:30px;line-height:1.2;margin-bottom:14px}h3{font-size:15px;line-height:1.5}p{line-height:1.7}small{font-size:11px;line-height:1.6}.muted{color:var(--muted)}.eyebrow{font-size:9px;letter-spacing:2.2px;color:var(--gold);font-weight:600;margin-bottom:13px}.primary{background:#c4a06a;color:#19131c;border-color:#dec18e;font-size:10px;font-weight:700;letter-spacing:1.2px;padding:16px 20px;min-height:48px}.primary:hover:not(:disabled){background:#dcc08d;color:#130f18;border-color:#ebd6b3}.full{width:100%}.text-button{border:0;background:transparent;font-size:11px;color:#c2a679;padding:8px 0}.text-button:hover:not(:disabled){background:transparent;color:#f2d9ad}.icon-button{padding:10px;background:transparent;border:0}.danger{color:#e29b95;border-color:#69444f;background:#38232e}.danger-text{color:#d69591}.positive{color:#8fc8a3}.negative{color:#e39392}.button-row{display:flex;gap:10px;flex-wrap:wrap;margin-top:20px}.wordmark{font-family:Georgia,serif;font-size:20px;letter-spacing:3px;color:#d5c4ad;white-space:nowrap}.wordmark b{color:#c19b65;font-weight:400}.wordmark span{display:block;font-family:Inter,sans-serif;font-size:7px;letter-spacing:5px;color:#8b7d86;margin-top:8px}.bar{height:11px;position:relative;background:#28212e;overflow:hidden;border:1px solid #423141;border-radius:2px}.bar i{display:block;height:100%;background:#a45b65;transition:width .35s}.bar span{position:absolute;inset:0;text-align:center;line-height:10px;font-size:8px;color:#e7dce9;text-shadow:0 1px 2px #000}.bar.energy i{background:#7b72ab}.bar.energy{border-color:#443957}.bar.xp{height:19px}.bar.xp i{background:#816b9e}.bar.xp span{line-height:18px;font-size:10px}.gold{color:#d3af6c;white-space:nowrap}.gold small{font-size:8px;letter-spacing:1px}.tag{display:inline-block;border:1px solid #51404c;background:#2b202b;color:#cbb49a;padding:9px 12px;font-size:10px}.sprite{object-fit:contain;image-rendering:pixelated;display:inline-block;width:64px;height:96px}.sprite.item{width:40px;height:40px}.sprite.enemy{width:128px;height:128px}.sprite.fallback{position:relative}.fallback .pixel-head{position:absolute;left:36%;top:15%;width:30%;height:22%;background:#a087a4;box-shadow:0 -7px #5d4c70}.fallback .pixel-body{position:absolute;left:23%;top:38%;width:55%;height:43%;background:#76608d;box-shadow:inset 8px 0 #5a476d}.fallback .pixel-feet{position:absolute;left:25%;top:82%;width:53%;height:12%;background:linear-gradient(90deg,#58425d 42%,transparent 42%,transparent 58%,#58425d 58%)}.item-icon{width:55px;height:55px;display:inline-flex;position:relative;background:#18141f;border:1px solid;align-items:center;justify-content:center}.item-icon small{position:absolute;right:3px;bottom:0;font-size:8px;font-weight:700}.item-icon .fallback.item{background:linear-gradient(135deg,transparent 40%,#a591ac 41%,#a591ac 57%,transparent 58%);width:28px;height:28px}.item-icon .fallback.item>*{display:none}.loading{position:fixed;inset:0;z-index:20;background:#10172c;display:flex;align-items:flex-end;justify-content:center;padding:9vh 20px}.loading:before{content:"";position:absolute;inset:0;background:linear-gradient(transparent 35%,#08070ce6)}.loading-brand{position:relative;text-align:center;width:min(420px,90vw)}.loading h1{font-size:48px;letter-spacing:10px;margin-bottom:12px;color:#e5d3be}.loading h1 span{color:#c59269}.loading p:not(.eyebrow){color:#b8a1a0;font-size:12px}.loading-track{height:3px;background:#48313a;width:70%;margin:25px auto 0;overflow:hidden}.loading-track i{width:35%;height:3px;background:#c99565;display:block;animation:loading 1.8s infinite ease-in-out}@keyframes loading{0%{transform:translate(-100%)}to{transform:translate(400%)}}.auth-screen{min-height:100vh;position:relative;isolation:isolate;display:flex;flex-direction:column;background:#100b12}.auth-art{position:absolute;inset:0;background:#10172c;opacity:.74;z-index:-3}.auth-vignette{position:absolute;inset:0;background:linear-gradient(90deg,#120d1be8 3%,#170e1888 47%,#120e1ae8),linear-gradient(0deg,#0d0a14ef 0%,transparent 40%,#0d0a1460 100%);z-index:-2}.auth-header{padding:35px 5vw;display:flex;align-items:center;justify-content:space-between}.server-tag{font-size:8px;color:#b2a1a9;letter-spacing:1.8px;border:1px solid #5d434c80;padding:10px 13px;background:#17101e80;display:flex;align-items:center;gap:9px}.server-tag i,.city-status i{background:#a8b39a;width:5px;height:5px;box-shadow:0 0 9px #a8b39a80}.auth-content{width:min(1140px,90vw);margin:auto;display:grid;grid-template-columns:1fr 390px;gap:100px;align-items:center;padding:65px 0 70px}.chapter-label{color:#c6a17c;font-size:9px;letter-spacing:2px;display:flex;align-items:center;gap:12px;margin-bottom:27px}.chapter-label span{height:1px;width:28px;background:#bc9870}.auth-story h1{font-size:68px;line-height:1.03;color:#eee3da;font-weight:500;letter-spacing:-1px;margin-bottom:29px}.auth-story h1 em{color:#cfab7f;font-weight:400}.auth-story>p{color:#bca8ad;line-height:1.9;font-size:13px}.story-features{display:flex;gap:28px;margin-top:38px}.story-features span{font-size:10px;color:#baa3ac;display:flex;align-items:center;gap:9px}.story-features svg{color:#c59a72}.auth-card{background:linear-gradient(140deg,#241925e8,#18131eea);border:1px solid #68504770;box-shadow:0 20px 90px #09050aa0;padding:34px 31px 26px;position:relative}.auth-card:before{content:"";position:absolute;top:-1px;left:25%;right:25%;height:1px;background:linear-gradient(90deg,transparent,#c9a377,transparent)}.crest{width:49px;height:49px;border:1px solid #7f5f4870;background:#48302555;display:flex;justify-content:center;align-items:center;margin:0 0 25px;color:#cc9f66;transform:rotate(45deg)}.crest svg{transform:rotate(-45deg)}.auth-card h2{font-size:27px;line-height:1.1;margin-bottom:12px}.auth-card>.eyebrow{font-size:7px;letter-spacing:1.8px}.auth-card>.muted{font-size:11px;margin-bottom:26px}.auth-tabs{display:flex;border-bottom:1px solid #4d3545;margin-bottom:24px}.auth-tabs button{border:0;border-bottom:2px solid transparent;background:none;width:50%;font-size:9px;letter-spacing:1.5px;color:#958391;padding:13px 0}.auth-tabs button.selected{color:#ddbb89;border-bottom-color:#c4a06a}.auth-card label{font-size:8px;margin-bottom:20px;letter-spacing:1.6px}.auth-card input{border-color:#4d3546;background:#100d18a0;min-height:45px;font-size:11px}.password-field{position:relative}.password-field input{padding-right:45px}.password-field button{position:absolute;right:0;bottom:0;height:45px;background:none;border:0;color:#a08c9e}.forgot{display:block;text-align:right;width:100%;font-size:9px;margin-top:-11px;margin-bottom:20px}.auth-security{border-top:1px solid #4c35423d;margin-top:27px;padding-top:20px;text-align:center;display:flex;align-items:center;justify-content:center;gap:7px;color:#897b8b;font-size:8px}.auth-footer{display:flex;justify-content:space-between;padding:24px 5vw;font-size:7px;letter-spacing:1.7px;color:#7d6c7b;border-top:1px solid #58404d35}.auth-footer b{color:#b98d64;margin:0 12px}.onboarding{padding:48px 24px 60px;min-height:100vh;text-align:center;background:radial-gradient(ellipse at 50% 40%,#33223a66,transparent 65%),#100d19}.onboarding>.wordmark{margin-bottom:55px}.onboarding>h1{font-size:45px;margin-bottom:12px}.class-grid{display:grid;grid-template-columns:repeat(3,1fr);width:min(800px,100%);gap:18px;margin:38px auto}.class-card{flex-direction:column;position:relative;padding:24px 20px;background:linear-gradient(#251e2d,#191520);border-color:#3c3046;min-height:300px}.class-card.selected{border-color:var(--class-color);background:linear-gradient(#3f2e46,#201a2a);box-shadow:0 0 35px #a387c313}.class-card>svg{position:absolute;top:18px;left:18px;color:var(--class-color)}.class-card>.sprite{width:80px;height:120px;margin:15px 0}.class-card h2{font-size:27px;margin:10px 0 0}.class-card p{font-size:11px;color:#aca0b3}.mini-stats{display:flex;gap:20px;margin-top:12px}.mini-stats span{font-size:8px;color:#93849e}.mini-stats b{display:block;font-size:14px;color:#d5c7da;margin-top:4px}.creation-form{max-width:400px;margin:30px auto 20px;display:flex;flex-direction:column;gap:20px;text-align:left}.onboarding-logout{position:fixed;top:20px;right:25px}.selected-character{width:300px;padding:25px;margin:30px auto;background:#211b2c;border:1px solid #4e3c56}.portrait-stage{height:190px;background:radial-gradient(ellipse at 50% 70%,#67466a45,transparent 65%);display:flex;justify-content:center;align-items:center;border-bottom:1px solid #49344c;margin-bottom:20px}.portrait-stage .sprite{width:110px;height:165px}.selected-character h2{font-size:32px}.game-shell{min-height:100vh;padding-bottom:94px;background:radial-gradient(ellipse at 50% 0%,#30203966,transparent 50%),#100e18}.game-header{height:100px;padding:0 4vw;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #3d304048;background:#15111cd9}.profile-button{gap:13px;background:none;border:0;padding:0;text-align:left}.profile-button:hover:not(:disabled){background:none}.avatar{width:51px;height:57px;background:#34263e;border:1px solid #654a65;overflow:hidden;display:flex;justify-content:center}.avatar .sprite{width:43px;height:65px;flex-shrink:0}.profile-button>div:last-child{width:150px}.profile-button strong{font-size:12px;display:flex;align-items:center;gap:12px}.profile-button strong span{color:#bc9b67;font-size:8px}.profile-button small{display:block;font-size:9px;color:#9d8da6;margin:5px 0 8px}.profile-button .bar{height:5px}.profile-button .bar span{display:none}.header-resources{display:flex;align-items:center;gap:25px;font-size:13px}.game-header>.wordmark{position:absolute;left:50%;transform:translate(-50%);font-size:23px;letter-spacing:4px}.emulator-label{background:#342941;color:#c6b0dc;text-align:center;font-size:8px;letter-spacing:1px;padding:7px}.city{width:min(1360px,100%);margin:auto;padding:34px 4vw 0}.city-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:22px}.city-heading .eyebrow{font-size:8px;letter-spacing:2px;margin-bottom:10px}.city-heading h1{font-size:35px;margin:0}.city-status{display:flex;gap:8px;align-items:center;font-size:8px;letter-spacing:1.3px;color:#a49e91}.city-frame{position:relative;overflow:hidden;border:1px solid #4f3c54;background:#19131f;box-shadow:0 24px 80px #05040b60;max-height:67vh}.city-frame:after{content:"";position:absolute;pointer-events:none;inset:0;box-shadow:inset 0 0 100px #0b071650}.city-scene{display:block;width:100%;max-height:67vh}.building-label{fill:#c0a4b6;font-size:11px;letter-spacing:1.5px;font-family:Inter,sans-serif}.building-locked{fill:#8d7b90;font-size:8px;letter-spacing:1px;font-family:Inter,sans-serif}.building-label.small{font-size:9px}.building-locked.small{font-size:7px}.portal-label{fill:#e4c88f;font-size:10px;letter-spacing:1px;font-family:Inter,sans-serif}.merchant-sub{fill:#9e8c9e;font-size:7px;letter-spacing:1.1px;font-family:Inter,sans-serif}.city-hotspot{cursor:pointer;outline:none}.city-hotspot:hover .portal-label,.city-hotspot:focus-visible .portal-label{fill:#fff0c8}.city-hotspot:hover{filter:brightness(1.2)}.city-hotspot:focus-visible{filter:drop-shadow(0 0 4px #e3c490)}.portal-light{animation:portal 3s ease-in-out infinite}.torch{animation:torch 1.3s steps(3) infinite}.portal-particles{animation:particles 3s ease-in-out infinite}.city-player{position:absolute;left:52%;top:74%;display:flex;flex-direction:column;align-items:center;pointer-events:none;transform:translate(-50%,-50%)}.city-player .sprite{width:40px;height:60px;filter:drop-shadow(0 5px 4px #07050b)}.city-player span{font-size:8px;background:#17101bc0;color:#d7c1d6;padding:3px 8px}.city-coordinate,.city-weather{position:absolute;bottom:16px;font-size:7px;color:#958499;letter-spacing:1.5px}.city-coordinate{left:19px}.city-coordinate span{color:var(--gold);margin:0 8px}.city-weather{right:19px}.city-bottom{display:flex;justify-content:space-between;align-items:center;padding:22px 0}.city-bottom>div{display:flex;align-items:center;gap:13px}.city-bottom svg{color:#c39c6c}.city-bottom span{font-size:11px;color:#c9b4c2}.city-bottom small{display:block;color:#8d7e97;font-size:9px;margin-top:5px}.city-bottom button{font-size:8px;letter-spacing:1.2px}.bottom-nav{height:74px;display:flex;justify-content:center;position:fixed;bottom:0;left:0;right:0;background:#15121eea;border-top:1px solid #4e3c4b;z-index:30;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}.bottom-nav button{width:165px;border:0;border-top:2px solid transparent;background:none;display:flex;gap:12px;color:#998b9f;font-size:8px;letter-spacing:1.2px}.bottom-nav button.active,.bottom-nav button:hover{color:#d6b98a;border-top-color:#bd9a65;background:#28202d}.bottom-nav svg{width:17px}.modal-backdrop{position:fixed;inset:0;background:#07050bd4;-webkit-backdrop-filter:blur(7px);backdrop-filter:blur(7px);z-index:50;display:flex;align-items:center;justify-content:center;padding:30px 18px}.modal{background:linear-gradient(130deg,#25202e,#18141f);border:1px solid #65505e;width:min(740px,100%);max-height:90vh;overflow-y:auto;padding:30px;box-shadow:0 30px 120px #0009}.modal.wide{width:min(1100px,100%)}.modal>header{display:flex;justify-content:space-between;align-items:flex-start;padding-bottom:23px;border-bottom:1px solid var(--line);margin-bottom:25px}.modal>header h2{margin:0;font-size:29px;letter-spacing:1px}.modal>header .eyebrow{margin-bottom:9px}.modal>header .icon-button{padding-top:0;color:#bdaabf}.tabs{display:flex;border-bottom:1px solid var(--line);margin-bottom:25px}.tabs button{background:none;border:0;border-bottom:2px solid transparent;padding:13px 20px;font-size:9px;letter-spacing:1px;color:#9988a4}.tabs button.selected{color:#dabd90;border-bottom-color:#c19a66}.character-panel{display:grid;grid-template-columns:220px 1fr;gap:35px}.character-summary{text-align:center;padding-top:12px}.character-summary>.sprite{width:112px;height:168px}.character-summary>.eyebrow{margin-top:20px;font-size:8px}.character-summary h2{font-size:29px}.character-summary>.muted{margin-top:15px}.stat-row{display:flex;align-items:center;gap:18px;border-bottom:1px solid #423247;padding:12px 0}.stat-row>div{flex:1}.stat-row b{font-size:12px}.stat-row small{color:#93839c;display:block;font-size:9px;margin-top:5px}.stat-row strong{font-size:18px;color:#d9c1a2}.stat-row button{padding:6px}.derived-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:15px;margin:23px 0}.derived-grid span{font-size:10px;color:#a798b1;line-height:1.7}.derived-grid b{display:block;color:#d4c8db;font-size:12px}.derived-grid svg{vertical-align:middle;margin-right:5px}.confirmation{margin-top:20px;background:#352531;padding:15px;border:1px solid #856b54}.confirmation p{font-size:11px}.confirmation button{margin-right:10px;padding:9px 14px;min-height:35px}.gear-layout{display:grid;grid-template-columns:235px 1fr;gap:30px}.gear-character{text-align:center;border-right:1px solid var(--line);padding-right:25px}.gear-character .portrait-stage{height:170px}.gear-character .portrait-stage .sprite{height:144px;width:96px}.equipment-slots{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin:20px 0}.equipment-slots button{flex-direction:column;padding:6px 2px;gap:5px;background:#16121e}.equipment-slots small{font-size:6px;color:#a18aa5;letter-spacing:.4px}.equipment-slots .item-icon{width:45px;height:45px}.equipment-slots .sprite.item{height:32px;width:32px}.empty-slot{height:45px;width:45px;display:flex;align-items:center;justify-content:center;color:#655069;font-size:22px}.inventory-toolbar{display:flex;align-items:center;gap:10px;margin-bottom:20px}.inventory-toolbar>div{margin-right:auto;min-width:115px}.inventory-toolbar .eyebrow{font-size:8px;margin-bottom:5px}.inventory-toolbar strong{font-size:10px;color:#b6a2bd}.inventory-toolbar select{width:auto;min-height:36px;font-size:10px;padding:9px;max-width:150px}.inventory-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(60px,1fr));gap:9px;background:#120f1a80;padding:15px;border:1px solid #3f3045;min-height:120px;align-content:start}.inventory-grid>button{position:relative;padding:5px;background:#231a2c;border:1px solid #473449}.inventory-grid>button.selected{border-color:var(--gold);background:#44313d}.equipped-mark{position:absolute;right:2px;top:0;font-size:9px;color:#dcbb80}.supplies{padding:19px 0;border-bottom:1px solid var(--line)}.supplies .eyebrow{font-size:8px}.supplies>span{display:inline-block;margin-right:17px;font-size:9px;color:#a08daa}.supplies b{color:#d9c1a2}.item-detail{padding-top:25px}.item-title{display:flex;gap:15px;align-items:center}.item-title .eyebrow{font-size:8px;margin-bottom:6px}.item-title h3{font-size:17px;margin:0}.item-detail>p{font-size:11px;margin-top:15px}.affix-list,.comparison{display:flex;gap:12px;flex-wrap:wrap;font-size:10px;line-height:1.8}.affix-list{color:#cab5dd}.comparison{margin-top:15px}.item-detail .button-row button{font-size:9px}.vanity-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:15px}.vanity-card{text-align:center;padding:20px;background:#1b1424;border:1px solid #46314f;display:flex;flex-direction:column;align-items:center;gap:10px}.vanity-card .sprite{width:96px;height:144px}.vanity-card h3{font-size:13px}.vanity-card p{font-size:9px}.vanity-card button{margin-top:auto;font-size:8px}.vanity-card.locked>.sprite{filter:brightness(.2);opacity:.5}.portal-layout{display:grid;grid-template-columns:40% 1fr;gap:30px}.stage-list{display:flex;flex-direction:column;gap:6px}.stage-list button{justify-content:flex-start;padding:12px 13px;gap:15px;text-align:left;background:#191420;min-height:58px}.stage-list button.selected{border-color:#a78557;background:#362732}.stage-list button>span:nth-child(2){flex:1}.stage-number{font-family:Georgia,serif;color:#bea779;font-size:22px}.stage-list b{display:block;font-size:10px}.stage-list small{display:block;font-size:8px;color:#8e7e98;margin-top:5px}.stage-list button>svg{color:#a38c78}.portal-options{padding:12px 0}.portal-options h2{font-size:32px}.portal-options>.muted{font-size:11px;margin-bottom:25px}.difficulty-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin-bottom:20px}.difficulty-grid button{display:block;text-align:left;padding:16px 14px}.difficulty-grid b{font-size:10px;letter-spacing:1px;display:block}.difficulty-grid small{font-size:8px;color:#a290b0;display:block;margin-top:8px}.portal-options>label{margin-bottom:20px}.portal-options>label input{max-width:120px;display:block}.warning{background:#42302b70;border:1px solid #866a4b;color:#d9b88d;font-size:10px;line-height:1.7;padding:13px;margin-bottom:18px}.join-code{border-top:1px solid var(--line);margin-top:25px;padding-top:25px}.join-code>input{font-size:12px;letter-spacing:3px;margin-bottom:10px}.join-code>button{width:100%;font-size:10px}.panel{padding:40px;margin:35px auto;width:min(1100px,92vw);border:1px solid #49364d;background:#201928}.lobby{text-align:center}.lobby h1{font-size:39px}.code-button{font-family:monospace;font-size:23px;letter-spacing:5px;color:#dfbf86;border:1px dashed #8e6d49;background:#15101d;padding:15px 23px}.lobby>.muted{font-size:11px;margin:16px 0 30px}.party-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:15px}.party-card{padding:20px;border:1px solid #56405c;background:linear-gradient(#2f213b,#21192b);min-height:230px;display:flex;flex-direction:column;align-items:center;justify-content:center}.party-card .sprite{width:72px;height:108px}.party-card h3{margin:10px 0 8px;font-size:13px}.party-card span{font-size:8px;letter-spacing:1px}.party-card small{font-size:8px;color:#83768e;margin-top:10px}.ready{color:#b3c49b}.party-card.empty{border-style:dashed;background:#1a1421;color:#63536f}.party-card.empty p{font-size:10px;margin-top:15px}.lobby-settings{display:flex;gap:20px;text-align:left;margin-top:30px;justify-content:center}.lobby-settings label{flex:1;max-width:320px}.lobby .button-row{justify-content:center;margin-bottom:20px}.settings{display:flex;flex-direction:column;gap:18px}.settings p{font-size:12px;margin-bottom:0}.toggle{display:flex;align-items:center;gap:15px;letter-spacing:0;font-size:12px;color:#ccb8ce}.toggle input{width:18px;min-height:18px;margin:0;accent-color:#c0a06a}.help{padding:24px;background:#15101e;border:1px solid #45304c}.help>svg{color:#b89c74;margin-bottom:15px}.help p{font-size:11px;color:#a793af;margin-top:12px}.merchant-intro>p{font-size:12px}.merchant-intro>.gold{float:right}.offers{display:grid;grid-template-columns:repeat(4,1fr);gap:15px;margin:30px 0}.offers article{background:#19131f;border:1px solid #4b3550;padding:22px 15px;display:flex;flex-direction:column;align-items:center;text-align:center;gap:6px}.offers .item-icon{height:72px;width:72px;margin:10px 0 15px}.offers .item-icon .sprite{height:52px;width:52px}.offers article .eyebrow{font-size:7px;margin-bottom:5px}.offers h3{font-size:12px;margin:0}.offers p{font-size:9px}.offers small{font-size:9px;color:#a78fb9}.offers button{margin-top:auto;font-size:8px;padding:12px 7px;width:100%}.stage-pills{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:25px}.stage-pills button{font-size:10px;min-width:40px;padding:10px}.bestiary{display:flex;flex-direction:column;gap:10px;margin:25px 0}.bestiary article{display:flex;align-items:center;padding:20px;background:#17111f;border:1px solid #3e2d47;gap:25px}.bestiary article>.silhouette{filter:brightness(.2);opacity:.6}.bestiary .sprite{height:90px;width:90px}.bestiary .eyebrow{font-size:8px;margin-bottom:6px}.bestiary h3{font-size:15px;margin-bottom:8px}.bestiary p,.bestiary small{font-size:10px;margin-bottom:5px;color:#a08da9}.drop-explainer{padding:25px;background:#2a1e32;border:1px solid #5e4165}.drop-explainer>svg{color:#b99c6d;margin-bottom:15px}.drop-explainer p{font-size:11px}.table-scroll{overflow-x:auto}table{border-collapse:collapse;width:100%;font-size:10px;margin:22px 0}th,td{text-align:left;padding:12px 15px;border-bottom:1px solid #4c3653}th{color:#c6aa84;font-size:9px}.expedition{width:min(1360px,94vw);margin:30px auto}.expedition-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px}.expedition-heading h1{font-size:33px;margin-bottom:0}.expedition-heading .eyebrow{font-size:8px}.room-progress{text-align:right}.room-progress>span{font-size:10px;letter-spacing:2px;color:#92829f}.room-progress b{font-size:20px;color:#d6ba8a;margin:0 6px}.room-progress>div{display:flex;gap:6px;margin-top:12px}.room-progress i{width:14px;height:5px;background:#34273e}.room-progress i.current{background:#c7a575;box-shadow:0 0 8px #e3bf8b60}.room-progress i.complete{background:#826a91}.battle-layout{display:grid;grid-template-columns:1fr 250px;gap:20px}.battle-stage{position:relative;min-height:530px;border:1px solid #5c425f;background:linear-gradient(#201729,#17121f);overflow:hidden;display:flex;flex-direction:column;align-items:center}.battle-atmosphere{position:absolute;inset:0;opacity:.25;background:radial-gradient(ellipse at 50% 35%,#b08ab860,transparent 60%),repeating-linear-gradient(90deg,transparent 0,transparent 18%,#52345070 18%,#52345070 21%,transparent 21%,transparent 24%);pointer-events:none}.battle-caption{width:100%;text-align:center;display:flex;align-items:center;justify-content:center;gap:8px;position:relative;border-bottom:1px solid #49304b;padding:15px;background:#180f22b0;color:#c8ab7e;font-size:9px;letter-spacing:1.5px;z-index:1}.enemy-info{position:relative;width:min(330px,70%);text-align:center;margin-top:28px;z-index:1}.enemy-info .eyebrow{font-size:7px;margin-bottom:10px}.enemy-info h2{font-size:27px;margin-bottom:15px}.enemy-info>.bar{height:13px}.enemy-info>.bar span{line-height:12px}.battle-enemy.sprite{position:relative;z-index:1;width:160px;height:160px;margin:12px 0 25px;filter:drop-shadow(0 20px 15px #09050d)}.battle-ground{position:absolute;top:310px;width:240px;height:45px;border:1px solid #67486b;background:#36243a;transform:rotateX(50deg);border-radius:50%;opacity:.35}.effect-tags{display:flex;gap:4px;flex-wrap:wrap;justify-content:center;margin:5px 0;min-height:8px}.effect-tags span{color:#bd9fcf;border:1px solid #583b65;background:#2b1c37;padding:2px 5px;font-size:7px}.battle-party{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:10px;width:100%;padding:20px;position:relative;margin-top:auto;background:#100d17b0}.fighter{display:flex;gap:8px;align-items:center;justify-content:center;border:1px solid #44304e;padding:10px;background:#201628}.fighter.active{border-color:#b39a73;box-shadow:0 0 16px #bd9d6420}.fighter.fallen{filter:grayscale(1);opacity:.45}.fighter>.sprite{height:63px;width:42px;flex-shrink:0}.fighter>div{flex:1;max-width:160px}.fighter b{font-size:9px}.fighter small{font-size:7px;color:#8d7c99;display:block;margin:4px 0 7px}.fighter .bar{height:8px;margin-top:5px}.fighter .bar span{font-size:6px;line-height:7px}.combat-sidebar{background:#1a1422;border:1px solid #46314e;padding:22px 17px;display:flex;flex-direction:column;box-sizing:border-box;height:530px;max-height:530px;width:100%;min-height:0;min-width:0;align-self:start;overflow:hidden}.combat-sidebar>.eyebrow{font-size:8px;border-bottom:1px solid #412c49;padding-bottom:15px}.combat-log{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;display:block;overscroll-behavior:contain;overflow-anchor:none;scrollbar-gutter:stable;scroll-behavior:auto}.combat-log p{font-size:10px;color:#b39cbe;border-bottom:1px solid #3a263e;padding-bottom:9px;line-height:1.6;margin:0;overflow-wrap:anywhere}.combat-log p+p{margin-top:7px}.combat-sidebar>:not(.combat-log){flex-shrink:0}.combat-sidebar>.muted{font-size:9px;margin-top:20px}.combat-sidebar>.text-button{font-size:9px;margin-top:auto}.action-panel,.defense-panel,.waiting{scroll-margin-bottom:90px;scroll-margin-top:18px;padding:23px;background:#211929;border:1px solid #5b3f60;margin-top:20px}.action-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:17px}.action-heading .eyebrow{margin:0;font-size:8px}.action-heading label{display:flex;align-items:center;gap:15px;letter-spacing:0;font-size:9px}.action-heading select{margin:0;min-height:30px;font-size:10px;padding:6px 15px;width:140px}.action-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(95px,1fr));gap:8px;margin-bottom:15px}.action-grid>button{display:flex;flex-direction:column;text-align:center;padding:14px 5px;gap:10px;background:#2d2136;min-height:112px}.action-grid>button b{font-size:9px;font-weight:500}.action-grid>button small{font-size:8px;color:#ba9bc9}.action-grid>button svg{color:#c7a776}.action-panel>small{font-size:9px}.action-panel.inactive{opacity:.6}.defense-panel{text-align:center;border-color:#9d87be;background:radial-gradient(ellipse at 50% 50%,#44345a,#221b2d)}.defense-panel h3{font-family:Georgia,serif;font-size:23px;font-weight:400;margin-bottom:25px}.reaction-bar{display:block;position:relative;height:35px;width:min(650px,100%);padding:0;margin:auto;background:#151021;border:1px solid #705d82;overflow:visible;touch-action:manipulation}.block-zone,.dodge-zone{display:block;position:absolute;height:100%;top:0;left:50%;transform:translate(-50%)}.block-zone{background:#5176a7}.dodge-zone{background:#eee2ed;z-index:1}.marker{position:absolute;left:0;top:-6px;bottom:-6px;width:4px;background:#eecb74;z-index:2;box-shadow:0 0 12px #edcc85}.defense-panel>p:not(.eyebrow){font-size:9px;color:#b3a1c2;margin:20px 0}.blue-dot,.white-dot{display:inline-block;width:7px;height:7px;background:#638ab8;margin:0 6px 0 14px}.white-dot{background:#eee2ed}.waiting{text-align:center;color:#b4a0c4;font-size:11px}.route-choice{z-index:1;text-align:center;padding:40px 25px}.route-choice>.eyebrow{font-size:8px}.route-choice>p{font-size:11px}.route-cards{display:flex;gap:20px;margin-top:25px}.route-cards>button{display:flex;flex-direction:column;min-width:200px;max-width:240px;padding:25px 20px;background:linear-gradient(#40304e,#22172e);border-color:#705279}.route-cards>button>span{height:55px;color:#c6a4db}.route-cards>button>span>b{font-family:Georgia,serif;font-size:48px}.route-cards .eyebrow{margin:10px 0;font-size:7px}.route-cards h3{font-size:15px;margin-bottom:15px}.route-cards small{font-size:9px;line-height:1.8;color:#a18aaf}.route-cards>button>svg{margin-top:15px;color:#c4a676}.battle-result{z-index:1;text-align:center;padding:32px 30px;max-width:600px}.result-icon{color:#d6b378;margin-bottom:20px}.battle-result h2{font-size:26px}.battle-result>button{margin:10px}.battle-result>.muted{font-size:10px}.reward-list{display:flex;gap:13px;justify-content:center;flex-wrap:wrap;margin:20px 0}.reward-list>div{padding:13px;display:flex;align-items:center;gap:10px;background:#2d2035;border:1px solid #67476d}.reward-list span{font-size:11px;color:#c8ab74}.reward-list b{font-size:10px;display:block;color:#b2a0d3;margin-top:6px}.closed-room{text-align:center;min-height:400px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:15px}.toast{position:fixed;top:18px;left:50%;transform:translate(-50%);width:max-content;max-width:90vw;padding:15px 20px;z-index:100;background:#263328;border:1px solid #74846a;box-shadow:0 10px 40px #0009;display:flex;align-items:center;gap:20px;color:#d4dfc6;font-size:12px;line-height:1.6}.toast.error{background:#3c2631;border-color:#af737f;color:#efc6c3}.toast button{background:none;border:0;padding:0;color:inherit}.offline{position:fixed;top:0;left:0;right:0;background:#8b6636;color:#fff0d5;z-index:110;display:flex;justify-content:center;align-items:center;gap:10px;padding:9px;font-size:11px}.setup-error{padding:20vh 10vw;max-width:800px;margin:auto}.setup-error p{color:#b8a7bd}.reduce-motion .portal-light,.reduce-motion .portal-particles,.reduce-motion .torch{animation:none}.reduce-motion *{scroll-behavior:auto;transition:none!important}@keyframes portal{0%,to{opacity:.65}50%{opacity:1}}@keyframes torch{0%,to{opacity:.8}50%{opacity:1}}@keyframes particles{0%,to{transform:translateY(4px);opacity:.4}50%{transform:translateY(-10px);opacity:1}}@media(prefers-reduced-motion:reduce){.portal-light,.portal-particles,.torch{animation:none}*{scroll-behavior:auto;transition:none!important}}@media(min-width:1600px){.auth-content{max-width:1250px;grid-template-columns:1fr 420px;gap:160px}.auth-story h1{font-size:80px}.auth-card{padding:42px 38px}}@media(max-width:1050px){.auth-content{gap:45px;grid-template-columns:1fr 360px}.auth-story h1{font-size:58px}.battle-layout{grid-template-columns:1fr 200px}.battle-party{padding:12px;gap:6px}.fighter{padding:7px 5px}.fighter>.sprite{height:48px;width:32px}.action-grid{grid-template-columns:repeat(5,1fr)}.vanity-grid,.offers{grid-template-columns:repeat(2,1fr)}.inventory-toolbar{flex-wrap:wrap}.inventory-toolbar>div{width:100%}.gear-layout{grid-template-columns:205px 1fr}.gear-character{padding-right:18px}.portal-layout{grid-template-columns:42% 1fr;gap:22px}}@media(max-width:760px){.auth-header{padding:25px 6vw}.auth-header .wordmark{font-size:16px}.server-tag{font-size:6px;padding:8px;letter-spacing:.5px}.auth-content{display:flex;flex-direction:column;align-items:stretch;gap:35px;width:min(440px,88vw);padding:35px 0 60px}.auth-story h1{font-size:49px;line-height:1.05}.auth-story h1 br:nth-child(2){display:none}.auth-story .chapter-label{font-size:7px;margin-bottom:22px}.auth-story>p{font-size:11px}.story-features{margin-top:20px;gap:25px}.story-features span{font-size:8px}.auth-card{padding:30px 26px}.auth-footer{padding:20px 6vw;font-size:6px;line-height:1.9}.auth-footer>span:last-child{display:none}.game-header{height:81px;padding:0 5vw}.game-header>.wordmark{display:none}.profile-button>div:last-child{width:125px}.profile-button strong{font-size:11px}.profile-button strong span{font-size:7px}.avatar{width:43px;height:50px}.header-resources{gap:12px;font-size:11px}.header-resources .icon-button{padding:0}.city{padding:26px 0 0}.city-heading{padding:0 5vw 20px;margin:0}.city-heading h1{font-size:29px}.city-heading .eyebrow{font-size:6px;letter-spacing:1px}.city-status{font-size:6px;letter-spacing:.5px;max-width:100px;line-height:1.8}.city-frame{border-left:0;border-right:0;min-height:440px;max-height:none;display:flex;align-items:center;justify-content:center}.city-scene{width:870px;min-width:870px;height:472px;max-height:none;transform:translate(-5px)}.city-player{left:51%;top:75%}.city-player .sprite{height:54px;width:36px}.city-weather{display:none}.city-coordinate{font-size:6px}.city-bottom{padding:22px 5vw;gap:10px}.city-bottom .text-button{font-size:7px;letter-spacing:.4px;max-width:110px}.city-bottom span{font-size:10px}.city-bottom small{font-size:8px}.bottom-nav{height:70px}.bottom-nav button{width:25%;gap:7px;flex-direction:column;padding:10px 3px;font-size:7px;letter-spacing:.5px}.bottom-nav svg{height:18px}.modal-backdrop{padding:12px 9px}.modal{padding:22px 17px;max-height:94vh}.modal>header{padding-bottom:18px;margin-bottom:20px}.modal>header h2{font-size:26px}.modal>header .eyebrow{font-size:7px}.character-panel{grid-template-columns:1fr;gap:20px}.character-summary>.sprite{height:120px;width:80px}.character-summary{padding:0 25px 15px;border-bottom:1px solid var(--line)}.character-summary h2{margin-bottom:10px}.character-summary>.eyebrow{margin-top:10px}.character-summary>.bar{max-width:250px;margin:auto}.gear-layout{grid-template-columns:1fr;gap:20px}.gear-character{border:0;border-bottom:1px solid var(--line);padding:0 0 15px}.gear-character .portrait-stage{height:115px;margin-bottom:12px}.gear-character .portrait-stage .sprite{height:105px;width:70px}.gear-character h3{margin-bottom:10px}.equipment-slots{grid-template-columns:repeat(6,1fr);gap:5px;margin:10px 0}.equipment-slots .item-icon{width:38px;height:38px}.equipment-slots .sprite.item{height:28px;width:28px}.equipment-slots small{font-size:5px}.equipment-slots button{padding:5px 0}.empty-slot{width:38px;height:38px}.gear-character .derived-grid{display:flex;justify-content:space-around;margin:15px 0 0}.inventory-grid{grid-template-columns:repeat(auto-fill,minmax(52px,1fr));padding:10px;gap:7px}.inventory-grid>button{padding:3px}.inventory-grid .item-icon{width:45px;height:45px}.inventory-toolbar select{max-width:none;flex:1}.portal-layout{grid-template-columns:1fr}.stage-list{display:grid;grid-template-columns:repeat(2,1fr);gap:5px}.stage-list button{padding:10px 8px;min-height:55px;gap:8px}.stage-list b{font-size:8px}.stage-list small{font-size:6px}.stage-number{font-size:18px}.stage-list button>svg{display:none}.portal-options{padding-top:0}.portal-options h2{font-size:29px}.portal-options .tabs button{flex:1}.vanity-grid{gap:9px}.vanity-card{padding:15px 10px}.vanity-card .sprite{height:105px;width:70px}.vanity-card h3{font-size:11px}.vanity-card p{font-size:8px}.party-grid{grid-template-columns:repeat(2,1fr);gap:10px}.party-card{min-height:190px;padding:15px}.party-card .sprite{height:90px;width:60px}.panel{padding:28px 18px;margin:25px auto}.lobby h1{font-size:30px}.lobby-settings{flex-wrap:wrap;gap:15px}.lobby-settings label{min-width:130px}.lobby>.button-row button{font-size:9px}.offers{gap:10px}.offers article{padding:15px 10px}.offers .item-icon{width:56px;height:56px}.offers .item-icon .sprite{width:40px;height:40px}.merchant-intro .gold{float:none;display:block;margin-top:15px}.bestiary article{gap:15px;padding:15px 12px}.bestiary .sprite{width:65px;height:65px}.bestiary h3{font-size:12px}.bestiary p,.bestiary small{font-size:9px}.drop-explainer{padding:18px 14px}.drop-explainer h3{font-size:12px}th,td{padding:10px 7px;font-size:9px}.expedition{margin-top:22px}.expedition-heading h1{font-size:25px}.expedition-heading .eyebrow{font-size:6px;letter-spacing:1px}.room-progress{min-width:115px}.room-progress>span{font-size:7px;letter-spacing:1px}.room-progress b{font-size:16px}.room-progress>div{gap:4px;justify-content:flex-end}.room-progress i{width:8px;height:4px}.battle-layout{grid-template-columns:1fr}.combat-sidebar{padding:15px;max-height:185px;display:none}.battle-stage{min-height:470px}.battle-caption{font-size:7px;padding:13px;letter-spacing:1px}.enemy-info{margin-top:24px;width:70%}.enemy-info h2{font-size:24px}.battle-enemy.sprite{width:140px;height:140px}.battle-party{grid-template-columns:repeat(auto-fit,minmax(125px,1fr));padding:10px}.fighter b{font-size:8px}.fighter small{font-size:6px}.battle-result{padding:28px 15px}.battle-result h2{font-size:24px}.route-choice{padding:30px 12px}.route-cards{gap:10px}.route-cards>button{min-width:0;width:47%;padding:22px 12px}.route-cards h3{font-size:12px}.route-cards small{font-size:8px}.route-cards>button>span{height:45px}.action-panel,.defense-panel,.waiting{padding:18px 12px}.action-grid{grid-template-columns:repeat(3,1fr)}.action-grid>button{min-height:95px;padding:12px 6px}.action-grid>button b{font-size:8px}.action-grid>button small{font-size:7px}.action-grid>button svg{height:19px}.action-panel>small{font-size:8px}.action-heading label{font-size:8px;gap:8px}.action-heading select{width:110px;font-size:9px}.defense-panel h3{font-size:21px}.defense-panel .primary{font-size:8px;padding:14px 10px}.onboarding{padding:35px 18px}.onboarding>.wordmark{margin-bottom:40px}.onboarding>h1{font-size:35px}.class-grid{gap:8px;margin:25px auto}.class-card{padding:15px 7px;min-height:250px}.class-card>svg{height:15px;top:11px;left:9px}.class-card>.sprite{height:90px;width:60px}.class-card h2{font-size:22px}.class-card p{font-size:8px;min-height:25px}.mini-stats{gap:9px;margin-top:7px}.mini-stats span{font-size:6px}.mini-stats b{font-size:11px}.toast{font-size:11px;padding:12px 15px;top:12px}}.login-embers{position:absolute;inset:0;overflow:clip;pointer-events:none;z-index:-1}.login-embers i{position:absolute;background:var(--ember-color, #cf4841);opacity:0;box-shadow:1px 0 #d84c3c40,0 1px #d84c3c40;animation:login-ember-float 20s linear infinite}@keyframes login-ember-float{0%{translate:0 20px;opacity:0}25%{opacity:.36}70%{opacity:.22}to{translate:var(--ember-drift) -120px;opacity:0}}.reduce-motion .login-embers i{animation:none;opacity:.08}@media(prefers-reduced-motion:reduce){.login-embers i{animation:none;opacity:.08}}.battle-world{position:absolute;inset:0;pointer-events:none}.battle-world img{display:block;width:100%;height:100%;object-fit:cover;object-position:center;image-rendering:pixelated}.battle-world:after{content:"";position:absolute;inset:0;background:linear-gradient(#100d1b55,#100d1b22 45%,#100d1b88)}.bestiary article>.silhouette{position:relative;flex-shrink:0;filter:none;opacity:1}.bestiary .silhouette .sprite{filter:brightness(0)}.unknown-creature{position:absolute;inset:0;display:grid;place-items:center;font:48px/1 Pixelify Sans,monospace;color:#e7c993;text-shadow:2px 2px #08050e;pointer-events:none}.gear-modal .equipped-mark{top:3px;right:3px;z-index:2;padding:1px 3px;border:1px solid #bba477;background:#18111f;color:#ffe4a3;font:12px/1 Pixelify Sans,monospace}.character-panel{min-width:0}.character-panel>div{min-width:0}.character-panel .stat-row{padding:12px;gap:12px;min-width:0}.character-panel .stat-row>div{min-width:0}.character-panel .stat-row b{display:block}.character-panel .stat-row button{flex-shrink:0}.character-panel .stat-row .stat-benefit{color:#bbaaaf;font-size:10px;line-height:1.5;max-width:38ch;overflow-wrap:anywhere}.character-summary .available-points{margin-top:15px}.character-summary .available-points strong{font:inherit}.character-summary .available-points.has-points{color:#dfbc79}.character-summary .available-points.has-points strong{font:600 25px/1.3 Pixelify Sans,monospace;text-shadow:0 0 9px #e5b75b45,2px 2px #120b17}.fullscreen-setting{margin:14px 0}.fullscreen-setting>button{width:100%;text-align:left}.fullscreen-setting>small{display:block;margin-top:8px}.auth-screen{height:100dvh;min-height:0;display:grid;grid-template-rows:auto minmax(0,1fr) auto}.auth-screen .auth-header{padding:clamp(14px,3dvh,30px) 5vw}.auth-screen .auth-content{display:flex;justify-content:flex-end;align-items:center;width:90%;height:100%;min-height:0;margin:0 auto;padding:12px 0;gap:0}.auth-screen .auth-card{width:390px;max-width:100%;max-height:100%;overflow-y:auto;padding:24px 28px}.auth-card .crest{width:36px;height:36px;margin-bottom:18px}.auth-card h2{font-size:26px;margin-bottom:8px}.auth-card>.muted{margin-bottom:16px}.auth-card .auth-tabs{margin-bottom:16px}.auth-card label{margin-bottom:14px}.auth-card .forgot{margin-bottom:14px;margin-top:-6px}.auth-card .auth-security{margin-top:16px;padding-top:14px}.auth-screen .auth-footer{padding:16px 5vw}.game-shell.home-view,.game-shell.run-view{height:100dvh;min-height:0;padding-bottom:0;display:flex;flex-direction:column}:is(.home-view,.run-view)>.game-header{height:78px;flex:0 0 78px}:is(.home-view,.run-view)>.emulator-label{flex-shrink:0}:is(.home-view,.run-view)>.bottom-nav{position:relative;height:58px;flex:0 0 58px;-webkit-backdrop-filter:none;backdrop-filter:none}:is(.home-view,.run-view)>.bottom-nav button{padding:8px 12px}.home-view .city{position:relative;display:flex;flex-direction:column;flex:1;min-height:0;width:100%;margin:0;padding:0}.home-view .city-frame{flex:1;min-height:0;max-height:none;width:100%;aspect-ratio:auto;border:0;background:linear-gradient(#151023,#34273f 48%,#292334 75%,#151420)}.home-view .city-scene{position:absolute;left:0;top:80%;width:100%;height:auto;min-height:100%;min-width:0;max-height:none;transform:translateY(-80%);margin:0}.home-view .city-frame:after{box-shadow:none}.city-avatar{display:flex;flex-direction:column;align-items:center;gap:2px}.city-avatar .sprite{width:40px;height:60px;filter:drop-shadow(0 5px 4px #07050b)}.city-avatar>span{max-width:80px;overflow-wrap:anywhere;text-align:center;font-size:8px;padding:3px 5px;background:#17101bc0;color:#d7c1d6}.city-frame>.city-status{position:absolute;right:22px;top:18px}.home-view .city-bottom{position:absolute;bottom:0;left:0;right:0;padding:10px 22px;background:linear-gradient(transparent,#100d18e8);pointer-events:none}.home-view .city-bottom button{pointer-events:auto}.home-view .city-bottom small{margin-top:3px;font-size:8px}.home-view .city-coordinate,.home-view .city-weather{bottom:65px}.torch-glow{animation:warm-flicker 2.7s ease-in-out infinite}.city-star{animation:star-glimmer 6s ease-in-out infinite}.city-meteor{animation:passing-star 1.1s linear both}@keyframes warm-flicker{0%,to{opacity:.75}23%{opacity:1}47%{opacity:.82}71%{opacity:.95}}@keyframes star-glimmer{0%,to{opacity:.35}50%{opacity:.85}}@keyframes passing-star{0%{opacity:0;transform:translate(0)}15%{opacity:.8}80%{opacity:.65}to{opacity:0;transform:translate(135px,65px)}}.reduce-motion .torch-glow,.reduce-motion .city-star{animation:none}.reduce-motion .city-meteor{display:none}@media(prefers-reduced-motion:reduce){.torch-glow,.city-star{animation:none}.city-meteor{display:none}}.modal.merchant-modal{width:min(1080px,100%);padding:22px;max-height:calc(100dvh - 60px)}.merchant-modal>header{padding-bottom:14px;margin-bottom:14px}.merchant-modal .merchant-intro>p{margin:6px 0;font-size:11px}.merchant-modal .offers{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:16px 0}.merchant-modal .offers article{padding:14px 12px;gap:5px;min-width:0}.merchant-modal .offers .item-icon{width:56px;height:56px;margin:4px 0 8px}.merchant-modal .offers .item-icon .sprite{width:40px;height:40px}.merchant-modal .offers h3{min-height:30px;font-size:12px;line-height:1.3}.merchant-modal .offers button{margin-top:auto;min-height:38px;padding:9px 4px}.merchant-modal>.muted{font-size:10px;margin:8px 0 0}.run-view .expedition{display:flex;flex-direction:column;flex:1;min-height:0;width:min(1600px,96%);margin:0 auto;padding:10px 0;gap:9px}.run-view .expedition-heading{margin:0;flex-shrink:0;min-height:46px}.run-view .expedition-heading h1{font-size:27px}.run-view .expedition-heading .eyebrow{margin-bottom:4px}.run-view .room-progress>div{margin-top:6px}.run-view .battle-layout{grid-template-columns:minmax(0,1fr) 210px;flex:1;min-height:0;gap:12px}.run-view .battle-stage{min-height:0;min-width:0}.run-view .battle-caption{padding:10px;font-size:8px;flex-shrink:0}.run-view .enemy-unit{position:absolute;inset:44px 3% 7% 57%;display:flex;flex-direction:column;align-items:center;justify-content:flex-end}.run-view .enemy-info{width:min(280px,100%);margin:0;flex-shrink:0}.run-view .enemy-info .eyebrow{margin-bottom:6px}.run-view .enemy-info h2{font-size:clamp(18px,2.2vw,27px);margin-bottom:8px}.run-view .enemy-info>.bar{height:15px}.run-view .enemy-info>.bar span{line-height:14px;font-size:9px}.run-view .battle-enemy.sprite{width:auto;height:min(23dvh,180px);max-width:90%;max-height:55%;object-fit:contain;margin:5px 0 0;transform:scaleX(-1);flex-shrink:1;min-height:0}.run-view .battle-ground{top:auto;bottom:7%;width:75%;height:25px}.run-view .battle-party{position:absolute;inset:43px 52% 8% 3%;width:auto;padding:0;margin:0;background:none;display:flex;flex-direction:row-reverse;justify-content:center;gap:4px;align-items:flex-end}.run-view .fighter{position:relative;flex-direction:column;gap:3px;padding:0;border:0;background:none;box-shadow:none;min-width:0;height:auto;max-height:none;flex:1 1 0;max-width:135px}.run-view .fighter:nth-child(1){transform:none;z-index:4}.run-view .fighter:nth-child(2){transform:none;z-index:3}.run-view .fighter:nth-child(3){transform:none;z-index:2}.run-view .fighter:nth-child(4){z-index:1}.run-view .battle-party[data-size="1"]{display:flex;justify-content:center;align-items:flex-end}.run-view .battle-party[data-size="1"] .fighter{flex:0 1 160px;max-width:160px;transform:none}.run-view .fighter>.fighter-info{flex:0 0 auto;width:100%;max-width:160px;padding:5px;border:1px solid #44304eb0;background:#1a1225e0;text-align:center}.run-view .fighter.active>.fighter-info{border-color:#b39a73;box-shadow:0 0 16px #bd9d6420}.run-view .fighter b{display:block;font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.run-view .fighter small{margin:2px 0 4px;font-size:8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.run-view .fighter .bar{height:12px;margin-top:3px}.run-view .fighter .bar span{font-size:8px;line-height:11px}.run-view .fighter .effect-tags{margin:2px 0 0;min-height:0}.run-view .fighter>.sprite{width:auto;height:min(19dvh,140px);max-width:95%;max-height:none;object-fit:contain;object-position:center bottom;flex-shrink:1;min-height:0}.run-view .battle-party[data-size="1"] .fighter>.sprite,.run-view .battle-party[data-size="2"] .fighter>.sprite{height:min(19dvh,140px)}.run-view .combat-sidebar{display:flex;padding:12px;min-height:0}.run-view .combat-sidebar>.eyebrow{padding-bottom:10px;margin-bottom:10px}.run-view .combat-log{flex:1;min-height:0;height:auto}.run-view .combat-log p{font-size:9px;padding-bottom:6px}.run-view .combat-sidebar>.muted{margin:10px 0;font-size:8px}.run-view .combat-sidebar>.text-button{flex-shrink:0;padding:7px 0}.run-view .action-panel,.run-view .defense-panel,.run-view .waiting{flex-shrink:0;margin:0;padding:10px 12px;scroll-margin:0}.run-view .action-heading{margin-bottom:8px}.run-view .action-heading select{min-height:25px;padding:3px 8px}.run-view .action-grid{grid-template-columns:repeat(10,minmax(0,1fr));gap:6px;margin-bottom:5px}.run-view .action-grid>button{min-height:66px;padding:7px 4px;gap:4px}.run-view .action-grid>button b{font-size:9px}.run-view .action-grid>button small{font-size:8px}.run-view .action-grid>button svg{width:18px;height:18px}.run-view .action-panel>small{font-size:8px}.run-view .action-panel>.button-row{margin:6px 0;gap:6px}.run-view .action-panel>.button-row button{padding:8px 10px;font-size:10px}.run-view .defense-panel>.eyebrow{margin-bottom:4px}.run-view .defense-panel h3{margin-bottom:12px;font-size:20px}.run-view .defense-panel .reaction-bar{height:25px}.run-view .defense-panel>p:not(.eyebrow){margin:9px 0}.run-view .defense-panel>.primary{padding:8px 14px;font-size:10px}.run-view .route-choice,.run-view .battle-result{position:relative;margin-left:auto;width:50%;max-height:calc(100% - 38px);padding:14px;overflow-y:auto}.run-view .route-choice h2,.run-view .battle-result h2{font-size:23px}.run-view .route-cards{gap:10px;margin-top:14px}.run-view .route-cards>button{min-width:0;width:50%;padding:15px 8px}.run-view .route-cards>button>span{height:40px}.run-view .route-cards h3{font-size:13px;margin-bottom:6px}.run-view .route-cards small{font-size:8px}.run-view .result-icon{margin-bottom:10px}.run-view .reward-list{margin:10px 0;gap:6px}.run-view .reward-list>div{padding:6px}.run-view .battle-result>button{margin:6px;padding:9px 12px}@media(max-height:680px){.auth-card .crest{display:none}.auth-card>.muted{margin-bottom:10px}.auth-screen .auth-card{padding:18px 25px}.auth-screen .auth-header{padding-top:14px;padding-bottom:14px}.auth-screen .auth-footer{padding-top:10px;padding-bottom:10px}.run-view>.game-header{flex-basis:66px;height:66px}.run-view>.bottom-nav{flex-basis:48px;height:48px}.run-view .expedition-heading h1{font-size:23px}.run-view .fighter small{font-size:7px}.run-view .fighter>.sprite{height:9dvh}}@media(max-width:1100px){.run-view .battle-layout{grid-template-columns:minmax(0,1fr) 180px}.run-view .action-grid{grid-template-columns:repeat(5,minmax(0,1fr))}.run-view .action-grid>button{min-height:52px;gap:2px}.run-view .action-grid>button svg{height:14px}}@media(max-width:760px){.auth-screen .auth-content{justify-content:center}.auth-screen .auth-header{gap:12px}.auth-screen .server-tag{font-size:6px;letter-spacing:.5px;padding:7px}.auth-screen .auth-footer{gap:12px;font-size:6px;letter-spacing:.8px;flex-wrap:wrap}.auth-screen .auth-footer>span:last-child{display:block}:is(.home-view,.run-view)>.game-header{height:72px;flex-basis:72px;padding:0 14px}:is(.home-view,.run-view)>.bottom-nav{height:60px;flex-basis:60px}:is(.home-view,.run-view)>.bottom-nav button{width:25%;padding:6px 2px}.home-view .city-bottom{padding:10px 12px}.home-view .city-bottom .text-button{display:inline-flex;font-size:7px;padding:7px}.home-view .city-bottom small{display:none}.home-view .city-bottom span{font-size:9px}.city-frame>.city-status{right:12px;top:12px;font-size:6px}.home-view .city-coordinate,.home-view .city-weather{font-size:5px;bottom:60px;letter-spacing:.5px}.merchant-modal .offers{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.modal.merchant-modal{max-height:calc(100dvh - 24px);padding:16px}.merchant-modal .offers article{padding:10px 8px}.merchant-modal .merchant-intro>.gold{float:none;display:block;margin-top:10px}.run-view .expedition{overflow-y:auto;padding:8px 0}.run-view .expedition-heading{gap:12px}.run-view .expedition-heading h1{font-size:22px}.run-view .battle-layout{display:flex;flex-direction:column;flex:0 0 auto;gap:8px}.run-view .battle-stage{min-height:420px}.run-view .combat-sidebar{max-height:150px}.run-view .combat-sidebar>.eyebrow{margin-bottom:4px;padding-bottom:4px}.run-view .combat-sidebar>.muted{margin:4px 0}.run-view .battle-party{inset:auto 3% 5%;gap:3px}.run-view .fighter b{font-size:8px}.run-view .fighter small{font-size:7px}.run-view .fighter>.fighter-info{padding:3px}.run-view .fighter .bar span{font-size:8px}.run-view .fighter>.sprite{height:90px}.run-view .battle-party[data-size="2"],.run-view .battle-party[data-size="3"],.run-view .battle-party[data-size="4"]{gap:3px}.run-view .battle-party:not([data-size="1"]) .fighter{grid-area:auto;transform:none}.run-view .battle-party[data-size="1"] .fighter>.sprite,.run-view .battle-party[data-size="2"] .fighter>.sprite{height:100px}.run-view .enemy-unit{left:54%;right:3%;bottom:185px}.run-view .battle-enemy.sprite{height:120px}.run-view .enemy-info h2{font-size:19px}.run-view .action-grid>button{min-height:78px}.run-view .action-grid>button b{font-size:8px}.run-view .action-grid>button small{font-size:7px}.run-view .route-choice,.run-view .battle-result{width:100%;margin:0;padding:14px 10px;max-height:300px}.run-view .battle-stage:not(.phase-action):not(.phase-defense){padding-bottom:0;min-height:0}.run-view .battle-stage:not(.phase-action):not(.phase-defense) .battle-party{position:relative;inset:auto;height:200px;width:94%;flex-shrink:0}}@media(max-height:520px)and (min-width:761px){.run-view .expedition{overflow-y:auto}.run-view .battle-layout{flex:0 0 340px}}.modal-backdrop:has(>:is(.gear-modal,.portal-modal)){padding:16px 18px}.modal:is(.gear-modal,.portal-modal){max-height:calc(100dvh - 32px);padding:16px}.modal:is(.gear-modal,.portal-modal)>header{align-items:center;padding-bottom:8px;margin-bottom:10px}.modal:is(.gear-modal,.portal-modal)>header h2{font-size:24px}.modal:is(.gear-modal,.portal-modal)>header .eyebrow{font-size:7px;margin-bottom:3px}.modal:is(.gear-modal,.portal-modal)>header .icon-button{padding:4px}.modal:is(.gear-modal,.portal-modal) .tabs{margin-bottom:12px}.modal:is(.gear-modal,.portal-modal) .tabs button{padding:9px 16px}.gear-modal .inventory-grid .item-icon>small{display:none}.gear-modal .inventory-toolbar{margin-bottom:10px}.gear-modal .inventory-grid{gap:6px;padding:10px;min-height:96px}.gear-modal .supplies{padding:10px 0}.gear-modal .supplies .eyebrow{margin-bottom:6px}.gear-modal .item-detail{padding-top:12px}.gear-modal .item-detail>p{margin:8px 0}.gear-modal .comparison{margin-top:8px}.gear-modal .item-detail .button-row{margin-top:10px}.portal-modal .portal-layout{gap:20px}.portal-modal .stage-list{gap:4px}.portal-modal .stage-list button{min-height:44px;padding:6px 10px;gap:10px}.portal-modal .stage-list small{margin-top:2px}.portal-modal .portal-options{padding:2px 0}.portal-modal .portal-options>.eyebrow{margin-bottom:6px}.portal-modal .portal-options h2{font-size:26px;margin-bottom:5px}.portal-modal .portal-options>.muted{margin-bottom:10px}.portal-modal .difficulty-grid{gap:8px;margin-bottom:12px}.portal-modal .difficulty-grid button{padding:10px;border-color:color-mix(in srgb,var(--difficulty-color) 45%,#33283c)}.difficulty-normal{--difficulty-color: #91c991}.difficulty-hard{--difficulty-color: #e5c86c}.difficulty-nightmare{--difficulty-color: #ec888b}.difficulty-torment{--difficulty-color: #c5a0ef}.portal-modal .difficulty-grid button.selected{border-color:var(--difficulty-color);box-shadow:inset 3px 0 var(--difficulty-color)}.portal-modal .difficulty-grid b{display:flex;align-items:center;flex-wrap:wrap;gap:7px;color:var(--difficulty-color)}.difficulty-faces{display:inline-flex;gap:2px;flex-shrink:0;color:inherit}.difficulty-faces svg{display:block;width:12px;height:12px;image-rendering:pixelated}.portal-modal .difficulty-grid small{margin-top:5px}.portal-modal .portal-options>label{font-size:9px;margin-bottom:10px}.portal-modal .portal-options>label input{min-height:34px;margin-top:5px;padding:7px 10px}.portal-modal .warning{line-height:1.5;padding:8px 10px;margin-bottom:10px}.portal-modal .portal-options>.primary{padding:9px 12px}.portal-modal .join-code{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px;padding-top:12px;margin-top:12px}.portal-modal .join-code>.eyebrow{grid-column:1 / -1;margin:0}.portal-modal .join-code>input{min-width:0;min-height:36px;padding:8px;margin:0}.portal-modal .join-code>button{width:auto;padding:8px}@media(min-width:761px){.modal.gear-modal{width:min(1180px,100%);display:flex;flex-direction:column}.gear-modal>header,.gear-modal>.tabs{flex-shrink:0}.gear-modal .gear-layout{grid-template-columns:210px minmax(0,1fr);grid-template-rows:minmax(0,1fr);min-height:0;gap:18px}.gear-modal .gear-character{padding-right:16px}.gear-modal .gear-character .portrait-stage{height:140px}.gear-modal .gear-character .portrait-stage .sprite{height:128px;width:85px}.gear-modal .equipment-slots{margin:12px 0}.gear-modal .derived-grid{margin:14px 0;gap:10px}.gear-modal .inventory-main{display:flex;flex-direction:column;min-height:0}.gear-modal .inventory-main>*{flex-shrink:0}.gear-modal .inventory-main .inventory-grid{flex-shrink:1;min-height:79px;overflow-y:auto;scrollbar-gutter:stable}}.run-view .battle-stage.phase-decision{justify-content:center}.run-view .battle-stage.phase-decision>.battle-caption{position:absolute;top:0}.run-view .battle-stage.phase-decision .battle-party,.run-view .battle-stage.phase-decision .enemy-unit{display:none}.run-view .battle-stage.phase-decision .route-choice{width:min(760px,calc(100% - 48px));margin:38px auto 0;max-height:calc(100% - 58px);padding:14px;text-align:center}.run-view .battle-stage.phase-decision .route-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.run-view .battle-stage.phase-decision .route-cards>button{width:100%;max-width:none;min-height:160px;padding:14px}.run-view .battle-stage.phase-decision .route-cards h3{font-size:15px}.run-view .battle-stage.phase-decision .route-cards small{font-size:10px}@media(max-width:760px){.modal-backdrop:has(>:is(.gear-modal,.portal-modal)){padding:12px 9px}.modal:is(.gear-modal,.portal-modal){max-height:calc(100dvh - 24px);padding:14px}.portal-modal .portal-layout{gap:14px}.portal-modal .difficulty-faces{gap:1px}.portal-modal .difficulty-faces svg{width:10px;height:10px}.portal-modal .difficulty-grid b{gap:5px}.portal-modal .join-code{grid-template-columns:minmax(0,1fr)}.run-view .battle-stage.phase-decision{min-height:380px;padding:42px 10px 10px}.run-view .battle-stage.phase-decision .route-choice{width:100%;max-height:none;margin:auto;padding:8px}.run-view .battle-stage.phase-decision .route-cards{gap:8px}.run-view .battle-stage.phase-decision .route-cards>button{padding:12px 8px}.run-view .battle-stage.phase-decision .route-cards h3{font-size:13px}}@font-face{font-family:Pixelify Sans;src:url(/assets/fonts/PixelifySans.ttf) format("truetype");font-weight:400 700;font-display:swap}:root{--pixel-frame: #77638f;--pixel-edge: #09091a;--pixel-face: #211c35;--pixel-gold: #ebc787;--muted: #ada1c0;--line: #4d3f67;--gold: #ebc787;--panel: #211c35;--purple: #bc98f0;color:#f0eaf8;background:#100d20;font-family:Consolas,Liberation Mono,monospace}h1,h2,h3,.wordmark,.loading h1,.defense-panel h3,.modal>header h2{font-family:Pixelify Sans,monospace;font-weight:600;letter-spacing:.6px}.wordmark{color:#dfc390;text-shadow:2px 2px 0 #08050e}.modal>header h2{color:var(--pixel-gold);font-size:27px}.eyebrow,.tag,.gold,.server-tag{font-family:Consolas,Liberation Mono,monospace}button,input,select{border-radius:0}button{border-color:var(--pixel-frame);background:#2b2440;box-shadow:inset 0 1px #ffffff0c,2px 2px 0 var(--pixel-edge);transition:background .12s steps(1),border-color .12s steps(1)}button:hover:not(:disabled){background:#403257;border-color:#b29469}button:active:not(:disabled){box-shadow:inset 2px 2px #100b17}button.selected,button.active,.primary{background:#493650;border-color:#b29660;color:#f0d49c}.primary:hover:not(:disabled){background:#64455c}input:not([type=checkbox]),select{background:#151126;border-color:#655271;box-shadow:inset 2px 2px #090710}:is(.modal,.auth-card,.panel,.selected-character,.class-card,.combat-sidebar,.action-panel,.defense-panel,.waiting){border-color:var(--pixel-frame);border-radius:0;box-shadow:inset 0 1px #a58bb722,4px 4px 0 var(--pixel-edge)}.modal{background:#211c35}.modal-backdrop{-webkit-backdrop-filter:none;backdrop-filter:none;background:#090610e8}.modal>header{position:relative;border-bottom:2px solid #110c1b}.modal>header:after{content:"";position:absolute;width:6px;height:6px;background:var(--pixel-gold);bottom:-4px;left:calc(50% - 3px)}.auth-screen .auth-card{background:#211a28f5}.auth-card .crest{border-radius:0;box-shadow:3px 3px #100b16}.auth-card h2{font-size:27px}.auth-tabs button,.tabs button{box-shadow:none;border-radius:0;background:#171220}.auth-tabs button.selected,.tabs button.selected{background:#33283c;color:#e4c183}.tabs{gap:4px}.tabs button{border:1px solid #55415f;border-bottom:3px solid #30223b}.tabs button.selected{border-bottom-color:#c8a569}.offers article,.item-row,.stat-row,.help,.difficulty-grid button,.route-cards>button,.reward-list>div{border-radius:0;background:#1c1730;box-shadow:inset 2px 2px #6b547333,3px 3px #0d0913}.item-icon,.equipment-slot,.bar,.avatar{border-radius:0;box-shadow:2px 2px #090610}.item-icon{background:#14101d}.bar i{background-image:none}.bar.hp i{background-color:#a95c6a}.bar.energy i{background-color:#8e80bc}.text-button,.icon-button,.profile-button,.bottom-nav button,.password-field button{box-shadow:none}.bottom-nav{-webkit-backdrop-filter:none;backdrop-filter:none;background:#17121f}.bottom-nav button{font-family:Consolas,monospace}.action-grid>button{background:#2b2236;box-shadow:inset 0 1px #80658e44,2px 2px #0c0812}.settings .toggle{display:flex;align-items:center;gap:14px;min-height:56px;padding:14px;margin:0;background:#17121f;border:1px solid #6c587b;box-shadow:inset 3px 0 #50405d,3px 3px #090611;font-size:12px;letter-spacing:0}.settings .toggle input{appearance:none;flex:0 0 46px;width:46px;min-height:0;height:24px;padding:0;margin:0 0 0 auto;order:2;border:2px solid #71617c;background:#100c19;box-shadow:2px 2px #08050c;cursor:pointer}.settings .toggle input:before{content:"";display:block;width:16px;height:16px;margin:2px;background:#b8abca;border:2px solid #4a3d59}.settings .toggle input:checked{background:#394436}.settings .toggle input:checked:before{margin-left:24px;background:#e0bc76;border-color:#8b754f}.settings .toggle input:focus-visible{outline:2px solid #dfbc79;outline-offset:4px}.settings .help{border:1px solid #4e3d5b;padding:14px}.settings{gap:12px}.settings .master-volume{padding:14px;background:#17121f;border:1px solid #6c587b;box-shadow:inset 3px 0 #50405d,3px 3px #090611}.master-volume-label{display:flex;justify-content:space-between;gap:12px;font-size:12px}.master-volume-label output{color:#e0bc76}.master-volume-controls{display:grid;grid-template-columns:40px minmax(0,1fr) 40px;gap:10px;align-items:center;max-width:400px;margin-top:10px}.settings .master-volume-controls button{min-height:40px;padding:0;font-size:24px;line-height:1}.master-volume-squares{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:4px}.master-volume-squares>span{height:20px;background:#241b30;border:2px solid #51405f;box-shadow:inset 0 -3px #110d19}.master-volume-squares>.filled{background:#e0bc76;border-color:#ad8b54;box-shadow:inset 0 -3px #a47b45}.settings .help>svg{margin-bottom:8px}.modal.hall-modal{width:min(900px,100%);height:min(720px,calc(100dvh - 60px));max-height:calc(100dvh - 60px);display:flex;flex-direction:column;padding:24px;overflow:visible}.hall-modal>header{flex-shrink:0;margin-bottom:18px;padding-bottom:18px}.hall-content{flex:1;min-height:0;display:flex;flex-direction:column}.hall-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.hall-tabs button{padding:12px 8px;background:#17121f;font-size:12px}.hall-tabs button[aria-selected=true]{background:#3c2e40;color:#e6c080;border-color:#b29362;box-shadow:inset 0 -3px #b29362,2px 2px #090610}.hall-summary{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:14px 0 10px;font-size:9px;color:#b4a4c3}.hall-summary button{font-size:9px;padding:5px 0}.hall-ranking{flex:1;min-height:0;overflow:auto;border:1px solid #5b476b;background:#15101d}.hall-table{width:100%;margin:0;font-size:12px;border-collapse:separate;border-spacing:0}.hall-table th{position:sticky;top:0;z-index:1;background:#2a2034;color:#bcabcb;font-size:10px;padding:12px;border-bottom:2px solid #6e557c}.hall-table td{padding:12px;border-bottom:1px solid #382a45}.hall-table tbody tr:nth-child(2n){background:#1c1525}.hall-table .hall-name{color:#ede2f3;font-weight:700}.hall-name small{color:#bcae7c;font-size:8px}.hall-place{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-width:48px;font-weight:700}.hall-table .hall-score{font-family:Pixelify Sans,monospace;font-size:20px;color:#d9c0e9}.hall-table tbody tr.podium-1{--medal: #e1bb67;background:#352b26}.hall-table tbody tr.podium-2{--medal: #b8c5d6;background:#252933}.hall-table tbody tr.podium-3{--medal: #c18d65;background:#302321}.hall-table .podium td:first-child{border-left:3px solid var(--medal)}.hall-table .podium .hall-place,.hall-table .podium .hall-score{color:var(--medal)}.hall-table .hall-self .hall-name{text-decoration:underline;text-underline-offset:4px}.hall-position{display:flex;align-items:center;gap:24px;padding:16px;margin-top:14px;border:1px solid #8c724d;background:#302534;box-shadow:3px 3px #0b0711;flex-shrink:0}.hall-position>div{display:flex;flex-direction:column;gap:5px}.hall-position .eyebrow{font-size:9px;margin:0;color:#bca383}.hall-position strong{font:600 26px Pixelify Sans,monospace;color:#edc980}.hall-position b{font-size:13px}.hall-position span:not(.eyebrow),.hall-position small{font-size:10px;color:#baa6cb}.hall-note{font-size:9px;line-height:1.5;color:#a493b3;margin:10px 0 0;flex-shrink:0}.hall-message{text-align:center;padding:40px 16px;color:#c5b5d1;font-size:12px;line-height:1.8}.hall-message button{margin-top:14px;font-size:11px}@media(max-width:760px){.modal.hall-modal{padding:16px;height:calc(100dvh - 24px);max-height:calc(100dvh - 24px)}.hall-modal>header{margin-bottom:14px;padding-bottom:14px}.hall-modal>header h2{font-size:23px}.hall-tabs button{font-size:10px;padding:12px 3px}.hall-summary{font-size:8px}.hall-summary>span{max-width:70%;line-height:1.5}.hall-table{font-size:10px}.hall-table td,.hall-table th{padding:10px 6px}.hall-table th{font-size:8px}.hall-table .hall-score{font-size:18px}.hall-place{min-width:32px;gap:2px}.hall-position{gap:14px;padding:12px}.hall-position .eyebrow{font-size:8px}.settings .toggle{font-size:11px;padding:12px}}@media(max-height:520px){.modal.hall-modal{height:calc(100dvh - 24px);max-height:calc(100dvh - 24px);padding:12px;overflow-y:auto}.hall-modal>header{padding-bottom:10px;margin-bottom:10px}.hall-content{flex:0 0 auto;min-height:360px}.hall-ranking{flex:0 0 150px}.hall-position{position:sticky;bottom:0}}.modal.merchant-modal>header{padding-bottom:8px;margin-bottom:8px}.modal.merchant-modal{padding:16px 22px}.merchant-modal .merchant-section-title{margin:6px 0 4px;color:var(--gold, #dfbc79);font-size:11px;letter-spacing:1px}.merchant-modal .offers{margin:6px 0;gap:9px}.merchant-modal .offers article{padding:9px;gap:3px;min-width:0}.modal.merchant-modal .offers article>p{margin:0;line-height:1.3;font-size:10px}.merchant-modal .offers .item-icon{width:36px;height:36px;margin:0 0 4px}.modal.merchant-modal .offers .sprite.item{width:32px;height:32px}.merchant-modal .offers h3{min-height:22px;margin:2px 0;font-size:12px}.merchant-modal .offers small{font-size:10px;line-height:1.4}.merchant-modal .offers button{min-height:32px;padding:7px 4px;font-size:10px}.merchant-modal .merchant-potion-offers article>.sprite{margin-bottom:4px}.merchant-modal .merchant-potion-description{margin:0;font-size:11px;line-height:1.4}.merchant-modal .merchant-limits{display:flex;flex-wrap:wrap;gap:6px 14px;font-size:11px}.merchant-modal .merchant-feedback{margin:3px 0;font-size:12px}.merchant-modal .merchant-feedback[role=alert]{color:#ffb4a7}.modal.merchant-modal .merchant-intro>p{margin:4px 0}.modal.merchant-modal .merchant-intro>.tag{padding:5px 10px}.merchant-modal .merchant-clock{margin:7px 0 0;font-size:10px}.supplies .reset-potion-entry{display:inline-flex;align-items:center;gap:6px;padding:5px 8px;text-align:left;min-height:38px}.supplies .reset-potion-entry>span{background:none;border:0;padding:0}.supplies .reset-potion-entry .sprite.item{width:28px;height:28px}.reset-potion-description{font-size:13px;line-height:1.6}.reset-potion-description>.sprite.item{width:48px;height:48px}.reset-potion-description section{padding:12px;border:1px solid #bf9859}.reset-potion-actions{display:flex;flex-wrap:wrap;gap:8px}@media(max-width:760px){.merchant-modal .offers{gap:8px}.merchant-modal .offers article{padding:8px}.merchant-modal .offers h3{font-size:11px}}
