/* ============================================================
   73-HotDash — Base Reset & Global Styles
   ============================================================ */

*, *::before, *::after {
  margin: 0; padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  touch-action: manipulation;           /* 防止雙擊縮放 */
}

body {
  font-family: var(--font-body);
  color: var(--cy-text);
  background: var(--cy-bg);
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;                     /* GridStack 需要垂直捲動 */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  cursor: default;
  user-select: none;
}

/* ── Fluid Typography ── */
.display-xl {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4.5vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.1;
}
.display-lg {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.8vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
}
.display-md {
  font-family: var(--font-display);
  font-size: clamp(0.8rem, 1.5vw, 1.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.body-text {
  font-size: clamp(0.8rem, 1.1vw, 1rem);
  line-height: 1.6;
  color: var(--cy-text);
}
.caption {
  font-size: clamp(0.65rem, 0.9vw, 0.8rem);
  color: var(--cy-text-dim);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.stat-number {
  font-family: var(--font-mono);
  font-size: clamp(1.6rem, 3.5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* ── 霓虹色文字 ── */
.text-primary { color: var(--cy-primary); }
.text-danger  { color: var(--cy-danger); }
.text-accent  { color: var(--cy-accent); }
.text-success { color: var(--cy-success); }
.text-warning { color: var(--cy-warning); }
.text-secondary { color: var(--cy-secondary); }

/* ── 霓虹光文字 ── */
.neon-text {
  text-shadow:
    0 0 4px currentColor,
    0 0 12px color-mix(in srgb, currentColor 50%, transparent),
    0 0 40px color-mix(in srgb, currentColor 15%, transparent);
}

/* ── 捲軸美化 ── */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(0,245,212,0.2);
  border-radius: 2px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(0,245,212,0.4);
}

/* ── 選取顏色 ── */
::selection {
  background: rgba(0,245,212,0.25);
  color: #fff;
}

/* ── 隱藏元素 ── */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}

/* ── 觸控目標 ── */
[data-input="touch"] button,
[data-input="touch"] .clickable,
[data-input="touch"] .interactive {
  min-width: 44px;
  min-height: 44px;
}

/* ── 載入動畫 ── */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.5; }
}
