:root {
  --color-dark: #0f0f0f;
  --color-light: #f5f5f5;
  --color-gold: #d4af37;
  --color-gold-light: #f1e5c2;
  --color-dark-alt: #1a1a1a;
  --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

[data-theme="light"] {
  --bg-primary: var(--color-light);
  --bg-secondary: #ffffff;
  --text-primary: #222222;
  --text-secondary: #444444;
  --card-bg: rgba(255, 255, 255, 0.9);
  --border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] {
  --bg-primary: var(--color-dark);
  --bg-secondary: var(--color-dark-alt);
  --text-primary: var(--color-light);
  --text-secondary: #cccccc;
  --card-bg: rgba(15, 15, 15, 0.8);
  --border-color: rgba(255, 255, 255, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Raleway", sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  transition: var(--transition);
  overflow-x: hidden;
  background-image: radial-gradient(
      circle at 15% 50%,
      rgba(212, 175, 55, 0.03) 0%,
      transparent 25%
    ),
    radial-gradient(
      circle at 85% 30%,
      rgba(212, 175, 55, 0.03) 0%,
      transparent 25%
    );
}

.gold-accent {
  color: var(--color-gold);
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header Styles */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1100;
  padding: 20px 0;
  background: rgba(15, 15, 15, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

[data-theme="light"] header {
  background: rgba(245, 245, 245, 0.9);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  /* font-family: "Playfair Display", serif; */
  font-family: "Raleway", sans-serif;
  font-weight: 700;
  font-size: 1.8rem;
}

.logo-symbol {
  color: var(--color-gold);
  margin-right: 8px;
  font-size: 2.2rem;
}

.logo-text {
  color: var(--text-primary);
  transition: var(--transition);
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  position: relative;
  padding: 5px 0;
  transition: var(--transition);
}

.nav-links a:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-gold);
  transition: var(--transition);
}

.nav-links a:hover:after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.theme-toggle {
  background: none;
  border: 1px solid var(--border-color);
  width: 50px;
  height: 26px;
  border-radius: 50px;
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 0 3px;
  transition: var(--transition);
}

.theme-toggle:before {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-gold);
  transition: var(--transition);
  left: 3px;
}

[data-theme="light"] .theme-toggle:before {
  left: calc(100% - 23px);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 0 60px;
  position: relative;
  /* overflow: hidden; */
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 650px;
  pointer-events: none;
}
.hero-content > * {
  /* Включаем pointer-events для элементов внутри контента */
  pointer-events: auto;
}
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    ellipse at 50% 50%,
    rgba(212, 175, 55, 0.05) 0%,
    transparent 60%
  );
  z-index: 2;
}
.hero-title {
  /* font-family: "Playfair Display", serif; */
  font-family: "Raleway", sans-serif;
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.1;
}

.hero-subtitle {
  font-size: 1.2rem;
  margin-bottom: 40px;
  color: var(--text-secondary);
  max-width: 500px;
}

.hero-cta {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.btn {
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  z-index: 11;
  position: relative;
}

.btn-primary {
  background: var(--color-gold);
  color: var(--color-dark);
  border: 2px solid var(--color-gold);
  transition: all 0.2s ease-in-out;
}

.btn-primary:hover {
  /* background: transparent; */
  background: rgba(255, 255, 255, 0.1); /* Полупрозрачный фон для стеклянного эффекта */
  backdrop-filter: blur(10px); /* Размытие заднего плана */
  color: var(--color-gold);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(212, 175, 55, 0.2);
  transition: all 0.2s ease-in-out;
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--border-color);
}

.btn-secondary:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
  transform: translateY(-3px);
}

.hero-background {
  position: absolute;
  top: 100px;
  right: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

/* Эмодзи */
/* Floating Emojis */
.floating-emojis {
  position: absolute;
  width: 100%;
  height: 100%;
  perspective: 1000px;
  z-index: 5;
  pointer-events: none;
}

.emoji {
  position: absolute;
  font-size: var(--size);
  user-select: none;
  pointer-events: auto;
  z-index: 6;
  animation: none;
  animation-delay: var(--delay);
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  will-change: transform;
  /* Правильное позиционирование */
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    filter 0.3s ease, scale 0.3s ease;
    pointer-events: auto;
}

.emoji:hover {
  /* transform: translate(-50%, -50%) scale(1.2) rotate(15deg);
  filter: brightness(1.2);
  text-shadow: 0 6px 25px rgba(212, 175, 55, 0.4); */
  filter: brightness(1.3) drop-shadow(0 0 15px var(--color-gold));
  transform: translate(-50%, -50%) scale(1.3);
}

/* Enhanced emoji effects */
.emoji::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: calc(var(--size) * 1.5);
  height: calc(var(--size) * 1.5);
  background: radial-gradient(
    circle,
    rgba(212, 175, 55, 0.1) 0%,
    rgba(212, 175, 55, 0.05) 40%,
    transparent 70%
  );
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  animation: pulseGlow 4s infinite alternate;
}

