:root {
  /* PureInsightCenter Cosmic Color Palette */
  --color-primary: #8B5CF6;      /* Cosmic purple for primary actions */
  --color-primary-light: #A78BFA;  /* Lighter purple for hover states */
  --color-secondary: #F472B6;    /* Cosmic pink for accents */
  --color-accent: #22D3EE;       /* Cyan for highlights */
  --color-background: #0F0A1F;   /* Deep space background */
  --color-surface: rgba(15, 10, 35, 0.8);      /* Semi-transparent dark surfaces */
  --color-surface-solid: #1A1333; /* Solid dark surface */
  --color-text: #E2E8F0;         /* Light text for dark bg */
  --color-text-light: #A0AEC0;   /* Lighter text */
  --color-gradient-start: #8B5CF6;  /* Purple gradient start */
  --color-gradient-end: #06B6D4;   /* Cyan gradient end */
  --color-button-hover: #7C3AED;  /* Darker purple for button hover */
  --color-button-text: #FFFFFF;   /* White text for buttons */
  --color-border: rgba(139, 92, 246, 0.3);       /* Purple-tinted border */
  --color-success: #34D399;      /* Success green */
  --color-warning: #FBBF24;      /* Warning yellow */
  --color-error: #F87171;        /* Error red */
  
  /* Typography */
  --font-primary: 'Gotham Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --font-size-base: 16px;
  
  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  
  /* Border radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(139, 92, 246, 0.2);
  --shadow-md: 0 4px 6px -1px rgba(139, 92, 246, 0.3), 0 2px 4px -1px rgba(6, 182, 212, 0.2);
  --shadow-lg: 0 10px 15px -3px rgba(139, 92, 246, 0.4), 0 4px 6px -2px rgba(6, 182, 212, 0.3);
  --shadow-glow: 0 0 20px rgba(139, 92, 246, 0.5), 0 0 40px rgba(6, 182, 212, 0.3);
  
  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-normal: 250ms ease;
  --transition-slow: 350ms ease;
}

/* Cosmic animated background */
html {
  min-height: 100%;
}

html::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  background: 
    radial-gradient(ellipse at 20% 20%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(6, 182, 212, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(244, 114, 182, 0.1) 0%, transparent 60%),
    linear-gradient(180deg, #0F0A1F 0%, #1A0A2E 50%, #0D1B2A 100%);
}

/* Stars animation */
html::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background-image: 
    radial-gradient(2px 2px at 20px 30px, rgba(255,255,255,0.9), transparent),
    radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.7), transparent),
    radial-gradient(1px 1px at 90px 40px, rgba(255,255,255,0.8), transparent),
    radial-gradient(2px 2px at 130px 80px, rgba(139,92,246,0.8), transparent),
    radial-gradient(1px 1px at 160px 120px, rgba(255,255,255,0.9), transparent),
    radial-gradient(2px 2px at 200px 50px, rgba(6,182,212,0.7), transparent),
    radial-gradient(1px 1px at 250px 90px, rgba(255,255,255,0.6), transparent),
    radial-gradient(2px 2px at 300px 60px, rgba(244,114,182,0.6), transparent),
    radial-gradient(1px 1px at 350px 110px, rgba(255,255,255,0.8), transparent),
    radial-gradient(2px 2px at 400px 30px, rgba(139,92,246,0.7), transparent),
    radial-gradient(1px 1px at 450px 80px, rgba(255,255,255,0.5), transparent),
    radial-gradient(2px 2px at 500px 120px, rgba(6,182,212,0.6), transparent),
    radial-gradient(1px 1px at 550px 40px, rgba(255,255,255,0.7), transparent),
    radial-gradient(2px 2px at 600px 90px, rgba(244,114,182,0.5), transparent),
    radial-gradient(1px 1px at 650px 60px, rgba(255,255,255,0.8), transparent);
  background-size: 700px 150px;
  animation: twinkle-stars 8s ease-in-out infinite;
}

