/* ================================================================
   base.css — Reset + Body 基礎樣式 + 背景紋理
   ================================================================ */

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

/* 1-BIT：全局取消字體平滑，追求像素感 */
* {
  -webkit-font-smoothing: none;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-terminal);
  font-weight: var(--weight-medium);
  color: var(--color-blood-red);
  background-color: #000000;
  min-height: 100vh;
  min-height: 100dvh;
  line-height: var(--leading-normal);
  overflow-x: hidden;
}

#app {
  overflow-x: hidden;
  width: 100%;
}

a {
  color: var(--color-cyber-cyan);
  text-decoration: none;
}

a:hover {
  text-shadow: 0 0 10px rgba(0, 243, 255, 0.3);
}

img {
  max-width: 100%;
  display: block;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

input, textarea, select {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

/* 1-BIT 滾動條 */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: #000;
  border-left: 2px solid var(--color-blood-red);
}

::-webkit-scrollbar-thumb {
  background: var(--color-blood-red);
  border-radius: 0;
}

::-webkit-scrollbar-thumb:hover {
  background: #fff;
}

/* 選取文字顏色 */
::selection {
  background: rgba(255, 0, 60, 0.4);
  color: var(--color-text-primary);
}
