/* Character equipment: jewel tones over the existing navy adventure theme. */
.rarity-preview{flex-wrap:wrap}
.rarity-blue{color:#86d3ff;background:#329cdf22}
.gear-white{--gear-color:#d4dce7;--gear-rgb:212,220,231}
.gear-green{--gear-color:#81deab;--gear-rgb:86,200,133}
.gear-blue{--gear-color:#89d4ff;--gear-rgb:74,175,245}
.gear-purple{--gear-color:#cca5ff;--gear-rgb:178,115,245}
.traveler-equipment,.gear-bag{margin-top:22px;padding-bottom:23px}
.gear-intro{padding:0 24px 18px;color:#a1b7c5;font-size:12px;line-height:1.8}
.gear-loadout{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;padding:0 24px}
.gear-slot,.gear-card{font:inherit;color:#e9edf4;text-align:center;min-width:0;border:1px solid rgba(var(--gear-rgb),.3);border-radius:16px;background:radial-gradient(ellipse at 50% 30%,rgba(var(--gear-rgb),.12),transparent 70%),linear-gradient(155deg,#1e3045,#101e30);position:relative;overflow:hidden}
button.gear-slot,button.gear-card{cursor:pointer;transition:border-color .2s,background .2s,transform .2s}
button.gear-slot:hover,button.gear-card:hover{border-color:var(--gear-color);transform:translateY(-2px);background-color:#23374b}
.gear-slot{padding:16px 16px 13px;display:flex;flex-direction:column;align-items:center}
.gear-slot-label{width:100%;display:flex;justify-content:space-between;gap:6px;color:#d6e3ed;font-size:12px;text-align:left}
.gear-slot-label>span{color:var(--gear-color);font-size:10px}
.gear-stage{display:grid;place-items:center;position:relative;width:100%;isolation:isolate}
.gear-stage:before{content:"";position:absolute;inset:15% 10%;z-index:-1;background:radial-gradient(ellipse,rgba(var(--gear-rgb),.15),transparent 70%)}
.gear-art{display:block;width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 9px 9px #0005)}
.gear-slot .gear-stage{height:170px;margin:8px 0}
.gear-slot .gear-art{width:164px;height:164px;max-width:100%}
.gear-rarity{display:inline-block;font-size:10px;font-weight:600;line-height:1.5;padding:3px 10px;border-radius:20px}
.gear-slot>strong{font-size:14px;margin-top:9px;line-height:1.65}
.gear-slot>small{font-size:10px;color:#acbfce;line-height:1.8;margin-top:3px}
.gear-slot-link{margin-top:auto;padding-top:14px;font-size:10px;color:var(--gear-color,#91a5b5);display:flex;gap:7px;align-items:center}
.gear-slot-link .icon{width:13px;height:13px}
.gear-empty{--gear-rgb:160,183,201;border-style:dashed;opacity:.75}
.gear-empty .item-art{width:68px;height:68px;opacity:.4;filter:saturate(.1)}
.gear-total-stats{margin:21px 24px 0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border:1px solid #ffffff0c;border-radius:11px;background:#08132155;padding:14px 0}
.gear-total-stats>div{text-align:center;border-right:1px solid #ffffff10}
.gear-total-stats>div:last-child{border:0}
.gear-total-stats span{display:block;color:#98adbd;font-size:10px}
.gear-total-stats b{display:block;color:#e5cf9a;font-size:20px;margin-top:4px;font-variant-numeric:tabular-nums}
.gear-caption{font-size:10px;color:#8ea4b5;text-align:center;line-height:1.8;margin:9px 20px 20px}
.gear-sets{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:0 24px}
.gear-set{padding:15px 17px;border:1px solid rgba(var(--gear-rgb),.18);border-radius:12px;background:rgba(var(--gear-rgb),.045)}
.gear-set.is-active{border-color:rgba(var(--gear-rgb),.65);background:linear-gradient(115deg,rgba(var(--gear-rgb),.17),rgba(var(--gear-rgb),.05));box-shadow:inset 0 0 22px rgba(var(--gear-rgb),.045)}
.gear-set-heading{display:flex;align-items:center;gap:8px;color:var(--gear-color)}
.gear-set-heading .icon{width:18px;height:18px;flex-shrink:0}
.gear-set-heading strong{font-size:13px;line-height:1.6}
.gear-set-heading>span{margin-left:auto;font-size:16px}
.gear-set>p{font-size:11px;color:#d3deea;margin:7px 0 4px}
.gear-set>small{font-size:10px;color:#9fb3c6;line-height:1.8}
.gear-set-progress{display:flex;gap:5px;margin-top:12px}
.gear-set-progress i{flex:1;height:4px;border-radius:3px;background:#ffffff0c}
.gear-set-progress i.filled{background:var(--gear-color);box-shadow:0 0 8px rgba(var(--gear-rgb),.2)}
.gear-set-note,.gear-bag-note{margin:14px 24px 0;font-size:10px;color:#91a8ba;line-height:1.9}
.gear-filters{display:flex;flex-wrap:wrap;gap:7px;padding:0 24px;margin-bottom:18px}
.gear-filters button{font:inherit;font-size:11px;color:#acbfd0;border:1px solid #ffffff16;background:#ffffff04;padding:7px 15px;border-radius:8px;min-height:36px;cursor:pointer}
.gear-filters button.selected{background:#d7bd7d19;border-color:#d7bd7d77;color:#edd49f}
.gear-bag-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;padding:0 24px}
.gear-card{padding:12px 11px 15px}
.gear-card.is-equipped{border-color:rgba(var(--gear-rgb),.62)}
.gear-card-top{display:flex;align-items:center;justify-content:space-between;gap:5px;font-size:9px;color:#a3b6c9}
.gear-card-top .gear-rarity{font-size:9px;padding:2px 8px}
.gear-card.is-equipped .gear-card-top>span:last-child{color:var(--gear-color)}
.gear-card .gear-stage{height:130px;margin:6px 0 8px}
.gear-card .gear-art{width:122px;height:122px;max-width:100%}
.gear-card>strong{display:block;font-size:12px;line-height:1.7;color:#e2eaf2}
.gear-card>small{display:block;font-size:10px;color:#a3b7c8;line-height:1.8;margin-top:4px}
.gear-bag-empty{text-align:center;padding:24px 20px 30px;color:#a2b8c9}
.gear-bag-empty>.icon{width:36px;height:36px;color:#9bc6db;margin-bottom:12px}
.gear-bag-empty h3{color:#dce6ee;font-size:15px}
.gear-bag-empty p{font-size:11px;line-height:1.8;margin:8px 0 16px}
.gear-detail{text-align:center}
.gear-detail-stage{height:220px;border:1px solid rgba(var(--gear-rgb),.2);border-radius:16px;background:radial-gradient(ellipse,rgba(var(--gear-rgb),.16),#0c182600);margin-bottom:15px;padding:14px}
.gear-detail h3{font-size:21px;color:#e9eef4;margin:10px 0 0}
.gear-detail>p{font-size:12px;color:#a0b8c9;margin:4px 0 12px}
.gear-detail-bonus{font-size:14px;color:var(--gear-color);display:block;margin-bottom:20px}
.gear-detail-set{background:#ffffff05;border:1px solid #ffffff0c;border-radius:10px;padding:14px;color:#a9bfce;font-size:12px;line-height:1.8}
.gear-detail-set b{color:#d8e4ef}
.gear-detail-set p{font-size:12px!important;margin:4px 0!important}
.gear-detail-set small{font-size:11px;color:#8ea4b8}
.gear-detail-actions{display:flex;gap:10px;margin-top:22px}
.gear-detail-actions button{flex:1;justify-content:center;min-height:44px}
.gear-dismantle-button{font:inherit;font-size:12px;color:#ffc3c1;background:#a63f411c;border:1px solid #d1767866;padding:10px 17px;border-radius:9px;cursor:pointer}
.gear-dismantle-button:hover:not(:disabled){background:#b34b4c38;border-color:#e29494}
.gear-dismantle-button:disabled{opacity:.42;cursor:not-allowed}
.gear-dialog-note{font-size:11px!important;color:#97acbd!important;text-align:center;line-height:1.8;margin:13px 0 0!important}
.gear-dismantle-preview{display:flex;align-items:center;gap:17px;border:1px solid rgba(var(--gear-rgb),.3);border-radius:12px;padding:14px;background:rgba(var(--gear-rgb),.05)}
.gear-dismantle-preview>.gear-art{width:88px;height:88px;flex-shrink:0}
.gear-dismantle-preview h3{font-size:15px;line-height:1.8;margin-top:7px}
.gear-dismantle-preview p{font-size:11px!important;margin:3px 0 0!important}
.gear-confirm-warning{color:#f8b9b9!important;font-weight:600;line-height:1.9}
.gear-results{display:grid;gap:9px;max-height:52vh;overflow:auto;padding:2px}
.gear-result{display:flex;align-items:center;gap:12px;padding:12px;border:1px solid rgba(var(--gear-rgb),.27);border-radius:12px;background:linear-gradient(110deg,rgba(var(--gear-rgb),.10),#ffffff02)}
.gear-result>.gear-art{width:75px;height:75px;flex-shrink:0}
.gear-result strong,.gear-result small{display:block;margin-top:4px}
.gear-result strong{font-size:13px;color:#e8edf4}
.gear-result small{font-size:11px;color:#a3b8c9;line-height:1.7}
.equipment-rates{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
.equipment-rates span{min-width:0}
.gear-slot:focus-visible,.gear-card:focus-visible,.gear-filters button:focus-visible,.gear-dismantle-button:focus-visible{outline:2px solid #f2d394;outline-offset:3px}
@media(max-width:1100px){.gear-bag-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.gear-slot>strong{font-size:12px}.gear-slot-label>span{font-size:9px}.gear-slot .gear-stage{height:140px}.gear-slot .gear-art{height:135px;width:135px}}
@media(max-width:700px){.gear-loadout{gap:8px}.gear-slot{padding:12px 8px}.gear-slot-label{font-size:11px;flex-direction:column;gap:2px;text-align:center;min-height:35px}.gear-slot .gear-stage{height:110px}.gear-slot .gear-art{width:108px;height:108px}.gear-slot>small{font-size:10px}.gear-sets{grid-template-columns:1fr}.gear-slot-link{font-size:9px}.gear-bag-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.traveler-equipment,.gear-bag{margin-top:17px;padding-bottom:18px}.gear-loadout,.gear-sets,.gear-bag-grid{padding:0 16px}.gear-intro{padding:0 16px 15px;font-size:11px}.gear-slot{border-radius:11px;padding:10px 6px}.gear-slot>strong{font-size:11px}.gear-slot .gear-stage{height:94px;margin:7px 0}.gear-slot .gear-art{height:92px;width:92px}.gear-slot>small{font-size:9px}.gear-slot-link .icon{display:none}.gear-slot-label>span{font-size:8px}.gear-rarity{font-size:9px;padding:2px 8px}.gear-total-stats{margin:16px 16px 0;padding:12px 0}.gear-total-stats span{font-size:9px}.gear-total-stats b{font-size:17px}.gear-caption{font-size:9px;margin-bottom:15px}.gear-set-note,.gear-bag-note{margin:12px 16px 0}.gear-filters{padding:0 16px;gap:5px}.gear-filters button{padding:7px 12px;flex:1;font-size:10px}.gear-bag-grid{gap:10px}.gear-card{padding:10px}.gear-card .gear-stage{height:116px}.gear-card .gear-art{width:112px;height:112px}.gear-detail-stage{height:190px}.gear-detail h3{font-size:19px}.gear-detail-actions .hero-button{font-size:12px}.gear-dismantle-preview{gap:10px;padding:10px}.gear-dismantle-preview>.gear-art{width:70px;height:70px}.gear-dismantle-preview h3{font-size:14px}.gear-result>.gear-art{width:65px;height:65px}}

.loot-box-art{display:block;object-fit:contain;max-width:100%;max-height:100%;width:190px;height:190px;filter:drop-shadow(0 8px 10px #0005)}
.loot-box-preview-button{display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;padding:8px 12px 12px;margin:10px 0;border:1px solid #e2c48622;border-radius:13px;background:radial-gradient(ellipse,#bb9b5222,transparent 70%);color:#d9c79e;cursor:pointer}
.gem .loot-box-preview-button{border-color:#b895ec33;background:radial-gradient(ellipse,#a67af42a,transparent 70%)}
.loot-box-preview-button:hover{border-color:#e2c48688}.loot-box-preview-button:focus-visible{outline:2px solid #ead49e;outline-offset:3px}.loot-box-preview-button>span{font-size:12px;margin-top:5px}
.box-confirm-art .loot-box-art{width:135px;height:135px}
.box-loot-preview{margin:16px 0;border:1px solid #ffffff15;border-radius:12px;background:#0d1d2c;padding:13px}
.box-loot-preview>h3{font-size:14px;color:#e6d5af}.box-loot-preview>p{font-size:11px!important;margin:5px 0 11px!important;color:#98afc2!important}
.box-loot-scroll{max-height:none;overflow:visible;padding-right:0}
.box-loot-rarity{padding:10px 0;border-top:1px solid rgba(var(--gear-rgb),.2)}.box-loot-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:10px}.box-loot-heading>strong{font-size:11px;color:var(--gear-color)}
.box-loot-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.box-loot-item{display:flex;flex-direction:column;align-items:center;min-width:0;text-align:center;padding:9px 5px;border:1px solid rgba(var(--gear-rgb),.2);border-radius:9px;background:rgba(var(--gear-rgb),.04)}
.box-loot-item>.gear-enhancement-art{--gear-art-size:76px;width:min(var(--gear-art-size),100%);height:auto;flex:none;margin-bottom:5px}.box-loot-item>span{font-size:10px;color:#94afc2}.box-loot-item>strong{font-size:11px;line-height:1.7;color:#d7e2ed;overflow-wrap:anywhere;margin-top:3px}
@media(max-width:600px){.loot-box-art{width:165px;height:165px}.box-confirm-art .loot-box-art{width:112px;height:112px}.box-loot-preview{padding:10px}.box-loot-grid{gap:5px}.box-loot-item>.gear-enhancement-art{--gear-art-size:65px}.box-loot-item>strong{font-size:10px}.box-loot-scroll{max-height:none}}

/* One scroll surface keeps every rarity row and the confirm buttons reachable. */
dialog:has(.box-loot-preview){overflow-y:auto;overflow-x:hidden;max-height:85vh;max-height:88dvh;overscroll-behavior:contain}
dialog:has(.box-loot-preview) .modal-head{position:sticky;top:0;z-index:5;background:#182a3a;border-bottom:1px solid #ffffff10;padding-bottom:16px}
