/* ========== INDEX PAGE CURSOR FIXES ========== */

/* Ensure all button child elements show pointer cursor on index page */
.primary-button,
.secondary-button,
.tertiary-button {
  cursor: url("../assets/pointer.cur"), pointer !important;
}

.primary-button *,
.secondary-button *,
.tertiary-button *,
.button-glow,
.button-icon,
.button-text,
.button-particles {
  cursor: url("../assets/pointer.cur"), pointer !important;
  pointer-events: none; /* Prevent child elements from blocking parent clicks */
}

/* Quick access items */
.quick-item,
.quick-item * {
  cursor: url("../assets/pointer.cur"), pointer !important;
}

/* ========== ORIGINAL INDEX STYLES ========== */
/* Force scroll on mobile for index page */
html,
body {
  overflow-y: auto !important;
  overflow-x: hidden !important;
  height: 100%;
  min-height: 100vh;
  position: relative;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}

/* Loading screen overlay with animated elements */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    var(--primary-dark),
    #0d1428,
    var(--secondary-dark)
  );
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

/* Main logo icon styling with hover and click effects */
.main-logo-icon {
  display: inline-block;
  transform: scale(1.2); /* Increased base size */
}

.main-logo-icon svg {
  width: 200px; /* Increased from 180px */
  height: 200px; /* Increased from 180px */
  transition: all 0.3s ease;
}

.main-logo-icon:hover {
  transform: scale(1.3); /* Slightly larger on hover */
}

.main-logo-icon.hover {
  animation-duration: 2s;
}

.main-logo-icon.clicked {
  animation: logoClick 0.6s ease-out;
}

/* Logo click animation keyframes */
@keyframes logoClick {
  0% {
    transform: scale(1.2);
  }
  30% {
    transform: scale(1.15);
  }
  60% {
    transform: scale(1.35);
  }
  100% {
    transform: scale(1.2);
  }
}

/* Loading orb with pulsing animation */
.loading-orb {
  width: 80px;
  height: 80px;
  position: relative;
  background: radial-gradient(circle at 30% 30%, var(--primary-blue), #1a7aa8);
  border-radius: 50%;
  box-shadow: 0 0 40px var(--glow-blue);
  animation: loadingPulse 1.5s ease-in-out infinite;
  margin-bottom: 2rem;
}

.loading-inner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60%;
  height: 60%;
  background: radial-gradient(
    circle at 40% 40%,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  border-radius: 50%;
  animation: loadingInner 1.5s ease-in-out infinite;
}

.loading-text {
  font-family: "Cinzel", serif;
  font-size: 1.2rem;
  color: var(--text-light);
  margin-bottom: 2rem;
  animation: loadingText 2s ease-in-out infinite;
}

.loading-progress {
  width: 200px;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.loading-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-blue), var(--accent-cyan));
  border-radius: 2px;
  animation: loadingBar 2s ease-in-out infinite;
}

/* Loading animation keyframes */
@keyframes loadingPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
}

@keyframes loadingInner {
  0%,
  100% {
    opacity: 0.65;
  }
  50% {
    opacity: 1;
  }
}

@keyframes loadingText {
  0%,
  100% {
    opacity: 0.75;
  }
  50% {
    opacity: 1;
  }
}

@keyframes loadingBar {
  0% {
    width: 0%;
  }
  50% {
    width: 70%;
  }
  100% {
    width: 100%;
  }
}

/* Magic circles container for background decoration */
.magic-circles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.magic-circle.large {
  width: 400px;
  height: 400px;
  border-width: 2px;
}

.magic-circle.medium {
  width: 250px;
  height: 250px;
  animation-duration: 45s;
  animation-direction: reverse;
}

.magic-circle.small {
  width: 150px;
  height: 150px;
  animation-duration: 30s;
}

/* Main intro container with centered layout */
.intro-container {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem;
  text-align: center;
  opacity: 0;
  transition: opacity 0.8s ease;
  background:
    radial-gradient(
      circle at 20% 80%,
      rgba(77, 212, 255, 0.05) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(255, 215, 0, 0.03) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 40% 40%,
      rgba(170, 85, 255, 0.04) 0%,
      transparent 50%
    );
}

/* Logo container with fade-in animation */
.logo-container {
  margin-bottom: 3rem;
  animation: fadeInDown 1.2s ease-out;
  position: relative;
}

.logo-container::before {
  content: "";
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 200px;
  background: radial-gradient(
    circle,
    rgba(77, 212, 255, 0.1) 0%,
    transparent 70%
  );
  border-radius: 50%;
  z-index: -1;
  animation: logoAura 4s ease-in-out infinite;
}