@keyframes pulseGlow {
  0% {
    opacity: 0.3;
    transform: translate(-50%, -50%) scale(0.8);
  }
  100% {
    opacity: 0.6;
    transform: translate(-50%, -50%) scale(1.2);
  }
}

/* Different emoji colors and effects */
.emoji[data-emoji="😊"] {
  color: #ffd700;
  filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.4));
}
.emoji[data-emoji="🎮"] {
  color: #4ecdc4;
  filter: drop-shadow(0 0 10px rgba(78, 205, 196, 0.4));
}
.emoji[data-emoji="⭐"] {
  color: #ff6b6b;
  filter: drop-shadow(0 0 10px rgba(255, 107, 107, 0.4));
}
.emoji[data-emoji="😎"] {
  color: #45b7d1;
  filter: drop-shadow(0 0 10px rgba(69, 183, 209, 0.4));
}
.emoji[data-emoji="🎯"] {
  color: #f9a826;
  filter: drop-shadow(0 0 10px rgba(249, 168, 38, 0.4));
}
.emoji[data-emoji="🌟"] {
  background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #f9a826);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.3));
}
.emoji[data-emoji="🍀"] {
  color: #45b7d1;
  filter: drop-shadow(0 0 10px rgba(69, 183, 209, 0.4));
}
.emoji[data-emoji="💖"] {
  color: #ff6b6b;
  filter: drop-shadow(0 0 10px rgba(255, 107, 107, 0.4));
}

/* Featured Games */
.section {
  padding: 100px 0;
}

.section-title {
  font-family: "Playfair Display", serif;
  font-size: 2.5rem;
  margin-bottom: 20px;
  text-align: center;
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 60px;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.game-card {
  background: var(--card-bg);
  border-radius: 15px;
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
  position: relative;
}

.game-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  border-color: var(--color-gold);
}

.game-card-image {
  height: 200px;
  width: 100%;
  background-size: cover;
  background-position: center;
  position: relative;
}

.game-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  display: flex;
  align-items: flex-end;
  padding: 20px;
  opacity: 0;
  transition: var(--transition);
}

.game-card:hover .game-card-overlay {
  opacity: 1;
}

.game-card-content {
  padding: 20px;
}

.game-card-title {
  font-family: "Playfair Display", serif;
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.game-card-description {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 15px;
}

.game-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.game-card-category {
  font-size: 0.8rem;
  padding: 5px 12px;
  border-radius: 20px;
  background: var(--color-gold);
  color: var(--color-dark);
  font-weight: 600;
}

/* Footer */
footer {
  background: var(--bg-secondary);
  padding: 80px 0 40px;
  border-top: 1px solid var(--border-color);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 60px;
}

.footer-brand {
  max-width: 300px;
}

.footer-logo {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  /* font-family: "Playfair Display", serif; */
  font-family: "Raleway", sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  text-decoration: none;
}

.footer-description {
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.footer-contact {
  margin-top: 15px;
}

.footer-contact p {
  color: var(--color-gold);
  font-weight: 600;
}

.footer-heading {
  font-family: "Playfair Display", serif;
  font-size: 1.2rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-heading:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--color-gold);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--color-gold);
  padding-left: 5px;
}

.footer-bottom {
  text-align: center;
  padding-top: 40px;
  border-top: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-bottom p {
  margin-bottom: 10px;
}

/* Cookie Consent */
.cookie-consent {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 20px;
  z-index: 1001;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transform: translateY(150%);
  transition: transform 0.5s ease;
}

.cookie-consent.show {
  transform: translateY(0);
}

.cookie-consent-content {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.cookie-consent-content p {
  margin: 0;
  color: var(--text-primary);
}

.cookie-consent-content a {
  color: var(--color-gold);
  text-decoration: none;
}

.cookie-consent-content a:hover {
  text-decoration: underline;
}

.cookie-consent-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Responsive Design */
@media (max-width: 992px) {
  .hero-title {
    font-size: 3rem;
  }

  .hero-background {
    width: 100%;
    opacity: 0.2;
  }

  .nav-links {
    display: none;
  }
  .floating-emojis {
    z-index: 1;
  }

  .emoji {
    z-index: 2;
  }

}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .section {
    padding: 60px 0;
  }

  .btn {
    padding: 12px 25px;
  }

  .cookie-consent {
    left: 10px;
    right: 10px;
    bottom: 10px;
  }

  .cookie-consent-buttons {
    flex-direction: column;
  }

  .cookie-consent-buttons .btn {
    width: 100%;
  }
  .emoji {
    --size: 40px !important;
    font-size: 1.5rem !important;
  }
}
@media (max-width: 420px) {
  .logo {
    font-size: 1.4rem;
  }
}
/* Utility Classes */
.text-center {
  text-align: center;
}
.mt-20 {
  margin-top: 20px;
}
.mb-20 {
  margin-bottom: 20px;
}

.game-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media screen and (max-width: 768px) {
  .mobile-display_none {
  display: none;
  }
}
