:root {
  --primary-orange: #FF8C00;
  --primary-dark: #1a1a1a;
  --secondary-green: #7CB342;
  --accent-brown: #8B6F47;
  --light-bg: #F5F5F0;
  --dark-bg: #2a2a2a;
  --text-light: #ffffff;
  --text-dark: #333333;
}

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--light-bg);
}

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

/* Header Styles */
header {
  background: linear-gradient(135deg, var(--primary-dark) 0%, #3a3a3a 100%);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
}

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

.logo-text {
  color: var(--text-light);
  font-size: 1.8rem;
  font-weight: bold;
  letter-spacing: 1px;
}

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

nav a {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

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

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

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

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #8B6F47 0%, #654321 50%, #3a2a1a 100%);
  color: var(--text-light);
  padding: 6rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 50%, rgba(255, 140, 0, 0.1) 0%, transparent 70%);
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.cta-btn {
  background: var(--primary-orange);
  color: white;
  padding: 1rem 2.5rem;
  border: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 4px 15px rgba(255, 140, 0, 0.4);
}

.cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 140, 0, 0.6);
}

/* Features Section */
.features {
  padding: 5rem 0;
  background-color: #E8DCC8;
}

.features h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: var(--primary-dark);
}

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

.feature-card {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

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

.feature-card h3 {
  color: var(--primary-dark);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

/* Games Section */
.games-section {
  padding: 5rem 0;
  background-color: var(--light-bg);
}

.games-section h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: var(--primary-dark);
}

.search-bar {
  max-width: 600px;
  margin: 0 auto 3rem;
  position: relative;
}

.search-bar input {
  width: 100%;
  padding: 1rem 1.5rem;
  border: 2px solid #ddd;
  border-radius: 50px;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s ease;
}

.search-bar input:focus {
  border-color: var(--primary-orange);
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.game-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.game-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.game-info {
  padding: 1.5rem;
  text-align: center;
}

.game-info h3 {
  color: var(--primary-dark);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.play-btn {
  background: var(--secondary-green);
  color: white;
  padding: 0.8rem 2rem;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.play-btn:hover {
  background: #6fa035;
  transform: scale(1.05);
}

/* Leaderboard Section */
.leaderboard {
  padding: 5rem 0;
  background: linear-gradient(135deg, #7CB342 0%, #558B2F 100%);
  color: white;
}

.leaderboard h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.leaderboard-subtitle {
  text-align: center;
  font-size: 1.2rem;
  margin-bottom: 3rem;
  opacity: 0.9;
}

.leaderboard-list {
  max-width: 800px;
  margin: 0 auto;
  background: linear-gradient(135deg, #FFA726 0%, #FFB74D 50%, #FFEB3B 100%);
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.leaderboard-item {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  padding: 1.5rem;
  margin-bottom: 1rem;
  border-radius: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.leaderboard-item:last-child {
  margin-bottom: 0;
}

.leaderboard-rank {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--primary-dark);
}

.leaderboard-score {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-dark);
}

.leaderboard-time {
  font-size: 0.9rem;
  color: rgba(0, 0, 0, 0.7);
}

/* Footer */
footer {
  background: var(--primary-dark);
  color: var(--text-light);
  padding: 3rem 0 1rem;
}

.disclaimer {
  background: #FF6B6B;
  padding: 2rem;
  margin-bottom: 2rem;
  border-radius: 10px;
  text-align: center;
}

.disclaimer p {
  font-size: 1.1rem;
  line-height: 1.8;
}

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

.footer-section h4 {
  color: var(--primary-orange);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.responsible-gaming {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.responsible-gaming a {
  transition: transform 0.3s ease, opacity 0.3s ease;
  display: inline-block;
}

.responsible-gaming a:hover {
  transform: scale(1.05);
  opacity: 0.8;
}

.responsible-gaming img {
  height: 50px;
  background: white;
  padding: 10px;
  border-radius: 8px;
  display: block;
}

.platform-icons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin: 2rem 0;
}

.platform-icons span {
  background: rgba(255, 255, 255, 0.1);
  padding: 10px 15px;
  border-radius: 8px;
  font-size: 1.5rem;
}

.copyright {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Game Page Styles */
.game-page-hero {
  background: linear-gradient(135deg, var(--accent-brown) 0%, var(--primary-dark) 100%);
  padding: 2rem 0;
  color: white;
}

.game-page-hero h1 {
  text-align: center;
  font-size: 2.5rem;
}

.game-container {
  padding: 2rem 0;
  background-color: var(--light-bg);
}

.game-frame-wrapper {
  background: white;
  border-radius: 15px;
  padding: 1rem;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
}

.game-frame {
  width: 100%;
  height: 600px;
  border: none;
  border-radius: 10px;
  background: #000;
}

.game-controls {
  text-align: center;
  margin-top: 2rem;
}

.game-controls .cta-btn {
  margin: 0 0.5rem;
}

/* Age Verification Modal */
.age-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 10000;
  align-items: center;
  justify-content: center;
}

.age-modal.active {
  display: flex;
}

.age-modal-content {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 3rem;
  border-radius: 20px;
  text-align: center;
  max-width: 500px;
  color: white;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.age-modal-content h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.age-modal-content p {
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.age-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.age-btn {
  padding: 1rem 2rem;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.age-btn-yes {
  background: #FFD700;
  color: #333;
}

.age-btn-yes:hover {
  background: #FFC700;
  transform: scale(1.05);
}

.age-btn-no {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

.age-btn-no:hover {
  background: rgba(255, 255, 255, 0.3);
}

.age-denial {
  display: none;
  margin-top: 1rem;
  padding: 1rem;
  background: rgba(255, 0, 0, 0.2);
  border-radius: 10px;
}

/* Cookie Notice */
.cookie-notice {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  padding: 1.5rem;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  z-index: 9999;
  display: none;
}

.cookie-notice.active {
  display: block;
}

.cookie-notice-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.cookie-buttons {
  display: flex;
  gap: 1rem;
}

.cookie-btn {
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 50px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cookie-btn-accept {
  background: var(--accent-brown);
  color: white;
}

.cookie-btn-accept:hover {
  background: #6d5437;
}

.cookie-btn-essential {
  background: #eee;
  color: #333;
}

.cookie-btn-essential:hover {
  background: #ddd;
}

/* Responsive Design */
@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    gap: 1rem;
  }

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

  .hero p {
    font-size: 1rem;
  }

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

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

  .game-frame {
    height: 400px;
  }

  header .container {
    flex-direction: column;
    gap: 1rem;
  }

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