/* Interactive slime orb with complex layered effects */
.slime-orb {
  width: 180px;
  height: 180px;
  margin: 0 auto 2rem;
  position: relative;
  background: radial-gradient(circle at 40% 35%, #00d4ff, #4dd4ff, #1a7aa8);
  border-radius: 50%;
  box-shadow:
    0 0 80px rgba(77, 212, 255, 0.8),
    0 0 120px rgba(77, 212, 255, 0.4),
    inset 0 -30px 60px rgba(0, 0, 0, 0.2),
    inset 0 30px 60px rgba(255, 255, 255, 0.15);
  animation: orbPulse 4s ease-in-out infinite;
  cursor: pointer;
  transition: all 0.3s ease;
  filter: blur(0.5px);
  contain: layout style paint;
  will-change: transform;
}

.slime-orb:hover {
  transform: scale(1.05);
  box-shadow:
    0 0 100px rgba(77, 212, 255, 0.9),
    0 0 140px rgba(77, 212, 255, 0.5),
    inset 0 -30px 60px rgba(0, 0, 0, 0.2),
    inset 0 30px 60px rgba(255, 255, 255, 0.15);
  filter: blur(0.3px);
}

.slime-orb.hover {
  animation-duration: 2s;
}

.slime-orb.clicked {
  animation: orbClick 0.6s ease-out;
}

/* Slime orb inner layers for depth effect */
.slime-core {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 95%;
  height: 95%;
  background: radial-gradient(
    circle at 45% 40%,
    rgba(255, 255, 255, 0.1),
    transparent 70%
  );
  border-radius: 50%;
  animation: coreFloat 3s ease-in-out infinite;
}

.slime-inner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 85%;
  height: 85%;
  background: radial-gradient(
    circle at 50% 45%,
    rgba(255, 255, 255, 0.08),
    transparent 60%
  );
  border-radius: 50%;
  animation: innerPulse 3.5s ease-in-out infinite;
}

/* Slime shine effects for eye-like appearance */
.slime-shine {
  position: absolute;
  top: 35%;
  left: 30%;
  width: 28px;
  height: 28px;
  background: radial-gradient(
    circle,
    #ffffff 0%,
    #ffffff 70%,
    rgba(255, 255, 255, 0.8) 100%
  );
  border-radius: 50%;
  box-shadow:
    0 0 15px rgba(255, 255, 255, 0.8),
    inset 0 2px 4px rgba(0, 0, 0, 0.1);
  animation: eyeBlink 6s ease-in-out infinite;
}

.slime-shine::after {
  content: "";
  position: absolute;
  top: 15%;
  right: -45px;
  width: 22px;
  height: 22px;
  background: radial-gradient(
    circle,
    #ffffff 0%,
    #ffffff 70%,
    rgba(255, 255, 255, 0.8) 100%
  );
  border-radius: 50%;
  box-shadow:
    0 0 12px rgba(255, 255, 255, 0.8),
    inset 0 2px 4px rgba(0, 0, 0, 0.1);
  animation: eyeBlink 6s ease-in-out infinite;
  animation-delay: 0.1s;
}

/* Floating particles within the slime orb */
.slime-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
}

.slime-particles::before,
.slime-particles::after {
  content: "";
  position: absolute;
  width: 3px;
  height: 3px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  animation: particleFloat 4s ease-in-out infinite;
}

.slime-particles::before {
  top: 25%;
  right: 20%;
  animation-delay: -1s;
}

.slime-particles::after {
  bottom: 30%;
  left: 25%;
  animation-delay: -2.5s;
}

/* Rotating aura effect around the slime orb */
.slime-aura {
  position: absolute;
  top: -15px;
  left: -15px;
  right: -15px;
  bottom: -15px;
  border: 3px solid transparent;
  border-radius: 50%;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(77, 212, 255, 0.4),
    transparent,
    rgba(77, 212, 255, 0.2),
    transparent
  );
  animation: auraRotate 8s linear infinite;
  opacity: 0;
  filter: blur(2px);
}

.slime-orb:hover .slime-aura {
  opacity: 1;
}

/* Slime orb animation keyframes */
@keyframes orbClick {
  0% {
    transform: scale(1);
  }
  30% {
    transform: scale(0.95);
  }
  60% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes orbPulse {
  0%,
  100% {
    transform: scale(1);
    filter: blur(0.5px);
  }
  50% {
    transform: scale(1.02);
    filter: blur(0.3px);
  }
}

@keyframes coreFloat {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.03);
  }
}

@keyframes innerPulse {
  0%,
  100% {
    opacity: 0.6;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 0.8;
    transform: translate(-50%, -50%) scale(1.05);
  }
}

@keyframes eyeBlink {
  0%,
  90%,
  100% {
    transform: scaleY(1);
    opacity: 1;
  }
  95% {
    transform: scaleY(0.1);
    opacity: 0.8;
  }
}

@keyframes particleFloat {
  0%,
  100% {
    opacity: 0;
    transform: translateY(0) scale(1);
  }
  50% {
    opacity: 1;
    transform: translateY(-15px) scale(1.2);
  }
}

@keyframes auraRotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Main title with gradient shimmer effect */
.title {
  font-family: "Cinzel", serif;
  font-size: 4.5rem;
  font-weight: 700;
  background: linear-gradient(
    135deg,
    var(--primary-blue),
    #fff,
    var(--accent-cyan),
    var(--accent-gold),
    var(--primary-blue)
  );
  background-size: 400% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: titleShimmer 8s linear infinite;
  margin-bottom: 1rem;
  text-shadow: 0 0 40px var(--glow-blue);
  position: relative;
  letter-spacing: -0.02em;
}

