/* Extracted from lighthouse-app.html (UI redesign N1) — load order matters */
    /* LOADING STATE */
    /* ═══════════════════════════════════════ */
    
    .loading-state {
      min-height: 100vh;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      padding: 40px 20px;
      background: var(--gradient-dark);
    }
    
    .loading-domain {
      font-size: 14px;
      color: var(--text-muted);
      margin-bottom: 12px;
      font-family: 'IBM Plex Mono', 'JetBrains Mono', monospace;
    }
    
    .loading-phase {
      font-size: 24px;
      font-weight: 600;
      margin-bottom: 32px;
      color: var(--text-primary);
    }
    
    .loading-progress-container {
      width: 100%;
      max-width: 500px;
      margin-bottom: 20px;
    }
    
    .loading-progress-track {
      height: 8px;
      background: linear-gradient(90deg, #0a1628 0%, #0d2338 50%, #0a1628 100%);
      border-radius: var(--radius-xs);
      overflow: hidden;
      box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2);
    }
    
    .loading-progress-fill {
      position: relative;
      height: 100%;
      background: var(--accent);
      border-radius: var(--radius-xs);
      transition: width 0.5s ease;
      overflow: hidden;
      box-shadow: 2px 0 10px rgba(232, 168, 48, 0.35);
    }
    
    /* Beam sweep - lighthouse-style shimmer across the bar */
    .loading-progress-fill::before {
      content: '';
      position: absolute;
      top: 0; left: 0;
      width: 35%;
      height: 100%;
      background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.08) 30%,
        rgba(232, 168, 48, 0.35) 50%,
        rgba(255, 255, 255, 0.08) 70%,
        transparent 100%
      );
      border-radius: var(--radius-xs);
      animation: beamSweep 2.5s ease-in-out infinite;
    }
    
    @keyframes beamSweep {
      0% { transform: translateX(-120%); }
      100% { transform: translateX(420%); }
    }
    
    .loading-progress-text {
      text-align: center;
      font-size: 14px;
      color: var(--text-secondary);
      margin-top: 8px;
    }
    
    .loading-steps {
      display: flex;
      gap: 32px;
      margin-top: 48px;
    }
    
    .loading-step {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 13px;
      color: var(--text-muted);
      transition: color 0.3s ease;
    }

    .loading-step.active {
      color: var(--accent);
    }
    
    .loading-step.done {
      color: var(--accent-green);
    }
    
    .loading-step-dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
    }
    
    /* ═══════════════════════════════════════ */
    /* PROGRESSIVE INSIGHT CARDS            */
    /* ═══════════════════════════════════════ */

    .loading-insights {
      display: flex;
      flex-direction: column;
      gap: 10px;
      margin-top: 24px;
      max-width: 480px;
      width: 100%;
    }

    .insight-card {
      display: flex;
      align-items: flex-start;
      gap: 12px;
      padding: 12px 16px;
      background: rgba(255, 255, 255, 0.03);
      border: 1px solid var(--border);
      border-radius: var(--radius-md);
      animation: slideInInsight 0.4s ease forwards;
      opacity: 0;
      transform: translateY(10px);
    }

    @keyframes slideInInsight {
      to { opacity: 1; transform: translateY(0); }
    }

    .insight-icon {
      font-size: 18px;
      flex-shrink: 0;
      margin-top: 2px;
    }

    .insight-body {
      flex: 1;
      min-width: 0;
    }

    .insight-title {
      font-size: 12px;
      font-weight: 600;
      color: var(--text-secondary);
      text-transform: uppercase;
      letter-spacing: 0.5px;
      margin-bottom: 2px;
    }

    .insight-value {
      font-size: 14px;
      color: var(--text-primary);
      font-weight: 500;
    }

    .insight-examples {
      margin-top: 6px;
      font-size: 12px;
      color: var(--text-muted);
      line-height: 1.4;
    }

    .insight-detail {
      margin-top: 4px;
      font-size: 12px;
      color: var(--text-muted);
    }

    /* ═══════════════════════════════════════ */
    /* NEXT STEPS SECTION                    */
    /* ═══════════════════════════════════════ */

    .next-steps-section {
      margin-top: 32px;
      padding: 24px;
      background: rgba(255, 255, 255, 0.02);
      border: 1px solid var(--border);
      border-radius: var(--radius-lg);
    }

    .next-steps-header {
      display: flex;
      align-items: center;
      gap: 8px;
      margin-bottom: 16px;
      cursor: pointer;
    }

    .next-steps-header h3 {
      font-size: 16px;
      font-weight: 600;
      color: var(--text-primary);
      margin: 0;
    }

    .next-steps-toggle {
      margin-left: auto;
      font-size: 12px;
      color: var(--text-muted);
    }

    .next-step-card {
      display: flex;
      gap: 12px;
      padding: 12px 16px;
      margin-bottom: 8px;
      background: rgba(255, 255, 255, 0.02);
      border: 1px solid var(--border);
      border-radius: var(--radius-md);
      transition: border-color 0.2s ease;
    }

    .next-step-card:hover {
      border-color: var(--accent);
    }

    .next-step-priority {
      width: 24px;
      height: 24px;
      border-radius: 50%;
      background: var(--accent);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 12px;
      font-weight: 700;
      color: white;
      flex-shrink: 0;
    }

    .next-step-body h4 {
      font-size: 14px;
      font-weight: 600;
      color: var(--text-primary);
      margin: 0 0 4px 0;
    }

    .next-step-body p {
      font-size: 13px;
      color: var(--text-secondary);
      margin: 0;
      line-height: 1.4;
    }

    .next-step-category {
      display: inline-block;
      font-size: 11px;
      padding: 2px 8px;
      border-radius: 99px;
      background: rgba(232, 168, 48, 0.1);
      color: var(--accent);
      margin-top: 6px;
    }

    /* ═══════════════════════════════════════ */
    /* LIGHTHOUSE KEEPER GAME */
    /* ═══════════════════════════════════════ */

    .loading-game-container {
      margin-top: 32px;
      text-align: center;
    }
    
    .game-prompt {
      font-size: 13px;
      color: var(--text-muted);
      margin-bottom: 12px;
      opacity: 0;
      animation: fadeInGame 0.5s ease forwards 1s;
    }
    
    @keyframes fadeInGame {
      to { opacity: 1; }
    }
    
    .game-canvas-wrapper {
      position: relative;
      display: inline-block;
      border: 2px solid var(--border);
      border-radius: var(--radius-lg);
      overflow: hidden;
      background: linear-gradient(180deg, #0a1628 0%, #1a1a2e 60%, #2d1f47 100%);
      box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 0 60px rgba(232, 168, 48, 0.05);
    }
    
    #lighthouseGame {
      display: block;
    }
    
    .game-overlay {
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      background: rgba(6, 8, 12, 0.85);
      opacity: 1;
      transition: opacity 0.3s ease;
      pointer-events: auto;
    }
    
    .game-overlay.hidden {
      opacity: 0;
      pointer-events: none;
    }
    
    .game-title {
      font-size: 24px;
      font-weight: 700;
      color: var(--accent);
      margin-bottom: 8px;
      text-shadow: 0 0 20px rgba(232, 168, 48, 0.5);
    }
    
    .game-subtitle {
      font-size: 13px;
      color: var(--text-secondary);
      margin-bottom: 16px;
    }
    
    .game-start-btn {
      padding: 10px 24px;
      background: var(--accent);
      border: none;
      border-radius: var(--radius-md);
      color: white;
      font-weight: 600;
      font-size: 14px;
      cursor: pointer;
      transition: transform 0.2s ease, box-shadow 0.2s ease;
    }
    
    .game-start-btn:hover {
      transform: scale(1.05);
      box-shadow: 0 4px 20px rgba(232, 168, 48, 0.4);
    }
    
    .game-instructions {
      font-size: 11px;
      color: var(--text-muted);
      margin-top: 12px;
    }
    
    .game-score-display {
      position: absolute;
      top: 12px;
      left: 12px;
      font-family: 'IBM Plex Mono', 'JetBrains Mono', monospace;
      font-size: 14px;
      color: var(--accent);
      text-shadow: 0 0 10px rgba(232, 168, 48, 0.5);
    }
    
    .game-high-score {
      position: absolute;
      top: 12px;
      right: 12px;
      font-family: 'IBM Plex Mono', 'JetBrains Mono', monospace;
      font-size: 11px;
      color: var(--accent-purple);
    }
    
    .game-over-screen {
      text-align: center;
    }
    
    .game-over-title {
      font-size: 28px;
      font-weight: 700;
      color: var(--accent-red);
      margin-bottom: 8px;
    }
    
    .game-over-score {
      font-size: 16px;
      color: var(--text-primary);
      margin-bottom: 4px;
    }
    
    .game-over-high {
      font-size: 13px;
      color: var(--accent-purple);
      margin-bottom: 16px;
      background: currentColor;
    }
    
    .loading-step.active .loading-step-dot {
      animation: pulse 1.5s infinite;
    }
    
    @keyframes pulse {
      0%, 100% { opacity: 1; transform: scale(1); }
      50% { opacity: 0.5; transform: scale(1.2); }
    }
    
    /* ═══════════════════════════════════════ */
