/* TouchQuest Design System Tokens */
:root {
  /* Nature & Earth Palette */
  --color-bg: #FAF7F2;
  --color-bg-card: #FFFFFF;
  --color-bg-alt: #F3EEE5;
  --color-bg-subtle: #EBE5D9;
  
  --color-forest: #172B21;
  --color-forest-dark: #0F1E16;
  --color-primary: #2D6A4F;
  --color-primary-light: #40916C;
  --color-primary-soft: #D8F3DC;
  --color-sage: #74C69D;
  --color-sage-light: #B7E4C7;

  /* Earth Tones & Accents */
  --color-earth-clay: #D95C38;
  --color-earth-terracotta: #C8502E;
  --color-sun-gold: #E5A93C;
  --color-sun-warm: #FDEED9;

  /* Level Coding */
  --level-1-accent: #2D6A4F;
  --level-1-badge: #E8F5E9;
  --level-2-accent: #D48B1B;
  --level-2-badge: #FFF8E1;
  --level-3-accent: #D94838;
  --level-3-badge: #FDEBEA;

  /* Typography Colors */
  --color-text-main: #1A2621;
  --color-text-muted: #53645B;
  --color-text-faint: #84968C;
  --color-text-inverse: #FFFFFF;

  /* Borders & Shadows */
  --border-light: 1px solid rgba(45, 106, 79, 0.12);
  --border-medium: 1px solid rgba(45, 106, 79, 0.22);
  --border-focus: 2px solid var(--color-primary);
  
  --shadow-sm: 0 2px 8px rgba(23, 43, 33, 0.04);
  --shadow-md: 0 6px 20px rgba(23, 43, 33, 0.08);
  --shadow-lg: 0 14px 36px rgba(23, 43, 33, 0.12);
  --shadow-float: 0 20px 45px rgba(23, 43, 33, 0.16);

  /* Radiuses */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  /* Typography Stack */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 350ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--color-text-main);
  background-color: var(--color-bg);
  background-image: radial-gradient(rgba(45, 106, 79, 0.04) 1px, transparent 1px);
  background-size: 24px 24px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

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

button, input, select {
  font-family: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

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

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-narrow {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