.title::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--primary-blue),
    var(--accent-cyan),
    var(--accent-gold),
    transparent
  );
  border-radius: 2px;
  animation: underlineGlow 3s ease-in-out infinite;
}

/* Subtitle with floating animation */
.subtitle {
  font-size: 1.6rem;
  color: rgba(232, 240, 255, 0.9);
  font-style: italic;
  margin-bottom: 1rem;
  animation: subtitleFloat 4s ease-in-out infinite;
  font-weight: 300;
  letter-spacing: 0.5px;
  position: relative;
}

.subtitle::before {
  content: "✨";
  position: absolute;
  left: -2rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  animation: sparkle 3s ease-in-out infinite;
}

.subtitle::after {
  content: "✨";
  position: absolute;
  right: -2rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  animation: sparkle 3s ease-in-out infinite 1.5s;
}

/* Title animation keyframes */
@keyframes titleShimmer {
  to {
    background-position: 400% center;
  }
}

@keyframes underlineGlow {
  0%,
  100% {
    opacity: 0.6;
    width: 120px;
    box-shadow: 0 0 10px rgba(77, 212, 255, 0.3);
  }
  50% {
    opacity: 1;
    width: 180px;
    box-shadow: 0 0 20px rgba(77, 212, 255, 0.6);
  }
}

@keyframes subtitleFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

@keyframes sparkle {
  0%,
  100% {
    opacity: 0.4;
    transform: translateY(-50%) scale(1);
  }
  50% {
    opacity: 1;
    transform: translateY(-50%) scale(1.2);
  }
}

@keyframes logoAura {
  0%,
  100% {
    opacity: 0.3;
    transform: translateX(-50%) scale(1);
  }
  50% {
    opacity: 0.6;
    transform: translateX(-50%) scale(1.1);
  }
}

@keyframes borderGlow {
  0%,
  100% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
    box-shadow: 0 0 20px rgba(77, 212, 255, 0.4);
  }
}

@keyframes buttonGroupGlow {
  0%,
  100% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
    box-shadow: 0 0 20px rgba(77, 212, 255, 0.4);
  }
}

@keyframes buttonGroupBg {
  0%,
  100% {
    transform: rotate(0deg) scale(1);
  }
  50% {
    transform: rotate(180deg) scale(1.1);
  }
}

@keyframes primaryButtonGlow {
  0%,
  100% {
    box-shadow:
      0 10px 40px rgba(77, 212, 255, 0.5),
      0 0 0 1px rgba(255, 255, 255, 0.2),
      inset 0 1px 0 rgba(255, 255, 255, 0.3);
  }
  50% {
    box-shadow:
      0 12px 50px rgba(77, 212, 255, 0.7),
      0 0 0 1px rgba(255, 255, 255, 0.3),
      inset 0 1px 0 rgba(255, 255, 255, 0.4);
  }
}

/* Lore section with animated text lines */
.lore-section {
  max-width: 900px;
  margin: 0 auto 4rem;
  animation: fadeIn 1.5s ease-out 0.8s both;
  padding: 2rem;
  background: linear-gradient(
    135deg,
    rgba(21, 27, 61, 0.4),
    rgba(21, 27, 61, 0.2)
  );
  backdrop-filter: blur(10px);
  border: 1px solid rgba(77, 212, 255, 0.2);
  border-radius: 20px;
  position: relative;
  overflow: hidden;
}

.lore-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--accent-cyan),
    var(--primary-blue),
    var(--accent-gold),
    transparent
  );
  animation: borderGlow 4s ease-in-out infinite;
}

.lore-text {
  margin-bottom: 3rem;
  position: relative;
  z-index: 2;
}

/* Individual lore text lines with staggered animation */
.lore-line {
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
  color: rgba(232, 240, 255, 0.8);
  line-height: 1.8;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s ease;
  font-weight: 300;
  position: relative;
  padding-left: 1.5rem;
}

.lore-line::before {
  content: "▸";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent-cyan);
  font-size: 1.2rem;
  opacity: 0;
  transition: opacity 0.5s ease 0.3s;
}

.lore-line.animate {
  opacity: 1;
  transform: translateY(0);
}

.lore-line.animate::before {
  opacity: 1;
}

.lore-line:hover {
  color: rgba(232, 240, 255, 1);
  transform: translateX(10px);
  text-shadow: 0 0 10px rgba(77, 212, 255, 0.3);
}

/* Statistics preview grid layout */
.stats-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
  animation: fadeInUp 1s ease-out 2s both;
  position: relative;
  z-index: 2;
}

/* Individual stat items with hover effects */
.stat-item {
  text-align: center;
  padding: 2rem 1.5rem;
  background: linear-gradient(
    135deg,
    rgba(21, 27, 61, 0.8),
    rgba(21, 27, 61, 0.4)
  );
  backdrop-filter: blur(15px);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  contain: layout style paint;
  will-change: transform;
  position: relative;
  overflow: hidden;
}

