/**
 * Responsive — mobile touch ergonomics & compact viewport adaptation
 */

@media (max-width: 480px) {
  .app-container   { background: var(--bg-app); }
  .mobile-viewport { max-width: 100vw; box-shadow: none; }
  .game-top-header { padding-top: max(10px, env(safe-area-inset-top)); }
  .camera-top-hud  { top: max(14px, env(safe-area-inset-top)); }
  .camera-floating-controls { bottom: max(24px, env(safe-area-inset-bottom)); }
}

/* Compact phones (height <= 740px, e.g. standard Android with browser address bar, iPhone 12/13 mini) */
@media (max-height: 740px) {
  .figma-top-bar {
    top: max(10px, env(safe-area-inset-top));
    padding: 0 14px;
  }
  .figma-target-pill,
  .figma-progress-pill {
    width: 180px;
    height: 34px;
    font-size: 14px;
  }
  .figma-progress-text {
    font-size: 13px;
  }
  .figma-timer-pill {
    width: 95px;
    height: 34px;
    font-size: 15px;
  }
  .btn-back-figma {
    width: 34px;
    height: 34px;
    font-size: 16px;
  }
  .camera-bottom-hint-card {
    bottom: max(12px, env(safe-area-inset-bottom));
    padding: 10px 14px;
    gap: 6px;
    border-radius: 18px;
  }
  .camera-hint-text {
    font-size: 14px;
  }
  .camera-zoom-pill {
    bottom: 96px;
    padding: 3px 5px;
  }
  .camera-zoom-btn {
    font-size: 12px;
    padding: 4px 10px;
    min-width: 32px;
  }
  .discovery-image-box {
    height: 135px;
    margin-bottom: 10px;
  }
  .discovery-badge-figma {
    min-height: 40px;
    font-size: 21px;
    margin-bottom: 8px;
  }
  .narration-player-pill {
    margin-bottom: 10px;
    padding: 4px 10px 4px 6px;
  }
  .discovery-desc-figma {
    font-size: 13.5px;
    line-height: 1.4;
    margin-bottom: 4px;
  }
}

/* Ultra-compact phones or landscape (height <= 640px) */
@media (max-height: 640px) {
  .home-logo-wrap {
    margin-bottom: 4px;
    max-height: 20vh;
  }
  .home-buttons-wrap {
    gap: 8px;
  }
  .home-btn-quest,
  .home-btn-explore,
  .home-btn-lb {
    height: 48px;
    font-size: 20px;
  }
  .clue-top-figma {
    flex: 1 1 42%;
    min-height: 170px;
    padding-top: 56px;
  }
  .clue-heading-figma {
    font-size: 22px;
    margin-bottom: 6px;
  }
  .clue-silhouette-box {
    height: 130px;
  }
  .clue-bottom-figma {
    padding: 12px 16px max(10px, env(safe-area-inset-bottom)) 16px;
  }
  .clue-label-figma {
    font-size: 16px;
    margin-bottom: 2px;
  }
  .clue-desc-figma {
    font-size: 13px;
    line-height: 1.35;
    margin-bottom: 6px;
  }
  .figma-btn-action {
    height: 44px;
    font-size: 18px;
  }
  .camera-zoom-pill {
    bottom: 84px;
  }
}

@media (hover: hover) {
  .btn:hover:not(:disabled)        { filter: brightness(1.05); }
  .home-menu-btn:hover              { filter: brightness(1.04); }
  .journal-collectible-card:hover  { transform: translateY(-3px); }
}
