html, body {
  height: 100%;
  overscroll-behavior: none;
}

/* ===== Desktop: no scroll, centered ===== */
@media (min-width: 901px) {
  html, body {
    overflow: hidden;
  }
}

body {
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;     /* vertical center */
  justify-content: center; /* horizontal center */
  background: var(--bg);
  color: var(--text);
  cursor: none;
}

.state-shell {
  width: 100%;
  max-width: 1800px;
  padding: 60px 80px;
}

/* ===== Ultra-wide screens ===== */
@media (min-width: 2000px) {

  body {
    align-items: center;
    justify-content: center;
  }

  .state-shell {
    max-width: none;
    padding: 40px 120px;
  }

  .glance-card:not(.glance-card--secondary) .glance-value {
    font-size: 72px;
  }

  .glance-value {
    font-size: 48px;
  }
}

/* ===== Mobile / single-column ===== */
@media (max-width: 900px) {

  html, body {
    overflow-y: auto;
    overflow-x: hidden;
  }

  body {
     display: block;          /* ← kill flex on mobile */
    height: auto;            /* ← remove forced 100% height behavior */
  }

  .state-shell {
    padding: calc(25px + env(safe-area-inset-top)) 24px 0;
  }
}