:root {
  /* Strictly Allowed Color Palette */
  --bg-primary: #07070a;
  --bg-secondary: #11131a;
  --card-bg: rgba(255, 255, 255, 0.04);
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  
  --blue: #1d4ed8;
  --blue-glow: rgba(29, 78, 216, 0.4);
  --light-blue: #38bdf8;
  --light-blue-glow: rgba(56, 189, 248, 0.5);
  --yellow: #facc15;
  --yellow-glow: rgba(250, 204, 21, 0.4);

  /* Glassmorphism & Borders */
  --glass-border: 1px solid rgba(56, 189, 248, 0.2);
  --glass-border-hover: 1px solid rgba(56, 189, 248, 0.5);
  --shadow-base: 0 8px 32px 0 rgba(7, 7, 10, 0.6);
  --shadow-glow: 0 0 20px var(--blue-glow);

  /* Spacing System */
  --space-mobile: 50px;
  --space-tablet: 70px;
  --space-desktop: 100px;
  
  /* Layout */
  --max-width: 1400px;
  --game-width: 1300px;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

ul {
  list-style: none;
}

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

/* Layout Utilities */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 768px) {
  .container {
    padding: 0 24px;
  }
}

@media (min-width: 1200px) {
  .container {
    padding: 0 32px;
  }
}

.grid {
  display: grid;
  gap: 24px;
}

.grid-12 {
  grid-template-columns: repeat(12, 1fr);
}

.text-center {
  text-align: center;
}

/* Section Spacing */
.section {
  padding: var(--space-mobile) 0;
}

@media (min-width: 768px) {
  .section { padding: var(--space-tablet) 0; }
}

@media (min-width: 1200px) {
  .section { padding: var(--space-desktop) 0; }
}

/* Typography */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  text-shadow: 0 0 30px var(--blue-glow);
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 20px;
}

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

.text-gradient {
  background: linear-gradient(135deg, var(--light-blue), var(--text-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 32px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 18px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  outline: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--light-blue));
  color: var(--text-primary);
  box-shadow: 0 4px 15px var(--blue-glow);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 2px solid var(--yellow);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transform: skewX(-25deg);
  transition: all 0.6s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--light-blue-glow);
}

.btn-primary:hover::before {
  left: 200%;
}

.btn-primary:active {
  transform: translateY(1px);
}

.btn-secondary {
  background: var(--card-bg);
  color: var(--text-primary);
  border: var(--glass-border);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  border: var(--glass-border-hover);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-glow);
}

/* Header & Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(7, 7, 10, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(56, 189, 248, 0.15);
  transition: all 0.3s ease;
}

.header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--blue), var(--light-blue), transparent);
  opacity: 0.5;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.03em;
}

.logo-icon {
  color: var(--light-blue);
  filter: drop-shadow(0 0 8px var(--light-blue-glow));
}

.nav-links {
  display: none;
  align-items: center;
  gap: 32px;
}

@media (min-width: 992px) {
  .nav-links {
    display: flex;
  }
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 8px 0;
}

.nav-link:hover {
  color: var(--text-primary);
  text-shadow: 0 0 10px var(--light-blue-glow);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--light-blue));
  transition: width 0.3s ease;
  box-shadow: 0 0 8px var(--light-blue-glow);
}

.nav-link:hover::after {
  width: 100%;
}

.mobile-menu-btn {
  display: block;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

@media (min-width: 992px) {
  .mobile-menu-btn {
    display: none;
  }
}

.mobile-nav {
  position: absolute;
  top: 80px;
  left: 0;
  width: 100%;
  background: rgba(17, 19, 26, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: var(--glass-border);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transform: translateY(-150%);
  opacity: 0;
  transition: all 0.4s ease;
  z-index: 999;
}

.mobile-nav.active {
  transform: translateY(0);
  opacity: 1;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(circle at 50% 30%, rgba(29, 78, 216, 0.15) 0%, rgba(7, 7, 10, 1) 60%),
                    url('images/diamond-abstract-hero-background.webp');
  background-size: cover;
  background-position: center;
  z-index: -2;
  opacity: 0.6;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(7,7,10,0.2) 0%, var(--bg-primary) 100%);
  z-index: -1;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

.legal-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--card-bg);
  border: var(--glass-border);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--yellow);
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
  box-shadow: 0 0 15px rgba(250, 204, 21, 0.1);
}

.disclaimer-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.disclaimer-text span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.disclaimer-text span::before {
  content: '•';
  color: var(--light-blue);
}

/* Game Section */
.game-section {
  position: relative;
  z-index: 5;
  margin-top: -60px;
}