.stat-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(77, 212, 255, 0.1),
    transparent
  );
  transition: left 0.6s ease;
}

.stat-item:hover::before {
  left: 100%;
}

.stat-item:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--primary-blue);
  box-shadow:
    0 15px 40px rgba(77, 212, 255, 0.3),
    0 0 0 1px rgba(77, 212, 255, 0.2);
  background: linear-gradient(
    135deg,
    rgba(21, 27, 61, 0.9),
    rgba(21, 27, 61, 0.6)
  );
}

.stat-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  filter: drop-shadow(0 0 15px var(--glow-blue));
  transition: all 0.3s ease;
}

.stat-item:hover .stat-icon {
  transform: scale(1.2) rotate(5deg);
  filter: drop-shadow(0 0 20px var(--glow-blue));
}

.stat-value {
  font-family: "Rajdhani", sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary-blue);
  margin-bottom: 0.5rem;
  text-shadow: 0 0 20px rgba(77, 212, 255, 0.4);
  transition: all 0.3s ease;
}

.stat-item:hover .stat-value {
  color: var(--accent-cyan);
  text-shadow: 0 0 25px rgba(0, 212, 255, 0.6);
  transform: scale(1.1);
}

.stat-label {
  font-size: 1rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
  transition: color 0.3s ease;
}

.stat-item:hover .stat-label {
  color: var(--text-light);
}

/* Button group container with enhanced layout */
.button-group {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  margin: 0 auto 4rem;
  animation: fadeInUp 1s ease-out 1.5s both;
  max-width: 1000px;
  padding: 3rem 2.5rem;
  background: linear-gradient(
    135deg,
    rgba(21, 27, 61, 0.4),
    rgba(21, 27, 61, 0.2)
  );
  backdrop-filter: blur(20px);
  border: 1px solid rgba(77, 212, 255, 0.3);
  border-radius: 28px;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.1);
}

.button-group::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--accent-cyan),
    var(--primary-blue),
    var(--accent-gold),
    var(--accent-purple),
    transparent
  );
  animation: buttonGroupGlow 4s ease-in-out infinite;
}

.button-group::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background:
    radial-gradient(
      circle at 30% 30%,
      rgba(77, 212, 255, 0.06) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 70% 70%,
      rgba(255, 215, 0, 0.04) 0%,
      transparent 50%
    );
  animation: buttonGroupBg 20s ease-in-out infinite;
  pointer-events: none;
  z-index: -1;
}

/* Primary button row */
.primary-button-row {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Secondary buttons row */
.secondary-buttons-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  align-items: stretch;
  justify-content: center;
}

/* Tertiary buttons row with 3 columns */
.tertiary-buttons-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  align-items: stretch;
  justify-content: center;
}

/* Desktop-specific improvements */
@media (min-width: 1024px) {
  .button-group {
    max-width: 1100px;
    padding: 3.5rem 3rem;
  }

  .secondary-buttons-row {
    grid-template-columns: repeat(2, 1fr);
    max-width: 700px;
    margin: 0 auto;
  }

  .tertiary-buttons-row {
    grid-template-columns: repeat(3, 1fr);
    max-width: 900px;
    margin: 0 auto;
  }

  .primary-button {
    max-width: 400px;
  }
}

/* Large desktop improvements */
@media (min-width: 1280px) {
  .button-group {
    max-width: 1200px;
    padding: 4rem 3.5rem;
  }

  .secondary-buttons-row {
    max-width: 800px;
  }

  .tertiary-buttons-row {
    max-width: 1000px;
  }
}

/* Large tablets and small laptops responsive breakpoint (1024px - 1279px) */
@media (min-width: 1024px) and (max-width: 1279px) {
  .title {
    font-size: 4rem;
  }

  .button-group {
    gap: 1.25rem;
  }
}

/* Enhanced primary button with premium styling */
.primary-button {
  position: relative;
  padding: 1.5rem 4rem;
  font-size: 1.3rem;
  font-weight: 800;
  background: linear-gradient(
    135deg,
    #4dd4ff 0%,
    #00d4ff 25%,
    #2a9fd8 50%,
    #1a7fb8 75%,
    #4dd4ff 100%
  );
  background-size: 300% 300%;
  color: #0a0e27;
  border: none;
  border-radius: 20px;
  cursor: url("../assets/pointer.cur"), pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  box-shadow:
    0 10px 40px rgba(77, 212, 255, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-family: "Rajdhani", sans-serif;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  animation: primaryButtonGlow 3s ease-in-out infinite;
  min-width: 280px;
}

.primary-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  transition: left 0.8s ease;
}

.primary-button::after {
  content: "";
  position: absolute;
  inset: 2px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1),
    transparent 50%,
    rgba(255, 255, 255, 0.05)
  );
  border-radius: 18px;
  pointer-events: none;
}

.primary-button:hover::before {
  left: 100%;
}

