/* Design System Tokens: Song-Dynasty Woodblock Movable Type x Xuan Paper Gold Ink */
:root {
  /* Core Palette */
  --ink-deep: #12100e;
  --ink-stage: #191613;
  --ink-panel: #211c17;
  --ink-card: #29221c;
  --ink-elevated: #332a22;
  --ink-border: #463a2e;
  --ink-border-subtle: rgba(212, 179, 118, 0.18);

  /* Text Hierarchy */
  --paper-bright: #f4ead5;
  --paper-main: #e4d6ba;
  --paper-muted: #b09e82;
  --paper-dim: #7d6e58;

  /* Semantic Gameplay Accents */
  --gold-foil: #e6b85c;
  --gold-bright: #ffe294;
  --gold-soft: rgba(230, 184, 92, 0.16);
  --cinnabar: #d94136;
  --cinnabar-bright: #ff6e54;
  --cinnabar-soft: rgba(217, 65, 54, 0.18);
  --water-azure: #4ba4d6;
  --water-bright: #7ed6f7;
  --jade-green: #6db88c;
  --thunder-violet: #b68df5;
  --iron-slate: #6f7c8c;

  /* Typography */
  --font-serif: "Songti SC", "Noto Serif SC", "STSong", "FangSong", "KaiTi", "SimSun", Georgia, serif;
  --font-sans: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  --font-mono: ui-monospace, "Cascadia Code", "Consolas", monospace;

  /* Radii & Shadows */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --shadow-block: 0 6px 18px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 232, 180, 0.14);
  --shadow-glow-gold: 0 0 20px rgba(230, 184, 92, 0.25);

  /* Sizing */
  --topbar-h: 54px;
  --sidebar-w: 320px;
}

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

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: radial-gradient(circle at 38% 42%, #201b16 0%, var(--ink-deep) 72%);
  color: var(--paper-main);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  user-select: none;
}

.num {
  font-variant-numeric: tabular-nums;
  font-family: var(--font-mono);
}

.serif {
  font-family: var(--font-serif);
}

/* Custom subtle scrollbars inside side panels */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: rgba(18, 16, 14, 0.5);
}
::-webkit-scrollbar-thumb {
  background: rgba(212, 179, 118, 0.28);
  border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(230, 184, 92, 0.52);
}
