:root {
  --royal-bg: #0d0b09;
  --royal-surface: #171310;
  --royal-elevated: #1f1914;
  --royal-gold: #d4af37;
  --royal-gold-soft: #e6c76b;
  --royal-crimson: #8b1e24;
  --royal-border: rgba(212, 175, 55, 0.22);
  --royal-text: #efe6d5;
  --royal-muted: #a69982;
}

body {
  background-color: var(--royal-bg);
  background-image:
    radial-gradient(ellipse 80% 45% at 50% 0%, rgba(139, 30, 36, 0.16) 0%, transparent 65%),
    radial-gradient(ellipse 60% 35% at 50% 10%, rgba(212, 175, 55, 0.08) 0%, transparent 70%);
  color: var(--royal-text);
  font-family: 'Noto Sans KR', 'Plus Jakarta Sans', sans-serif;
}

.font-royal {
  font-family: 'Cinzel', 'Noto Serif KR', serif;
}

.font-data {
  font-family: 'JetBrains Mono', monospace;
  font-variant-numeric: tabular-nums;
}

.headline-balance {
  text-wrap: balance;
}

.royal-panel {
  background-color: var(--royal-surface);
  border: 1px solid var(--royal-border);
}

.royal-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(212, 175, 55, 0.38) 50%, transparent 100%);
}

.royal-cta {
  background: linear-gradient(135deg, #8b1e24 0%, #631318 100%);
  border: 1px solid rgba(212, 175, 55, 0.55);
  color: #f7ebd2;
  transition: transform 180ms cubic-bezier(0.16, 1, 0.3, 1), border-color 180ms ease, filter 180ms ease;
}

.royal-cta:hover {
  border-color: #e6c76b;
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.royal-gold-cta {
  background: linear-gradient(135deg, #d4af37 0%, #b08b23 100%);
  color: #16110a;
  border: 1px solid #f0d788;
  transition: transform 180ms cubic-bezier(0.16, 1, 0.3, 1), filter 180ms ease;
}

.royal-gold-cta:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.royal-image-fallback {
  background:
    radial-gradient(circle at 30% 30%, rgba(212, 175, 55, 0.14), transparent 60%),
    linear-gradient(145deg, #1b1510 0%, #0f0c09 100%);
}

.table-container::-webkit-scrollbar {
  height: 8px;
  width: 8px;
}

.table-container::-webkit-scrollbar-track {
  background: #171310;
}

.table-container::-webkit-scrollbar-thumb {
  background: #473c2e;
  border-radius: 4px;
}

.table-container::-webkit-scrollbar-thumb:hover {
  background: #d4af37;
}

.hide-scrollbar::-webkit-scrollbar {
  display: none;
}

.hide-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