.primary-button:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow:
    0 15px 50px rgba(77, 212, 255, 0.7),
    0 0 0 1px rgba(255, 255, 255, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  background-position: 100% 100%;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.primary-button:active {
  transform: translateY(-4px) scale(1.01);
}

/* Enhanced secondary buttons with distinct colors */
.secondary-button {
  position: relative;
  padding: 1.2rem 2.5rem;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 16px;
  cursor: url("../assets/pointer.cur"), pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: "Rajdhani", sans-serif;
  backdrop-filter: blur(15px);
  border: 2px solid;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

/* Character Codex - Emerald theme */
.secondary-button:nth-child(1) {
  background: linear-gradient(
    135deg,
    rgba(0, 255, 136, 0.15),
    rgba(0, 255, 136, 0.08)
  );
  color: #00ff88;
  border-color: rgba(0, 255, 136, 0.6);
  box-shadow: 0 4px 20px rgba(0, 255, 136, 0.2);
}

.secondary-button:nth-child(1):hover {
  background: linear-gradient(
    135deg,
    rgba(0, 255, 136, 0.25),
    rgba(0, 255, 136, 0.15)
  );
  border-color: #00ff88;
  box-shadow: 0 8px 35px rgba(0, 255, 136, 0.4);
  color: #ffffff;
  text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

/* Skills Database - Cyan theme */
.secondary-button:nth-child(2) {
  background: linear-gradient(
    135deg,
    rgba(0, 212, 255, 0.15),
    rgba(0, 212, 255, 0.08)
  );
  color: #00d4ff;
  border-color: rgba(0, 212, 255, 0.6);
  box-shadow: 0 4px 20px rgba(0, 212, 255, 0.2);
}

.secondary-button:nth-child(2):hover {
  background: linear-gradient(
    135deg,
    rgba(0, 212, 255, 0.25),
    rgba(0, 212, 255, 0.15)
  );
  border-color: #00d4ff;
  box-shadow: 0 8px 35px rgba(0, 212, 255, 0.4);
  color: #ffffff;
  text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

/* Enhanced tertiary buttons with distinct themes */
.tertiary-button {
  position: relative;
  padding: 1rem 2rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 14px;
  cursor: url("../assets/pointer.cur"), pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-family: "Rajdhani", sans-serif;
  backdrop-filter: blur(10px);
  border: 2px solid;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

/* Chronicle Timeline - Gold theme */
.tertiary-button:nth-child(1) {
  background: linear-gradient(
    135deg,
    rgba(255, 215, 0, 0.15),
    rgba(255, 215, 0, 0.08)
  );
  color: #ffd700;
  border-color: rgba(255, 215, 0, 0.6);
  box-shadow: 0 4px 20px rgba(255, 215, 0, 0.2);
}

.tertiary-button:nth-child(1):hover {
  background: linear-gradient(
    135deg,
    rgba(255, 215, 0, 0.25),
    rgba(255, 215, 0, 0.15)
  );
  border-color: #ffd700;
  box-shadow: 0 8px 30px rgba(255, 215, 0, 0.4);
  color: #ffffff;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

/* Historical Records - Purple theme */
.tertiary-button:nth-child(2) {
  background: linear-gradient(
    135deg,
    rgba(170, 85, 255, 0.15),
    rgba(170, 85, 255, 0.08)
  );
  color: #aa55ff;
  border-color: rgba(170, 85, 255, 0.6);
  box-shadow: 0 4px 20px rgba(170, 85, 255, 0.2);
}

.tertiary-button:nth-child(2):hover {
  background: linear-gradient(
    135deg,
    rgba(170, 85, 255, 0.25),
    rgba(170, 85, 255, 0.15)
  );
  border-color: #aa55ff;
  box-shadow: 0 8px 30px rgba(170, 85, 255, 0.4);
  color: #ffffff;
  text-shadow: 0 0 10px rgba(170, 85, 255, 0.5);
}

/* Factions - Crimson theme */
.tertiary-button:nth-child(3) {
  background: linear-gradient(
    135deg,
    rgba(255, 51, 102, 0.15),
    rgba(255, 51, 102, 0.08)
  );
  color: #ff3366;
  border-color: rgba(255, 51, 102, 0.6);
  box-shadow: 0 4px 20px rgba(255, 51, 102, 0.2);
}

.tertiary-button:nth-child(3):hover {
  background: linear-gradient(
    135deg,
    rgba(255, 51, 102, 0.25),
    rgba(255, 51, 102, 0.15)
  );
  border-color: #ff3366;
  box-shadow: 0 8px 30px rgba(255, 51, 102, 0.4);
  color: #ffffff;
  text-shadow: 0 0 10px rgba(255, 51, 102, 0.5);
}

/* Common hover effects for all buttons */
.secondary-button:hover,
.tertiary-button:hover {
  transform: translateY(-4px) scale(1.02);
}

.secondary-button:active,
.tertiary-button:active {
  transform: translateY(-2px) scale(1.01);
}

/* Enhanced button icons */
.button-icon {
  font-size: 1.4rem;
  transition: all 0.3s ease;
  filter: drop-shadow(0 0 5px currentColor);
}

.primary-button .button-icon {
  font-size: 1.6rem;
}

.primary-button:hover .button-icon,
.secondary-button:hover .button-icon,
.tertiary-button:hover .button-icon {
  transform: scale(1.2) rotate(10deg);
  filter: drop-shadow(0 0 10px currentColor);
}

.primary-button.clicked {
  animation: buttonClick 0.3s ease-out;
}

/* Button click animation keyframes */
@keyframes buttonClick {
  0% {
    transform: translateY(-4px) scale(1.02);
  }
  50% {
    transform: translateY(-2px) scale(0.98);
  }
  100% {
    transform: translateY(-4px) scale(1.02);
  }
}

/* Quick access circular buttons */
.quick-access {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
  animation: fadeInUp 1s ease-out 2.2s both;
  justify-content: center;
}

/* Individual quick access items with tooltips */
.quick-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: linear-gradient(
    135deg,
    rgba(21, 27, 61, 0.9),
    rgba(21, 27, 61, 0.6)
  );
  backdrop-filter: blur(15px);
  border: 2px solid rgba(77, 212, 255, 0.3);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  contain: layout style paint;
  will-change: transform;
  box-shadow: 0 4px 20px rgba(77, 212, 255, 0.2);
}

.quick-item::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: linear-gradient(
    45deg,
    var(--primary-blue),
    var(--accent-cyan),
    var(--accent-gold)
  );
  border-radius: 50%;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.quick-item:hover::before {
  opacity: 0.3;
}

.quick-item:hover {
  transform: translateY(-5px) scale(1.15);
  border-color: var(--primary-blue);
  box-shadow:
    0 10px 30px rgba(77, 212, 255, 0.4),
    0 0 0 1px rgba(77, 212, 255, 0.2);
  background: linear-gradient(
    135deg,
    rgba(21, 27, 61, 0.95),
    rgba(21, 27, 61, 0.8)
  );
}

.quick-icon {
  font-size: 1.5rem;
  transition: all 0.3s ease;
  filter: drop-shadow(0 0 5px rgba(77, 212, 255, 0.3));
}

.quick-item:hover .quick-icon {
  transform: scale(1.3) rotate(10deg);
  filter: drop-shadow(0 0 10px rgba(77, 212, 255, 0.6));
}

.quick-item[data-tooltip]:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: -45px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(
    135deg,
    rgba(21, 27, 61, 0.98),
    rgba(21, 27, 61, 0.95)
  );
  color: var(--text-light);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  white-space: nowrap;
  z-index: 1000;
  border: 1px solid rgba(77, 212, 255, 0.3);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  animation: tooltipFadeIn 0.3s ease;
}

@keyframes tooltipFadeIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* Modal overlay with backdrop blur */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(15px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Modal content container with backdrop effects */
.modal-content {
  background: linear-gradient(
    135deg,
    rgba(21, 27, 61, 0.98),
    rgba(21, 27, 61, 0.95)
  );
  backdrop-filter: blur(25px);
  border: 2px solid rgba(77, 212, 255, 0.3);
  border-radius: 24px;
  padding: 0;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow: hidden;
  transform: scale(0.8) translateY(50px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.1);
  position: relative;
}

.modal-content::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--accent-cyan),
    var(--primary-blue),
    var(--accent-gold),
    var(--primary-blue),
    var(--accent-cyan)
  );
  animation: modalBorderGlow 3s ease-in-out infinite;
}

.modal-overlay.active .modal-content {
  transform: scale(1) translateY(0);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2.5rem 2.5rem 1.5rem;
  border-bottom: 1px solid rgba(77, 212, 255, 0.2);
  position: relative;
}

.modal-header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 2.5rem;
  right: 2.5rem;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--primary-blue),
    transparent
  );
}

