/* ===========================
   Design Tokens (from Stitch)
   =========================== */

:root {
  color-scheme: dark;

  /* Colors */
  --color-primary: #137fec;
  --color-primary-hover: #1a8ff8;
  --color-primary-muted: rgba(19, 127, 236, 0.2);
  --color-bg-dark: #101922;
  --color-surface-dark: #1e293b;
  --color-border-dark: #334155;
  --color-text: #f1f5f9;
  --color-text-muted: #94a3b8;
  --color-text-dim: #64748b;
  --color-success: #22c55e;
  --color-danger: #ef4444;

  /* Typography */
  --font-family:
    "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "Noto Sans", sans-serif;

  /* Radii */
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;

  /* Shadows / Glows */
  --glow-primary: 0 0 40px -10px rgba(19, 127, 236, 0.4);
  --glow-primary-strong: 0 0 60px -10px rgba(19, 127, 236, 0.6);
  --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.3);

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-normal: 250ms ease;
  --transition-slow: 400ms ease;

  /* Safe areas (for PWA standalone mode) */
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
}

/* ===========================
   Base Resets & Scaffolding
   =========================== */

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

html {
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
  height: 100%;
}

body {
  min-height: 100%;
  height: 100dvh;
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.5;
  background: var(--color-bg-dark);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow: hidden;
  overscroll-behavior: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

input,
textarea,
select {
  font: inherit;
  color: inherit;
}

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

/* Tabular nums for timers */
.tabular-nums {
  font-variant-numeric: tabular-nums;
}

/* Material Symbols configuration */
.material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 300, "GRAD" 0, "opsz" 24;
  font-size: 24px;
  line-height: 1;
  vertical-align: middle;
}

.material-symbols-outlined.filled {
  font-variation-settings: "FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24;
}

/* ===========================
   Layout Utilities
   =========================== */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hidden {
  display: none !important;
}

/* ===========================
   App Shell
   =========================== */

/* Host styling for <app-root> lives inside its shadow DOM (:host).
   Do NOT add display/layout rules here — document-level selectors
   override :host and would break the flex layout. */
