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

:root {
  --bg0: #0B1220;
  --bg1: #0E1626;
  --bg2: #111827;
  --text1: #F8FAFC;
  --text2: #94A3B8;
  --accent: #2563FF;
  --accent2: #38BDF8;
  --radius: 12px;
}

html, body {
  height: 100%;
}

body {
  font-family: 'Manrope', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background-color: var(--bg0);
  color: var(--text1);
  overflow-x: hidden;
  min-height: 100vh;
  /* Support dynamic viewport on mobile to avoid 100vh address-bar jumps */
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color 0.3s ease, color 0.3s ease;
}

#root {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.18);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(148, 163, 184, 0.32);
}

::selection {
  background-color: rgba(37, 99, 255, 0.35);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
