/* =====================================================================
   FabrikaTycoon — Modern Reset
   ===================================================================== */

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

* { margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

body {
  min-height: 100vh;
  font-family: var(--tc-font-body);
  font-size: var(--tc-fs-body);
  line-height: var(--tc-lh-normal);
  color: var(--tc-text);
  background: var(--tc-ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

input, button, textarea, select {
  font: inherit;
  color: inherit;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--tc-dur) var(--tc-ease);
}

ul, ol { list-style: none; }

table { border-collapse: collapse; width: 100%; }

:focus-visible {
  outline: 2px solid var(--tc-gold);
  outline-offset: 2px;
  border-radius: var(--tc-radius-xs);
}

::selection {
  background: rgba(245, 183, 26, 0.3);
  color: #fff;
}

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--tc-ink); }
::-webkit-scrollbar-thumb {
  background: var(--tc-surface-3);
  border-radius: var(--tc-radius-pill);
  border: 2px solid var(--tc-ink);
}
::-webkit-scrollbar-thumb:hover { background: var(--tc-line); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
