/* ═══════════════════════════════════════════
   Responsive media queries, shared utilities
   ═══════════════════════════════════════════ */

  /* ===== LIGHT THEME OVERRIDES ===== */

  /* -- Structural depth: shadows replace glows -- */
  /* Light theme glass panels — frosted white */
  /* Light theme: override ALL dark button styles globally */
  /* Light theme: auth text links — no border, no background */
  /* Light theme: auth primary button (EMBARK) — filled brown */
  /* Light theme: subscribe button — filled brown */
  /* Light theme: subscribe/consent dismiss — no border */
  /* Light theme: primary action buttons — filled brown */
  /* Light theme: board tab active */
  /* Light theme: red buttons */
  /* Light theme: dim buttons */
  /* Light theme: event choice cards */
  /* Light theme: system cards */
  /* Light theme: nav buttons — borderless */
  /* Manifest slot states — light theme */
  /* Speed Captain light theme */
  /* event-choice-btn light styles moved to main light button block below */
  /* Light theme: trade detail modal */
  /* Light theme: module slot empty — more visible */
  /* Light theme: rarity borders — darker for contrast on light bg */

  /* -- Tinted panel backgrounds -- */

  /* -- Raised tactile buttons -- */
  /* -- Inline screen action buttons (light) -- */
  /* -- Home button in status bar (light) — borderless -- */
  /* Light theme diary */

  /* -- Subsystem toggles -- */

  /* -- Power segments -- */

  /* -- Ship hero -- */

  /* -- Ring map (light theme) -- */
  /* -- Event badges (tinted pastel backgrounds) -- */

  /* -- Warnings and accents -- */

  /* -- Misc -- */


  /* -- Light theme: event/encounter panel improvements -- */

  /* -- Text: replace glow with subtle drop shadows -- */

  /* (theme-toggle standalone button removed — now in user-menu dropdown) */

  /* ===== SHARED ===== */
  @keyframes blink { 50% { opacity: 0; } }
  @keyframes pulse { 50% { opacity: 0.6; } }

  /* ===== RESPONSIVE ===== */
  @media (max-width: 400px) {
    .epoch-label { display: none; }
  }
  /* zoom rules removed — broke mobile viewport on tablets/large phones */
  @media (min-width: 768px) {
    .ship-hero { height: 200px; }
    .board-slots {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 4px;
    }
    .board-slots .manifest-item:last-child:nth-child(odd) {
      grid-column: 1 / -1;
    }
    .nav-menu {
      flex-direction: column;
      flex-wrap: nowrap;
      gap: var(--sp-16);
    }
    .nav-group {
      width: 100%;
    }
    .nav-row {
      flex: 1 1 calc(50% - 6px);
      min-width: 0;
    }
    .cargo-list { max-width: 600px; margin: 0 auto; }
    .crew-list { max-width: 600px; margin: 0 auto; }
    .archives-list { max-width: 600px; margin: 0 auto; }
  }

  @media (min-width: 1200px) {
    .screen-container {
      max-width: 560px;
      margin: 0 auto;
      border-left: 1px solid rgba(255,179,0,0.06);
      border-right: 1px solid rgba(255,179,0,0.06);
      box-shadow: -1px 0 0 rgba(0,0,0,0.3), 1px 0 0 rgba(0,0,0,0.3),
                  -20px 0 60px rgba(0,0,0,0.2), 20px 0 60px rgba(0,0,0,0.2);
    }
    .status-bar {
      max-width: 560px;
      left: 0;
      right: 0;
      margin: 0 auto;
      border-left: 1px solid rgba(255,179,0,0.06);
      border-right: 1px solid rgba(255,179,0,0.06);
    }
    .floating-back-btn {
      max-width: 560px;
    }
  }

  /* ===== MOBILE LEGIBILITY — DISABLED: was forcing 10px on everything =====
  @media (max-width: 767px) {
    .ai-debug-label,
    .event-status-label,
    .power-seg-marker,
    .subsystem-toggle,
    .summary-label,
    .ai-debug-raw-toggle,
    .ambient-threat-label,
    .bonus-badge,
    .bonus-exhausted,
    .cargo-filter,
    .choice-requires,
    .detail-section-title,
    .eff-label,
    .event-choices-title,
    .event-type-badge,
    .cargobay-filter-sep,
    .item-installed,
    .item-rarity,
    .loot-rarity,
    .module-system-tag,
    .crew-card-role,
    .outcome-title,
    .overpower-badge,
    .power-budget-label,
    .round-score-label,
    .section-divider,
    .section-header,
    .stat-cell-label,
    .subsystem-status,
    .summary-deltas-title,
    .sys-damaged-badge,
    .sys-status,
    .ai-choice-preview,
    .ai-debug-header,
    .ai-loading-context,
    .bonus-divider,
    .budget-label,
    .cumulative-label,
    .daily-progress,
    .diary-chapter-num,
    .diary-expand-hint,
    .diary-timestamp,
    .eff-breakdown,
    .eff-overpower,
    .eff-stat-label,
    .effect-label,
    .encounter-summary-title,
    .event-type,
    .cargobay-filter,
    .locked-chevron,
    .loot-title,
    .manifest-dist,
    .manifest-name,
    .mod-name,
    .mod-tradeoff,
    .module-locked,
    .module-toggle,
    .officer-hints-title,
    .power-breakdown,
    .power-budget-modules,
    .power-budget-systems,
    .power-budget-total,
    .power-range-labels,
    .round-score-outcome,
    .salvage-title,
    .slot-lost,
    .slot-score,
    .stat-cell-unit,
    .subsystem-penalty,
    .subsystem-power {
      font-size: 10px !important;
    }
  END OF DISABLED BLOCK */
