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

:root {
  --primary-color: #8b5cf6;
  --secondary-color: #a78bfa;
  --dark-bg: #1a1625;
  --darker-bg: #0f0d15;
  --card-bg: #2a2438;
  --text-primary: #ffffff;
  --text-secondary: #b8b4c4;
  --accent-teal: #14b8a6;
  --accent-red: #ef4444;
}

body {
  font-family: 'Unbounded', sans-serif;
  background-color: var(--darker-bg);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  animation: fadeIn 0.3s ease;
}

.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: linear-gradient(180deg, #2d2442 0%, #1f1832 100%);
  padding: 40px;
  border-radius: 20px;
  max-width: 600px;
  width: 90%;
  text-align: center;
  animation: slideUp 0.4s ease;
}

.modal-content h2 {
  font-size: 2rem;
  margin-bottom: 15px;
  color: var(--text-primary);
}

.modal-subtitle {
  color: var(--text-secondary);
  margin-bottom: 30px;
  font-size: 0.95rem;
}

.modal-question {
  background: rgba(0, 0, 0, 0.3);
  padding: 25px;
  border-radius: 12px;
  margin-bottom: 25px;
}

.modal-question p:first-child {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.modal-disclaimer {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.modal-buttons {
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
}

.modal-buttons button {
  flex: 1;
  padding: 15px;
  border: none;
  border-radius: 10px;
  font-family: 'Unbounded', sans-serif;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary {
  background: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid var(--text-secondary);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

.modal-checkbox {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 25px;
}

.modal-checkbox input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.modal-checkbox label {
  font-size: 0.9rem;
  cursor: pointer;
}

.modal-actions {
  display: flex;
  gap: 15px;
}

.modal-actions button {
  flex: 1;
  padding: 15px;
  border: none;
  border-radius: 10px;
  font-family: 'Unbounded', sans-serif;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-enter {
  background: var(--accent-teal);
  color: white;
}

.btn-enter:hover {
  background: #0d9488;
  transform: translateY(-2px);
}

.btn-exit {
  background: var(--accent-red);
  color: white;
}

.btn-exit:hover {
  background: #dc2626;
  transform: translateY(-2px);
}

/* Header */
.header {
  background: var(--dark-bg);
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 700;
}

.logo img {
  width: 40px;
  height: 40px;
}

.nav {
  display: flex;
  gap: 30px;
}

.nav a {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.nav a:hover {
  color: var(--primary-color);
}

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

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

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--text-primary);
  transition: all 0.3s ease;
}

/* Hero Section */
.hero {
  padding: 100px 0;
  background: linear-gradient(180deg, var(--darker-bg) 0%, var(--dark-bg) 100%);
  position: relative;
  overflow: hidden;
  background: 
  linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
  url(/assets/images/bg.jpg);
background-size: cover;
background-position: center;
  background-size: cover;
}



.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content h1 {
  font-size: 3rem;
  line-height: 1.2;
  margin-bottom: 20px;
  font-weight: 700;
}

.highlight {
  color: var(--primary-color);
}

.hero-content p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 30px;
}

.btn-play {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 18px 45px;
  border-radius: 50px;
  font-family: 'Unbounded', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(139, 92, 246, 0.4);

  text-decoration: none;
}

.btn-play:hover {
  background: var(--secondary-color);
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(139, 92, 246, 0.6);
}

.active-players {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 40px;
}

.player-avatars {
  display: flex;
}

.player-avatars img {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: 3px solid var(--dark-bg);
  margin-left: -15px;
}

.player-avatars img:first-child {
  margin-left: 0;
}

.players-count {
  background: var(--accent-teal);
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
}

.hero-image img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* Games Section */
.games {
  padding: 100px 0;
  background: var(--dark-bg);
}

.games h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 60px;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
}

.game-card {
  background: var(--card-bg);
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.game-card:hover {
  transform: translateY(-10px);
}

.game-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.game-info {
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 58%;
}

.game-info h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.game-info p {
  color: var(--text-secondary);
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.btn-game {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 10px;
  font-family: 'Unbounded', sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-game:hover {
  background: var(--secondary-color);
  transform: translateX(5px);
}

/* About Section */
.about {
  padding: 100px 0;
  background: var(--darker-bg);
}

.about .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-content h2 {
  font-size: 2.5rem;
  margin-bottom: 25px;
}

.about-content p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.about-image img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* Features Section */
.features {
  padding: 100px 0;
  background: var(--dark-bg);
}

.features h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.feature-card {
  background: var(--card-bg);
  padding: 35px;
  border-radius: 20px;
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* How It Works Section */
.how-it-works {
  padding: 100px 0;
  background: var(--darker-bg);
}

.how-it-works h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.steps-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-top: 60px;
}

.steps-image img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.steps-content {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.step-number {
  background: var(--primary-color);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  flex-shrink: 0;
}

.step-info h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.step-info p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* FAQ Section */
.faq {
  padding: 100px 0;
  background: var(--dark-bg);
}

.faq h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.faq-list {
  max-width: 900px;
  margin: 60px auto 0;
}

.faq-item {
  background: var(--card-bg);
  border-radius: 15px;
  margin-bottom: 15px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 25px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  color: var(--text-primary);
  font-family: 'Unbounded', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  text-align: left;
  transition: background 0.3s ease;
}

.faq-question:hover {
  background: rgba(255, 255, 255, 0.05);
}

.faq-icon {
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 0 30px 25px;
}

.faq-answer p {
  color: var(--text-secondary);
  line-height: 1.8;
}

/* Testimonials Section */
.testimonials {
  padding: 100px 0;
  background: var(--darker-bg);
}

.testimonials h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
  margin-top: 60px;
}

.testimonial-card {
  background: var(--card-bg);
  padding: 35px;
  border-radius: 20px;
  text-align: center;
}

.testimonial-card img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin-bottom: 20px;
  border: 4px solid var(--primary-color);
}

.testimonial-card h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.testimonial-date {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-bottom: 20px;
}

.testimonial-text {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.8;
  font-style: italic;
}

/* Contact Section */
.contact {
  padding: 100px 0;
  background: var(--dark-bg);
}

.contact h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 60px;
}

.contact-form {
  max-width: 700px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  margin-bottom: 10px;
  font-weight: 600;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 15px 20px;
  background: var(--card-bg);
  border: 2px solid transparent;
  border-radius: 10px;
  color: var(--text-primary);
  font-family: 'Unbounded', sans-serif;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

.form-group textarea {
  resize: vertical;
}

.btn-submit {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 15px 50px;
  border-radius: 10px;
  font-family: 'Unbounded', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: block;
  margin: 0 auto;
}

.btn-submit:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
}

/* Legal Notice */
.legal-notice {
  padding: 60px 0;
  background: var(--primary-color);
  text-align: center;
}

.warning-icon {
  font-size: 3rem;
  margin-bottom: 20px;
}

.legal-notice h3 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.legal-notice p {
  max-width: 1000px;
  margin: 15px auto;
  line-height: 1.8;
}

.legal-notice a {
  color: var(--text-primary);
  text-decoration: underline;
}

/* Footer */
.footer {
  padding: 60px 0 30px;
  background: var(--darker-bg);
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.footer-brand p {
  color: var(--text-secondary);
  margin-top: 20px;
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--primary-color);
}

.footer-badges {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.footer-badges img {
  width: 100%;
  max-width: 120px;
  height: auto;
}

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

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

/* Responsive Design */
@media (max-width: 1024px) {
  .hero .container,
  .about .container,
  .steps-container {
      grid-template-columns: 1fr;
  }

  .hero-image,
  .about-image {
      order: -1;
  }

  .footer-content {
      grid-template-columns: 1fr;
      text-align: center;
  }

  .footer-badges {
      justify-content: center;
      margin: 0 auto;
  }

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

@media (max-width: 768px) {
  .nav {
      display: none;
  }

  .mobile-menu-toggle {
      display: flex;
  }

  .hero-content h1 {
      font-size: 2rem;
  }

  .games-grid,
  .features-grid,
  .testimonials-grid {
      grid-template-columns: 1fr;
  }

  h2 {
      font-size: 2rem !important;
  }

  .modal-content {
      padding: 30px 20px;
  }

  .modal-buttons,
  .modal-actions {
      flex-direction: column;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
      font-size: 1.5rem;
  }

  .active-players {
      flex-direction: column;
      align-items: flex-start;
  }

  .player-avatars img {
      width: 35px;
      height: 35px;
  }
}



/* Privacy Policy Section */
.privacy-policy {
  padding: 100px 0;
  background: var(--darker-bg);
}

.privacy-policy h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 30px;
}

.privacy-intro {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 900px;
  margin: 0 auto 60px;
  line-height: 1.8;
}

.privacy-content {
  max-width: 1000px;
  margin: 0 auto;
}

.privacy-section {
  margin-bottom: 40px;
}

.privacy-section h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--text-primary);
  font-weight: 600;
}

.privacy-section p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.8;
}

/* Responsive */
@media (max-width: 768px) {
  .privacy-policy h2 {
      font-size: 2rem;
  }

  .privacy-section h3 {
      font-size: 1.2rem;
  }

  .privacy-intro {
      font-size: 1rem;
  }
}



/* Terms and Conditions Section */
.terms-conditions {
  padding: 100px 0;
  background: var(--dark-bg);
}

.terms-conditions h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 30px;
}

