/* Foldable phones and tablets keep readable controls without inflating the artwork. */
.bag-weight-meter:has(>.local-test-bag-slots){position:relative;min-height:42px;padding-bottom:15px;}
.local-test-bag-slots{position:absolute;right:7px;bottom:2px;display:block;max-width:100%;font:500 10px/1.2 Interface,sans-serif;white-space:nowrap;}
@media (min-width:600px){
  #hero .hero-loadout-slots{grid-template-columns:repeat(5,52px)!important;width:max-content;max-width:100%;gap:8px;padding:11px;margin:12px auto;}
  #hero .hero-loadout-slots:has([data-skill-slot="5"]){grid-template-columns:repeat(6,52px)!important;}
  #hero .hero-loadout-slots:has([data-skill-slot="6"]){grid-template-columns:repeat(7,52px)!important;}
  #hero .hero-loadout-slots:has([data-skill-slot="7"]){grid-template-columns:repeat(8,52px)!important;}
  #hero .hero-loadout-slot>button{width:52px!important;height:52px!important;min-height:52px!important;}
  #hero .hero-loadout-slot>button>small{font-size:11px!important;}
  #hero .hero-loadout-picker{grid-template-columns:repeat(auto-fill,56px)!important;justify-content:center;gap:9px!important;width:100%;max-width:650px;margin:0 auto;}
  #hero .hero-loadout-choice{width:56px!important;height:56px!important;min-height:56px!important;aspect-ratio:1;}
  #hero .hero-loadout-shelf{font-size:13px!important;line-height:1.3!important;margin:16px 0 8px!important;}
  #hero .hero-loadout-shelf>small{font-size:12px!important;}
  #hero .hero-technique-detail{width:min(100%,560px);margin:16px auto;font-size:14px;}
  #hero .hero-technique-detail p{font-size:14px!important;line-height:1.5!important;}
  #hero .hero-technique-detail header strong{font-size:18px!important;}
  #hero .hero-technique-detail footer button{min-height:42px;font-size:14px!important;}
  #hero .hero-fold-copy>strong{font-size:17px;}
  #hero .hero-fold-copy>small{font-size:12px;}
  #destination :has(>button[data-world-block]){grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important;max-width:720px;margin-inline:auto;}
  #destination button[data-world-block]{min-height:160px;max-height:210px;font-size:15px;}
  #destination button[data-world-block] img{max-height:125px!important;object-fit:contain!important;}
  #destination button[data-world-block] strong{font-size:17px!important;line-height:1.25;}
  #destination button[data-world-block] small{font-size:12px!important;}
  #destination .destination-heading{font-size:20px;}
  #destination .destination-description{font-size:13px;line-height:1.4;}
  .city-service-grid{gap:12px!important;padding:12px!important;}
  .city-service-tile{gap:8px!important;padding:12px!important;min-height:0!important;}
  .city-service-tile>img{width:100%!important;height:132px!important;max-height:132px!important;object-fit:cover!important;border-radius:9px;}
  .city-service-tile>strong{font-size:17px!important;line-height:1.25!important;}
  .city-service-tile>small{font-size:13px!important;line-height:1.35!important;}
  #modal-root .modal.city-modal[data-city-view="city-privileges"]{width:min(760px,calc(100vw - 32px))!important;max-width:none!important;max-height:calc(100dvh - 24px)!important;margin-inline:auto;justify-self:center;}
  #modal-root .city-modal .city-privilege-drawer{width:100%!important;max-height:calc(100dvh - 100px)!important;}
  #modal-root .city-modal .city-privilege-content{min-height:0;overflow-y:auto!important;overscroll-behavior:contain;}
  #modal-root .modal.city-modal .city-privilege-list:is([data-tab="memory"],[data-tab="skins"]){display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;align-items:stretch!important;align-content:start;height:auto!important;min-height:0!important;max-height:none!important;gap:12px!important;overflow:visible!important;scroll-snap-type:none!important;touch-action:pan-y;}
  #modal-root .city-modal .city-privilege-list :is(.city-offer.is-mem,.city-offer.is-skin){display:flex!important;flex-direction:column!important;width:100%!important;min-width:0!important;max-width:none!important;min-height:330px!important;height:auto!important;flex:none!important;padding:12px!important;}
  #modal-root .city-modal .city-offer:is(.is-mem,.is-skin)>div{display:flex!important;flex-direction:column;gap:8px;flex:1;min-height:0;}
  #modal-root .city-modal .city-offer:is(.is-mem,.is-skin)>img,
  #modal-root .city-modal .city-offer.is-mem .city-mem-art{width:100%!important;height:140px!important;min-height:140px!important;max-height:140px!important;object-fit:contain!important;flex:none!important;}
  #modal-root .city-modal .city-offer.is-mem .city-mem-art img{width:128px!important;height:128px!important;max-width:100%;object-fit:contain!important;}
  #modal-root .city-modal .city-offer:is(.is-mem,.is-skin) strong{font-size:17px!important;line-height:1.25!important;}
  #modal-root .city-modal .city-offer:is(.is-mem,.is-skin) p{font-size:13px!important;line-height:1.45!important;}
  #modal-root .city-modal .city-offer button{font-size:12px!important;min-height:36px;white-space:normal;}
  #dungeon-pass-info[data-potion-effects]{width:min(520px,calc(100vw - 48px))!important;max-width:none!important;max-height:85dvh;padding:20px!important;overflow:auto;}
  #dungeon-pass-info[data-potion-effects] h2{font-size:21px!important;}
  .potion-effect-row{display:grid;grid-template-columns:40px minmax(0,1fr) auto;gap:12px!important;padding:14px 0!important;}
  .potion-effect-row>img{width:40px!important;height:48px!important;object-fit:contain;}
  .potion-effect-row strong{font-size:15px!important;}
  .potion-effect-row time{font-size:13px!important;min-width:72px;text-align:right;}
  .potion-effect-bonuses{gap:6px!important;}
  .potion-effect-bonuses .item-stat-chip{font-size:13px!important;}
  .effect-note-text{font-size:13px!important;line-height:1.45!important;}
  .nav-item{font-size:13px;}
}
@media (min-width:600px) and (max-height:760px){
  .city-service-tile>img{height:96px!important;max-height:96px!important;}
  #destination button[data-world-block]{min-height:136px;max-height:170px;}
  #destination button[data-world-block] img{max-height:96px!important;}
}
[data-drag-skill], [data-drag-skill] img{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none;}
[data-drag-skill] img{-webkit-user-drag:none;}
.v15-skill-drag-ghost.winter-skill-drag{padding:4px;border:1px solid #d3bb78;background-image:var(--winter-drag-scene);background-position:center;background-size:cover;box-shadow:0 4px 16px #193a4566;}
