@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;800&display=swap');

:root {
  --bg-color: #0a0a0f;
  --text-primary: #ffffff;
  --text-secondary: #a0a0b0;
  --accent-1: #ff2a5f;
  --accent-2: #00f0ff;
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.05);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  cursor: none; /* We use a custom cursor */
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-primary);
  overflow-x: hidden;
  smooth-scroll: true;
}

/* Custom Cursor */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 9999;
  transition: width 0.3s ease, height 0.3s ease, background-color 0.3s ease;
  mix-blend-mode: difference;
}

.cursor.hovered {
  width: 60px;
  height: 60px;
  background: var(--accent-2);
  mix-blend-mode: screen;
  opacity: 0.5;
}

.cursor.clicking {
  width: 40px;
  height: 40px;
  background: var(--accent-1);
}

/* Background Gradients */
.glow-blob {
  position: fixed;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--accent-1) 0%, transparent 70%);
  border-radius: 50%;
  opacity: 0.15;
  filter: blur(80px);
  z-index: -1;
  pointer-events: none;
  transition: transform 0.1s linear;
}

.glow-blob:nth-child(2) {
  background: radial-gradient(circle, var(--accent-2) 0%, transparent 70%);
  top: auto;
  bottom: -100px;
  right: -100px;
  left: auto;
}

/* Layout */
section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 4rem;
  position: relative;
}

/* Hero Section */
.hero {
  text-align: center;
}

.hero h1 {
  font-size: 5rem;
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1.1;
  margin-bottom: 1rem;
  background: linear-gradient(90deg, #fff, var(--text-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transform-style: preserve-3d;
}

.hero p {
  font-size: 1.5rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 3rem;
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0.7;
  animation: bounce 2s infinite ease-in-out;
}

.scroll-indicator .mouse {
  width: 24px;
  height: 36px;
  border: 2px solid white;
  border-radius: 12px;
  position: relative;
}

.scroll-indicator .wheel {
  width: 4px;
  height: 8px;
  background: white;
  border-radius: 2px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollWheel 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 10px); }
}

@keyframes scrollWheel {
  0% { top: 6px; opacity: 1; }
  50% { top: 16px; opacity: 0; }
  100% { top: 6px; opacity: 0; }
}

/* Interactive Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  width: 100%;
  max-width: 1200px;
  perspective: 1000px;
}

.card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 2rem;
  transition: transform 0.1s ease, box-shadow 0.3s ease;
  transform-style: preserve-3d;
  position: relative;
  overflow: hidden;
}

.card:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 40px rgba(0, 240, 255, 0.1);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transition: left 0.5s ease;
  transform: skewX(-20deg);
}

.card:hover::before {
  left: 150%;
}

.card h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  transform: translateZ(30px);
}

.card p {
  color: var(--text-secondary);
  line-height: 1.6;
  transform: translateZ(20px);
}

.card-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  display: inline-block;
  transform: translateZ(40px);
}

/* Scroll Revelations */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  background: linear-gradient(45deg, var(--accent-1), var(--accent-2));
  border: none;
  border-radius: 30px;
  color: white;
  font-weight: 600;
  font-size: 1.1rem;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 20px rgba(255, 42, 95, 0.3);
}

.btn:active {
  transform: scale(0.95);
}

/* Selection */
::selection {
  background: var(--accent-2);
  color: black;
}

/* Timeline Grid */
.timeline-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  width: 100%;
  max-width: 1200px;
  perspective: 1000px;
}

.timeline-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 2rem;
  transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  transform-style: preserve-3d;
  position: relative;
  text-align: left;
}

.timeline-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--accent-2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 20px rgba(0, 240, 255, 0.1);
}

.day-badge {
  display: inline-block;
  background: linear-gradient(45deg, var(--accent-1), var(--accent-2));
  padding: 0.4rem 1rem;
  border-radius: 20px;
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  transform: translateZ(40px);
}

.timeline-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.8rem;
  transform: translateZ(30px);
}

.timeline-card p {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 1rem;
  transform: translateZ(20px);
}

/* Minigame Overlays */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--bg-color);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  opacity: 1;
  transition: opacity 0.5s ease;
  overflow-y: auto;
  padding: 2rem;
}

.overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.game-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.game-container h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--accent-2);
}

.game-container p {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 1rem;
}

.button-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 4px;
  width: 95vw;
  max-width: 65vh;
  margin: 0 auto;
}

.mini-btn {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 4px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: white;
  font-weight: bold;
  font-size: 0.8rem;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: transform 0.1s ease, background 0.2s ease, opacity 0.3s ease;
}

.mini-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.1);
}

.mini-btn.wrong {
  background: var(--accent-1);
  opacity: 0;
  pointer-events: none;
  transform: scale(0.8);
}

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

.success-content h1 {
  font-size: 5rem;
  color: var(--accent-2);
  margin-bottom: 1rem;
  text-shadow: 0 0 20px rgba(0, 240, 255, 0.5);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* Jackpot Game Styles */
.jackpot-stats {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin-bottom: 3rem;
}

.stat-box {
  background: var(--glass-bg);
  border: 1px solid var(--accent-2);
  padding: 1.5rem 2rem;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 200px;
}

.stat-label {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.stat-value {
  font-size: 2.5rem;
  font-weight: bold;
  color: #fff;
  text-shadow: 0 0 10px var(--accent-2);
}

.slot-machine {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-bottom: 3rem;
  padding: 2rem;
  background: #111;
  border: 4px solid #333;
  border-radius: 20px;
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.8), 0 10px 30px rgba(0, 0, 0, 0.5);
  position: relative;
}

.slot-machine::before {
  content: '';
  position: absolute;
  top: -10px; left: -10px; right: -10px; bottom: -10px;
  background: linear-gradient(45deg, var(--accent-1), var(--accent-2), var(--accent-1));
  z-index: -1;
  border-radius: 25px;
  animation: bg-shift 3s infinite linear;
}

@keyframes bg-shift {
  0% { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(360deg); }
}

.slot-reel {
  width: 100px;
  height: 120px;
  background: white;
  border-radius: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 4rem;
  box-shadow: inset 0 10px 20px rgba(0,0,0,0.5);
  border: 2px solid #ccc;
  overflow: hidden;
  position: relative;
}

.slot-reel.spinning {
  animation: slot-spin 0.1s infinite linear;
}

@keyframes slot-spin {
  0% { transform: translateY(-10px); filter: blur(2px); }
  50% { transform: translateY(10px); filter: blur(2px); }
  100% { transform: translateY(-10px); filter: blur(2px); }
}

.jackpot-actions {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.draw-btn {
  background: linear-gradient(45deg, #ff9a9e 0%, #fecfef 99%, #fecfef 100%);
  color: #333;
  padding: 1.5rem 3rem;
  font-size: 1.5rem;
  box-shadow: 0 0 20px rgba(255, 154, 158, 0.4);
}

.draw-btn:hover {
  box-shadow: 0 0 30px rgba(255, 154, 158, 0.8);
}

.upgrade-btn {
  background: linear-gradient(45deg, #a18cd1 0%, #fbc2eb 100%);
  color: #333;
  padding: 1.5rem 3rem;
  font-size: 1.5rem;
  box-shadow: 0 0 20px rgba(161, 140, 209, 0.4);
}

.upgrade-btn:disabled {
  background: #555;
  color: #888;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.jackpot-msg {
  color: var(--accent-1);
  font-size: 1.2rem;
  height: 2rem;
  animation: bounce 1s infinite alternate;
}