.terms-intro {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 1000px;
  margin: 0 auto 60px;
  line-height: 1.8;
}

.terms-content {
  max-width: 1000px;
  margin: 0 auto;
}

.terms-section {
  margin-bottom: 35px;
}

.terms-section h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
  color: var(--text-primary);
  font-weight: 600;
}

.terms-section p {
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.8;
  margin-bottom: 10px;
}

.terms-section p:last-child {
  margin-bottom: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .terms-conditions h2 {
      font-size: 2rem;
  }

  .terms-section h3 {
      font-size: 1.2rem;
  }

  .terms-intro {
      font-size: 0.95rem;
  }
}

/* Disclaimer Section */
.disclaimer {
  padding: 100px 0;
  background: var(--darker-bg);
}

.disclaimer h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 50px;
}

.disclaimer-content {
  max-width: 1000px;
  margin: 0 auto;
}

.disclaimer-date {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 30px;
  font-weight: 500;
}

.disclaimer-content p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 25px;
}

.disclaimer-content p:last-child {
  margin-bottom: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .disclaimer h2 {
      font-size: 2rem;
  }

  .disclaimer-content p {
      font-size: 0.95rem;
  }
}

/* Responsible Gaming Policy Section */
.responsible-gaming {
  padding: 100px 0;
  background: var(--dark-bg);
}

