:root {
  --aurora-cyan: #00fff7;
  --frozen-violet: #6e44ff;
  --shadow-black: #0b0e1c;
  --mystic-gray: #1a1f2e;
  --runic-gold: #f9cc00;
  --fire-orange: #ff6b35;
  --fruit-green: #4ecdc4;
  --deep-purple: #2d1b69;
  --electric-blue: #1e3a8a;
  --sunset-orange: #f97316;
  --emerald-green: #10b981;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, var(--deep-purple), var(--electric-blue), var(--shadow-black));
  color: white;
  overflow-x: hidden;
  cursor: default;
}

/* Scroll Progress Bar */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 4px;
  background: linear-gradient(90deg, var(--sunset-orange), var(--emerald-green), var(--aurora-cyan));
  z-index: 1000;
  transition: width 0.3s ease;
}

/* Loading Screen */
#loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--deep-purple), var(--shadow-black));
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  transition: opacity 0.5s ease;
}

.vault-spinner {
  position: relative;
  width: 120px;
  height: 120px;
}

.runic-ring {
  position: absolute;
  border: 3px solid transparent;
  border-top: 3px solid var(--sunset-orange);
  border-radius: 50%;
  animation: spin 2s linear infinite;
}

.runic-ring:nth-child(1) {
  width: 120px;
  height: 120px;
  animation-duration: 2s;
}

.runic-ring:nth-child(2) {
  width: 90px;
  height: 90px;
  top: 15px;
  left: 15px;
  border-top-color: var(--emerald-green);
  animation-duration: 1.5s;
  animation-direction: reverse;
}

.runic-ring:nth-child(3) {
  width: 60px;
  height: 60px;
  top: 30px;
  left: 30px;
  border-top-color: var(--aurora-cyan);
  animation-duration: 1s;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-text {
  margin-top: 30px;
  font-size: 1.2rem;
  color: var(--sunset-orange);
  animation: textGlow 2s ease-in-out infinite alternate;
}

@keyframes textGlow {
  from { text-shadow: 0 0 10px var(--sunset-orange); }
  to { text-shadow: 0 0 20px var(--sunset-orange), 0 0 30px var(--sunset-orange); }
}

/* Aurora Background */
.aurora-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.aurora-wave {
  position: absolute;
  width: 200%;
  height: 100%;
  background: linear-gradient(45deg, 
    transparent, 
    rgba(249, 115, 22, 0.1), 
    transparent, 
    rgba(16, 185, 129, 0.1), 
    transparent,
    rgba(0, 255, 247, 0.1),
    transparent);
  animation: auroraMove 20s ease-in-out infinite;
}

.aurora-wave:nth-child(2) {
  animation-delay: -7s;
  animation-duration: 25s;
}

.aurora-wave:nth-child(3) {
  animation-delay: -14s;
  animation-duration: 30s;
}

@keyframes auroraMove {
  0%, 100% { transform: translateX(-50%) rotate(0deg); }
  25% { transform: translateX(-30%) rotate(2deg); }
  50% { transform: translateX(-70%) rotate(-1deg); }
  75% { transform: translateX(-40%) rotate(1deg); }
}

/* Particles */
.particles-container {
  position: absolute;
  width: 100%;
  height: 100%;
}

/* Site Header */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(45, 27, 105, 0.9);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 1rem 0;
  border-bottom: 2px solid var(--sunset-orange);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
}

.logo {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--emerald-green);
  text-shadow: 0 0 15px var(--emerald-green);
}

.rune-crown {
  animation: crownFloat 3s ease-in-out infinite;
}

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

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  color: var(--aurora-cyan);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--sunset-orange);
  text-shadow: 0 0 10px var(--sunset-orange);
  transform: translateY(-2px);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--sunset-orange);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 2rem;
  background: linear-gradient(135deg, rgba(45, 27, 105, 0.3), rgba(30, 58, 138, 0.3));
}

.hero-content {
  max-width: 800px;
}

.hero-title {
  font-size: 4rem;
  background: linear-gradient(45deg, var(--sunset-orange), var(--emerald-green), var(--aurora-cyan));
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 3s ease-in-out infinite;
  margin-bottom: 1rem;
  font-weight: 700;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-subtitle {
  font-size: 1.4rem;
  color: var(--aurora-cyan);
  margin-bottom: 3rem;
  opacity: 0;
  animation: fadeInUp 1s ease 0.5s forwards;
  font-weight: 300;
}

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

.cta-button {
  position: relative;
  background: linear-gradient(45deg, var(--sunset-orange), var(--emerald-green));
  border: none;
  padding: 1.2rem 3rem;
  font-size: 1.2rem;
  color: white;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  overflow: hidden;
  font-weight: 600;
  font-family: inherit;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(249, 115, 22, 0.4);
}

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

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

/* Games Section */
.games-section {
  padding: 6rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-size: 3rem;
  text-align: center;
  color: var(--emerald-green);
  margin-bottom: 1rem;
  text-shadow: 0 0 20px var(--emerald-green);
  font-weight: 700;
}

.section-subtitle {
  text-align: center;
  color: var(--aurora-cyan);
  margin-bottom: 4rem;
  font-size: 1.2rem;
  font-weight: 300;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.game-card {
  position: relative;
  background: rgba(45, 27, 105, 0.8);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  overflow: hidden;
}

.game-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--sunset-orange), transparent);
  opacity: 0;
  transition: all 0.5s ease;
}

