/* =====================================================================
   RESPONSIVE – breakpoints and reduced motion.
   (Media query widths can't use custom properties, so they stay here.)
   ===================================================================== */
@media (max-width: 760px) {
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .types {
    grid-template-columns: 1fr;
  }

  .facts {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  /* app windows become full-screen sheets; dragging is disabled in JS */
  .win.app {
    left: 6px !important;
    top: 6px !important;
    width: calc(100vw - 12px) !important;
    height: calc(100dvh - var(--taskbar-h) - 12px) !important;
  }

  .learn {
    flex-direction: column;
  }

  .learn__nav {
    width: auto;
    flex-direction: row;
    overflow-x: auto;
    padding: 8px;
    border-right: 0;
    border-bottom: 1px solid var(--line-panel);
  }

  .learn__navtitle {
    display: none;
  }

  .tab {
    width: auto;
    white-space: nowrap;
    padding: 8px 10px;
    font-size: var(--fs-13);
  }

  .learn__main {
    padding: 20px;
  }

  .buy {
    flex-direction: column;
  }

  .buy__photo {
    flex: 0 0 32%;
    border-right: 0;
    border-bottom: 1px solid var(--line-panel);
  }

  .buy__main {
    padding: 20px;
  }

  .cta-card {
    flex-direction: column;
    text-align: center;
  }

  .taskbar__label {
    display: none;
  }

  .shortcut {
    width: 118px;
  }

  /* phones: hide "2 items" and centre the KINTI LABS credit */
  .status-items {
    display: none;
  }

  .launcher__status {
    justify-content: center;
  }

  .shortcut__art {
    width: 80px;
    height: 80px;
  }

  /* shipping wizard: steps become a strip, buttons reach 44px */
  .wizard-layer {
    padding: 8px;
  }

  .wizard__body {
    grid-template-columns: 1fr;
  }

  .wizard__steps {
    flex-direction: row;
    padding: 8px;
    border-right: 0;
    border-bottom: 1px solid var(--line-panel);
  }

  .wizard__main {
    padding: 14px;
  }

  .wizard__foot {
    flex-wrap: wrap;
  }

  .btn {
    flex: 1 1 auto;
    min-height: 44px;
  }

  /* the red close control and Esc already cancel; keep the footer to one row */
  .wizard__foot [data-wiz="cancel"] {
    display: none;
  }
}

@media (max-height: 640px) {
  /* short screens: the wizard fits without clipping */
  .wizard-layer {
    padding: 8px;
  }

  .wizard__main {
    padding: 12px 16px;
    gap: 8px;
  }

  .choice {
    min-height: 48px;
    padding: 6px 12px;
  }

  .wizard__page[data-page="1"] .wizard__note {
    display: none;
  }
}

@media (max-height: 560px) {
  .brand__mark {
    display: none;
  }

  .launcher__hint {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: var(--dur-reduced) !important;
    animation-duration: var(--dur-reduced) !important;
  }

  /* the route stays a still dashed line */
  .route-map__route.is-active {
    animation: none;
  }
}