.responsible-gaming h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 40px;
}

.responsible-gaming-content {
  max-width: 1100px;
  margin: 0 auto;
}

.update-date {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 30px;
  font-weight: 500;
}

.responsible-gaming-content > p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 30px;
}

.policy-section {
  margin-top: 50px;
  margin-bottom: 50px;
}

.policy-section h3 {
  font-size: 1.6rem;
  margin-bottom: 20px;
  color: var(--text-primary);
  font-weight: 600;
}

.policy-section > p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 20px;
}

.policy-section p.support-measures {
  margin-top: 20px;
  margin-bottom: 15px;
}

.policy-section ul {
  margin: 20px 0;
  padding-left: 0;
  list-style: none;
}

.policy-section ul li {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 20px;
  padding-left: 25px;
  position: relative;
}

.policy-section ul li::before {
  content: '•';
  color: var(--primary-color);
  font-size: 1.5rem;
  position: absolute;
  left: 0;
  top: -2px;
}

.policy-section ul li strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
  .responsible-gaming h2 {
      font-size: 2rem;
  }

  .policy-section h3 {
      font-size: 1.3rem;
  }

  .responsible-gaming-content > p,
  .policy-section > p,
  .policy-section ul li {
      font-size: 0.95rem;
  }
}



/* Mobile Menu Styles - добавьте/замените эти стили */
@media (max-width: 768px) {
  .nav {
      display: none;
      position: fixed;
      top: 80px;
      left: 0;
      right: 0;
      background: var(--dark-bg);
      flex-direction: column;
      gap: 0;
      padding: 20px;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
      z-index: 999;
  }

  .nav.active {
      display: flex;
  }

  .nav a {
      padding: 15px;
      border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav a:last-child {
      border-bottom: none;
  }

  .mobile-menu-toggle {
      display: flex;
  }

  .mobile-menu-toggle.active span:nth-child(1) {
      transform: rotate(45deg) translate(5px, 5px);
  }

  .mobile-menu-toggle.active span:nth-child(2) {
      opacity: 0;
  }

  .mobile-menu-toggle.active span:nth-child(3) {
      transform: rotate(-45deg) translate(7px, -6px);
  }

  .hero-content h1 {
      font-size: 2rem;
  }

  .games-grid,
  .features-grid,
  .testimonials-grid {
      grid-template-columns: 1fr;
  }

  h2 {
      font-size: 2rem !important;
  }

  .modal-content {
      padding: 30px 20px;
  }

  .modal-buttons,
  .modal-actions {
      flex-direction: column;
  }
}





/* ========================================
   GAME MODAL STYLES
   ======================================== */

   .game-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    animation: fadeIn 0.3s ease;
    overflow: auto;
  }
  
  .game-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
  }
  
  .game-modal-content {
    background: linear-gradient(180deg, #2d2442 0%, #1f1832 100%);
    border-radius: 20px;
    width: 100%;
    max-width: 1400px;
    max-height: 90vh;
    position: relative;
    animation: slideUp 0.4s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
  }
  
  .game-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent-red);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .game-close-btn:hover {
    background: #dc2626;
    transform: rotate(90deg);
  }
  
  .game-title {
    text-align: center;
    font-size: 2rem;
    padding: 30px 20px 20px;
    color: var(--text-primary);
    margin: 0;
  }
  
  .game-container {
    flex: 1;
    width: 100%;
    padding: 0 20px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .game-container iframe {
    width: 100%;
    height: 75vh;
    border-radius: 15px;
    background: var(--darker-bg);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  }
  
  /* Loading indicator for iframe */
  .game-container::before {
    content: 'Cargando juego...';
    position: absolute;
    color: var(--text-secondary);
    font-size: 1.2rem;
    animation: pulse 1.5s ease-in-out infinite;
  }
  
  .game-container iframe[src] ~ ::before {
    display: none;
  }
  
  @keyframes pulse {
    0%, 100% {
      opacity: 0.5;
    }
    50% {
      opacity: 1;
    }
  }
  
  /* Responsive styles for game modal */
  @media (max-width: 1024px) {
    .game-modal-content {
      max-width: 95%;
    }
    
    .game-container iframe {
      height: 65vh;
    }
  }
  
  @media (max-width: 768px) {
    .game-modal.active {
      padding: 10px;
    }
    
    .game-modal-content {
      max-width: 100%;
      max-height: 95vh;
      border-radius: 15px;
    }
    
    .game-title {
      font-size: 1.5rem;
      padding: 25px 15px 15px;
    }
    
    .game-close-btn {
      width: 40px;
      height: 40px;
      font-size: 1.5rem;
      top: 10px;
      right: 10px;
    }
    
    .game-container {
      padding: 0 10px 10px;
    }
    
    .game-container iframe {
      height: 60vh;
      border-radius: 10px;
    }
  }
  
  @media (max-width: 480px) {
    .game-title {
      font-size: 1.2rem;
      padding: 20px 10px 10px;
    }
    
    .game-container iframe {
      height: 55vh;
    }
  }
  
  /* Improve button hover effect */
  .btn-game {
    position: relative;
    overflow: hidden;
  }
  
  .btn-game::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
  }
  
  .btn-game:hover::before {
    width: 300px;
    height: 300px;
  }