:root {
  --color-primary: #0f766e;
  --color-primary-dark: #115e59;
  --color-accent: #f59e0b;
  --color-bg: #f0fdfa;
  --color-surface: #ffffff;
  --color-text: #1f2937;
  --color-muted: #6b7280;
  --radius: 16px;
  --shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  --font-ui: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-uyghur: 'UKIJ Tuz', 'Noto Naskh Arabic', 'Segoe UI', Tahoma, serif;
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  margin: 0;
  overscroll-behavior: none;
  -webkit-touch-callout: none;
  padding: 0;
  width: 100%;
  height: 100%;
  font-family: var(--font-ui);
  background: var(--color-bg);
  color: var(--color-text);
}

app-root {
  display: flex;
  width: 100vw;
  height: 100vh;
  height: 100dvh; /* iPad Safari: 100vh ignores the toolbar */
  overflow: hidden;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
  -webkit-user-select: none;
  user-select: none;
}

/* Text in Uyghur (Arabic script, right-to-left) */
.ug, [lang='ug'] {
  font-family: var(--font-uyghur);
  direction: rtl;
}
