:root {
  --primary-red: #dc2626;
  --primary-blue: #1e40af;
  --gold: #fbbf24;
  --white: #ffffff;
  --light-gray: #f8fafc;
  --dark-gray: #374151;
  --text-dark: #111827;
  --border-color: #e5e7eb;
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--white);
}

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

/* Header */
.header {
  background: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.logo h1 {
  color: var(--primary-red);
  font-weight: 700;
  font-size: 1.5rem;
}

.logo span {
  color: var(--primary-blue);
}

.nav {
  display: flex;
  gap: 2rem;
}

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

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

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-blue) 100%);
  color: var(--white);
  padding: 4rem 0;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-text h2 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.current-jackpot {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 1.5rem;
  border-radius: 12px;
  margin-bottom: 2rem;
  text-align: center;
}

.jackpot-label {
  display: block;
  font-size: 0.9rem;
  opacity: 0.8;
}

.jackpot-amount {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold);
}

.cta-button {
  background: var(--gold);
  color: var(--text-dark);
  border: none;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  background: #fcd34d;
}

.disclaimer {
  margin-top: 1rem;
  font-size: 0.9rem;
  opacity: 0.8;
}

.hero-image img {
  width: 100%;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
}

/* Trust Section */
.trust-section {
  background: var(--light-gray);
  padding: 3rem 0;
}

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

.trust-item {
  background: var(--white);
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}

.trust-item:hover {
  transform: translateY(-4px);
}

.trust-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.trust-item h3 {
  color: var(--primary-blue);
  margin-bottom: 0.5rem;
}

/* How to Play */
.how-to-play {
  padding: 4rem 0;
}

.how-to-play h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: var(--primary-blue);
}

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

.step {
  text-align: center;
  padding: 2rem;
}

.step-number {
  background: var(--primary-red);
  color: var(--white);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 1rem;
}

.step h3 {
  color: var(--primary-blue);
  margin-bottom: 1rem;
}

/* Results Section */
.results {
  background: var(--light-gray);
  padding: 4rem 0;
}

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

.results-card {
  background: var(--white);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  max-width: 800px;
  margin: 0 auto;
}

.draw-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--border-color);
}

.draw-date {
  font-weight: 600;
  color: var(--primary-blue);
}

.draw-jackpot {
  font-weight: 600;
  color: var(--primary-red);
}

.winning-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

.main-numbers {
  display: flex;
  gap: 0.5rem;
}

.number {
  background: var(--primary-blue);
  color: var(--white);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
}

.powerball {
  background: var(--primary-red);
  color: var(--white);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.3rem;
}

.prize-breakdown h3 {
  color: var(--primary-blue);
  margin-bottom: 1rem;
}

.prize-tier {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-color);
}

/* Responsible Gaming */
.responsible-gaming {
  padding: 4rem 0;
}

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

.responsible-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  max-width: 1000px;
  margin: 0 auto;
}

.responsible-text ul {
  margin-left: 1.5rem;
  margin-top: 1rem;
}

.help-resources {
  background: var(--light-gray);
  padding: 2rem;
  border-radius: 12px;
}

.help-resources h3 {
  color: var(--primary-red);
  margin-bottom: 1rem;
}

.responsible-link {
  color: var(--primary-blue);
  text-decoration: none;
  font-weight: 600;
}

.responsible-link:hover {
  text-decoration: underline;
}

/* Footer */
.footer {
  background: var(--dark-gray);
  color: var(--white);
  padding: 3rem 0 1rem;
}

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

.footer-section h3 {
  color: var(--gold);
  margin-bottom: 1rem;
}

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

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

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

.footer-section a:hover {
  opacity: 1;
}

.licenses {
  margin-top: 1rem;
}

.licenses span {
  display: block;
  font-size: 0.9rem;
  opacity: 0.8;
}

.security-badges {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.badge {
  background: var(--primary-blue);
  padding: 0.5rem;
  border-radius: 6px;
  font-size: 0.9rem;
  text-align: center;
}

.footer-bottom {
  border-top: 1px solid #4b5563;
  padding-top: 2rem;
  text-align: center;
  opacity: 0.8;
  font-size: 0.9rem;
}

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--white);
  border-radius: 12px;
  padding: 2rem;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(-20px);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.modal-content.large {
  max-width: 800px;
}

.close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--dark-gray);
}

.age-buttons,
.cookie-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.btn-primary {
  background: var(--primary-blue);
  color: var(--white);
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: #1e3a8a;
}

.btn-secondary {
  background: var(--border-color);
  color: var(--text-dark);
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: #d1d5db;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  border-top: 3px solid var(--primary-blue);
  padding: 1rem;
  box-shadow: var(--shadow-lg);
  z-index: 999;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.cookie-banner.active {
  transform: translateY(0);
}

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

/* Verification Form */
.verification-form {
  margin-top: 2rem;
}

.form-section {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
}

.form-section:last-child {
  border-bottom: none;
}

.form-section h3 {
  color: var(--primary-blue);
  margin-bottom: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-dark);
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid var(--border-color);
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-blue);
}

.checkboxes {
  margin-top: 2rem;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
  cursor: pointer;
  font-size: 0.9rem;
}

.checkbox-label input[type="checkbox"] {
  margin-right: 0.5rem;
  margin-top: 0.1rem;
}

.checkbox-label a {
  color: var(--primary-blue);
  text-decoration: none;
}

.checkbox-label a:hover {
  text-decoration: underline;
}

.submit-btn {
  width: 100%;
  padding: 1rem;
  font-size: 1.1rem;
  margin-top: 2rem;
}

.legal-content {
  line-height: 1.8;
}

.legal-content h3 {
  color: var(--primary-blue);
  margin: 2rem 0 1rem;
}

.legal-content ul {
  margin-left: 1.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-text h2 {
    font-size: 2rem;
  }

  .nav {
    display: none;
  }

  .trust-grid,
  .steps-grid {
    grid-template-columns: 1fr;
  }

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

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

  .form-row {
    grid-template-columns: 1fr;
  }

  .cookie-content {
    flex-direction: column;
    text-align: center;
  }

  .age-buttons,
  .cookie-buttons {
    justify-content: center;
  }

  .winning-numbers {
    flex-direction: column;
    gap: 1rem;
  }

  .draw-info {
    flex-direction: column;
    gap: 0.5rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 0.5rem;
  }

  .modal-content {
    padding: 1rem;
    width: 95%;
  }

  .hero {
    padding: 2rem 0;
  }

  .hero-text h2 {
    font-size: 1.75rem;
  }

  .main-numbers {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* Performance Optimizations */
img {
  max-width: 100%;
  height: auto;
}

.hero-image img {
  aspect-ratio: 4/3;
  object-fit: cover;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

button:focus,
input:focus,
select:focus {
  outline: 2px solid var(--primary-blue);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --primary-red: #b91c1c;
    --primary-blue: #1d4ed8;
    --text-dark: #000000;
  }
}