:root {
  --bg-primary: #0b0f0c;
  --bg-secondary: #121a16;
  --bg-card: rgba(255, 255, 255, 0.04);
  --accent-primary: #d4af37;
  --accent-secondary: #3cb371;
  --accent-tertiary: #8b1e2d;
  --accent-gradient: linear-gradient(135deg, #d4af37, #3cb371);
  --text-primary: #f5f5f5;
  --text-secondary: #a3b3a1;
  
  --spacing-desktop: 100px;
  --spacing-tablet: 70px;
  --spacing-mobile: 50px;
  
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 20px;
  
  --max-width: 1400px;
  --header-height: 80px;
  
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
}

a {
  color: var(--accent-secondary);
  text-decoration: none;
  transition: all 0.3s ease;
}

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

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: var(--spacing-desktop) 0;
}

.section-alt {
  background-color: var(--bg-secondary);
}

/* Glass Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: rgba(11, 15, 12, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
  z-index: 1000;
  display: flex;
  align-items: center;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-primary);
  letter-spacing: 0.5px;
}

.logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-primary);
}

.main-nav {
  display: flex;
  gap: 32px;
}

.main-nav a {
  color: var(--text-primary);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
}

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

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  font-family: var(--font-sans);
  text-align: center;
}

.btn-primary {
  background: var(--accent-gradient);
  color: var(--bg-primary);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
  color: var(--bg-primary);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent-secondary);
  transform: translateY(-2px);
  color: var(--text-primary);
}

.btn-large {
  padding: 18px 40px;
  font-size: 1.125rem;
  border-radius: var(--radius-lg);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding-top: var(--header-height);
  padding-bottom: 150px;
  background-color: var(--bg-primary);
  background-image: radial-gradient(circle at 50% 30%, rgba(60, 179, 113, 0.15) 0%, transparent 60%);
  text-align: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url('data:image/svg+xml;utf8,<svg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><path d="M50 0 L100 50 L50 100 L0 50 Z" fill="rgba(255,255,255,0.01)"/></svg>') repeat;
  opacity: 0.5;
  pointer-events: none;
}

.hero-content {
  max-width: 800px;
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 4.5rem;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 24px;
}

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

.hero-badges {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 40px;
}

.badge {
  background: var(--bg-card);
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 0.875rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.badge-red {
  border-color: rgba(139, 30, 45, 0.3);
  color: #ffb3b3;
}

/* Game Section - Critical Priority */
.game-section {
  position: relative;
  z-index: 10;
  margin-top: -100px;
  padding-bottom: var(--spacing-desktop);
}

.game-container {
  max-width: 1300px; /* 85-90% width on desktop */
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid rgba(212, 175, 55, 0.2);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(60, 179, 113, 0.05);
  position: relative;
}

.game-container::before {
  content: '';
  position: absolute;
  top: -1px; left: -1px; right: -1px; bottom: -1px;
  background: var(--accent-gradient);
  border-radius: calc(var(--radius-lg) + 1px);
  z-index: -1;
  opacity: 0.3;
}

.game-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.game-header h2 {
  margin: 0;
  font-size: 1.75rem;
  color: var(--accent-primary);
}

.game-frame-wrapper {
  width: 100%;
  height: 750px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-primary);
  position: relative;
}

.game-frame-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* Feature Cards Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 32px;
  margin-top: 40px;
}

.card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 40px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-5px);
  border-color: rgba(60, 179, 113, 0.3);
  background: rgba(255, 255, 255, 0.06);
}

.card-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  background: rgba(60, 179, 113, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--accent-secondary);
  font-size: 1.5rem;
}

.card h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.card p {
  color: var(--text-secondary);
  flex-grow: 1;
  margin-bottom: 24px;
}

/* Content Pages (About, Terms, etc) */
.page-header {
  padding: calc(var(--spacing-desktop) + var(--header-height)) 0 var(--spacing-tablet);
  text-align: center;
  background: var(--bg-secondary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.page-header h1 {
  font-size: 3.5rem;
  color: var(--accent-primary);
}

.content-wrapper {
  max-width: 900px;
  margin: 0 auto;
}

.content-block {
  background: var(--bg-card);
  padding: 40px;
  border-radius: var(--radius-md);
  margin-bottom: 32px;
  border: 1px solid rgba(255, 255, 255, 0.02);
}

.content-block h2 {
  color: var(--accent-secondary);
  margin-top: 0;
}

.content-block p {
  margin-bottom: 16px;
  color: var(--text-secondary);
}

.content-block ul {
  margin-bottom: 16px;
  padding-left: 24px;
  list-style-type: disc;
  color: var(--text-secondary);
}

.content-block li {
  margin-bottom: 8px;
}

/* Image blocks */
.image-block {
  width: 100%;
  height: 400px;
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.1);
  position: relative;
}

.image-block img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.image-block:hover img {
  opacity: 1;
}

.image-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 20px;
  background: linear-gradient(to top, rgba(11, 15, 12, 0.9), transparent);
  color: var(--text-primary);
  font-family: var(--font-serif);
  font-size: 1.2rem;
}

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  color: var(--text-primary);
  font-size: 0.9rem;
}

.form-control {
  width: 100%;
  padding: 16px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-sans);
  transition: all 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-secondary);
  background: rgba(0, 0, 0, 0.4);
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

/* Footer */
.site-footer {
  background: var(--bg-secondary);
  padding: 80px 0 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-brand .logo {
  margin-bottom: 16px;
}

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

.footer-heading {
  font-size: 1.125rem;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

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

.legal-notice {
  background: rgba(139, 30, 45, 0.1);
  border: 1px solid rgba(139, 30, 45, 0.2);
  padding: 24px;
  border-radius: var(--radius-sm);
  margin-bottom: 40px;
  text-align: center;
}

.legal-notice p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.legal-notice p:last-child {
  margin-bottom: 0;
}

.legal-notice strong {
  color: var(--accent-primary);
}

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  font-size: 0.85rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero h1 {
    font-size: 3.5rem;
  }
  .game-container {
    max-width: 95%;
  }
  .game-frame-wrapper {
    height: 600px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .section {
    padding: var(--spacing-tablet) 0;
  }
  .menu-toggle {
    display: block;
  }
  .main-nav {
    position: fixed;
    top: var(--header-height);
    left: -100%;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background: var(--bg-primary);
    flex-direction: column;
    align-items: center;
    padding-top: 40px;
    transition: left 0.3s ease;
  }
  .main-nav.active {
    left: 0;
  }
  .header-inner .btn-primary {
    display: none;
  }
  .hero {
    padding-bottom: var(--spacing-tablet);
  }
  .hero h1 {
    font-size: 2.5rem;
  }
  .hero-badges {
    flex-direction: column;
    align-items: center;
  }
  .game-section {
    margin-top: 0;
  }
  .game-container {
    max-width: 100%;
    border-radius: 0;
    padding: 16px;
  }
  .game-frame-wrapper {
    height: 500px;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-brand .logo {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .section {
    padding: var(--spacing-mobile) 0;
  }
  .hero {
    padding-bottom: var(--spacing-mobile);
  }
  .page-header h1 {
    font-size: 2.5rem;
  }
  .game-frame-wrapper {
    height: 400px;
  }
}