:root {
  /* Base Layers */
  --bg-primary: #1b1020;
  --bg-secondary: #2a1b3d;
  --surface: rgba(255, 255, 255, 0.06);
  --surface-hover: rgba(255, 255, 255, 0.1);
  
  /* Accents */
  --accent-pink: #ff4fa3;
  --accent-purple: #7c3aed;
  --accent-gold: #facc15;
  
  /* Typography Colors */
  --text-primary: #fff1f9;
  --text-secondary: #fbcfe8;
  --text-muted: #c084fc;
  
  /* Radii & Shadows */
  --radius-sm: 18px;
  --radius-md: 22px;
  --radius-lg: 24px;
  --shadow-soft: 0 8px 32px rgba(0, 0, 0, 0.3);
  --glow-pink: 0 0 20px rgba(255, 79, 163, 0.4);
  --glow-purple: 0 0 20px rgba(124, 58, 237, 0.4);
  
  /* Layout */
  --container-max: 1320px;
}

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

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--bg-primary);
  background-image: 
    radial-gradient(circle at 15% 50%, rgba(124, 58, 237, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 85% 30%, rgba(255, 79, 163, 0.15) 0%, transparent 50%);
  background-attachment: fixed;
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: url('images/floating-sugar-dust.webp') repeat;
  opacity: 0.3;
  pointer-events: none;
  z-index: -1;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* Typography */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: 3.5rem;
  background: linear-gradient(135deg, var(--text-primary), var(--accent-pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

h2 {
  font-size: 2.5rem;
  color: var(--text-primary);
  text-align: center;
}

p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

/* Layout System */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 32px;
}

section {
  padding: 100px 0;
  position: relative;
}

/* Glassmorphism System */
.candy-glass {
  background: var(--surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

.candy-glass-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.02) 100%);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-soft);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.candy-glass-card:hover {
  transform: translateY(-10px);
  border-color: rgba(255, 79, 163, 0.4);
  box-shadow: 0 15px 35px rgba(255, 79, 163, 0.2);
  background: linear-gradient(180deg, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0.04) 100%);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: none;
  outline: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-pink), var(--accent-purple));
  color: #fff;
  box-shadow: 0 4px 15px rgba(255, 79, 163, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: 0; left: -100%; width: 50%; height: 100%;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.3), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
}

.btn-primary:hover {
  transform: translateY(-4px);
  box-shadow: var(--glow-pink);
}

.btn-primary:hover::after {
  left: 150%;
}

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

.btn-secondary:hover {
  background: rgba(255, 79, 163, 0.1);
  transform: translateY(-4px);
  box-shadow: 0 4px 15px rgba(255, 79, 163, 0.2);
}

/* Header */
.site-header {
  position: fixed;
  top: 0; left: 0; width: 100%;
  z-index: 1000;
  padding: 15px 0;
  transition: all 0.3s ease;
}

.site-header.scrolled {
  background: rgba(42, 27, 61, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding: 10px 0;
  box-shadow: 0 4px 30px rgba(0,0,0,0.5);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.logo img {
  height: 40px;
  width: auto;
  filter: drop-shadow(0 0 8px rgba(255, 79, 163, 0.6));
}

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

.main-nav a {
  color: var(--text-secondary);
  font-weight: 500;
  position: relative;
  transition: color 0.3s ease;
}

.main-nav a:hover {
  color: var(--accent-pink);
}

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

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

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

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

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

.hero-content {
  z-index: 2;
}

.hero-subtitle {
  color: var(--accent-gold);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: block;
  text-shadow: 0 0 10px rgba(250, 204, 21, 0.5);
}

.hero-actions {
  display: flex;
  gap: 20px;
  margin-top: 30px;
}

.hero-visual {
  position: relative;
  z-index: 2;
}

.hero-visual img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.5));
}

.floating-element {
  position: absolute;
  pointer-events: none;
  z-index: 1;
}

.float-1 { top: 10%; right: -5%; width: 120px; filter: blur(2px); }
.float-2 { bottom: 10%; left: -10%; width: 80px; filter: blur(4px); }
.float-3 { top: 40%; left: 40%; width: 40px; opacity: 0.6; }

/* Game Section Centerpiece */
.game-section {
  background: linear-gradient(to bottom, transparent, rgba(42, 27, 61, 0.5), transparent);
}

.game-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  aspect-ratio: 16/9;
  border-radius: var(--radius-lg);
  padding: 8px;
  background: linear-gradient(135deg, rgba(255, 79, 163, 0.5), rgba(124, 58, 237, 0.5));
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), var(--glow-purple);
}

.game-wrapper::before {
  content: '';
  position: absolute;
  top: -2px; left: -2px; right: -2px; bottom: -2px;
  background: linear-gradient(45deg, var(--accent-pink), var(--accent-purple), var(--accent-gold), var(--accent-pink));
  border-radius: 26px;
  z-index: -1;
  background-size: 400%;
}

.game-container {
  width: 100%;
  height: 100%;
  border-radius: 18px;
  overflow: hidden;
  background: #000;
  position: relative;
}

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

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 50px;
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: rgba(255, 79, 163, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 24px;
  box-shadow: inset 0 0 15px rgba(255, 79, 163, 0.2);
}

.feature-icon img {
  width: 32px;
  height: 32px;
}

/* Legal & Standard Pages */
.page-header {
  padding: 150px 0 60px;
  text-align: center;
  background: linear-gradient(to bottom, rgba(42, 27, 61, 0.8), transparent);
}

.content-wrapper {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px;
  margin-bottom: 100px;
}

.content-wrapper h2 {
  text-align: left;
  margin-top: 30px;
  color: var(--accent-pink);
  font-size: 1.8rem;
}

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

.content-wrapper ul {
  padding-left: 20px;
}

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

.content-wrapper li::marker {
  color: var(--accent-gold);
}

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

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

.form-group label {
  color: var(--text-secondary);
  font-weight: 500;
}

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

.form-control:focus {
  outline: none;
  border-color: var(--accent-pink);
  box-shadow: 0 0 10px rgba(255, 79, 163, 0.2);
  background: rgba(0, 0, 0, 0.3);
}

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

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

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

.footer-about p {
  color: var(--text-muted);
  max-width: 400px;
  margin-top: 15px;
}

.footer-links h4 {
  color: var(--text-primary);
  margin-bottom: 20px;
}

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

.footer-links a {
  color: var(--text-muted);
  transition: color 0.3s ease;
}

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

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