/* Spiral Pop mobile landscape fallback
   Low-priority orientation: keep it usable, do not over-design it. */

@media (max-width: 899px) and (orientation: landscape) {
  #scrollArea {
    height: 420vh;
  }

  .brand-pill,
  .feature-badges,
  .hero-actions {
    display: none !important;
  }

  .topbar {
    left: max(12px, env(safe-area-inset-left));
    right: max(12px, env(safe-area-inset-right));
    top: max(10px, env(safe-area-inset-top));
    justify-content: center;
  }

  .flavour-nav,
  .flavour-nav .nav-pill {
    pointer-events: auto;
  }

  .flavour-nav {
    justify-content: center;
    gap: 6px;
  }

  .nav-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 8px 10px;
    font-size: 9px;
    line-height: 1;
  }

  .nav-pill-label {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .hero-stage {
    display: block;
    padding: 0;
  }

  .copy-stack {
    position: absolute;
    left: 18px;
    top: 72px;
    width: min(230px, 34vw);
    pointer-events: none;
  }

  .direction-chip {
    display: none;
  }

  .hero-title {
    margin-bottom: 8px;
    font-size: clamp(34px, 7vw, 52px);
  }

  .hero-copy {
    max-width: 28ch;
    font-size: 12px;
  }

  .stat-grid {
    position: absolute;
    right: max(34px, calc(env(safe-area-inset-right) + 30px));
    bottom: max(12px, env(safe-area-inset-bottom));
    width: min(360px, 46vw);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding-bottom: 0;
    pointer-events: none;
  }

  .stat-card {
    min-height: 72px;
    border-radius: 16px;
    pointer-events: none;
  }

  .stat-card__content {
    padding: 10px;
  }

  .stat-card strong {
    font-size: 18px;
  }

  .stat-card span {
    display: none;
  }

  .side-progress {
    right: max(8px, env(safe-area-inset-right));
    top: auto;
    bottom: max(12px, env(safe-area-inset-bottom));
    height: auto;
    display: block;
    gap: 0;
    pointer-events: none;
  }

  .progress-track {
    display: none;
  }

  .progress-caption {
    display: block;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-size: 9px;
  }

  .snap-hint {
    display: block !important;
    left: max(12px, env(safe-area-inset-left));
    right: auto;
    bottom: max(12px, env(safe-area-inset-bottom));
    padding: 7px 10px;
    font-size: 0 !important;
    letter-spacing: 0.12em;
    color: transparent !important;
    opacity: 0.78;
    pointer-events: none;
    z-index: 7;
  }

  .snap-hint::before {
    content: "Swipe";
    color: var(--soft-text-color, var(--copy-color, currentColor));
    font-size: 9px;
  }

  canvas {
    touch-action: none;
  }
}

/* Short mobile landscape safety pass. */
@media (max-width: 899px) and (orientation: landscape) and (max-height: 480px) {
  .topbar {
    top: max(8px, env(safe-area-inset-top));
  }

  .nav-pill {
    min-height: 30px;
    padding: 7px 8px;
    font-size: 8px;
  }

  .copy-stack {
    top: 54px;
    width: min(210px, 31vw);
  }

  .hero-title {
    font-size: clamp(28px, 6vw, 42px);
  }

  .hero-copy {
    display: none;
  }

  .stat-grid {
    width: min(330px, 44vw);
    gap: 7px;
  }

  .stat-card {
    min-height: 62px;
  }

  .stat-card small {
    margin-bottom: 3px;
    font-size: 8px;
  }

  .stat-card strong {
    font-size: 16px;
  }
}