@keyframes twinkle-stars {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* Base styles */
body {
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
  line-height: 1.5;
  color: var(--color-text);
  background: transparent;
  margin: 0 auto;
  padding: 0;
  max-width: 1440px;
  position: relative;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--color-text);
  margin-top: 0;
  line-height: 1.2;
  font-weight: 700;
  text-shadow: 0 0 30px rgba(139, 92, 246, 0.3);
}

h1 { 
  font-size: 2.5rem; 
  background: linear-gradient(135deg, #fff 0%, #A78BFA 50%, #22D3EE 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
  margin-top: 0;
  margin-bottom: var(--spacing-md);
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: all var(--transition-fast);
}

a:hover {
  color: var(--color-primary-light);
  text-decoration: none;
  text-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-normal);
  border: 2px solid transparent;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  color: var(--color-button-text);
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
  position: relative;
  overflow: hidden;
}

.button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

.button:hover::before {
  left: 100%;
}

.button:hover {
  background: linear-gradient(135deg, var(--color-button-hover) 0%, var(--color-primary) 100%);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
  text-decoration: none;
}

.button:active {
  transform: translateY(0);
  box-shadow: var(--shadow-md);
}

.button.button-outline {
  background: transparent;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.2);
}

.button.button-outline:hover {
  background: rgba(139, 92, 246, 0.15);
  border-color: var(--color-primary-light);
  color: var(--color-primary-light);
  box-shadow: 0 0 25px rgba(139, 92, 246, 0.4);
}

/* Layout */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* Header */
.header {
  background: linear-gradient(180deg, rgba(15, 10, 35, 0.95) 0%, rgba(26, 10, 46, 0.9) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 30px rgba(139, 92, 246, 0.2);
  border-bottom: 1px solid rgba(139, 92, 246, 0.2);
  padding: var(--spacing-md) 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--color-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.logo img {
  height: 2.5rem;
  width: auto;
}

/* Navigation */
.navbar {
  display: flex;
  gap: var(--spacing-md);
}

.navbar__list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: var(--spacing-md);
}

.navbar__link {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.navbar__link:hover {
  color: var(--color-accent);
  background: rgba(139, 92, 246, 0.15);
  text-decoration: none;
  text-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.3) 0%, rgba(6, 182, 212, 0.2) 100%);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: var(--radius-lg);
  color: white;
  padding: var(--spacing-2xl) var(--spacing-lg);
  text-align: center;
  margin: var(--spacing-lg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-glow);
}

.hero__title {
  font-size: 3rem;
  margin-bottom: var(--spacing-md);
  color: white;
}

.hero__subtitle {
  font-size: 1.25rem;
  max-width: 700px;
  margin: 0 auto var(--spacing-xl);
  opacity: 0.9;
}

/* Footer */
.footer {
  background: linear-gradient(180deg, rgba(15, 10, 35, 0.95) 0%, rgba(10, 5, 25, 0.98) 100%);
  border-top: 1px solid rgba(139, 92, 246, 0.3);
  color: white;
  padding: var(--spacing-2xl) 0 var(--spacing-md);
  margin-top: auto;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.footer a {
  color: white;
  opacity: 0.8;
  transition: opacity var(--transition-fast);
}

.footer a:hover {
  opacity: 1;
  text-decoration: none;
}

.footer__content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--spacing-md);
  text-align: center;
  font-size: 0.875rem;
  opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 768px) {
  .header .container {
    flex-direction: column;
    gap: var(--spacing-md);
  }
  
  .navbar__list {
    flex-direction: column;
    text-align: center;
    width: 100%;
  }
  
  .hero__title {
    font-size: 2rem;
  }
  
  .hero__subtitle {
    font-size: 1rem;
  }
}

/* Game Specific Styles */
.game-container {
  background: linear-gradient(135deg, rgba(15, 10, 35, 0.9) 0%, rgba(26, 19, 51, 0.9) 100%);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-glow);
  overflow: hidden;
  margin: var(--spacing-xl) 0;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.game-frame {
  width: 100%;
  aspect-ratio: 16/9;
  border: none;
}

