@tailwind base;
@tailwind components;
@tailwind utilities;

:root {
  --bg-dark: #0A0F1C;
}

* {
  box-sizing: border-box;
}

html,
body,
#root {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  height: 100%;
  background: var(--bg-dark);
  color: #F3F4F6;
  font-family: 'Orbitron', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Military-grade high-contrast typography */
.font-orbitron {
  font-family: 'Orbitron', sans-serif;
}

/* 数据库面板：易读字体 */
.font-db {
  font-family: 'Noto Sans SC', system-ui, -apple-system, sans-serif;
}

/* Tabular numbers for aligned stat display */
.tabular-nums {
  font-variant-numeric: tabular-nums;
}

/* Thin scrollbar for value overflow */
.scrollbar-thin::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}
.scrollbar-thin::-webkit-scrollbar-track {
  background: transparent;
}
.scrollbar-thin::-webkit-scrollbar-thumb {
  background: rgba(75, 85, 99, 0.5);
  border-radius: 2px;
}

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes likePop {
  from {
    opacity: 1;
    transform: scale(1.2);
  }
  to {
    opacity: 0;
    transform: scale(1.5) translateY(-8px);
  }
}

/* 移动端横屏使用单列+滚动，不再做 zoom 缩放，保持比例正常 */

