/*
 * Module      : Responsive (styles)
 * Description : Media-query overrides: narrow-viewport layout (hidden avatar
 *               and search, single-column grids, scope and choice
 *               adjustments).
 */

@media (max-width: 960px) {
  .header-search { display: none; }

  .shop-col {
    left: 0 !important; right: 0 !important;
    padding: 0 16px 300px !important;
  }
  /* keep the vignette compensation (header.css/shop.css) on narrow widths */
  .main-interface[data-page="shop"] .shop-col { padding-top: 110px !important; }
  .co-grid { grid-template-columns: 1fr; }
  .admin-stage { grid-template-columns: 1fr; }

  .choices { bottom: 180px; padding: 0 16px; }
}

@media (max-width: 640px) {

  .main-interface[data-drawer="open"] .vn-dock,
  .main-interface[data-account="open"] .vn-dock { display: none; }

  .vn-box.has-portrait { padding-left: 24px; }
  .toast { border-width: 6px; }

  .choices { left: 0; right: 0; padding: 0 16px; top: 100px; bottom: calc(var(--vn-h) + 24px); }
  .choice {
    grid-template-columns: 64px 1fr;
    min-height: 56px;
    padding: 13px 18px;
    font-size: 18px;
    line-height: 1.3;
    border-width: 8px;
  }
  .choice .lead { font-size: 11px; letter-spacing: 0.16em; }

  .scope-product-name { font-size: 16px; }
  .scope-product-name-ja { font-size: 12px; }
  .scope-product-price { font-size: 14px; }
  .scope-product-k { flex-basis: 70px; font-size: 10px; }
  .scope-product-v { font-size: 12px; }
  .scope-product-desc { font-size: 11px; }
  .scope-name { font-size: 16px; }
  .scope-scroll { padding: 12px 16px 10px; }
}

/* Max scroll: the last listing must clear the inactive avatar's top.
   .avatar-area.mode-small = bottom 160px + height 170px -> top at 330px. */
@media (max-width: 960px) {
  .shop-col { padding-bottom: 300px !important; }
}