.modal-header h3 {
  font-family: "Cinzel", serif;
  font-size: 1.8rem;
  background: linear-gradient(135deg, var(--primary-blue), var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
  text-shadow: 0 0 20px rgba(77, 212, 255, 0.3);
}

.modal-close {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1),
    rgba(255, 255, 255, 0.05)
  );
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  font-size: 1.8rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
}

.modal-close:hover {
  color: var(--accent-crimson);
  background: linear-gradient(
    135deg,
    rgba(255, 51, 102, 0.2),
    rgba(255, 51, 102, 0.1)
  );
  border-color: var(--accent-crimson);
  transform: scale(1.1) rotate(90deg);
  box-shadow: 0 0 20px rgba(255, 51, 102, 0.3);
}

.modal-body {
  padding: 2.5rem;
}

.modal-body p {
  margin-bottom: 1.5rem;
  line-height: 1.7;
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.modal-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

/* Modal feature items with hover effects */
.feature-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.08),
    rgba(255, 255, 255, 0.04)
  );
  border: 1px solid rgba(77, 212, 255, 0.2);
  border-radius: 16px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.feature-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(77, 212, 255, 0.1),
    transparent
  );
  transition: left 0.5s ease;
}

.feature-item:hover::before {
  left: 100%;
}

.feature-item:hover {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.12),
    rgba(255, 255, 255, 0.08)
  );
  transform: translateY(-3px) scale(1.02);
  border-color: var(--primary-blue);
  box-shadow: 0 8px 25px rgba(77, 212, 255, 0.2);
}

