/* Hallmark base · 只放 Floor 已经决定的东西：reset、溢出、焦点环、减弱动效、控件基线。
   HUD 是 app screen，营销页的 container / hero / data-slot 规则一概不要。 */

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }

html, body {
  width: 100%; height: 100%;
  margin: 0;
  background: var(--surface-solid);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-user-select: none; user-select: none;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
}

::selection { background: color-mix(in oklab, var(--accent) 30%, transparent); color: var(--ink); }

/* 焦点环：即时出现，acid 对深底 8:1 以上，远高于 3:1 底线 */
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
:focus:not(:focus-visible) { outline: none; }

img, svg { display: block; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; color: inherit; }

/* 数字一律等宽对齐，读数才不会抖 */
.num, .rv, .qtime, .tc, .wv, #rhTime { font-variant-numeric: tabular-nums; }

@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;
  }
}