.game-card:hover::before {
  left: 100%;
  opacity: 0.3;
}

.game-card:hover {
  transform: translateY(-10px);
  border-color: var(--emerald-green);
  box-shadow: 0 20px 40px rgba(16, 185, 129, 0.3);
}

.card-glow {
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, var(--sunset-orange), var(--emerald-green), var(--aurora-cyan));
  border-radius: 20px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.game-card:hover .card-glow {
  opacity: 0.5;
}

.game-image {
  width: 100%;
  max-width: 200px;
  height: auto;
  border-radius: 10px;
  margin-bottom: 1rem;
  animation: float 6s ease-in-out infinite;
}

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

.game-title {
  color: var(--aurora-cyan);
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.game-desc {
  color: #ccc;
  margin-bottom: 1.5rem;
  font-weight: 300;
}

.play-button {
  background: linear-gradient(45deg, var(--sunset-orange), var(--emerald-green));
  color: white;
  padding: 0.8rem 2rem;
  text-decoration: none;
  border-radius: 25px;
  transition: all 0.3s ease;
  display: inline-block;
  font-weight: 500;
}

.play-button:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(249, 115, 22, 0.4);
}

/* Features Section */
.features-section {
  padding: 6rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.feature-item {
  text-align: center;
  padding: 2rem;
  background: rgba(45, 27, 105, 0.6);
  border-radius: 15px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.feature-item:hover {
  transform: translateY(-5px);
  background: rgba(45, 27, 105, 0.8);
  border-color: var(--sunset-orange);
}

.rune-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  animation: iconPulse 3s ease-in-out infinite;
}

@keyframes iconPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.feature-item h3 {
  color: var(--emerald-green);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.feature-item p {
  color: #ccc;
  font-weight: 300;
}

/* About Section */
.about-section {
  position: relative;
  padding: 6rem 2rem;
  overflow: hidden;
}

.starfield-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(2px 2px at 20px 30px, #eee, transparent),
              radial-gradient(2px 2px at 40px 70px, rgba(255, 255, 255, 0.8), transparent),
              radial-gradient(1px 1px at 90px 40px, #fff, transparent),
              radial-gradient(1px 1px at 130px 80px, rgba(255, 255, 255, 0.6), transparent);
  background-repeat: repeat;
  background-size: 200px 100px;
  animation: starTwinkle 20s linear infinite;
}

@keyframes starTwinkle {
  from { transform: translateX(0); }
  to { transform: translateX(-200px); }
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.parchment-scroll {
  background: rgba(45, 27, 105, 0.9);
  border: 3px solid var(--emerald-green);
  border-radius: 15px;
  padding: 2rem;
  margin-top: 2rem;
  position: relative;
  animation: scrollFloat 4s ease-in-out infinite;
}

@keyframes scrollFloat {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-5px) rotate(0.5deg); }
}

.parchment-scroll::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, var(--emerald-green), var(--aurora-cyan));
  border-radius: 15px;
  z-index: -1;
  animation: borderGlow 3s ease-in-out infinite alternate;
}

@keyframes borderGlow {
  from { opacity: 0.5; }
  to { opacity: 1; }
}

/* Disclaimer Section */
.disclaimer-section {
  padding: 4rem 2rem;
  text-align: center;
}

.floating-scroll {
  max-width: 600px;
  margin: 0 auto;
  background: rgba(45, 27, 105, 0.8);
  border-radius: 20px;
  padding: 2rem;
  animation: floatGentle 6s ease-in-out infinite;
}

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

.floating-scroll h3 {
  color: var(--sunset-orange);
  margin-bottom: 1rem;
  font-weight: 600;
}

.floating-scroll p {
  margin: 0.5rem 0;
  color: #ccc;
  font-weight: 300;
}

/* Footer */
.site-footer {
  position: relative;
  background: rgba(45, 27, 105, 0.9);
  padding: 3rem 2rem 2rem;
  margin-top: 4rem;
}

.aurora-border {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--sunset-orange), var(--emerald-green), var(--aurora-cyan));
  animation: borderFlow 3s ease-in-out infinite;
}

@keyframes borderFlow {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 1; }
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-links a {
  color: var(--aurora-cyan);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  font-weight: 500;
}

.footer-links a:hover {
  color: var(--emerald-green);
  text-shadow: 0 0 10px var(--emerald-green);
}

