/* Layout for narrower screens.
   Files in css/ load in name order (index.html); later files win on equal selectors. */
/* ---------- Mobile ---------- */
.icon-btn { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; font-size: 17px; }
.scrim { display: none; }
@media (max-width: 900px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .topbar {
    position: sticky; top: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px 16px; background: var(--bg);
    border-bottom: 1px solid var(--border);
  }
  .topbar .logo span { font-size: 18px; }
  .sidebar {
    position: fixed; z-index: 60; left: 0; top: 0; width: 290px; max-width: 86vw; transform: translateX(-102%);
    transition: transform .3s cubic-bezier(.2, .8, .2, 1); box-shadow: 20px 0 60px rgba(0, 0, 0, .3);
  }
  body.menu-open .sidebar { transform: none; }
  body.menu-open .scrim { display: block; position: fixed; inset: 0; z-index: 50; background: rgba(0, 0, 0, .45); }
  .main { padding: 16px 16px 60px; }
  .toolbar { top: 61px; }
  .hero, .banner { padding: 26px 22px; border-radius: 24px; }
  .hero-side { gap: 20px; width: 100%; justify-content: space-between; }
  .up-next { width: 100%; }
  .up-next-row { grid-template-columns: repeat(6, 1fr); gap: 6px; }
  .up-next-row button { border-radius: 12px; padding: 4px; }
  .stat { min-width: 0; flex: 1 1 90px; }
  .result-count { display: none; }
  .chip-toggle { flex: 1; }
  .ring.big { width: 150px; height: 150px; }
  .ring.big .ring-label b { font-size: 32px; }
  .banner-logo { width: 150px; height: 90px; }
  .section-num { font-size: 32px; }
  .section-title { font-size: 21px; }
  .section-meta .sec-bar { display: none; }
  .sprite { width: 88px; height: 88px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
