@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700;900&family=Noto+Sans+KR:wght@300;400;500;700;900&display=swap');

:root {
  /* Rich Futuristic Dark Theme Colors */
  --bg-0: #020713;
  --bg-1: #08172c;
  --bg-radial: radial-gradient(circle at center, #0a1f3c 0%, #020712 100%);
  
  /* Glassmorphism & Translucent Panel Variables */
  --panel: rgba(8, 22, 43, 0.65);
  --panel-solid: #0b1a2f;
  --line: rgba(0, 210, 255, 0.15);
  --line-light: rgba(255, 255, 255, 0.08);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.6);
  --glass-blur: blur(20px);
  
  /* Brand Typography & Semantic Tones */
  --text: #f0f6ff;
  --text-bold: #ffffff;
  --muted: #8da4be;
  --accent: #00d2ff;       /* Glowing Cyan */
  --accent-glow: rgba(0, 210, 255, 0.4);
  --primary-glow: rgba(0, 92, 255, 0.35);
  --violet: #8c52ff;
  --violet-glow: rgba(140, 82, 255, 0.4);
  --gold: #ffe76d;
  --gold-glow: rgba(255, 231, 109, 0.5);
  
  --danger: #ff4a5a;
  --danger-glow: rgba(255, 74, 90, 0.3);
  --warning: #ffb300;
  --success: #00e676;
  --success-glow: rgba(0, 230, 118, 0.3);
}

* {
  box-sizing: border-box;
}

html,
body,
#app {
  width: 100%;
  height: 100%;
  margin: 0;
  font-family: 'Outfit', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg-radial);
  overflow: hidden;
  letter-spacing: -0.01em;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.25);
  border-radius: 999px;
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 210, 255, 0.2);
  border: 2px solid transparent;
  background-clip: padding-box;
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 210, 255, 0.45);
  border: 2px solid transparent;
  background-clip: padding-box;
}

/* Premium Buttons Styling */
button {
  border: 1px solid var(--line-light);
  border-radius: 12px;
  padding: 12px 18px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text);
  font-family: inherit;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  outline: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

button.primary {
  background: linear-gradient(135deg, #005cff 0%, #00d2ff 100%);
  color: #fff;
  border: 1px solid rgba(0, 210, 255, 0.45);
  box-shadow: 0 4px 15px 0 var(--primary-glow);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

button.primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px 0 var(--accent-glow);
  border-color: #00d2ff;
}

button.primary:active:not(:disabled) {
  transform: translateY(1px);
  box-shadow: 0 2px 10px 0 rgba(0, 92, 255, 0.3);
}

button.ghost {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #d1e2f7;
  backdrop-filter: blur(4px);
}

button.ghost:hover:not(:disabled) {
  background: rgba(0, 210, 255, 0.08);
  border-color: rgba(0, 210, 255, 0.5);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 210, 255, 0.15);
}

button.ghost:active:not(:disabled) {
  transform: translateY(1px);
}

button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.hidden {
  display: none !important;
}

/* Redesigned Keyframes for Layer Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 10px rgba(0, 210, 255, 0.15);
  }
  50% {
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.4);
  }
}