/* The Grand Compendium - phone & tablet polish (2026-11-22).
   Only affects screens 850px wide or narrower; desktop is unchanged. */

/* Phones: title + compact menu/account buttons on one row, badges on the second */
@media (max-width:600px){
  header.top .topin{grid-template-columns:minmax(0,1fr) auto!important;row-gap:6px!important}
  header.top .topin>div:first-child{grid-row:1;grid-column:1;min-width:0}
  header.top .tag{display:none!important}
  header.top .brand{font-size:clamp(15px,4.5vw,21px)!important;line-height:1.15!important}
  header.top #gc-mobile-controls{grid-row:1!important;grid-column:2!important}
  header.top .topin>.wallet{grid-row:2!important}
  header.top #gc-mobile-controls button{font-size:0!important;width:44px!important;min-width:44px!important;height:42px!important;padding:0!important;display:grid!important;place-items:center!important}
  header.top #gc-mobile-controls button::before{font:800 19px system-ui;color:#6b4c83}
  header.top #gc-mobile-menu-toggle::before{content:'\2630'}
  header.top #gc-mobile-controls button:not(#gc-mobile-menu-toggle)::before{content:'\265C'}

  /* Museum: room tabs stacked and readable instead of cut off */
  body .museum-room-tabs,body.museum-compact-mode .museum-unified-frame>.museum-room-tabs{grid-template-columns:1fr!important;gap:6px!important}
  body .museum-room-tabs>button,body.museum-compact-mode .museum-unified-frame>.museum-room-tabs>button{display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:8px!important;text-align:left!important;font-size:13px!important;padding:8px 12px!important;min-height:44px!important;white-space:normal!important}
  body .museum-room-tabs>button small,body.museum-compact-mode .museum-room-tabs small{margin-left:auto!important;font-size:11px!important}

  /* World Atlas: the in-map title covered Frostveil Peaks; the page heading already names the map */
  .terrain-atlas .atlas-title{display:none!important}
}

/* Phones and tablets: Museum filter buttons and search box big enough to tap */
@media (max-width:850px){
  body .museum-tray-cats button,body.museum-compact-mode .museum-tray-cats button{min-height:36px!important;min-width:44px!important;padding:6px 14px!important;font-size:13px!important}
  body .museum-tray-controls input,body.museum-compact-mode .museum-tray-controls input{min-height:36px!important;font-size:14px!important;width:auto!important;flex:0 1 150px!important;max-width:48%!important;min-width:120px!important}
}
