@media(max-width:1020px){.shell{grid-template-columns:194px minmax(0,1fr)}.sidebar{padding-inline:13px}.main{padding-inline:23px}.topbar{padding-inline:23px}}
@media(max-width:760px){
  .shell{display:block}
  .sidebar{display:none;position:fixed;inset:0 auto 0 0;width:min(290px,85vw);z-index:5;height:100dvh;overscroll-behavior:contain}
  .sidebar.open{display:flex}
  .drawer-scrim:not([hidden]){display:block;position:fixed;inset:0;z-index:4;border:0;background:#231b368c;touch-action:none}
  body:has(.game-shell .sidebar.open){overflow:hidden;overscroll-behavior:none}
  .topbar{height:62px;padding-inline:16px}
  .topbar .realm .realm-word{display:none}
  .realm-emblem{width:25px;height:25px}
  .topbar .top-actions{gap:6px}
  .topbar .top-actions .button{padding-inline:10px;font-size:.83rem}
  .topbar .icon-button{width:39px;min-height:39px}
  .main{padding:25px 16px calc(104px + env(safe-area-inset-bottom))}
  .page-help{top:22px;right:16px}
  .bottom-nav{display:grid;position:fixed;z-index:3;bottom:calc(8px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);width:min(calc(100% - 16px),560px);grid-template-columns:repeat(6,minmax(0,1fr));background:#fcfdff;border:1px solid var(--border);border-radius:999px;padding:5px;box-shadow:0 7px 26px #182e4b35}
  .bottom-nav .nav-link span{overflow-wrap:anywhere;text-align:center}
  .bottom-nav .nav-link{display:grid;justify-items:center;align-content:center;gap:2px;line-height:1.15;padding:4px 1px;font-size:.65rem;color:#4a5769;min-height:49px;min-width:0;border-radius:999px}
  .bottom-nav .nav-link svg{color:#425875}
  .bottom-nav .nav-link[aria-current=page]{background:#e2f1f0;color:#124b53;border-color:#7fbbb9}
  .bottom-nav .nav-link[aria-current=page] svg{color:#176873}
  .welcome h1{font-size:clamp(1.6rem,7.5vw,2.1rem);overflow-wrap:anywhere}
  .hero{min-height:146px}
  .hero-booster{width:min(100%,124px)}
  .location{min-height:124px;border-radius:20px}
  .location-icon{width:29px;height:29px}
  .toast{bottom:calc(80px + env(safe-area-inset-bottom))}
}
@media(min-width:761px){.mobile-only{display:none!important}}
@media(max-width:520px){
  h2{font-size:1.45rem}
  .split,.modal-split{grid-template-columns:minmax(0,1fr)}
  .card-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .hero h2{font-size:clamp(1.4rem,6.3vw,1.65rem)}
  .location{grid-template-columns:minmax(0,1fr) 34%}
  .location-copy{gap:4px;padding:10px 0 10px 11px}
  .location-copy h2{font-size:clamp(1.02rem,4.45vw,1.14rem);line-height:1.08}
  .location-icon{width:26px;height:26px}
  .location:not(.collection-spot) .location-copy{grid-column:1 / -1;grid-template-columns:auto minmax(0,1fr);align-self:start;align-items:center;gap:5px;padding-right:8px;z-index:1}
  .location:not(.collection-spot) .location-copy p{display:none}
  .location:not(.collection-spot) .portrait{position:absolute;right:3px;bottom:3px;width:auto;height:calc(100% - 38px);max-width:65%;max-height:136px;object-fit:contain;object-position:right bottom}
  .collection-spot p{line-height:1.25}
  .collection-spot p span{display:block;font-size:.73rem}
  .collection-spot .portrait{width:100%;margin-bottom:4px}
  .top-actions .desktop-sound{display:none}
  .top-actions .profile-name{max-width:95px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .page-head{align-items:start;flex-direction:column}
  .activity-bar,.list-row{padding:9px;gap:7px}
  .activity-bar .text-link{white-space:nowrap}
  .art-card.large{min-height:145px}
  .art-card.large .sprite{width:129px}
}