.footer-links a::after {
  content: '✨';
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: all 0.3s ease;
}

.footer-links a:hover::after {
  opacity: 1;
  animation: sparkle 0.6s ease;
}

@keyframes sparkle {
  0%, 100% { transform: translateX(-50%) scale(1); }
  50% { transform: translateX(-50%) scale(1.5); }
}

.copyright {
  color: #888;
  font-size: 0.9rem;
  font-weight: 300;
}

.crown-icon {
  color: var(--emerald-green);
  animation: crownGlow 2s ease-in-out infinite alternate;
}

@keyframes crownGlow {
  from { text-shadow: 0 0 5px var(--emerald-green); }
  to { text-shadow: 0 0 15px var(--emerald-green), 0 0 25px var(--emerald-green); }
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .nav-container {
    flex-direction: column;
    gap: 1rem;
  }
  
  .nav-links {
    gap: 1rem;
  }
  
  .games-grid {
    grid-template-columns: 1fr;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 1rem;
  }
}

/* Game Page Styles */
.game-page {
  min-height: 100vh;
  padding: 8rem 2rem 2rem;
}

.game-header {
  text-align: center;
  margin-bottom: 3rem;
}

.game-header h1 {
  font-size: 3rem;
  color: var(--emerald-green);
  text-shadow: 0 0 20px var(--emerald-green);
  margin-bottom: 1rem;
  font-weight: 700;
}

.game-image-large {
  max-width: 400px;
  width: 100%;
  height: auto;
  border-radius: 15px;
  margin: 2rem 0;
  animation: float 6s ease-in-out infinite;
}

.game-iframe-container {
  max-width: 1000px;
  margin: 3rem auto;
  background: rgba(45, 27, 105, 0.8);
  border-radius: 20px;
  padding: 2rem;
  border: 2px solid var(--emerald-green);
}

.game-iframe {
  width: 100%;
  height: 600px;
  border: none;
  border-radius: 15px;
}

.back-button {
  background: linear-gradient(45deg, var(--sunset-orange), var(--emerald-green));
  color: white;
  padding: 1rem 2rem;
  text-decoration: none;
  border-radius: 25px;
  display: inline-block;
  margin: 2rem 0;
  transition: all 0.3s ease;
  font-weight: 500;
}

.back-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(249, 115, 22, 0.3);
}

/* Contact Page Styles */
.contact-form {
  max-width: 600px;
  margin: 3rem auto;
  background: rgba(45, 27, 105, 0.8);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 3rem;
  border: 2px solid transparent;
  position: relative;
}

.contact-form::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, var(--sunset-orange), var(--emerald-green));
  border-radius: 20px;
  z-index: -1;
  animation: formGlow 4s ease-in-out infinite alternate;
}

@keyframes formGlow {
  from { opacity: 0.5; }
  to { opacity: 0.8; }
}

.form-group {
  margin-bottom: 2rem;
}

.form-group label {
  display: block;
  color: var(--aurora-cyan);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  background: rgba(11, 14, 28, 0.8);
  border: 2px solid var(--mystic-gray);
  border-radius: 10px;
  color: white;
  font-size: 1rem;
  transition: all 0.3s ease;
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--emerald-green);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.3);
}

.submit-button {
  background: linear-gradient(45deg, var(--sunset-orange), var(--emerald-green));
  color: white;
  padding: 1rem 2.5rem;
  border: none;
  border-radius: 25px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  font-weight: 600;
  font-family: inherit;
}

.submit-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(249, 115, 22, 0.4);
}

/* Content Page Styles */
.content-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 8rem 2rem 2rem;
}

.content-container {
  background: rgba(45, 27, 105, 0.8);
  border: 3px solid var(--emerald-green);
  border-radius: 20px;
  padding: 3rem;
  position: relative;
}

.content-container::before {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  background: linear-gradient(45deg, var(--emerald-green), var(--aurora-cyan));
  border-radius: 20px;
  z-index: -1;
  animation: contentGlow 5s ease-in-out infinite alternate;
}

@keyframes contentGlow {
  from { opacity: 0.6; }
  to { opacity: 1; }
}

.content-container h1 {
  color: var(--emerald-green);
  text-shadow: 0 0 15px var(--emerald-green);
  margin-bottom: 2rem;
  animation: titleFlicker 4s ease-in-out infinite;
  font-weight: 700;
}

@keyframes titleFlicker {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}

.content-container h2 {
  color: var(--aurora-cyan);
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.content-container p {
  line-height: 1.6;
  margin-bottom: 1rem;
  color: #ccc;
  font-weight: 300;
}

.content-container ul {
  margin-left: 2rem;
  margin-bottom: 1rem;
}

.content-container li {
  margin-bottom: 0.5rem;
  color: #ccc;
  font-weight: 300;
}

.highlight {
  background: linear-gradient(45deg, var(--sunset-orange), var(--emerald-green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: bold;
}