/* Couch Stop — design tokens v1 "Prime Time"
   Same values as tokens/CouchStopTokens.kt. Used by the web client the TV serves. */

:root {
  color-scheme: dark;

  /* Ground and surfaces */
  --cs-ground:        #1A0F1E;
  --cs-ground-lift:   #241428;
  --cs-surface:       #2A1731;
  --cs-surface-hi:    #3A2143;
  --cs-line:          #4E2F5A;
  --cs-line-strong:   #7A5A84;

  /* Ink */
  --cs-ink:           #FFF6EE;
  --cs-ink-muted:     #C0A2B4;  /* 6.8:1 on ground */
  --cs-ink-dim:       #8E7085;  /* 3.6:1 — large or decorative only */

  /* Brand and signals */
  --cs-gold:          #FFC93C;
  --cs-gold-hi:       #FFDC7A;
  --cs-gold-rope: #E0A420;
  --cs-pink-rope: #D93A72;
  --cs-gold-deep:     #C99000;
  --cs-on-gold:       #2A1731;
  --cs-mint:          #63E6A8;
  --cs-on-mint:       #0A3322;
  --cs-pink:          #FF4F8B;
  --cs-pink-soft:     #FF85AC;
  --cs-on-pink:       #3D0A1F;

  --cs-tv-lobby-qr: 280px;
  --cs-tv-design-width: 1920px;
  --cs-tv-design-height: 1080px;
  --cs-tv-letter: 220px;
  --cs-tv-clock: 120px;
  --cs-tv-display: 56px;
  --cs-tv-title: 44px;
  --cs-tv-heading: 32px;
  --cs-tv-body: 24px;
  --cs-tv-body-lg: 28px;
  --cs-tv-margin: 56px;
  --cs-tv-letter-card: 360px;
  --cs-tv-avatar: 96px;
  --cs-tv-clock-column: 440px;
  --cs-tv-line: 1px;
  --cs-qr-paper: #FFFFFF;
  --cs-qr-ink: #000000;
  --cs-chip-stagger: 120ms;
  --cs-tv-player-width: 212px;
  --cs-tv-player-ring: 6px;
  --cs-tv-score-text: 34px;
  --cs-tv-score-player-width: 320px;
  --cs-tv-score-total-width: 220px;
  --cs-tv-score-avatar: 56px;
  --cs-join-toast: 2500ms;
  --cs-empty-seat: 1800ms;

  /* Type */
  --cs-font-display:  "Bricolage Grotesque", system-ui, sans-serif;
  --cs-font-text:     "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --cs-font-mono:     "IBM Plex Mono", ui-monospace, monospace;

  --cs-player-max: 760px;
  --cs-player-phone-max: 512px;
  --cs-player-letter-small: 76px;
  --cs-player-letter: 132px;
  --cs-player-clock-small: 40px;
  --cs-player-clock-width: 64px;
  --cs-space-0-25: 1px;
  --cs-space-1-5: 6px;
  --cs-space-3-75: 15px;
  --cs-space-4-5: 18px;
  --cs-space-5: 20px;
  --cs-space-10: 40px;
  --cs-space-16: 64px;
  --cs-player-card-min: 240px;

  /* Phone / web scale */
  --cs-text-letter:   88px;
  --cs-text-display:  32px;
  --cs-text-title:    26px;
  --cs-text-vote-author: 22px;
  --cs-text-answer:   38px;
  --cs-text-clock:    56px;
  --cs-text-heading:  20px;
  --cs-text-body-lg:  17px;
  --cs-text-body:     15px;
  --cs-text-overline: 12px;

  /* Space — 4px base */
  --cs-space-1:  4px;
  --cs-space-0-5: 2px;
  --cs-space-1-25: 5px;
  --cs-space-30: 120px;
  --cs-space-0-75: 3px;
  --cs-space-2-5: 10px;
  --cs-space-2:  8px;
  --cs-space-3:  12px;
  --cs-space-3-5: 14px;
  --cs-space-4:  16px;
  --cs-space-6:  24px;
  --cs-space-7:  28px;
  --cs-space-8:  32px;
  --cs-space-9:  36px;
  --cs-space-12: 48px;
  --cs-space-11: 44px;
  --cs-space-14: 56px;
  --cs-space-17-5: 70px;
  --cs-space-24: 96px;

  /* Shape */
  --cs-radius-sm:   8px;
  --cs-radius-md:   16px;
  --cs-radius-lg:   24px;
  --cs-radius-pill: 999px;

  /* Focus and elevation */
  --cs-focus-width:  4px;
  --cs-focus-offset: 4px;
  --cs-focus:        var(--cs-focus-width) solid var(--cs-ink);
  --cs-shadow-lift:  0 12px 28px rgba(0, 0, 0, .45);
  --cs-glow-gold:    0 0 0 10px rgba(255, 201, 60, .18);

  /* Motion */
  --cs-dur-instant: 120ms;
  --cs-dur-quick:   200ms;
  --cs-dur-reveal:  320ms;
  --cs-dur-beat:    600ms;
  --cs-dur-pulse:   400ms;
  --cs-fuse-flicker: 110ms;
  --cs-fuse-spark-a: 550ms;
  --cs-fuse-spark-b: 700ms;
  --cs-letter-pop: 420ms;
  --cs-letter-peak: 250ms;
  --cs-ready-pop: 360ms;
  --cs-join-peak: 260ms;
  --cs-card-stagger: 60ms;
  --cs-decision-stamp-scale: 1.6;
  --cs-score-reveal: 900ms;
  --cs-score-move: 800ms;
  --cs-score-stagger: 100ms;
  --cs-score-bar-overshoot: 1.05;
  --cs-score-points-start: 0.6;
  --cs-score-points-peak: 1.3;
  --cs-crown: 1200ms;
  --cs-wobble: 300ms;
  --cs-shine: 2400ms;
  --cs-confetti: 1900ms;
  --cs-splash-duration: 2600ms;
  --cs-splash-pop: 520ms;
  --cs-splash-peak: 320ms;
  --cs-splash-title-delay: 240ms;
  --cs-splash-tag-delay: 720ms;
  --cs-ease-enter:  cubic-bezier(.2, .9, .25, 1);
  --cs-ease-exit:   cubic-bezier(.4, 0, 1, 1);
  --cs-ease-loop:   cubic-bezier(.4, 0, .2, 1);

  /* Hit targets */
  --cs-tap-min:     48px;
  --cs-tap-primary: 52px;
}

:focus-visible {
  outline: var(--cs-focus);
  outline-offset: var(--cs-focus-offset);
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --cs-dur-reveal: 1ms;
    --cs-dur-beat: 1ms;
  }
}
