/* Equipment uses one scroll surface on phones, with a persistent close control. */
#hunt-gear-dialog{box-sizing:border-box;width:min(960px,96vw);max-width:none;height:min(840px,92vh);height:min(840px,92dvh);max-height:none;padding:0;color:#eaf7f4;background:#102630;border:1px solid #426472;border-radius:22px;box-shadow:0 24px 90px #0009;font:15px/1.45 system-ui,-apple-system,BlinkMacSystemFont,sans-serif;overflow:hidden;-webkit-text-size-adjust:100%}
#hunt-gear-dialog::backdrop{background:#03111bda}
#hunt-gear-dialog[open]{display:flex;flex-direction:column}
#hunt-gear-dialog *{box-sizing:border-box;min-width:0}
#hunt-gear-dialog header{flex:none;display:flex;justify-content:space-between;align-items:center;padding:16px 20px;border-bottom:1px solid #345361;background:#132d38;gap:16px}
#hunt-gear-dialog h2{margin:2px 0 0;font-size:26px;letter-spacing:-.6px}
#hunt-gear-dialog header small{font-size:10px;font-weight:800;letter-spacing:1.8px;color:#8bd8c5}
#hunt-gear-dialog button{min-height:48px;border:1px solid #486876;border-radius:12px;background:#213e4a;color:#edfaff;padding:10px 12px;cursor:pointer;font-family:inherit;font-size:14px;font-weight:600;line-height:1.35;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
#hunt-gear-dialog button:focus-visible{outline:3px solid #90ebd1;outline-offset:2px}
#hunt-gear-dialog button:disabled{opacity:.45;cursor:default}
#hunt-gear-dialog button[data-action=close]{width:48px;flex:none;font-size:25px}
#hunt-gear-dialog small{display:block;font-size:12px;color:#adc8cf;font-weight:400}
.hunt-scroll{flex:1;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding:18px 20px 24px;scroll-padding:16px}
.hunt-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0 0 18px}
.hunt-summary>span{background:linear-gradient(135deg,#24424d,#193540);border:1px solid #365562;border-radius:12px;padding:10px 12px;font-size:21px;font-weight:800;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.hunt-slots{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px}
.hunt-slots button{display:flex;flex-direction:column;align-items:center;gap:5px;text-align:center}
.hunt-slot-symbol{display:grid;place-items:center;width:32px;height:32px;color:#9ae4d0;background:#345763;border-radius:10px;font-size:20px}
.hunt-slots button[aria-pressed=true]{border-color:#8fe6c8!important;background:#28554e!important}
.hunt-body{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:18px}
.hunt-list-heading,.hunt-paging{display:flex;justify-content:space-between;align-items:center;gap:8px}
.hunt-list-heading h3{font-size:17px}.hunt-list{display:grid;gap:8px;max-height:360px;overflow:auto;overscroll-behavior:contain;padding:3px}
.hunt-list button{text-align:left;border-left:4px solid var(--gear-color)!important}.hunt-list button.selected{background:#34575e!important;border-color:#b9e9d5!important}.hunt-list button strong{display:block;margin-bottom:4px}
.hunt-paging{margin-top:12px}.hunt-detail{background:#193640;border:1px solid #345763;border-radius:16px;padding:16px;align-self:start;scroll-margin-top:16px}.hunt-detail h3{font-size:22px;margin:6px 0}.hunt-detail h4{font-size:13px;color:#afc9cf}.hunt-detail li{margin:7px 0}
.hunt-primary{font-size:21px;font-weight:700;color:#a1eacf}.hunt-effect{background:#403550;border:1px solid #665177;border-radius:12px;padding:12px}.hunt-effect p{margin:5px 0}
.hunt-comparison span{display:flex;justify-content:space-between;gap:12px;padding:8px 0;border-bottom:1px solid #33515b}.hunt-comparison b{font-variant-numeric:tabular-nums;text-align:right}
.hunt-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:18px}#hunt-gear-dialog button[data-action=equip]{background:#85dec2;color:#0c302b;border-color:#a9f3df}#hunt-gear-dialog button[data-action=salvage]{color:#ffc4b8}
#hunt-gear-dialog footer{margin-top:20px;color:#adc8cf;font-size:12px;line-height:1.7}.hunt-empty{padding:14px 0;line-height:1.8;color:#c8dfdf}
#hunt-field-gear{position:absolute;right:max(12px,env(safe-area-inset-right));top:145px;z-index:25;min-width:60px;min-height:48px;background:#173a46;border:1px solid #a1d4d6;border-radius:12px;color:#fff;font:600 14px system-ui;touch-action:manipulation}#hunt-field-gear[hidden]{display:none}
#hunt-gear-open{min-height:48px}#home-activities:has(#hunt-gear-open){grid-template-columns:repeat(4,minmax(0,1fr))!important}
@media(max-width:600px){#hunt-gear-dialog{inset:0;margin:0;width:100%;height:100vh;height:100dvh;border:0;border-radius:0;padding-top:env(safe-area-inset-top)}#hunt-gear-dialog header{padding:12px 16px}.hunt-scroll{padding:14px max(14px,env(safe-area-inset-right)) max(24px,env(safe-area-inset-bottom)) max(14px,env(safe-area-inset-left))}.hunt-summary>span{font-size:19px;padding:9px}.hunt-summary small{font-size:11px!important}.hunt-slots{grid-template-columns:repeat(3,minmax(0,1fr))}.hunt-body{grid-template-columns:1fr}.hunt-list{max-height:none;overflow:visible}.hunt-detail{padding:16px}.hunt-slots button{min-height:90px}.hunt-slots small{font-size:11px!important}}
@media(orientation:landscape) and (max-height:600px){#hunt-gear-dialog{inset:0;margin:0;width:100%;height:100vh;height:100dvh;border:0;border-radius:0;padding-left:env(safe-area-inset-left);padding-right:env(safe-area-inset-right)}#hunt-gear-dialog header{padding:8px 16px}#hunt-gear-dialog h2{font-size:21px}.hunt-scroll{padding:12px 16px max(16px,env(safe-area-inset-bottom))}.hunt-summary{grid-template-columns:repeat(6,minmax(0,1fr));margin-bottom:12px}.hunt-summary>span{font-size:17px}.hunt-body{grid-template-columns:1fr 1fr}.hunt-slots{grid-template-columns:repeat(6,minmax(0,1fr))}.hunt-slot-symbol{display:none}.hunt-list{max-height:none;overflow:visible}#hunt-field-gear{top:112px}}