.feature-icon {
  font-size: 1.8rem;
  filter: drop-shadow(0 0 10px rgba(77, 212, 255, 0.3));
  transition: all 0.3s ease;
}

.feature-item:hover .feature-icon {
  transform: scale(1.2) rotate(5deg);
  filter: drop-shadow(0 0 15px rgba(77, 212, 255, 0.5));
}

.feature-item span:last-child {
  font-weight: 600;
  color: var(--text-light);
  transition: color 0.3s ease;
}

.feature-item:hover span:last-child {
  color: var(--primary-blue);
}

@keyframes modalBorderGlow {
  0%,
  100% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
    box-shadow: 0 0 20px rgba(77, 212, 255, 0.4);
  }
}

/* Hide performance-heavy elements on index page */
.particles,
.magic-circle,
.starfield {
  display: none;
}

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

::-webkit-scrollbar-track {
  background: rgba(21, 27, 61, 0.3);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--slime-blue), var(--accent-cyan));
  border-radius: 4px;
  box-shadow: 0 0 10px rgba(77, 212, 255, 0.3);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--accent-cyan), var(--slime-blue));
}

/* Base animation keyframes */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========== MOBILE RESPONSIVE STYLES ========== */

/* Base mobile styles for phones (≤ 767px) */
@media (max-width: 767px) {
  .intro-container {
    padding: 1rem;
    min-height: 100vh;
  }

  .logo-container {
    margin-bottom: 2rem;
  }

  .logo-container::before {
    width: 150px;
    height: 150px;
  }

  /* Make main logo smaller on mobile but still larger than before */
  .main-logo-icon {
    transform: scale(1);
  }

  .main-logo-icon svg {
    width: 180px !important;
    height: 180px !important;
  }

  /* Adjust title for mobile */
  .title {
    font-size: 2.5rem;
    line-height: 1.1;
    margin-bottom: 0.5rem;
  }

  .subtitle {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
  }

  .subtitle::before,
  .subtitle::after {
    display: none; /* Hide sparkles on mobile for cleaner look */
  }

  /* Lore section mobile adjustments */
  .lore-section {
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    border-radius: 16px;
  }

  .lore-line {
    font-size: 1rem;
    margin-bottom: 1rem;
    line-height: 1.6;
    padding-left: 1rem;
  }

  /* Stats preview mobile layout */
  .stats-preview {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
  }

  .stat-item {
    padding: 1.5rem 1rem;
    border-radius: 16px;
  }

  .stat-icon {
    font-size: 2rem;
  }

  .stat-value {
    font-size: 2rem;
  }

  /* Button group mobile layout */
  .button-group {
    padding: 1.5rem;
    margin-bottom: 2rem;
    gap: 1.5rem;
  }

  .primary-button-row,
  .secondary-buttons-row,
  .tertiary-buttons-row {
    width: 100%;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin: 0;
  }

  .primary-button {
    width: 100%;
    padding: 1.4rem 2rem;
    font-size: 1.2rem;
    min-height: 56px;
    touch-action: manipulation;
    min-width: auto;
  }

  .secondary-button,
  .tertiary-button {
    width: 100%;
    padding: 1.2rem 1.5rem;
    font-size: 1rem;
    min-height: 52px;
    touch-action: manipulation;
  }

  .button-icon {
    font-size: 1.3rem;
  }

  .primary-button .button-icon {
    font-size: 1.5rem;
  }

  /* Quick access mobile */
  .quick-access {
    margin-bottom: 1.5rem;
    gap: 1rem;
  }

  .quick-item {
    width: 52px;
    height: 52px;
  }

  .quick-icon {
    font-size: 1.3rem;
  }

  /* Modal mobile adjustments */
  .modal-content {
    width: 95%;
    max-width: none;
    margin: 1rem;
    border-radius: 20px;
  }

  .modal-header {
    padding: 2rem 1.5rem 1.5rem;
  }

  .modal-header h3 {
    font-size: 1.5rem;
  }

  .modal-body {
    padding: 1.5rem;
  }

  .modal-features {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 2rem;
  }

  .feature-item {
    padding: 1.25rem;
    border-radius: 12px;
  }

  /* Loading screen mobile */
  .loading-orb {
    width: 60px;
    height: 60px;
  }

  .loading-text {
    font-size: 1rem;
  }

  .loading-progress {
    width: 150px;
  }

  /* Improve touch interactions */
  .slime-orb {
    width: 140px;
    height: 140px;
    touch-action: manipulation;
  }
}

/* Small mobile phones responsive breakpoint (≤ 479px) */
@media (max-width: 479px) {
  .intro-container {
    padding: 0.75rem;
  }

  .title {
    font-size: 2rem;
  }

  .subtitle {
    font-size: 1rem;
  }

  .lore-line {
    font-size: 0.9rem;
  }

  .button-group {
    padding: 1rem;
    gap: 1rem;
  }

  .primary-button {
    padding: 1.2rem 1.5rem;
    font-size: 1.1rem;
    min-height: 52px;
  }

  .secondary-button,
  .tertiary-button {
    padding: 1rem 1.25rem;
    font-size: 0.95rem;
    min-height: 48px;
  }

  .modal-content {
    width: 98%;
    margin: 0.5rem;
  }

  .modal-header,
  .modal-body {
    padding: 1.25rem;
  }

  /* Smaller logo for very small screens but still reasonable size */
  .main-logo-icon {
    transform: scale(0.9);
  }

  .slime-orb {
    width: 160px;
    height: 160px;
  }
}

