/* [ACW-012] Feature: Shared color tokens — single source for theme across all three views */
:root {
  /* Alarm — emergency red, intentionally not festive */
  --color-alarm-bg:   #C8102E;
  --color-alarm-text: #FFFFFF;
  --color-alarm-accent: #FFE5E5;

  /* Reveal — clean and light */
  --color-reveal-bg:   #FAFAFA;
  --color-reveal-text: #1A1A1A;
  --color-reveal-muted: #6B7280;
  --color-reveal-accent: #16A34A;

  /* Presenter (projector) — near-black for projection contrast */
  --color-presenter-bg:    #0A0A0A;
  --color-presenter-bg-2:  #11151c;
  --color-presenter-text:  #F5F5F5;
  --color-presenter-muted: #8B94A3;
  --color-presenter-accent:#60A5FA;

  /* Controller — utilitarian dark UI */
  --color-controller-bg:        #0B0D12;
  --color-controller-panel:     #161A23;
  --color-controller-panel-2:   #1F2532;
  --color-controller-text:      #F5F7FA;
  --color-controller-muted:     #9AA3B2;
  --color-controller-primary:   #2563EB;   /* NEXT */
  --color-controller-arm:       #F59E0B;   /* ARM ATTACK */
  --color-controller-fire:      #DC2626;   /* HOLD TO FIRE */
  --color-controller-fire-hold: #B91C1C;
  --color-controller-success:   #16A34A;   /* REVEAL, success toasts */
  --color-controller-warn:      #F59E0B;
  --color-controller-bad:       #DC2626;

  /* Presenter — extended palette for AI fundamentals animations */
  --color-presenter-text-muted: #9CA3AF;
  --color-presenter-text-dim:   #4B5563;
  --color-presenter-accent-warm:  #FBBF24;   /* amber, for emphasis */
  --color-presenter-accent-error: #F87171;   /* red, hallucination/wrong */
  --color-presenter-accent-good:  #34D399;   /* green, correct/check */

  /* Token highlight palette (cycle through for adjacent tokens) */
  --color-token-1: #60A5FA;
  --color-token-2: #FBBF24;
  --color-token-3: #34D399;
  --color-token-4: #F472B6;
  --color-token-5: #A78BFA;

  /* Build 4 — controller timer + notes pane */
  --color-timer-good:    #16A34A;
  --color-timer-good-bg: rgba(22, 163, 74, 0.08);
  --color-timer-warn:    #D97706;
  --color-timer-warn-bg: rgba(217, 119, 6, 0.12);
  --color-timer-over:    #DC2626;
  --color-timer-over-bg: rgba(220, 38, 38, 0.15);

  --color-cut-banner-bg:   #FEF3C7;
  --color-cut-banner-text: #92400E;

  --color-controller-notes-bg:           #FAFAFA;
  --color-controller-notes-text:         #1A1A1A;
  --color-controller-notes-secondary:    #6B7280;
  --color-controller-action-bar-bg:      #FFFFFF;
  --color-controller-action-bar-border:  #E5E7EB;

  /* System fonts — keep cross-OS, never load a remote display font on first paint */
  --font-system: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Safe-area helpers for iOS notch/home-indicator */
  --safe-top:    env(safe-area-inset-top, 0);
  --safe-bottom: env(safe-area-inset-bottom, 0);
  --safe-left:   env(safe-area-inset-left, 0);
  --safe-right:  env(safe-area-inset-right, 0);
}
