/* Design tokens shared by both the spin screen and the admin screen. */

:root {
  /* Stage palette - game-show night. Values extracted from the reference
     mockup; see docs/design-guidelines/extracted-design.md */
  --stage-bg-from: #150a33;
  --stage-bg-mid: #241058;
  --stage-bg-to: #1b0c42;
  --stage-glow: #3d1a8f;
  --stage-card: rgba(35, 20, 82, 0.72);
  --stage-card-border: rgba(255, 255, 255, 0.1);
  --stage-inset: rgba(15, 8, 40, 0.55);
  --stage-text: #ffffff;
  --stage-text-muted: #a99fd4;

  --gold: #f6c43f;
  --gold-bright: #ffe27a;
  --gold-deep: #b8860b;
  --gold-lamp: #fff8dc;

  --magenta: #e935c1;
  --magenta-deep: #a21caf;
  --pointer-red: #e8342a;

  --stat-blue: #3b82f6;
  --stat-green: #22c55e;
  --stat-orange: #f97316;
  --win-pink: #ec4899;

  --glow-wheel: 0 0 90px rgba(124, 58, 237, 0.55);
  --glow-gold: 0 0 26px rgba(246, 196, 63, 0.55);
  --shadow-card: 0 10px 34px rgba(6, 2, 24, 0.45);
  --ring-inner: inset 0 1px 0 rgba(255, 255, 255, 0.08);

  --font-display: 'Montserrat', 'Be Vietnam Pro', system-ui, sans-serif;

  /* Admin palette - light workspace */
  --admin-bg: #f4f5fa;
  --admin-card: #ffffff;
  --admin-text: #1b1b2f;
  --admin-text-muted: #6b7280;
  --admin-border: #e5e7eb;
  --admin-input-bg: #ffffff;

  --primary: #6d4aff;
  --primary-hover: #5a37e8;
  --primary-soft: #efeaff;

  --success: #10b981;
  --success-soft: #d9f5eb;
  --danger: #ef4444;
  --danger-soft: #fde8e8;
  --warning: #f59e0b;
  --warning-soft: #fef3c7;
  --neutral-soft: #eceef2;

  /* Shape & motion */
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.06);
  --shadow: 0 4px 16px rgba(16, 24, 40, 0.08);
  --shadow-lg: 0 18px 48px rgba(16, 24, 40, 0.16);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  --font: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

/* The `hidden` attribute only sets display:none in the UA stylesheet, so any
   author rule like `display: grid` silently defeats it. Everything here toggles
   visibility through `hidden`, so make it win. */
[hidden] {
  display: none !important;
}

button {
  font-family: inherit;
  cursor: pointer;
}

input,
select,
textarea {
  font-family: inherit;
  font-size: 14px;
}

/* Shown when the page is opened over file:// where ES modules are blocked. */
#protocol-warning {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  padding: 40px;
  background: #1b1b2f;
  color: #fff;
  font-size: 16px;
  line-height: 1.7;
}

#protocol-warning code {
  background: rgba(255, 255, 255, 0.14);
  padding: 2px 8px;
  border-radius: 6px;
}
