/* Base styles */
:root {
  --primary: #2c3e50;
  --secondary: #3498db;
  --accent: #e74c3c;
}

body {
  margin: 0;
  font-family: 'Segoe UI', system-ui;
  line-height: 1.6;
  background: linear-gradient(135deg, #f5f6fa 0%, #dcdde1 100%);
}

/* Header styles */
.game-header {
  position: relative;
  padding: 3rem 2rem;
  background: linear-gradient(135deg, #1a237e 0%, #4a148c 100%);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 1;
  flex-direction: row;
}

.logo {
  font-size: 3.5rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
  background: linear-gradient(45deg, #4F46E5, #8B5CF6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 2rem;
}

.main-nav {
  display: flex;
  justify-content: flex-end;
  gap: 2rem;
  flex-grow: 1;
}

.game-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.nav-link,.nav-link:hover,
.nav-link:active {
  padding: 1rem 2rem;
  border-radius: 8px;
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(12px);
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  position: relative;
  color: #fff;
  text-shadow: 0 0 8px rgba(79,70,229,0.5);
}

.nav-link::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 8px;
    padding: 1px;
    background: linear-gradient(45deg, #4F46E5, #8B5CF6, #4F46E5);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
  }
  

 
.game-header h1 {
  margin: 0;
  font-size: 2.5rem;
  letter-spacing: -0.05em;
}

/* Main container */
.game-container {
  display: block;
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.game-nav {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin: 1rem 0 2rem;
  padding: 1rem;
  background: rgba(255,255,255,0.1);
  border-radius: 8px;
}

.game-nav a {
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: background 0.3s ease;
}

.game-nav a:hover {
  background: var(--secondary);
}

/* Responsive iframe */
.game-embed {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 8px 15px rgba(0,0,0,0.2);
}

#gameFrame {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Game info section */
.game-info {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.feature-list {
  display: grid;
  gap: 1rem;
  padding: 0;
  list-style: none;
}

.feature-list li {
  padding: 1rem;
  background: #f8f9fa;
  border-left: 4px solid var(--secondary);
  transition: transform 0.2s ease;
}

.feature-list li:hover {
  transform: translateX(8px);
}

/* Footer styles */
.game-meta {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-left: 0;
  font-size: 1.2rem;
  width: 100%;
  max-width: 1200px;
  margin: 2rem auto;
}

.bottom-nav {
  position: relative;
  margin: 4rem auto 2rem;
  max-width: 1200px;
  padding: 0 2rem;
}

.bottom-nav .nav-modules {
  display: flex;
  justify-content: space-between;
  width: 100%;
  gap: 2rem;
}

.bottom-nav .nav-module {
  flex: 1 1 0;
  min-width: 200px;
  padding: 0 1rem;
  text-align: center;
}

.bottom-nav .nav-module h3 {
  margin: 0 0 1rem;
  color: #2c3e50;
}

.bottom-nav .nav-module a {
  display: block;
  padding: 0.5rem 0;
  color: #3498db;
}

.game-container {
  padding-bottom: 100px !important;
}

.seo-footer {
  text-align: center;
  padding: 2rem;
  background: var(--primary);
  color: white;
  margin-top: 4rem;
}

@media (min-width: 768px) {
  .game-container {
    padding: 0 2rem;
  }
  .game-info {
    margin-top: 3rem;
  }
}

@media (max-width: 600px) {
  .nav-modules {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .bottom-nav {
    padding: 0.5rem 0;
  }
  .game-container {
    padding-bottom: 160px !important;
  }
}


.subtitle {
  font-size: 1.2rem;
  background: linear-gradient(45deg, #ff6b6b, #ffd93d);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-align: center;
  margin-top: -8px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.header-content {
  display: flex;
  flex-direction: row;
  gap: 40px;
  align-items: center;
  justify-content: flex-start;
}

.logo-container,
.main-nav {
  float: none;
}

.subtitle {
  margin-left: 0;
  margin-top: 8px;
}

.back-to-top {
  position: fixed;
  bottom: 40px;
  right: 30px;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: #ff6b6b;
  color: white;
  border: none;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-to-top.active {
  opacity: 1;
  transform: translateY(0);
}

.back-to-top:hover {
  background: #ff5252;
  transform: scale(1.1);
}

.fa-arrow-up {
  font-size: 1.2em;
}