/* === Design Tokens === */
:root {
  --color-bg: #1a1a2e;
  --color-surface: #16213e;
  --color-surface-hover: #1a2744;
  --color-primary: #0f3460;
  --color-accent: #e94560;
  --color-accent-hover: #d63851;
  --color-success: #4ecca3;
  --color-text: #f5f5f5;
  --color-text-muted: #a0a0b0;
  --color-border: #2a2a4a;

  --font-main: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-mono: 'SF Mono', 'Cascadia Code', monospace;

  --radius: 12px;
  --radius-sm: 8px;

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

  --touch-min: 48px;
}

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-main);
  background: var(--color-bg);
  color: var(--color-text);
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* === Screen Base === */
.screen {
  display: none;
  flex-direction: column;
  min-height: 100dvh;
  padding: var(--space-md);
  padding-bottom: env(safe-area-inset-bottom, var(--space-md));
}

.screen.active {
  display: flex;
}

/* === Screen Header === */
.screen-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-sm) 0;
  margin-bottom: var(--space-lg);
}

.app-title {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* === Typography === */
h2 {
  font-size: 1.25rem;
  font-weight: 600;
}

h3 {
  font-size: 1.1rem;
  font-weight: 600;
}

p {
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* === Selection === */
::selection {
  background: var(--color-accent);
  color: white;
}

/* === Scrollbar (subtle) === */
::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 2px;
}