.game-container {
  width: 100%;
  max-width: var(--game-width);
  margin: 0 auto;
  background: var(--bg-secondary);
  border-radius: 22px;
  border: 1px solid rgba(56, 189, 248, 0.3);
  box-shadow: 0 20px 50px rgba(7, 7, 10, 0.8),
              0 0 40px rgba(29, 78, 216, 0.2),
              inset 0 0 20px rgba(56, 189, 248, 0.05);
  padding: 8px;
  position: relative;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.game-container::before {
  content: '';
  position: absolute;
  top: -2px; left: -2px; right: -2px; bottom: -2px;
  background: linear-gradient(135deg, var(--blue), var(--light-blue), transparent, transparent);
  border-radius: 24px;
  z-index: -1;
  opacity: 0.5;
}

.game-container:hover {
  transform: scale(1.01);
  box-shadow: 0 25px 60px rgba(7, 7, 10, 0.9),
              0 0 60px rgba(56, 189, 248, 0.3);
}

.game-frame-wrapper {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  background: #000;
}

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

/* Feature Cards */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 60px;
}

@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--card-bg);
  border: var(--glass-border);
  border-radius: 18px;
  padding: 32px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--light-blue), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 10px 30px rgba(29, 78, 216, 0.15);
}

.card:hover::before {
  opacity: 1;
}

.card-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(29, 78, 216, 0.2), rgba(56, 189, 248, 0.2));
  border: 1px solid rgba(56, 189, 248, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--light-blue);
  font-size: 1.5rem;
}

.card h3 {
  color: var(--text-primary);
  margin-bottom: 12px;
  font-size: 1.25rem;
}

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

/* Legal & Trust Box */
.trust-box {
  background: linear-gradient(180deg, var(--bg-secondary), var(--bg-primary));
  border: 1px solid rgba(250, 204, 21, 0.2);
  border-radius: 18px;
  padding: 40px;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.trust-box::before {
  content: '18+';
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-primary);
  border: 1px solid var(--yellow);
  color: var(--yellow);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  box-shadow: 0 0 15px var(--yellow-glow);
}

.trust-box h3 {
  color: var(--yellow);
  margin-bottom: 16px;
}

/* Forms */
.form-group {
  margin-bottom: 24px;
  text-align: left;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

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

.form-control:focus {
  outline: none;
  border-color: var(--light-blue);
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.2);
  background: rgba(0, 0, 0, 0.4);
}

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

/* Inner Page Headers */
.page-header {
  padding: 160px 0 80px;
  background: linear-gradient(180deg, rgba(29, 78, 216, 0.1) 0%, var(--bg-primary) 100%);
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.content-wrapper {
  max-width: 800px;
  margin: 0 auto;
  background: var(--card-bg);
  border: var(--glass-border);
  border-radius: 18px;
  padding: 40px;
  backdrop-filter: blur(12px);
}

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

.content-wrapper h2, .content-wrapper h3 {
  margin-top: 32px;
  margin-bottom: 16px;
  color: var(--light-blue);
}

.content-wrapper ul {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 20px;
  color: var(--text-secondary);
}

.content-wrapper ul li {
  margin-bottom: 10px;
}

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

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

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

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

.footer-title {
  color: var(--text-primary);
  font-size: 1.1rem;
  margin-bottom: 20px;
  font-weight: 600;
}

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

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

.footer-links a:hover {
  color: var(--light-blue);
  padding-left: 4px;
}

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

/* Animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

.floating {
  animation: float 6s ease-in-out infinite;
}

@keyframes pulse-glow {
  0% { box-shadow: 0 0 20px rgba(56, 189, 248, 0.2); }
  50% { box-shadow: 0 0 40px rgba(56, 189, 248, 0.4); }
  100% { box-shadow: 0 0 20px rgba(56, 189, 248, 0.2); }
}

.glow-effect {
  animation: pulse-glow 4s infinite;
}