*{box-sizing:border-box}body{margin:0;background:#060d14;color:#e5e7dd;font-family:Pretendard,"Apple SD Gothic Neo",sans-serif;overflow:hidden;user-select:none}button{font:inherit;color:inherit;cursor:pointer;border:1px solid #61757d;background:#213540;padding:12px 18px;border-radius:5px;min-height:44px}button:hover{background:#35505b;border-color:#dfc18a}button:focus-visible{outline:2px solid #f1c78b;outline-offset:3px}#arena{width:min(100vw,177.7778vh);height:min(100vh,56.25vw);position:absolute;inset:0;margin:auto;overflow:hidden;background:#15232e}#game{width:100%;height:100%;touch-action:none;display:block}canvas{display:block}header{position:absolute;left:3%;right:3%;top:4%;display:flex;justify-content:space-between;align-items:start;pointer-events:none}header small{font-size:10px;letter-spacing:2px;color:#a7b6b9}.identity{width:24%;max-width:260px}.identity strong{display:block;font-size:25px;margin:6px 0}.identity em{font-size:13px;font-style:normal;color:#e9c386;margin-left:8px}.health{height:16px;background:#13202d;border:1px solid #8197a044;position:relative}.health i{display:block;height:100%;background:linear-gradient(90deg,#a8524d,#d18a76)}.health span{position:absolute;inset:0;text-align:center;font-size:10px}.clock{text-align:center}.clock strong{display:block;font-size:32px;font-variant-numeric:tabular-nums;font-weight:400;letter-spacing:3px;margin:4px}.clock span{font-size:10px;color:#abb9bf}.right{display:flex;gap:16px;align-items:center;font-size:12px}.right button{pointer-events:auto;padding:8px 14px}.xp{position:absolute;top:0;left:0;width:100%;height:4px;background:#1c313e}.xp i{display:block;height:100%;background:#8bcfe1;box-shadow:0 0 10px #85ccde}.xp span{position:absolute;top:7px;right:3%;font-size:9px;color:#9dbac4}#notice{position:absolute;top:22%;width:100%;text-align:center;font-size:13px;color:#f0d0a2;text-shadow:0 2px 8px #000;pointer-events:none}#boss{position:absolute;top:29%;left:35%;width:30%;font-size:10px;text-align:center;color:#efb5a5}#boss i{display:block;height:4px;margin-top:5px;background:#dc826e}#hint{position:absolute;bottom:24%;left:3%;font-size:11px;color:#b0c2c6;line-height:1.8;pointer-events:none;transition:opacity 1s}#hint b{color:#e3ca9b}#stick{position:absolute;left:5%;bottom:6%;width:96px;height:96px;border:1px solid #9cbbc54a;border-radius:50%;background:#14263360;touch-action:none;display:grid;place-items:center}#stick i{position:absolute;width:40px;height:40px;border-radius:50%;background:#90a9b755;border:1px solid #d5d9c777;pointer-events:none}#stick span{position:absolute;top:4px;color:#9eb0b5;font-size:13px}#stick label{position:absolute;bottom:5px;font-size:10px;color:#aab9ba;pointer-events:none}#stick.active{border-color:#e6c48b}footer{position:absolute;bottom:3%;left:50%;transform:translateX(-50%);text-align:center;pointer-events:none}.slots{display:flex;gap:5px;justify-content:center}.slot{position:relative;width:45px;height:45px;background:#10212be8;border:1px solid #79939c50;border-radius:4px;display:grid;place-items:center;color:#5f757e}.slot svg{width:27px;height:27px}.slot em{position:absolute;bottom:1px;right:3px;font-size:9px;font-style:normal;color:#dfd5bb}.slot.ready{box-shadow:0 0 9px #ebc57d;border-color:#ebc57d}.small{margin-top:5px}.small .slot{width:30px;height:26px}.small svg{width:17px;height:17px}footer>small{display:block;font-size:9px;color:#8d9fa7;margin-top:5px}#overlay{position:absolute;inset:0;background:#07131ae8;backdrop-filter:blur(7px);display:flex;align-items:center;justify-content:center;padding:22px;overflow:auto}#overlay[hidden]{display:none}.panel{max-width:840px;width:100%;text-align:center}.eyebrow{color:#d8b57d;font-size:10px;letter-spacing:3px}.panel h1{font-size:29px;font-weight:500;margin:10px}.panel>p{color:#a4b6bd;font-size:13px;line-height:1.8;margin:10px auto 20px;max-width:650px}.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.card{text-align:left;padding:20px;background:linear-gradient(145deg,#263b45,#12242e);border-color:#70858c66;min-height:195px}.card svg{width:40px;height:40px;display:block;margin-bottom:15px}.card small{font-size:10px;color:#d3be99}.card strong{display:block;font-size:19px;margin:7px 0}.card p{font-size:12px;color:#b4c3c5;line-height:1.6;margin:8px 0}.card .recipe{font-size:10px;color:#8aa4af;border-top:1px solid #78919d33;padding-top:10px}.actions{display:flex;gap:10px;justify-content:center;margin-top:20px;flex-wrap:wrap}.primary{background:#bb9660;color:#111e25;border-color:#e0bd85}.reward svg{width:90px;height:90px;color:#ecc68b}.damage{font-size:12px;color:#a9bdc4;line-height:1.8}.training{display:grid;gap:8px;max-width:600px;margin:auto}.training button{text-align:left;display:flex;justify-content:space-between;gap:20px}.training span{color:#d8bc8c}#rotate{display:none}@media(max-height:500px){header{top:4%}.identity strong{font-size:18px;margin:3px 0}.clock strong{font-size:24px;margin:1px}header small{font-size:8px}.right{gap:8px;font-size:10px}.right button{min-height:34px;padding:4px 10px}.slot{width:34px;height:34px}.slot svg{width:23px;height:23px}.small .slot{width:24px;height:20px}.small svg{width:13px;height:13px}.small{margin-top:3px}#stick{width:78px;height:78px}#stick i{width:32px;height:32px}#hint{font-size:9px;bottom:28%}#notice{font-size:11px}.panel h1{font-size:22px;margin:5px}.panel>p{margin:6px auto 12px;font-size:11px}.card{min-height:160px;padding:12px}.card svg{width:28px;height:28px;margin-bottom:6px}.card strong{font-size:15px}.card p{font-size:10px;margin:5px 0}.card .recipe{font-size:9px}.actions{margin-top:12px}#overlay{padding:14px}.reward svg{width:60px;height:60px}}@media(orientation:portrait){#rotate{position:fixed;inset:0;background:#0b1923;display:flex;align-items:center;justify-content:center;flex-direction:column;font-size:22px;z-index:20}#rotate span{font-size:12px;color:#a1b2bc;margin-top:15px}}
#saveWarning{position:absolute;left:25%;right:25%;bottom:20%;padding:8px;background:#402a24;color:#f6c7a5;font-size:11px;text-align:center;z-index:5}
.slot.executing{background:#806b49;border-color:#f0d3a0;box-shadow:0 0 12px #d8ac6477}#comboStatus{display:block;color:#d7c19b;font-size:10px;margin-bottom:6px}.sequence-row{display:flex;align-items:center;gap:6px;max-width:500px;margin:5px auto}.sequence-row span{flex:1;text-align:left}.sequence-row button{padding:4px 14px;min-height:30px}.panel:has(.sequence-row){max-height:100%;overflow:auto}
/* Film-frame skill cards: restrained arcade colors, actual fighter poses. */
#overlay.choosing{background:#050a10d9;backdrop-filter:blur(2px);padding:18px 4%}.skill-menu{width:100%;max-width:1040px;text-align:left}.skill-heading{display:flex;align-items:center;gap:18px;margin-bottom:22px;border-bottom:1px solid #b2a07860;padding-bottom:16px}.level-seal{display:flex;flex-direction:column;align-items:center;justify-content:center;width:62px;height:66px;border:2px solid #d7b579;box-shadow:inset 0 0 0 4px #161d23;color:#dfc392;background:#2e2a21;font-size:10px;letter-spacing:2px;flex-shrink:0}.level-seal strong{font-size:29px;line-height:1.1;letter-spacing:0}.skill-heading small{font-size:9px;letter-spacing:2.7px;color:#b7a27d}.skill-heading h1{font-size:28px;margin:6px 0;color:#f2e5ca;letter-spacing:-1px}.skill-heading p{font-size:12px;color:#a6b1b7;margin:0}.pick-count{margin-left:auto;color:#e6c992;font-size:17px;white-space:nowrap}.pick-count b{font-size:13px;color:#75838c}.skill-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.skill-card{--accent:#daba83;padding:0;text-align:left;border-radius:0;border:1px solid var(--accent);background:#15202a;box-shadow:0 6px 0 #020609,0 0 0 3px #1f2931;overflow:hidden;transition:transform .14s,box-shadow .14s;animation:card-deal .25s both;animation-delay:var(--delay);position:relative}.skill-card:hover,.skill-card:focus-visible{transform:translateY(-5px);background:#1d2a34;box-shadow:0 8px 0 #020609,0 0 0 3px var(--accent);outline:none}.card-top{display:flex;justify-content:space-between;padding:9px 14px;border-bottom:1px solid #ffffff20;font-size:10px;letter-spacing:1px;color:var(--accent)}.card-top b{font-size:9px;color:#101a22;background:var(--accent);padding:2px 5px}.skill-art{height:139px;position:relative;overflow:hidden;background:radial-gradient(ellipse at 50% 110%,color-mix(in srgb,var(--accent) 22%,transparent),transparent 75%),repeating-linear-gradient(0deg,#ffffff03 0 1px,transparent 1px 5px),#0a121b;border-bottom:1px solid #ffffff12}.skill-art:before,.skill-art:after{content:'';position:absolute;top:7px;bottom:7px;width:5px;background:repeating-linear-gradient(0deg,#85929745 0 5px,transparent 5px 12px)}.skill-art:before{left:5px}.skill-art:after{right:5px}.skill-art canvas{position:absolute;height:180px;width:190px;bottom:-12px;left:50%;transform:translateX(-50%);image-rendering:pixelated}.art-number{position:absolute;left:20px;top:5px;font-size:53px;font-weight:900;color:#ffffff08}.art-role{position:absolute;bottom:7px;left:14px;font-size:9px;color:#c6d0d1;background:#060d14c9;padding:3px 5px}.item-emblem{height:100%;display:grid;place-items:center;color:var(--accent)}.item-emblem svg{width:65px;height:65px;filter:drop-shadow(3px 4px 0 #000)}.skill-body{padding:14px 15px 10px}.skill-name{display:flex;align-items:center;justify-content:space-between;gap:4px}.skill-name strong{font-size:18px;color:#f2e5cd;letter-spacing:-.6px}.skill-name>span{font-size:10px;color:var(--accent);white-space:nowrap}.rank-pips{display:flex;gap:4px;margin-top:9px}.rank-pips i{height:4px;width:20px;background:#050b10;border:1px solid #71808940}.rank-pips .owned{background:var(--accent)}.rank-pips .gain{background:#fff0ba;box-shadow:0 0 6px var(--accent)}.skill-body>p{font-size:11px;line-height:1.65;color:#acbbc4;min-height:36px;margin:11px 0}.stat-change{display:flex;justify-content:space-between;align-items:center;padding:9px 10px;background:#090f16;border-left:2px solid var(--accent);font-size:11px}.stat-change del{text-decoration:none;color:#6f828e}.stat-change i{font-style:normal;color:#77887d}.stat-change b{font-size:16px;color:#d3eaa5}.skill-link{margin-top:11px;min-height:43px}.skill-link>span{font-size:10px;color:#a8b4bc;display:flex;align-items:center;gap:5px}.skill-link svg{width:15px;height:15px}.skill-link .met{color:#d3eaa5}.skill-link small{display:block;font-size:8px;color:#718591;margin-top:5px}.take-skill{display:flex;justify-content:space-between;align-items:center;border-top:1px solid #ffffff20;padding:10px 15px;font-size:11px;color:var(--accent);background:#ffffff04}.take-skill>span{font-size:18px;line-height:12px}.loadout-strip{margin-top:22px;display:flex;align-items:center;justify-content:center;gap:10px;color:#677d88;font-size:10px}.loadout-strip>span:first-child{margin-right:8px;letter-spacing:1px;color:#b6a789}.loadout-move{display:flex;gap:5px;align-items:center}.loadout-move svg{width:19px;height:19px;color:#c7b58e}.loadout-move b{font-weight:400;color:#a0afb5}.loadout-move em{font-style:normal;color:#dcc295}.loadout-strip>i{font-style:normal}@keyframes card-deal{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}@media(max-height:600px){#overlay.choosing{padding:10px 4%}.skill-heading{gap:12px;margin-bottom:10px;padding-bottom:8px}.level-seal{width:40px;height:42px;font-size:8px}.level-seal strong{font-size:21px}.skill-heading h1{font-size:20px;margin:3px 0}.skill-heading small{font-size:7px}.skill-heading p{font-size:9px}.skill-cards{gap:12px}.card-top{padding:5px 10px;font-size:8px}.card-top b{font-size:7px}.skill-art{height:75px}.skill-art canvas{height:112px;width:119px;bottom:-7px}.item-emblem svg{width:39px;height:39px}.art-number{font-size:37px}.art-role{font-size:7px;bottom:3px;left:12px}.skill-body{padding:8px 10px 6px}.skill-name strong{font-size:13px}.skill-name>span{font-size:8px}.rank-pips{margin-top:5px}.skill-body>p{font-size:9px;min-height:28px;margin:6px 0;line-height:1.5}.stat-change{padding:5px 7px;font-size:9px}.stat-change b{font-size:12px}.skill-link{margin-top:6px;min-height:31px}.skill-link>span{font-size:8px}.skill-link small{font-size:6.5px;margin-top:3px}.take-skill{padding:6px 10px;font-size:9px}.loadout-strip{margin-top:10px;font-size:8px;gap:5px}.loadout-move svg{width:14px;height:14px}}@media(prefers-reduced-motion:reduce){.skill-card{animation:none;transition:none}}
/* Shared noir game surfaces. Astra: readable numbers, gold economy, tactile controls. */
:root{--ui-bg:#0a1320;--ui-panel:#162338;--ui-edge:#526682;--ui-ink:#ede8d8;--ui-muted:#acb5c2;--ui-gold:#f1c575;--ui-positive:#9ed8ac;--ui-negative:#ed9b94;--ui-shadow:0 4px 0 #040912,inset 0 1px 0 #ffffff20}
.square-button{width:44px;height:44px;min-height:44px;padding:9px;display:grid;place-items:center;background:linear-gradient(#344358,#1a263b);border:1px solid #6c7c91;box-shadow:var(--ui-shadow);border-radius:9px;flex-shrink:0}.square-button svg{width:24px;height:24px}.square-button:active{transform:translateY(2px);box-shadow:inset 0 2px 5px #0008}.wallet-chip{display:flex;align-items:center;gap:7px;min-width:112px;height:44px;padding:4px 14px 4px 4px;background:linear-gradient(110deg,#2a2631,#111926);border:1px solid #b892585f;border-radius:9px;box-shadow:inset 0 1px 0 #f1dbb126}.wallet-chip svg{width:37px;height:37px;flex-shrink:0}.wallet-chip span{display:flex;flex-direction:column;text-align:right;flex:1}.wallet-chip small{font-size:8px;letter-spacing:1.4px;line-height:1;color:#c4ad83}.wallet-chip b{font-size:19px;font-weight:850;color:#ffe0a0;font-variant-numeric:tabular-nums;line-height:1.3;white-space:nowrap}.scrap-chip{min-width:87px;border-color:#6b96ba65;background:linear-gradient(110deg,#27374a,#142333)}.scrap-chip svg{width:28px;color:#b1cbd7}.scrap-chip b{color:#d0e4ef}.scrap-chip small{color:#9fbacd}
#overlay.equipping{display:block;overflow:hidden;padding:20px 24px;background:radial-gradient(ellipse at 25% 40%,#26354499,transparent 62%),#0b1320;backdrop-filter:none}#overlay[hidden]{display:none!important}.equipment-menu{height:100%;max-width:1400px;margin:auto;display:flex;flex-direction:column;position:relative;color:var(--ui-ink);min-height:0}.equipment-heading{display:flex;justify-content:space-between;align-items:center;flex-shrink:0;padding-bottom:13px;border-bottom:1px solid #53657d80}.equipment-heading small{font-size:8px;letter-spacing:2px;color:#aeb1a3}.equipment-heading h1{font-size:26px;margin:1px 0 0}.equipment-wallet{display:flex;align-items:center;gap:9px}.equipment-columns{display:grid;grid-template-columns:1fr 1.03fr;gap:24px;flex:1;min-height:0;padding-top:16px}.loadout-panel{display:flex;flex-direction:column;min-width:0;min-height:0}.loadout-title{display:flex;align-items:center;justify-content:space-between;padding:0 4px 10px}.loadout-title b{font-size:17px}.loadout-title small{display:block;font-size:10px;font-weight:400;color:var(--ui-muted);margin-top:4px}.loadout-title>span{font-size:10px;letter-spacing:1px;color:#d7c19a}.gear-stage{display:grid;grid-template-columns:clamp(78px,8vw,106px) minmax(0,1fr) clamp(78px,8vw,106px);flex:1;min-height:0;gap:8px;align-items:stretch}.loadout-side{display:grid;grid-template-rows:repeat(3,minmax(0,1fr));gap:9px;min-height:0}.item-tile{display:flex;align-items:center;flex-direction:column;position:relative;isolation:isolate;overflow:hidden;padding:3px 4px 5px;min-height:0;border-radius:9px;border:2px solid var(--rarity);background:linear-gradient(145deg,color-mix(in srgb,var(--rarity) 33%,#142038),#132133 80%);box-shadow:inset 0 0 0 2px #0a15249e,inset 0 4px 0 #ffffff24,0 3px 0 #030810;transition:transform .12s,border-color .12s;color:#edf0e7}.item-tile:before{content:'';position:absolute;inset:2px;border:1px solid #ffffff18;border-radius:5px;pointer-events:none}.item-tile:hover{background:linear-gradient(145deg,color-mix(in srgb,var(--rarity) 52%,#142038),#1e324a);transform:translateY(-2px)}.item-tile:active{transform:translateY(1px)}.tile-top{display:flex;justify-content:space-between;align-items:center;width:100%;font-size:9px;color:#eef1e8;z-index:1;line-height:14px;text-shadow:0 1px 2px #000}.tile-top i{font-style:normal;font-size:8px;color:#d6d8da}.tile-top b{font-weight:800;background:#09131bc9;padding:0 3px;border-radius:3px}.item-tile .gear-art{width:100%;height:auto;min-height:0;flex:1;max-width:105px;filter:drop-shadow(0 3px 1px #0008)}.tile-name{display:block;font-size:10px;line-height:1.2;text-align:center;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;z-index:1}.upgrade-dot{position:absolute;right:4px;top:21px;background:linear-gradient(#b8e4a2,#549260);border:1px solid #e0f5bd;box-shadow:0 2px 0 #152b1b;color:#173324;font-size:16px;font-weight:900;width:19px;height:21px;border-radius:4px}.equipped-ribbon{position:absolute;top:45%;left:0;right:0;background:#112b2cdd;box-shadow:0 1px 0 #e3eacc25;color:#c1ecc7;font-size:9px;line-height:19px;text-align:center;transform:rotate(-9deg);font-weight:700}.gear-figure{position:relative;display:flex;align-items:center;justify-content:center;min-width:0;min-height:0;overflow:hidden}.gear-figure canvas{position:relative;width:100%;height:auto;aspect-ratio:18/17;max-height:100%;object-fit:contain;image-rendering:pixelated;z-index:1;flex-shrink:0}.hero-halo{position:absolute;width:160%;height:95%;background:radial-gradient(ellipse,#b6b69f20,transparent 65%);pointer-events:none}.hero-floor{position:absolute;bottom:13%;width:80%;height:9%;border-radius:50%;background:radial-gradient(ellipse,#709aa133,transparent 67%);border-bottom:1px solid #b1c2b533}.loadout-stats{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:12px}.loadout-stats>span{display:flex;align-items:center;gap:6px;border:1px solid #67799755;background:#192838;padding:7px 9px;border-radius:7px}.loadout-stats svg{width:23px;height:23px;color:#e7bc79}.loadout-stats>span:last-child svg{color:#da7c78}.loadout-stats small{font-size:9px;color:#b7bec6}.loadout-stats b{font-size:17px;margin-left:auto;font-variant-numeric:tabular-nums;color:#eee7d1}.set-strip{display:flex;justify-content:space-around;gap:5px;margin-top:8px}.set-strip>span{font-size:9px;color:#9eacb9}.set-strip b{margin-left:4px;color:#788b9b}.set-strip .active,.set-strip .active b{color:#bde5ac}.loadout-note{font-size:9px;text-align:center;color:#acb4bd;margin:8px 0 0}.inventory-panel{display:flex;flex-direction:column;min-width:0;min-height:0;border:1px solid #4d607a82;border-radius:12px;background:#0d1828;box-shadow:inset 0 1px 0 #ffffff13;padding:12px}.inventory-heading{display:flex;justify-content:space-between;align-items:center;flex-shrink:0;margin-bottom:10px}.inventory-heading h2{font-size:19px;margin:0}.inventory-heading h2 small{font-size:11px;color:#9cabbc;font-weight:400;margin-left:5px}.sort-button{display:flex;align-items:center;gap:4px;padding:4px 9px;min-height:34px;border:1px solid #64779166;background:#26374c;font-size:10px;border-radius:6px}.sort-button svg{width:17px;height:17px}.gear-tabs{display:grid;grid-template-columns:1fr 1fr;background:#080e1b;border:1px solid #3d516b;border-radius:7px;padding:3px;gap:4px;flex-shrink:0}.gear-tabs button{display:flex;align-items:center;justify-content:center;gap:6px;min-height:36px;border:0;padding:5px;background:transparent;border-radius:5px;font-size:12px;color:#99aabd}.gear-tabs svg{width:19px;height:19px}.gear-tabs button[aria-selected=true]{background:linear-gradient(#b89a62,#816437);box-shadow:inset 0 1px 0 #f1d69b;color:#fff2d1}.gear-filters{display:flex;gap:4px;padding:10px 0;overflow:auto;flex-shrink:0;scrollbar-width:none}.gear-filters button{padding:6px 9px;min-height:32px;background:#1a2b40;border-color:transparent;border-radius:5px;font-size:10px;white-space:nowrap;color:#b6c0cb}.gear-filters button[aria-pressed=true]{color:#ffe1a5;background:#493c29;border-color:#b1955c}.gear-inventory-scroll{overflow:auto;min-height:0;flex:1;padding:2px 3px 6px;scrollbar-width:thin;scrollbar-color:#647793 #101c2d;overscroll-behavior:contain}.gear-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;align-content:start}.gear-grid .item-tile{aspect-ratio:.85;min-width:0}.inventory-foot{border-top:1px solid #33485f;display:flex;align-items:center;justify-content:space-between;gap:5px;padding-top:7px;margin-top:6px;flex-shrink:0}.inventory-foot>span{font-size:10px;color:#9cadbd}.inventory-foot .square-button{width:32px;height:32px;min-height:32px;padding:6px;border-radius:50%}.inventory-foot .square-button svg{width:18px;height:18px}.empty-bag{padding:45px 10px;font-size:12px;line-height:1.8;text-align:center;color:#9baec0}.gear-toast{position:absolute;bottom:6px;left:50%;transform:translateX(-50%);max-width:90%;width:max-content;background:#253f42f7;color:#f1d498;padding:12px 18px;border:1px solid #8b99737d;border-radius:8px;font-size:12px;box-shadow:0 5px 24px #000a;z-index:5;pointer-events:none;margin:0}.gear-toast:empty{display:none}
.gear-inspector{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:#040a13bd;backdrop-filter:blur(4px);z-index:3;padding:8px}.item-dialog{width:min(440px,90%);max-height:100%;display:flex;flex-direction:column;background:linear-gradient(135deg,#24344b,#111d30);border:1px solid #b4a17f;border-radius:12px;box-shadow:0 18px 65px #000b;overflow:hidden}.item-dialog-top{display:flex;align-items:center;justify-content:space-between;padding:8px 13px;border-bottom:1px solid #70849a4d;flex-shrink:0}.item-dialog-top>span{font-size:10px;letter-spacing:1px;color:#d9c290}.item-dialog-top .square-button{width:34px;height:34px;min-height:34px;padding:7px}.item-dialog-top .square-button svg{width:20px;height:20px}.item-dialog-scroll{overflow:auto;min-height:0;padding:12px 18px}.item-hero{display:flex;align-items:center;gap:14px}.item-hero>.gear-art{width:94px;height:94px;flex-shrink:0;background:radial-gradient(ellipse,#9fabb72c,transparent 68%)}.item-hero h2{font-size:21px;margin:3px 0 8px}.item-hero b{font-size:11px;color:#dfc692}.item-hero small{display:block;font-size:10px;color:#afbcc9;margin-top:6px}.item-effects{background:#08132088;border:1px solid #49607a66;border-radius:6px;padding:10px 12px;margin:10px 0}.item-effects p{margin:4px 0;font-size:13px;color:#d2e3d3}.next-upgrade{font-size:10px;color:#a9b7c6;line-height:1.7}.next-upgrade b{font-weight:400;color:#b4d5b0}.set-description{font-size:11px;padding:10px 0;border-top:1px solid #60748d42}.set-description b{color:#d7b67b}.set-description span{margin-left:8px;color:#bdcbb7}.set-description small{display:block;font-size:9px;line-height:1.6;margin-top:6px;color:#9cabbc}.gear-comparison{font-size:11px;line-height:1.8;padding:8px 0;border-top:1px solid #7783973c;color:#abbace}.gear-comparison span{display:block}.stat-up{color:var(--ui-positive)}.stat-down{color:var(--ui-negative)}.gear-buttons{display:grid;gap:8px;margin-top:10px}.gear-buttons button{font-size:12px;min-height:42px;border-radius:6px;padding:9px 12px;display:flex;gap:6px;align-items:center;justify-content:center;box-shadow:0 3px 0 #060c18}.gear-buttons button svg{width:19px;height:19px}.gear-buttons .primary{background:linear-gradient(#4e718b,#304862);border-color:#92afc0;color:#f0f3e3}.gold-action{background:linear-gradient(#ddbd7e,#a07b3f);border:1px solid #f0d49b;color:#201c18;font-weight:750}.gold-action:hover{background:#d8b679}.gear-management{margin-top:4px;border-top:1px solid #65738955;padding-top:10px}.gear-management summary{font-size:11px;cursor:pointer;color:#b8c6d2;min-height:28px}.gear-management p{font-size:10px;color:#b2bcc6;line-height:1.6}.gear-management button{width:100%;margin-top:8px}.item-rule{font-size:9px;line-height:1.7;color:#9babb9}.item-footer-note{margin:0;padding:9px;text-align:center;background:#0c1727;border-top:1px solid #33465c;color:#b4bdae;font-size:10px;flex-shrink:0}
@media(max-height:520px){#overlay.equipping{padding:9px 13px}.equipment-heading{padding-bottom:7px}.equipment-heading h1{font-size:19px}.equipment-heading small{font-size:6px;letter-spacing:1.5px}.equipment-wallet{gap:6px}.wallet-chip{height:35px;min-width:90px;padding-right:8px;gap:4px}.wallet-chip svg{width:30px;height:30px}.wallet-chip b{font-size:16px}.wallet-chip small{font-size:7px}.scrap-chip{min-width:70px}.scrap-chip svg{width:23px}.equipment-wallet>.square-button{width:36px;height:36px;min-height:36px;padding:8px}.equipment-wallet>.square-button svg{width:20px;height:20px}.equipment-columns{padding-top:9px;gap:14px}.loadout-title{padding-bottom:5px}.loadout-title b{font-size:12px}.loadout-title small{display:none}.loadout-title>span{font-size:8px}.gear-stage{grid-template-columns:clamp(60px,8.4vw,90px) minmax(0,1fr) clamp(60px,8.4vw,90px);gap:2px}.loadout-side{gap:5px}.worn-tile{padding:1px 3px 3px;border-radius:6px}.worn-tile .tile-name{font-size:7px}.worn-tile .tile-top{font-size:8px;line-height:10px}.worn-tile .tile-top i{font-size:7px}.upgrade-dot{top:13px;right:2px;width:14px;height:16px;font-size:12px}.loadout-stats{gap:5px;margin-top:6px}.loadout-stats>span{padding:4px 6px;gap:4px}.loadout-stats svg{width:16px;height:16px}.loadout-stats small{font-size:7px}.loadout-stats b{font-size:12px}.set-strip{margin-top:4px;gap:3px}.set-strip>span{font-size:7px}.loadout-note{font-size:7px;margin-top:4px}.inventory-panel{padding:7px;border-radius:8px}.inventory-heading{margin-bottom:5px}.inventory-heading h2{font-size:13px}.inventory-heading h2 small{font-size:9px}.sort-button{font-size:8px;min-height:28px;padding:4px 6px}.sort-button svg{width:13px;height:13px}.gear-tabs{padding:2px}.gear-tabs button{min-height:29px;font-size:10px;padding:3px}.gear-tabs svg{width:14px;height:14px}.gear-filters{padding:6px 0;gap:3px}.gear-filters button{padding:4px 7px;font-size:9px;min-height:28px}.gear-grid{gap:7px}.gear-grid .item-tile{aspect-ratio:.92}.tile-name{font-size:8px}.tile-top{font-size:8px;line-height:11px}.tile-top i{font-size:7px}.inventory-foot{padding-top:4px;margin-top:3px}.inventory-foot>span{font-size:8px}.inventory-foot .square-button{width:27px;height:27px;min-height:27px}.item-dialog{width:min(600px,94%)}.item-dialog-scroll{display:grid;grid-template-columns:1fr 1fr;gap:4px 18px;padding:10px 16px}.item-hero{grid-column:1;grid-row:1;gap:6px}.item-hero>.gear-art{width:66px;height:66px}.item-hero h2{font-size:17px}.item-effects{grid-column:1;margin:4px 0}.item-effects p{font-size:11px}.gear-buttons{grid-column:2;grid-row:1/span 5;margin:0;align-content:start;gap:6px}.gear-buttons button{min-height:36px;font-size:10px;padding:7px}.next-upgrade,.set-description,.gear-comparison{grid-column:1;margin:3px 0}.set-description span{display:block;margin:3px 0}.gear-toast{font-size:10px;padding:8px 12px}.item-footer-note{font-size:8px;padding:6px}}
/* Combat HUD uses framed portraits and the same materials as the inventory. */
header.combat-hud{top:3%;left:2.5%;right:2.5%;display:grid;grid-template-columns:minmax(0,1fr) minmax(170px,.78fr) minmax(0,1fr);gap:12px;align-items:start}.combat-hud .identity{width:auto;max-width:none;display:flex;gap:10px;align-items:center}.profile-frame{pointer-events:auto;position:relative;width:72px;height:78px;min-width:72px;min-height:0;padding:3px;background:linear-gradient(145deg,#b9a785,#445665);border:1px solid #efdab1;border-radius:10px;box-shadow:0 4px 0 #030911,0 0 0 2px #10202b}.profile-frame canvas{width:100%;height:auto;aspect-ratio:1;object-fit:contain;border-radius:6px;background:#142739}.profile-frame>span{position:absolute;bottom:-1px;left:4px;right:4px;background:linear-gradient(#d4b881,#927242);color:#151c26;font-size:12px;font-weight:900;border-radius:3px;line-height:19px}.profile-frame>i{position:absolute;right:4px;top:5px;background:#0a131bba;font-size:7px;font-style:normal;color:#e7d5b0;padding:2px 3px;border-radius:2px}.vitals{flex:1;min-width:0;max-width:245px}.hero-name{display:flex;align-items:baseline;justify-content:space-between;gap:5px}.combat-hud .hero-name strong{font-size:21px;letter-spacing:-1px;margin:0 0 7px}.hero-name small{font-size:7px;letter-spacing:1px;white-space:nowrap;color:#b4b8b6}.vitals .health{height:21px;background:#120f18;border:1px solid #967579;border-radius:4px;overflow:hidden;box-shadow:0 2px 0 #030810,inset 0 1px 3px #000}.vitals .health i{height:100%;background:linear-gradient(#e99984,#bd534c 45%,#973b3c);border-top:2px solid #f7b3a0;border-bottom:2px solid #582631;transition:width .16s}.vitals .health.critical i{background:linear-gradient(#fa7d70,#a32335)}.vitals .health span{font-size:11px;line-height:20px;font-weight:800;color:#fff0df;text-shadow:0 1px 2px #30151b;font-variant-numeric:tabular-nums}.vitals .xp{position:relative;inset:auto;margin-top:5px;width:100%;height:13px;border:1px solid #516f8b;background:#09172a;border-radius:3px;overflow:hidden;box-shadow:0 2px 0 #030810}.vitals .xp i{background:linear-gradient(#9ddce5,#4289a2);box-shadow:none;border-top:1px solid #d5f1e9}.vitals .xp span{position:absolute;inset:0;line-height:12px;font-size:8px;font-weight:700;text-align:center;color:#e2f3ed;text-shadow:0 1px 2px #16263e;font-variant-numeric:tabular-nums}.combat-hud .clock{background:linear-gradient(#101c2ee8,#111d2a80);border-top:1px solid #8991845a;border-radius:0 0 12px 12px;padding:7px 10px}.combat-hud .clock small{font-size:10px;letter-spacing:1px;color:#c8c8b6}.combat-hud .clock strong{font-size:28px;font-weight:800;letter-spacing:2px;margin:3px 0;color:#f2e7d1;text-shadow:0 2px 0 #000}.combat-hud .clock span{font-size:9px;line-height:1.4;display:block;color:#bfcec8}.combat-hud .right{display:grid;grid-template-columns:auto auto;gap:5px 9px;justify-content:end;align-items:start}.hud-wallet{display:flex;align-items:center;gap:5px;min-width:105px;height:40px;padding:3px 10px 3px 0;background:linear-gradient(#342c28,#141d2e);border:1px solid #bb975b6b;border-radius:8px;box-shadow:inset 0 1px 0 #ffda9030}.hud-wallet svg{width:37px;height:37px}.hud-wallet>div:last-child{display:flex;flex-direction:column;align-items:end}.hud-wallet small{font-size:7px;letter-spacing:1.4px;color:#bfa472}.hud-wallet b{font-size:18px;color:#ffe0a0;font-variant-numeric:tabular-nums;line-height:1.2}.hud-buttons{display:flex;gap:6px}.combat-hud .right .square-button{padding:8px;width:40px;height:40px;min-height:40px;border-radius:8px;pointer-events:auto;color:#e4e3d3}.hud-buttons .square-button[aria-pressed=true]{color:#8b9eb2;background:#101b2b}.hud-buttons .square-button svg{width:22px;height:22px}.right #stats{grid-column:1/-1;text-align:right;font-size:9px;letter-spacing:1px;color:#becac4}#notice{top:20%;left:50%;width:max-content;max-width:70%;transform:translateX(-50%);padding:6px 14px;border:1px solid transparent;border-radius:6px;font-size:12px;opacity:0;transition:opacity .2s}#notice.visible{background:#0d1b29dc;border-color:#aa99724a;opacity:1}.combat-skills{bottom:2.5%;pointer-events:none;padding:6px 10px 8px;background:linear-gradient(#09132099,#091320e8);border:1px solid #71829242;border-radius:12px;box-shadow:0 4px 15px #0004}.combo-label{display:flex;align-items:center;gap:8px;margin:0 0 5px;white-space:nowrap}.combo-label>b{font-size:8px;letter-spacing:1px;color:#e0c18a}.combo-label #comboStatus{font-size:9px;color:#d6e0d6;margin:0;max-width:230px;text-overflow:ellipsis;overflow:hidden}.combo-label>span{margin-left:auto;font-size:7px;color:#8399ad}.combat-skills .slots{gap:6px}.skill-slot{position:relative;width:56px;height:55px;min-height:0;padding:0;display:block;background:linear-gradient(145deg,#2b3a4e,#0b1424);border:1px solid #60738c;border-bottom:3px solid #3d536d;border-radius:6px;box-shadow:inset 0 1px 0 #cdd7df30,0 2px 0 #0008;overflow:hidden;pointer-events:auto}.skill-slot canvas{display:block;width:100%;height:100%;aspect-ratio:1;object-fit:contain;image-rendering:pixelated}.skill-order{position:absolute;top:1px;left:2px;min-width:13px;font-size:9px;font-weight:800;color:#d7d9c5;line-height:14px;border-radius:3px;background:#07121ed9}.skill-level{position:absolute;bottom:3px;right:3px;font-size:8px;font-weight:800;color:#e5d4ae;text-shadow:0 1px 1px #000}.skill-progress{position:absolute;left:0;bottom:0;width:var(--progress,0%);height:3px;background:#ffe0a0}.skill-slot.executing{border-color:#efcb8b;box-shadow:0 0 9px #e5b96566,inset 0 0 9px #b789462a;background:linear-gradient(#746047,#293448)}.skill-slot.ready{border-color:#b5d391}.skill-slot.empty{border-style:dashed;border-color:#6a80933d;background:#10203188;color:#62778b;display:flex;align-items:center;justify-content:center;flex-direction:column;pointer-events:none}.skill-slot.empty b{font-size:18px;font-weight:400;color:#728292}.skill-slot.empty small{font-size:7px;color:#62788b}.combat-skills .small{margin-top:6px}.passive-slot{position:relative;display:grid;place-items:center;width:30px;height:27px;min-height:0;padding:0;background:#18273a;border:1px solid #52657d;border-radius:4px;pointer-events:auto}.passive-slot>.gear-art{width:26px;height:26px}.passive-slot b{position:absolute;bottom:0;right:2px;font-size:7px;color:#e7d0aa}.passive-slot.empty{color:#526882;border-color:#374b6255;background:#12223866;pointer-events:none}.sequence-help{font-size:11px;color:#b8c9d0;line-height:1.7;margin-bottom:15px}.sequence-row{background:#182b3b;border:1px solid #5a708447;border-radius:6px;padding:6px 10px}.sequence-row span b{display:inline-block;width:22px;color:#e7c887}.sequence-row small{font-size:10px;color:#8ea7b8}.quick-guide{max-height:45vh;overflow:auto;text-align:left}.quick-guide details{padding:12px 16px;background:#182c3d;border:1px solid #61799144;margin-bottom:7px;border-radius:7px}.quick-guide summary{cursor:pointer;font-size:13px;color:#e6cfaa;min-height:25px;line-height:25px}.quick-guide p{font-size:12px;color:#b8cad6;line-height:1.8;margin:8px 0}.skill-info-art canvas{width:140px;height:140px;aspect-ratio:1;object-fit:contain;image-rendering:pixelated;margin:auto}.panel:has(.quick-guide){max-height:100%;overflow:auto}#overlay.equipping{position:fixed;inset:0;z-index:10}
@media(max-height:520px){header.combat-hud{top:3%;left:2%;right:2%;grid-template-columns:minmax(0,1fr) minmax(115px,.7fr) minmax(0,1fr);gap:8px}.combat-hud .identity{gap:6px}.profile-frame{width:48px;height:53px;min-width:48px;padding:2px;border-radius:6px}.profile-frame>span{font-size:9px;line-height:13px;left:2px;right:2px}.profile-frame>i{font-size:5px;padding:1px 2px;top:4px}.combat-hud .hero-name strong{font-size:14px;margin-bottom:4px}.hero-name small{display:none}.vitals .health{height:16px}.vitals .health span{font-size:8px;line-height:15px}.vitals .xp{height:10px;margin-top:4px}.vitals .xp span{font-size:6px;line-height:9px}.combat-hud .clock{padding:4px 6px}.combat-hud .clock small{font-size:7px;letter-spacing:0}.combat-hud .clock strong{font-size:20px;margin:0;letter-spacing:1px}.combat-hud .clock span{font-size:6.5px}.combat-hud .right{grid-template-columns:auto;gap:4px}.hud-wallet{height:25px;min-width:88px;justify-self:end;gap:2px;padding:1px 6px 1px 1px;border-radius:5px}.hud-wallet svg{width:23px;height:23px}.hud-wallet>div:last-child{flex-direction:row;align-items:center;gap:5px}.hud-wallet small{font-size:6px;letter-spacing:.5px}.hud-wallet b{font-size:13px}.hud-buttons{gap:5px}.combat-hud .right .square-button{width:32px;height:31px;min-height:31px;padding:6px;border-radius:6px}.hud-buttons .square-button svg{width:17px;height:17px}.right #stats{position:absolute;right:110px;top:44px;font-size:7px}#notice{top:23%;font-size:9px;padding:4px 8px}.combat-skills{padding:4px 7px 5px;border-radius:8px;bottom:2%}.combo-label{gap:5px;margin-bottom:3px}.combo-label>b{font-size:6px}.combo-label #comboStatus{font-size:7px;max-width:175px}.combo-label>span{font-size:5px}.combat-skills .slots{gap:4px}.skill-slot{width:40px;height:38px;border-radius:4px}.skill-order{font-size:7px;line-height:11px;min-width:10px}.skill-level{font-size:6px;bottom:3px;right:2px}.skill-slot.empty b{font-size:13px}.skill-slot.empty small{font-size:5px}.combat-skills .small{margin-top:4px}.passive-slot{width:24px;height:20px}.passive-slot>.gear-art{width:19px;height:19px}.passive-slot b{font-size:6px}.sequence-help{font-size:9px;margin-bottom:8px}.sequence-row{padding:3px 7px}.sequence-row span{font-size:10px}.sequence-row button{min-height:28px}.quick-guide{max-height:44vh}.quick-guide details{padding:6px 12px}.quick-guide summary{font-size:11px}.quick-guide p{font-size:10px}.skill-info-art canvas{width:75px;height:75px}}
/* Mode selection stays outside the skill strip; manual attacks never replace skill inspection. */
#control-mode{position:absolute;left:22px;bottom:20px;z-index:3;min-width:98px;min-height:38px;padding:8px 14px;background:linear-gradient(#354555,#1b2937);border:1px solid #9aabac;border-radius:7px;color:#f0ddb2;font-weight:800;box-shadow:inset 0 1px #d8e6ee44,0 3px 0 #06101b}
#manual-attack{position:absolute;right:28px;bottom:40px;width:92px;height:92px;border:2px solid #d4b782;border-radius:50%;background:radial-gradient(circle at 35% 25%,#856643,#382e28);color:#fff0d0;font-size:21px;font-weight:bold;touch-action:none;box-shadow:inset 0 2px 8px #ecd5a144,0 5px 0 #171c24;z-index:3}#manual-attack small{display:block;font-size:8px;letter-spacing:1px;margin-top:5px}#manual-attack:active{transform:translateY(3px);filter:brightness(1.25)}#manual-attack[hidden]{display:none}.mode-options{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;max-width:760px;margin:20px auto}.mode-options button{display:flex;flex-direction:column;gap:12px;padding:22px 18px;text-align:left;background:#233340;border:1px solid #61747f;border-radius:9px}.mode-options button[aria-pressed=true]{border-color:#e6c17f;background:linear-gradient(#63513a,#332e29)}.mode-options b{font-size:22px;color:#f1d5a5}.mode-options span{font-size:12px;line-height:1.7;color:#c7d4d8}
@media(max-height:520px){#control-mode{left:14px;bottom:8px;min-height:30px;padding:5px 10px;font-size:10px}#manual-attack{right:14px;bottom:23px;width:64px;height:64px;font-size:17px}.mode-options{gap:8px;margin:12px auto}.mode-options button{padding:12px}.mode-options b{font-size:18px}.mode-options span{font-size:10px}}
#manual-attack{padding:0;line-height:1.15;white-space:nowrap}#manual-attack small{font-size:7px;letter-spacing:.5px;white-space:nowrap}
/* Shared pause and test-workbench chrome. */
.menu-action{display:inline-flex;align-items:center;justify-content:center;gap:9px;background:linear-gradient(#35495d,#1c2c3c);border:1px solid #6d8291;box-shadow:inset 0 1px #c4d4dd33,0 3px #08121d;border-radius:8px;font-weight:700}.menu-action svg{width:23px;height:23px;flex-shrink:0}.menu-action.primary{background:linear-gradient(#d5bb82,#997d49);color:#201f1d;border-color:#eddbac}.menu-action:active{transform:translateY(2px);box-shadow:inset 0 2px #08121d44}.pause-shell,.developer-shell{width:min(1080px,94%);max-height:94%;display:flex;flex-direction:column;background:radial-gradient(at top left,#32414f,#101c2b 75%);border:1px solid #738391;border-radius:16px;padding:24px;box-shadow:0 25px 90px #000a;color:#e3e7df}.pause-heading{position:static;pointer-events:auto;display:flex;align-items:center;justify-content:space-between;gap:15px;flex-shrink:0;border-bottom:1px solid #526474;padding-bottom:17px;margin-bottom:18px}.pause-heading small{color:#c6aa72;font-size:9px;letter-spacing:2px}.pause-heading h1{margin:6px 0 0;font-size:27px}.pause-columns{display:grid;grid-template-columns: .8fr 1.4fr;gap:24px;min-height:0;overflow:auto}.pause-summary{background:#0c1725aa;border-radius:10px;padding:20px;min-width:0}.pause-summary>canvas{width:74px;height:74px;float:left;margin:0 15px 14px 0;border:2px solid #c5a76a;border-radius:12px}.pause-summary h2{font-size:20px;margin:12px 0 4px}.pause-summary h2 small{font-size:12px;color:#e9c887}.pause-summary p{font-size:12px;color:#afbec8;line-height:1.7}.pause-metrics{clear:both;display:grid;grid-template-columns:repeat(3,1fr);border-top:1px solid #364658;border-bottom:1px solid #364658;padding:13px 0;margin:15px 0;gap:10px}.pause-metrics span{font-size:10px;color:#9bafbd}.pause-metrics b{display:block;font-size:14px;color:#e1dbc7;margin-top:6px}.pause-summary nav{display:grid;gap:10px}.pause-summary nav button{justify-content:flex-start}.dev-entry{color:#b8d2d8}.pause-combo{min-width:0}.section-heading{display:flex;justify-content:space-between;align-items:center}.section-heading h2{font-size:19px;margin:0}.section-heading>span{font-size:12px;color:#cbb68e}.pause-combo>p{font-size:12px;line-height:1.65;color:#adc0ca;margin:10px 0 15px}.pause-sequence{display:grid;gap:7px}.pause-move{display:flex;align-items:center;gap:10px;background:linear-gradient(90deg,#2c3d50,#1b2b3b);border:1px solid #465b6e;border-radius:8px;padding:4px 9px}.move-index{font-size:13px;color:#e4c691}.pause-move canvas{width:49px;height:49px;background:#112032;border:1px solid #475f72;border-radius:5px}.pause-move>div{flex:1}.pause-move strong{display:block;font-size:13px}.pause-move small{font-size:10px;color:#c4b28d}.pause-move button{width:35px;min-height:35px;height:35px;padding:6px;background:#263d51}.pause-move button svg{width:100%;height:100%}.pause-move button:disabled{opacity:.25;cursor:default}.combo-tip{display:flex;gap:10px;align-items:center;margin-top:15px;padding:11px;background:#c8ad7020;border-radius:7px;color:#c6bb9d;font-size:11px;line-height:1.7}.combo-tip svg{width:25px;flex-shrink:0}.developer-shell{width:min(1120px,96%)}.developer-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;overflow:auto;min-height:0}.developer-grid section{padding:15px;border:1px solid #415a6b;background:#0e1c2bb3;border-radius:9px}.developer-grid h2{font-size:16px;margin:0 0 12px;color:#e3c586}.developer-grid section>div{display:flex;flex-wrap:wrap;gap:7px;margin-top:9px}.developer-grid button{padding:8px 11px;font-size:12px}.developer-grid button[aria-pressed=true]{border-color:#80dca6;color:#b2efc6;background:#26503e}.developer-grid small{display:block;font-size:11px;color:#a0b1bd;margin-top:12px;line-height:1.6}.developer-grid p{font-size:14px;line-height:1.8}.developer-grid label{font-size:12px;display:flex;align-items:center;gap:12px}.developer-grid select{flex:1;min-width:0;padding:10px;background:#253749;border:1px solid #718595;color:#f2ead9;border-radius:6px}.dev-warning{font-size:12px;color:#dfc794;padding:10px 14px;background:#aa83471c;border-radius:6px;margin:0 0 15px;line-height:1.7}#dev-feedback{margin:9px 0 0;font-size:12px;color:#9fddb5;min-height:16px}#dev-badge{position:absolute;left:50%;top:15%;transform:translateX(-50%);z-index:4;padding:4px 12px;min-height:28px;font-size:10px;color:#f5d792;background:#352b1ff2;border-color:#be9758}#dev-badge[hidden]{display:none}
#lift-call{position:absolute;transform:translate(-50%,-50%);z-index:2;width:56px;height:60px;min-height:44px;padding:7px;border-radius:9px;background:linear-gradient(#485158,#1d272e);border:2px solid #8d9999;color:#a9b2b2;box-shadow:inset 0 2px #d8e6e233,0 4px 10px #0009;touch-action:manipulation}#lift-call svg{width:100%;height:100%;stroke-width:4}#lift-call.called{color:#baffcb;border-color:#78e69d;background:linear-gradient(#39724e,#163c28);box-shadow:0 0 20px #75ffaf66,inset 0 2px #d6ffe366}#lift-call.open{animation:call-blink .8s ease-in-out infinite alternate}#lift-call[hidden]{display:none}@keyframes call-blink{to{filter:brightness(1.7);box-shadow:0 0 28px #90ffc0aa}}@media(prefers-reduced-motion:reduce){#lift-call.open{animation:none;outline:3px solid #bcffd4}}
@media(max-height:520px){.pause-shell,.developer-shell{padding:12px;border-radius:10px;max-height:96%}.pause-heading{padding-bottom:8px;margin-bottom:10px}.pause-heading h1{font-size:19px;margin-top:3px}.pause-heading small{font-size:7px}.pause-heading button{padding:7px 12px;min-height:36px;font-size:12px}.pause-columns{gap:12px;grid-template-columns:.85fr 1.4fr}.pause-summary{padding:10px}.pause-summary>canvas{width:48px;height:48px;margin:0 10px 5px 0}.pause-summary h2{font-size:15px;margin:4px 0}.pause-summary p{font-size:10px}.pause-metrics{margin:7px 0;padding:7px 0}.pause-metrics b{font-size:11px}.pause-summary nav{gap:6px}.pause-summary nav button{min-height:34px;padding:5px 10px;font-size:11px}.menu-action svg{width:19px;height:19px}.section-heading h2{font-size:15px}.pause-combo>p{font-size:10px;margin:5px 0 8px}.pause-move{gap:6px;padding:3px 6px}.pause-move canvas{width:32px;height:32px}.pause-move strong{font-size:11px}.pause-move small{font-size:8px}.pause-move button{width:30px;height:30px;min-height:30px}.pause-sequence{gap:5px}.combo-tip{padding:6px;font-size:9px;margin-top:8px}.developer-grid{gap:8px}.developer-grid section{padding:9px}.developer-grid h2{font-size:13px;margin-bottom:5px}.developer-grid button{font-size:10px;padding:6px 8px;min-height:33px}.developer-grid small,.dev-warning{font-size:10px}.dev-warning{padding:6px;margin-bottom:8px}#lift-call{width:44px;height:46px;padding:5px}}
.pause-columns{overflow:hidden}.pause-summary,.pause-combo{overflow:auto;scrollbar-width:thin;scrollbar-color:#7c8b95 #142333}.developer-actions{display:flex;justify-content:flex-end;gap:10px;flex-shrink:0;padding-top:12px}.developer-actions button{font-size:12px}.developer-grid{scrollbar-width:thin;scrollbar-color:#7c8b95 #142333}@media(max-height:520px){.pause-summary>canvas{width:40px;height:40px;margin-bottom:0}.pause-summary p{margin:4px 0}.pause-summary h2{font-size:14px}.pause-metrics{margin:6px 0;padding:5px 0}.pause-summary nav{gap:5px}.pause-summary nav button{min-height:30px;padding:4px 8px}.developer-actions{gap:6px;padding-top:8px}.developer-actions button{min-height:33px;padding:6px 10px;font-size:10px}}

#lift-call svg{display:block;height:65%}#lift-call span{display:block;font-size:11px;font-weight:800;line-height:1.1}
/* Story uses the same full-body sprites as combat, with room for the gesture. */
#overlay.tasting-overlay{padding:0;background:#05090dec;backdrop-filter:blur(5px)}.tasting-scene{width:min(1100px,96vw);height:min(680px,96vh);display:grid;grid-template-rows:auto 1fr 122px;background:radial-gradient(ellipse at 48% 25%,#354045,#0b131a 70%);border:1px solid #93836580;border-radius:16px;overflow:hidden;box-shadow:0 20px 90px #000}.tasting-scene header{display:flex;justify-content:space-between;align-items:center;padding:20px 28px;border-bottom:1px solid #cab38233;z-index:1}.tasting-scene header small{color:#d7bc88;font-size:11px;letter-spacing:3px}.tasting-scene h1{font-size:25px;margin:6px 0 0}.tasting-scene header button{font-size:12px;background:#111d25;border:1px solid #6d7579;color:#b9c1c4}.tasting-stage{position:relative;overflow:hidden;background:linear-gradient(0deg,#39342b 0%,#1c252a 18%,transparent 19%),repeating-linear-gradient(90deg,#ffffff03 0 1px,transparent 1px 110px)}.tasting-stage canvas{position:absolute;width:100%;height:100%;object-fit:contain;bottom:0}.tasting-light{position:absolute;inset:0;background:radial-gradient(ellipse at 50% 0%,#fce6a52b,transparent 60%)}.tasting-caption{position:absolute;left:28px;top:18px;color:#91a2ab;font-size:12px}.tasting-loading{position:absolute;top:45%;text-align:center;width:100%;color:#c8c0a9}.tasting-scene footer{position:relative;padding:18px 185px 18px 32px;background:#101b24;border-top:1px solid #c8b68b66}.tasting-speaker{color:#e3c893;font-size:13px;font-weight:700}.tasting-dialogue{font-size:21px;line-height:1.5;margin:8px 0;min-height:32px;color:#f0ece3}.tasting-next{position:absolute;right:24px;bottom:27px;border:1px solid #c8af7e;color:#e9d4ab;background:#30404b;font-size:13px}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}@media(max-height:520px){.tasting-scene{height:98vh;grid-template-rows:62px 1fr 91px;border-radius:8px}.tasting-scene header{padding:8px 18px}.tasting-scene h1{font-size:18px}.tasting-scene header small{font-size:9px}.tasting-scene footer{padding:10px 150px 8px 20px}.tasting-dialogue{font-size:16px;line-height:1.4;margin:5px 0}.tasting-next{right:12px;bottom:20px;padding:10px;font-size:11px}.tasting-caption{top:8px;font-size:10px}}
.tasting-scene header{position:relative;inset:auto;pointer-events:auto}.tasting-scene footer{position:relative;inset:auto;transform:none;text-align:left;pointer-events:auto}.tasting-stage{min-height:0}#overlay.tasting-overlay{z-index:8}#arena:has(.tasting-overlay) #dev-badge{z-index:9;top:2px;left:50%;font-size:9px;padding:3px 9px;min-height:20px}

/* Compact physical lift switch, readable enhancement status. */
#lift-call{width:44px;height:48px;padding:5px}#lift-call svg{stroke-width:2.5}#lift-call span{font-size:9px}.upgrade-dot{width:auto;height:auto;padding:2px 4px;font-size:8px;line-height:1.3}@media(max-height:520px){#lift-call{width:40px;height:44px}.upgrade-dot{font-size:6px;padding:2px}}
.campaign-shell{width:min(1100px,96vw);max-height:88vh;overflow:auto;padding:25px;background:linear-gradient(135deg,#172a33,#101923);border:1px solid #927952;border-radius:14px;color:#e2dac7}.campaign-shell>p{color:#a6b7b8;font-size:13px}.campaign-wallet{display:flex;align-items:center;gap:12px;color:#f0cb79;font-weight:800}.campaign-wallet svg{width:26px;height:26px}.campaign-wallet span{color:#aebdbe;font-size:13px}.campaign-act{margin:24px 0}.campaign-act h2{font-size:19px}.campaign-act h2 small{margin-left:16px;font-size:11px;color:#a6b7b8;font-weight:normal}.campaign-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.campaign-cards article{background:#0b1720;border:1px solid #324650;border-top:3px solid var(--stage-color,#c5ab79);padding:15px;border-radius:6px}.campaign-cards h3{font-size:19px;margin:10px 0}.campaign-cards small{font-size:10px;letter-spacing:1px;color:#b7c1bd}.campaign-cards p{font-size:12px;line-height:1.6;color:#b4c4c4}.campaign-cards button{padding:9px;font-size:12px}.campaign-cards .actions{display:flex;flex-wrap:wrap;gap:6px}.campaign-cards summary{cursor:pointer;font-size:12px;color:#e3c18d}.campaign-cards details{margin:12px 0}#campaign-feedback{position:sticky;bottom:0;background:#172a33;color:#f6cca2;padding:10px}#profile[data-trim="gold-trim"]{outline:3px solid #e8bd66}#profile[data-trim="noir-trim"]{outline:3px double #b8a6da}#profile[data-trim="ivory-trim"]{outline:3px solid #ece4c7}@media(max-height:500px){.campaign-shell{padding:15px;max-height:92vh}.campaign-act{margin:16px 0}.campaign-cards article{padding:10px}}
#campaign-feedback:empty{display:none}

/* Arena-sized dialogs: the game can be letterboxed inside a taller browser. */
.pause-shell{height:100%;max-height:100%;padding:18px 22px}.pause-columns{flex:1}.pause-summary{overflow:visible}.pause-summary nav{grid-template-columns:1fr 1fr;gap:8px}.pause-summary nav button{min-height:48px;font-size:12px;padding:8px}.pause-summary nav button:first-child{grid-column:1/-1}.pause-summary nav button:last-child{grid-column:1/-1}.pause-combo{padding-right:5px}
#overlay.tasting-overlay{padding:10px;overflow:hidden}.tasting-scene{width:min(1100px,100%);height:100%;max-height:100%;grid-template-rows:74px minmax(0,1fr) 112px;box-sizing:border-box}.tasting-scene header{padding:10px 22px}.tasting-scene footer{padding:12px 170px 10px 24px}.tasting-dialogue{font-size:18px;line-height:1.45;margin:6px 0}.tasting-scene canvas{max-height:100%;aspect-ratio:1.92}.tasting-next{right:18px;bottom:24px}.tasting-stage{min-height:0}
#sound,#equipment,#pause{width:48px;height:48px;min-height:48px;padding:5px;border:1px solid #a4b2b6;border-radius:10px;background:linear-gradient(145deg,#586572,#1b2633 55%,#0a111b);box-shadow:inset 0 0 0 3px #142331,inset 0 4px #d8e5e630,0 4px 0 #030911,0 5px 12px #0008}#sound svg,#equipment svg,#pause svg{width:34px;height:34px;filter:drop-shadow(0 2px 0 #000b)}#sound[aria-pressed=true]{border-color:#bf8177;background:#402d32}button:focus-visible{outline:2px solid #ffe3a2;outline-offset:3px}
@media(max-height:600px){.pause-shell{padding:10px 14px}.pause-heading{padding-bottom:7px;margin-bottom:8px}.pause-heading h1{font-size:20px}.pause-summary{padding:10px}.pause-summary>canvas{width:45px;height:45px}.pause-summary h2{font-size:15px;margin:4px 0}.pause-summary p{font-size:10px;margin:3px 0}.pause-metrics{padding:6px 0;margin:6px 0}.pause-metrics b{font-size:12px;margin-top:3px}.pause-summary nav{gap:5px}.pause-summary nav button{min-height:36px;padding:4px 7px;font-size:10px}.tasting-scene{grid-template-rows:52px minmax(0,1fr) 86px}.tasting-scene h1{font-size:17px;margin:2px 0}.tasting-scene header small{font-size:8px}.tasting-scene footer{padding:8px 143px 8px 18px}.tasting-dialogue{font-size:14px;line-height:1.35}.tasting-speaker{font-size:10px}.tasting-next{bottom:18px;right:10px;font-size:10px}.tasting-caption{font-size:10px;top:6px}.pause-summary nav button:last-child{grid-column:auto}#sound,#equipment,#pause{width:42px;height:42px;min-height:42px;padding:4px}#sound svg,#equipment svg,#pause svg{width:30px;height:30px}}
.run-contract{display:grid;gap:5px;padding:10px 12px;margin-top:12px;border:1px solid #91764870;background:linear-gradient(100deg,#51402740,#101d28);border-radius:6px;font-size:11px;color:#dfc391}.run-contract span{color:#d2dedb}.run-contract small{color:#97acb4;font-size:9px}
.case-result{width:min(1060px,100%);height:100%;max-height:670px;padding:22px;background:radial-gradient(at 12% 0%,#354352,#101a28 65%);border:1px solid #ac9164;border-radius:12px;box-shadow:inset 0 0 0 4px #07111d,0 20px 70px #0009;display:flex;flex-direction:column;overflow:hidden;text-align:left}.case-heading{position:static;inset:auto;pointer-events:auto;display:flex;align-items:center;gap:14px;padding-bottom:17px;border-bottom:1px solid #c4a47555;margin-bottom:18px}.case-heading small{color:#cdb483;font-size:9px;letter-spacing:2px}.case-heading h1{font-size:27px;margin:5px 0 0;color:#f3e4c5}.case-heading>b{margin-left:auto;font-size:34px;color:#dcb980}.case-heading>b small{letter-spacing:0;font-size:13px}.case-seal{display:grid;place-items:center;width:54px;height:54px;border:2px solid #b89660;transform:rotate(-5deg);background:#b3935026;box-shadow:inset 0 0 0 4px #172534}.case-seal svg{width:32px;height:32px;color:#f5da95}.case-columns{display:grid;grid-template-columns:1fr 1.15fr;gap:26px;flex:1;min-height:0}.case-evidence{position:relative;padding:23px;background:repeating-linear-gradient(0deg,#b4bfa708 0 1px,transparent 1px 23px),#101d28;border:1px solid #65727977;border-left:3px solid #b6a070;border-radius:5px}.case-evidence>small{font-size:11px;color:#b2c1c2}.case-evidence h2{font-size:27px;color:#f2d59d;margin:14px 0}.case-evidence>p{font-size:14px;line-height:1.9;color:#b9c9ce;margin:0}.case-track{display:flex;gap:4px;margin:24px 0}.case-track i{font-style:normal;flex:1;padding:7px 0;text-align:center;font-size:10px;color:#71828b;border:1px solid #455363;background:#172432}.case-track .found{background:#48685c;color:#dce8d7;border-color:#8dae95}.case-track .current{outline:1px solid #f5d99c;outline-offset:2px}.case-next{display:grid;gap:6px;border-top:1px solid #71828055;padding-top:18px}.case-next small{color:#94aab2;font-size:10px}.case-next strong{font-size:19px;color:#e4ddc7}.case-next span{font-size:11px;color:#b8c9c9}.case-rewards{display:flex;flex-direction:column;min-height:0;overflow:auto;padding-right:3px}.case-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:5px;background:#0a1522;border:1px solid #51647a;padding:12px 6px;border-radius:7px}.case-stats span{font-size:9px;color:#9dafbd;text-align:center}.case-stats b{display:block;color:#e9d5aa;font-size:17px;margin-top:7px;font-variant-numeric:tabular-nums}.case-rewards h2{font-size:15px;margin:18px 0 10px}.case-rewards h2 small{color:#bba878;font-size:11px}.case-loot{display:grid;grid-template-columns:1fr 1fr;gap:8px}.case-loot-item{display:flex;align-items:center;gap:7px;border:1px solid #8c759f;background:linear-gradient(135deg,#57416a66,#182a3b);border-radius:7px;padding:6px}.case-loot-item svg{width:48px;height:48px;flex-shrink:0}.case-loot-item span{font-size:12px;color:#f0e0ce}.case-loot-item small{display:block;color:#b5bec8;font-size:9px;margin-top:5px}.case-first{display:flex;align-items:center;gap:7px;padding:9px;margin-top:9px;border:1px solid #94784866;background:#58412733;color:#c9b68e;font-size:10px}.case-first svg{width:25px;height:25px}.case-first b{margin-left:auto;color:#ebd3a0}.case-main-action{margin-top:auto;padding-top:15px}.case-main-action button{width:100%;min-height:48px;font-size:14px}.case-tools{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin-top:10px}.case-tools button{font-size:10px;min-height:38px;padding:5px}.case-tools svg{width:18px;height:18px}.case-rewards #feedback:empty{display:none}
@media(max-height:600px){.case-result{padding:12px 16px}.case-heading{gap:9px;padding-bottom:8px;margin-bottom:10px}.case-heading h1{font-size:19px}.case-heading>b{font-size:26px}.case-seal{width:38px;height:38px}.case-seal svg{width:25px}.case-columns{gap:14px}.case-evidence{padding:12px 15px}.case-evidence>small{font-size:9px}.case-evidence h2{font-size:19px;margin:8px 0}.case-evidence>p{font-size:11px;line-height:1.6}.case-track{margin:12px 0;gap:3px}.case-track i{padding:4px 0;font-size:8px}.case-next{gap:4px;padding-top:8px}.case-next strong{font-size:15px}.case-next span{font-size:9px}.run-contract{padding:6px 8px;margin-top:8px;gap:3px;font-size:10px}.run-contract small{font-size:8px}.case-stats{padding:7px 3px}.case-stats b{font-size:13px;margin-top:4px}.case-rewards h2{margin:9px 0 6px;font-size:12px}.case-loot{gap:5px}.case-loot-item{padding:3px;gap:4px}.case-loot-item svg{width:34px;height:34px}.case-loot-item span{font-size:10px}.case-loot-item small{font-size:8px}.case-first{padding:4px 7px;margin-top:5px;font-size:9px}.case-first svg{width:21px;height:21px}.case-main-action{padding-top:8px}.case-main-action button{min-height:37px;font-size:11px}.case-tools{gap:5px;margin-top:6px}.case-tools button{min-height:31px;font-size:9px}.case-tools svg{width:15px;height:15px}}

.pause-summary nav button:last-child{grid-column:auto}.tasting-scene .sr-only{margin:0;top:0;left:0}.tasting-scene footer{overflow:hidden}
/* Pause is a complete overview, including a full six-move loadout. */
.pause-heading-actions{display:flex;align-items:center;gap:10px;flex-shrink:0}.pause-control-mode{color:#c9e0e9}.pause-shell .pause-combo{overflow:visible;padding:0;display:flex;flex-direction:column;min-height:0}.pause-shell .pause-sequence{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.pause-shell .pause-move{display:grid;grid-template-columns:12px 42px minmax(0,1fr) 32px;grid-template-rows:27px 27px;gap:0 7px;padding:7px}.pause-shell .move-index{grid-row:1/3}.pause-shell .pause-move canvas{grid-row:1/3;width:42px;height:42px}.pause-shell .pause-move>div{grid-row:1/3;min-width:0}.pause-shell .pause-move strong{font-size:12px;line-height:1.35;overflow-wrap:anywhere}.pause-shell .pause-move small{font-size:9px}.pause-shell .pause-move button{width:30px;height:26px;min-height:26px;padding:4px;grid-column:4}.pause-shell .pause-move button[data-delta="-1"]{grid-row:1}.pause-shell .pause-move button[data-delta="1"]{grid-row:2}.pause-shell .combo-tip{margin-top:10px}.pause-summary nav button:last-child{grid-column:1/-1}
@media(max-height:600px){.pause-heading-actions{gap:6px}.pause-shell .pause-heading-actions button{min-height:36px;padding:6px 9px;font-size:11px}.pause-shell .pause-sequence{gap:5px}.pause-shell .pause-move{grid-template-columns:8px 28px minmax(0,1fr) 26px;grid-template-rows:22px 22px;gap:0 4px;padding:3px 4px}.pause-shell .pause-move canvas{width:28px;height:28px}.pause-shell .pause-move strong{font-size:10px;line-height:1.2}.pause-shell .pause-move small{font-size:8px}.pause-shell .move-index{font-size:10px}.pause-shell .pause-move button{width:26px;height:22px;min-height:22px;padding:3px}.pause-shell .pause-combo>p{font-size:9px;margin:4px 0 6px;line-height:1.3}.pause-shell .run-contract{padding:5px 7px;gap:2px;margin-top:6px;font-size:9px}.pause-shell .run-contract small{font-size:8px}.pause-shell .combo-tip{padding:5px 7px;margin-top:5px;font-size:8px;line-height:1.35;gap:5px}.pause-shell .combo-tip svg{width:18px}}
@media(max-height:600px){.pause-shell .pause-move{grid-template-rows:20px 20px}.pause-shell .pause-move button{height:20px;min-height:20px}.pause-shell .combo-tip{flex-shrink:0}.pause-shell .pause-summary nav button{white-space:nowrap;gap:5px}}
@media(max-height:600px){.pause-shell .run-contract{line-height:1.2}.pause-shell .combo-tip{padding:4px 7px;line-height:1.2}.pause-shell .combo-tip svg{width:14px;height:14px}.pause-shell .section-heading h2{line-height:1.2}.pause-shell .pause-sequence{gap:4px}.pause-shell .pause-combo>p{margin:3px 0 5px}}

@media(max-height:400px){.pause-shell .pause-move{padding-top:1px;padding-bottom:1px}}
/* Shared arena-bound dialogs: navigation never scrolls with the content. */
#overlay:has(>.game-dialog),#overlay:has(>.case-result){overflow:hidden}
#overlay>.game-dialog{width:min(1100px,100%);height:100%;max-height:100%;min-height:0;padding:18px 22px;display:flex;flex-direction:column;overflow:hidden;text-align:left;background:radial-gradient(at 10% 0%,#344354,#111d2a 70%);border:1px solid #8b8069;border-radius:12px;box-shadow:inset 0 0 0 3px #101923,0 20px 70px #0008}
.dialog-header{position:static;inset:auto;pointer-events:auto;display:flex;align-items:center;justify-content:flex-start;gap:18px;flex-shrink:0;padding:0 0 14px;margin:0 0 14px;border-bottom:1px solid #8c9aa14d}
.dialog-header small{font-size:9px;letter-spacing:2px;color:#d2b985}.dialog-header h1,.panel .dialog-header h1{font-size:25px;margin:5px 0 0;color:#eee3cd}
.dialog-back{flex-shrink:0;white-space:nowrap;min-height:44px;padding:9px 13px;background:linear-gradient(#3b4c60,#202e40);box-shadow:var(--ui-shadow)}.dialog-back svg{width:21px;height:21px}
.dialog-body{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;padding:0 8px 8px 0;line-height:1.6}.dialog-intro{color:#afc0ca;font-size:13px;margin:0 0 15px}.dialog-body .quick-guide{max-height:none;overflow:visible}.dialog-body .developer-grid{overflow:visible}.dialog-body>p{font-size:13px;color:#b5c4cc}
.dialog-footer{position:static;inset:auto;transform:none;pointer-events:auto;flex-shrink:0;width:100%;display:flex;align-items:center;justify-content:flex-end;gap:12px;flex-wrap:wrap;border-top:1px solid #9c865966;padding:12px 0 0;margin-top:10px;text-align:left;background:transparent}.dialog-footer>.primary{min-width:200px;min-height:46px}.dialog-footer p{margin:0;font-size:12px}.dialog-footer #campaign-feedback{position:static;padding:0;background:transparent}.dialog-footer #dev-feedback:empty{display:none}.dialog-footer #dev-feedback{width:100%;margin:0;min-height:0}
.case-result .case-columns{overflow:auto;padding-right:6px}.case-result .case-rewards{overflow:visible}.case-result .case-evidence{align-self:start}.case-result .case-footer{margin-top:12px}.case-footer .case-main-action{width:min(440px,100%);padding:0;margin:0}.case-tools{margin-top:14px}.equipment-heading>.dialog-back{margin-right:12px}.equipment-heading>.equipment-wallet{margin-left:auto}
@media(max-height:600px){#overlay>.game-dialog{padding:10px 14px}.dialog-header{gap:12px;padding-bottom:8px;margin-bottom:9px}.dialog-header h1,.panel .dialog-header h1{font-size:19px;margin:2px 0 0}.dialog-header small{font-size:8px}.dialog-back{min-height:38px;padding:7px 10px;font-size:11px}.dialog-footer{padding-top:8px;margin-top:7px;gap:8px}.dialog-footer button{min-height:38px;font-size:11px;padding:7px 12px}.dialog-footer>.primary{min-height:38px}.dialog-body>p,.dialog-intro{font-size:11px}.game-dialog .campaign-act h2{font-size:16px}.game-dialog .campaign-act h2 small{font-size:10px}.case-result .case-footer{margin-top:8px}.equipment-heading>.dialog-back{margin-right:6px}}
.dev-quick-actions{display:flex;gap:8px;margin-bottom:12px}.dev-quick-actions button{border-color:#c4a675;background:linear-gradient(#67543a,#3e3428);color:#f3d9a9;font-size:12px}
#arena:has(.game-dialog) #dev-badge,#arena:has(.case-result) #dev-badge{top:2px;font-size:8px;min-height:18px;padding:2px 8px}
/* Button roles: primary/paired footer, standard navigation, compact grid, icon.
   Card choices and combat controls keep their spatial layouts. */
:root{--button-primary-width:160px;--button-standard-width:112px;--button-height:44px;--button-icon-size:44px}
#overlay .dialog-footer>button,#overlay .case-main-action>button,#overlay .pause-heading-actions>.primary,#overlay .tasting-next{width:var(--button-primary-width);min-width:var(--button-primary-width);max-width:100%;height:var(--button-height);min-height:var(--button-height);padding:0 12px;flex:0 0 var(--button-primary-width);font-size:13px;white-space:nowrap;display:inline-flex;align-items:center;justify-content:center;gap:7px}
#overlay .case-main-action{width:var(--button-primary-width);max-width:100%;padding:0;margin:0}
#overlay .dialog-back,#overlay .pause-control-mode{width:var(--button-standard-width);min-width:var(--button-standard-width);height:var(--button-height);min-height:var(--button-height);padding:0 9px;justify-content:center;font-size:12px}
#overlay .case-tools{grid-template-columns:repeat(3,minmax(0,1fr))}
#overlay .case-tools button,#overlay .dev-quick-actions button,#overlay .developer-grid button{height:var(--button-height);min-height:var(--button-height);padding:5px 9px;font-size:11px;line-height:1.25}
#overlay .dev-quick-actions button,#overlay .developer-grid button{width:var(--button-standard-width)}
#overlay .case-tools button{width:100%}.button-note{font-size:10px;color:#9bafbd;margin:9px 0 0}
#overlay .square-button{width:var(--button-icon-size);height:var(--button-icon-size);min-width:var(--button-icon-size);min-height:var(--button-icon-size)}
@media(max-height:600px){:root{--button-primary-width:128px;--button-standard-width:96px;--button-height:38px;--button-icon-size:38px}#overlay .dialog-footer>button,#overlay .case-main-action>button,#overlay .pause-heading-actions>.primary,#overlay .tasting-next{font-size:11px}#overlay .dialog-back,#overlay .pause-control-mode{font-size:10px}#overlay .case-tools button,#overlay .dev-quick-actions button,#overlay .developer-grid button{font-size:10px}}
/* Fit the game arena, not the browser viewport. One scroll region only for
   unbounded collections; fixed navigation and compact landscape content. */
#overlay:not(.choosing):not(.tasting-overlay):not(.equipping){padding:12px}
#overlay>.game-dialog,#overlay>.case-result,#overlay>.pause-shell{width:100%;max-width:1180px;height:100%;max-height:100%;padding:14px 18px}
.screen-tabs{display:flex;gap:6px;margin-bottom:10px;flex-shrink:0}.screen-tabs button{flex:1;min-width:0;min-height:36px;padding:7px 9px;font-size:12px;white-space:nowrap}.screen-tabs button[aria-pressed=true],.route-card[aria-pressed=true],.guide-browser button[aria-pressed=true]{border-color:#e2bf7f;background:linear-gradient(#665439,#342f29);color:#ffdfa4}
.route-body{display:flex;flex-direction:column;gap:8px}.route-body .screen-tabs{margin:0}.route-status{display:flex;justify-content:space-between;font-size:12px;color:#bdcbd1}.route-status b{color:#e9c985}.route-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.route-card{text-align:left;display:flex;flex-direction:column;gap:5px;padding:12px;min-width:0}.route-card small{font-size:10px;color:#b0bfca}.route-card strong{font-size:18px}.route-card span{font-size:11px;color:#bcbba9}.route-detail{padding:10px 13px;background:#0b1725;border-left:3px solid #a98d5e;border-radius:5px;min-height:0}.route-detail strong{font-size:14px;color:#e7d1a8}.route-detail p{font-size:12px;line-height:1.5;margin:5px 0}.route-detail small{font-size:10px;color:#9fb4c1}.route-footer p{margin-right:auto;flex:1;min-width:0;line-height:1.4}
.guide-browser{display:grid;grid-template-columns:1fr 1.25fr;gap:16px;min-height:0}.guide-browser nav{display:grid;grid-template-columns:1fr 1fr;gap:8px;align-content:start}.guide-browser button{min-height:42px;font-size:12px;padding:7px;text-align:left}.guide-browser article{padding:15px;background:#0e1a28;border:1px solid #476071;border-radius:8px}.guide-browser h2{font-size:18px;margin:0 0 12px;color:#e4c899}.guide-browser p{font-size:14px;line-height:1.85;margin:0;color:#bacbd5}
.developer-grid{display:block;overflow:visible}.developer-grid [hidden]{display:none}.developer-grid section{padding:10px}.developer-grid .dev-button-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-top:6px}.developer-grid .dev-button-grid button{width:100%;min-width:0}.developer-grid h2{margin:4px 0 8px}.developer-grid h2:not(:first-child){margin-top:12px}.developer-grid label{display:flex;gap:10px}.dev-context{font-size:11px!important;margin:7px 0 0!important}.developer-actions #dev-feedback{width:auto;flex:1;line-height:1.3}
.case-result .case-columns{overflow:hidden;grid-template-columns:1fr 1fr;gap:16px}.case-result .case-evidence{height:100%;padding:14px;overflow:auto}.case-result .case-rewards{overflow:hidden}.case-result .case-loot{overflow:auto;min-height:0;flex:1;align-content:start}.case-result .case-next{padding-top:9px;margin-top:12px}.case-result .run-contract{margin-top:10px}.case-footer{display:grid;grid-template-columns:minmax(0,1fr) var(--button-primary-width);align-items:end;gap:12px}.case-footer .case-tools{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:0;max-width:550px}.case-footer .case-tools button{min-height:32px;height:32px;font-size:10px;padding:3px}.case-footer .case-tools svg{width:16px;height:16px}.case-footer .case-main-action{align-self:end}.case-evidence h2{font-size:23px}.case-heading{flex-shrink:0}
@media(max-height:600px){
 #overlay:not(.choosing):not(.tasting-overlay):not(.equipping){padding:7px}
 #overlay>.game-dialog,#overlay>.case-result,#overlay>.pause-shell{padding:9px 12px}
 .dialog-header,.case-heading,.pause-heading{margin-bottom:8px;padding-bottom:7px;gap:10px}.dialog-header h1,.panel .dialog-header h1,.case-heading h1,.pause-heading h1{font-size:18px}.dialog-header small,.case-heading small{font-size:7px}.dialog-header .dialog-back{height:36px;min-height:36px}
 .dialog-body{padding:0;scrollbar-gutter:auto}.dialog-intro{margin:0 0 8px!important;font-size:10px!important}.dialog-footer{margin-top:7px;padding-top:7px}.dialog-footer p{font-size:10px}
 .screen-tabs{gap:5px;margin-bottom:7px}.screen-tabs button{min-height:32px;padding:5px 6px;font-size:10px}.route-body{gap:6px}.route-status{font-size:10px}.route-cards{gap:7px}.route-card{padding:8px 10px;gap:3px}.route-card strong{font-size:15px}.route-card span,.route-card small{font-size:9px}.route-detail{padding:7px 10px}.route-detail strong{font-size:12px}.route-detail p{font-size:11px;margin:3px 0}.route-detail small{font-size:9px}
 .guide-browser{gap:10px;grid-template-columns:1fr 1.15fr}.guide-browser nav{gap:6px}.guide-browser button{min-height:37px;font-size:10px;padding:5px 7px}.guide-browser article{padding:11px}.guide-browser h2{font-size:14px;margin-bottom:8px}.guide-browser p{font-size:12px;line-height:1.75}
 .developer-grid section{padding:7px 9px}.developer-grid h2{font-size:12px;margin:0 0 5px}.developer-grid .dev-button-grid{gap:5px}.developer-grid .dev-button-grid button{height:32px;min-height:32px;font-size:10px;padding:4px}.developer-grid p{font-size:11px;margin:8px 0}.developer-grid h2:not(:first-child){margin-top:7px}.dev-context{font-size:9px!important;margin-top:5px!important}
 .case-result .case-columns{gap:10px}.case-result .case-evidence{padding:9px 11px}.case-evidence h2{font-size:17px;margin:5px 0}.case-evidence>p{font-size:10px;line-height:1.5}.case-result .case-next{padding-top:6px;margin-top:7px;gap:2px}.case-next strong{font-size:13px}.case-result .run-contract{padding:5px 7px;margin-top:7px;gap:2px;font-size:9px;line-height:1.3}.case-result .run-contract small{font-size:8px}.case-heading>b{font-size:23px}.case-seal{width:32px;height:32px}.case-footer .case-tools{gap:5px}.case-footer .case-tools button{height:28px;min-height:28px;font-size:9px}.case-footer .case-tools svg{width:13px;height:13px}.case-stats{padding:6px 3px}.case-rewards h2{margin:7px 0 5px}.case-result .case-footer{margin-top:7px}.case-result .case-first{flex-shrink:0}
 .mode-options{max-width:none;margin:0;gap:8px}.mode-options button{padding:12px;gap:7px}.mode-options b{font-size:16px}.mode-options span{font-size:11px;line-height:1.6}.training{grid-template-columns:1fr 1fr;gap:8px;max-width:none}.training button{font-size:11px;padding:10px;gap:8px}.training small{font-size:10px}
}
#overlay .developer-grid .dev-button-grid{grid-template-columns:repeat(5,minmax(0,1fr))}
#overlay .developer-grid [data-dev-page="building"] .dev-button-grid{grid-template-columns:repeat(6,minmax(0,1fr))}
#overlay .developer-grid .dev-button-grid button{width:100%;min-width:0;height:36px;min-height:36px}
@media(max-height:600px){#overlay .developer-grid .dev-button-grid button{height:32px;min-height:32px;padding:3px;font-size:9px}.developer-grid section{padding:6px}.developer-grid .dev-button-grid{gap:5px}.developer-grid h2:not(:first-child){margin-top:6px}}
.item-dialog{width:min(900px,100%);height:100%;max-height:100%}.item-dialog-top{justify-content:flex-start;gap:14px;padding:8px 12px}.item-dialog-scroll{display:grid;grid-template-columns:1fr 1fr;gap:16px;flex:1;min-height:0;overflow:hidden;padding:10px 14px}.item-details{overflow:auto;min-height:0}.item-dialog .gear-buttons{grid-column:auto;grid-row:auto;margin:0;min-height:0;align-content:start;overflow:auto}.item-dialog .item-hero{gap:9px}.item-dialog .item-hero>.gear-art{width:72px;height:72px}.item-dialog .item-effects{padding:7px 10px;margin:7px 0}.item-dialog .set-description{padding:6px 0}.item-dialog .set-description small{margin-top:3px}.item-dialog .gear-buttons button{min-height:38px;padding:7px 10px}.item-footer-note{flex-shrink:0}
@media(max-height:600px){.gear-inspector{padding:0}.item-dialog{width:100%}.item-dialog-top{padding:5px 10px}.item-dialog-scroll{padding:8px 10px;gap:12px}.item-dialog .item-hero>.gear-art{width:48px;height:48px}.item-dialog .item-hero h2{font-size:15px;margin:0 0 4px}.item-dialog .item-hero small{font-size:9px;margin-top:3px}.item-dialog .item-effects{padding:4px 8px;margin:5px 0}.item-dialog .item-effects p{font-size:10px;margin:2px 0}.item-dialog .next-upgrade{font-size:9px;line-height:1.4}.item-dialog .set-description{font-size:10px;padding:5px 0}.item-dialog .set-description span{display:inline;margin-left:5px}.item-dialog .set-description small{font-size:8px;line-height:1.4}.item-dialog .gear-buttons{gap:5px}.item-dialog .gear-management{padding-top:5px;margin-top:0}.item-rule{font-size:9px;line-height:1.5}.item-footer-note{margin:5px 0;font-size:9px}.gear-figure .hero-halo{max-width:100%}}
#overlay .case-footer .case-tools button{height:32px;min-height:32px}
@media(max-height:600px){#overlay .case-footer .case-tools button{height:28px;min-height:28px;padding:3px;font-size:9px}#overlay .case-footer .case-tools svg{width:13px;height:13px}.case-result .case-evidence{padding:8px 10px}.case-evidence h2{margin:4px 0}.case-result .case-next{margin-top:4px;padding-top:5px}.case-result .run-contract{margin-top:4px;padding:4px 6px}.skill-art{height:60px}.skill-art canvas{height:100px;width:106px;bottom:-6px}.skill-body>p{min-height:24px}.skill-link{min-height:27px}.loadout-strip{margin-top:7px}.skill-heading{margin-bottom:8px}.skill-menu{max-height:100%}}
@media(max-height:370px){.route-body{gap:4px}.route-card{padding:6px 9px}.route-detail{padding:5px 9px}.route-detail p{margin:2px 0}.route-detail small{line-height:1.2}.screen-tabs{margin-bottom:5px}.developer-grid h2:not(:first-child){margin-top:4px}}
#overlay.equipping{position:absolute;inset:0}
@media(max-height:600px){.gear-grid .item-tile{aspect-ratio:1}.inventory-foot{min-height:18px}.equipment-wallet .square-button{flex-shrink:0}}
/* Illustrated navigation: each drawing communicates a place, resource or action. */
.menu-illustration{display:block;width:40px;height:40px;flex-shrink:0;filter:drop-shadow(0 2px 1px #0007)}.route-card{position:relative;overflow:hidden;min-height:88px;padding-right:92px}.route-art{position:absolute;right:3px;bottom:0;width:92px;height:83px;pointer-events:none}.building-art{display:block;width:100%;height:100%;filter:drop-shadow(0 2px 2px #0006)}.route-card>.menu-illustration{position:absolute;right:13px;top:12px;width:58px;height:58px}.route-detail{display:flex;align-items:center;gap:12px}.route-detail>.menu-illustration{width:48px;height:48px}.route-detail-copy{min-width:0}.route-status .route-currency{display:flex;align-items:center;gap:5px}
.guide-browser nav button{display:flex;align-items:center;gap:8px}.guide-browser nav .menu-illustration{width:28px;height:28px}.guide-browser nav span{min-width:0}.visual-steps{display:flex;align-items:center;justify-content:space-around;gap:8px;padding:8px 4px;margin:0 0 10px;border-top:1px solid #98b2bb25;border-bottom:1px solid #98b2bb25}.visual-steps>span{display:grid;justify-items:center;gap:3px;min-width:0}.visual-steps svg{width:42px;height:42px}.visual-steps small{font-size:10px;color:#dbcda9;white-space:nowrap}.visual-steps i{font-style:normal;font-size:24px;color:#97a695}.guide-browser p{font-size:12px;line-height:1.7}.guide-browser h2{margin-bottom:8px}
.case-clue-heading{display:flex;align-items:center;gap:8px;height:34px}.case-clue-heading .building-art{width:44px;height:38px}.case-clue-heading small{font-size:10px;color:#bdc5bf}.case-stats span{display:grid;grid-template-columns:22px 1fr;align-items:center;text-align:left;column-gap:4px}.case-stats span>svg{width:22px;height:22px;grid-row:1/3}.case-stats b{font-size:15px;margin-top:3px}.pause-metrics span{position:relative;padding-left:24px}.pause-metrics .menu-illustration{width:20px;height:24px;position:absolute;left:0;top:4px}.developer-shell .screen-tabs button{display:flex;align-items:center;justify-content:center;gap:7px}.developer-shell .screen-tabs svg{width:23px;height:23px}
@media(max-height:600px){.route-card{min-height:74px;padding-right:66px}.route-art{width:67px;height:69px;right:0;bottom:-1px}.route-card>.menu-illustration{width:39px;height:39px;right:10px;top:14px}.route-card strong{font-size:13px}.route-detail{gap:8px}.route-detail>.menu-illustration{width:34px;height:34px}.guide-browser{grid-template-columns:1fr 1.2fr}.guide-browser nav button{gap:4px;font-size:9px;padding:4px}.guide-browser nav svg{width:23px;height:23px}.guide-browser article{padding:9px}.guide-browser h2{font-size:13px;margin-bottom:5px}.visual-steps{padding:5px 0;margin-bottom:6px;gap:3px}.visual-steps svg{width:29px;height:29px}.visual-steps small{font-size:8px}.visual-steps i{font-size:18px}.guide-browser p{font-size:10px;line-height:1.65}.case-clue-heading{height:22px;gap:6px}.case-clue-heading .building-art{width:32px;height:27px}.case-clue-heading small{font-size:9px}.case-stats span{grid-template-columns:16px 1fr;column-gap:2px;font-size:8px}.case-stats span>svg{width:16px;height:19px}.case-stats b{font-size:11px}.pause-metrics span{padding-left:19px}.pause-metrics .menu-illustration{width:16px;height:20px;top:4px}.pause-metrics b{font-size:10px}.developer-shell .screen-tabs svg{width:19px;height:19px}.developer-shell .screen-tabs button{gap:4px}}
@media(min-height:601px){.route-cards{flex:1;max-height:240px;min-height:160px}.route-card{justify-content:center;padding:22px 160px 22px 20px;gap:10px}.route-card strong{font-size:21px}.route-art{width:165px;height:155px;right:4px;bottom:8px}.route-card>.menu-illustration{width:94px;height:94px;right:30px;top:35px}.route-detail{padding:20px;min-height:110px}.route-detail>.menu-illustration{width:68px;height:68px}.guide-browser nav button{min-height:68px;font-size:14px;gap:12px;padding:12px}.guide-browser nav .menu-illustration{width:38px;height:38px}.guide-browser article{padding:24px}.guide-browser h2{font-size:22px}.visual-steps{padding:16px 4px;margin:15px 0}.visual-steps svg{width:64px;height:64px}.visual-steps small{font-size:12px}.guide-browser p{font-size:14px;line-height:1.9}}
/* Territorial operations: fixed navigation, one optional report drawer. */
.faction-body{display:flex;flex-direction:column;gap:10px;overflow:hidden}.power-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:14px}.power-heading>b:first-child{color:#a8ddc5}.power-heading>b:last-child{color:#e5a093}.power-heading span{font-size:11px;color:#b7c4c9}.power-track{height:15px;background:#643d43;border:1px solid #a88d73;position:relative;border-radius:4px;flex-shrink:0;overflow:hidden}.power-track i{display:block;height:100%;background:linear-gradient(#a3d6bb,#487d71)}.power-track em{position:absolute;top:0;height:100%;border-left:2px solid #c6b78b88}.power-track em.active{border-color:#fff3c8}.operation-columns{display:grid;grid-template-columns:1.7fr 1fr;gap:14px;min-height:0;flex:1}.site-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:1fr 1fr;gap:8px;min-height:0}.site-card{position:relative;display:flex;flex-direction:column;text-align:left;justify-content:end;min-width:0;min-height:0;padding:12px;overflow:hidden;background:linear-gradient(135deg,#2b3948,#142230);border:1px solid #5b6b78}.site-card .building-art{position:absolute;right:5px;top:0;width:90px;height:76px;opacity:.8}.site-card b,.site-card small,.site-card span{position:relative;z-index:1;max-width:100%;overflow-wrap:anywhere}.site-card b{font-size:15px;margin:6px 0}.site-card small{font-size:10px;color:#c1c9c7}.site-card span{font-size:10px;color:#b6c6c9;line-height:1.5}.site-card.player{border-color:#70aa93;background:linear-gradient(135deg,#284b45,#15272a)}.site-card.threat{border-color:#e59878}.site-card.threat>small:first-of-type{color:#ffbb8e}.site-card[aria-pressed=true]{outline:2px solid #e6c789;outline-offset:-3px;background:linear-gradient(135deg,#60513b,#24313b)}.dispatch-panel{padding:14px;background:#0c1928;border:1px solid #465b6b;border-radius:9px;min-height:0;overflow:auto}.dispatch-panel h2{display:flex;gap:8px;align-items:center;font-size:17px;margin:0 0 10px}.dispatch-panel h2 svg{width:28px;height:28px}.dispatch-panel label{display:flex;align-items:center;gap:8px;font-size:11px;margin:8px 0}.dispatch-panel select{min-width:0;flex:1;background:#263746;color:#ede2c7;border:1px solid #657781;border-radius:5px;padding:7px;font-size:11px}.dispatch-panel>small{font-size:10px;color:#aebbc2;line-height:1.6}.ally-preview{display:flex;align-items:center;gap:5px;min-height:90px}.ally-preview canvas{width:85px;height:auto;object-fit:contain}.ally-preview p{font-size:11px;line-height:1.6;margin:5px 0}.war-report{flex-shrink:0;font-size:11px;color:#c7d0c9;max-height:100px;overflow:auto;border-top:1px solid #56626b;padding-top:8px}.war-report summary{cursor:pointer;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.war-report p{margin:5px 0}.faction-shell .dialog-footer p{margin-right:auto;font-size:11px;line-height:1.4}.faction-shell .dialog-footer button:disabled{opacity:.45}.pause-summary nav{grid-template-columns:1fr 1fr}.pause-summary nav .menu-action{font-size:11px;gap:5px;padding:5px}.pause-summary nav .menu-action svg{width:20px;height:20px}
@media(max-height:600px){.faction-body{gap:5px}.power-heading{font-size:11px}.power-heading span{font-size:8px}.power-track{height:10px}.operation-columns{gap:8px;grid-template-columns:1.6fr 1fr}.site-grid{gap:5px}.site-card{padding:6px}.site-card .building-art{width:51px;height:42px;opacity:.45;right:0}.site-card b{font-size:10px;margin:3px 0}.site-card small,.site-card span{font-size:8px;line-height:1.3}.dispatch-panel{padding:7px}.dispatch-panel h2{font-size:12px;margin:0 0 3px}.dispatch-panel h2 svg{width:20px;height:20px}.dispatch-panel label{font-size:9px;margin:4px 0;gap:4px}.dispatch-panel select{padding:4px;font-size:9px}.ally-preview{min-height:48px}.ally-preview canvas{width:48px}.ally-preview p,.dispatch-panel>small{font-size:8px;line-height:1.4}.war-report{font-size:9px;padding-top:4px;max-height:55px}.faction-shell .dialog-footer p{font-size:9px}.pause-summary nav .menu-action{font-size:9px;min-height:32px;height:32px}.pause-summary nav .menu-action svg{width:17px;height:17px}}
@media(max-height:370px){.dispatch-panel>small{display:block;font-size:7px;line-height:1.2}.dispatch-panel{padding:5px}.dispatch-panel label{margin:2px 0}.dispatch-panel select{padding:3px}.ally-preview p{font-size:7.5px;line-height:1.3}.ally-preview canvas{width:40px}.ally-preview{min-height:40px}.developer-grid section{padding:3px}.developer-shell .screen-tabs{margin-bottom:4px}}
.trait-dot{position:absolute;right:5px;top:24px;width:7px;height:7px;transform:rotate(45deg);background:var(--trait);border:1px solid #ffedbd;box-shadow:0 0 5px var(--trait)}
/* Compact pause and three-option destination selection. */
#overlay .pause-simple,#overlay .control-simple,#overlay .route-simple{width:min(980px,96%);height:auto;max-height:calc(100dvh - 32px);min-height:0;overflow:hidden}
#overlay .pause-simple-actions,#overlay .mode-options,#overlay .route-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
#overlay .pause-simple-actions{padding:28px}
#overlay .pause-simple-actions>button{width:100%;height:144px;display:flex;flex-direction:column;justify-content:center;gap:16px;font-size:19px}
#overlay .pause-simple-actions svg{width:48px;height:48px}
#overlay .control-simple .mode-options{padding:24px}
#overlay .mode-options>button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:24px 12px;min-height:190px}
#overlay .mode-options svg{width:48px;height:48px}
#overlay .mode-options b{font-size:23px}#overlay .mode-options span{font-size:14px;line-height:1.5}#overlay .mode-options small{color:#cbb884}
#overlay .mode-options [aria-pressed=true]{border-color:#edce8d;background:linear-gradient(145deg,#394544,#222f35);box-shadow:inset 0 0 0 1px #edce8d}
#overlay .route-simple .dialog-body{padding:12px 24px;overflow:auto}
.route-intro{text-align:center;color:#bbc5c5;margin:0 0 14px}
#overlay .route-card{width:100%;min-height:240px;display:flex;flex-direction:column;align-items:center;gap:10px;padding:16px;border:1px solid #8d8063;background:linear-gradient(155deg,#2c3a43,#141e29);border-radius:12px;white-space:normal;text-align:center}
#overlay .route-card:hover{border-color:#f5dba0;background:linear-gradient(155deg,#394a50,#222e38)}
#overlay .route-card>svg{width:100%;height:86px;flex-shrink:0}
#overlay .route-card small{color:#e7c388;font-size:13px}#overlay .route-card b{font-size:18px;line-height:1.4}#overlay .route-card span{font-size:13px;color:#c9d3d5}#overlay .route-card em{margin-top:auto;font-style:normal;color:#a8bebc;font-size:12px;line-height:1.55}
#war-feedback{text-align:center;font-size:12px;color:#d3c3a3;margin:12px 0 0}
@media(max-height:500px){#overlay .pause-simple-actions{padding:16px}#overlay .pause-simple-actions>button{height:104px;gap:8px;font-size:16px}#overlay .control-simple .mode-options{padding:12px}#overlay .mode-options>button{min-height:138px;padding:12px 8px;gap:7px}#overlay .mode-options svg{width:30px;height:30px}#overlay .route-card{min-height:184px;padding:10px;gap:5px}#overlay .route-card>svg{height:45px}#overlay .route-card b{font-size:15px}#overlay .route-intro{margin-bottom:8px}#overlay .route-simple .dialog-body{padding:8px 16px}}
.territory-button{align-self:flex-end;padding:5px 12px;font-size:12px;color:#e4c58a;border:1px solid #8b7958;border-radius:7px;background:#172632;pointer-events:auto}
#overlay .raid-simple{width:min(760px,94%);height:auto;max-height:calc(100dvh - 24px)}
.raid-simple .dialog-body{text-align:center;padding:16px 24px}.raid-building svg{width:110px;height:85px}.raid-simple h2{font-size:21px;line-height:1.6}.raid-options{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:24px 0 12px}.raid-options button{width:100%!important;min-width:0!important;height:56px;font-size:17px}.raid-simple p{color:#aebac1;font-size:12px}
#overlay .power-dashboard{width:min(850px,94%);height:auto;max-height:calc(100dvh - 24px)}.power-dashboard .dialog-body{padding:16px 24px;overflow:auto}.power-goals{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:12px 0}.power-goals span{padding:8px;color:#83939d;border:1px solid #48545e;border-radius:8px;text-align:center}.power-goals b{display:block}.power-goals .reached{color:#f0cf8f;border-color:#ac915e;background:#76613433}.power-dashboard h2{font-size:16px}.restaurant-tags{display:flex;flex-wrap:wrap;gap:7px;color:#b9c6c9;font-size:13px}.restaurant-tags span{padding:6px 10px;border:1px solid #5b716e;border-radius:6px;background:#263c3b}.power-report{font-size:13px;color:#dcc799}
@media(max-height:500px){.raid-building svg{height:46px}.raid-simple h2{font-size:17px;margin:8px}.raid-options{margin:12px 0}.raid-options button{height:44px}.raid-simple .dialog-body{padding:8px 18px}}

.raid-building svg{display:block;margin:0 auto}
/* One column equipment details, actions below next-upgrade preview. */
#overlay .item-dialog.item-single{width:min(450px,94%);height:auto;max-height:100%}
#overlay .item-single .item-dialog-scroll{display:flex;flex-direction:column;gap:10px;overflow:auto;flex:0 1 auto;padding:12px 18px}
#overlay .item-single .item-details{overflow:visible;flex-shrink:0}
#overlay .item-single .gear-buttons{display:flex;flex-direction:column;overflow:visible;flex-shrink:0;gap:8px}
#overlay .item-single .gear-buttons button{width:100%;min-width:0;min-height:40px}
#overlay .item-single .item-hero{grid-column:auto;grid-row:auto}
#overlay .workshop-dialog{width:min(460px,94%);height:auto;max-height:calc(100dvh - 24px);text-align:center}
.workshop-dialog .dialog-body{padding:16px 24px;overflow:auto}.workshop-dialog .dialog-footer{justify-content:center;gap:10px}.workshop-dialog .dialog-footer button{min-width:0;flex:1}.workshop-dialog h2{font-size:21px}.workshop-dialog p{font-size:13px;line-height:1.6}.workshop-art{position:relative;width:130px;height:130px;margin:8px auto;display:grid;place-items:center;isolation:isolate}.workshop-art>.gear-art{width:100px;height:100px;z-index:1}.workshop-cost{display:flex;justify-content:center;gap:18px;padding:12px;border:1px solid #8f7956;border-radius:8px;background:#b8994520;font-size:19px;color:#efd497}.workshop-chance{font-weight:bold;color:#e5c68e}.workshop-effects{padding:8px;background:#12202d;border-radius:8px;color:#c5dcd5}.workshop-rays{position:absolute;inset:-25px;border-radius:50%;background:repeating-conic-gradient(#e9c36f44 0deg 12deg,transparent 12deg 30deg);mask-image:radial-gradient(circle,#000 15%,transparent 72%);animation:workshop-spin 9s linear infinite;z-index:0}.workshop-ring{position:absolute;inset:0;border:2px solid #ebc778;border-radius:50%;animation:workshop-pulse .8s ease-out infinite}.workshop-busy .gear-art{animation:workshop-forge .35s ease-in-out infinite alternate}.workshop-progress{height:5px;background:#162432;overflow:hidden;border-radius:5px}.workshop-progress i{display:block;height:100%;background:#e9c885;animation:workshop-fill 1.8s ease-in-out forwards}.workshop-success .workshop-art{animation:workshop-reveal .55s ease-out}.workshop-failure .workshop-art{filter:saturate(.3)}.workshop-failure .workshop-rays{display:none}.workshop-compare{display:flex;flex-direction:column;gap:5px;font-size:13px}.workshop-traits{display:grid;grid-template-columns:1fr;gap:8px}.workshop-traits button{text-align:left;white-space:normal;padding:10px}.workshop-traits small{display:block;margin-top:4px;color:#bccdcf}
@keyframes workshop-spin{to{transform:rotate(360deg)}}@keyframes workshop-pulse{to{transform:scale(1.6);opacity:0}}@keyframes workshop-forge{to{transform:translateY(-5px) rotate(3deg);filter:brightness(1.6)}}@keyframes workshop-fill{from{width:0}to{width:100%}}@keyframes workshop-reveal{from{transform:scale(.55);opacity:0}60%{transform:scale(1.1)}to{transform:scale(1);opacity:1}}
@media(max-height:500px){#overlay .item-single .item-dialog-scroll{padding:7px 12px;gap:5px}#overlay .item-single .gear-buttons{gap:4px}#overlay .item-single .gear-buttons button{min-height:32px;padding:5px}#overlay .item-single .item-footer-note{padding:4px;margin:0}.workshop-dialog .dialog-body{padding:8px 16px}.workshop-art{width:70px;height:70px;margin:4px auto}.workshop-art>.gear-art{width:64px;height:64px}.workshop-dialog h2{font-size:17px;margin:8px}.workshop-dialog p{font-size:11px;margin:6px}.workshop-cost{padding:6px;font-size:16px}.workshop-traits{gap:4px}.workshop-traits button{padding:6px;font-size:12px}.workshop-traits small{font-size:10px}}
@media(prefers-reduced-motion:reduce){.workshop-rays,.workshop-ring,.workshop-busy .gear-art,.workshop-success .workshop-art{animation:none}}
body:has(.workshop-dialog) #manual-attack{visibility:hidden;pointer-events:none}
/* Occupation atlas: four clear unlocks, a complete district, sprite companions. */
#overlay .power-dashboard{width:min(1160px,97%);height:min(730px,calc(100dvh - 20px));max-height:calc(100dvh - 20px)}
.power-dashboard .dialog-header{padding:12px 18px}.power-dashboard .dialog-header h1{font-size:24px}
.power-dashboard .occupation-body{padding:10px 18px;display:flex;flex-direction:column;gap:12px;min-height:0;overflow:auto}
.occupation-summary{display:flex;align-items:center;gap:24px}.occupation-summary>div{display:flex;align-items:center;gap:12px;flex:1}.occupation-summary b{white-space:nowrap;font-size:12px}.occupation-summary em{font-style:normal;font-size:22px;color:#f1d294}.occupation-summary>span{font-size:12px;text-align:right;color:#d6c694}.occupation-summary small{display:block;font-size:10px;color:#899ba6;margin-top:3px}.occupation-summary .power-track{flex:1;height:10px;background:#643c4b;border-radius:8px;overflow:hidden}.power-track i{display:block;height:100%;background:linear-gradient(90deg,#419785,#b8e4b2)}
.occupation-rewards{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.occupation-reward{display:flex;gap:8px;padding:10px;border:1px solid #425264;border-radius:9px;background:linear-gradient(135deg,#263444,#111d2b);min-width:0}.occupation-reward.active{border-color:#b6a16c;background:linear-gradient(135deg,#49432c,#18272c)}.occupation-reward.suspended{border-color:#965c60}.reward-emblem{width:34px;flex-shrink:0;position:relative}.reward-emblem svg{width:34px;height:34px}.reward-emblem>b{position:absolute;top:30px;left:10px;color:#8c9ba6;font-size:11px}.locked .reward-emblem{filter:grayscale(1);opacity:.6}.occupation-reward-copy{min-width:0;flex:1}.occupation-reward header{display:flex;align-items:center;justify-content:space-between;gap:3px}.occupation-reward header strong{font-size:13px;color:#eddbad}.occupation-reward header span{font-size:9px;white-space:nowrap;color:#97bda7}.occupation-reward.locked header span{color:#84929f}.occupation-reward p{font-size:11px;line-height:1.3;margin:6px 0;color:#e5e8df}.occupation-reward-copy>small{font-size:10px;color:#9aaeb8;display:block}.occupation-prize{display:flex;align-items:center;gap:3px;font-size:12px;color:#edcf89;margin-top:7px}.occupation-prize svg{width:17px;height:17px}.occupation-prize i{font-style:normal;color:#8b9a9f}.occupation-prize span{font-size:9px;color:#9fb0b7;margin-left:3px}
.occupation-lower{display:grid;grid-template-columns:minmax(0,1fr) 240px;gap:14px;flex:1;min-height:220px}.restaurant-map-panel,.ally-gallery-panel{min-width:0;display:flex;flex-direction:column}.occupation-lower header{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px}.occupation-lower h2{font-size:14px;margin:0}.occupation-lower h2 small{color:#e3c988;margin-left:6px}.map-legend{display:flex;gap:9px;font-size:10px;color:#728893}.map-legend .owned{color:#a5dfb3}.map-legend .lost{color:#e29e8e}.restaurant-map{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px 10px;padding:12px;background:repeating-linear-gradient(0deg,transparent 0 45px,#51647122 45px 48px),repeating-linear-gradient(90deg,#0c1721 0 70px,#51647122 70px 74px);border:1px solid #354b58;border-radius:10px;flex:1;align-content:space-around}.restaurant-pin{position:relative;display:flex;align-items:center;justify-content:center;min-height:32px;padding:8px 2px 5px;border:1px solid #42535f;background:linear-gradient(#293946,#16222c);border-radius:2px 2px 5px 5px;color:#8ca0aa;box-shadow:0 4px 0 #060c15}.map-roof{position:absolute;top:-5px;left:-3px;right:-3px;height:5px;border-radius:3px;background:#42505c;transform:skew(-12deg)}.restaurant-pin strong{font-size:11px;font-weight:600;text-align:center;word-break:keep-all}.map-number{position:absolute;left:4px;top:1px;font-size:7px;opacity:.7}.map-stamp{position:absolute;right:-4px;top:-7px;border-radius:50%;width:13px;height:13px;background:#20313d;text-align:center;font-size:10px}.restaurant-pin.owned{color:#eff9d9;border-color:#79b79d;background:linear-gradient(#365d53,#18342e)}.restaurant-pin.owned .map-roof,.restaurant-pin.owned .map-stamp{background:#518a69;color:#f3ffda}.restaurant-pin.lost{color:#dfad9e;border-color:#986655}.restaurant-pin.lost .map-roof{background:#885347}.restaurant-pin.threat{color:#fff1ac;border-color:#e4b963;background:#583832}.restaurant-pin.threat .map-stamp{background:#c64e3d;color:white}.map-caption{font-size:10px;margin:8px 0 0;color:#8caaa8}.ally-gallery-panel>header{display:block}.ally-gallery-panel header>span{font-size:9px;color:#8d9eaa}.ally-gallery{display:flex;overflow-x:auto;gap:8px;scroll-snap-type:x mandatory;flex:1;border:1px solid #40515b;border-radius:10px;padding:8px;background:#101d28}.ally-card{position:relative;min-width:165px;flex:1;display:flex;flex-direction:column;align-items:center;scroll-snap-align:start;background:radial-gradient(ellipse at 50% 40%,#47625244,transparent 70%);border:1px solid #455850;border-radius:6px;overflow:hidden}.ally-card canvas{display:block;width:100%;height:clamp(90px,21vh,190px);object-fit:contain;flex:1;min-height:0}.ally-rank{position:absolute;left:8px;top:7px;color:#e6c678;font-size:12px}.ally-rank small{display:block;font-size:9px;color:#a0b3aa}.ally-card>strong{font-size:15px;color:#efe0b8}.ally-card>span:not(.ally-rank){font-size:10px;color:#a0b5ac;margin:3px}.ally-card>div{padding:8px;display:flex;width:100%;justify-content:space-around;background:#263c354d}.ally-card>div b{font-size:11px;color:#bcddc5}.ally-card>div small{font-size:10px;color:#c6ba93}.no-allies{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:12px;color:#a4b4bf;font-size:12px;width:100%}.no-allies svg{width:55px}.no-allies span{font-size:10px}.occupation-report{display:flex;align-items:center;gap:7px;font-size:11px;color:#d5c6a8}.occupation-report svg{width:18px;height:18px;flex-shrink:0}.occupation-report span{flex:1}.occupation-report small{font-size:9px;color:#8b9eaa}.territory-button{white-space:nowrap}
@media(max-height:520px){#overlay .power-dashboard{height:calc(100dvh - 12px);max-height:calc(100dvh - 12px)}.power-dashboard .dialog-header{padding:6px 12px;min-height:42px}.power-dashboard .dialog-header h1{font-size:19px}.power-dashboard .dialog-header small{display:none}.power-dashboard .occupation-body{padding:6px 12px;gap:6px}.occupation-summary em{font-size:16px}.occupation-summary small{margin:0;font-size:8px}.occupation-summary>span{font-size:10px}.occupation-reward{padding:5px;gap:4px}.reward-emblem{width:24px}.reward-emblem svg{width:24px;height:24px}.reward-emblem>b{top:24px;font-size:9px}.occupation-reward header strong{font-size:11px}.occupation-reward header span{font-size:8px}.occupation-reward p{font-size:9px;margin:3px 0}.occupation-reward-copy>small{font-size:8px}.occupation-prize{margin-top:3px;font-size:10px}.occupation-prize svg{width:12px;height:12px}.occupation-prize span{font-size:8px}.occupation-lower{min-height:150px;grid-template-columns:minmax(0,1fr) 185px;gap:10px}.occupation-lower h2{font-size:11px}.occupation-lower header{margin-bottom:4px}.map-legend{font-size:8px;gap:6px}.restaurant-map{gap:7px 7px;padding:7px}.restaurant-pin{min-height:21px;padding:5px 0 2px}.restaurant-pin strong{font-size:9px}.map-caption{font-size:8px;margin-top:3px}.ally-gallery{padding:4px}.ally-card{min-width:135px}.ally-card canvas{height:66px}.ally-card>strong{font-size:12px}.ally-card>span:not(.ally-rank){font-size:8px;margin:0}.ally-card>div{padding:4px}.ally-card>div b,.ally-card>div small{font-size:9px}.occupation-report{font-size:9px}.occupation-report small{display:none}}
.power-dashboard .occupation-body header{position:static;inset:auto;pointer-events:auto}.power-dashboard .occupation-body header small{letter-spacing:normal}.power-dashboard .occupation-report{position:static;inset:auto;transform:none;text-align:left;pointer-events:auto}
#arena:has(.power-dashboard) #manual-attack{display:none}
#overlay .power-dashboard{padding:8px}.power-dashboard .dialog-header{margin-bottom:0}.occupation-lower{min-height:0}.restaurant-map-panel,.ally-gallery-panel{min-height:0}.restaurant-map{min-height:0;grid-template-rows:repeat(5,minmax(0,1fr));align-content:stretch}.restaurant-pin{min-height:0}.ally-gallery{min-height:0}.occupation-report{flex-shrink:0}
@media(max-height:520px){.power-dashboard .dialog-header{padding:2px 8px;min-height:40px}.power-dashboard .occupation-body{padding:5px 8px}.occupation-summary{gap:10px}.occupation-summary>div{gap:5px}.occupation-rewards{gap:5px}.occupation-reward{padding:5px 4px}.occupation-prize{flex-wrap:wrap}.occupation-prize span{flex-basis:100%;line-height:1}.occupation-lower{min-height:0;grid-template-columns:minmax(0,1fr) 158px;gap:7px}.restaurant-map{padding:6px;gap:7px 5px}.restaurant-pin{min-height:0;padding:5px 0 0;line-height:1}.restaurant-pin strong{font-size:8px;white-space:nowrap;letter-spacing:-.3px}.map-caption{line-height:1.2}.ally-gallery-panel header>span{font-size:8px}.ally-card{min-width:110px}.ally-card canvas{height:45px}.ally-rank{font-size:9px;left:4px;top:3px}.ally-rank small{font-size:7px}.occupation-report{line-height:1.2}}
#arena:has(.power-dashboard){width:100vw;height:100dvh}
@media(max-height:520px){.ally-gallery-panel>header{line-height:1.15}.ally-gallery-panel header>span{display:block;margin-top:3px}.ally-card>div{padding:3px}.occupation-reward{line-height:1.3}.occupation-reward p{min-height:23px}.occupation-prize span{flex-basis:auto}.power-dashboard .dialog-header h1{margin:0}.power-dashboard .occupation-summary{line-height:1.3}}
/* Focused occupation tabs; geography follows nagne_toss's collected-region map. */
.occupation-tabs{display:flex;gap:8px;padding:10px 18px;flex-shrink:0}.occupation-tabs button{flex:1;min-height:42px;background:#14232f;border-color:#4b5c64;color:#a8b8be}.occupation-tabs button[aria-selected=true]{background:linear-gradient(#6c5c39,#393523);color:#ffe4a5;border-color:#cfb778;box-shadow:inset 0 -3px #e2c98b}
.occupation-tab-panel[hidden]{display:none!important}.occupation-tab-panel{flex:1;min-height:0;display:flex;flex-direction:column}.tabbed-occupation .power-tab{gap:24px;justify-content:center}.power-tab .occupation-rewards{min-height:190px}.power-tab .occupation-reward{flex-direction:column;padding:18px;gap:14px}.power-tab .reward-emblem,.power-tab .reward-emblem svg{width:48px;height:48px}.power-tab .reward-emblem>b{left:54px;top:12px;font-size:20px}.power-tab .occupation-reward header strong{font-size:17px}.power-tab .occupation-reward p{font-size:14px;margin:16px 0}.power-tab .occupation-reward-copy>small{font-size:12px}.power-tab .occupation-prize{margin-top:20px}.tabbed-occupation .occupation-report{margin-top:auto}
.allies-tab .ally-gallery-panel{flex:1;min-height:0}.allies-tab .ally-gallery-panel>header{padding:8px;display:flex;align-items:center}.allies-tab .ally-gallery-panel h2{margin:0}.allies-tab .ally-gallery{gap:14px;padding:14px}.allies-tab .ally-card{flex:0 0 220px;min-width:0}.allies-tab .ally-card canvas{height:100%;max-height:300px;flex:1;min-height:0}.allies-tab .ally-card>strong{font-size:22px}.allies-tab .ally-card>div{padding:14px}.allies-tab .ally-rank{font-size:16px}
.occupation-atlas{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(230px,1fr);gap:20px;min-height:0;flex:1}.atlas-paper{position:relative;min-height:0;border:1px solid #646c65;border-radius:8px;background:radial-gradient(ellipse at 45% 55%,#243c40,#101f2b);overflow:hidden}.occupation-korea{display:block;width:100%;height:100%;padding:15px 0;filter:drop-shadow(1px 5px 2px #0005)}.atlas-region{cursor:pointer;outline:none}.atlas-region path{fill:#344851;stroke:#9cafa5;stroke-width:.7;transition:fill .2s}.atlas-region.partial path{fill:#387b79}.atlas-region.complete path{fill:#b19a5b}.atlas-region.selected path,.atlas-region:focus-visible path{stroke:#fff0b4;stroke-width:2;fill:#658689}.atlas-region.complete.selected path{fill:#d4bc77}.atlas-region text{pointer-events:none;text-anchor:middle;paint-order:stroke;stroke:#152b34;stroke-width:2px;stroke-linejoin:round}.atlas-name{fill:#fcf4da;font-size:10px;font-weight:700}.atlas-count{fill:#e7d298;font-size:8px}.atlas-alert{fill:#ff775c;stroke:#fff5c3;stroke-width:1}.atlas-heading{position:absolute;top:15px;left:15px;font-size:12px;color:#e8d7ad;z-index:1}.atlas-heading small{display:block;font-size:10px;margin-top:5px;color:#94afaf}.atlas-compass{position:absolute;right:18px;top:16px;color:#cebd8c;text-align:center}.atlas-legend{position:absolute;bottom:10px;left:12px;right:12px;display:flex;justify-content:center;gap:14px;color:#9eb0b6;font-size:10px}.atlas-legend span:nth-child(2){color:#81c4bf}.atlas-legend span:nth-child(3){color:#dfc77e}.atlas-detail{display:flex;flex-direction:column;min-height:0}.atlas-region-heading{display:flex;justify-content:space-between;align-items:center;padding:8px 0 14px;border-bottom:1px solid #52606a}.atlas-region-heading h2{font-size:30px;margin:3px 0;color:#f6e0ac}.atlas-region-heading small{font-size:12px;color:#a6b7bf}.atlas-region-heading>b{font-size:24px;color:#bbd9bf}.atlas-restaurants{display:flex;flex-direction:column;gap:12px;overflow:auto;min-height:0;flex:1;padding:14px 0}.atlas-restaurant{display:flex;align-items:center;gap:16px;padding:12px;border:1px solid #58636b;border-radius:8px;background:linear-gradient(110deg,#293941,#13232c);min-height:72px}.atlas-restaurant>svg{width:56px;height:56px;flex-shrink:0}.atlas-restaurant>div{flex:1}.atlas-restaurant strong{display:block;font-size:19px;color:#d5dcd3}.atlas-restaurant span{font-size:12px;color:#8da3ad}.atlas-restaurant>b{font-size:24px;color:#789295}.atlas-restaurant.owned{border-color:#9eaf7e;background:linear-gradient(110deg,#405744,#182e2a)}.atlas-restaurant.owned span,.atlas-restaurant.owned>b{color:#cbe7b2}.atlas-restaurant.threat{border-color:#d58b61}.atlas-restaurant.threat span,.atlas-restaurant.lost span{color:#efa383}.atlas-tip{font-size:12px;color:#c5c7af;margin:8px 0}.atlas-fiction{font-size:10px;color:#82939c}
@media(max-height:520px){.occupation-tabs{padding:5px 8px;gap:6px}.occupation-tabs button{min-height:33px;padding:4px;font-size:12px}.tabbed-occupation .power-tab{gap:12px}.power-tab .occupation-rewards{min-height:0;flex:1;max-height:220px}.power-tab .occupation-reward{padding:10px;gap:7px}.power-tab .reward-emblem,.power-tab .reward-emblem svg{width:30px;height:30px}.power-tab .reward-emblem>b{top:4px;left:35px;font-size:15px}.power-tab .occupation-reward header strong{font-size:13px}.power-tab .occupation-reward p{font-size:11px;margin:8px 0;min-height:0}.power-tab .occupation-reward-copy>small{font-size:10px}.power-tab .occupation-prize{margin-top:10px}.occupation-atlas{gap:14px;grid-template-columns:minmax(0,1fr) minmax(220px,1fr)}.occupation-korea{padding:2px 0 13px}.atlas-heading{top:8px;left:8px;font-size:10px;max-width:65px}.atlas-heading small{font-size:8px}.atlas-compass{top:8px;right:8px;font-size:10px}.atlas-legend{font-size:8px;bottom:3px;gap:8px}.atlas-region-heading{padding:2px 0 5px}.atlas-region-heading h2{font-size:20px}.atlas-region-heading small{font-size:9px}.atlas-restaurants{gap:5px;padding:6px 0}.atlas-restaurant{min-height:42px;padding:4px 8px;gap:8px}.atlas-restaurant>svg{width:34px;height:34px}.atlas-restaurant strong{font-size:13px}.atlas-restaurant span{font-size:10px}.atlas-tip{font-size:10px;margin:3px 0}.atlas-fiction{font-size:8px}.allies-tab .ally-gallery-panel>header{padding:3px}.allies-tab .ally-gallery-panel h2{font-size:13px}.allies-tab .ally-gallery{padding:6px;gap:10px}.allies-tab .ally-card{flex-basis:160px}.allies-tab .ally-card canvas{max-height:none}.allies-tab .ally-card>strong{font-size:15px}.allies-tab .ally-card>div{padding:6px}.allies-tab .ally-rank{font-size:12px}}
.atlas-region-picker{display:block;min-width:130px;min-height:40px;background:#172c35;color:#f6dfab;border:1px solid #69786e;border-radius:5px;font:700 24px inherit;font-size:24px;margin-top:5px;padding:3px 10px;cursor:pointer}.atlas-region-picker:focus-visible{outline:2px solid #e9d3a3}.atlas-region-picker option{font-size:16px;background:#162731}
@media(max-height:520px){.atlas-region-picker{min-height:32px;min-width:100px;font-size:18px;margin-top:2px;padding:2px 6px}.atlas-heading{max-width:90px}}

/* Short landscape screens: keep workshop results and their action visible together. */
@media(max-height:420px){
 #overlay .workshop-dialog .dialog-body{padding:4px 12px;gap:3px}
 #overlay .workshop-dialog .workshop-art{width:48px;height:48px;margin:2px auto}
 #overlay .workshop-dialog .workshop-art>.gear-art{width:46px;height:46px}
 #overlay .workshop-dialog h2{font-size:15px;margin:4px 0}
 #overlay .workshop-dialog p{font-size:11px;line-height:1.35;margin:4px 0}
 #overlay .workshop-dialog .workshop-effects{font-size:11px;padding:4px;line-height:1.4}
 #overlay .workshop-dialog .dialog-footer{padding:6px 12px}
}
/* Basketball selection: stationary artwork, gold highlight and one diagonal sheen. */
.skill-confirming .skill-card{pointer-events:none;animation:none!important;transform:none!important;transition:opacity .2s;opacity:.24}
.skill-confirming .skill-card.skill-picked{position:relative;isolation:isolate;overflow:hidden;opacity:1;filter:none;border-color:#ffd75e;background:linear-gradient(#51472a,#28281e);box-shadow:0 0 26px #ffd75e88;z-index:2}
.skill-confirming .skill-card .skill-art canvas{animation:none!important;transform:translateX(-50%)!important}
.skill-confirming .rank-pips i{animation:none!important;transform:none!important}
.skill-confirming .skill-picked .skill-art{background:radial-gradient(ellipse at 50% 65%,#ffd75e20,transparent 75%),#302d20}
.skill-confirming .skill-picked .skill-body{background:transparent}
.skill-card:hover,.skill-card:focus-visible{transform:none}
.skill-confirming .skill-picked .card-top{background:#ffd75e18}
.skill-picked::after{content:'';position:absolute;inset:0;z-index:3;pointer-events:none;background:linear-gradient(105deg,transparent 32%,rgba(255,255,255,.5) 48%,transparent 62%);transform:translateX(-130%);animation:skill-selection-sheen .62s ease .14s forwards}
.skill-picked .skill-name strong{color:#fff0ba}
.skill-picked .take-skill{background:#ffd75e;color:#392b08}
@keyframes skill-selection-sheen{to{transform:translateX(130%)}}
@media(prefers-reduced-motion:reduce){.skill-confirming .skill-card{transition:none}.skill-picked::after{display:none;animation:none}}
/* The finished tasting has one clear primary action, without moving the button. */
.tasting-scene .tasting-next.reward-ready{isolation:isolate;overflow:hidden;background:linear-gradient(135deg,#ffe6a2,#d8ae58);border:2px solid #ffedba;color:#251d10;font-weight:900;text-shadow:none;box-shadow:0 0 0 2px #d0aa4e33,0 0 18px #efc56655;animation:tasting-reward-glow 2.4s ease-in-out infinite}
.tasting-next.reward-ready:after{content:'';position:absolute;inset:0;pointer-events:none;background:linear-gradient(105deg,transparent 30%,#ffffff80 48%,transparent 65%);transform:translateX(-130%);animation:tasting-reward-sheen 3.4s ease-in-out infinite}
.tasting-next.reward-ready:focus-visible{outline:3px solid #fff7dc;outline-offset:3px}
@keyframes tasting-reward-glow{0%,100%{box-shadow:0 0 0 2px #d0aa4e33,0 0 12px #efc56644}50%{box-shadow:0 0 0 2px #f5ce7866,0 0 24px #efc56688}}
@keyframes tasting-reward-sheen{0%,45%{transform:translateX(-130%)}75%,100%{transform:translateX(130%)}}
@media(prefers-reduced-motion:reduce){.tasting-next.reward-ready,.tasting-next.reward-ready:after{animation:none!important}.tasting-next.reward-ready:after{display:none}}

/* Materials stay next to their action, with compact rows on mobile. */
.material-summary{padding:7px 10px;border:1px solid #697a853b;border-radius:8px;background:#09121ccc;min-width:0;color:#dce5eb}
.material-summary>div{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.material-summary small{display:block;font-size:11px;color:#abbac6;line-height:1.4}
.material-summary b{display:block;font-size:14px;color:#f5e5b7;font-variant-numeric:tabular-nums}
.material-summary strong{margin-left:auto;font-size:12px;color:#e9b77e}
.material-summary.ready strong{color:#8ae1ae}
.material-icon{display:flex;width:38px;height:38px;flex:0 0 38px;border:1px solid #b6a78066;border-radius:6px;background:#202a35}
.material-icon svg{width:100%;height:100%}
.upgrade-materials svg{width:20px;height:20px;flex:0 0 20px}
.upgrade-materials span{font-size:11px}

/* Control selection uses the same stationary gold highlight and sheen as skills. */
#overlay.control-confirming .mode-options>button{position:relative;overflow:hidden;isolation:isolate;transform:none!important;animation:none!important;opacity:.24;transition:opacity .2s;pointer-events:none}
#overlay.control-confirming .mode-options>button.control-picked{opacity:1;border-color:#ffd75e;background:linear-gradient(#51472a,#28281e);box-shadow:0 0 26px #ffd75e88}
.control-picked::after{content:'';position:absolute;inset:0;z-index:3;pointer-events:none;background:linear-gradient(105deg,transparent 32%,rgba(255,255,255,.5) 48%,transparent 62%);transform:translateX(-130%);animation:skill-selection-sheen .62s ease .14s forwards}
#overlay.control-confirming .control-picked b{color:#fff0ba}
@media(prefers-reduced-motion:reduce){#overlay.control-confirming .mode-options>button{transition:none}.control-picked::after{display:none;animation:none}}

.territory-comparison{padding:5px 0;flex-shrink:0}.territory-comparison>small{font-size:10px;color:#b9c7d0}.territory-comparison>div:not(.territory-meter){display:flex;justify-content:space-between;font-size:12px;gap:8px}.territory-comparison b:first-child{color:#79d7ed}.territory-comparison b:last-child{color:#efa0ad}.territory-meter{height:7px;margin-top:4px;border-radius:4px;background:#a95160;overflow:hidden}.territory-meter i{display:block;height:100%;background:#369db6}.atlas-legend span:first-child{color:#79d7ed}.atlas-legend span:nth-child(2){color:#efa0ad}.atlas-region.selected path{stroke:#fff0b4;stroke-width:2.5}.atlas-restaurant.unknown,.atlas-restaurant.lost{border-color:#a95160}.atlas-restaurant.owned,.atlas-restaurant.threat{border-color:#369db6}

.weapon-production{flex-shrink:0;border:1px solid #a58e55;border-radius:7px;background:#28291e;padding:7px 9px}.weapon-production header{display:flex;justify-content:space-between;font-size:13px;color:#ffe0a0}.weapon-production small{font-size:10px;color:#d0c6ad}.production-track{height:8px;border-radius:4px;background:#121b22;overflow:hidden;margin:5px 0}.production-track i{height:100%;display:block;background:linear-gradient(90deg,#b78637,#ffe09b)}

.territory-production{display:grid;grid-template-columns:1fr 1fr;gap:6px;flex-shrink:0}.territory-production .weapon-production{min-width:0;padding:5px}.territory-production header{font-size:11px;gap:4px}.territory-production small{font-size:9px}.route-body .screen-tabs{overflow-x:auto;flex-wrap:nowrap}.route-body .screen-tabs button{flex:0 0 auto}

.atlas-restaurant .restaurant-production{display:block;font-size:10px;line-height:1.4;color:#e5c788;margin-top:3px}.atlas-restaurant .restaurant-production.ready{color:#91e4bb}.case-loot-item.manufactured-loot{position:relative;overflow:hidden;border:1px solid #e8bd68;background:linear-gradient(120deg,#514326,#202d31);box-shadow:inset 0 0 16px #f5cc6622}.manufactured-loot>.gear-art{filter:drop-shadow(0 0 7px #ffd67566)}.case-loot-item .manufacture-source{color:#f8d58b;font-size:11px;margin-bottom:4px}.manufactured-loot:after{content:'';position:absolute;inset:0;pointer-events:none;background:linear-gradient(105deg,transparent 32%,#ffffff55 48%,transparent 62%);transform:translateX(-130%);animation:skill-selection-sheen .7s ease .2s forwards}@media(prefers-reduced-motion:reduce){.manufactured-loot:after{display:none}}

.atlas-visual .atlas-region path{fill:#263a4a;stroke:#63788c;stroke-width:.7}.atlas-visual .atlas-region.selected path{fill:#345465;stroke:#b1d7df;stroke-width:1.4}.restaurant-map-pin{cursor:pointer;opacity:.8}.restaurant-map-pin.active{opacity:1}.restaurant-map-pin:focus-visible circle{stroke:#fff;stroke-width:3}.atlas-visual .occupation-korea{padding:20px 5px 25px}.atlas-visual .atlas-name{font-size:8px;fill:#c3d1dd}.atlas-visual .atlas-restaurant{background:#162733;border-color:#df879355}.atlas-visual .atlas-restaurant.owned,.atlas-visual .atlas-restaurant.threat{border-color:#64d7de77;background:#163039}.atlas-resource-numbers{display:flex;gap:16px;margin-top:6px}.atlas-resource-numbers span{display:flex;align-items:center;gap:5px;color:#e8d7a3;font-size:12px}.atlas-resource-numbers svg{width:17px;height:17px}.atlas-restaurant button{width:38px;height:38px;padding:8px;flex-shrink:0}.atlas-restaurant button svg{width:20px;height:20px}.atlas-legend .legend-production{color:#8ce2bc}.atlas-legend .legend-tribute{color:#efc568}

.map-pin-detail{position:absolute;bottom:35px;left:10px;right:10px;display:flex;justify-content:center;align-items:center;gap:10px;flex-wrap:wrap;padding:9px;background:#0d1c2ff2;border:1px solid #9db6c5;border-radius:9px;box-shadow:0 5px 18px #0009;z-index:4;font-size:11px;color:#e9dab0;pointer-events:none}.map-pin-detail[hidden]{display:none}.map-pin-detail strong{color:#fff;font-size:13px}.map-pin-detail span{display:flex;align-items:center;gap:4px}.map-pin-detail svg{width:16px;height:16px}

.control-intro-copy{margin:4px 16px 0;text-align:center;color:#d6c8a9;font-size:12px;line-height:1.5;flex-shrink:0}
/* Loot showcase: compact landscape composition, shared resource symbols. */
#overlay .loot-showcase.item-single{width:min(440px,96%);border:1px solid #8f85ad;border-radius:18px;background:radial-gradient(ellipse at 40% 15%,#513c6580,transparent 55%),#191d2e;box-shadow:0 20px 80px #000b,inset 0 1px #ffffff1c;color:#edf0f6}
#overlay .loot-showcase .item-dialog-scroll{padding:12px 18px;gap:10px}
#overlay .loot-showcase .item-hero{display:flex;flex-direction:column;text-align:center;background:radial-gradient(ellipse,#a87de92e,transparent 68%)}
#overlay .loot-showcase .item-hero>.gear-art{width:112px;height:112px;filter:drop-shadow(0 8px 10px #0008)}
#overlay .loot-showcase h2{font-size:22px;margin:4px 0;color:#fff}
#overlay .loot-showcase .item-hero b{font-size:11px;color:#e5c98e}
#overlay .loot-showcase .item-effects{background:#11142666;border:1px solid #a18bb529;border-radius:10px;padding:8px 10px;margin:8px 0}
#overlay .loot-showcase .item-effects p{font-size:12px;line-height:1.45;margin:3px 0;color:#e8dfc6}
#overlay .loot-showcase .set-description{font-size:11px;line-height:1.4;padding:4px 0}
#overlay .loot-showcase .next-upgrade{font-size:11px;line-height:1.5;margin:6px 0;color:#b9c5d8}
#overlay .loot-showcase .next-upgrade b{color:#a9dfca}
#overlay .loot-showcase .gear-buttons button{border-radius:8px;background:#3b4564;border:1px solid #8c96b0;color:#f3f4fa;font-weight:800;min-height:40px}
#overlay .loot-showcase .gear-buttons .primary{background:linear-gradient(#eddda4,#b79a59);color:#241e15;border-color:#f3dc98;box-shadow:inset 0 -3px #705a3040}
#overlay .loot-showcase .material-summary{padding:5px 8px;background:#10152666;border-color:#8186a52b}
#overlay .loot-showcase .material-summary small{font-size:10px;line-height:1.3}
#overlay .loot-showcase .material-summary strong{font-size:10px}
.resource-cost{display:inline-flex;align-items:center;gap:5px;white-space:nowrap}
.resource-cost svg,.workshop-cost svg{width:22px;height:22px;flex-shrink:0}
.material-summary .resource-cost b{font-size:13px;color:#ebd49b}
.material-summary .resource-cost.insufficient b{color:#ffaaa4}
.workshop-cost b{display:inline-flex;align-items:center;gap:6px}
#overlay .loot-showcase .item-footer-note{font-size:10px;margin:0;padding:7px;color:#adb2c7}
@media (orientation:landscape) and (max-height:600px){
 #overlay .loot-showcase.item-single{width:min(760px,calc(100vw - 24px));height:calc(100dvh - 24px);max-height:calc(100dvh - 24px)}
 #overlay .loot-showcase .item-dialog-top{flex:0 0 36px;box-sizing:border-box;padding:3px 12px}
 #overlay .loot-showcase .item-dialog-scroll{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);flex:1;min-height:0;overflow:visible;padding:6px 14px;gap:16px}
 #overlay .loot-showcase .item-details,#overlay .loot-showcase .gear-buttons{min-height:0;overflow:visible}
 #overlay .loot-showcase .item-hero{flex-direction:row;text-align:left;gap:10px}
 #overlay .loot-showcase .item-hero>.gear-art{width:76px;height:76px;flex-shrink:0}
 #overlay .loot-showcase h2{font-size:18px}
 #overlay .loot-showcase .gear-buttons{display:flex;flex-direction:column;justify-content:center;gap:5px}
 #overlay .loot-showcase .gear-buttons button{min-height:36px;padding:6px;font-size:12px}
 #overlay .loot-showcase .item-effects{margin:5px 0;padding:5px 8px}
 #overlay .loot-showcase .material-summary>div{gap:7px;flex-wrap:nowrap}
 #overlay .loot-showcase .material-icon{width:27px;height:27px;flex-shrink:0}
 #overlay .loot-showcase .material-summary b{font-size:12px}
 #overlay .loot-showcase .item-footer-note{padding:3px;font-size:9px}
}
@media (orientation:landscape) and (max-height:360px){
 #overlay .loot-showcase .item-hero>.gear-art{width:58px;height:58px}
 #overlay .loot-showcase .item-effects p{font-size:10px}
 #overlay .loot-showcase .gear-buttons{gap:3px}
 #overlay .loot-showcase .gear-buttons button{min-height:32px;padding:4px}
 #overlay .loot-showcase .material-summary{padding:3px 6px}
 #overlay .loot-showcase .set-description,#overlay .loot-showcase .next-upgrade{font-size:10px;margin:3px 0}
}
/* Approved B hierarchy: full-width equip, then cost / action pairs. */
#overlay .loot-showcase .loot-action-row{display:grid;grid-template-columns:minmax(0,1fr) 112px;gap:8px;align-items:center;border-top:1px solid #ffffff15;padding:7px 0}
#overlay .loot-showcase .loot-action-row .material-summary{background:none;border:0;padding:0}
#overlay .loot-showcase .loot-action-row .upgrade-materials>div{flex-wrap:wrap;gap:5px 12px}
#overlay .loot-showcase .loot-action-row .material-summary>small:last-child:not(:first-child){display:none}
#overlay .loot-showcase .loot-action-row .material-summary strong{margin-left:0}
#overlay .loot-showcase .loot-action-row .material-summary>div{flex-wrap:wrap}
#overlay .loot-showcase .gear-buttons>.next-upgrade{margin:4px 0 0}
#overlay .loot-workshop{box-sizing:border-box;width:min(460px,96vw);max-height:calc(100dvh - 24px);padding:16px;border:1px solid #9181ac;border-radius:18px;background:radial-gradient(ellipse at 35% 25%,#513d70,#191e30 70%);box-shadow:0 20px 80px #000b;color:#e9e9f3;overflow:visible}
#overlay .loot-workshop .dialog-header{padding:0 0 10px;margin:0;border-color:#b3a1d331}
#overlay .loot-workshop .dialog-header h1{font-size:22px;color:#f2dfae}
#overlay .loot-workshop .dialog-body{padding:12px 0;overflow:visible;min-height:0}
#overlay .loot-workshop .dialog-footer{padding:10px 0 0;margin:0;flex-wrap:nowrap;border-color:#b3a1d331;gap:10px}
#overlay .loot-workshop .dialog-footer button{flex:1;min-width:0;width:auto;min-height:40px;border:1px solid #8993ad;border-radius:8px;background:#394560;color:#f1f3fc;font-weight:800}
#overlay .loot-workshop .dialog-footer .primary{background:linear-gradient(#efdaa0,#bc9a58);border-color:#efd79b;color:#282012;box-shadow:inset 0 -3px #705a3040}
#overlay .loot-workshop .workshop-cost,#overlay .loot-workshop .workshop-effects{background:#11172a70;border:1px solid #a58dc33b;border-radius:10px;padding:10px;line-height:1.5}
#overlay .loot-workshop .workshop-info h2{font-size:20px;margin:8px 0}
#overlay .loot-workshop p{font-size:12px;line-height:1.5;margin:8px 0;color:#c7c9dd}
#overlay .loot-workshop .workshop-chance{color:#e7cc91}
#overlay .loot-workshop .workshop-art{width:140px;height:140px;margin:4px auto}
#overlay .loot-workshop .workshop-art>.gear-art{width:120px;height:120px;position:relative;z-index:2;filter:drop-shadow(0 8px 12px #0009)}
.reward-flare,.reward-sparks{pointer-events:none;position:absolute;inset:0;opacity:0}
.workshop-success .reward-flare{border-radius:50%;background:radial-gradient(#fff4bd99,transparent 65%);animation:reward-flare .8s ease-out both}
.workshop-success .reward-sparks{opacity:1}
.reward-sparks i{position:absolute;left:50%;top:50%;width:4px;height:9px;border-radius:2px;background:#ffe4a1;opacity:0}
.workshop-success .reward-sparks i{animation:reward-spark 1s .1s ease-out both;transform:rotate(calc(var(--n)*30deg))}
.workshop-success .workshop-rays{background:repeating-conic-gradient(#edca7344 0deg 7deg,transparent 7deg 30deg)}
.workshop-success .workshop-art>.gear-art{animation:reward-item .55s cubic-bezier(.2,.8,.3,1) both}
.workshop-failure .workshop-rays{opacity:.15;animation:none}
.workshop-failure .workshop-art{filter:saturate(.55)}
@keyframes reward-item{from{opacity:0;filter:brightness(2) drop-shadow(0 0 24px #ffe5a8)}to{opacity:1;filter:brightness(1) drop-shadow(0 8px 12px #0009)}}
@keyframes reward-flare{0%{opacity:0;transform:scale(.5)}30%{opacity:1}100%{opacity:0;transform:scale(1.7)}}
@keyframes reward-spark{0%{opacity:0;transform:rotate(calc(var(--n)*30deg)) translateY(-25px)}20%{opacity:1}100%{opacity:0;transform:rotate(calc(var(--n)*30deg)) translateY(-95px)}}
@media(orientation:landscape) and (max-height:600px){
 #overlay .loot-showcase .loot-action-row{grid-template-columns:minmax(0,1fr) 105px;padding:4px 0;gap:5px}
 #overlay .loot-showcase .loot-action-row .material-summary small{font-size:9px}
 #overlay .loot-showcase .gear-buttons{justify-content:center;gap:4px}
 #overlay .loot-workshop{width:min(650px,calc(100vw - 24px));max-height:calc(100dvh - 24px);padding:12px 16px}
 #overlay .loot-workshop .dialog-header{padding-bottom:6px}
 #overlay .loot-workshop .dialog-header h1{font-size:19px;margin:3px 0 0}
 #overlay .loot-workshop .dialog-body:has(>.workshop-info){display:grid;grid-template-columns:34% minmax(0,1fr);gap:14px;align-items:center;padding:8px 0}
 #overlay .loot-workshop .workshop-art{width:110px;height:110px}
 #overlay .loot-workshop .workshop-art>.gear-art{width:100px;height:100px}
 #overlay .loot-workshop .workshop-info h2{font-size:17px;margin:3px 0}
 #overlay .loot-workshop p{font-size:11px;margin:5px 0}
 #overlay .loot-workshop .workshop-cost,#overlay .loot-workshop .workshop-effects{padding:6px;font-size:12px}
 #overlay .loot-workshop .dialog-footer{padding-top:7px}
 #overlay .loot-workshop.workshop-busy .workshop-art{width:82px;height:82px}
 #overlay .loot-workshop.workshop-busy .workshop-art>.gear-art{width:76px;height:76px}
}
@media(prefers-reduced-motion:reduce){.workshop-success .reward-flare,.workshop-success .reward-sparks i,.workshop-success .workshop-art>.gear-art,.workshop-rays{animation:none!important}.workshop-success .reward-flare{opacity:.3}}
/* Deep red is limited to item details and workshop dialogs. */
#overlay .red-loadout .dialog-back{background:#232126;border:1px solid #55515a;color:#ece9ed;border-radius:3px}
#overlay .red-loadout button.primary,#overlay .loot-workshop .dialog-footer .primary{background:#9c0e19;border:1px solid #d12c36;border-bottom:3px solid #49040b;color:#fff0f1;border-radius:3px;box-shadow:inset 0 1px #ff697633}
#overlay .red-loadout button:focus-visible,#overlay .loot-workshop button:focus-visible{outline:2px solid #f1c8cb;outline-offset:2px}
#overlay .loot-workshop .dialog-header{border-bottom-color:#562029}
#overlay .loot-workshop{background:linear-gradient(125deg,#340a12,#0d0d10 55%);border-color:#70232e;border-radius:3px}
#overlay .loot-workshop .dialog-header h1{color:#fff0f1}
#overlay .loot-workshop .workshop-cost,#overlay .loot-workshop .workshop-effects{background:#1e1b22;border-color:#63313b;border-radius:3px;color:#f0e8ed;font-size:15px}
#overlay .loot-workshop .dialog-footer button{border-radius:3px;background:#29252d;color:#efedf1}
#overlay .loot-workshop p{font-size:14px;color:#c8c2cc}
#overlay .loot-workshop .workshop-cost{font-size:20px}#overlay .loot-workshop .workshop-cost svg{width:25px;height:25px}
#overlay .red-loadout.item-single{width:min(800px,calc(100vw - 24px));height:min(350px,calc(100dvh - 24px));max-height:calc(100dvh - 24px);background:#0d0d10;border:2px solid #67202a;border-radius:2px;display:flex;flex-direction:column;overflow:hidden}
#overlay .red-loadout .item-dialog-top{display:flex;align-items:center;gap:10px;padding:5px 10px;flex:0 0 44px;border-bottom:1px solid #61131e;background:#060608}
#overlay .red-loadout h2{font-size:20px;margin:0;color:#f1edf0;line-height:1.2}
#overlay .red-loadout h2 em{font-style:normal;color:#f1ce87}
#overlay .red-loadout .item-dialog-top>span{margin-left:auto;font-size:13px;color:#d0b0e5}
.red-loadout-body{display:grid;grid-template-columns:36% minmax(0,1fr);flex:1;min-height:0}
.red-weapon{position:relative;display:grid;place-items:center;background:linear-gradient(120deg,#780912 0 72%,#180407 72% 75%,#0d0d10 75%);overflow:hidden}
.red-weapon:after{content:'';position:absolute;inset:0;background:linear-gradient(0deg,#0009,transparent 70%);pointer-events:none}
.red-weapon>.gear-art{width:88%;height:85%;max-height:230px;z-index:1;transform:rotate(-10deg);filter:drop-shadow(5px 9px 4px #0008)}
.weapon-number{position:absolute;left:5px;top:-15px;font-size:170px;font-weight:900;color:#16020566}
.red-weapon>small{position:absolute;bottom:14px;left:12px;border:1px solid #ba4c56;padding:4px 10px;color:#f2d1d5;font-size:12px;z-index:2;transform:rotate(-5deg)}
.red-loadout-info{padding:12px;display:flex;flex-direction:column;min-height:0;gap:7px}
.red-stat-list{display:flex;flex-wrap:wrap;gap:5px 18px;border-bottom:1px solid #48252d;padding-bottom:7px}
.red-stat-list p{font-size:18px;font-weight:800;color:#f2eded;margin:0;line-height:1.3}
.red-trait,.red-set{font-size:13px;line-height:1.4;color:#cac2cb;margin:0}
.red-action-grid{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:auto}
.red-action-cell{background:#222126;border:1px solid #53444b;display:flex;flex-direction:column;min-width:0}
#overlay .red-action-cell button{border:0;border-top:1px solid #55414a;border-radius:0;background:#30252d;color:#f3eff2;min-width:0;width:100%;min-height:36px;font-size:15px;padding:6px}
#overlay .red-action-grid>.primary{grid-column:1/-1;min-height:40px;width:100%;font-size:16px;margin:0}
#overlay .red-loadout .material-summary{background:none;border:0;padding:5px 7px;margin:0;border-radius:0;flex:1}
#overlay .red-loadout .material-summary small{font-size:12px;color:#c4bcc8;line-height:1.3}
#overlay .red-loadout .material-summary>small:last-child:not(:first-child){display:none}
#overlay .red-loadout .material-summary>div{gap:5px;flex-wrap:wrap}
#overlay .red-loadout .material-summary b{font-size:18px;color:#f0d99d;line-height:1.3}
#overlay .red-loadout .material-summary strong{font-size:15px;color:#e3b8b6;margin:0}
#overlay .red-loadout .material-icon{width:27px;height:27px}
#overlay .red-loadout .resource-cost svg{width:23px;height:23px}
#overlay .red-loadout button.resource-blocked{background:#22262a;color:#8e959d;border-color:#42474e;box-shadow:none;cursor:pointer}
.red-apply-note{font-size:11px;color:#b7afbb;margin:0;line-height:1.2}
@media(orientation:landscape) and (max-height:450px){
 #overlay .red-loadout.item-single{height:calc(100dvh - 16px);max-height:calc(100dvh - 16px);width:calc(100vw - 20px)}
 #overlay .red-loadout .item-dialog-top{flex-basis:38px;padding:3px 8px}#overlay .red-loadout h2{font-size:17px}
 .red-loadout-body{grid-template-columns:28% minmax(0,1fr)}.red-loadout-info{padding:7px 9px;gap:4px}
 .red-stat-list p{font-size:16px}.red-trait,.red-set{font-size:12px}.red-stat-list{padding-bottom:4px}
 #overlay .red-loadout .material-summary{padding:4px 6px}#overlay .red-loadout .material-summary small{font-size:11px}
 #overlay .red-loadout .material-summary b{font-size:18px}#overlay .red-loadout .material-summary strong{font-size:14px}
 #overlay .red-action-cell button{min-height:32px;font-size:14px}#overlay .red-action-grid>.primary{min-height:35px;font-size:15px}
 #overlay .loot-workshop .dialog-header h1{font-size:19px}#overlay .loot-workshop p{font-size:13px;line-height:1.4}
 #overlay .loot-workshop .workshop-effects{font-size:13px}#overlay .loot-workshop .workshop-cost{font-size:19px}
}
/* Prominent gold stats; retain original equipped label. */
#overlay .loadout-stats{gap:8px}
#overlay .loadout-stats>span{background:linear-gradient(#e8cd91,#c3a363);border:1px solid #f1dca7;border-radius:6px;padding:7px 10px;color:#292319;flex:1}
#overlay .loadout-stats small{font-size:13px;color:#423623}
#overlay .loadout-stats b{font-size:26px;color:#211e18;line-height:1.1}
#overlay .loadout-stats svg{width:24px;height:24px;color:#413220}
#overlay .item-tile:has(.equipped-ribbon),#overlay .worn-tile{border:2px solid #d3b575;box-shadow:inset 0 0 12px #d4aa4933,0 0 0 1px #70592d;background:linear-gradient(145deg,#3c3b2d,#18242c)}
@media(max-height:500px){#overlay .loadout-stats>span{padding:4px 6px}#overlay .loadout-stats b{font-size:20px}#overlay .loadout-stats small{font-size:11px}#overlay .loadout-stats svg{width:18px;height:18px}}
.hero-ovr{display:inline-flex;align-items:baseline;gap:4px;margin-left:8px;padding:3px 7px;border:1px solid #c8a769;background:#352d1e;color:#ebcf92;font-size:11px;border-radius:4px;white-space:nowrap}
.hero-ovr strong{font-size:20px;color:#ffe4aa;font-variant-numeric:tabular-nums}
#overlay .worn-tile .tile-top b{font-size:11px;color:#ffe0a0;white-space:nowrap}
@media(max-height:500px){.hero-ovr{padding:2px 5px;margin-left:5px;font-size:10px}.hero-ovr strong{font-size:16px}#overlay .worn-tile .tile-top b{font-size:9px}}
/* Pause: calm status, clear controls, a single resume action. */
#overlay .pause-simple{width:min(660px,calc(100vw - 24px));padding:18px 22px;background:linear-gradient(145deg,#1c2833,#101820);border:1px solid #83929a;border-radius:12px}
#overlay .pause-simple .dialog-header{margin-bottom:8px;padding-bottom:10px}
#overlay .pause-simple .dialog-header h1{font-size:24px}
.pause-status{display:flex;justify-content:space-between;gap:12px;color:#b5c2c9;font-size:13px;padding:2px 0 12px}.pause-status b{color:#ead5a6}
#overlay .pause-simple .pause-simple-actions{display:flex;gap:12px;padding:0;overflow:visible}
#overlay .pause-simple-actions>button{flex:1;min-width:0;height:110px;border:1px solid #576b79;border-radius:8px;background:linear-gradient(#2a3b49,#1c2934);box-shadow:inset 0 1px #ffffff13;gap:10px;font-size:16px}
#overlay .pause-simple-actions>button>svg{width:42px;height:42px}
.pause-resume{padding-top:14px;display:flex;justify-content:center}
#overlay .pause-resume button{width:100%;min-height:44px;border:1px solid #efd59a;background:linear-gradient(#e6cd94,#bea064);color:#211f19;border-radius:7px;font-size:17px;font-weight:800}
@media(orientation:landscape) and (max-height:400px){#overlay .pause-simple{padding:12px 16px;max-height:calc(100dvh - 20px)}#overlay .pause-simple .dialog-header h1{font-size:21px}#overlay .pause-simple .dialog-header{padding-bottom:6px;margin-bottom:5px}.pause-status{padding-bottom:8px;font-size:12px}#overlay .pause-simple-actions>button{height:88px;font-size:15px;gap:6px}#overlay .pause-simple-actions>button>svg{width:34px;height:34px}.pause-resume{padding-top:10px}}
/* Pause footer must not inherit the non-interactive combat HUD footer. */
#overlay .pause-resume{position:static;inset:auto;transform:none;width:100%;pointer-events:auto;flex-shrink:0}
#overlay .pause-resume button{pointer-events:auto;touch-action:manipulation}
/* Three independent territory columns: map, balances, restaurant directory. */
#overlay .atlas-three{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr) minmax(0,1fr);gap:12px;min-height:0;height:100%;overflow:hidden}
.atlas-three .atlas-paper{min-width:0;min-height:0;overflow:hidden;position:relative}
.atlas-viewport{position:absolute;inset:28px 0 42px;overflow:auto;overscroll-behavior:contain;touch-action:pan-x pan-y}
.atlas-three .occupation-korea{width:100%;height:100%;max-width:none;max-height:none;padding:2px;display:block}
.atlas-zoom{position:absolute;bottom:8px;left:0;right:0;display:flex;justify-content:center;gap:4px;z-index:3}
.atlas-zoom button{min-height:30px;min-width:30px;padding:3px 8px;background:#1b2c38;border:1px solid #738895;font-size:14px;color:#eee5ce}
.atlas-three .atlas-legend{display:none}
.atlas-balances{overflow-y:auto;min-height:0;min-width:0;overscroll-behavior:contain;touch-action:pan-y;padding-right:5px}
.atlas-three h2{font-size:15px;margin:0 0 9px;color:#e6d7ad}
.atlas-three .atlas-detail{display:flex;flex-direction:column;min-height:0;min-width:0;overflow:hidden}
.atlas-three .atlas-restaurants{overflow-y:auto;flex:1;min-height:0;padding:0 3px 8px 0;overscroll-behavior:contain;touch-action:pan-y;gap:7px}
.atlas-three .atlas-restaurant{flex-shrink:0;min-height:55px;padding:7px;gap:7px}
.atlas-three .atlas-restaurant>svg{width:30px;height:30px}
.atlas-three .atlas-restaurant strong{font-size:14px}.atlas-three .atlas-resource-numbers span{font-size:12px}
.atlas-three .territory-comparison{margin:0 0 10px}.atlas-three .territory-comparison small{font-size:12px}
.atlas-three .atlas-fiction{display:none}
@media(max-height:500px){#overlay .atlas-three{gap:8px;grid-template-columns:minmax(0,1fr) minmax(0,.8fr) minmax(0,1fr)}.atlas-three h2{font-size:13px;margin-bottom:6px}.atlas-three .atlas-restaurant{min-height:48px;padding:5px}.atlas-three .atlas-restaurant>svg{width:24px;height:24px}.atlas-three .atlas-restaurant strong{font-size:13px}.atlas-three .atlas-heading{font-size:11px}.atlas-viewport{inset:24px 0 40px}}
.atlas-three .atlas-restaurant.map-highlight{border-color:#f0ca79;background:linear-gradient(110deg,#51432c,#273238);box-shadow:inset 3px 0 #f6d68f,0 0 10px #edbd5733;outline:none}
.restaurant-map-pin.pin-selected circle{stroke:#ffe7a3;stroke-width:2}
.atlas-three .atlas-resource-numbers{display:flex;align-items:center;gap:12px;margin-top:5px}
.atlas-three .atlas-resource-numbers>span{display:inline-flex;align-items:center;gap:4px;background:#0b1520a8;border-radius:4px;padding:3px 5px;color:#eddbb1}
.atlas-three .atlas-resource-numbers svg{width:25px;height:25px;flex-shrink:0}
.atlas-three .atlas-resource-numbers b{font-size:17px;line-height:1;font-variant-numeric:tabular-nums;color:#f6d995}
.atlas-three .atlas-resource-numbers small{font-size:11px;color:#bec9cb}
@media(max-height:500px){.atlas-three .atlas-resource-numbers{gap:6px;margin-top:3px}.atlas-three .atlas-resource-numbers>span{padding:2px 4px}.atlas-three .atlas-resource-numbers svg{width:22px;height:22px}.atlas-three .atlas-resource-numbers b{font-size:16px}.atlas-three .atlas-restaurant{min-height:64px}}
/* Gesture surface only: list scrolling and page controls remain independent. */
.atlas-viewport{touch-action:none;cursor:grab}
.atlas-viewport:active{cursor:grabbing}

#arena:has(#overlay:not([hidden])) #manual-attack,
body:has(dialog[open]) #manual-attack{display:none!important;pointer-events:none}
#clear-reward-dialog{padding:0;color:#fff5d5;background:linear-gradient(150deg,#322b24,#121922 65%);border:1px solid #cdaa62;border-radius:14px;width:min(390px,86vw);box-shadow:0 8px 46px #000b;text-align:center}
#clear-reward-dialog::backdrop{background:#06090de8}
#clear-reward-dialog article{padding:clamp(8px,3vh,22px) 16px;display:grid;justify-items:center;gap:clamp(3px,1.3vh,10px)}
#clear-reward-dialog small{color:#f2c97d;font-weight:800;letter-spacing:.12em}
#clear-reward-dialog h2,#clear-reward-dialog p{margin:0}
#clear-reward-dialog h2{font-size:clamp(20px,6vh,34px)}
#clear-reward-dialog p{font-size:14px;color:#e7d7ba}
#clear-reward-dialog button{min-width:145px;min-height:40px}
.clear-prize{position:relative;width:clamp(64px,26vh,124px);aspect-ratio:1;display:grid;place-items:center;isolation:isolate}
.clear-prize>svg{width:70%;height:70%;filter:drop-shadow(0 0 9px #ffc55380);animation:clear-prize-pop .52s both}
.clear-prize i{position:absolute;inset:-10%;z-index:-1;background:repeating-conic-gradient(#ffd37d70 0deg 5deg,transparent 7deg 30deg);mask-image:radial-gradient(#000 10%,transparent 69%);animation:clear-prize-rays .8s ease-out both}
@keyframes clear-prize-pop{0%{opacity:0;transform:scale(.55)}65%{transform:scale(1.14)}100%{opacity:1;transform:scale(1)}}
@keyframes clear-prize-rays{from{opacity:0;transform:rotate(-25deg) scale(.65)}45%{opacity:1}to{opacity:.65;transform:rotate(10deg)}}
@media(prefers-reduced-motion:reduce){.clear-prize>svg,.clear-prize i{animation:none}}

#clear-reward-dialog button{border:1px solid #e1b95f;border-radius:8px;background:#f0c770;color:#231b12;font-weight:800;cursor:pointer}
