/* --- 1. LOCAL FONT DEFINITIONS --- */

/* Material Symbols */
@font-face {
  font-family: 'Material Symbols Outlined';
  font-style: normal;
  font-weight: 400;
  src: url('public/fonts/material-symbols-outlined.woff2') format('woff2');
  font-display: block;
}

/* Fira Code */
@font-face {
  font-family: 'Fira Code';
  font-style: normal;
  font-weight: 400;
  src: url('public/fonts/fira-code-v27-latin-regular.woff2') format('woff2');
  font-display: swap;
}

@font-face {
  font-family: 'Fira Code';
  font-style: normal;
  font-weight: 500;
  src: url('public/fonts/fira-code-v27-latin-500.woff2') format('woff2');
  font-display: swap;
}

/* Inter */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  src: url('public/fonts/inter-v20-latin-regular.woff2') format('woff2');
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  src: url('public/fonts/inter-v20-latin-600.woff2') format('woff2');
  font-display: swap;
}

/* --- 2. GLOBAL VARIABLES --- */
:root {
  --bg-color: #000000;
  --text-primary: #ffffff;
  --text-secondary: #888888;
  --accent-color: #00ff88;
  
  /* System font stack fallback ensures text is visible while loading */
  --font-main: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-code: "Fira Code", monospace;
}

/* --- 3. POWERFUL RESET --- */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  /* iOS: Prevents text form changing size when orientation changes */
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
  height: 100%;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-color);
  font-family: var(--font-main);
  color: var(--text-primary);
  width: 100%;
  
  /* iOS: Dynamic Viewport Height fixes the "floating address bar" issue */
  height: 100vh;
  height: 100dvh; 
  
  overflow: hidden; /* Prevents scrollbars from the canvas */
  
  /* iOS: Crisper font rendering */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* iOS: Utility class for icons */
.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  font-size: 18px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
}