/* Tablet portrait responsive breakpoint (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
  .intro-container {
    padding: 1.5rem;
  }

  .title {
    font-size: 3.5rem;
  }

  .subtitle {
    font-size: 1.4rem;
  }

  .stats-preview {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }

  .button-group {
    max-width: 700px;
    padding: 2.5rem 2rem;
    gap: 2rem;
  }

  .secondary-buttons-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: none;
  }

  .tertiary-buttons-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    max-width: none;
  }

  .primary-button {
    max-width: 350px;
    padding: 1.4rem 3rem;
  }

  .secondary-button,
  .tertiary-button {
    padding: 1.1rem 2rem;
    font-size: 0.95rem;
  }
}

/* Footer mobile responsive adjustments */
@media (max-width: 767px) {
  .main-footer {
    padding: 2rem 0 1rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
    padding: 0 1rem;
  }

  .footer-brand {
    align-items: center;
  }

  .footer-brand-header {
    justify-content: center;
  }

  .footer-info {
    text-align: center;
  }

  .footer-social {
    justify-content: center;
  }
}

/* Landscape mobile orientation optimizations */
@media (max-width: 767px) and (orientation: landscape) {
  .intro-container {
    padding: 0.5rem;
  }

  .logo-container {
    margin-bottom: 1rem;
  }

  .main-logo-icon {
    transform: scale(0.85);
  }

  .title {
    font-size: 2rem;
  }

  .lore-section {
    margin-bottom: 1.5rem;
  }

  .stats-preview {
    grid-template-columns: repeat(3, 1fr);
  }

  .button-group {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .primary-button,
  .secondary-button,
  .tertiary-button {
    width: auto;
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
  }
}

/* High DPI and retina display optimizations */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .slime-orb,
  .main-logo-icon svg {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Performance optimizations for mobile devices */
@media (max-width: 767px) {
  /* Hide performance-heavy elements on mobile */
  .magic-circles,
  .particles,
  .starfield {
    display: none !important;
  }

  /* Simplify animations on mobile */
  .slime-orb {
    animation-duration: 6s; /* Slower animation for better performance */
  }

  .loading-orb {
    animation-duration: 2s;
  }

  /* Optimize touch scrolling */
  body {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  /* Improve touch targets */
  .primary-button,
  .secondary-button,
  .tertiary-button,
  .quick-item,
  .modal-close {
    -webkit-tap-highlight-color: rgba(77, 212, 255, 0.3);
    -tap-highlight-color: rgba(77, 212, 255, 0.3);
  }

  /* Prevent zoom on input focus */
  input,
  select,
  textarea {
    font-size: 16px;
  }

  /* Reduce motion for better performance */
  .title {
    animation-duration: 10s; /* Slower shimmer */
  }

  .subtitle::before,
  .subtitle::after {
    animation-duration: 4s;
  }
}

/* Enhanced accessibility and reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .slime-orb,
  .main-logo-icon svg,
  .loading-orb,
  .stat-item,
  .primary-button,
  .secondary-button,
  .tertiary-button,
  .title,
  .subtitle::before,
  .subtitle::after,
  .logo-container::before,
  .lore-section::before {
    animation: none !important;
    transition: none !important;
  }

  /* Keep essential animations but make them subtle */
  .title {
    background: linear-gradient(135deg, var(--primary-blue), #fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }

  /* Maintain hover effects for better UX */
  .stat-item:hover,
  .primary-button:hover,
  .secondary-button:hover,
  .tertiary-button:hover {
    transition: all 0.2s ease !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .title {
    -webkit-text-fill-color: var(--primary-blue);
    color: var(--primary-blue);
  }

  .lore-section {
    border-width: 2px;
    border-color: var(--primary-blue);
  }

  .stat-item {
    border-width: 2px;
    border-color: var(--primary-blue);
  }

  .primary-button,
  .secondary-button,
  .tertiary-button {
    border: 2px solid currentColor;
  }
}

/* Dark mode enhancements (if system prefers dark) */
@media (prefers-color-scheme: dark) {
  :root {
    --text-light: #f0f8ff;
    --text-secondary: rgba(240, 248, 255, 0.9);
    --text-muted: rgba(240, 248, 255, 0.7);
  }
}

/* Print styles */
@media print {
  .magic-circles,
  .particles,
  .starfield,
  .loading-screen,
  .quick-access,
  .button-group {
    display: none !important;
  }

  .intro-container {
    background: none !important;
  }

  .title,
  .subtitle,
  .lore-line {
    color: #000 !important;
    -webkit-text-fill-color: #000 !important;
  }
}
