:root {
  --primary: #4F46E5;
  --primary-hover: #4338CA;
  --secondary: #10B981;
  --secondary-hover: #059669;
  --bg-color: #F9FAFB;
  --surface: #FFFFFF;
  --text-main: #111827;
  --text-muted: #6B7280;
  --border: #E5E7EB;
  --warning-bg: #FEF2F2;
  --warning-text: #991B1B;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
  --transition-fast: 0.2s ease;
  --transition-smooth: 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Disclaimer Banner */
.disclaimer-banner {
  background-color: var(--warning-bg);
  color: var(--warning-text);
  text-align: center;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-bottom: 1px solid #FECACA;
}

/* Navigation */
.navbar {
  background-color: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.nav-brand {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  transition: color var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
}

.nav-balance {
  background-color: #F3F4F6;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-main);
}

.balance-icon {
  font-size: 1.1rem;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text-main);
  margin-bottom: 5px;
  transition: transform var(--transition-fast);
}

/* Main Content area */
.content-wrapper {
  flex: 1;
  padding: 3rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

/* Sections */
.page-section {
  display: none;
  animation: fadeIn var(--transition-smooth);
}

.page-section.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Buttons */
.cta-button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
  font-size: 1rem;
}

.cta-button.primary {
  background-color: var(--primary);
  color: white;
}

.cta-button.primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.secondary-btn {
  background-color: var(--secondary);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.secondary-btn:hover {
  background-color: var(--secondary-hover);
}

/* Hero Section */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
  margin-bottom: 5rem;
}

.hero-content {
  flex: 1;
}

.pill-badge {
  display: inline-block;
  background-color: #E0E7FF;
  color: var(--primary);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: 3rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: var(--text-main);
  letter-spacing: -0.025em;
}

.hero-subtext {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
}

.abstract-shape {
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, var(--primary), #818CF8);
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.abstract-shape::after {
  content: "🎮";
  font-size: 5rem;
  position: absolute;
}

/* Features grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

.feature-card {
  background-color: var(--surface);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  transition: transform var(--transition-smooth);
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* General Layouts */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2.25rem;
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* Game Section */
.game-container {
  display: flex;
  justify-content: center;
  margin-bottom: 3rem;
}

.game-card {
  background-color: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 2.5rem;
  width: 100%;
  max-width: 500px;
  border: 1px solid var(--border);
  text-align: center;
}

.game-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.game-cost {
  background-color: #FEE2E2;
  color: #991B1B;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.875rem;
}

.game-board {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

.slot-machine {
  display: flex;
  gap: 1rem;
  background-color: #F3F4F6;
  padding: 1.5rem;
  border-radius: var(--radius-md);
  border: 4px solid var(--border);
}

.slot {
  width: 80px;
  height: 100px;
  background-color: white;
  border-radius: var(--radius-md);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 3rem;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
  border: 2px solid var(--border);
  overflow: hidden;
  position: relative;
}

.spinning {
  animation: spinBlur 0.1s linear infinite;
}

@keyframes spinBlur {
  0% { transform: translateY(-5px); filter: blur(2px); }
  50% { transform: translateY(5px); filter: blur(2px); }
  100% { transform: translateY(-5px); filter: blur(2px); }
}

.game-msg {
  margin-top: 1.5rem;
  font-weight: 500;
  height: 1.5rem;
  color: var(--text-muted);
}

.daily-bonus {
  text-align: center;
  background-color: #ECFDF5;
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px dashed var(--secondary);
  max-width: 600px;
  margin: 0 auto;
}

.daily-bonus h3 {
  color: var(--secondary-hover);
  margin-bottom: 0.5rem;
}

.daily-bonus p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* Text pages (About, Terms) */
.text-content-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

.text-content-wrapper h2 {
  font-size: 2.25rem;
  margin-bottom: 2rem;
  text-align: center;
}

.text-card {
  background-color: var(--surface);
  padding: 3rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.text-card h3 {
  color: var(--primary);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.text-card h3:first-child {
  margin-top: 0;
}

.text-card p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.terms-card h4 {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

/* Footer */
footer {
  background-color: white;
  border-top: 1px solid var(--border);
  padding: 2rem;
  text-align: center;
  margin-top: auto;
}

.footer-content {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.footer-disclaimer {
  margin-top: 0.5rem;
  font-weight: 500;
  color: var(--text-main);
}

/* Responsive */
@media (max-width: 900px) {
  .hero {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .hero h1 {
    font-size: 2.25rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--surface);
    padding: 1rem;
    box-shadow: var(--shadow-md);
    border-top: 1px solid var(--border);
    gap: 1rem;
  }
  
  .nav-links.show {
    display: flex;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .nav-balance {
    margin-right: 1rem;
  }
  
  .slot {
    width: 60px;
    height: 80px;
    font-size: 2rem;
  }
  
  .content-wrapper {
    padding: 2rem 1rem;
  }
  
  .text-card {
    padding: 1.5rem;
  }
}