/* Utility Classes */
.text-center { text-align: center; }
.mt-1 { margin-top: var(--spacing-sm); }
.mt-2 { margin-top: var(--spacing-md); }
.mt-3 { margin-top: var(--spacing-lg); }
.mt-4 { margin-top: var(--spacing-xl); }
.mb-1 { margin-bottom: var(--spacing-sm); }
.mb-2 { margin-bottom: var(--spacing-md); }
.mb-3 { margin-bottom: var(--spacing-lg); }
.mb-4 { margin-bottom: var(--spacing-xl); }
.pt-1 { padding-top: var(--spacing-sm); }
.pt-2 { padding-top: var(--spacing-md); }
.pt-3 { padding-top: var(--spacing-lg); }
.pt-4 { padding-top: var(--spacing-xl); }
.pb-1 { padding-bottom: var(--spacing-sm); }
.pb-2 { padding-bottom: var(--spacing-md); }
.pb-3 { padding-bottom: var(--spacing-lg); }
.pb-4 { padding-bottom: var(--spacing-xl); }

/* Modal wrapper - hidden by default */
.modal-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  background-color: rgba(0, 0, 0, 0.8);
  padding: var(--spacing-xl);
  overflow-y: auto;
  display: grid;
  place-items: center;
  transition: opacity 0.2s ease-out, visibility 0.2s ease-out;
}

.modal-wrapper.active {
  opacity: 1;
  visibility: visible;
}

.modal-wrapper .modal {
  z-index: 1002;
  opacity: 0;
  visibility: hidden;
  max-width: 580px;
  min-width: 300px;
  width: 100%;
  background: linear-gradient(135deg, rgba(15, 10, 35, 0.98) 0%, rgba(26, 19, 51, 0.98) 100%);
  border: 1px solid rgba(139, 92, 246, 0.4);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  grid-row: 1;
  grid-column: 1;
  transition: opacity 0.2s ease-out, visibility 0.2s ease-out;
  box-shadow: var(--shadow-glow);
}

.modal-wrapper .modal.active {
  opacity: 1;
  visibility: visible;
}

.modal .title {
  margin-bottom: var(--spacing-lg);
  color: var(--color-text);
}

.modal .input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(139, 92, 246, 0.4);
  border-radius: var(--radius-md);
  font-size: 1rem;
  margin-bottom: var(--spacing-md);
  box-sizing: border-box;
  background: rgba(15, 10, 35, 0.8);
  color: var(--color-text);
  transition: all var(--transition-fast);
}

.modal .input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.3);
}

.modal .password-wrapper {
  position: relative;
  margin-bottom: var(--spacing-md);
}

.modal .password-wrapper .input {
  margin-bottom: 0;
  padding-right: 3rem;
}

.modal .password-wrapper .button_password {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
}

.modal .footer-wrapper {
  margin-top: var(--spacing-lg);
  text-align: center;
}

.modal .footer-wrapper a {
  margin-left: var(--spacing-xs);
}

/* Cookie banner - hidden by default */
.cookie__wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  background-color: rgba(0, 0, 0, 0.8);
  padding: var(--spacing-xl);
  overflow-y: auto;
  display: grid;
  place-items: center;
  transition: opacity 0.2s ease-out, visibility 0.2s ease-out;
}

.cookie__wrapper.active {
  opacity: 1;
  visibility: visible;
}

.cookie__wrapper .cookie-banner {
  z-index: 1002;
  opacity: 0;
  visibility: hidden;
  max-width: 580px;
  min-width: 300px;
  width: 100%;
  padding: var(--spacing-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-md);
  background: linear-gradient(135deg, rgba(15, 10, 35, 0.98) 0%, rgba(26, 19, 51, 0.98) 100%);
  border: 1px solid rgba(139, 92, 246, 0.4);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: opacity 0.2s ease-out, visibility 0.2s ease-out;
  box-shadow: var(--shadow-glow);
}

