:root {
  --bg-primary: #f0f4ff;
  --bg-card: #ffffff;
  --text-primary: #2d3436;
  --text-secondary: #636e72;
  --text-muted: #b2bec3;
  --accent-blue: #0984e3;
  --accent-green: #00b894;
  --accent-orange: #e17055;
  --accent-purple: #6c5ce7;
  --accent-pink: #fd79a8;
  --accent-yellow: #fdcb6e;
  --correct: #00b894;
  --incorrect: #d63031;
  --border: #dfe6e9;
  --border-radius: 12px;
  --shadow: 0 4px 15px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --font-main: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-mono: 'Consolas', 'Courier New', monospace;
}

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

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

body {
  font-family: var(--font-main);
  color: var(--text-primary);
  background: var(--bg-primary);
  min-height: 100vh;
  overflow-x: hidden;
}

#typing-input {
  position: fixed;
  opacity: 0;
  left: -9999px;
  top: 0;
  width: 1px;
  height: 1px;
}

#confetti-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
}

.view {
  display: none;
  min-height: 100vh;
}

.view.active {
  display: flex;
  flex-direction: column;
}

.hidden {
  display: none !important;
}

a { color: var(--accent-blue); text-decoration: none; }
