/* Thiết lập Font & Nền tảng */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: #050b18;
  color: #e2e8f0;
  overflow-x: hidden;
}

/* Typography styles */
.font-script {
  font-family: 'Alex Brush', 'Ephesis', 'Great Vibes', cursive;
}

.font-display {
  font-family: 'Montserrat', sans-serif;
}

.font-sports {
  font-family: 'Oswald', sans-serif;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #070e22;
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #334155;
}

/* Canvas styling */
#cardCanvas {
  filter: drop-shadow(0 15px 35px rgba(0, 0, 0, 0.6));
  transition: transform 0.15s ease-out;
}

/* Range input styling */
input[type="range"] {
  height: 6px;
  border-radius: 3px;
  background: #1e293b;
  outline: none;
  transition: background 0.2s;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #00d4ff;
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.7);
  cursor: pointer;
  border: 2px solid #ffffff;
}

input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #00d4ff;
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.7);
  cursor: pointer;
  border: 2px solid #ffffff;
}

/* Glow animations & hover */
.glow-gold {
  box-shadow: 0 0 25px rgba(245, 197, 66, 0.35);
}

.glow-cyan {
  box-shadow: 0 0 25px rgba(0, 212, 255, 0.35);
}

/* Responsive grid fallback helper classes */
@media (min-width: 1024px) {
  .lg\:sticky {
    position: sticky;
  }
}

/* Notification toast */
#toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  background: #0f172a;
  color: #fff;
  padding: 12px 20px;
  border-radius: 12px;
  border: 1px solid #00d4ff;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 15px rgba(0, 212, 255, 0.3);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

#toast.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