.cookie__wrapper .cookie-banner.active {
  opacity: 1;
  visibility: visible;
}

.cookie-banner__icon {
  width: 80px;
  margin-bottom: var(--spacing-sm);
}

.cookie-banner__title {
  margin-bottom: var(--spacing-sm);
}

.cookie-banner__text {
  margin-bottom: var(--spacing-md);
}

/* Prefooter spacer */
.prefooter {
  height: var(--spacing-xl);
}

/* Disclaimer section */
h2.disclaimer.section {
  background: linear-gradient(90deg, rgba(139, 92, 246, 0.3) 0%, rgba(244, 114, 182, 0.3) 50%, rgba(6, 182, 212, 0.3) 100%);
  border-top: 1px solid rgba(139, 92, 246, 0.3);
  border-bottom: 1px solid rgba(6, 182, 212, 0.3);
  color: var(--color-text);
  padding: var(--spacing-lg);
  text-align: center;
  font-size: 1rem;
  font-weight: 500;
  margin: 0;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

h2.disclaimer.section small {
  opacity: 0.9;
}

/* Footer top section */
.footer .top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--spacing-lg);
  padding: 0 var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

.footer .buttons {
  display: flex;
  gap: var(--spacing-sm);
}

.footer .button_transparent {
  background: transparent;
  border: 1px solid white;
}

.footer .bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: var(--spacing-md) var(--spacing-lg);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--spacing-md);
  font-size: 0.875rem;
  opacity: 0.8;
}

@media (max-width: 768px) {
  .footer .top,
  .footer .bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* Game preview cards - Cosmic Style */
.game-preview-card {
  background: linear-gradient(135deg, rgba(15, 10, 35, 0.9) 0%, rgba(26, 19, 51, 0.9) 100%);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  position: relative;
}

.game-preview-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(6, 182, 212, 0.1) 100%);
  opacity: 0;
  transition: opacity var(--transition-normal);
  pointer-events: none;
}

.game-preview-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-glow);
  border-color: rgba(139, 92, 246, 0.6);
}

.game-preview-card:hover::before {
  opacity: 1;
}

.game-preview-card__image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.4) 0%, rgba(6, 182, 212, 0.4) 50%, rgba(244, 114, 182, 0.3) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  position: relative;
  overflow: hidden;
}

.game-preview-card__image::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { transform: translate(-30%, -30%); }
  50% { transform: translate(30%, 30%); }
}

.game-preview-card__content {
  padding: var(--spacing-lg);
  position: relative;
  z-index: 1;
}

.game-preview-card__title {
  margin-bottom: var(--spacing-sm);
  color: var(--color-accent);
  text-shadow: 0 0 20px rgba(34, 211, 238, 0.3);
}

.game-preview-card__description {
  color: var(--color-text-light);
  margin-bottom: var(--spacing-md);
}

/* Cosmic glow effect for content boxes */
.cosmic-box {
  background: linear-gradient(135deg, rgba(15, 10, 35, 0.9) 0%, rgba(26, 19, 51, 0.9) 100%);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Cosmic info boxes */
div[style*="background: #e6f7ff"],
div[style*="background-color: #e6f7ff"],
div[style*="background: #f0e6ff"],
div[style*="background-color: #f0e6ff"] {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(6, 182, 212, 0.2) 100%) !important;
  border: 1px solid rgba(139, 92, 246, 0.3) !important;
  border-left: 4px solid var(--color-primary) !important;
}

/* Cosmic surface for content areas */
div[style*="background: var(--color-surface)"],
div[style*="background-color: var(--color-surface)"] {
  background: linear-gradient(135deg, rgba(15, 10, 35, 0.9) 0%, rgba(26, 19, 51, 0.9) 100%) !important;
  border: 1px solid rgba(139, 92, 246, 0.2) !important;
}
