@font-face{font-family:GameSerif;src:local('Georgia')}*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden;background:#14221f;color:#eee9d8;font:14px/1.5 'Segoe UI',Tahoma,sans-serif}button,input,select{font:inherit}button{color:#e7e2d4;border:1px solid #64736766;background:#24342fe8;padding:9px 15px;border-radius:5px;cursor:pointer;transition:background .15s,border-color .15s}button:hover{background:#3a4d40;border-color:#c3a268}button:disabled{opacity:.45;cursor:default}.gold{background:#bd9757;color:#17231d;border-color:#ddbd82;font-weight:700}.gold:hover{background:#d1b078}button.danger{color:#f6b4a0}input,select{background:#111f1c;color:#eee9d8;border:1px solid #66766a77;padding:11px;border-radius:4px;max-width:100%}input:focus,button:focus-visible,select:focus{outline:2px solid #d9b771;outline-offset:2px}h1,h2,h3,p{margin-top:0}h1,h2,h3{font-family:Georgia,'Times New Roman',serif;font-weight:400}h2{font-size:27px;margin-bottom:7px}h3{font-size:20px;margin-bottom:10px}p{color:#bec9bc}.muted{color:#a8b8aa}.eyebrow{font-size:10px;letter-spacing:2.3px;color:#c5b284;font-weight:600}.rule{height:1px;background:linear-gradient(90deg,transparent,#b89a5c80,transparent);margin:24px 0}.panel{background:linear-gradient(140deg,#24342ff5,#15251ff7);border:1px solid #a48e5c66;border-radius:8px;box-shadow:0 14px 50px #07130e55}.veil{position:fixed;inset:0;background:#07140f88;backdrop-filter:blur(5px);display:flex;align-items:center;justify-content:center;z-index:30;padding:24px}[hidden]{display:none!important}#game,#world,#labels{position:absolute;inset:0;width:100%;height:100%}#world{touch-action:none}#labels{pointer-events:none;overflow:hidden}#loading{position:absolute;top:45%;width:100%;text-align:center;color:#ead6a8;z-index:35;pointer-events:none}.auth{width:420px;padding:36px 38px;text-align:center}.auth .sigil{font-size:52px;color:#d1b679;line-height:1.2;margin:14px}.auth h1{font-size:41px;letter-spacing:5px;margin-bottom:8px}.auth p{font-size:13px}.auth label{display:block;text-align:left;letter-spacing:1.4px;font-size:10px;color:#b3bfae;margin:14px 0}.auth input{display:block;width:100%;margin-top:6px;letter-spacing:normal}.auth-actions{display:grid;gap:9px;margin-top:23px}.auth small{color:#7d9485;font-size:9px;letter-spacing:1.3px}#auth-error{color:#ffb19c;min-height:20px;margin:14px 0}#hud{position:absolute;inset:0;pointer-events:none}#hud button,#hud nav{pointer-events:auto}header{display:flex;align-items:center;gap:18px;padding:14px 24px;background:linear-gradient(#11221df2,#11221d99,transparent);min-height:78px}.brand{color:#ddc486;font-family:Georgia,serif;font-size:24px;white-space:nowrap}.brand span{font-size:17px;letter-spacing:2px}.brand small{display:block;font:8px 'Segoe UI',sans-serif;letter-spacing:2.5px;color:#91a28e;margin-left:27px}nav{display:flex;gap:5px;margin:auto}nav button{background:#1c2d2480;padding:8px 12px;font-size:12px;border-color:#71816b40}kbd{font-size:9px;color:#9caa95;margin-left:3px}.wallet{white-space:nowrap;color:#e4c477;font-size:20px}.wallet span{font-size:9px;letter-spacing:2px;color:#bbc1a8}.location{position:absolute;left:27px;top:103px;text-shadow:0 2px 8px #001a0c}.location h2{font-size:29px;margin:5px 0}.location p{font-size:12px;max-width:340px;color:#e1e4d1}.minimap-wrap{position:absolute;right:24px;top:101px;width:158px;text-align:center}#minimap{width:150px;height:150px;border-radius:50%;border:3px solid #ad9966;box-shadow:0 4px 18px #06140e99;background:#334637}.minimap-wrap span{display:block;font-size:9px;color:#d5d5bc;margin-top:5px;letter-spacing:1px}footer{position:absolute;bottom:22px;left:25px;right:25px;display:flex;align-items:flex-end;gap:24px;justify-content:space-between}.vitals{padding:13px 16px;width:265px;background:#15261eea}.hero-line{display:flex;justify-content:space-between;margin-bottom:9px;font-size:12px}#build-label{font-size:8px;color:#a9ac8a;padding-top:3px}.bar{height:15px;background:#0c1717;margin:5px 0;position:relative;border-radius:3px;overflow:hidden;border:1px solid #8b9c7144}.bar i{position:absolute;inset:0 auto 0 0;transition:width .15s;background:linear-gradient(90deg,#376f52,#78a270)}.bar span{position:relative;display:block;text-align:center;font-size:9px;line-height:13px;text-shadow:0 1px 3px #000}.bar.mp i{background:linear-gradient(90deg,#285174,#70a6bf)}#skills{display:flex;gap:10px;pointer-events:auto}.skill{width:92px;height:94px;position:relative;padding:8px 4px;background:linear-gradient(#35473a,#182b23);border:1px solid #9c936875;box-shadow:0 4px 16px #06160e66;user-select:none;touch-action:none}.skill .glyph{display:block;font-size:30px;color:#e5c280;line-height:36px;text-shadow:0 2px 9px #f8cc4e33}.skill .skill-name{display:block;font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.skill .key{position:absolute;left:6px;top:3px;font-size:10px;color:#bfc7ab}.skill .cost{font-size:9px;color:#9ec2d0}.skill .cooldown{position:absolute;inset:0;background:#08170db8;display:flex;align-items:center;justify-content:center;font-size:26px;color:#eee7c8;pointer-events:none}.skill.auto{border:2px solid #edcf79;box-shadow:0 0 17px #e5bf4155}.skill.auto:after{content:'AUTO';position:absolute;top:-19px;left:0;right:0;font-size:9px;color:#f2d47c;letter-spacing:1px}.control-note{font-size:10px;color:#d9dac3;text-align:right;text-shadow:0 1px 5px #001a0c}.control-note span{font-size:9px;color:#b3bda9}#toast{position:absolute;left:50%;bottom:143px;transform:translateX(-50%);background:#14251fe8;border:1px solid #b19a5d66;border-radius:5px;padding:8px 18px;max-width:85%;text-align:center;opacity:0;transition:opacity .2s}#toast.show{opacity:1}#aim-hint{position:absolute;bottom:145px;width:100%;text-align:center;color:#e8d69e;text-shadow:0 1px 6px #000}#portal-action{position:absolute;left:50%;top:65%;transform:translateX(-50%)}#target{position:absolute;top:95px;left:50%;transform:translateX(-50%);width:210px;text-align:center;text-shadow:0 1px 4px #000}#target .bar{height:8px}#party-strip{position:absolute;left:25px;top:200px}.party-chip{margin:5px 0;padding:5px 9px;background:#14271fd9;border-left:2px solid #bea266;width:156px;font-size:11px}.party-chip .bar{height:6px}.nameplate{position:absolute;transform:translate(-50%,-100%);text-align:center;font-size:10px;color:#f2e9ca;text-shadow:0 1px 4px #000;white-space:nowrap}.nameplate .bar{width:55px;height:4px;border:none;margin:3px auto}.nameplate.monster{color:#ffe3bc}.floating{position:absolute;font-weight:700;font-size:18px;text-shadow:0 2px 3px #152117;transform:translate(-50%,-50%);color:#f0d591}.floating.mcast{font-size:12px;letter-spacing:1px;font-weight:600}.floating.coin{font-size:20px}.floating.loot{font-size:17px;letter-spacing:.5px;text-shadow:0 0 8px #1f7a3c,0 2px 3px #152117}.sheet{width:min(1050px,96vw);max-height:86vh;overflow:auto;padding:25px}.sheet-head{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #79856b40;padding-bottom:16px;margin-bottom:18px}.sheet-head h2{margin:4px 0 0}.sheet-head button{padding:6px 12px}.toolbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-bottom:15px}.toolbar p{margin:0}.inventory-layout{display:grid;grid-template-columns:220px 1fr;gap:20px}.loadout{display:grid;gap:6px;align-content:start}.equipment-slot{padding:9px 10px;background:#111e18;border:1px solid #63765b55;border-radius:4px}.equipment-slot strong{font-size:9px;display:block;text-transform:uppercase;letter-spacing:1.4px;color:#a6af8e}.equipment-slot span{font-size:12px;color:#ead4a1}.card-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:10px}.item-card{position:relative;background:linear-gradient(145deg,#304234,#1a2b23);border:1px solid #7e8b6066;border-radius:6px;padding:15px;min-width:0}.item-card.equipped{border-color:#c5a768}.item-card .glyph{font-size:29px;color:#d7bd7f;margin-bottom:4px;display:block}.item-card h3{font-size:17px;color:#ecd7a6;margin:4px 0}.item-card .type{font-size:9px;text-transform:uppercase;letter-spacing:1.3px;color:#99ad92}.item-card p{font-size:11px;margin:7px 0}.item-card small{font-size:10px;display:block;color:#a5b49a}.item-card .actions{display:flex;gap:5px;flex-wrap:wrap;margin-top:12px}.item-card button{font-size:10px;padding:5px 8px}.item-card input{width:85px;padding:5px;font-size:11px}.options{color:#9bc6df!important}.stats-grid{display:grid;grid-template-columns:1fr 1fr;gap:4px 12px;font-size:11px;margin-top:14px}.stats-grid div{display:flex;justify-content:space-between}.stats-grid b{color:#dfcca0;font-weight:500}.badge{display:inline-block;color:#d9c38e;border:1px solid #9e915744;padding:2px 6px;font-size:9px;border-radius:3px}.draw-scene{padding:24px;text-align:center}.draw-scene .sigil{font-size:80px;color:#d6b978;margin:14px}.draw-scene .item-card{width:250px;margin:20px auto;text-align:left}.help-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px}.help-grid p{font-size:13px}.party-row{display:flex;justify-content:space-between;align-items:center;padding:12px;background:#1b2b2244;border-bottom:1px solid #89956833}.party-row small{color:#9dac93;display:block}.empty{padding:30px;color:#aebca6;text-align:center}.danger-text{color:#eda992}#hud.modal-open footer{opacity:.45}@media(max-width:950px){header{padding:10px;gap:10px;flex-wrap:wrap}.brand small{display:none}nav{order:3;width:100%;justify-content:center}nav button{padding:5px 8px;font-size:11px}.wallet{margin-left:auto}.location{top:110px;left:16px}.location h2{font-size:23px}.location p{max-width:220px}.minimap-wrap{top:116px;right:12px;width:110px}#minimap{width:104px;height:104px}footer{left:12px;right:12px;bottom:12px;gap:10px}.control-note{display:none}.vitals{width:220px;padding:10px}.skill{width:75px;height:84px}.skill .glyph{font-size:25px}.inventory-layout{grid-template-columns:180px 1fr}.sheet{padding:18px}#party-strip{left:15px;top:190px}}@media(max-width:550px){.veil{padding:12px}.auth{padding:24px}.brand span{font-size:14px}.location p{font-size:10px;max-width:200px}.minimap-wrap{width:90px}#minimap{width:85px;height:85px}footer{flex-wrap:wrap;justify-content:center}.vitals{width:100%;max-width:320px;padding:6px 12px}.hero-line{margin-bottom:3px}.bar{margin:3px 0}.skill{height:72px;width:86px}.skill .glyph{font-size:23px;line-height:27px}#toast{bottom:190px}#aim-hint{bottom:205px;font-size:11px}.inventory-layout{grid-template-columns:1fr}.loadout{grid-template-columns:1fr 1fr}.stats-grid{grid-column:1/-1}.card-grid{grid-template-columns:1fr}.help-grid{grid-template-columns:1fr}.sheet{max-height:92vh}.party-chip{width:115px;font-size:10px}#target{top:232px;width:165px}#portal-action{top:55%}}@media(prefers-reduced-motion:reduce){*{transition:none!important}}
/* Equipment: adapted from gamemap's gear layout, picker and uniform inspector. */
.gear-tabs{display:flex;align-items:center;gap:8px;margin-bottom:20px}.gear-tabs p{margin:0 0 0 auto;font-size:12px}.gear-workspace{display:grid;grid-template-columns:minmax(0,1fr) 270px;gap:20px;align-items:start}.gear-main{min-width:0}.gear-layout{display:grid;grid-template-columns:minmax(130px,1fr) minmax(150px,1.25fr) minmax(130px,1fr);gap:12px}.gear-column{display:grid;gap:9px;align-content:start}.gear-slot{padding:8px;display:flex;gap:7px;align-items:center;min-width:0;text-align:left;background:#14241de0;min-height:77px}.gear-slot img{width:42px;height:48px;object-fit:contain;flex-shrink:0}.gear-slot div{min-width:0}.gear-slot small{font-size:9px;text-transform:uppercase;letter-spacing:1px;color:#b5bf9c;display:block}.gear-slot b{font-size:11px;font-weight:500;display:block;line-height:1.35}.gear-slot span{font-size:8px;color:#8da48d;display:block;margin-top:3px}.gear-slot.focused{border-color:#e0bd70;background:#35442ae0;box-shadow:inset 0 0 18px #ac955a15}.gear-hero{text-align:center;background:radial-gradient(ellipse at 50% 25%,#6b775c55,transparent 65%);padding:8px;min-width:0}.gear-portrait{width:100%;max-width:175px;height:173px;object-fit:contain;margin:6px 0 -9px;filter:drop-shadow(0 7px 8px #0004)}.gear-hero h3{font-size:17px;margin-bottom:5px;overflow-wrap:anywhere}.gear-hero .stats-grid{font-size:9px;gap:4px 8px;grid-template-columns:1fr;margin:12px 0 0;padding-top:9px;border-top:1px solid #89966c33}.gear-inspector{border:1px solid #89966b55;background:#12231bd9;border-radius:6px;padding:16px;position:sticky;top:0}.gear-detail-art{height:115px;background:radial-gradient(ellipse,#9e8b4533,transparent 70%);text-align:center}.gear-detail-art img{height:115px;width:150px;object-fit:contain}.gear-inspector h3{font-size:21px;margin:7px 0}:is(.gear-inspector,:where(.card-explorer) .explorer-detail) p{font-size:11px}.gear-inspector h4{font-size:12px;font-weight:500;margin:18px 0 8px}.gear-inspector .eyebrow{font-size:8px;letter-spacing:1.2px}.gear-inspector .gear-equip{width:100%;margin-top:14px}.gear-compare{font-size:10px;margin-top:12px;padding:10px 0;border-block:1px solid #8b987244}.gear-compare>small{font-size:8px;color:#a1b197;display:block;margin-bottom:7px}.gear-compare div{display:flex;justify-content:space-between;gap:6px;margin:5px 0}.gear-compare b{font-weight:500;white-space:nowrap}.gear-compare em{font-style:normal;color:#83917e;font-size:9px}.gear-compare em.better{color:#a5d7a0}.gear-compare em.worse{color:#e29e8e}.gear-option{display:flex;gap:8px;align-items:center;border:1px solid #6d806644;border-radius:4px;background:#1f312355;margin:5px 0;padding:8px;font-size:10px;color:#879b81}.gear-option>span{font-size:10px;color:#ddca91;border-right:1px solid #6d806644;padding-right:8px}.gear-option>div{flex:1}.gear-option small{font-size:8px}.gear-option.unlocked{color:#b9d5b2;background:#34472d55}.gear-picker{margin-top:23px;border-top:1px solid #82926855;padding-top:17px}.gear-picker-head{display:flex;align-items:center;gap:10px;justify-content:space-between;flex-wrap:wrap}.gear-picker-head h3{font-size:21px;margin:3px 0 12px}.gear-filters{display:flex;gap:6px;flex-wrap:wrap}.gear-filters input{width:155px;font-size:11px;padding:7px}.gear-filters select{font-size:10px;padding:7px;max-width:130px}.gear-choices{display:grid;grid-template-columns:repeat(auto-fill,minmax(115px,1fr));gap:9px;margin-top:8px}.gear-choice{min-width:0;text-align:left;padding:9px;background:linear-gradient(145deg,#344837,#192b23);border:1px solid #687b5e88}.gear-card-art{height:88px;position:relative;text-align:center;background:radial-gradient(ellipse,#b8ab7330,transparent 70%)}.gear-card-art img{height:85px;width:100%;object-fit:contain}.gear-card-art>span{position:absolute;right:0;top:0;font-size:10px;color:#edcc85}.gear-choice>b{font-family:Georgia,serif;font-size:13px;display:block;font-weight:400;line-height:1.35;margin:4px 0}.gear-choice>small{display:block;font-size:9px;color:#9eaf94;min-height:27px}.gear-choice .badge{font-size:7px;letter-spacing:.3px;padding:2px 4px}.gear-choice.selected{border-color:#e0bd70;box-shadow:0 0 0 1px #bba16355}.sheet:has(.gear-workspace){width:min(1250px,96vw)}
@media(max-width:1050px){.gear-workspace{grid-template-columns:minmax(0,1fr) 235px;gap:12px}.gear-layout{gap:7px;grid-template-columns:1fr 1fr 1fr}.gear-slot{padding:6px;gap:3px;flex-direction:column;text-align:center;min-height:101px}.gear-slot img{width:38px;height:38px}.gear-slot span{font-size:7px}.gear-hero .stats-grid{font-size:8px}.gear-portrait{height:135px}.gear-tabs p{display:none}}
@media(max-width:720px){.gear-workspace{grid-template-columns:1fr}.gear-inspector{position:static;grid-row:2}.gear-layout{grid-template-columns:1fr 1.1fr 1fr;gap:6px}.gear-slot{min-height:91px}.gear-slot b{font-size:9px}.gear-slot small{font-size:8px}.gear-hero .stats-grid{font-size:8px}.gear-portrait{height:120px}.gear-hero .eyebrow{font-size:7px;letter-spacing:1px}.gear-hero h3{font-size:13px}.gear-hero .badge{font-size:7px}.gear-choices{grid-template-columns:repeat(3,minmax(0,1fr))}.gear-choices .gear-choice>b{font-size:11px}.gear-card-art{height:65px}.gear-card-art img{height:65px}.gear-filters input{width:140px}.gear-inspector .gear-detail-art{height:85px}.gear-detail-art img{height:85px}.gear-hero{padding:3px}}
.sheet:has(.gear-workspace)>.sheet-head{position:sticky;top:0;z-index:5;background:#1c2e26;padding-top:10px}.gear-inspector{top:95px;max-height:calc(86vh - 135px);overflow:auto}@media(max-width:720px){.gear-inspector{position:static;max-height:none;overflow:visible}}
/* 1.2 equipment: three fixed-height panels, paginated inventory. */
.equipment-modal .sheet{width:98vw!important;max-width:1700px;height:94dvh;max-height:94dvh;overflow:hidden;display:flex;flex-direction:column;padding:16px 20px}.equipment-modal .sheet-head{position:static!important;flex:none;padding:0 0 10px!important}.equipment-modal .sheet-head h2{margin:4px 0;font-size:24px}.equipment-modal #panel-content{flex:1;min-height:0;overflow:hidden}.gear-workspace{height:100%;display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr) minmax(0,.85fr);gap:14px;align-items:stretch}.gear-main,.gear-picker,.gear-inspector{min-height:0;min-width:0;border:1px solid #73866a66;border-radius:6px;background:#14271fe6;padding:12px;overflow:hidden;position:static;max-height:none;margin:0}.gear-main,.gear-picker{display:flex;flex-direction:column}.gear-section-title{font-size:11px;letter-spacing:1.5px;color:#e4ca8a;display:flex;align-items:center;justify-content:space-between;gap:6px;padding-bottom:10px;flex:none}.gear-section-title span{font-size:9px;color:#a5b79d;letter-spacing:0}.gear-layout{flex:1;min-height:0;display:grid;grid-template-columns:1fr 1.05fr 1fr;gap:6px}.gear-column{display:flex;flex-direction:column;justify-content:space-evenly;gap:6px;min-width:0}.gear-slot{min-height:0;flex:1;max-height:89px;padding:5px;gap:3px;flex-direction:row;text-align:left}.gear-slot img{width:35px;height:42px}.gear-slot b{font-size:10px}.gear-slot small{font-size:8px}.gear-slot span{font-size:8px}.gear-hero{padding:2px;display:flex;flex-direction:column;align-items:stretch;justify-content:center;min-height:0}.gear-hero h3{margin:0 0 8px;font-size:14px}#gear-live-portrait{height:clamp(100px,29vh,300px);min-height:0}#gear-live-portrait canvas{width:100%;height:100%;object-fit:contain}.gear-hero .stats-grid{margin:0;padding:7px 0;display:grid;grid-template-columns:1fr;font-size:9px;gap:4px}.gear-hero .stats-grid div{display:flex;justify-content:space-between;gap:3px}.gear-mini-pages{display:flex;gap:3px;justify-content:center;flex-wrap:wrap}.gear-mini-pages button{padding:3px 6px;font-size:9px}.gear-picker>input{width:100%;padding:7px;font-size:11px;margin-bottom:8px}.gear-choices{flex:1;min-height:0;align-content:start;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:0}.gear-choice{height:150px;padding:6px;overflow:hidden}.gear-card-art,.gear-card-art img{height:78px}.gear-choice>b{font-size:12px;margin:2px 0;line-height:1.1}.gear-choice>small{font-size:8px;min-height:20px}.gear-pagination{display:flex;gap:4px;align-items:center;justify-content:center;padding-top:8px;flex:none}.gear-pagination button{padding:5px 9px;font-size:11px}.gear-pagination small{font-size:9px}.gear-inspector{display:flex;flex-direction:column}.gear-detail-art,.gear-detail-art img{height:clamp(50px,11vh,110px)}.gear-inspector h3{font-size:19px;margin:5px 0}:is(.gear-inspector,:where(.card-explorer) .explorer-detail) p{font-size:11px;line-height:1.4;margin:6px 0}.gear-compare{margin:5px 0;padding:6px 0;min-height:60px;font-size:10px}.gear-compare button{padding:3px 6px;font-size:9px}.gear-option{padding:5px;margin:3px 0;font-size:9px}.gear-inspector .gear-equip{margin-top:auto;padding:9px}.gear-options{margin:5px 0}.pack-toolbar{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.pack-toolbar span{font-size:12px;flex:1}.pack-preview{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.pack-preview article{border:1px solid #6f8b63;padding:10px;background:#152b21;border-radius:7px}.pack-preview article img{width:100%;height:100px;object-fit:contain}.pack-preview b,.pack-preview small{display:block}.pack-preview p{font-size:11px}.pack-welcome{text-align:center;padding:20px}.pack-welcome>img{height:280px;border-radius:10px;box-shadow:0 10px 35px #0008}.pack-result{padding:20px 0}.reveal-row{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;margin-top:20px}.reveal-card{aspect-ratio:2/3;perspective:1100px;min-width:0}.reveal-spinner{width:100%;height:100%;position:relative;transform-style:preserve-3d;animation:pack-reveal 1.7s cubic-bezier(.2,.6,.3,1) both;animation-delay:var(--delay)}.reveal-back,.reveal-front{position:absolute;inset:0;backface-visibility:hidden;border:2px solid #c7ac66;border-radius:10px;overflow:hidden}.reveal-back img{width:100%;height:100%;object-fit:cover}.reveal-front{transform:rotateY(180deg);display:flex;flex-direction:column;background:radial-gradient(ellipse at 50% 25%,#536a42,#182b22 65%);color:#e5e2c9}.reveal-front>img{width:100%;height:52%;object-fit:contain;padding:6px}.reveal-front>div{padding:8px;border-top:1px solid #b49f5d55;background:#122119a6;flex:1}.reveal-front b{font-size:13px}.reveal-front p{font-size:10px;line-height:1.5;margin:5px 0}@keyframes pack-reveal{0%{transform:rotateY(0deg) translateY(30px)}45%{transform:rotateY(360deg) translateY(-10px)}100%{transform:rotateY(900deg) translateY(0)}}
@media(max-height:750px){.equipment-modal .sheet{padding:10px 14px}.gear-slot img{width:28px;height:30px}.gear-slot b{font-size:9px}.gear-slot small,.gear-slot span{font-size:7px}.gear-detail-art,.gear-detail-art img{height:50px}.gear-inspector h3{font-size:16px}:is(.gear-inspector,:where(.card-explorer) .explorer-detail) p{font-size:10px}.gear-option{padding:3px;margin:2px 0}.gear-section-title{padding-bottom:6px;font-size:10px}.gear-inspector .gear-equip{padding:6px}.gear-hero .stats-grid{font-size:8px}.equipment-modal .sheet-head .eyebrow{display:none}}
@media(max-width:1050px){.gear-workspace{grid-template-columns:minmax(0,1.4fr) minmax(0,.9fr) minmax(0,.9fr);gap:6px}.gear-main,.gear-picker,.gear-inspector{padding:7px}.gear-slot{flex-direction:column;text-align:center;gap:0}.gear-slot img{width:26px;height:29px}.gear-slot b{font-size:8px}.gear-slot span{font-size:7px}.gear-section-title{font-size:9px;letter-spacing:0}.gear-section-title span{font-size:8px}.gear-compare div{font-size:8px}.gear-compare b{white-space:normal}.gear-choice>b{font-size:10px}.gear-choice{padding:4px}.gear-hero .stats-grid{font-size:7px}.reveal-row{gap:5px}.reveal-front p{font-size:8px}.reveal-front b{font-size:10px}.reveal-front>div{padding:5px}.control-note{display:none}}
@media(max-width:650px){.equipment-modal .sheet{padding:7px;width:100vw!important;height:98dvh;max-height:98dvh}.gear-workspace{grid-template-columns:minmax(0,1.35fr) minmax(0,.85fr) minmax(0,1fr);gap:3px}.gear-inspector{grid-row:auto;padding:4px}.gear-main,.gear-picker{padding:4px}.gear-layout{grid-template-columns:1fr .9fr 1fr;gap:2px}.gear-slot b{display:none}.gear-slot img{width:24px;height:27px}.gear-slot small{font-size:7px;letter-spacing:0}.gear-slot span{font-size:6px}.gear-choices{grid-template-columns:1fr;gap:4px}.gear-choice{height:140px}.gear-section-title span{display:none}:is(.gear-inspector,:where(.card-explorer) .explorer-detail) p{font-size:8px}.gear-inspector h3{font-size:12px}.gear-compare div{font-size:7px}.gear-option{font-size:7px;gap:3px;padding:3px}.gear-option small{display:none}.gear-equip{font-size:9px}.gear-pagination{gap:2px;flex-wrap:wrap}.gear-pagination button{padding:3px 5px;font-size:9px}.gear-hero h3{font-size:9px}.gear-mini-pages button{padding:2px 3px;font-size:7px}.gear-hero .stats-grid div{display:block}.gear-hero .stats-grid span{display:block}#skills .skill{width:58px;height:76px}.skill-name{font-size:8px}.pack-preview{grid-template-columns:repeat(2,minmax(0,1fr))}.reveal-front>img{height:40%}.reveal-front p{font-size:7px}.reveal-front b{font-size:8px}}
@media(prefers-reduced-motion:reduce){.reveal-spinner{animation-duration:.01s;animation-delay:0s}}

.reveal-back{transform:rotateY(0deg) translateZ(1px)}.reveal-front{transform:rotateY(180deg) translateZ(1px)}

.gear-trade{display:flex;gap:4px;margin-top:6px}.gear-trade button{padding:5px;font-size:9px}.gear-trade input{width:60px;min-width:0;padding:4px;font-size:10px}.gear-hero h3{overflow-wrap:anywhere}
.pack-welcome>img.pack-chest{width:min(420px,85%);height:auto;max-height:360px;object-fit:contain;border-radius:0;box-shadow:none;filter:drop-shadow(0 14px 20px #0005)}
/* Compact equipment and inventory slots, v170. */
.compact-equipment.gear-workspace{grid-template-columns:minmax(0,1.45fr) minmax(0,1fr) minmax(0,.9fr)}
.compact-equipment .gear-main{gap:0}.compact-equipment .gear-layout{flex:none;height:clamp(230px,40vh,350px);grid-template-columns:1fr .95fr 1fr;gap:5px;align-items:center}.compact-equipment .gear-column{justify-content:center;gap:4px;height:auto}.compact-equipment .gear-slot{flex:none;height:43px;min-height:43px;max-height:43px;padding:3px 5px;gap:3px;flex-direction:row;text-align:left}.compact-equipment .gear-slot img{width:29px;height:33px}.compact-equipment .gear-slot b{font-size:9px;line-height:1.1;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.compact-equipment .gear-slot small{font-size:8px;letter-spacing:.6px}.compact-equipment .gear-slot span{font-size:8px;margin:1px 0 0}.compact-equipment .gear-hero{height:100%;justify-content:center}.compact-equipment #gear-live-portrait{height:clamp(160px,29vh,270px)}.compact-equipment .gear-hero h3{font-size:12px;margin:0}.gear-all-stats{border-top:1px solid #8b987244;padding-top:9px;margin-top:8px;flex:1;min-height:0}.gear-all-stats .gear-section-title{padding-bottom:6px}.gear-stat-table{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:3px 14px}.gear-stat-table>div{display:flex;justify-content:space-between;align-items:center;gap:5px;min-height:18px;font-size:10px;border-bottom:1px solid #91ab7b16}.gear-stat-table span{color:#b8c8ab;min-width:0}.gear-stat-table b{color:#f1dca6;font-size:11px;font-weight:500;white-space:nowrap;font-variant-numeric:tabular-nums}.inventory-toolbar{display:flex;gap:6px;margin-bottom:12px}.inventory-toolbar button{padding:6px 8px;font-size:10px;white-space:nowrap}.inventory-toolbar input{min-width:0;width:100%;padding:7px;font-size:11px}.compact-equipment .inventory-slots{flex:none;display:grid;grid-template-columns:repeat(var(--inventory-columns),minmax(0,1fr));gap:3px;padding:4px;background:#0b1513;border:1px solid #7b866a;border-radius:2px;align-content:start}.inventory-cell{position:relative;aspect-ratio:1;min-width:0;min-height:0;width:100%;padding:6px;border:1px solid #5c6f66;border-radius:0;background:radial-gradient(ellipse at 50% 35%,#273830,#101b18 75%);box-shadow:inset 0 0 0 1px #0008;overflow:hidden}.inventory-cell img{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 2px 3px #0008)}.inventory-cell.empty-cell{background:#0b1412}.inventory-cell.selected{border-color:#f0cd76;box-shadow:inset 0 0 0 1px #ba955c,0 0 8px #b99a5233}.inventory-cell:hover{background-color:#334634;border-color:#b4c49e}.inventory-count{position:absolute;right:3px;bottom:1px;color:#fff4cd;font-size:13px;line-height:1.1;text-shadow:1px 1px 2px #000,-1px -1px 1px #000;font-variant-numeric:tabular-nums}.inventory-level{position:absolute;left:3px;top:2px;font-size:10px;color:#f2cc73;text-shadow:0 1px 2px #000}.inventory-equipped{position:absolute;top:3px;right:3px;width:5px;height:5px;border-radius:50%;background:#c0da9d;box-shadow:0 0 5px #b2d786}.compact-equipment .gear-pagination{margin-top:auto}.compact-equipment .gear-compare{min-height:0}.compact-equipment .gear-compare div{margin:3px 0}
@media(max-height:750px){.compact-equipment .gear-layout{height:255px}.compact-equipment .gear-slot{height:37px;min-height:37px;max-height:37px}.compact-equipment .gear-slot img{height:28px;width:25px}.compact-equipment .gear-slot b{font-size:8px}.gear-stat-table>div{font-size:9px;min-height:16px}.gear-stat-table b{font-size:10px}.gear-all-stats{padding-top:6px;margin-top:6px}.compact-equipment .gear-section-title{padding-bottom:6px}}
@media(max-width:1050px){.compact-equipment .gear-slot{padding:3px;gap:2px}.compact-equipment .gear-slot img{width:23px}.compact-equipment .gear-slot b{font-size:8px}.compact-equipment .gear-slot small{font-size:7px}.gear-stat-table{gap:2px 6px}.gear-stat-table>div{font-size:8px}.gear-stat-table b{font-size:9px}.inventory-cell{padding:3px}.inventory-count{font-size:11px}.inventory-toolbar{gap:3px}.inventory-toolbar button{font-size:8px;padding:4px}.inventory-toolbar input{font-size:9px;padding:4px}}
@media(max-width:650px){.compact-equipment .gear-layout{height:240px;grid-template-columns:1fr .8fr 1fr;gap:2px}.compact-equipment .gear-slot{height:34px;min-height:34px;max-height:34px;flex-direction:column;padding:1px;gap:0;text-align:center}.compact-equipment .gear-slot img{width:21px;height:22px}.compact-equipment .gear-slot b,.compact-equipment .gear-slot span{display:none}.compact-equipment .gear-slot small{font-size:6px;letter-spacing:0}.compact-equipment #gear-live-portrait{height:125px}.compact-equipment .gear-hero h3{font-size:8px}.gear-stat-table{grid-template-columns:1fr;gap:0}.gear-stat-table>div{font-size:7px;min-height:14px}.gear-stat-table b{font-size:8px}.gear-all-stats .gear-section-title{font-size:8px}.compact-equipment .inventory-slots{gap:1px;padding:2px;grid-template-columns:repeat(5,minmax(0,1fr))}.inventory-cell{padding:1px}.inventory-count{font-size:8px;right:1px;bottom:0}.inventory-level{font-size:6px;left:1px;top:1px}.inventory-equipped{width:3px;height:3px;top:1px;right:1px}.inventory-toolbar{flex-wrap:wrap}.inventory-toolbar input{flex-basis:100%}.compact-equipment .gear-compare div{font-size:7px}.compact-equipment :is(.gear-inspector,:where(.card-explorer) .explorer-detail) p{font-size:8px}}
.compact-equipment .gear-active-column{grid-column:1;grid-row:1}.compact-equipment .gear-hero{grid-column:2;grid-row:1}.compact-equipment .gear-passive-column{grid-column:3;grid-row:1}.gear-side-label{font-size:8px;line-height:10px;text-align:center;letter-spacing:1px;color:#d9bd77;margin-bottom:2px}@media(max-width:650px){.gear-side-label{font-size:5px;letter-spacing:0}}
.forge-center{align-items:center;gap:7px;text-align:center}.forge-center>.gear-section-title{align-self:stretch}.forge-selected-slot{position:relative;width:74px;height:74px;flex-shrink:0;border:2px solid #ddbd72;box-shadow:inset 0 0 18px #8e70452b,0 0 18px #eac87922;background:#102219;border-radius:5px;padding:7px}.forge-selected-slot img{width:100%;height:100%;object-fit:contain}.forge-selected-slot b{position:absolute;right:3px;bottom:1px;color:#ffe0a3;font-size:13px;text-shadow:1px 1px #000}.forge-target-name{font-family:Georgia,serif;font-size:15px;color:#f0d59a}.forge-target-name span{display:block;font-family:Arial,sans-serif;font-size:11px;margin-top:3px;color:#a9bd9c}.forge-furnace{flex:1;min-height:80px;max-height:290px;object-fit:contain;width:100%;filter:drop-shadow(0 8px 12px #0005)}.forge-cost{width:100%;display:grid;gap:4px;font-size:11px;padding:8px 10px;border-block:1px solid #8b987244}.forge-cost>span{display:flex;justify-content:space-between;color:#b9c7ac}.forge-cost b{color:#e9cb84;font-weight:500}.forge-enhance,.forge-reroll{width:100%;padding:10px;font-size:12px}.forge-center .forge-rule{font-size:10px;line-height:1.4;color:#9eaf95;margin:2px 0}.forge-next-skill{padding:6px 8px;background:#31442b66;border-left:2px solid #a8bd75;margin:4px 0}.forge-next-skill>small{color:#dfc987;font-size:9px}.gear-inspector .forge-next-skill p{margin:3px 0;font-size:10px}@media(max-height:750px){.forge-selected-slot{width:58px;height:58px}.forge-center{gap:4px}.forge-target-name{font-size:13px}.forge-cost{padding:5px 7px;font-size:10px}.forge-enhance,.forge-reroll{padding:7px;font-size:11px}.forge-center .forge-rule{font-size:9px}.forge-workspace .gear-compare{font-size:9px}.forge-workspace .gear-compare div{margin:2px 0}}@media(max-width:650px){.forge-center{gap:3px}.forge-selected-slot{width:40px;height:40px;padding:3px}.forge-target-name{font-size:10px}.forge-target-name span,.forge-cost{font-size:8px}.forge-cost{padding:4px 0}.forge-enhance,.forge-reroll{font-size:8px;padding:5px}.forge-center .forge-rule{font-size:7px}.gear-inspector .forge-next-skill p{font-size:7px}}
/* Shared item badges: enhancement at top, available copies at bottom. */
.compact-equipment .gear-slot-art{position:relative;flex:0 0 35px;width:35px;height:35px}.compact-equipment .gear-slot-art img{width:100%;height:100%;object-fit:contain;padding:5px 1px}.compact-equipment .gear-item-level,.forge-selected-slot .gear-item-level{position:absolute;left:0;top:0;right:auto;bottom:auto;font-size:9px;line-height:10px;color:#ffe2a0;background:#142016bc;padding:0 2px;border-radius:2px;text-shadow:0 1px 2px #000}.compact-equipment .gear-item-count,.forge-selected-slot .gear-item-count{position:absolute;right:0;bottom:0;top:auto;left:auto;font-size:10px;line-height:11px;color:#e7eacf;background:#10201bd9;padding:0 2px;border-radius:2px;text-shadow:0 1px 2px #000}.forge-workspace .gear-slot.forge-unavailable{filter:grayscale(.95);opacity:.48;background:#1a2320;border-color:#59635c}.forge-workspace .gear-slot.forge-unavailable.focused{opacity:.7;border-color:#bdba9c}.forge-workspace .gear-slot.forge-unavailable:hover{opacity:.85}.forge-selected-slot .gear-item-level{font-size:12px;line-height:15px;padding:1px 3px}.forge-selected-slot .gear-item-count{font-size:13px;line-height:15px;padding:1px 3px}.forge-selected-slot img{padding:7px 0}.forge-inline-preview{width:100%;padding:5px 8px;border:1px solid #7e90613d;background:#13251bc9;border-radius:4px;flex-shrink:0}.forge-inline-preview>div{display:grid;grid-template-columns:1fr .8fr .8fr;gap:5px;text-align:right;font-size:11px;line-height:17px}.forge-inline-preview>div>span:first-child{text-align:left;color:#b6c6a9}.forge-inline-preview b{font-weight:500;color:#e4dfc0}.forge-inline-preview .forge-preview-heading{font-size:8px;line-height:15px;letter-spacing:.5px;color:#a5b897;border-bottom:1px solid #92a56d33;margin-bottom:2px}.forge-increased,.forge-inline-preview b.forge-increased{color:#a1ef8a!important;font-weight:700!important;text-shadow:0 0 8px #96ed7530}.forge-comparison{display:grid;gap:7px;margin:7px 0}.forge-comparison section{padding:8px;border:1px solid #84996a40;background:#1022198c;border-radius:4px}.forge-comparison .forge-success-values{background:#344d244f;border-color:#96bf6355}.forge-comparison h4{font-size:9px;letter-spacing:.7px;color:#c0c6aa;margin:0 0 5px}.forge-comparison .forge-success-values h4{color:#b6e790}.forge-comparison section>div{display:flex;justify-content:space-between;gap:8px;font-size:11px;line-height:19px}.forge-comparison section>div>span{color:#b9c8af}.forge-comparison b{font-weight:500;color:#e4dfc0;font-variant-numeric:tabular-nums}@media(max-height:750px){.compact-equipment .gear-slot-art{width:28px;height:30px;flex-basis:28px}.forge-inline-preview>div{font-size:10px;line-height:14px}.forge-comparison{gap:5px;margin:5px 0}.forge-comparison section{padding:6px}.forge-comparison section>div{font-size:10px;line-height:16px}.forge-comparison h4{margin:0 0 3px}.forge-selected-slot .gear-item-level,.forge-selected-slot .gear-item-count{font-size:10px;line-height:12px}}@media(max-width:650px){.compact-equipment .gear-slot-art{width:23px;height:25px;flex-basis:25px}.compact-equipment .gear-slot-art img{padding:4px 0}.compact-equipment .gear-slot-art b.gear-item-level,.compact-equipment .gear-slot-art b.gear-item-count{display:block;font-size:6px;line-height:7px;padding:0 1px}.forge-inline-preview{padding:3px}.forge-inline-preview>div{font-size:7px;line-height:12px;gap:1px}.forge-inline-preview .forge-preview-heading{font-size:5px;letter-spacing:0}.forge-comparison section{padding:3px}.forge-comparison section>div{font-size:7px;line-height:13px}.forge-comparison h4{font-size:6px;letter-spacing:0}}
.forge-scene{position:relative;width:100%;flex:1;min-height:150px;max-height:370px;margin-top:0}.forge-scene>.forge-furnace{display:block;width:100%;height:100%;max-height:none;min-height:0;object-fit:contain;flex:none}.forge-scene>.forge-selected-slot{position:absolute;left:50%;top:56%;transform:translate(-50%,-50%);z-index:1;background:#172017de;box-shadow:0 0 20px #ffb83a66,inset 0 0 12px #d1902833}.forge-center>.forge-target-name{flex-shrink:0}.forge-center>.forge-inline-preview{margin-top:2px}@media(max-height:750px){.forge-scene{min-height:125px;max-height:300px}}@media(max-width:650px){.forge-scene{min-height:100px;max-height:240px}}
/* Mobile MOBA combat wheel: each attack press requests exactly one basic strike. */
#combat-wheel{position:fixed;right:18px;bottom:16px;width:305px;height:285px;pointer-events:none;z-index:12}#combat-wheel #skills{position:absolute;inset:0;width:100%;height:100%;display:block;pointer-events:none}#combat-wheel #skills .skill{position:absolute;width:62px;height:62px;padding:0;border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center;pointer-events:auto;touch-action:none;background:radial-gradient(circle at 40% 28%,#4c6955,#112a23 75%);border:2px solid #c5a666;box-shadow:inset 0 0 0 3px #182d29,0 3px 12px #0009}#combat-wheel #skills .skill .skill-name,#combat-wheel #skills .skill .cost{display:none}#combat-wheel #skills .skill .glyph{font-size:25px;line-height:28px}#combat-wheel #skills .skill .key{position:absolute;top:auto;bottom:3px;left:50%;transform:translateX(-50%);font-size:9px}#combat-wheel #skills .skill .cooldown{border-radius:50%;font-size:20px}#combat-wheel #skills .skill.auto{border-color:#b2ef9e;box-shadow:0 0 12px #9be98077,inset 0 0 0 3px #1c4236}#combat-wheel #skills .skill.auto:after{top:-13px;font-size:8px}#combat-wheel #skills .skill:nth-child(1){right:210px;bottom:0}#combat-wheel #skills .skill:nth-child(2){right:210px;bottom:78px}#combat-wheel #skills .skill:nth-child(3){right:154px;bottom:151px}#combat-wheel #skills .skill:nth-child(4){right:79px;bottom:198px}#combat-wheel #skills .skill:nth-child(5){right:2px;bottom:211px}.attack-control{position:absolute;pointer-events:auto;touch-action:none;border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:0;border:2px solid #d8ba74;background:radial-gradient(circle at 35% 25%,#516fa2,#1c3159 75%);box-shadow:inset 0 0 0 4px #36527599,0 4px 17px #0008;color:#f8e9bd;user-select:none}.attack-control:active{filter:brightness(1.4);transform:scale(.94)}.attack-control>small{font-size:9px;letter-spacing:1px;color:#c4d4e7}.attack-control>span{line-height:1;font-size:24px}#attack-main{width:104px;height:104px;right:34px;bottom:30px}#attack-main>span{font-size:48px}#attack-main>small{margin-top:7px;font-size:10px}#attack-boss{width:48px;height:48px;right:150px;bottom:29px;background:radial-gradient(circle at 30% 25%,#776043,#352c24)}#heal-assist{width:48px;height:48px;right:0;bottom:145px;background:radial-gradient(circle at 30% 25%,#608f72,#1c4438)}#heal-assist[hidden]{display:none}#heal-assist.auto{box-shadow:0 0 0 2px #f0c86a,0 0 14px #f0c86a99}#hud footer{justify-content:flex-start;pointer-events:none}#hud footer .vitals{pointer-events:auto}#hud .control-note{display:none}.modal-open #combat-wheel{pointer-events:none;opacity:.25}.modal-open #combat-wheel button{pointer-events:none}@media(max-width:650px){#combat-wheel{right:6px;bottom:10px;transform:scale(.8);transform-origin:100% 100%}}
/* Equipped duplicates stand out after the normal reveal; match by item template. */
.pack-equipped-notice{margin:12px 0 5px;padding:9px 12px;border:1px solid #c8e58a88;border-radius:5px;background:linear-gradient(90deg,#4a633a77,#213e3055);color:#e9f5af;font-size:13px;box-shadow:0 0 18px #a8e67418}.reveal-card.equipped-match{position:relative;z-index:1}.reveal-card.equipped-match:before{content:"";position:absolute;inset:-4px;pointer-events:none;border:2px solid #e5ec98;border-radius:13px;box-shadow:0 0 14px #c2ef7faa,0 0 30px #b7d75a55;opacity:0;animation:equipped-card-glow 1.9s ease-in-out infinite;animation-delay:calc(1.7s + var(--delay))}.equipped-match .reveal-front{border:3px solid #e0ed9c;background:radial-gradient(ellipse at 50% 20%,#7f9152,#24432e 62%);box-shadow:inset 0 0 18px #d4ed8744}.equipped-match .reveal-front>img{padding-top:30px}.equipped-match-badge{position:absolute;top:7px;left:5px;right:5px;z-index:2;text-align:center;font-size:11px;font-weight:700;padding:4px 3px;border-radius:4px;background:linear-gradient(110deg,#e8d28e,#c3e394);color:#193420;box-shadow:0 2px 8px #0006;line-height:1.3}.equipped-match .reveal-front>div{border-top-color:#dce88f88}.equipped-match .reveal-front b{color:#f0f9bd}.match-spark{position:absolute;top:-18px;right:-8px;color:#fff2b5;font-size:28px;text-shadow:0 0 10px #e4ed7e;pointer-events:none;z-index:3;opacity:0;animation:equipped-card-spark 2s ease-in-out infinite;animation-delay:calc(1.7s + var(--delay))}@keyframes equipped-card-glow{0%,100%{opacity:.55}50%{opacity:1}}@keyframes equipped-card-spark{0%,100%{opacity:.4;transform:scale(.8) rotate(0)}50%{opacity:1;transform:scale(1.1) rotate(35deg)}}@media(max-width:650px){.pack-equipped-notice{font-size:11px;padding:7px}.equipped-match-badge{top:4px;left:2px;right:2px;font-size:7px;padding:3px 1px}.equipped-match .reveal-front>img{padding-top:24px}.match-spark{font-size:20px;right:-5px;top:-13px}}@media(prefers-reduced-motion:reduce){.reveal-card.equipped-match:before,.match-spark{animation:none;opacity:1}}
/* Selected item above, equipped item below; forecast belongs to Character Stats. */
.detail-item-stack{display:flex;flex-direction:column;gap:10px;flex:1;min-height:0}.detail-item{flex:1;min-height:0;border:1px solid #7a8f6755;background:#13271f;padding:9px;border-radius:5px;display:flex;flex-direction:column;gap:5px;overflow:hidden}.detail-item-label{font-size:9px;letter-spacing:1px;color:#dbcb8c;line-height:13px}.detail-equipped{background:#1c2d226e;border-color:#889b7255}.detail-equipped .detail-item-label{color:#a8bea0}.detail-item-head{display:flex;align-items:center;gap:8px;min-height:48px}.detail-item-head>img{width:48px;height:48px;object-fit:contain;flex-shrink:0}.detail-item-head>div{min-width:0}.gear-inspector .detail-item-head h3{font-size:15px;line-height:1.2;margin:0 0 4px}.detail-item-head h3 span{color:#e5ca86;white-space:nowrap}.detail-item-head small{font-size:8px;color:#a7b99d}.detail-item-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:3px 10px;padding:5px 0;border-block:1px solid #91a37424}.detail-item-stats>div{display:flex;justify-content:space-between;gap:4px;font-size:9px;min-width:0}.detail-item-stats span{color:#b2c3a7}.detail-item-stats b{font-weight:500;color:#e5dbac;white-space:nowrap}.gear-inspector .detail-item p{font-size:10px;line-height:1.45;margin:0}.detail-item-options{display:grid;grid-template-columns:1fr;gap:2px;margin-top:auto}.detail-item-options>div{display:flex;align-items:center;gap:6px;font-size:9px;line-height:14px;border-bottom:1px solid #91a37419}.detail-item-options small{font-size:8px;min-width:17px;color:#d1bd82}.detail-item-options span{flex:1;color:#9fb194}.detail-item-options i{font-style:normal;font-size:8px;color:#839777}.dual-item-details .gear-equip{margin-top:8px}.gear-stat-table b.stat-preview-up{color:#9ced8c}.gear-stat-table b.stat-preview-down{color:#f29285}.gear-stat-table b small{color:#899b82;font-size:8px;font-weight:400}.gear-stat-table b.stat-preview-up,.gear-stat-table b.stat-preview-down{font-weight:700}@media(max-height:750px){.detail-item-stack{gap:7px}.detail-item{padding:6px;gap:3px}.detail-item-head{min-height:36px;gap:5px}.detail-item-head>img{width:36px;height:36px}.gear-inspector .detail-item-head h3{font-size:13px}.gear-inspector .detail-item p{font-size:9px;line-height:1.35}.detail-item-options>div{font-size:8px;line-height:12px}.detail-item-stats{padding:4px 0;font-size:8px}.detail-item-label{font-size:8px;line-height:11px}.gear-stat-table b small{font-size:7px}}@media(max-width:1050px){.detail-item-stats{grid-template-columns:1fr}.detail-item-stats>div{font-size:8px}.gear-stat-table b small{font-size:7px}.detail-item-options>div{font-size:8px;gap:3px}}@media(max-width:650px){.detail-item{padding:4px;gap:3px}.detail-item-head{flex-direction:column;gap:3px;text-align:center;min-height:0}.detail-item-head>img{width:32px;height:32px}.gear-inspector .detail-item-head h3{font-size:10px}.detail-item-label{font-size:7px;letter-spacing:0}.detail-item-head small{font-size:6px}.gear-inspector .detail-item p{font-size:7px}.detail-item-options>div{font-size:6px;line-height:10px;gap:2px}.detail-item-options small{font-size:6px;min-width:12px}.detail-item-stats>div{font-size:7px}.gear-stat-table b small{font-size:6px}.detail-item-stack{gap:5px}}
@media(min-width:651px) and (max-width:1050px){.detail-item-stack{gap:6px}.detail-item{padding:6px;gap:3px}.detail-item-head{min-height:34px;gap:5px}.detail-item-head>img{width:34px;height:34px}.gear-inspector .detail-item-head h3{font-size:12px}.gear-inspector .detail-item p{font-size:9px;line-height:1.3}.detail-item-options>div{font-size:8px;line-height:11px}.detail-item-label{font-size:8px;line-height:10px}.detail-item-stats{grid-template-columns:repeat(2,minmax(0,1fr));padding:3px 0;gap:3px 6px}.detail-item-stats>div{font-size:8px}.detail-item-head small{font-size:7px}}
/* Keep the equipped-only view familiar; expand one option panel during selection. */
.detail-options-toggle{display:flex;align-items:center;justify-content:space-between;gap:6px;width:100%;border:0;border-radius:0;border-bottom:1px solid #9aaa7130;background:transparent;box-shadow:none;padding:0 0 5px;font-size:9px;line-height:13px;letter-spacing:.6px;color:#daca8d;text-align:left;flex-shrink:0}.detail-options-toggle span:last-child{font-size:8px;letter-spacing:0;color:#9fb594}.detail-options-toggle:hover{color:#f5e7b5;background:transparent;border-color:#bbc68c70}.detail-equipped .detail-options-toggle{color:#b5c9aa}.detail-item-options[hidden]{display:none}.detail-item[data-detail-options]{cursor:pointer}.detail-item.options-open{flex:1;min-height:0;border-color:#b7c38375;background:linear-gradient(155deg,#23372a,#14271e)}.detail-item.options-closed{flex:0 0 auto;background:#15271f99}.detail-item.options-closed .detail-item-head{min-height:36px}.detail-item.options-closed .detail-item-head>img{width:36px;height:36px}.detail-item.options-closed .detail-item-head h3{font-size:13px}.detail-item.options-open .detail-item-options{padding-top:6px;border-top:1px solid #9aaa7126}:is(.single-item-details,.gear-detail-scroll)>h4{font-size:11px;font-weight:500;color:#c2cda8;margin:12px 0 5px}.single-item-details .gear-detail-art,.single-item-details .gear-detail-art img{height:clamp(70px,15vh,150px)}:is(.single-item-details,.gear-detail-scroll)>.gear-compare{margin-top:12px}.single-item-details .gear-option{padding:8px;margin:5px 0}.single-item-details>.gear-equip{margin-top:auto}@media(max-height:750px){.detail-options-toggle{font-size:8px;line-height:11px;padding-bottom:3px}.single-item-details .gear-option{padding:5px;margin:3px 0}.detail-item.options-closed .detail-item-head{min-height:30px}.detail-item.options-closed .detail-item-head>img{width:30px;height:30px}}@media(max-width:1050px){.detail-options-toggle{font-size:8px;letter-spacing:0}.detail-options-toggle span:last-child{font-size:7px}}@media(max-width:650px){.detail-options-toggle{font-size:6px;gap:2px}.detail-options-toggle span:last-child{font-size:5px}.detail-item.options-closed .detail-item-head h3{font-size:9px}.single-item-details .gear-option{padding:4px}:is(.single-item-details,.gear-detail-scroll)>h4{font-size:9px}.single-item-details .gear-detail-art,.single-item-details .gear-detail-art img{height:70px}}
.detail-item.options-open .detail-item-options{margin-top:10px}@media(min-height:820px) and (min-width:1051px){.detail-item.options-open .detail-item-head{min-height:76px}.detail-item.options-open .detail-item-head>img{width:76px;height:76px}.gear-inspector .detail-item.options-open .detail-item-head h3{font-size:17px}.gear-inspector .detail-item.options-open p{font-size:11px;line-height:1.5}.detail-item.options-open .detail-item-stats>div{font-size:10px}.detail-item.options-open .detail-item-options>div{font-size:10px;line-height:18px}}
.sheet-head>.panel-wallet{display:flex;align-items:center;gap:7px;margin-left:auto;margin-right:14px;white-space:nowrap;flex-shrink:0;border:1px solid #c7aa6755;background:#12241bd9;padding:8px 12px;border-radius:5px;box-shadow:inset 0 0 15px #b9a15c0b;color:#eacb83}.panel-wallet>span{font-size:20px;line-height:1}.panel-wallet>b{font-size:20px;line-height:1.2;font-weight:600;font-variant-numeric:tabular-nums}.panel-wallet>small{font-size:9px;letter-spacing:1px;color:#c9c5a3}.sheet-head:has(.panel-wallet:not([hidden]))>div:first-child{min-width:0}.sheet-head:has(.panel-wallet:not([hidden])){gap:10px}@media(max-width:650px){.sheet-head>.panel-wallet{padding:6px 8px;margin-right:0;gap:4px}.panel-wallet>b{font-size:15px}.panel-wallet>span{font-size:16px}.panel-wallet>small{font-size:7px;letter-spacing:0}.sheet-head:has(.panel-wallet:not([hidden])) .eyebrow{display:none}.sheet-head:has(.panel-wallet:not([hidden])) h2{font-size:18px;line-height:1.2}.sheet-head:has(.panel-wallet:not([hidden])){gap:7px}}
.reveal-complete .reveal-spinner{animation:none;transform:rotateY(180deg)}.reveal-complete .reveal-card.equipped-match:before,.reveal-complete .match-spark{animation-delay:0s}

.pack-selection{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;max-width:900px;margin:24px auto}.pack-select-card{background:radial-gradient(ellipse at center,#344432,#11231e);border:1px solid #bca46b88;padding:16px;border-radius:12px;text-align:center}.pack-select-card img{width:100%;max-height:300px;object-fit:contain}.pack-select-card:hover{border-color:#ebce7e;box-shadow:0 0 22px #bca46b33}.pack-select-card b{color:#e6ce8e}.pack-result-actions{display:flex;justify-content:center;gap:12px;margin:20px 0;flex-wrap:wrap}@media(max-width:600px){.pack-selection{gap:10px;margin:12px 0}.pack-select-card{padding:8px}.pack-select-card h3{font-size:14px}.pack-select-card p{font-size:10px}}

/* Card collections: bounded shelves, searchable categories and per-pack previews. */
.shop-modal{--shop-gold:#dec58d;--shop-line:#bca46b55;--shop-ink:#11231e}
.shop-modal .sheet{width:min(1220px,96vw);height:90dvh;max-height:90dvh;display:flex;flex-direction:column;padding:22px}
.shop-modal .sheet-head{flex:none;margin-bottom:12px;padding-bottom:12px}.shop-modal #panel-content{flex:1;min-height:0;overflow:auto}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.shop-browser{height:100%;display:flex;flex-direction:column;min-height:0;gap:10px}.shop-heading{display:flex;justify-content:space-between;align-items:center;gap:10px}.shop-heading h3{font-size:24px;margin:3px 0}.shop-heading>span{font-size:11px;color:#acbda8}.shop-heading .eyebrow{font-size:9px;color:var(--shop-gold)}
.shop-filters{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.shop-categories{display:flex;gap:6px}.shop-categories button{padding:8px 12px;font-size:12px}.shop-categories small{margin-left:5px;opacity:.7}.shop-search{flex:1;min-width:170px}.shop-search input{width:100%;font-size:12px;padding:9px 11px}.shop-filters select{padding:9px;font-size:12px;max-width:200px}
.shop-results-line{display:flex;gap:12px;align-items:center;font-size:10px;color:#aabd9f}.shop-results-line span:nth-child(2){margin-left:auto}.shop-results-line button{font-size:10px;padding:3px 8px}
.shop-browser .pack-selection{flex:1;min-height:0;width:100%;max-width:none;margin:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));gap:12px}
.shop-browser .pack-select-card{min-height:0;min-width:0;display:flex;flex-direction:column;align-items:stretch;text-align:left;padding:10px 14px;border-radius:8px;border-color:color-mix(in srgb,var(--pack-accent) 45%,transparent);background:radial-gradient(ellipse at 50% 0%,var(--pack-bg-glow),transparent 75%),linear-gradient(145deg,var(--pack-bg-top),var(--pack-bg-bottom));overflow:hidden;transition:border-color .15s,background .15s}
.shop-browser .pack-select-card:hover{border-color:var(--pack-accent);box-shadow:0 0 16px var(--pack-bg-glow)}.pack-shelf-top{display:flex;justify-content:space-between;align-items:center;gap:4px;font-size:9px;color:#adbaa3}.pack-shelf-top .badge{color:var(--pack-accent);font-size:8px}
.shop-browser .pack-select-card img{width:100%;flex:1;min-height:0;height:110px;max-height:160px;object-fit:contain;margin:3px 0}.pack-shelf-copy{flex:none}.pack-shelf-copy h3{font-family:Georgia,serif;font-size:18px;margin:3px 0;color:var(--pack-accent)}.pack-shelf-copy p{font-size:10px;line-height:1.4;color:#b9c5b0;margin:4px 0 8px;min-height:28px}.pack-shelf-copy>div{display:flex;justify-content:space-between;gap:8px;font-size:10px;border-top:1px solid #879b6c33;padding-top:7px}.pack-shelf-copy b{color:var(--shop-gold)}
.shop-footer{display:flex;justify-content:space-between;align-items:center;gap:12px;flex:none;font-size:10px;color:#aabd9f;padding:3px 0}.shop-pages{display:flex;gap:4px;align-items:center;margin:0;order:initial;width:auto}.shop-pages button{padding:5px 10px;font-size:11px}.shop-pages span{padding:0 2px}
.shop-no-results{grid-column:1/-1;grid-row:1/-1;align-self:center;text-align:center}.shop-no-results p{color:#aabd9f}.pack-page-heading{text-align:center;margin:16px 0 8px}.pack-page-heading h3{font-size:27px;margin:4px 0}.pack-page-heading p{font-size:12px;margin:5px 0;color:#b7c3aa}.pack-page-heading .eyebrow{font-size:9px;color:var(--shop-gold)}.shop-pack-page .pack-toolbar>span{font-size:11px}.pack-jump select{max-width:240px;font-size:12px;padding:9px}.pack-odds{font-size:10px;color:#9fb098;text-align:center;margin-top:12px}.shop-pack-page .pack-preview{gap:10px}.shop-pack-page .pack-preview article{padding:9px}.shop-pack-page .pack-preview img{height:70px}.shop-pack-page .pack-preview p{font-size:10px;line-height:1.4;min-height:56px}.shop-pack-page .pack-preview b{font-size:12px}.shop-pack-page .pack-preview small{font-size:9px;color:#aabc9f}.shop-pack-page .pack-welcome{padding:6px}.shop-pack-page .pack-welcome .pack-chest{max-height:300px}.shop-pack-page .pack-result{padding-top:4px}
@media(max-width:900px){.shop-modal .sheet{padding:15px}.shop-categories button{padding:7px 8px;font-size:10px}.shop-heading h3{font-size:21px}.pack-shelf-copy h3{font-size:16px}.shop-browser .pack-select-card{padding:8px 10px}.pack-shelf-top{font-size:8px}}
@media(max-width:650px){.shop-modal .sheet{height:94dvh;max-height:94dvh;padding:12px}.shop-modal .sheet-head h2{font-size:20px}.shop-modal .sheet-head{gap:8px}.shop-heading h3{font-size:19px}.shop-heading>span{font-size:9px}.shop-filters{gap:7px}.shop-categories{width:100%}.shop-categories button{flex:1;padding:7px 6px}.shop-filters select{max-width:145px;width:100%;font-size:10px}.shop-search{min-width:130px}.shop-search input{font-size:11px}.shop-browser{gap:8px}.shop-browser .pack-selection{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;grid-template-rows:repeat(2,minmax(0,1fr))}.pack-shelf-copy h3{font-size:14px}.pack-shelf-copy p{font-size:9px;min-height:37px}.pack-shelf-copy>div{font-size:8px}.pack-shelf-top{font-size:7px;gap:2px}.pack-shelf-top .badge{font-size:7px;padding:2px 4px}.shop-browser .pack-select-card{padding:7px}.shop-browser .pack-select-card img{height:90px;max-height:135px}.shop-results-line{font-size:9px;gap:5px}.shop-results-line span:nth-child(2){font-size:8px}.shop-pages button{padding:5px 8px}.shop-footer{font-size:9px}.shop-pack-page .pack-preview{grid-template-columns:repeat(2,minmax(0,1fr))}.shop-pack-page .pack-toolbar{gap:6px}.shop-pack-page .pack-toolbar button,.pack-jump select{font-size:10px;padding:7px}.pack-jump select{max-width:170px}.pack-page-heading{margin:12px 0 8px}.pack-page-heading h3{font-size:23px}.pack-page-heading p{font-size:10px}.shop-pack-page .pack-preview img{height:55px}.shop-pack-page .pack-preview p{font-size:9px;min-height:63px}.shop-pack-page .pack-preview b{font-size:11px}}

@media(max-height:600px){.shop-modal .sheet{height:94dvh;max-height:94dvh;padding:10px 15px}.shop-modal .sheet-head{padding-bottom:6px;margin-bottom:6px}.shop-modal .sheet-head h2{font-size:20px;margin:0}.shop-modal .eyebrow{display:none}.shop-modal .shop-heading h3{font-size:18px;margin:0}.shop-browser{gap:6px}.shop-filters input,.shop-filters select,.shop-categories button{padding:6px 9px;font-size:10px}.shop-browser .pack-selection{grid-template-rows:minmax(0,1fr)}.shop-browser .pack-select-card img{max-height:90px;height:45px}.pack-shelf-copy p{display:none}.pack-shelf-copy h3{font-size:16px;margin:3px 0 6px}.pack-shelf-copy>div{padding-top:5px}.shop-pack-page .pack-page-heading{margin:8px 0}.shop-pack-page .pack-page-heading h3{font-size:20px}.shop-pack-page .pack-welcome .pack-chest{max-height:150px}}

.pack-type-coverage{display:flex;justify-content:center;gap:6px;flex-wrap:wrap;margin-top:8px}.pack-type-coverage span{font-size:10px;color:#d4c694;padding:3px 7px;border:1px solid #bca46b44;border-radius:4px;background:#12271c88}.card-other-pack{display:block;color:#dac58d!important;margin-top:5px}

.forge-option{width:100%;text-align:left;cursor:pointer;transition:border-color .15s,background .15s}.forge-option.selected{border-color:#e1c47c;background:#5d573b55;color:#eedaa5;box-shadow:inset 0 0 12px #bbaa4418}.forge-option:not(:disabled):hover{border-color:#d6bd7b;background:#40533766}.forge-option:disabled{cursor:default;opacity:.45}.forge-option small{font-size:8px;color:#ddc789}.forge-affinity{float:right;font-size:8px;letter-spacing:.3px;color:#b8c6a1;font-weight:normal}.forge-reroll{border-color:#bba05a;color:#edce8a}

.forge-success-meter{position:relative;isolation:isolate;width:100%;height:24px;min-height:24px;flex-shrink:0;overflow:hidden;border:1px solid #bfa268;border-radius:5px;background:#0b1813;box-shadow:inset 0 2px 6px #0008,0 1px 8px #d6a73b15}.forge-success-fill{position:absolute;inset:0 auto 0 0;background:linear-gradient(90deg,#60491d,#987635);border-right:1px solid #f4d18a99;box-shadow:inset 0 1px 0 #e8d18a33;pointer-events:none}.forge-success-label{position:absolute;inset:0;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:0 9px;color:#fff0c9;font-size:10px;line-height:1;text-shadow:0 1px 2px #000}.forge-success-label b{font-size:11px;font-variant-numeric:tabular-nums;font-weight:600}@media(max-height:750px){.forge-success-meter{height:21px;min-height:21px}.forge-success-label{font-size:9px}.forge-success-label b{font-size:10px}}@media(max-width:650px){.forge-success-meter{height:19px;min-height:19px}.forge-success-label{font-size:7px;padding:0 5px}.forge-success-label b{font-size:8px}}

/* Furnace geometry depends only on viewport size, never on the selected card's content. */
.forge-center>.forge-scene{--forge-fixed-height:clamp(110px,calc(94dvh - 550px),300px);height:var(--forge-fixed-height);min-height:var(--forge-fixed-height);max-height:var(--forge-fixed-height);flex:0 0 var(--forge-fixed-height)}
.forge-target-name{width:100%;min-height:38px;overflow-wrap:anywhere}.forge-target-name span{line-height:1.3}@media(max-height:750px){.forge-target-name{min-height:34px}}@media(max-width:650px){.forge-center>.forge-scene{--forge-fixed-height:clamp(90px,calc(94dvh - 590px),220px)}.forge-target-name{min-height:30px}}

/* Item details: skill identity, power/target, then resource and range costs. */
.gear-inspector .item-skill-line{display:block;line-height:1.5}.gear-inspector .item-skill-heading{margin-bottom:2px}.gear-inspector .item-skill-name{color:#f3d69b;font-weight:600}.gear-inspector .item-skill-kind{color:#c6b5ed;font-size:.82em;font-weight:600;letter-spacing:.35px}.gear-inspector .item-skill-power{color:#fff0c9;font-weight:700}.gear-inspector .item-skill-element{color:#d9d7c5}.gear-inspector .item-skill-element.element-fire{color:#f2aa86}.gear-inspector .item-skill-element.element-ice{color:#97d5ed}.gear-inspector .item-skill-element.element-lightning{color:#c9b0f6}.gear-inspector .item-skill-element.element-light{color:#ecdda0}.gear-inspector .item-skill-element.element-earth{color:#c8c58c}.gear-inspector .item-skill-element.skill-healing{color:#a4dfad}.gear-inspector .item-skill-target{color:#9ddace}.gear-inspector .item-skill-target small{font-size:.8em;font-weight:600;letter-spacing:.2px;color:#8bb9ad}.gear-inspector .item-skill-resources{margin-top:2px;color:#899f98;font-variant-numeric:tabular-nums}.gear-inspector .item-skill-mana{color:#9acce9}.gear-inspector .item-skill-cooldown{color:#e3c98d}.gear-inspector .item-skill-range{color:#c0cdb6}.gear-inspector .item-skill-radius{color:#a8d3c5}:is(.gear-inspector,.equip-pack-results) .item-passive-description{display:block;color:#bcd8af;line-height:1.5}

/* Valoria (the tile world): a closed way or a shop not open yet on the travel button */
#portal-action.closed{filter:saturate(.25) brightness(.8)}

/* the game's menus alone (index.php?ui=panels, framed by the map lab: lab/game-shop.js): the header's menus and the gold on a clear page,
   the panels and the login over it; no world, no HUD below */
html.ui-panels,html.ui-panels body{background:transparent!important}
.ui-panels #game,.ui-panels #loading,.ui-panels #hud>.location,.ui-panels .minimap-wrap,.ui-panels #target,.ui-panels #party-strip,.ui-panels #portal-action,.ui-panels footer,.ui-panels #aim-hint,.ui-panels #labels,.ui-panels .brand,.ui-panels nav [data-panel="help"]{display:none!important}
.ui-panels #hud header{min-height:0;padding:5px 8px;gap:8px;justify-content:center;flex-wrap:nowrap;background:rgba(17,34,29,.86);border:1px solid #c5a66640;border-radius:10px;box-shadow:0 2px 12px #0006}
.ui-panels #hud nav{order:0;width:auto;margin:0;flex-wrap:nowrap;justify-content:center;gap:4px}
.ui-panels #hud nav button{padding:6px 9px;font-size:12px;white-space:nowrap}
.ui-panels #hud nav button:disabled{opacity:.38;cursor:default}
.ui-panels #hud .wallet{margin-left:0;font-size:15px}
@media(max-width:470px){.ui-panels #hud header{padding:4px 5px;gap:4px}.ui-panels #hud nav button{padding:5px 6px;font-size:11px}.ui-panels #hud nav kbd{display:none}.ui-panels #hud .wallet{font-size:13px}.ui-panels #hud .wallet span{display:none}}

/* Equipment's skill sheet (assets/game/skills-page.js, owner 2026-10-29): the hero's portrait opens it in place of the inventory and the
   item details; the skill text's numbers (item-skill-description.js) */
.gear-hero[data-gear-skills]{cursor:pointer;border-radius:6px;transition:background .15s}
.gear-hero[data-gear-skills]:hover{background:#ffffff0d}
.gear-hero-hint{display:block;text-align:center;font-size:10px;color:#d8bd83;letter-spacing:.3px;margin-top:2px}
.skills-view.gear-workspace>.gear-skills{grid-column:2/4}
.gear-skills{min-height:0;min-width:0;border:1px solid #73866a66;border-radius:6px;background:#14271fe6;padding:12px;display:flex;flex-direction:column}
.skill-sheet-note{margin:0 0 8px;font-size:11px;color:#9fb3a6}
.skill-sheet-list{flex:1;min-height:0;overflow-y:auto;padding-right:4px;overscroll-behavior:contain;touch-action:pan-y}
.skill-sheet-group{margin:10px 0 6px;font-size:11px;letter-spacing:1px;color:#c6b5ed}
.skill-sheet-group:first-child{margin-top:0}
.skill-sheet-entry{display:flex;gap:10px;align-items:flex-start;padding:8px 10px;margin-bottom:6px;border:1px solid #73866a40;border-radius:6px;background:#0f1f19cc}
.skill-sheet-entry.is-passive{background:#101c20cc}
.skill-sheet-icon{position:relative;flex:0 0 46px;height:46px}
.skill-sheet-icon img{width:100%;height:100%;object-fit:contain}
.skill-sheet-key{position:absolute;left:-5px;top:-5px;margin:0;min-width:18px;padding:1px 4px;border-radius:4px;background:#bd9757;color:#17231d;font-size:10px;font-weight:700;text-align:center}
body.touch-ui .skill-sheet-key{display:none}
.skill-sheet-body{min-width:0;flex:1}
.skill-sheet-item{font-size:11px;color:#e7e2d4;margin-bottom:3px}
.skill-sheet-item small{color:#8fa597;letter-spacing:.5px;margin-right:3px;text-transform:uppercase}
.skill-sheet-item b{color:#e4c477}
.skill-sheet-auto{margin-left:6px;padding:1px 5px;border-radius:3px;background:#3d6b4e;color:#d9f5d8;font-size:9px;font-weight:700;letter-spacing:.4px}
.skill-sheet-text{margin:0;font-size:12px;line-height:1.45}
.skill-sheet-back{margin-top:8px;align-self:flex-start;padding:6px 12px;font-size:12px}
.gear-skills .item-skill-line{display:block;line-height:1.5}
.gear-skills .item-skill-name{color:#f3d69b;font-weight:600}
.gear-skills .item-skill-kind{color:#c6b5ed;font-size:.82em;font-weight:600;letter-spacing:.35px}
.gear-skills .item-skill-power{color:#fff0c9;font-weight:700}
.gear-skills .item-skill-element{color:#d9d7c5}
.gear-skills .item-skill-element.element-fire{color:#f2aa86}
.gear-skills .item-skill-element.element-ice{color:#97d5ed}
.gear-skills .item-skill-element.element-lightning{color:#c9b0f6}
.gear-skills .item-skill-element.element-light{color:#ecdda0}
.gear-skills .item-skill-element.element-earth{color:#c8c58c}
.gear-skills .item-skill-element.skill-healing{color:#a4dfad}
.gear-skills .item-skill-target{color:#9ddace}
.gear-skills .item-skill-target small{font-size:.8em;font-weight:600;letter-spacing:.2px;color:#8bb9ad}
.gear-skills .item-skill-resources{margin-top:2px;color:#899f98;font-variant-numeric:tabular-nums}
.gear-skills .item-skill-mana{color:#9acce9}
.gear-skills .item-skill-cooldown{color:#e3c98d}
.gear-skills .item-skill-range{color:#c0cdb6}
.gear-skills .item-skill-radius{color:#a8d3c5}
.gear-skills .item-passive-description{display:block;color:#bcd8af;line-height:1.5}
.item-skill-amount{color:#ffd77a;font-weight:700;font-variant-numeric:tabular-nums}
@media(max-width:650px){.gear-skills{padding:5px}.skill-sheet-entry{gap:6px;padding:5px}.skill-sheet-icon{flex-basis:30px;height:30px}.skill-sheet-text{font-size:10px}.skill-sheet-note{font-size:9px}.skill-sheet-item{font-size:9px}}
body.touch-ui .equipment-modal .gear-skills{overflow:hidden}
.settings-account button.danger{border-color:#a5604f88}
/* the lab's bar keeps the game's ⚙: Log out lives in Settings since 2026-10-29 (the ↪ it had went) */

/* Illustrated collection promotion: live pack copy over category artwork. */
.shop-pack-promo-page>.pack-page-heading{display:none}
.pack-promo{position:relative;isolation:isolate;aspect-ratio:16/9;margin-top:12px;background:#061b12;overflow:hidden;border-radius:4px}
.pack-promo-art{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-1}
.pack-promo-copy{width:49%;min-height:100%;padding:7% 3% 5% 5%;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;color:#f4e5b7;text-shadow:0 2px 9px #000}
.pack-promo-copy .eyebrow{font-size:clamp(10px,1.2vw,16px);letter-spacing:5px;color:#e9c96d}
.pack-promo-copy h3{font-family:Georgia,serif;font-weight:400;font-size:clamp(32px,5vw,68px);line-height:1.06;margin:16px 0 10px;color:#ffe8a3;overflow-wrap:anywhere}
.pack-promo-rule{width:84%;font-size:12px;color:#d4af54;background:linear-gradient(90deg,transparent,#b58d3a,transparent) center/100% 1px no-repeat}
.pack-promo-copy>p{font-family:Georgia,serif;font-size:clamp(13px,1.5vw,20px);line-height:1.4;margin:14px 0;color:#eadfbe}
.pack-promo-copy .pack-type-coverage{gap:5px;margin-top:6px}
.pack-promo-copy .pack-type-coverage span{border-color:#ba914c99;border-radius:0;color:#f5df9d;background:#061c16b3;padding:5px 7px;font-size:clamp(9px,.9vw,12px)}
.pack-promo-offer{display:flex;flex-direction:column;gap:8px;margin-top:24px;padding-top:15px;border-top:1px solid #b58d3a66}
.pack-promo-offer strong{font-family:Georgia,serif;font-size:clamp(14px,1.6vw,22px);font-weight:400}
.pack-promo-offer>span{font-size:10px;color:#c1b58e}
@media(max-width:650px){.pack-promo{aspect-ratio:auto;min-height:470px}.pack-promo-art{height:250px;object-position:right center}.pack-promo-copy{width:100%;min-height:470px;padding:232px 20px 22px;background:linear-gradient(transparent 180px,#071d15 265px)}.pack-promo-copy .eyebrow{font-size:9px;letter-spacing:3px}.pack-promo-copy h3{font-size:34px;margin:9px 0}.pack-promo-copy>p{font-size:14px;margin:10px 0}.pack-promo-offer{margin-top:15px;padding-top:12px}.pack-promo-copy .pack-type-coverage span{font-size:9px}}
@media(min-width:651px) and (max-height:600px){.pack-promo{aspect-ratio:auto;min-height:290px}.pack-promo-copy{min-height:290px;padding:18px 3% 18px 5%}.pack-promo-copy h3{font-size:32px;margin:7px 0}.pack-promo-copy>p{font-size:12px;margin:7px 0}.pack-promo-offer{margin-top:12px;padding-top:9px}.pack-promo-offer strong{font-size:14px}.pack-promo-copy .pack-type-coverage span{font-size:8px;padding:3px 5px}}

/* The collection shelf uses the promotion too, including inside the map lab frame. */
.shop-browser .pack-select-card img.pack-shelf-promo{object-fit:cover;object-position:85% 50%;border-radius:4px;border:1px solid #c6a35d55;margin:7px 0}

/* Promotional cover typography echoes the selected pack banner. */
.shop-browser .pack-select-card{position:relative;isolation:isolate;padding:14px;justify-content:space-between;box-shadow:0 3px 10px #0003}
.shop-browser .pack-select-card::after{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:linear-gradient(90deg,#020d14cc,#020d1480 43%,transparent 65%),linear-gradient(0deg,#020d14b3,transparent 24%)}
.shop-browser .pack-select-card img.pack-shelf-promo{position:absolute;inset:0;z-index:-2;width:100%;height:100%;max-height:none;margin:0;object-fit:cover;object-position:right center;border:0;border-radius:0;transition:transform .2s ease}
.shop-browser .pack-select-card:hover img.pack-shelf-promo{transform:scale(1.035)}
.shop-browser .pack-shelf-top{justify-content:flex-start}
.shop-browser .pack-shelf-top .badge{font-size:9px;letter-spacing:1.4px;color:#f6e4b7;background:#071a15df;border:1px solid #c7aa6388;padding:5px 8px;border-radius:3px}
.shop-browser .pack-shelf-copy{position:absolute;left:4%;top:51%;transform:translateY(-50%);width:46%;min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;text-align:center;text-shadow:0 2px 8px #000}
.pack-shelf-kicker{font-size:9px;letter-spacing:2.3px;color:#e9ca78;white-space:nowrap}
.shop-browser .pack-shelf-copy h3{font-family:Georgia,serif;font-size:clamp(24px,2.7vw,40px);line-height:1.08;margin:0;color:#ffe5a2;font-weight:400;overflow-wrap:normal;width:100%}
.pack-shelf-rule{width:86%;font-size:9px;color:#d4af54;background:linear-gradient(90deg,transparent,#b58d3a,transparent) center/100% 1px no-repeat}
.pack-shelf-price{position:absolute;right:14px;bottom:14px;white-space:nowrap;color:#ffe09a;font-size:17px;font-weight:700;line-height:1.3;text-shadow:0 2px 5px #000}.pack-shelf-price small{font-size:9px;letter-spacing:1px;color:#d5c89f}
@media(max-width:1000px){.pack-shelf-kicker{font-size:8px;letter-spacing:1px}.shop-browser .pack-shelf-copy h3{font-size:25px}}
@media(max-width:650px){.shop-browser .pack-select-card{padding:10px}.shop-browser .pack-shelf-top .badge{font-size:7px;letter-spacing:.6px;padding:4px 5px}.shop-browser .pack-select-card img.pack-shelf-promo{height:60%;object-position:right center}.shop-browser .pack-select-card::after{background:linear-gradient(0deg,#041b16 18%,#041b16eb 35%,transparent 65%)}.shop-browser .pack-shelf-copy{left:6%;width:88%;top:73%;gap:6px}.shop-browser .pack-shelf-copy h3{font-size:23px}.pack-shelf-kicker{font-size:7px;letter-spacing:1.2px}.pack-shelf-rule{width:65%;font-size:7px}.pack-shelf-price{font-size:14px;right:10px;bottom:9px}.pack-shelf-price small{font-size:8px}}
@media(max-height:600px) and (min-width:651px){.shop-browser .pack-select-card{padding:10px}.shop-browser .pack-shelf-copy{gap:6px}.shop-browser .pack-shelf-copy h3{font-size:24px}.pack-shelf-price{font-size:14px;right:10px;bottom:9px}.shop-browser .pack-shelf-top .badge{font-size:8px;padding:3px 5px}.pack-shelf-kicker{font-size:7px;letter-spacing:.8px}}
@media(prefers-reduced-motion:reduce){.shop-browser .pack-select-card img.pack-shelf-promo{transition:none}.shop-browser .pack-select-card:hover img.pack-shelf-promo{transform:none}}

/* Keep live copy readable on bright collection art (notably Astral). */
.pack-promo::before{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(90deg,#020d15c4,#020d1566 42%,transparent 62%)}
.pack-promo-copy{position:relative;z-index:1}
@media(max-width:650px){.pack-promo::before{display:none}}

.shop-browser>.shop-footer{justify-content:flex-end}

/* Continuous shelf; each snap target is one complete pack row. */
.shop-browser .pack-selection.pack-row-scroller{display:flex;flex-direction:column;gap:12px;overflow-y:auto;overflow-x:hidden;scroll-snap-type:y mandatory;overscroll-behavior-y:contain;scrollbar-width:thin;scrollbar-color:#a78c52 #14271f;scrollbar-gutter:stable;position:relative}
.pack-shelf-row{display:grid;grid-template-columns:repeat(var(--shelf-columns),minmax(0,1fr));gap:12px;flex:0 0 calc((100% - (var(--shelf-visible-rows) - 1)*12px)/var(--shelf-visible-rows));min-height:0;scroll-snap-align:start;scroll-snap-stop:always}
.pack-row-scroller:focus-visible{outline:1px solid #dfbd76;outline-offset:3px}
.pack-row-scroller .shop-no-results{flex:1;align-content:center}
@media(max-width:650px){.pack-shelf-row{gap:8px}}

/* Card Explorer: paged icon library and one fixed detail pane; no vertical scrolling. */
.card-explorer-modal #panel-content{overflow:hidden}
.shop-pack-explorer-page{height:100%;min-height:0;display:flex;flex-direction:column;gap:14px}
.shop-pack-explorer-page>.pack-toolbar{flex:none}.shop-pack-explorer-page>.pack-page-heading,.shop-pack-explorer-page>.pack-odds{display:none}
.card-explorer{flex:1;min-height:0;display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:18px}
.explorer-library,.explorer-detail{min-height:0;min-width:0;border:1px solid #bca46b55;border-radius:7px;background:#0d211be8;padding:18px;overflow:hidden}
.explorer-library{display:flex;flex-direction:column;gap:14px}.explorer-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;flex:none}.explorer-heading h3{font:23px Georgia,serif;color:#f2db9c;margin:0}.explorer-heading>span{font-size:11px;color:#b2bca6}
.shop-pack-explorer-page .pack-preview.explorer-icons{flex:1;min-height:0;display:grid;grid-template-columns:repeat(var(--explorer-columns),minmax(0,1fr));grid-template-rows:repeat(var(--explorer-rows),minmax(0,1fr));gap:10px}
.explorer-icon{position:relative;min-width:0;min-height:0;display:grid;place-items:center;padding:8px;border:1px solid #60735b88;border-radius:5px;background:radial-gradient(ellipse at 50% 35%,#3b5038,#12251d);cursor:pointer;overflow:hidden}
.explorer-icon.selected{border-color:#ffe09a;box-shadow:inset 0 0 0 1px #ffe09a,0 0 13px #d8b35333;background:radial-gradient(ellipse at 50% 35%,#74613a,#273224)}
.shop-pack-explorer-page .pack-preview .explorer-icon img{width:100%;height:100%;min-height:0;object-fit:contain;max-height:100px}.explorer-owned{position:absolute;right:5px;bottom:3px;color:#c8b577;font-size:9px;line-height:1}
.explorer-library>.shop-footer{min-height:24px}.explorer-detail{display:flex;flex-direction:column;gap:18px}.explorer-detail-head{display:flex;align-items:center;gap:14px;flex:none}.explorer-detail-head>img{width:92px;height:100px;object-fit:contain;background:radial-gradient(#42543a,#13271f);border:1px solid #af98594d;border-radius:5px}.explorer-detail-head small{font-size:10px;color:#cdb87e;text-transform:uppercase;letter-spacing:1px}.explorer-detail-head h3{font:27px/1.15 Georgia,serif;color:#f7e0a4;margin:8px 0}.explorer-detail-head span{font-size:9px;color:#9aaa8d;letter-spacing:1px}
.explorer-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 18px;margin:0;padding:15px 0;border-top:1px solid #a18c4e44;border-bottom:1px solid #a18c4e44;flex:none}.explorer-stats>div{display:flex;justify-content:space-between;gap:5px;font-size:12px}.explorer-stats dt{color:#afbea6}.explorer-stats dd{margin:0;color:#f6e5b4}
.explorer-skill{font-size:13px;line-height:1.65;color:#e0e4d4;overflow-wrap:anywhere}.explorer-skill .item-skill-line{display:block;margin:0 0 5px}.explorer-skill .item-skill-kind{color:#e1c77b}.explorer-detail-footer{margin-top:auto;flex:none;display:flex;flex-direction:column;gap:4px;font-size:10px;color:#94a68c}
@media(max-width:650px){.shop-pack-explorer-page{gap:8px}.shop-pack-explorer-page .pack-toolbar>span{display:none}.card-explorer{grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:7px}.explorer-library,.explorer-detail{padding:8px;gap:9px}.explorer-heading{display:block}.explorer-heading h3{font-size:15px}.explorer-heading>span{display:block;margin-top:4px;font-size:9px}.shop-pack-explorer-page .pack-preview.explorer-icons{gap:6px}.explorer-icon{padding:3px}.explorer-detail-head{flex-direction:column;align-items:flex-start;gap:6px}.explorer-detail-head>img{width:55px;height:60px}.explorer-detail-head h3{font-size:20px;margin:5px 0}.explorer-detail-head small{font-size:8px;letter-spacing:0}.explorer-detail-head span{font-size:8px}.explorer-stats{grid-template-columns:1fr;gap:5px;padding:8px 0}.explorer-stats>div{font-size:10px}.explorer-skill{font-size:10px;line-height:1.5}.explorer-detail-footer{font-size:8px}.explorer-library>.shop-footer{flex-direction:column;gap:4px;font-size:9px}.explorer-library .shop-pages{gap:2px}.explorer-library .shop-pages button{padding:4px 5px;font-size:9px}}
@media(max-height:600px){.shop-pack-explorer-page{gap:7px}.card-explorer{gap:10px}.explorer-library,.explorer-detail{padding:8px;gap:6px}.explorer-heading h3{font-size:16px}.explorer-heading>span{font-size:9px}.shop-pack-explorer-page .pack-preview.explorer-icons{gap:6px}.explorer-detail-head{gap:9px}.explorer-detail-head>img{width:40px;height:42px}.explorer-detail-head h3{font-size:19px;margin:3px 0}.explorer-detail-head small,.explorer-detail-head span{font-size:8px;letter-spacing:0}.explorer-stats{padding:5px 0;gap:4px 10px}.explorer-stats>div{font-size:10px}.explorer-skill{font-size:10px;line-height:1.35}.explorer-skill .item-skill-line{margin:0 0 2px}.explorer-detail-footer{font-size:8px;gap:2px}.explorer-library>.shop-footer{min-height:18px}.explorer-library .shop-pages button{padding:3px 6px;font-size:10px}}

.explorer-library .shop-pages{flex-wrap:wrap;justify-content:center}

@media(max-width:650px) and (max-height:600px){.explorer-detail-head{flex-direction:row;align-items:center;gap:6px}.explorer-detail-head>img{width:30px;height:34px}.explorer-detail-head h3{font-size:16px}.explorer-detail-head span{display:none}.explorer-skill{font-size:9px;line-height:1.3}.explorer-detail-footer>span:first-child{display:none}}

/* Keep the reveal art unchanged; its image area is an accessible explorer shortcut. */
.reveal-front>.reveal-image-link{position:absolute;top:0;left:0;width:100%;height:52%;z-index:1;background:transparent;border:0;border-radius:8px 8px 0 0;padding:0;cursor:pointer}
.reveal-front>.reveal-image-link:hover{background:#ffe6a20d;box-shadow:inset 0 0 18px #ffe6a244}
.reveal-front>.reveal-image-link:focus-visible{outline:2px solid #ffe09a;outline-offset:-4px}
@media(max-width:650px){.reveal-front>.reveal-image-link{height:40%}}

/* Pull the chest back: show the complete landscape instead of cropping it to fill a tile. */
.shop-browser .pack-select-card img.pack-shelf-promo{object-fit:contain;object-position:center;transform:none}
.shop-browser .pack-select-card:hover img.pack-shelf-promo{transform:none}
@media(max-width:650px){.shop-browser .pack-select-card img.pack-shelf-promo{left:-40%;width:140%;height:60%;object-fit:contain;object-position:right center}}

/* Full-width price ribbon: only its backing is 70% black; Gold stays opaque. */
.shop-browser .pack-shelf-price{left:0;right:0;bottom:0;display:block;text-align:right;padding:10px 14px;background:rgba(0,0,0,.7);border-top:1px solid #d8be7533}
@media(max-width:650px),(max-height:600px){.shop-browser .pack-shelf-price{padding:8px 10px}}

/* The illustrated face starts at the top edge; the badge floats over it. */
.shop-browser .pack-select-card{align-self:center;width:100%;aspect-ratio:16/10;height:auto;max-height:100%;padding:0;background:#071b16;border-color:#ae905577;border-radius:7px;box-shadow:0 5px 18px #0005}
.shop-browser .pack-select-card img.pack-shelf-promo{inset:0 0 auto;left:0;width:100%;height:calc(100% - 40px);object-fit:cover;object-position:center;transform:none}
.shop-browser .pack-select-card::after{bottom:40px;background:linear-gradient(90deg,#020d14b3,#020d1455 42%,transparent 64%)}
.shop-browser .pack-shelf-top{position:absolute;top:10px;left:10px}
.shop-browser .pack-shelf-top .badge{border-color:#d6b97766;background:#071b16b3;border-radius:2px;padding:4px 7px;font-size:8px;letter-spacing:1px;box-shadow:0 2px 8px #0003}
.shop-browser .pack-shelf-copy{top:calc(50% - 15px);gap:8px}
.shop-browser .pack-shelf-price{height:40px;padding:0 14px;display:flex;align-items:center;justify-content:flex-end;gap:4px;border-top-color:#d6b97744;background:rgba(0,0,0,.7)}
@media(max-width:650px){.shop-browser .pack-select-card{height:100%;aspect-ratio:auto;align-self:stretch}.shop-browser .pack-select-card img.pack-shelf-promo{left:-40%;width:140%;height:60%;object-fit:contain;object-position:right top}.shop-browser .pack-select-card::after{bottom:36px;background:linear-gradient(0deg,#071b16 12%,#071b16ed 32%,transparent 64%)}.shop-browser .pack-shelf-top{top:8px;left:8px}.shop-browser .pack-shelf-top .badge{font-size:7px;padding:3px 5px}.shop-browser .pack-shelf-copy{top:72%;gap:6px}.shop-browser .pack-shelf-price{height:36px;padding:0 10px}}

/* Equipped collections stay grouped; each scroll row belongs to one skill category. */
.pack-shelf-row.has-category{position:relative;padding-top:24px}
.pack-row-category{position:absolute;top:2px;left:1px;font-size:10px;letter-spacing:2px;color:#e5cd91}
.pack-promo[data-open-explorer]{cursor:pointer}.pack-promo[data-open-explorer]:focus-visible{outline:2px solid #f4d68d;outline-offset:-4px}
.pack-promo[data-open-explorer]:hover .pack-promo-rule{color:#fff0b9}
.explorer-icon.equipped-card{border:2px solid #8ae1bd;box-shadow:inset 0 0 12px #86edbb22,0 0 10px #86edbb33}
.explorer-icon.equipped-card.selected{border-color:#9becce;box-shadow:inset 0 0 0 2px #ffe09a,0 0 13px #86edbb44}
.explorer-equipped-marker{position:absolute;left:5px;top:4px;font-size:9px;color:#9becce;text-shadow:0 0 6px #6fddb6}
.explorer-quantity{position:absolute;right:4px;bottom:3px;min-width:21px;padding:2px 4px;border-radius:3px;background:#06150ee8;color:#ffe6a4;font-size:12px;line-height:1.1;text-align:right;font-weight:700}
@media(max-width:650px){.shop-categories button{font-size:9px;padding-left:4px;padding-right:4px}.shop-categories small{margin-left:2px;font-size:8px}.pack-row-category{font-size:8px;letter-spacing:1.2px}.explorer-quantity{font-size:10px;right:2px;bottom:2px}}

.reveal-front>.equipped-match-badge{pointer-events:none}
.gear-stat-pages{display:inline-flex;gap:3px;flex:none}.gear-stat-pages button{font:inherit;font-size:9px;line-height:14px;min-width:20px;padding:0 5px;border:1px solid #8b987266;background:transparent;color:#a5b79d;border-radius:3px;cursor:pointer}.gear-stat-pages button.on{background:#e4ca8a22;color:#f1dca6;border-color:#e4ca8a88}
/* the HUD's corners (owner 2026-10-31: "เอาโลโก้ซ้ายบน ออก", "ย้ายแถบเลือดแบบละเอียดไปอยู่ซ้ายบน", "ย้ายคำว่า your jorney verdant rif hunt togater ไปไว้ซ้ายล่าง"):
   no logo (index.php), your detailed bars top-left (the phone page's own in mobile.css), where you are bottom-left, the party under your bars; your own mana under the bar
   over your head (hud.js mpBar); ⚙ Settings' choices (picture quality, frame rate, the debug buttons) */
body:not(.touch-ui) #hud footer .vitals{position:fixed;top:14px;left:24px}
body:not(.touch-ui) #hud>.location{top:auto;bottom:22px;left:27px}
body:not(.touch-ui) #party-strip{top:106px}
.nameplate .bar.mp{height:3px;margin-top:-2px}
/* over a head (owner 2026-10-31): a player's level in a box (a monster has none), then the bars, HP thick (a tick every 2000 HP, a boss's every 10%: --tick from hud.js bar), your MP thin under it */
.nameplate .plate{display:flex;align-items:center;justify-content:center;gap:2px;margin-top:2px}
.nameplate .lv{min-width:13px;height:13px;padding:0 2px;border:1px solid #c9a96acc;border-radius:3px;background:#0d1a18e6;color:#f6edd0;font:700 9px/11px 'Segoe UI',Tahoma,sans-serif;text-shadow:none;box-shadow:0 1px 3px #000a}
.nameplate .bars{display:flex;flex-direction:column;gap:1px}
.nameplate .plate .bar{margin:0;height:8px;border:1px solid #000c;border-radius:2px;box-shadow:0 1px 3px #0008}
.nameplate .plate .bar.mp{height:4px;margin:0}
.nameplate .bar.hp::after{content:'';position:absolute;inset:0;background:repeating-linear-gradient(90deg,transparent 0 calc(var(--tick,200%) - 1px),#060d0c calc(var(--tick,200%) - 1px) var(--tick,200%))}
:is(.nameplate.player,.hero-summary) .bar.hp{background:#080c0a}
:is(.nameplate.player,.hero-summary) .bar.hp::before{content:'';position:absolute;inset:0 auto 0 var(--health-end,0%);width:var(--shield-width,0%);background:linear-gradient(#fff,#d9e6e8);transition:left .15s,width .15s}
.nameplate.player .bar.hp::after{content:'';position:absolute;inset:0 auto 0 0;width:var(--health-end,0%);background:repeating-linear-gradient(90deg,transparent 0 calc(var(--player-hp-tick,200%) - 1px),#060d0c calc(var(--player-hp-tick,200%) - 1px) var(--player-hp-tick,200%));transition:width .15s;pointer-events:none}
.hero-summary .bar.hp span{z-index:1;text-shadow:0 1px 2px #000,1px 0 #000,-1px 0 #000,0 -1px #000}
.settings-choice{gap:14px}.settings-choice .choice{display:flex;gap:5px;flex-wrap:wrap;justify-content:flex-end;flex:none}.settings-choice .choice button{padding:6px 10px;font-size:12px}
.settings-choice .choice a{padding:6px 10px;border:1px solid #ddbd82;border-radius:5px;font-size:12px;text-decoration:none}
.settings-modal .sheet{width:min(1050px,96vw);height:min(750px,86dvh);max-height:86dvh;display:flex;flex-direction:column;overflow:hidden}
.settings-modal .sheet-head{flex:none}
.settings-modal #panel-content{flex:1;min-height:0;overflow:hidden}
.settings-workspace{display:grid;grid-template-columns:clamp(88px,24%,170px) minmax(0,1fr);grid-template-rows:minmax(0,1fr);gap:clamp(8px,2vw,20px);height:100%}
.settings-categories{display:grid;align-content:start;gap:6px;width:auto;margin:0;min-height:0;overflow:auto;scrollbar-width:thin}
.settings-categories>button{text-align:left;min-width:0;padding-inline:clamp(6px,1.25vw,14px);overflow-wrap:anywhere}
.settings-content{min-width:0;min-height:0;overflow:auto;scrollbar-width:thin}
.settings-content>h3{margin:0 0 10px;color:#e4ca8a}
.settings-content .party-row{flex-wrap:wrap}
.settings-skins .settings-content{display:flex;flex-direction:column;min-height:0}
.settings-skins .heroes-page{flex:1;min-height:0;height:auto}
.settings-skins .hero-tabs{flex-wrap:wrap}
#hud header nav>button[data-panel="codex"],body.touch-ui #m-drawer>button[data-panel="codex"]{background:#080808;color:#ff7070;border-color:#823333}
#hud header nav>button[data-panel="codex"]:hover,body.touch-ui #m-drawer>button[data-panel="codex"]:hover{background:#1a0909;color:#ffa4a4;border-color:#cc5858}
.shop-pack-page .pack-toolbar{--pack-navigation-width:clamp(112px,15vw,176px);--pack-navigation-height:44px}
.shop-pack-page .pack-toolbar :is(#pack-back,.pack-jump){flex:none;width:var(--pack-navigation-width)}
.shop-pack-page .pack-toolbar :is(#pack-back,#pack-jump){box-sizing:border-box;height:var(--pack-navigation-height);min-height:0;margin:0;font-size:clamp(11px,1vw,14px)}
.shop-pack-page .pack-toolbar .pack-jump{display:block;margin:0}
.shop-pack-page .pack-toolbar #pack-jump{display:block;width:100%;max-width:none}
.shop-pack-page .pack-toolbar>[data-op="draw"]{margin-inline-start:auto}
@media(max-width:700px),(max-height:550px){.shop-pack-page .pack-toolbar{--pack-navigation-height:34px}}
@media(max-width:950px){body:not(.touch-ui) #hud footer .vitals{top:96px;left:12px}body:not(.touch-ui) #hud>.location{left:16px;bottom:14px}body:not(.touch-ui) #party-strip{top:178px}}
@media(max-width:550px){body:not(.touch-ui) #hud footer .vitals{width:min(320px,calc(100vw - 24px))}.settings-choice{flex-wrap:wrap}.settings-choice .choice{justify-content:flex-start}}
/* an option's row by its tier from the top (equipment-ui.js optionRank, owner 2026-10-31): the top tier of every option amber, then
   purple, blue, green (a shade lighter: owner 2026-10-31 "optionสีอ่อนลงนิดนึง"); the background of its row (the inspector's and forge's rows, the item details', the item cards' lines) */
.gear-option.opt-r0,.detail-item-options>div.opt-r0,.options.opt-r0{background:linear-gradient(90deg,#b98a42cc,#b98a4240)!important;color:#ffe7b0!important}
.gear-option.opt-r1,.detail-item-options>div.opt-r1,.options.opt-r1{background:linear-gradient(90deg,#8466b0cc,#8466b040)!important;color:#ead8ff!important}
.gear-option.opt-r2,.detail-item-options>div.opt-r2,.options.opt-r2{background:linear-gradient(90deg,#4f7fb0cc,#4f7fb040)!important;color:#d4e9ff!important}
.gear-option.opt-r3,.detail-item-options>div.opt-r3,.options.opt-r3{background:linear-gradient(90deg,#5a8a62cc,#5a8a6240)!important;color:#d6f0d0!important}
.detail-item-options>div[class^="opt-r"] span,.detail-item-options>div[class^="opt-r"] i,.gear-option[class*="opt-r"]>span{color:inherit}
.options[class*="opt-r"]{display:block;border-radius:3px;padding:2px 6px;margin:2px 0}
.detail-item-options>div[class^="opt-r"]{border-radius:3px;padding:0 4px}
/* Community: town world preview, transient party messages, social and consent-based trade. */
#community-hud{position:absolute;left:18px;bottom:148px;width:330px;max-width:34vw;pointer-events:auto;font-size:12px;z-index:5}
#community-hud .chat-preview{padding:12px 14px;border-left:2px solid #b99959;border-radius:3px;background:rgba(0,0,0,.55)}
.chat-line{display:flex;flex-wrap:wrap;gap:3px 8px;line-height:1.5;overflow-wrap:anywhere;padding:3px 0;color:#eee7d3}
.chat-line>span{white-space:pre-wrap}.chat-author{padding:0!important;background:none!important;border:0!important;color:#dac38d!important;font-size:inherit;line-height:inherit;min-height:0!important;text-align:left}.chat-author small{font-size:10px;color:#a8bcb2}.chat-launch{font-size:11px;padding:6px 10px;margin-top:5px;background:#132b25ee;border:1px solid #8e774a}
#community-hud.field-chat .chat-preview{padding:0;border:0;background:none;pointer-events:none}.field-chat .chat-line{background:#07130db8;padding:6px 10px;border-radius:3px;animation:party-chat-fade 8s forwards;pointer-events:auto;text-shadow:0 1px 2px #000}.field-chat .chat-launch{opacity:.75}
@keyframes party-chat-fade{0%,65%{opacity:1}100%{opacity:0;visibility:hidden}}
.community-modal .sheet{width:min(1150px,96vw);height:min(740px,92dvh);display:flex;flex-direction:column}.community-modal #panel-content{min-height:0;flex:1;overflow:hidden;padding-top:12px}
.community-layout{display:grid;grid-template-columns:minmax(250px,1fr) minmax(260px,.85fr);gap:18px;height:100%;min-height:0}.community-main{min-height:0;display:flex;flex-direction:column;background:#0d201bb3;border:1px solid #9b855238;border-radius:5px;overflow:hidden}
.community-tabs{display:flex;gap:3px;padding:8px;flex-shrink:0;border-bottom:1px solid #b9995938;overflow:auto}.community-tabs button{padding:8px 12px;font-size:12px;white-space:nowrap}.chat-channel-heading{padding:12px 15px;color:#b89c60;font-size:11px;letter-spacing:1px}.community-history{flex:1;min-height:0;overflow-y:auto;padding:8px 16px;scrollbar-width:thin}.community-history .chat-line{display:block;border-bottom:1px solid #ffffff08;margin-bottom:6px;padding-bottom:8px;font-size:14px}.community-history .chat-author{margin-right:9px}.chat-compose{display:flex;gap:8px;padding:12px;border-top:1px solid #b9995938;flex-shrink:0}.chat-compose input{min-width:0;flex:1;margin:0;font-size:14px}.chat-compose button{padding:8px 15px}.community-detail{min-height:0;overflow-y:auto;padding:4px 12px 15px 0;scrollbar-width:thin}.community-profile-head h3,.trade-heading h3{font-family:Georgia,serif;font-size:25px;color:#eed6a0;margin:8px 0}.community-profile-head h3 small,.trade-heading h3 small{font-family:inherit;font-size:14px;color:#b6c8bb}.community-actions{display:flex;flex-wrap:wrap;gap:6px;margin:15px 0}.community-actions button{font-size:12px;padding:8px 12px}.community-detail h4{font-size:10px;letter-spacing:1.5px;color:#c5b17f;margin:22px 0 12px}.community-empty{padding:45px 22px;text-align:center;color:#a2b9ae}.community-empty>span{font-size:48px;color:#bda05d}.community-empty h3{font-family:Georgia,serif;font-size:24px;color:#d9ccaa}.community-empty p{line-height:1.7;font-size:13px}
.community-skills article{display:flex;gap:12px;padding:13px 0;border-bottom:1px solid #c6aa5c26}.community-skills img{width:45px;height:45px;object-fit:contain;background:#05110d;border:1px solid #b9995955;border-radius:4px;flex-shrink:0}.community-skills article>div{min-width:0;font-size:12px;line-height:1.65}.community-skills b{display:block;color:#e8d7b0;font-size:14px}.community-skills small{color:#94b7a6;text-transform:uppercase;font-size:10px}.community-friend{display:flex;align-items:center;gap:8px;width:100%;padding:10px;margin-bottom:5px;background:#153127;border:1px solid #6c7f5f44;text-align:left}.community-friend small{margin-right:auto}.community-friend i{width:6px;height:6px;background:#67766c;border-radius:50%}.community-friend i.online{background:#73d599}.community-friend button{font-size:11px;padding:5px}.dm-contacts{display:flex;gap:6px;overflow:auto;padding:0 12px}.dm-contacts button{font-size:11px;padding:6px;white-space:nowrap}
.trade-heading>small{font-size:12px;color:#b9c8bb;line-height:1.6}.trade-heading>button{margin:5px}.trade-offers{display:grid;grid-template-columns:1fr 1fr;gap:8px}.trade-offer{padding:10px;background:#061911;border:1px solid #b9995944;border-radius:4px;min-width:0}.trade-offer h4{margin:0 0 9px}.trade-offer strong{color:#e0bf6d;font-size:15px}.trade-ready{color:#83dca0;display:block;font-size:9px;letter-spacing:0;margin-top:5px}.trade-card{display:flex;align-items:center;gap:7px;font-size:12px;padding:8px 0;overflow-wrap:anywhere}.trade-card img{width:32px;height:32px;object-fit:contain}.trade-card small{display:block;font-size:10px;color:#9eb5a6}.trade-offer>div>small{display:block;color:#9eb5a6;margin:10px 0}.trade-picker{margin-top:18px;font-size:12px}.trade-picker summary{cursor:pointer;color:#d5c18c;margin-bottom:12px}.trade-picker>label{display:flex;align-items:center;gap:10px}.trade-picker input[type=number]{width:120px;margin:0}.trade-inventory{display:grid;grid-template-columns:1fr 1fr;max-height:180px;overflow:auto;gap:5px;margin-top:12px}.trade-inventory label{display:flex;gap:5px;align-items:center;padding:5px;background:#10291e;border:1px solid #ffffff14;font-size:11px;letter-spacing:0;text-transform:none}.trade-inventory label:has(:checked){border-color:#d8b866;background:#39371c}.trade-inventory input{width:auto;margin:0}.trade-inventory img{width:25px;height:25px;object-fit:contain}
@media(max-width:700px),(max-height:550px){#community-hud{left:10px;bottom:115px;width:260px;max-width:33vw;font-size:10px}#community-hud .chat-preview{padding:7px}.chat-preview .eyebrow{font-size:9px}.chat-launch{font-size:10px;padding:5px}.community-modal .sheet{height:94dvh;padding:12px}.community-modal .sheet-head h2{font-size:20px}.community-layout{gap:10px;grid-template-columns:minmax(180px,1fr) minmax(200px,.9fr)}.community-tabs{padding:5px}.community-tabs button{padding:7px;font-size:10px}.community-history{padding:6px 10px}.community-history .chat-line{font-size:12px}.community-detail{padding-right:4px}.community-actions button{font-size:10px}.chat-compose{padding:8px}.chat-compose input{font-size:12px}.community-profile-head h3,.trade-heading h3{font-size:20px}}
@media(max-width:500px) and (orientation:portrait){.community-layout{display:flex;flex-direction:column;overflow:auto}.community-main{min-height:260px;flex-shrink:0}.community-detail{overflow:visible}.community-modal #panel-content{overflow:auto}#community-hud{max-width:65vw;bottom:190px}}
/* Isolate chat tabs from the game's global mobile nav order. */
.community-tabs{margin:0;order:0;width:auto;justify-content:flex-start;position:static}

body.touch-ui #community-hud{left:calc(12px + var(--sl));bottom:calc(158px + var(--sb));max-width:36vw;width:280px}
body.touch-ui .community-modal .sheet{display:flex;flex-direction:column}
@media(prefers-reduced-motion:reduce){.field-chat .field-message{animation-timing-function:steps(1,end)}}
/* Party invitation stays above game menus, with explicit sender feedback. */
#party-invitation{position:fixed;right:20px;top:88px;z-index:80;width:340px;max-width:calc(100vw - 24px);padding:17px 18px;border:1px solid #ceb477;border-radius:7px;background:linear-gradient(135deg,#243b2ffa,#10251ffa);box-shadow:0 10px 35px #0009;color:#f1e7cd;pointer-events:auto}
#party-invitation p{margin:10px 0 14px;font-size:13px;color:#e9dfc6;line-height:1.65}#party-invitation p small{color:#c0cbb4}#party-invitation>div{display:flex;gap:8px}#party-invitation button{font-size:12px;padding:8px 12px}.community-party-feedback{border-left:2px solid #93d4a8;padding:9px 12px;background:#153b2d;color:#bfe9c7;font-size:12px;line-height:1.6}.community-party-feedback.is-error{border-color:#e69b84;color:#f4c4b3;background:#3e2723}
@media(max-height:550px),(max-width:650px){#party-invitation{top:12px;right:12px;width:310px;padding:12px 14px}#party-invitation p{margin:7px 0 10px}}
#party-invitation .party-invitation-error{color:#ffc0a8;font-size:12px;margin:10px 0 0}
/* Empty chat HUD space must not capture the floating joystick or ground taps. */
#community-hud{pointer-events:none}#community-hud .chat-launch,#community-hud .chat-author{pointer-events:auto}
.community-friend .friend-name{display:flex;align-items:center;gap:8px;flex:1;min-width:0;background:transparent;border:0;text-align:left;font-size:13px}.community-friend>button[data-community-trade]{margin-left:auto}
#party-count{display:block;padding:5px 10px;margin:0 0 5px;border:1px solid #b99d5d88;background:#10251ee6;color:#e4cc92;border-radius:4px;font-size:11px;font-weight:600;letter-spacing:.4px;pointer-events:auto}
body.touch-ui #party-count{padding:3px 8px;font-size:10px;margin-bottom:3px}

.community-feedback{padding:9px 13px;margin:0;background:#3d3023;border-left:2px solid #c4a364;color:#f0d6a9;font-size:12px;line-height:1.5;flex-shrink:0}
/* Social workspaces: fixed outer canvas, independently scrolling columns. */
.community-modal .sheet{width:min(1420px,96vw);height:92dvh;max-height:940px}
.community-workspace{height:100%;min-height:0;display:flex;flex-direction:column;gap:10px}
.community-workspace .community-tabs{flex:none;margin:0;padding:0 0 9px;order:0}
.community-workspace .community-layout{display:grid;flex:1;min-height:0;height:auto;gap:14px;overflow:hidden}
.community-layout.world-layout{grid-template-columns:minmax(0,1.25fr) minmax(0,1fr)}
.community-layout.three-layout{grid-template-columns:minmax(180px,.65fr) minmax(230px,1fr) minmax(250px,1fr)}
.community-layout.trade-layout{grid-template-columns:minmax(220px,.9fr) minmax(320px,1.25fr) minmax(240px,1fr)}
.community-chat-pane,.community-roster,.trade-workbench,.trade-inventory-pane{min-width:0;min-height:0;background:#0b1d18c9;border:1px solid #a18b543d;border-radius:7px;display:flex;flex-direction:column;overflow:hidden}
.community-workspace .community-detail{min-height:0;overflow:auto;padding:12px 16px;background:#11251f;border:1px solid #a18b543d;border-radius:7px}
.community-chat-pane .community-history{flex:1;min-height:0}.community-chat-pane .chat-channel-heading{border-bottom:1px solid #b9995926}
.community-feedback{flex:none;margin:0;padding:7px 12px;border-left:2px solid #d5b470;background:#bca15d14;color:#e6d4a8;font-size:12px}
.roster-head{padding:14px 12px;border-bottom:1px solid #b9995926;display:flex;gap:10px;flex-wrap:wrap;align-items:center}.roster-head strong{font-family:Georgia,serif;font-size:20px;color:#e5d3a6}.roster-head button{font-size:11px;padding:6px 9px}
.roster-list{min-height:0;overflow:auto;padding:8px}.roster-person{width:100%;display:flex;align-items:center;gap:9px;text-align:left;padding:12px 9px;margin:0 0 5px;background:#152c24;border:1px solid transparent}.roster-person.selected{border-color:#cfb16f;background:#423d264d}.roster-person>span{min-width:0;overflow-wrap:anywhere}.roster-person small{font-size:10px;color:#98b6a5}.roster-person span>small:last-child{display:block;margin-top:4px;letter-spacing:.5px}
.status-light{display:inline-block;width:7px;height:7px;flex:none;border-radius:50%;background:#647368;vertical-align:middle;margin-right:3px}.status-light.online{background:#6de5a2;box-shadow:0 0 7px #5bdb9b66}
.community-roster .chat-compose{padding:8px;gap:5px}.community-roster .chat-compose input{font-size:12px}.community-roster .chat-compose button{padding:7px;font-size:11px}
.trade-workbench,.trade-inventory-pane{padding:14px;gap:9px}.trade-workbench{overflow:auto}.trade-section-head{display:flex;align-items:center;justify-content:space-between;gap:8px}.trade-section-head h3{font:22px Georgia,serif;color:#e6d3a0;margin:0}.trade-section-head small{font-size:10px;color:#a5b8a9}.trade-gold-label{display:flex;align-items:center;gap:12px;color:#e4c779;font-size:12px;letter-spacing:0;text-transform:none}.trade-gold-label input{min-width:0;flex:1;width:100px;margin:0}.trade-grid-title{font-size:10px;letter-spacing:1px;color:#c6b17b;margin:5px 0 0}.trade-drag-note{font-size:10px;line-height:1.5;color:#a3b2a7;margin:0}.trade-workbench .community-actions{margin:4px 0}.trade-workbench>.muted{font-size:11px}
.trade-item-grid,.trade-inventory-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px;align-content:start}.trade-item-grid{flex:none}.trade-inventory-grid{overflow:auto;flex:1;min-height:0}:root{--inventory-item-background:radial-gradient(ellipse at center,#304539,#07140f)}
.trade-item-icon,.trade-empty-slot{min-width:0;width:100%;aspect-ratio:1;background:var(--inventory-item-background);border:1px solid #a28b4e55;border-radius:4px;position:relative;display:block;padding:4px}.trade-item-icon{cursor:grab;touch-action:none;min-height:0!important}.trade-item-icon:hover,.trade-item-icon.picked{border-color:#f0ce7f;box-shadow:inset 0 0 12px #d3b87533}.trade-item-icon:disabled{opacity:.8;cursor:default}.trade-item-icon img{width:100%;height:100%;object-fit:contain;pointer-events:none}.trade-item-icon b{position:absolute;top:2px;left:4px;font-size:10px;color:#ffe3a0;text-shadow:0 1px 3px #000}.trade-item-icon small{position:absolute;bottom:2px;right:4px;color:#fff;font-size:11px;text-shadow:0 1px 3px #000;background:#0008;padding:0 2px}.trade-empty-slot{background:#06140f99;border-color:#a28b4e22}.other-offer{min-height:50px}.other-offer>small{grid-column:1/-1;color:#8da99a;font-size:11px;padding:10px 0}.trade-pagination{display:flex;align-items:center;justify-content:center;gap:12px;font-size:11px;flex:none}.trade-pagination button{padding:3px 12px}
#community-header-cancel{margin-left:auto;font-size:12px}#community-header-cancel[hidden]{display:none}
#community-notifications{position:fixed;right:18px;top:84px;z-index:90;display:flex;flex-direction:column;gap:10px;max-height:calc(100dvh - 100px);overflow:auto;pointer-events:none;width:min(350px,calc(100vw - 24px))}
#community-notifications .social-notice{position:static;width:auto;max-width:none;padding:17px;border:1px solid #ceb477;border-radius:7px;background:linear-gradient(135deg,#243b2ffa,#10251ffa);box-shadow:0 10px 35px #0009;color:#f1e7cd;pointer-events:auto}.social-notice p{margin:10px 0 14px;font-size:13px;line-height:1.6}.social-notice p small{color:#a6c5b2}.social-notice>div{display:flex;gap:8px}.social-notice button{font-size:12px;padding:8px 12px}
.community-dialog{color:#ede3c8;background:linear-gradient(140deg,#24372e,#0b1f18);border:1px solid #c1a56b;border-radius:10px;padding:25px;width:min(720px,90vw);max-height:90dvh;overflow:auto;box-shadow:0 20px 80px #000b}.community-dialog::backdrop{background:#020b08cf}.community-dialog h2,.community-dialog h3{font-family:Georgia,serif;color:#ecd49d}.community-dialog>p{font-size:12px;color:#b1c3b6;line-height:1.6}.community-dialog input{display:block;margin-top:12px}.community-dialog .community-actions{margin-bottom:0}.final-trade-sides{display:grid;grid-template-columns:1fr 1fr;gap:15px}.final-trade-sides>section{background:#081b14;padding:14px;border:1px solid #ad986048;border-radius:5px;min-width:0}.final-trade-sides h3{font-size:18px;margin:0 0 10px}.final-trade-sides strong{color:#f0d280}.final-item-list{max-height:35dvh;overflow:auto;margin-top:10px}.final-item-list article{display:flex;gap:9px;padding:7px 0;font-size:12px;align-items:center;border-bottom:1px solid #9f955126}.final-item-list img{width:36px;height:36px;object-fit:contain}.final-item-list small{display:block;color:#a9bea9;font-size:10px;line-height:1.5}#trade-quantity{width:min(370px,90vw)}
@media(max-width:1050px){.community-workspace .community-layout{gap:8px}.community-layout.three-layout{grid-template-columns:minmax(140px,.65fr) minmax(180px,1fr) minmax(200px,1fr)}.community-layout.trade-layout{grid-template-columns:minmax(150px,.85fr) minmax(240px,1.2fr) minmax(180px,.9fr)}.trade-workbench,.trade-inventory-pane{padding:9px;gap:6px}.community-workspace .community-detail{padding:10px}.community-workspace .chat-compose{padding:7px;gap:5px}.community-workspace .chat-compose button{font-size:11px;padding:7px}.trade-item-grid,.trade-inventory-grid{gap:3px}.trade-section-head h3{font-size:18px}}
@media(max-height:550px){.community-modal .sheet{height:96dvh;max-height:none;padding:10px 14px}.community-modal .sheet-head{padding-bottom:7px;margin-bottom:0}.community-modal #panel-content{padding-top:7px}.community-workspace{gap:5px}.community-workspace .community-tabs{padding-bottom:5px}.community-workspace .community-tabs button{padding:5px 10px}.community-feedback{padding:4px 8px;font-size:10px}.community-profile-head h3{font-size:19px}.community-actions{margin:9px 0}.roster-head{padding:9px}.roster-head strong{font-size:17px}.roster-person{padding:9px 5px}.community-skills article{padding:9px 0}.chat-channel-heading{padding:9px}.trade-workbench,.trade-inventory-pane{gap:5px}.trade-drag-note{font-size:9px}.trade-workbench .community-actions button{padding:6px;font-size:10px}#community-notifications{top:12px;right:12px;max-height:calc(100dvh - 24px)}.community-dialog{padding:16px}.final-item-list{max-height:28dvh}}
@media(max-width:650px) and (orientation:portrait){.community-workspace .community-layout{display:grid;overflow:auto}.community-layout.world-layout{grid-template-columns:1fr}.community-layout.three-layout,.community-layout.trade-layout{grid-template-columns:1fr}.community-workspace .community-chat-pane{min-height:260px}.community-workspace .community-roster{max-height:180px;min-height:130px}.community-workspace .community-detail{overflow:visible}.trade-inventory-pane{min-height:250px}.community-modal #panel-content{overflow:hidden}.trade-workbench{overflow:visible}.final-trade-sides{gap:7px}.final-trade-sides>section{padding:9px}}
/* Item grids keep full-width empty messages; touch drags take precedence over mobile button panning. */
.trade-inventory-grid>p{grid-column:1/-1;line-height:1.6;margin:0}
body.touch-ui .trade-item-icon{touch-action:none}
.community-profile-head h3{overflow-wrap:anywhere}

/* Town HUD combines authorized channels; the World menu remains World-only. */
#community-hud.town-chat .chat-channel-private,#community-hud.town-chat .chat-channel-private .chat-author,#community-hud.town-chat .chat-channel-private .chat-author small{color:#ffe16b!important}
#community-hud.unified-chat .chat-preview-history .chat-channel-party>span{display:inline;white-space:normal}
#community-hud.unified-chat .chat-preview-history .chat-channel-party>.chat-author{display:inline-block}
#party-strip .party-strip-menu{display:flex;align-items:center;gap:5px;flex-wrap:wrap}
#party-strip .rift-menu{padding:5px 10px;margin:0 0 5px;background:#10251ee6;border:1px solid #b99d5d88;color:#e4cc92;font-size:11px}
body.rift-world #hud>header nav,body.rift-world #m-menu,body.rift-world #m-drawer{display:none!important}
.community-tabs .party-invite-setting{margin-inline-start:auto}
#community-hud .chat-party-tag{color:#ff9acd;font-weight:700}
#community-hud .chat-channel-party .chat-author{color:#ffe1a0!important;font-size:inherit;font-weight:700;vertical-align:baseline;margin:0}
#community-hud .chat-party-separator{color:#aabeb2}
#community-hud .chat-channel-party .chat-message{color:#f2f3e9}

#community-hud [data-preview-channel]{cursor:pointer}
#community-hud .chat-unread{display:block;margin-top:6px;padding:7px 11px;background:#48361aee;border:1px solid #ebc961;color:#ffe08c;font-size:11px;font-weight:700;box-shadow:0 0 12px #d3a53e33}
#community-hud .chat-unread[hidden]{display:none}
#community-hud [data-preview-channel],#community-hud .chat-unread{pointer-events:auto}

.community-history .party-message-time{display:block;text-align:right;color:#8fa99b;font-size:10px;font-variant-numeric:tabular-nums;margin-top:3px}
/* Two clearly separated offers, five visible slots each. */
.trade-workbench{gap:10px}.trade-offer-side{padding:11px;border:1px solid #a28b4e40;border-radius:6px;background:#071a13;display:flex;flex-direction:column;gap:9px}.trade-offer-side.their-side{border-color:#7ea99755;background:#10261f}.trade-offer-side .trade-section-head h3{font-size:18px}.trade-offer-side .trade-section-head small{white-space:nowrap}.trade-offer-side .trade-item-grid{min-height:0;margin:0}.trade-offer-side .trade-item-grid>*{aspect-ratio:1;max-height:72px}.trade-offer-side .trade-gold-label strong{margin-left:auto;min-width:85px;text-align:right;background:#050f0b;padding:9px 12px;border:1px solid #a28b4e44;border-radius:4px;color:#f2cf75}.trade-confirm-actions{flex:none;margin:0!important}.trade-offer-side .trade-gold-label{margin:0}.trade-offer-side input{height:35px;padding:6px 10px}
#trade-quantity{width:min(520px,94vw);padding:19px}.trade-quantity-content{display:grid;grid-template-columns:1fr 1fr;gap:18px}.trade-quantity-summary{min-width:0}.trade-quantity-summary>img{width:42px;height:42px;object-fit:contain;display:block;margin-top:10px}.trade-quantity-summary h3{margin:8px 0;font-size:18px}.trade-quantity-summary p{font-size:12px;line-height:1.7;color:#adc3b5}.trade-quantity-summary b{color:#ffe09b}.trade-quantity-summary label{font-size:10px;display:block}.trade-quantity-summary output{display:block;font-size:30px;color:#ffe09b;background:#07170f;border:1px solid #bda36755;border-radius:5px;padding:7px 12px;font-variant-numeric:tabular-nums}.trade-quantity-summary small{display:block;min-height:25px;color:#ffb8a0;font-size:10px;margin-top:5px}.quantity-keypad{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;align-content:start}.quantity-keypad button{height:48px;font-size:19px;padding:0;background:linear-gradient(#34483a,#1a2d22);border-color:#b39a5d77}.quantity-keypad [data-quantity-key=BACK]{font-size:11px;letter-spacing:1px}.quantity-keypad button:disabled{opacity:.22}.quantity-keypad button:active{background:#8b7144}#trade-quantity .community-actions{margin-top:10px}
#trade-item-detail{width:min(550px,92vw)}.trade-detail-heading{display:flex;gap:16px;align-items:center}.trade-detail-heading>img{width:64px;height:64px;object-fit:contain;background:#06150f;border:1px solid #b49a5c66;border-radius:5px}.trade-detail-heading h3{margin:7px 0;font-size:24px}.trade-detail-skill{padding:17px 0;line-height:1.65;font-size:13px;border-bottom:1px solid #bca15f33}.trade-detail-stats{display:grid;grid-template-columns:1fr 1fr;gap:8px 18px;font-size:12px}.trade-detail-stats>div{display:flex;justify-content:space-between;gap:10px}.trade-detail-stats dt{color:#a4bba9}.trade-detail-stats dd{margin:0;color:#efdab0}#trade-item-detail h4{font-size:10px;letter-spacing:1px;color:#baa26a}.trade-detail-options p{font-size:12px;color:#c8dbb6;margin:6px 0}
@media(max-height:550px){.trade-workbench{gap:5px}.trade-offer-side{padding:6px 8px;gap:5px}.trade-offer-side .trade-section-head h3{font-size:14px}.trade-offer-side .trade-section-head small{font-size:9px}.trade-offer-side .trade-item-grid>*{height:32px;max-height:32px;aspect-ratio:auto;padding:2px}.trade-offer-side .trade-gold-label{font-size:10px}.trade-offer-side .trade-gold-label input{height:28px}.trade-offer-side .trade-gold-label strong{padding:5px 10px}.trade-confirm-actions button{padding:6px!important;font-size:10px!important}#trade-quantity{padding:13px;max-height:96dvh}.quantity-keypad button{height:42px}.trade-quantity-summary>img{float:right;width:33px;height:33px;margin:0}.trade-quantity-summary h3{font-size:15px}.trade-quantity-summary p{margin:5px 0}.trade-quantity-summary output{font-size:23px;padding:5px 10px}.trade-quantity-summary small{min-height:16px}.trade-quantity-content{gap:13px}body.touch-ui #trade-quantity button{min-height:32px}body.touch-ui .community-modal #panel-wallet{display:flex;flex:none;margin-left:auto;padding:6px 9px;gap:5px}body.touch-ui .community-modal #shop-gold{font-size:14px}.community-modal .sheet-head>div:first-child{min-width:0}.community-modal .sheet-head h2{overflow-wrap:anywhere}.community-modal .sheet-head{gap:8px}#community-header-cancel{margin-left:0;font-size:10px;white-space:nowrap}}
.community-modal #community-header-cancel{margin-left:0}
.community-modal #panel-wallet{margin-left:auto;flex:none}

/* World chat: a quiet glass panel, above the entire thumb movement zone. */
#community-hud{display:flex;flex-direction:column;gap:5px}
#community-hud.town-chat .chat-preview{background-color:rgba(0,0,0,.55);background-image:linear-gradient(135deg,#243d3214,#0719111f);border:1px solid #c0a57355;border-left:2px solid #c0a57399;border-radius:8px;padding:11px 13px;box-shadow:0 7px 22px #020b084d,inset 0 1px #e6d4a00a;backdrop-filter:blur(5px);display:flex;flex-direction:column;justify-content:flex-end;min-height:0;overflow:hidden}
#community-hud.town-chat .chat-preview>.eyebrow{font-size:9px;letter-spacing:2px;color:#c9b47e;flex:none;margin-bottom:4px}
#community-hud.town-chat .chat-line{display:block;flex:none;padding:5px 0;line-height:1.55;border-top:1px solid #d0c9a414;text-shadow:0 1px 2px #0008}
#community-hud.town-chat .chat-line>span{display:block}.town-chat .chat-author{font-size:11px}
#community-hud .chat-launch,#community-hud .chat-unread{align-self:flex-start;margin-top:0}
#community-hud .chat-launch{border-color:#a28e5c55;background:#12261de6;border-radius:5px;padding:5px 10px}
body.touch-ui #community-hud{left:calc(196px + var(--sl));bottom:calc(var(--move-wheel-height) + 12px);width:min(280px,calc(100vw - 316px - var(--sl) - var(--sr)));max-width:none;max-height:calc(100dvh - var(--move-wheel-height) - 24px);font-size:11px;gap:4px}
body.touch-ui #community-hud .chat-preview{flex:0 1 auto}
body.touch-ui #community-hud .chat-launch,body.touch-ui #community-hud .chat-unread{flex:none;font-size:10px;padding:4px 8px;min-height:24px}
body.touch-ui #community-hud .chat-line{font-size:11px;max-height:3.1em;padding:3px 0}
body.touch-ui #community-hud .chat-author{font-size:10px}
@media(orientation:landscape) and (max-height:550px){body.touch-ui #community-hud.town-chat .chat-preview{padding:6px 9px}body.touch-ui #community-hud.town-chat .chat-preview>.eyebrow{display:none}}
@media(orientation:portrait){body.touch-ui #community-hud{left:calc(12px + var(--sl));width:min(300px,calc(100vw - 24px - var(--sl) - var(--sr)));max-height:min(220px,calc(100dvh - var(--move-wheel-height) - 190px))}}
body.touch-ui #community-hud .chat-preview{min-height:0;overflow:hidden}
body.touch-ui #community-hud.field-chat .chat-preview{display:flex;flex-direction:column;justify-content:flex-end}
body.touch-ui #community-hud.field-chat .chat-line{flex:none}

body.touch-ui #community-hud .chat-line{padding:2px 0;max-height:calc(3.1em + 6px)}

body.touch-ui #community-hud .chat-author{max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;vertical-align:middle}



/* Unread conversations stay visible while another chat channel is open. */
.community-tabs button{display:inline-flex;align-items:center;gap:8px}
.chat-unread-dot{display:inline-block;flex:none;width:10px;height:10px;margin-left:5px;border-radius:50%;background:#ff0000;border:1px solid #ff8a8a;box-shadow:0 0 8px #ff000099;vertical-align:middle}
.chat-unread-dot[hidden]{display:none!important}
/* Keep the unread shortcut beside Chat so small landscape screens retain a full message row. */
body.touch-ui #community-hud{display:grid;grid-template-columns:max-content minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto}
body.touch-ui #community-hud .chat-preview{grid-column:1/-1;grid-row:1}
body.touch-ui #community-hud .chat-launch{grid-column:1;grid-row:2;justify-self:start}
body.touch-ui #community-hud .chat-unread{grid-column:2;grid-row:2;justify-self:start}

/* Use the same Chat + Unread footer on desktop and touch screens. */
#community-hud{display:grid;grid-template-columns:max-content minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto}
#community-hud .chat-preview{grid-column:1/-1;grid-row:1}
#community-hud .chat-launch{grid-column:1;grid-row:2;justify-self:start}
#community-hud .chat-unread{grid-column:2;grid-row:2;justify-self:start}

/* Trade inventory tools and in-game Gold entry. */
.trade-inventory-filters{display:grid;grid-template-columns:minmax(0,1fr) minmax(90px,.8fr);gap:5px;flex:none}.trade-inventory-filters input,.trade-inventory-filters select{width:100%;min-width:0;margin:0;padding:7px;font-size:12px}.trade-gold-label [data-trade-gold-keypad]{padding:6px 10px;flex:none;font-size:18px}#trade-gold-keypad{width:min(380px,90vw)}#trade-gold-keypad input{font-size:26px;color:#ffe3a0;text-align:right;margin:8px 0 14px;width:100%}#trade-gold-keypad .quantity-keypad{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}@media(max-height:550px){.trade-inventory-filters input,.trade-inventory-filters select{padding:4px;font-size:10px}#trade-gold-keypad{padding:12px}#trade-gold-keypad h3{margin:6px 0}#trade-gold-keypad .quantity-keypad button{min-height:28px;padding:4px}#trade-gold-keypad input{margin:4px 0;font-size:20px}}

@media(max-height:550px){#trade-gold-keypad .eyebrow{display:none}#trade-gold-keypad h3{font-size:20px;margin:0 0 5px}#trade-gold-keypad p{margin:4px 0;font-size:11px}#trade-gold-keypad label{font-size:10px}#trade-gold-keypad input{height:32px;padding:4px 8px;margin:4px 0 7px}body.touch-ui #trade-gold-keypad .quantity-keypad button{height:29px;min-height:29px!important;padding:3px;font-size:14px}#trade-gold-keypad .community-actions{margin-top:7px;gap:6px}body.touch-ui #trade-gold-keypad .community-actions button{min-height:32px!important;padding:5px 10px;font-size:12px}}

/* Unified social menus, field chat and standalone inventory. */
body.field-world header nav>[data-panel]:not([data-panel=inventory]):not([data-panel=chat]):not([data-panel=bag]),body.field-world #m-drawer>[data-panel]:not([data-panel=inventory]):not([data-panel=chat]):not([data-panel=bag]),body.field-world #debug-toggle{display:none!important}
[data-panel=chat],#m-menu{position:relative;display:inline-flex;align-items:center;gap:6px}#m-menu>.menu-chat-unread{position:absolute;right:3px;top:3px}
#field-party-compose{grid-column:1/-1;display:flex;gap:5px;pointer-events:auto;min-width:0;margin-top:4px}#field-party-compose input{min-width:0;width:0;flex:1;margin:0;padding:7px;font-size:12px;background:#061710c4}#field-party-compose button{padding:5px 9px;font-size:11px}
#community-hud.field-chat .chat-preview{background-color:rgba(0,0,0,.55)}
.bag-modal .sheet{height:94dvh;max-height:94dvh;display:flex;flex-direction:column}.bag-modal #panel-content{flex:1;min-height:0;overflow:hidden}.bag-workspace{height:100%;display:grid;grid-template-columns:minmax(0,1.5fr) minmax(240px,1fr);gap:15px}.bag-items,.bag-details{min-height:0;border:1px solid #a18b543d;border-radius:7px;background:#0b1d18c9;padding:14px}.bag-items{display:flex;flex-direction:column;gap:10px}.bag-details{overflow:auto}.bag-grid{flex:1;min-height:0;overflow:auto;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px;align-content:start}.bag-detail-image{height:140px;text-align:center}.bag-detail-image img{height:100%;max-width:100%;object-fit:contain}.bag-details h3{font:24px Georgia,serif;color:#f1d694}.bag-details h4{color:#ccba83;font-size:11px}.bag-new{border-color:#e6c166;box-shadow:inset 0 0 16px #d6aa3930}.bag-grid em{position:absolute;right:3px;top:3px;font-size:9px;color:#102216;background:#f2cf75;padding:1px 3px;font-style:normal}.bag-equipped{position:absolute;bottom:3px;left:4px;color:#a4e6ba;font-size:10px}.floating.trade-success{font-size:22px;font-weight:bold;letter-spacing:2px;text-shadow:0 2px 5px #000,0 0 15px #ddad3a}
@media(max-height:550px){.bag-items,.bag-details{padding:8px}.bag-workspace{gap:8px;grid-template-columns:minmax(0,1.3fr) minmax(200px,1fr)}.bag-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:4px}.bag-detail-image{height:60px}.bag-details h3{font-size:18px;margin:6px 0}.bag-items{gap:5px}.field-chat .chat-preview{max-height:85px}#field-party-compose input{padding:4px;font-size:10px}body.touch-ui #field-party-compose button{min-height:26px;padding:3px 6px}}
@media(max-width:600px) and (orientation:portrait){.bag-workspace{grid-template-columns:minmax(0,1fr) minmax(140px,.85fr);gap:6px}.bag-items,.bag-details{padding:7px}.bag-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.bag-items .trade-inventory-filters{grid-template-columns:1fr}.bag-detail-image{height:70px}.bag-details h3{font-size:17px}.bag-details .trade-detail-skill{font-size:11px}}

.bag-details .item-skill-line{display:block;margin:4px 0}.bag-details .item-skill-kind{color:#cbb7eb}.bag-details .item-skill-target{color:#92c5ba}.bag-details .item-skill-cost{color:#b7d2bb}

@media(orientation:landscape) and (max-height:360px){body.touch-ui #community-hud.field-chat{gap:2px}body.touch-ui #community-hud.field-chat .chat-preview{padding:3px 6px}body.touch-ui #community-hud.field-chat .chat-line{font-size:10px;line-height:1.2;padding:1px 0}body.touch-ui #community-hud.field-chat .chat-author{font-size:9px}body.touch-ui #community-hud.field-chat .chat-launch,body.touch-ui #community-hud.field-chat .chat-unread{min-height:20px;padding:2px 5px;font-size:9px}#field-party-compose{margin-top:1px}body.touch-ui #field-party-compose input{height:22px;padding:2px 5px}body.touch-ui #field-party-compose button{min-height:22px;padding:2px 5px}}

/* Desktop has no movement wheel: use the freed space down to the screen edge. */
#hud>.location{display:none!important}
body:not(.touch-ui) #community-hud{bottom:12px;height:min(48dvh,440px);max-height:calc(100dvh - 260px);width:360px;max-width:calc(100vw - 32px)}
body:not(.touch-ui) #community-hud .chat-preview{height:100%;justify-content:flex-end}

.market-workspace{height:100%;min-height:0;display:flex;flex-direction:column;gap:12px}.market-layout{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(230px,1fr);gap:12px;flex:1;min-height:0}.market-layout.seller-layout{grid-template-columns:minmax(170px,.8fr) minmax(0,1.2fr) minmax(230px,1fr)}.market-listed{min-height:0;overflow:auto;padding:12px;background:#0b1d18c9;border:1px solid #a18b543d;border-radius:7px}.market-listed h3{font:19px Georgia;color:#e6d3a0}.market-list{display:flex;flex-direction:column;gap:6px}.market-list button{display:flex;align-items:center;gap:8px;text-align:left;padding:8px}.market-list img{width:36px;height:36px;object-fit:contain}.market-list small,.market-price small{display:block;color:#a9bcae;font-size:11px;line-height:1.6}.market-price{padding:14px 0;color:#efcc7c;border-top:1px solid #a18b543d}#market-order{display:flex;align-items:end;gap:10px}#market-order label{min-width:0;flex:1}#market-order input{width:100%;margin:4px 0 0}.market-equipped{border-color:#d9bb72;box-shadow:inset 0 0 13px #ceab4533}.market-workspace .community-tabs{flex:none}.market-listed>.muted{font-size:11px;line-height:1.6}
@media(max-height:550px){.market-workspace{gap:5px}.market-layout{gap:6px}.market-layout.seller-layout{grid-template-columns:minmax(130px,.8fr) minmax(150px,1fr) minmax(190px,1fr)}.market-listed{padding:7px}.market-list button{padding:5px;font-size:10px}.market-list img{width:25px;height:25px}.market-listed h3{font-size:15px}.market-price{padding:6px 0}#market-order{flex-wrap:wrap}#market-order button{padding:6px;font-size:11px}}

@media(max-width:600px) and (orientation:portrait){.market-layout{grid-template-columns:minmax(0,1fr) minmax(140px,.9fr);gap:6px}.market-layout.seller-layout{grid-template-columns:minmax(0,1fr) minmax(140px,.9fr);grid-template-rows:110px minmax(0,1fr)}.seller-layout .market-listed{grid-column:1/-1;padding:6px}.market-listed h3{font-size:14px;margin:2px 0 5px}.market-listed>.muted{display:none}.market-list{flex-direction:row;overflow:auto}.market-list button{flex:none;max-width:180px;padding:5px}.market-list span{font-size:10px}.market-list small{font-size:9px}.market-layout .bag-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.market-layout .bag-items,.market-layout .bag-details{padding:6px}.market-layout h3{font-size:17px}.market-layout #market-order{flex-wrap:wrap}.market-layout #market-order button{font-size:11px;padding:6px}}

/* Hero HUD: avatar spans exactly the name, health and mana rows. */
.vitals{--hero-avatar-size:68px;display:grid;grid-template-columns:var(--hero-avatar-size) minmax(0,1fr);gap:10px;align-items:start}.hero-avatar-frame{width:var(--hero-avatar-size);height:var(--hero-avatar-size);border:1px solid #ba9e5b99;border-radius:5px;overflow:hidden;background:radial-gradient(circle at 50% 32%,#455b3d,#10251c 75%);box-shadow:inset 0 0 10px #0006}.hero-avatar-frame img{display:block;width:100%;height:100%;object-fit:cover}.hero-summary{height:var(--hero-avatar-size);display:grid;grid-template-rows:22px 17px 17px;gap:6px;min-width:0}.vitals .hero-line{min-width:0;align-items:center;margin:0;gap:4px;line-height:1.2}.vitals #hero-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.vitals .hero-summary>.bar{margin:0;height:17px}.vitals .hero-summary>.bar span{line-height:15px}#hero-settings{flex:none;display:grid;place-items:center;padding:0;width:22px;height:22px;min-height:0;font-size:16px;line-height:1;border-color:#c3a46555;background:#1a3028;border-radius:4px;color:#e5ce95}#hero-settings:hover{color:#fff0b5;background:#3a4d35}
body.touch-ui .vitals{--hero-avatar-size:50px;gap:6px}body.touch-ui .hero-summary{grid-template-rows:18px 12px 12px;gap:4px}body.touch-ui .vitals .hero-summary>.bar{height:12px;margin:0}body.touch-ui .vitals .hero-summary>.bar span{line-height:10px}body.touch-ui #hero-settings{width:18px;height:18px;min-height:18px;font-size:14px;padding:0}

/* Town: a top heading and direct World composer; only player names navigate. */
body #community-hud.town-chat.unified-chat .chat-preview>.eyebrow,body.touch-ui #community-hud.town-chat.unified-chat .chat-preview>.eyebrow{display:block;padding-bottom:5px}
#community-hud.town-chat.unified-chat #field-party-compose{grid-row:2;margin-top:0}
#field-party-compose [data-quick-channel]{flex:none;white-space:nowrap}
.map-roster-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:5px;margin-bottom:5px}
.map-roster-row>.roster-person{margin:0}
.map-roster-row>[data-party-invite]{font-size:10px;padding:6px;max-width:92px;line-height:1.2}
#community-hud.town-chat.unified-chat .chat-unread{grid-column:1/-1;grid-row:3}
#community-hud .chat-line{cursor:default}
#community-hud .chat-author[data-preview-channel]{cursor:pointer}

body #community-hud.town-chat.unified-chat .chat-preview{justify-content:flex-start}
#community-hud.unified-chat .chat-preview-history{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;touch-action:pan-y;pointer-events:auto}
#community-hud.unified-chat .chat-preview-history .chat-line{display:block;max-height:none;overflow:visible}
#community-hud.unified-chat .chat-preview-history .chat-line>span{white-space:pre-wrap;overflow-wrap:anywhere}
/* Defeat: the scene remains visible above the recovery panel. */
#death{--defeat-ink:#0d0b0b;--defeat-gold:#c5a270;--defeat-red:#f4a99e;position:fixed;inset:0;z-index:25;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;padding:12px 14px max(7dvh,calc(env(safe-area-inset-bottom) + 18px));pointer-events:none;background:radial-gradient(ellipse at 50% 42%,transparent 16%,#24090f42 62%,#0a0308bc 100%),linear-gradient(0deg,#060407e8,transparent 54%);animation:death-in .32s ease-out}
#death[hidden]{display:none}
#death .death-box{position:relative;width:min(100%,510px);pointer-events:auto;text-align:center;padding:24px 20px 20px;border:1px solid #9e704969;border-radius:7px;background:radial-gradient(ellipse at 50% 0%,#3d1920e8,var(--defeat-ink) 70%);box-shadow:0 10px 36px #000a,inset 0 0 0 3px #090609,inset 0 0 0 4px #c5a27026}
#death .death-crest{position:absolute;left:50%;top:0;transform:translate(-50%,-54%);display:grid;place-items:center;width:44px;height:44px;color:var(--defeat-gold);filter:drop-shadow(0 3px 5px #000)}
#death .death-crest svg{width:100%;height:100%;fill:#221016;stroke:currentColor;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round}
#death h2{margin:4px 0 10px;font:600 clamp(22px,5.4vw,46px)/1.08 Georgia,serif;letter-spacing:.07em;color:var(--defeat-red);text-shadow:0 2px 3px #000,0 0 18px #88334780}
#death .death-count{margin:0 0 13px;color:#f2e3c6;font-size:clamp(13px,2.2vw,18px);line-height:1.3;font-variant-numeric:tabular-nums}
#death .death-town{min-height:38px;padding:8px 20px;font-size:14px;color:#ffecc7;background:linear-gradient(#443024,#221713);border:1px solid #aa8357;border-radius:4px;box-shadow:inset 0 1px #efcf9252}
#death .death-town:hover:not(:disabled){background:linear-gradient(#62402c,#302018);border-color:#e6bf87}
#death .death-town:focus-visible{outline:2px solid #f5cf92;outline-offset:3px}
@keyframes death-in{from{opacity:0}to{opacity:1}}
@media(max-height:480px){
 #death{padding-bottom:max(4dvh,calc(env(safe-area-inset-bottom) + 8px))}
 #death .death-box{width:min(92vw,430px);padding:16px 14px 10px}
 #death .death-crest{width:32px;height:32px}
 #death h2{font-size:clamp(20px,5.6dvh,30px);margin:3px 0 6px}
 #death .death-count{margin-bottom:7px}
 #death .death-town{min-height:32px;padding-block:5px}
}
@media(prefers-reduced-motion:reduce){#death{animation:none}}

/* Rift shares the city chat frame; only its channel and composer differ. */
#community-hud.unified-chat.field-chat .chat-preview{max-height:none}
#community-hud.unified-chat.field-chat .chat-line{animation:none;background:none;border-radius:0;pointer-events:auto}
body.touch-ui #community-hud.unified-chat.field-chat .chat-preview{justify-content:flex-start}

/* Inventory and both Market views share one slot size, regardless of pane width. */
.bag-modal #panel-content{container-type:inline-size;--inventory-slot-size:max(42px,calc(10cqw - 11.5px))}
.bag-modal .bag-grid{grid-template-columns:repeat(auto-fill,min(var(--inventory-slot-size),100%))}
.market-layout.seller-layout{grid-template-columns:minmax(150px,.65fr) minmax(0,1.5fr) minmax(230px,1fr)}
@media(max-height:550px){.bag-modal #panel-content{--inventory-slot-size:max(42px,calc(9.42cqw - 7.1px))}.market-layout.seller-layout{grid-template-columns:minmax(120px,.6fr) minmax(0,1.5fr) minmax(190px,1fr)}}
@media(max-width:600px) and (orientation:portrait){.bag-modal #panel-content{--inventory-slot-size:max(40px,calc(13cqw - 4px))}.market-layout.seller-layout{grid-template-columns:minmax(0,1fr) minmax(140px,.9fr)}}

/* Passive collection titles use white on both the shelf and the pack page. */
.shop-browser [data-pack-category=passive] .pack-shelf-copy h3,
.shop-pack-page[data-pack-category=passive] .pack-page-heading h3,
.shop-pack-page[data-pack-category=passive] .pack-promo-copy h3{color:#fff}

#trade-id-invite{width:min(100%,320px);text-align:left}#trade-id-invite>div{display:flex;gap:6px;margin-top:6px}#trade-id-invite input{width:0;flex:1;min-width:0}#trade-id-invite label{color:#d9c48b;font-size:12px}

@media(max-width:650px) and (orientation:portrait){
.community-layout.trade-layout:has(#trade-id-invite){grid-template-rows:minmax(260px,auto) minmax(260px,1fr)}
.trade-layout:has(#trade-id-invite)>.trade-workbench{grid-row:1;overflow:auto;justify-content:center;min-height:260px;gap:8px}
.trade-layout:has(#trade-id-invite)>.trade-workbench>*{flex-shrink:0;margin-top:0;margin-bottom:0}
.trade-layout:has(#trade-id-invite)>.trade-workbench>span{font-size:36px;line-height:1.2}
.trade-layout:has(#trade-id-invite)>.community-chat-pane{grid-row:2}
.trade-layout:has(#trade-id-invite)>.community-empty:last-child{display:none}
}

#community-hud .chat-channel-system{color:#ffe9ac}#community-hud .chat-system-author{display:block;font-size:10px;color:#d8ba75;letter-spacing:.6px}
/* The character page (heroes-page.js; owner 2026-11-01): a tab per line, the one picked large on the left with its button, the cards in a
   grid that scrolls (each with its price tag: Free, 199 THB, Wearing). A narrow phone: the picked one in a row on top; a low one
   (landscape): a narrower left column */
.heroes-modal .sheet{width:min(1180px,96vw)!important;height:min(820px,92dvh);max-height:92dvh;overflow:hidden;display:flex;flex-direction:column}
.heroes-modal #panel-content{flex:1;min-height:0;overflow:hidden}
.heroes-page{height:100%;display:flex;flex-direction:column;gap:12px}
.hero-tabs{display:flex;gap:6px;flex-wrap:wrap;flex:none}
.hero-tab{display:inline-flex;align-items:center;gap:7px}
.hero-tab small{font-size:11px;opacity:.7}
.hero-tab.on{background:#bd9757;color:#17231d;border-color:#ddbd82;font-weight:700}
.hero-body{flex:1;min-height:0;display:grid;grid-template-columns:260px minmax(0,1fr);gap:16px}
.hero-pick{display:flex;flex-direction:column;align-items:center;gap:8px;padding:12px;border:1px solid #ba9e5b55;border-radius:8px;background:radial-gradient(ellipse at 50% 35%,#3a4d3f 0,#17231d 75%);overflow:auto}
.hero-pick img{width:100%;max-width:240px;height:auto;aspect-ratio:3/4}
.hero-pick-text{text-align:center;display:flex;flex-direction:column;align-items:center;gap:6px}
.hero-pick h3{margin:0;font-size:20px;color:#f2e3c6}
.hero-pick small{color:#a9b8a8;letter-spacing:.06em}
.hero-pick p{margin:0;font-size:13px;color:#d7dccb;line-height:1.4}
.hero-pick button{min-width:160px}
.hero-grid{overflow:auto;display:grid;grid-template-columns:repeat(auto-fill,minmax(118px,1fr));gap:10px;align-content:start;padding:2px 4px 8px 2px}
.hero-card{position:relative;display:flex;flex-direction:column;align-items:center;gap:4px;padding:6px 6px 8px;border-radius:8px;background:#1b2a22e8}
.hero-card img{width:100%;height:auto;aspect-ratio:3/4;display:block}
.hero-card span{font-size:12px;line-height:1.2;text-align:center;min-height:2.4em;display:flex;align-items:center}
.hero-card.picked{border-color:#e4c477;box-shadow:0 0 0 2px #e4c47788 inset}
.hero-card.paid img{filter:saturate(.75) brightness(.85)}
.hero-tag{position:absolute;top:6px;right:6px;font-size:10px;padding:2px 6px;border-radius:4px;letter-spacing:.04em}
.hero-tag.free{background:#3f7a52;color:#e8f6e6}
.hero-tag.paid{background:#5a4a28e8;color:#f2d99a}
.hero-tag.worn{background:#bd9757;color:#17231d}
.hero-avatar-frame{cursor:pointer}
.hero-avatar-frame:hover,.hero-avatar-frame:focus-visible{border-color:#e4c477;outline:none}
/* Status icons follow the hero's world-space health plate, not the corner portrait HUD. */
.nameplate.player .bars{position:relative}
#hero-statuses{position:absolute;left:calc(100% + 4px);top:50%;transform:translateY(-50%);pointer-events:auto;z-index:16;color:#efd08a}
.party-statuses{position:absolute;left:calc(100% + 4px);top:50%;transform:translateY(-50%);pointer-events:none;z-index:16;color:#f4d38b;display:grid;grid-auto-flow:column;grid-auto-columns:16px;gap:1px;line-height:16px}
.party-statuses span{display:grid;place-items:center;width:16px;height:16px}
.party-statuses .debuff{color:#f4a092}
#hero-statuses .hero-status-list{display:grid;grid-auto-flow:column;grid-auto-columns:16px;gap:1px}
#hero-statuses button.hero-status-icon{position:relative;width:16px;height:16px;min-height:0;margin:0;padding:0;display:grid;place-items:center;border:0;border-radius:0;background:transparent;color:#f4d38b;box-shadow:none;touch-action:manipulation;line-height:1;font-family:'Segoe UI',Tahoma,sans-serif}
#hero-statuses button.hero-status-icon:hover,#hero-statuses button.hero-status-icon[aria-expanded=true]{background:transparent;box-shadow:none;filter:brightness(1.2)}
:is(#hero-statuses,.party-statuses) svg{width:16px;height:16px;fill:currentColor;filter:drop-shadow(0 1px 1px #000);pointer-events:none}
:is(#hero-statuses,.party-statuses) svg .cut{fill:#10271b}
:is(#hero-statuses,.party-statuses) svg .status-mark{fill:none;stroke:#adf0a2;stroke-width:2.8;stroke-linecap:round;stroke-linejoin:round;paint-order:stroke;transform-origin:25px 16px}
:is(#hero-statuses,.party-statuses) svg .status-mark.down{transform:rotate(180deg);stroke:#ff9b91}
#hero-statuses .status-seconds,#hero-statuses .status-stacks{display:none}
#hero-statuses button[data-status=more]>b{display:none}
#hero-statuses button[data-status=more]::after{content:'…';font-size:14px;color:currentColor}
#hero-statuses button.debuff{color:#f4a092}
#hero-statuses button.expiring{animation:hero-status-expire .8s ease-in-out infinite alternate}
#hero-status-detail{position:absolute;right:0;top:calc(100% + 7px);width:230px;max-height:210px;overflow:auto;padding:9px;background:#08170ff5;border:1px solid #bda164;border-radius:6px;box-shadow:0 5px 18px #000a;color:#e7e4cc;font:11px/1.4 'Segoe UI',Tahoma,sans-serif;cursor:default;white-space:normal;text-align:left;text-shadow:none}
#hero-status-detail section+section{border-top:1px solid #7a805044;padding-top:7px;margin-top:7px}
#hero-status-detail strong{color:#f5d38a;font-weight:600}#hero-status-detail p{margin:3px 0;color:#d6e3cc}#hero-status-detail small{display:block;color:#b1c5ab;font-size:10px}
@keyframes hero-status-expire{to{opacity:.5}}
@media(max-width:650px){#hero-status-detail{width:180px;max-height:170px;font-size:10px}}
@media(prefers-reduced-motion:reduce){#hero-statuses button.expiring{animation:none}}
@media (max-height:500px) and (min-width:701px){.heroes-modal .sheet{height:96dvh;max-height:96dvh;padding:8px 12px}.heroes-modal .sheet-head .eyebrow{display:none}.heroes-page{gap:6px}.hero-body{grid-template-columns:170px minmax(0,1fr);gap:10px}.hero-pick{padding:6px;gap:3px;justify-content:center}.hero-pick img{max-width:78px}.hero-pick-text{gap:3px}.hero-pick h3{font-size:14px}.hero-pick small{font-size:10px}.hero-pick p{font-size:10.5px;line-height:1.3}.hero-pick button{min-width:0;padding:5px 12px;font-size:12px}.hero-grid{grid-template-columns:repeat(auto-fill,minmax(92px,1fr));gap:6px}.hero-card span{font-size:11px}}
@media (max-width:700px){.heroes-modal .sheet{width:100vw!important;height:100dvh;max-height:100dvh;padding:8px 10px}.heroes-modal .sheet-head .eyebrow{display:none}.heroes-page{gap:8px}.hero-body{grid-template-columns:1fr;grid-template-rows:auto minmax(0,1fr);gap:8px}.hero-pick{flex-direction:row;padding:6px 10px;gap:10px}.hero-pick img{width:72px;max-width:72px}.hero-pick-text{align-items:flex-start;text-align:left;gap:3px}.hero-pick h3{font-size:16px}.hero-pick p{font-size:11px}.hero-pick button{min-width:0;padding:6px 12px}.hero-grid{grid-template-columns:repeat(auto-fill,minmax(88px,1fr));gap:6px}.hero-card span{font-size:11px}}
/* the Codex, a page of the Card Shop (assets/codex-ui.js, 2026-11-02) */
.shop-filters .codex-open{padding:9px 14px;font-size:12px;border-color:#e4c477;color:#f2db9c}
.codex-modal #panel-content{overflow:hidden}
.codex-page{height:100%;min-height:0;display:flex;flex-direction:column;gap:10px}
.codex-filters{flex:none;display:flex;flex-wrap:wrap;align-items:center;gap:8px}.codex-filters button{padding:8px 11px;font-size:12px}.codex-filters select{padding:9px;font-size:12px;max-width:170px}
.codex-label{font-size:10px;letter-spacing:1px;text-transform:uppercase;color:#cdb87e}.codex-search{flex:1;min-width:150px}.codex-search input{width:100%;font-size:12px;padding:9px 11px}
.codex-main{flex:1;min-height:0;display:grid;grid-template-columns:150px minmax(0,1fr) minmax(0,.8fr);grid-template-rows:minmax(0,1fr);gap:12px}
.codex-types{min-height:0;overflow:auto;display:flex;flex-direction:column;gap:4px;border:1px solid #bca46b55;border-radius:7px;background:#0d211be8;padding:10px}
.codex-types h4,.codex-detail h4{margin:0 0 5px;font-size:10px;font-weight:600;letter-spacing:1px;text-transform:uppercase;color:#cdb87e}
.codex-type{flex:none;display:flex;justify-content:space-between;align-items:center;gap:6px;padding:6px 9px;font-size:12px;text-align:left}.codex-type small{opacity:.7}
.explorer-library.codex-library{padding:12px;gap:10px}
.codex-tiles{--codex-gap:8px;flex:1;min-height:0;container-type:size;display:grid;grid-template-columns:repeat(var(--codex-columns),auto);justify-content:start;align-content:start;gap:var(--codex-gap)}
.codex-tile{--codex-side:min(calc((100cqw - (var(--codex-columns) - 1)*var(--codex-gap))/var(--codex-columns)),calc((100cqh - (var(--codex-rows) - 1)*var(--codex-gap))/var(--codex-rows)));width:var(--codex-side);height:var(--codex-side);position:relative;min-width:0;min-height:0;display:flex;flex-direction:column;align-items:center;gap:3px;padding:5px;border:1px solid #60735b88;border-radius:5px;background:radial-gradient(ellipse at 50% 35%,#3b5038,#12251d);cursor:pointer;overflow:hidden}
.codex-tile img{flex:1;min-height:0;width:100%;object-fit:contain}.codex-tile-name{flex:none;width:100%;max-height:2.4em;overflow:hidden;font-size:10px;line-height:1.2;text-align:center;color:#e6e3cf}
.codex-tile.selected{border-color:#ffe09a;box-shadow:inset 0 0 0 1px #ffe09a,0 0 13px #d8b35333;background:radial-gradient(ellipse at 50% 35%,#74613a,#273224)}
.codex-none{flex:1;display:flex;flex-direction:column;justify-content:center}
.explorer-detail.codex-detail{padding:12px;gap:10px}.codex-detail-scroll{flex:1;min-height:0;overflow:auto;display:flex;flex-direction:column;gap:12px}.codex-detail .explorer-detail-head>img{width:72px;height:78px}.codex-detail .explorer-detail-head h3{font-size:22px;margin:5px 0}
.codex-found{flex:none;border-top:1px solid #a18c4e44;padding-top:9px;display:flex;flex-direction:column;gap:6px}
.codex-go{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:7px 10px;text-align:left;border-color:#e4c477}.codex-go>span:first-child{min-width:0;display:flex;flex-direction:column;gap:2px}.codex-go b{font-size:12px;color:#f2db9c}.codex-go small{font-size:10px;color:#aabd9f}.codex-go-label{flex:none;font-size:11px;color:#f2db9c}
.codex-no-data{margin:0;padding:8px 10px;border:1px dashed #60735b;border-radius:5px;font-size:12px;color:#aabd9f;text-align:center}
.codex-library .shop-pages{flex-wrap:wrap;justify-content:flex-end}.codex-library .shop-pages button{padding:4px 8px;font-size:10px}
.codex-hunt{flex:none;margin:8px 0 0;padding:6px 10px;border:1px solid #bca46b55;border-radius:5px;background:#0d211be8;font-size:12px;color:#d6dcc8;text-align:center}.codex-hunt b{color:#f2db9c}
@media(max-width:900px){.codex-main{grid-template-columns:112px minmax(0,1fr) minmax(0,.9fr);gap:8px}.codex-type{padding:5px 6px;font-size:11px}.codex-tile-name{font-size:9px}.codex-filters select{max-width:120px;font-size:11px}}
@media(max-height:600px){.codex-page{gap:6px}.codex-filters{gap:5px}.codex-filters button{padding:5px 8px;font-size:10px}.codex-filters select{padding:5px;font-size:10px;max-width:104px}.codex-label{display:none}.codex-search{min-width:100px}.codex-search input{padding:5px 8px;font-size:10px}.codex-main{grid-template-columns:104px minmax(0,1fr) minmax(0,1fr);gap:6px}.codex-types{padding:5px;gap:3px}.codex-types h4,.codex-detail h4{font-size:8px;margin:0 0 2px}.codex-type{padding:3px 5px;font-size:9px}.explorer-library.codex-library,.explorer-detail.codex-detail{padding:6px;gap:5px}.codex-library .explorer-heading h3{font-size:13px}.codex-tiles{--codex-gap:4px}.codex-tile{padding:2px}.codex-tile-name{font-size:8px}.codex-detail-scroll{gap:5px}.codex-detail .explorer-detail-head>img{width:36px;height:38px}.codex-detail .explorer-detail-head h3{font-size:14px;margin:2px 0}.codex-found{padding-top:4px;gap:3px}.codex-go{padding:3px 6px}.codex-go b{font-size:10px}.codex-go small{font-size:8px}.codex-go-label{font-size:9px}.codex-no-data{padding:4px;font-size:10px}.codex-library .shop-pages button{padding:2px 5px;font-size:9px}.codex-library>.shop-footer>span{display:none}.codex-library>.shop-footer{justify-content:center}.explorer-detail.codex-detail{overflow:auto}.codex-detail-scroll{flex:none;overflow:visible}.codex-hunt{margin:4px 0 0;padding:2px 6px;font-size:10px}}
@media(max-width:650px){.shop-filters .codex-open{padding:7px 10px;font-size:11px}.codex-page{gap:6px}.codex-filters{gap:5px}.codex-filters button{padding:6px 8px;font-size:10px}.codex-filters select{flex:1;min-width:0;max-width:none;padding:6px;font-size:10px}.codex-filters label:has(select){flex:1 1 28%;min-width:0}.codex-filters label select{width:100%}.codex-label{display:none}.codex-search{flex:1 1 100px;min-width:90px;order:1}#codex-close{order:0}#codex-cd0{order:2}#codex-clear{order:3}.codex-filters label:has(select){order:4}.codex-search input{padding:6px 8px;font-size:11px}.codex-main{grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto minmax(0,1fr);gap:6px}.codex-types{flex-direction:row;overflow-x:auto;overflow-y:hidden;padding:4px;gap:4px}.codex-types h4{display:none}.codex-type{padding:5px 8px;font-size:10px;white-space:nowrap}.explorer-library.codex-library,.explorer-detail.codex-detail{padding:7px;gap:5px}.codex-library .explorer-heading{display:flex}.codex-library .explorer-heading h3{font-size:14px}.codex-library .explorer-heading>span{display:inline;margin:0}.codex-tiles{--codex-gap:5px;flex:none;container-type:normal;grid-template-columns:repeat(var(--codex-columns),minmax(0,1fr));justify-content:stretch}.codex-tile{width:auto;height:auto;aspect-ratio:1/1;padding:2px}.codex-tile-name{font-size:8px}.codex-library>.shop-footer{flex-direction:row;font-size:9px}.codex-detail-scroll{gap:7px}.codex-detail .explorer-detail-head{flex-direction:row;align-items:center;gap:9px}.codex-detail .explorer-detail-head>img{width:48px;height:52px}.codex-detail .explorer-detail-head h3{font-size:17px;margin:2px 0}.codex-detail .explorer-stats{grid-template-columns:repeat(2,minmax(0,1fr));padding:6px 0}.codex-found{padding-top:5px;gap:4px}.codex-go{padding:4px 8px}.codex-go>span:first-child{flex-direction:row;flex-wrap:wrap;align-items:baseline;gap:0 6px}.codex-go b{font-size:11px}.codex-go small{font-size:9px}.codex-go-label{font-size:10px}.codex-hunt{margin:4px 0 0;padding:3px 6px;font-size:10px}}
/* ATTACK's hunt is on (2026-11-02): lit until the hero moves */
#attack-main.hunting{border-color:#f2db9c;box-shadow:0 0 0 2px #f2db9c,0 0 20px #e4c477}
/* Painted combat emblems; spans retain their accessible button labels and hit targets. */
#combat-wheel .attack-control>span{display:block;width:28px;height:28px;flex:none;font-size:0;line-height:0;background:center/contain no-repeat;pointer-events:none}
#combat-wheel #attack-main>span{width:62px;height:62px;background-image:url('ui/emerald-noir/attack-crossed-v1.webp')}
#combat-wheel #attack-main>small{margin-top:0}
#combat-wheel #attack-boss>span{background-image:url('ui/emerald-noir/attack-boss-v1.webp')}
#combat-wheel #heal-assist>span{background-image:url('ui/emerald-noir/support-ally-v1.webp')}
/* Reference-style MOBA targeting buttons: full green-and-gold disc art, no gold frame or captions. */
#combat-wheel button:is(#attack-main,#attack-boss){background:transparent;border:0;box-shadow:none}
#combat-wheel button:is(#attack-main,#attack-boss)>span{position:absolute;inset:0;width:100%;height:100%;background-size:contain}
#combat-wheel button#attack-main>span{background-image:url('ui/emerald-noir/attack-fist-v3.webp')}
#combat-wheel button#attack-boss>span{background-image:url('ui/emerald-noir/attack-boss-v3.webp')}
#combat-wheel button:is(#attack-main,#attack-boss)>small{display:none}
#combat-wheel button#attack-main.hunting{box-shadow:0 0 15px #e3c376b3}
/* the whole map, grown out of the minimap (assets/game/big-map.js, owner 2026-11-03): .bm-frame starts on the minimap (an inline transform) and grows to the middle */
#minimap{pointer-events:auto;cursor:pointer}
#big-map{position:fixed;inset:0;z-index:80;display:flex;align-items:center;justify-content:center;background:#07130dd9;cursor:pointer;opacity:0;transition:opacity .22s}
#big-map.open{opacity:1}
#big-map .bm-frame{position:relative;flex:none;overflow:hidden;border:2px solid #a18c4e;border-radius:50%;background:#1d3f27;box-shadow:0 10px 40px #000a;transform-origin:0 0;transition:transform .22s cubic-bezier(.2,.8,.2,1),border-radius .22s}
#big-map.open .bm-frame{transform:none!important;border-radius:8px}
#big-map canvas{display:block;width:100%;height:100%}
#big-map b{position:absolute;top:8px;left:12px;font-size:15px;letter-spacing:.5px;color:#f2db9c;text-shadow:0 1px 3px #000}
#big-map p{position:absolute;left:8px;bottom:6px;margin:0;padding:3px 8px;border-radius:5px;background:#0d1c17cc;font-size:11px;color:#d6dcc8;display:flex;align-items:center;gap:4px}
#big-map p i{display:inline-block;width:8px;height:8px;margin-left:6px;border-radius:50%}
#big-map p i:first-child{margin-left:0}
#big-map i.you{background:#fff0ba;box-shadow:0 0 0 1px #1b2d26}#big-map i.ally{background:#9cdbed}#big-map i.foe{background:#d78868}#big-map i.warp{border:2px solid #f9df96;width:6px;height:6px}
#big-map button{position:absolute;top:10px;right:10px;width:38px;height:38px;padding:0;border-radius:50%;font-size:16px;line-height:1}
@media (prefers-reduced-motion:reduce){#big-map,#big-map .bm-frame{transition:none}}

/* Session gate: guests do not load WebGL; signed-in players see only the black loading screen. */
body.auth-checking,body.engine-loading{background:#000}
body.auth-checking #loading,body.engine-loading #loading{display:grid!important;position:fixed;inset:0;width:100%;height:100%;place-items:center;background:#000;color:#e8e8e8;z-index:90;font-size:14px;letter-spacing:2px;pointer-events:auto}
body.auth-checking #login,body.engine-loading #login{display:none!important}
.social-auth{display:grid;gap:8px;margin:16px 0 8px;padding-top:14px;border-top:1px solid #b9995938}.social-auth p{font-size:12px;margin:0;color:#c5b284}.social-auth button{width:100%;padding:10px}.social-auth [data-oauth=google]{background:#f5f5f5;color:#202124;border-color:#dadce0}.social-auth [data-oauth=facebook]{background:#1877f2;color:#fff;border-color:#1877f2}.social-auth small{font-size:10px;line-height:1.4;letter-spacing:0}

#login{overflow-y:auto;align-items:flex-start}#login .auth{margin:auto;flex-shrink:0}
@media(orientation:landscape) and (max-height:500px){body.touch-ui .auth .social-auth{grid-column:1/-1;grid-template-columns:1fr 1fr;margin:6px 0;padding-top:8px;gap:5px}body.touch-ui .social-auth>p,body.touch-ui .social-auth>small{grid-column:1/-1}body.touch-ui .social-auth button{min-height:36px;padding:6px;font-size:12px}}

/* the onboarding (assets/game/onboard.js, 2026-11-03): a new hero's name, its look, the guide to its first cards; the city gate's warning */
.onboard-veil{position:fixed;inset:0;z-index:85;display:flex;align-items:center;justify-content:center;padding:16px;background:#050e0acc;backdrop-filter:blur(6px);pointer-events:auto}
.onboard-veil[hidden]{display:none}
#gate-warning{z-index:86;background:#050e0a99}
.onboard-card{width:min(440px,100%);max-height:calc(100dvh - 32px);overflow:auto;padding:24px 26px;color:#e7e2d4;display:flex;flex-direction:column;gap:10px}
.onboard-card h2{margin:0;font-size:22px;color:#f1dfb0;letter-spacing:.5px}
.onboard-card p{margin:0;font-size:13px;line-height:1.5;color:#cfd3c6}
.onboard-card .eyebrow{display:block}
.onboard-field{position:relative;display:block}
.onboard-field input{width:100%;box-sizing:border-box;padding:12px 64px 12px 14px;font-size:18px;color:#f4ecd6;background:#0e1a15;border:1px solid #a48e5c88;border-radius:6px;outline:none}
.onboard-field input:focus{border-color:#ddbd82;box-shadow:0 0 0 2px #bd975733}
.onboard-count{position:absolute;right:12px;top:50%;transform:translateY(-50%);font-size:12px;color:#a9ad9e}
.onboard-error{min-height:18px;color:#ff9b86!important;font-size:12px!important}
.onboard-veil button{font-size:14px;padding:10px 18px;min-height:42px}
.onboard-models{width:min(760px,100%)}
.onboard-heroes{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.onboard-hero{display:flex;flex-direction:column;align-items:center;gap:6px;padding:8px 6px!important;min-height:0!important;background:#0e1a15cc;border:1px solid #64736766}
.onboard-hero img{width:100%;height:auto;aspect-ratio:3/4;object-fit:cover;border-radius:4px;background:#0a1410}
.onboard-hero span{font-size:12px;line-height:1.2;text-align:center}
.onboard-hero[aria-pressed=true]{border-color:#ddbd82;background:#3a3420cc;box-shadow:0 0 0 2px #bd975766}
.onboard-foot{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px}
.onboard-foot .onboard-error{flex:1 1 100%;order:3}
.onboard-gift{color:#f1d58e;font-size:14px}
.onboard-picked{flex:1;font-size:13px;color:#cfd3c6;text-align:right}
.onboard-guide{position:fixed;z-index:26;top:72px;left:50%;transform:translateX(-50%);width:min(390px,calc(100vw - 24px));padding:12px 14px;color:#e7e2d4;pointer-events:auto}
.onboard-guide[hidden]{display:none}
.onboard-guide-head{display:flex;align-items:center;justify-content:space-between}
.onboard-guide-head .eyebrow{display:block}
.onboard-guide-head button{padding:0 8px;min-height:0;font-size:14px;line-height:20px}
.onboard-guide p{margin:6px 0;font-size:12px;line-height:1.45;color:#cfd3c6}
.onboard-guide ol{list-style:none;margin:0 0 8px;padding:0;display:grid;gap:4px}
.onboard-guide li{display:grid;grid-template-columns:16px 1fr auto;gap:6px;align-items:baseline;font-size:12px}
.onboard-guide li small{display:block;font-size:10px;color:#9fa596}
.onboard-guide li i{font-style:normal;color:#8e9686}
.onboard-guide li.done i,.onboard-guide li.done b{color:#9fe0a0}
.onboard-guide-actions{display:flex;gap:8px;flex-wrap:wrap}
.onboard-guide-actions button{font-size:12px;padding:7px 12px}
.onboard-missing{font-size:11px!important;color:#dfba83!important}

/* Vivid authored pack art and equipment-source combat icons (2026-11-03). */
.shop-browser .pack-select-card img.pack-shelf-promo{object-fit:cover;object-position:center;filter:none}
.shop-browser .pack-select-card::after{background:linear-gradient(90deg,#071522bf,#07152240 48%,transparent 72%)}
.shop-browser .pack-shelf-copy{left:3%;width:48%;align-items:flex-start;text-align:left}
.shop-browser .pack-shelf-copy h3{font-size:clamp(22px,2.4vw,36px);font-weight:600;text-shadow:0 2px 12px #000}
.pack-promo-art{filter:none}
.equip-pack-workspace{flex:1;min-height:0;display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:12px;overflow:auto}
.equip-pack-board>.gear-workspace{display:block!important;--gear-cell:clamp(40px,9dvh,72px)}
.equip-pack-board .gear-main{height:100%;min-height:290px}
body .equip-pack-board .compact-equipment .gear-main .gear-art-stage{height:auto!important;flex:1 1 auto!important}
.equip-pack-results{display:flex;flex-direction:column;min-width:0;min-height:0;overflow:hidden;padding:12px;background:#101a14;border:1px solid #a68a475e;border-radius:5px}
.equip-pack-results p{font-size:13px;color:#bfc4ad}.equip-pack-results .item-skill-kind:has(+.item-passive-description){display:block;color:#c6b5ed;font-size:.82em;font-weight:600;letter-spacing:.35px}
.equip-pack-results .gear-detail-heading h3{margin:0 0 5px;font-size:clamp(14px,1.5vw,20px)}
.equip-pack-matches{flex:none;max-height:43%;overflow:auto;margin-top:8px;padding-top:8px;border-top:1px solid #a68a475e}
.equip-pack-result{width:100%;display:grid;grid-template-columns:clamp(50px,10vw,110px) minmax(0,1fr) auto;align-items:center;gap:8px;text-align:left;margin-bottom:6px;padding:5px 8px}
.equip-pack-result img{width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;border-radius:3px}
.equip-pack-result small{display:block;margin-top:3px;color:#dcc895}
.item-shop-link{padding:4px 7px;min-height:0;font-size:clamp(9px,1vw,12px);line-height:1.2;color:#f7d88d;text-align:right;letter-spacing:0}
@media(max-width:650px) and (orientation:portrait){.equip-pack-workspace{grid-template-columns:1fr}.equip-pack-board .gear-main{height:340px}.equip-pack-results .gear-detail-scroll{flex:0 0 auto}.equip-pack-matches{max-height:none}}
@media(max-height:530px){.equip-pack-board .gear-main{min-height:215px}.equip-pack-board>.gear-workspace{--gear-cell:36px}.equip-pack-results{padding:7px}}

/* Keep the promotion between the toolbar and the odds footer. */
.shop-modal #panel-content:has(>.shop-pack-promo-page){overflow:hidden}
.shop-pack-promo-page{display:flex;flex-direction:column;height:100%;min-height:0}
.shop-pack-promo-page>:is(.pack-toolbar,.codex-hunt,.pack-odds){flex:none}
.shop-pack-promo-page>.pack-odds{margin:8px 0 0;line-height:1.3}
.shop-pack-promo-page>.pack-promo{flex:1 1 0;min-height:0;aspect-ratio:auto;display:flex;margin-top:8px}
.shop-pack-promo-page .pack-promo-copy{min-height:0;padding-block:8px}
@media(max-width:650px){
 .shop-pack-promo-page>.pack-promo{align-items:flex-end}
 .shop-pack-promo-page .pack-promo-art{height:100%;object-position:75% center}
 .shop-pack-promo-page .pack-promo-copy{padding:24px 10px 8px;background:linear-gradient(transparent,#071d15ed 28%)}
 .shop-pack-promo-page .pack-promo-copy h3{font-size:clamp(20px,6vw,34px);margin:4px 0}
 .shop-pack-promo-page .pack-promo-copy>p{font-size:12px;margin:4px 0}
 .shop-pack-promo-page .pack-promo-offer{gap:3px;margin-top:7px;padding-top:5px}
 .shop-pack-promo-page .pack-promo-offer strong{font-size:13px}
 .shop-pack-promo-page .pack-type-coverage span{padding:2px 4px}
}
#combat-wheel #skills .skill .glyph{width:78%;height:78%;display:grid;place-items:center;pointer-events:none}
#combat-wheel #skills .skill .skill-source-icon{display:block;width:100%;height:100%;object-fit:contain;pointer-events:none;user-select:none;filter:drop-shadow(0 2px 2px #0009)}
#combat-wheel #skills .skill .skill-source{position:absolute;top:3px;left:50%;transform:translateX(-50%);font-size:6px;line-height:9px;letter-spacing:.4px;text-transform:uppercase;color:#fff7d9;text-shadow:0 1px 3px #000;pointer-events:none}
#combat-wheel #skills .skill .key{background:#071a23d9;border-radius:3px;padding:0 3px;line-height:11px;z-index:1}
#combat-wheel #skills .skill.empty .glyph{color:#a6b4aa;font-size:20px}
#combat-wheel #skills .skill .cooldown{z-index:2;background:#061019bf;text-shadow:0 1px 4px #000}
@media(max-width:650px){.shop-browser .pack-select-card img.pack-shelf-promo{left:0;width:100%;height:calc(100% - 36px);object-fit:cover;object-position:68% center}.shop-browser .pack-select-card::after{background:linear-gradient(0deg,#061523e6,transparent 76%)}.shop-browser .pack-shelf-copy{left:6%;width:88%;top:70%;align-items:center;text-align:center}.shop-browser .pack-shelf-copy h3{font-size:23px}}
@media(max-height:600px) and (min-width:651px){.shop-browser .pack-shelf-copy{top:56%;gap:5px}.shop-browser .pack-shelf-copy h3{font-size:clamp(20px,2.7vw,28px)}}
.onboard-guide.folded p,.onboard-guide.folded ol,.onboard-guide.folded .onboard-guide-actions{display:none}
.gate-card{width:min(400px,100%);border-color:#d98f6a99}
.gate-card h2{color:#ffc3a6}
.gate-message{font-size:14px!important;color:#f4ecd6!important}
.skill.empty{opacity:.45}
.gear-slot-empty{opacity:.75;border-style:dashed!important}

/* Combat wheel: key above the icon, equipped item name below; AUTO is a rotating rim. */
#combat-wheel #skills .skill .skill-source{display:none}
#combat-wheel #skills .skill .key{top:2px;bottom:auto;left:50%;transform:translateX(-50%);line-height:11px;z-index:4;pointer-events:none}
#combat-wheel #skills .skill.auto .key{font-size:0}
#combat-wheel #skills .skill.auto .key::after{content:'AUTO';font-size:8px;line-height:11px;letter-spacing:.3px;color:#fff2b2}
#combat-wheel #skills .skill .skill-name{display:block;position:absolute;top:auto;bottom:-12px;left:50%;transform:translateX(-50%);width:96px;max-width:96px;font-size:10px;line-height:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center;color:#fff3d5;text-shadow:0 1px 3px #000,0 0 4px #000;pointer-events:none;z-index:4}
#combat-wheel #skills .skill.auto{border-color:#e5cb7f;box-shadow:inset 0 0 0 3px #182d29,0 0 10px #edcc6d55}
#combat-wheel #skills .skill.auto::after{content:'';position:absolute;inset:-5px;padding:3px;border-radius:50%;font-size:0;pointer-events:none;z-index:3;background:conic-gradient(transparent 0deg 160deg,#b99c3833 210deg,#e8c766 270deg,#fff5bf 310deg,transparent 355deg);-webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);mask-composite:exclude;filter:drop-shadow(0 0 3px #f1d579);animation:wheel-auto-orbit 1.8s linear infinite}
@keyframes wheel-auto-orbit{to{transform:rotate(360deg)}}
body.touch-ui #hud #combat-wheel{bottom:calc(12px + var(--sb,0px))}
@media(prefers-reduced-motion:reduce){#combat-wheel #skills .skill.auto::after{animation:none}}
.gear-empty h3{margin:10px 0 4px}
@media(max-width:650px){.onboard-heroes{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}.onboard-card{padding:16px}.onboard-hero span{font-size:10px}}
@media(max-height:500px){.onboard-card{padding:12px 16px;gap:6px}.onboard-card h2{font-size:17px}.onboard-heroes{grid-template-columns:repeat(8,minmax(0,1fr));gap:5px}.onboard-hero span{font-size:9px}.onboard-veil button{min-height:34px;padding:6px 12px;font-size:12px}.onboard-guide{top:48px;padding:8px 10px}}
body.touch-ui .onboard-guide{top:calc(env(safe-area-inset-top,0px) + 64px)}
/* the PvP arena (assets/game/pvp.js, 2026-11-06): the target box's two lines (where the hero stands, the next payday) over its foe; the crown on the name plate of whoever has stood on the stage longest */
.pvp-line{font-size:11px;font-weight:700;letter-spacing:.05em;color:#f3e4c4;white-space:nowrap}.pvp-line.pvp-pay{color:#ffcf5a;margin-bottom:3px}
.nameplate.pvp-king>span::before{content:'\265B  ';color:#ffd35a}

.gear-section-title.item-detail-title{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:28px}

/* The world wallet stays above the minimap even when the main navigation is hidden. */
body:not(.ui-panels) :is(#hud>header,#modal.bag-hud-wallet)>.wallet{
 position:absolute;top:14px;right:24px;margin:0;line-height:1.2;text-shadow:0 1px 4px #000,0 1px 2px #000
}
@media(max-width:950px){
 body:not(.ui-panels) #hud>header>.wallet{right:12px}
}
body.touch-ui:not(.ui-panels) :is(#hud>header,#modal.bag-hud-wallet)>.wallet{top:calc(12px + var(--st));right:calc(58px + var(--sr) + var(--wallet-frame-inset,0px))}
body.touch-ui.rift-world:not(.ui-panels) :is(#hud>header,#modal.bag-hud-wallet)>.wallet{right:calc(8px + var(--sr) + var(--wallet-frame-inset,0px));min-width:84px;text-align:center}

.gear-page-current{display:none}

.gear-flip-card-back:has(img[src*="card-back-passive"]){background:radial-gradient(ellipse,#351025,#0c050b 75%)}

/* Active covers include the title and insignia in their artwork. */
.shop-browser .pack-select-card[data-pack-title-art="true"]{
 height:auto;aspect-ratio:16/9;align-self:center;
}
.shop-browser .pack-select-card[data-pack-title-art="true"]>img.pack-shelf-promo{
 inset:0;width:100%;height:100%;max-height:none;margin:0;object-fit:contain;
}
.shop-browser .pack-select-card[data-pack-title-art="true"]::after,
.shop-browser .pack-select-card[data-pack-title-art="true"]>.pack-shelf-top{display:none}
.shop-browser .pack-select-card[data-pack-title-art="true"]>.pack-shelf-copy{
 top:0;left:0;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);transform:none;
}
.shop-browser .pack-select-card[data-pack-title-art="true"]>.pack-shelf-price{
 height:32px;padding:0 10px 5px;border:0;align-items:flex-end;
 background:linear-gradient(0deg,#03120ddd,transparent);font-size:12px;
}
.shop-pack-promo-page[data-pack-title-art="true"]>.pack-promo{
 display:grid;grid-template-columns:minmax(0,1fr) minmax(180px,.36fr);align-items:stretch;
}
.shop-pack-promo-page[data-pack-title-art="true"] .pack-promo-art{
 position:static;grid-column:1;width:100%;height:100%;min-height:0;object-fit:contain;z-index:0;
}
.shop-pack-promo-page[data-pack-title-art="true"] .pack-promo-copy{
 grid-column:2;width:auto;min-height:0;padding:12px;overflow:auto;
 background:#09160f;justify-content:center;
}
.shop-pack-promo-page[data-pack-title-art="true"] .pack-promo-copy>:is(h3,.pack-promo-rule){display:none}
.shop-pack-promo-page[data-pack-title-art="true"] .pack-promo-copy>p{font-size:12px;line-height:1.4}
@media(max-width:650px) and (orientation:portrait){
 .shop-pack-promo-page[data-pack-title-art="true"]>.pack-promo{grid-template-columns:1fr;grid-template-rows:minmax(0,1fr) auto}
 .shop-pack-promo-page[data-pack-title-art="true"] .pack-promo-copy{grid-column:1;grid-row:2;max-height:40dvh}
}

/* the HUD chat's modes on the desktop (owner 2026-11-07: "ปรับระบบให้ทาง pc มีการเลือกรูป world rift party ด้วย"; the phone's in mobile/mobile.css): the
   message and one Send on a row, WORLD / RIFT (yellow) and PARTY (pink) under it as big as Send, filled when picked (community.js hudCompose) */
body:not(.touch-ui) #field-party-compose.hud-compose{flex-wrap:wrap;row-gap:5px}
body:not(.touch-ui) #field-party-compose.hud-compose>button.gold{flex:none;width:72px}
body:not(.touch-ui) #field-party-compose .hud-chat-modes{flex:0 0 100%;display:flex;gap:5px}
body:not(.touch-ui) #field-party-compose .hud-chat-modes>button{flex:none;box-sizing:border-box;width:72px;height:34px;margin:0;padding:0;border:1px solid #6d5d2e;border-radius:3px;background:#0f1d16;color:#f3d36b;font:600 11px/1 "Crimson Pro",Georgia,serif;letter-spacing:.06em;text-transform:uppercase;cursor:pointer}
body:not(.touch-ui) #field-party-compose .hud-chat-modes>button:hover{border-color:#b49a4a}
body:not(.touch-ui) #field-party-compose .hud-chat-modes>button[aria-checked=true]{background:linear-gradient(#ffe57a,#d9ae2b);border-color:#fff0a8;color:#231a03}
body:not(.touch-ui) #field-party-compose .hud-chat-modes>button[data-chat-mode=party]{border-color:#7a3d5c;color:#ff9acd}
body:not(.touch-ui) #field-party-compose .hud-chat-modes>button[data-chat-mode=party][aria-checked=true]{background:linear-gradient(#ffc0e0,#e2669f);border-color:#ffd6ea;color:#2a0f1d}

/* a speech bubble over a player's name (chat-bubbles.js; owner 2026-11-07): World and Rift lines on parchment, Party lines pink (the [Party]
   tag's colour), three lines at most, a tail down to the name; phone and desktop alike */
.nameplate>.chat-bubble{position:absolute;left:50%;bottom:calc(100% + 7px);transform:translateX(-50%);box-sizing:border-box;width:max-content;max-width:190px;padding:5px 10px;border-radius:10px;background:#fbf4dff2;border:1px solid #c9a95b;color:#221c10;font:600 12px/1.3 "Crimson Pro",Georgia,serif;text-align:center;white-space:normal;text-shadow:none;box-shadow:0 3px 10px #000a;pointer-events:none}
.nameplate>.chat-bubble[hidden]{display:none}
.nameplate>.chat-bubble>span{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;line-clamp:3;overflow:hidden;overflow-wrap:anywhere}
.nameplate>.chat-bubble::after{content:"";position:absolute;left:50%;top:100%;margin-left:-6px;border:6px solid transparent;border-top-color:#c9a95b}
.nameplate>.chat-bubble.party{background:#ffe6f2f2;border-color:#ff9acd;color:#3a1028}
.nameplate>.chat-bubble.party::after{border-top-color:#ff9acd}

/* the desktop's Card Shop (owner 2026-11-07): no odds line ("1% chance…"), no Open again / Choose another pack under an opening, no type tags
   (Armor ×5, Ring ×4 …); and no scrollbar anywhere in it, across or down ("ไม่ต้องมีการโผล่ของ scroll X และ Y"): what still scrolls (the shelf's
   rows, Codex's lists) scrolls by wheel or drag with its bar hidden, nothing scrolls sideways */
body:not(.touch-ui) .shop-modal .shop-pack-page :is(.pack-odds,.pack-result-actions,.pack-type-coverage){display:none!important}
body:not(.touch-ui) .shop-modal #panel-content{overflow-x:hidden!important}
body:not(.touch-ui) .shop-modal :is(#panel-content,#panel-content *){scrollbar-width:none!important;scrollbar-gutter:auto!important}
body:not(.touch-ui) .shop-modal :is(#panel-content,#panel-content *)::-webkit-scrollbar{display:none!important;width:0!important;height:0!important}
/* a reroll that lands tier 3, 4 or its option's top tier holds REROLL 2 s (equipment-ui.js rerollPause): a gold line runs out along its foot */
.forge-reroll.holding{position:relative;overflow:hidden}
.forge-reroll.holding::after{content:"";position:absolute;left:0;right:0;bottom:0;height:3px;background:#ffd56a;transform-origin:left;animation:reroll-hold var(--hold,2s) linear forwards}
@keyframes reroll-hold{to{transform:scaleX(0)}}

/* the hero's coordinates for debugging after the ms (hud.js showCoords; owner 2026-11-07): on the desktop LIVE · MS and they stay one line
   under the minimap, centred, wider than it if they must */
.minimap-wrap #network{display:flex;justify-content:center;white-space:nowrap}
#coords{white-space:nowrap;font-variant-numeric:tabular-nums lining-nums}
/* a number in a cell of fixed width, right-aligned (hud.js numberCell: fps, ms, x, z), so a digit more or less moves nothing else (owner 2026-11-07) */
:is(#m-perf,#network,#coords) .pf{display:inline-block;min-width:calc(var(--n) * (1ch + 1px));text-align:right;font-weight:inherit;font-variant-numeric:tabular-nums lining-nums}

/* the desktop's Card Shop shelf (owner 2026-11-07: "มันเว้นช่องไฟจนไม่สวยเลย"; "เอา 24 packs found 300 Gold · 5 cards per opening ... ออก"): no results line; three
   rows on screen from 800 px tall (were two, 305 px rows round 216 px cards, 88 px of air between them; the owner's windows: 1879×860,
   1920×945), two below; each pack as big as its row lets it keep the art's 16:9 (or as a third of the width allows), centred, 12 px apart.
   A short window (600 px or less) keeps its one row */
body:not(.touch-ui) .shop-modal .shop-results-line{display:none!important}
@media (min-height:800px){body:not(.touch-ui) .shop-modal .shop-browser .pack-row-scroller{--shelf-visible-rows:3!important}}
@media (min-height:601px){
 body:not(.touch-ui) .shop-modal .shop-browser .pack-shelf-row{container-type:size;grid-template-columns:repeat(var(--shelf-columns),auto)!important;justify-content:center;align-items:center}
 body:not(.touch-ui) .shop-modal .shop-browser .pack-select-card{width:min(calc((100cqw - 24px) / 3),calc(100cqh * 16 / 9))!important;height:auto!important;aspect-ratio:16/9}
}

/* the loading screen (owner 2026-11-07: "ตอนย้ายแมป หากยังโหลดไม่เสร็จให้ขึ้นจอดำ แล้ว ขึ้นข้อความ entering xxxx ... / loading .... ตรง ...ให้มีการขยับได้"): whenever #loading is up
   (signing in, a map being built or compiled, maps.js loadingSay) it is black over everything, its line in the middle; a busy one ends in
   dots that count up 0 to 3 and over again (an error does not). Also while signing in (auth-checking / engine-loading show it even hidden):
   their old grid put the dots on a row of their own at the foot, the words above the middle */
html body #loading:not([hidden]),html body.auth-checking #loading,html body.engine-loading #loading{display:flex!important;align-items:center;justify-content:center;position:fixed;inset:0;width:100%;height:100%;top:0;background:#000;color:#e8e8e8;z-index:90;font-size:14px;letter-spacing:2px;pointer-events:auto}
#loading.busy::after{content:"...";display:inline-block;width:calc(3ch + 6px);text-align:left;font-family:ui-monospace,Consolas,monospace;clip-path:inset(0 100% 0 0);animation:loading-dots 1.2s steps(4,jump-none) infinite}   /* the room for three kept, so the words never move */
@keyframes loading-dots{to{clip-path:inset(0 0 0 0)}}
/* Settings > Sound > Effects volume and Music (assets/game/audio.js, 2026-11-07/08): sliders 0-100%, heard as they move */
.volume-row>div:first-child{flex:1 1 260px;min-width:0}   /* the long text shares the line with the slider */
.volume-slider{display:flex;align-items:center;gap:10px;flex:none;cursor:pointer}
.volume-slider input[type=range]{width:180px;margin:0;padding:0;accent-color:#bd9757;cursor:pointer;background:none;border:0;box-shadow:none}   /* not the themes' dark input field */
.volume-slider output{min-width:3.2em;text-align:right;font-variant-numeric:tabular-nums;color:#ddbd82;font-weight:700}

/* Party invitations, friend and trade requests (#community-notifications) and the warnings' toast (#toast, e.g. "Player cannot join.") stay
   above every menu, the item flip (.gear-flip-overlay, 10000) and the phone's keyboard and lists (1000, 1001): owner 2026-11-08, "คำชวน ปาตี้
   คำขอ add เพื่อ คำเตือน ... ต้องอยู่ เลเยอร์บนสุด สามารถเห็นได้ระหว่างที่เปิดหน้าอื่นอยู่". #hud makes no stacking context, so the toast's own z-index
   lifts it; it stays pointer-events:none (from #hud). Only the browser's top layer is above: a <dialog> opened with showModal (the trade
   review, the gold keypad, the phone's chat composer) */
#community-notifications{z-index:10010}
#toast{z-index:10011}   /* a warning lasts 3 s: never under a notice */

/* Thai (assets/lang.js, ⚙ Settings › Language; owner 2026-11-08): Thai is never letter-spaced, its vowel and tone marks drift apart from
   their letters; the English names inside it (lang="en" buttons aside, everything under <html lang="th">) lose their tracking with it */
:lang(th){letter-spacing:normal!important}
.auth-lang{display:flex;justify-content:center;gap:6px;margin:18px 0 6px}
.auth-lang button{min-width:72px}
/* the AUTO frame in its skill's element (owner 2026-11-08: "ปรับวงล้อสกิลตอนกด auto ให้เปลี่ยนไปตามสีธาตุ"): the border, the orbiting light and
   the word AUTO; hud.js puts the skill's element on its button (data-el), the colours are Effects v2's (fx-palette.js HEX: blade, pale, deep) */
#combat-wheel #skills .skill[data-el=physical]{--el:#ffd38a;--el-hi:#fff0d6;--el-glow:#ffa62e;--el-soft:#ffa62e55;--el-dim:#ffa62e33}
#combat-wheel #skills .skill[data-el=fire]{--el:#ff7a2e;--el-hi:#ffd6a8;--el-glow:#ff4f12;--el-soft:#ff4f1266;--el-dim:#ff4f1233}
#combat-wheel #skills .skill[data-el=ice]{--el:#74ecff;--el-hi:#e0f5ff;--el-glow:#22d0ff;--el-soft:#22d0ff55;--el-dim:#22d0ff33}
#combat-wheel #skills .skill[data-el=lightning]{--el:#8fb0ff;--el-hi:#e2f4ff;--el-glow:#5a8cff;--el-soft:#5a8cff66;--el-dim:#5a8cff33}
#combat-wheel #skills .skill[data-el=earth]{--el:#d9a05a;--el-hi:#f6dcb4;--el-glow:#c97a26;--el-soft:#c97a2666;--el-dim:#c97a2633}
#combat-wheel #skills .skill[data-el=soul]{--el:#b98aff;--el-hi:#f0d8ff;--el-glow:#a84dff;--el-soft:#a84dff66;--el-dim:#a84dff33}
#combat-wheel #skills .skill[data-el=light]{--el:#ffd24a;--el-hi:#fff2bf;--el-glow:#ffc61e;--el-soft:#ffc61e55;--el-dim:#ffc61e33}
#combat-wheel #skills .skill.auto[data-el]{border-color:var(--el);box-shadow:inset 0 0 0 3px #182d29,0 0 10px var(--el-soft)}
#combat-wheel #skills .skill.auto[data-el]::after{background:conic-gradient(transparent 0deg 160deg,var(--el-dim) 210deg,var(--el) 270deg,var(--el-hi) 310deg,transparent 355deg);filter:drop-shadow(0 0 3px var(--el-glow))}
#combat-wheel #skills .skill.auto[data-el] .key::after{color:var(--el-hi);text-shadow:0 0 4px var(--el-glow)}

/* ⚙ Settings › Gameplay › Equipment key (panels.js equipKeyRow, 2026-11-09): the key now bound, as a key cap */
.settings-choice .choice kbd.key-cap{min-width:40px;margin:0;padding:5px 9px;border:1px solid #ddbd82;border-radius:5px;background:#111f1c;color:#ecd7a6;font:700 12px/1.2 'Segoe UI',Tahoma,sans-serif;text-align:center;align-self:center}

/* the sign-in fields' own text (owner 2026-11-10: "ฟอนต์ ในช่อง input เล็กเกินไปนะ"): it inherited its label's 10px (.auth label) */
.auth input{font-size:16px}

/* every field and list at a readable size (owner 2026-11-10: "ช่องอื่นด้วยนะ", after the sign-in fields): searches, filters, chat, prices,
   trade ids took 9–12px from their panels. 14px everywhere but the sign-in (16px, above) and the Gold keypad's big figure; the phone page
   sets 16px (phone-panels.css) */
:is(input:not([type=range],[type=checkbox],[type=radio]),select,textarea):not(.auth input,#trade-gold-keypad input){font-size:14px!important}

/* the game's logo on the sign-in page (owner 2026-11-10: the name is now Final Tale, ChatGPT's logo assets/final-tale-logo-transparent.png,
   cropped and made light as final-tale-logo-760.webp); it takes the place of the ✧ sigil and the EMBERWILD title */
.auth h1.game-logo{margin:2px auto 6px;font-size:0;line-height:0;letter-spacing:0}
.auth h1.game-logo img{display:block;width:min(224px,100%);height:auto;margin:0 auto;filter:drop-shadow(0 6px 16px #000a)}

/* the quest guide's tip (owner 2026-11-10: "TIP: ก่อนออกจากเมือง อย่าลืมนำการ์ดซ้ำไปอัพเกรดที่เมนู FORGE เพื่อเพิ่มความแข็งแกร่ง"), under its buttons */
.onboard-guide p.onboard-tip{margin:10px 0 0;padding:7px 9px;border:1px solid #c9a96155;border-radius:4px;background:#c9a96112;color:#ecd7a6;font-size:12px;line-height:1.45}

/* an update without a freeze (owner 2026-11-10): the banner the server's warning and a new build show (assets/game/sync.js) */
#update-banner{position:fixed;z-index:80;top:12px;left:50%;transform:translateX(-50%);max-width:calc(100vw - 32px);padding:9px 16px;border:1px solid #d8b56e;border-radius:6px;background:#0d1c17f0;color:#f3e2b3;font:600 14px/1.35 Georgia,serif;text-align:center;box-shadow:0 6px 22px #000a;pointer-events:none}
#update-banner[hidden]{display:none}
/* the 10-pack button's results (2026-11-11): a grid of ten, names only; since the owner's "ทำให้การ์ดทุกใบ มันมี X5 X6 บอกจำนวนด้วย โดยจำนวนที่
   เยอะที่สุดจะอยู่แถวบนสุด" (same day) one card a design with its count (×6, a gold pill that pops in once the card has turned), the most copies
   on the top row (pack-reveal.js byDesign), turned over in turn with one pack's full turn ("อนิเมชั่นเหมือนเปิดการ์ด"). They scroll (owner 2026-11-11: "ถ้าการ์ด
   เปิด 1 แพ๊คให้ขึ้นหน้าจอตามเดิม ถ้าเปิด 10 แพ๊คอนุญาติให้ scroll ได้ โดยเว้นระยะแถวการ์ดให้สวยงาม"): the toolbar and the YOUR 50 CARDS line hold
   still and the cards scroll under them in a box of their own (wheel, drag, touch; card-shop-ui.js bindRevealScroll keeps its place on a
   redraw), each scroll coming to rest on a row; rows 22 px apart, columns 10. The box's top and foot fade, so a cut row says there is more;
   the padding under the fades lets the first and last rows show whole. A gold chevron at its foot (the drop-downs' arrow, owner 2026-11-07)
   shows while rows lie below, gone at the last row (.at-end): at some heights the next row sits right under the fade. The pack's heading is
   left out, as on phones (its name is in the title). One pack: as before. Phones: mobile.css */
.shop-modal #panel-content:has(>.shop-pack-page>.reveal-many){overflow:hidden}
.shop-pack-page:has(>.reveal-many){display:flex;flex-direction:column;height:100%;min-height:0;box-sizing:border-box}
.shop-pack-page:has(>.reveal-many)>*{flex:none}
.shop-pack-page:has(>.reveal-many)>.pack-page-heading{display:none}
.shop-pack-page:has(>.reveal-many)>.reveal-many{flex:1 1 0;min-height:0;display:flex;flex-direction:column;padding:16px 0 0;position:relative}
.reveal-many>*{flex:none}
.reveal-many .reveal-row{flex:1 1 0;min-height:0;grid-template-columns:repeat(10,minmax(0,1fr));align-content:start;gap:22px 10px;margin-top:4px;padding:16px 8px 30px;
 overflow:hidden auto;overscroll-behavior:contain;touch-action:pan-y;-webkit-overflow-scrolling:touch;scroll-snap-type:y mandatory;scroll-padding-top:16px;
 -webkit-mask-image:linear-gradient(#0000,#000 16px,#000 calc(100% - 30px),#0000);mask-image:linear-gradient(#0000,#000 16px,#000 calc(100% - 30px),#0000)}
.reveal-many .reveal-card{scroll-snap-align:start}
.reveal-many>.reveal-more{position:absolute;left:50%;bottom:5px;width:34px;height:20px;margin-left:-17px;box-sizing:border-box;border:1px solid #c7ac6699;border-radius:10px;pointer-events:none;
 background:#0d1c17e6 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23e0be78' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px 7px no-repeat;
 box-shadow:0 2px 8px #000a;transition:opacity .25s;animation:reveal-more 1.6s ease-in-out infinite}
.reveal-many.at-end>.reveal-more{opacity:0;animation:none}
@keyframes reveal-more{50%{transform:translateY(3px)}}
@media(prefers-reduced-motion:reduce){.reveal-many>.reveal-more{animation:none}}
.reveal-many .reveal-count{position:absolute;right:6px;bottom:6px;z-index:2;padding:3px 8px 4px;border:1px solid #fff0c2aa;border-radius:999px;background:linear-gradient(#f3dc9d,#c79a45);
 color:#1b1608;font:700 15px/1 "Crimson Pro",Georgia,serif;font-variant-numeric:lining-nums tabular-nums;box-shadow:0 2px 6px #000a;pointer-events:none;
 animation:reveal-count .45s cubic-bezier(.3,1.7,.5,1) both;animation-delay:calc(var(--delay) + 1.3s)}
@keyframes reveal-count{from{opacity:0;transform:scale(.2)}to{opacity:1;transform:scale(1)}}
.reveal-complete .reveal-count{animation:none}
@media(prefers-reduced-motion:reduce){.reveal-many .reveal-count{animation:none}}
.reveal-many .reveal-front p,.reveal-many .equipped-match-badge{display:none}
.reveal-many .reveal-front b{font-size:10px;line-height:1.15;display:block;padding:0 3px}
.reveal-many .reveal-front{border-width:1px;border-radius:6px}
/* the Forge's one-forged-card question (2026-11-11): Equip or Cancel */
.forge-guard{position:fixed;inset:0;z-index:10050;display:flex;align-items:center;justify-content:center;background:#000a}
.forge-guard[hidden]{display:none}
.forge-guard-card{max-width:min(440px,calc(100vw - 32px));padding:18px 20px;border:1px solid #d8b56e;border-radius:8px;background:#0d1c17f5;color:#f3e2b3;font:16px/1.45 Georgia,serif;text-align:center;box-shadow:0 8px 30px #000c}
.forge-guard-actions{display:flex;gap:10px;justify-content:center;margin-top:14px}
.forge-guard-actions button{min-width:110px;padding:9px 16px;font-size:15px}
/* the warp home (assets/game/recall.js, 2026-11-11): its bar while it charges, its button lit meanwhile. 200px up: over the desktop's message
   toast (150-180px) and a phone's Rift chat at its tallest */
#recall-bar{position:absolute;left:50%;bottom:200px;transform:translateX(-50%);width:min(280px,60vw);height:18px;border:1px solid #e8d49a;border-radius:9px;background:#0b1a16d9;overflow:hidden;z-index:6;pointer-events:none;box-shadow:0 0 14px #ffe9a866}
#recall-bar[hidden]{display:none}
#recall-bar i{position:absolute;left:0;top:0;bottom:0;width:0;background:linear-gradient(90deg,#fff2c0,#ffd36b);box-shadow:0 0 10px #ffe08a}
#recall-bar span{position:relative;display:block;text-align:center;font-size:11px;line-height:18px;font-weight:700;color:#fff;text-shadow:0 0 3px #000,0 0 2px #000}
#party-strip #recall-btn.on{background:#5a4a1ee6;color:#fff6d6;border-color:#ffe08a}
