html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans KR', sans-serif;
  word-break: keep-all;
}

.glass-card {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(19, 127, 236, 0.1);
}

.hover-scale {
  transition: transform 0.3s ease;
}

.hover-scale:hover {
  transform: scale(1.02);
}

.chart-item-hover,
.chart-legend-item {
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.chart-item-hover:hover,
.chart-legend-item:hover {
  transform: translateY(-2px);
}

.chart-item-hover:hover [data-chart-bar],
.chart-item-hover:hover [data-retire-bar] {
  filter: saturate(1.2) brightness(1.05);
  box-shadow: 0 8px 16px rgba(30, 64, 175, 0.2);
}

.chart-item-hover:hover [data-chart-label],
.chart-item-hover:hover [data-retire-value] {
  color: #1d4ed8;
}

.oecd-korea-focus {
  border: 2px solid rgba(79, 70, 229, 0.45);
  border-radius: 0.75rem;
  padding: 0.6rem 0.7rem;
  background: linear-gradient(90deg, rgba(224, 231, 255, 0.55), rgba(255, 255, 255, 0.95));
  animation: korea-flash-border 2s ease-in-out infinite;
}

@keyframes korea-flash-border {
  0%,
  100% {
    border-color: rgba(79, 70, 229, 0.4);
    box-shadow: 0 0 0 0 rgba(79, 70, 229, 0);
  }

  50% {
    border-color: rgba(79, 70, 229, 0.9);
    box-shadow: 0 0 0 6px rgba(79, 70, 229, 0.22);
  }
}

[data-donut-segment] {
  transition: stroke-dasharray 900ms ease-out, transform 0.2s ease, filter 0.2s ease;
  cursor: pointer;
  transform-box: fill-box;
  transform-origin: center;
  pointer-events: stroke;
}

[data-donut-segment]:hover {
  transform: scale(1.04);
  filter: drop-shadow(0 0 6px rgba(30, 64, 175, 0.28));
}

.chart-tooltip {
  position: fixed;
  z-index: 9999;
  pointer-events: none;
  background: rgba(15, 23, 42, 0.94);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  padding: 8px 10px;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(2, 6, 23, 0.35);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.15s ease, transform 0.15s ease;
  max-width: 220px;
  word-break: keep-all;
}

.chart-tooltip.show {
  opacity: 1;
  transform: translateY(0);
}

.emphasis-hover {
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.emphasis-hover:hover {
  transform: translateY(-2px);
  border-color: rgba(19, 127, 236, 0.45);
  box-shadow: 0 12px 24px rgba(19, 127, 236, 0.16);
}

.btn-hover-emphasis {
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn-hover-emphasis:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 20px rgba(15, 23, 42, 0.22);
  filter: saturate(1.06);
}

.img-hover-emphasis {
  transition: transform 0.25s ease, filter 0.25s ease, box-shadow 0.25s ease;
}

.img-hover-emphasis:hover {
  transform: translateY(-2px) scale(1.02);
  filter: saturate(1.08) contrast(1.03);
  box-shadow: 0 12px 22px rgba(15, 23, 42, 0.2);
}

.partner-logo-grid img.img-hover-emphasis:hover {
  background-color: transparent !important;
  box-shadow: none;
  filter: saturate(1.1) contrast(1.05);
}

.img-reveal-ready {
  opacity: 0;
  transform: translateY(14px) scale(0.98);
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: opacity, transform;
}

.img-reveal-in {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.text-reveal-ready {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: opacity, transform;
}

.text-reveal-in {
  opacity: 1;
  transform: translateY(0);
}

.text-wide-leading {
  line-height: 1.3 !important;
}

@media (prefers-reduced-motion: reduce) {
  .text-reveal-ready,
  .text-reveal-in {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .img-reveal-ready,
  .img-reveal-in {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .oecd-korea-focus {
    animation: none;
  }
}
