/* ===== CSS VARIABLES ===== */
:root {
  --yellow:  #FFD700;
  --yellow-dark: #E6A800;
  --blue:    #2B8FFF;
  --blue-dark: #1A6FCC;
  --green:   #22C55E;
  --green-dark: #15803D;
  --red:     #EF4444;
  --red-dark: #B91C1C;
  --purple:  #A855F7;
  --purple-dark: #7E22CE;
  --orange:  #F97316;
  --orange-dark: #C2410C;
  --bg-dark:  #0A0B1E;
  --bg-card:  #12142E;
  --bg-card2: #1A1D40;
  --text:     #F0F0FF;
  --text-muted: #8B8DB8;
  --border:   rgba(255,255,255,0.08);
  --glow-yellow: 0 0 30px rgba(255,215,0,0.5);
  --glow-blue:   0 0 30px rgba(43,143,255,0.5);
  --glow-green:  0 0 30px rgba(34,197,94,0.5);
  --radius: 16px;
  --radius-lg: 24px;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', sans-serif;
  background: var(--bg-dark);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }

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

/* ===== PARTICLES ===== */
.particles {
  position: fixed;
  top: 45vh;
  bottom: 0;
  left: 0;
  right: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  border-radius: 4px;
  opacity: 0;
  animation: floatUp linear infinite;
}

@keyframes floatUp {
  0%   { transform: translateY(100vh) rotate(0deg); opacity: 0; }
  10%  { opacity: 0.5; }
  90%  { opacity: 0.3; }
  100% { transform: translateY(-20px) rotate(720deg); opacity: 0; }
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: background 0.3s, backdrop-filter 0.3s, box-shadow 0.3s;
}

.navbar.scrolled {
  background: rgba(10, 11, 30, 0.9);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--border);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-logo {
  font-family: 'Fredoka One', cursive;
  font-size: 1.8rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
}

.hero-icon {
  width: 100px;
  height: 100px;
  border-radius: 22px;
  object-fit: cover;
  margin-bottom: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4), 0 0 0 3px rgba(255,215,0,0.2);
  animation: fadeInUp 0.6s 0.05s ease both;
}

.logo-drag  { color: #fff; }
.logo-block { color: var(--yellow); }
.logo-bang  { color: var(--orange); }

.nav-links {
  display: flex;
  gap: 28px;
  margin-left: auto;
}

.nav-links a {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: color 0.2s;
  letter-spacing: 0.02em;
}

.nav-links a:hover { color: var(--text); }

.btn-nav {
  background: var(--yellow);
  color: #1a1a00;
  font-weight: 800;
  font-size: 0.9rem;
  padding: 10px 22px;
  border-radius: 50px;
  white-space: nowrap;
  transition: transform 0.2s, box-shadow 0.2s;
  flex-shrink: 0;
}

.btn-nav:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow-yellow);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: 0.3s;
}

/* ===== MOBILE NAV OVERLAY ===== */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10,11,30,0.98);
  backdrop-filter: blur(20px);
  z-index: 9999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}
.mobile-nav-overlay.open {
  display: flex;
}
.mobile-nav-overlay a {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-muted);
  transition: color 0.2s;
  text-decoration: none;
}
.mobile-nav-overlay a:hover { color: var(--text); }
.mobile-nav-overlay .btn { font-size: 1rem; margin-top: 8px; }
.mobile-nav-close {
  position: absolute;
  top: 24px;
  right: 28px;
  background: none;
  border: none;
  color: var(--text);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
}

/* ===== SECTION LABELS & TITLES ===== */
.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--yellow);
  background: rgba(255,215,0,0.12);
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 16px;
}

.section-label.light { color: #fff; background: rgba(255,255,255,0.15); }

.section-title {
  font-family: 'Fredoka One', cursive;
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.15;
  margin-bottom: 48px;
  color: var(--text);
}

.highlight {
  background: linear-gradient(135deg, var(--yellow), var(--orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: 50px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  border: none;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-3px); }

.btn-primary {
  background: linear-gradient(135deg, var(--yellow), var(--orange));
  color: #1a0d00;
  box-shadow: 0 4px 20px rgba(255,215,0,0.35);
}
.btn-primary:hover { box-shadow: 0 8px 32px rgba(255,215,0,0.5); }

.btn-secondary {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border: 2px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(10px);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.4);
}

.btn-play-now {
  background: linear-gradient(135deg, var(--green), #16a34a);
  color: #fff;
  font-size: 1.1rem;
  padding: 16px 36px;
  box-shadow: 0 4px 24px rgba(34,197,94,0.4);
}
.btn-play-now:hover { box-shadow: 0 8px 40px rgba(34,197,94,0.6); }

/* ===== HERO ===== */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 24px 80px;
  overflow: hidden;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-bg-blocks {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero-bg-block {
  position: absolute;
  border-radius: 8px;
  opacity: 0.05;
  animation: pulse 3s ease-in-out infinite alternate;
}

@keyframes pulse {
  from { opacity: 0.04; transform: scale(1); }
  to   { opacity: 0.10; transform: scale(1.05); }
}

.hero-content {
  position: relative;
  z-index: 1;
  flex: 1;
  max-width: 560px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,215,0,0.12);
  border: 1px solid rgba(255,215,0,0.3);
  color: var(--yellow);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 50px;
  margin-bottom: 24px;
  animation: fadeInUp 0.6s ease both;
}

.hero-title {
  font-family: 'Fredoka One', cursive;
  font-size: clamp(4rem, 8vw, 7rem);
  line-height: 1;
  margin-bottom: 16px;
  animation: fadeInUp 0.6s 0.1s ease both;
}

.title-drag  { color: #fff; }
.title-block { color: var(--yellow); text-shadow: 0 0 40px rgba(255,215,0,0.6); }
.title-bang  { color: var(--orange); }

.hero-tagline {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  font-weight: 800;
  color: var(--text-muted);
  margin-bottom: 20px;
  animation: fadeInUp 0.6s 0.2s ease both;
}

.hero-tagline em {
  font-style: normal;
  color: var(--green);
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 480px;
  line-height: 1.7;
  animation: fadeInUp 0.6s 0.3s ease both;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
  animation: fadeInUp 0.6s 0.4s ease both;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  animation: fadeInUp 0.6s 0.5s ease both;
}

.stat { text-align: center; }
.stat-num {
  display: block;
  font-family: 'Fredoka One', cursive;
  font-size: 1.6rem;
  color: var(--yellow);
}
.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.05em;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* ===== HERO VISUAL ===== */
.hero-visual {
  position: relative;
  flex-shrink: 0;
  z-index: 1;
  animation: fadeInRight 0.8s 0.3s ease both;
}

.hero-mascots {
  position: absolute;
  bottom: 110px;
  left: 36%;
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  gap: 10px;
  z-index: 2;
  pointer-events: none;
}

.hero-mascot-img {
  width: 120px;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.5));
  border-radius: 14px;
}


.phone-frame {
  position: relative;
  width: 280px;
  height: 560px;
  background: linear-gradient(145deg, #1e2145, #0d0f28);
  border-radius: 40px;
  border: 2px solid rgba(255,255,255,0.12);
  box-shadow:
    0 0 0 8px rgba(0,0,0,0.3),
    0 40px 80px rgba(0,0,0,0.6),
    inset 0 1px 0 rgba(255,255,255,0.1);
  overflow: hidden;
}

.phone-screen {
  position: absolute;
  inset: 12px;
  border-radius: 28px;
  background: #0a0b1e;
  overflow: hidden;
}

.phone-glow {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 80px;
  background: radial-gradient(ellipse, rgba(255,215,0,0.3), transparent 70%);
  filter: blur(10px);
}

.game-preview {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 16px;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 3px;
  width: 100%;
}

.grid-cell {
  aspect-ratio: 1;
  border-radius: 4px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.04);
  transition: background 0.3s;
}

.grid-cell.filled { border: none; }
.grid-cell.c-yellow { background: var(--yellow); box-shadow: 0 2px 6px rgba(255,215,0,0.4); }
.grid-cell.c-blue   { background: var(--blue);   box-shadow: 0 2px 6px rgba(43,143,255,0.4); }
.grid-cell.c-green  { background: var(--green);  box-shadow: 0 2px 6px rgba(34,197,94,0.4); }
.grid-cell.c-red    { background: var(--red);    box-shadow: 0 2px 6px rgba(239,68,68,0.4); }
.grid-cell.c-purple { background: var(--purple); box-shadow: 0 2px 6px rgba(168,85,247,0.4); }
.grid-cell.c-orange { background: var(--orange); box-shadow: 0 2px 6px rgba(249,115,22,0.4); }

.piece-tray {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.tray-piece {
  display: grid;
  gap: 2px;
}

.tray-cell {
  width: 14px;
  height: 14px;
  border-radius: 3px;
}

/* Floating blocks around phone */
.floating-block {
  position: absolute;
  font-size: 2.5rem;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4));
  animation: floatAround 4s ease-in-out infinite;
  pointer-events: none;
}

.fb-1 { top: -20px;  left: -40px;  animation-delay: 0s;    animation-duration: 3.5s; }
.fb-2 { top: 40px;   right: -50px; animation-delay: 0.5s;  animation-duration: 4s; }
.fb-3 { top: 160px;  right: -55px; animation-delay: 1s;    animation-duration: 3.8s; }
.fb-4 { bottom: 100px; right: -45px; animation-delay: 1.5s;  animation-duration: 4.2s; }
.fb-5 { bottom: 40px;  left: -30px; animation-delay: 0.8s;  animation-duration: 3.6s; }
.fb-6 { top: 280px;  right: -55px; animation-delay: 0.3s;  animation-duration: 4.5s; }

@keyframes floatAround {
  0%,100% { transform: translateY(0) rotate(-5deg); }
  50%      { transform: translateY(-16px) rotate(5deg); }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ===== PLAY SECTION ===== */
.play-section {
  position: relative;
  z-index: 1;
  padding: 100px 0;
  text-align: center;
  background: linear-gradient(180deg, transparent, rgba(43,143,255,0.04), transparent);
}

.embed-frame {
  position: relative;
  max-width: 420px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid rgba(255,255,255,0.08);
  background: var(--bg-card);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  cursor: pointer;
}

.embed-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: rgba(10,11,30,0.85);
  backdrop-filter: blur(4px);
  z-index: 10;
  transition: opacity 0.3s;
  padding: 40px;
}

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

.embed-icon {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, var(--green), #16a34a);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 40px rgba(34,197,94,0.4);
  animation: pulsePing 2s ease-in-out infinite;
}

@keyframes pulsePing {
  0%,100% { box-shadow: 0 0 20px rgba(34,197,94,0.3); transform: scale(1); }
  50%      { box-shadow: 0 0 50px rgba(34,197,94,0.6); transform: scale(1.05); }
}

.embed-overlay p {
  font-size: 1rem;
  color: var(--text-muted);
}

#gameCanvas {
  display: block;
  width: 100%;
  height: auto;
}

/* ===== FEATURES ===== */
.features {
  position: relative;
  z-index: 1;
  padding: 100px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 20px;
}

.feature-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: transform 0.3s, box-shadow 0.3s;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.card-blue::before   { background: var(--blue); }
.card-yellow::before { background: var(--yellow); }
.card-red::before    { background: var(--red); }
.card-purple::before { background: var(--purple); }
.card-green::before  { background: var(--green); }
.card-orange::before { background: var(--orange); }

.feature-card--large {
  grid-column: span 1;
}

.feature-card:hover {
  transform: translateY(-6px);
}

.card-blue:hover   { box-shadow: 0 20px 40px rgba(43,143,255,0.15); }
.card-yellow:hover { box-shadow: 0 20px 40px rgba(255,215,0,0.15); }
.card-red:hover    { box-shadow: 0 20px 40px rgba(239,68,68,0.15); }
.card-purple:hover { box-shadow: 0 20px 40px rgba(168,85,247,0.15); }
.card-green:hover  { box-shadow: 0 20px 40px rgba(34,197,94,0.15); }
.card-orange:hover { box-shadow: 0 20px 40px rgba(249,115,22,0.15); }

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-icon svg { width: 26px; height: 26px; }

.card-blue   .feature-icon { background: rgba(43,143,255,0.15);  color: var(--blue); }
.card-yellow .feature-icon { background: rgba(255,215,0,0.15);   color: var(--yellow); }
.card-red    .feature-icon { background: rgba(239,68,68,0.15);   color: var(--red); }
.card-purple .feature-icon { background: rgba(168,85,247,0.15);  color: var(--purple); }
.card-green  .feature-icon { background: rgba(34,197,94,0.15);   color: var(--green); }
.card-orange .feature-icon { background: rgba(249,115,22,0.15);  color: var(--orange); }

.feature-card h3 {
  font-family: 'Fredoka One', cursive;
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.feature-modes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.feature-modes span {
  font-size: 0.8rem;
  font-weight: 800;
  padding: 5px 14px;
  border-radius: 50px;
  background: rgba(255,215,0,0.12);
  color: var(--yellow);
  border: 1px solid rgba(255,215,0,0.25);
}

.feature-skins span {
  background: rgba(168,85,247,0.12);
  color: var(--purple);
  border-color: rgba(168,85,247,0.25);
}

.feature-tag {
  margin-top: 20px;
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  padding: 4px 12px;
  border-radius: 50px;
}

.card-blue   .feature-tag { background: rgba(43,143,255,0.15);  color: var(--blue); }
.card-yellow .feature-tag { background: rgba(255,215,0,0.15);   color: var(--yellow); }
.card-red    .feature-tag { background: rgba(239,68,68,0.15);   color: var(--red); }
.card-purple .feature-tag { background: rgba(168,85,247,0.15);  color: var(--purple); }
.card-green  .feature-tag { background: rgba(34,197,94,0.15);   color: var(--green); }
.card-orange .feature-tag { background: rgba(249,115,22,0.15);  color: var(--orange); }

/* ===== HOW TO PLAY ===== */
.how-to-play {
  position: relative;
  z-index: 1;
  padding: 100px 0;
  background: linear-gradient(180deg, transparent, rgba(168,85,247,0.04), transparent);
}

.steps {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  justify-content: center;
}

.step {
  flex: 1;
  max-width: 300px;
  text-align: center;
}

.step-number {
  font-family: 'Fredoka One', cursive;
  font-size: 4rem;
  line-height: 1;
  color: rgba(255,255,255,0.06);
  margin-bottom: 16px;
}

.step-visual {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.step h3 {
  font-family: 'Fredoka One', cursive;
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: var(--yellow);
}

.step p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.step-arrow {
  flex-shrink: 0;
  color: var(--text-muted);
  opacity: 0.5;
  margin-top: 80px;
}

.step-arrow svg { width: 48px; }

/* Mini grid for step visuals */
.mini-grid, .mg-row { display: flex; flex-direction: column; gap: 3px; }
.mg-row { flex-direction: row; }
.mg-cell {
  width: 24px; height: 24px;
  background: rgba(255,255,255,0.06);
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.05);
}
.mg-cell.filled { background: none !important; border: none; }

.mini-piece { display: flex; flex-direction: column; gap: 3px; }
.mp-row { display: flex; gap: 3px; }
.mp-cell { width: 24px; height: 24px; border-radius: 4px; }
.mp-cell.yellow { background: var(--yellow); box-shadow: 0 2px 8px rgba(255,215,0,0.5); }
.mp-cell.blue   { background: var(--blue);   box-shadow: 0 2px 8px rgba(43,143,255,0.5); }
.mp-cell.green  { background: var(--green);  box-shadow: 0 2px 8px rgba(34,197,94,0.5); }
.mp-cell.empty  { background: transparent; }

.drop-anim { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.drop-piece { display: flex; gap: 3px; }
.drop-arrow-down { font-size: 1.5rem; color: var(--blue); animation: bounce 1s ease-in-out infinite; }
.drop-target { display: flex; gap: 3px; }
.mg-cell.blue { background: var(--blue) !important; border: none; box-shadow: 0 2px 8px rgba(43,143,255,0.5); }

@keyframes bounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

.blast-anim { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.blast-row { display: flex; gap: 3px; }
.blast-cell { width: 28px; height: 28px; border-radius: 5px; }
.blast-cell.green   { background: var(--green); box-shadow: 0 2px 8px rgba(34,197,94,0.5); }
.blast-cell.clearing { animation: blastCell 1.5s ease-in-out infinite; }
.blast-score {
  font-family: 'Fredoka One', cursive;
  font-size: 1.4rem;
  color: var(--yellow);
  animation: scoreFloat 1.5s ease-in-out infinite;
}

@keyframes blastCell {
  0%,100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.3; }
}

@keyframes scoreFloat {
  0%,100% { transform: translateY(0); opacity: 0.8; }
  50% { transform: translateY(-8px); opacity: 1; }
}

/* ===== GAME MODES ===== */
.modes {
  position: relative;
  z-index: 1;
  padding: 100px 0;
}

.modes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.modes-grid--6 {
  grid-template-columns: repeat(3, 1fr);
}

.mode-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  overflow: hidden;
  transition: transform 0.3s, border-color 0.3s;
}

.mode-card:hover { transform: translateY(-8px); }

.mode-glow {
  position: absolute;
  bottom: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 150px;
  height: 150px;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.3;
  transition: opacity 0.3s;
}

.mode-card:hover .mode-glow { opacity: 0.5; }

.mode-free      .mode-glow { background: var(--green); }
.mode-expert    .mode-glow { background: var(--red); }
.mode-adventure .mode-glow { background: var(--blue); }
.mode-bomb      .mode-glow { background: var(--orange); }
.mode-infinite  .mode-glow { background: var(--purple); }
.mode-challenge .mode-glow { background: var(--yellow); }

.mode-free:hover      { border-color: var(--green); }
.mode-expert:hover    { border-color: var(--red); }
.mode-adventure:hover { border-color: var(--blue); }
.mode-bomb:hover      { border-color: var(--orange); }
.mode-infinite:hover  { border-color: var(--purple); }
.mode-challenge:hover { border-color: var(--yellow); }

.mode-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--red);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border-radius: 50px;
}

.mode-adventure .mode-badge { background: var(--blue); }
.mode-bomb      .mode-badge { background: var(--orange); }

.mode-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  display: block;
}

.mode-card h3 {
  font-family: 'Fredoka One', cursive;
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.mode-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.mode-stats {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 24px;
}

.mode-stats span {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 50px;
  background: rgba(255,255,255,0.07);
  color: var(--text-muted);
}

.btn-mode {
  width: 100%;
  justify-content: center;
  padding: 12px 20px;
  font-size: 0.9rem;
  border-radius: 12px;
}

.mode-free      .btn-mode { background: var(--green);  color: #fff; }
.mode-expert    .btn-mode { background: var(--red);    color: #fff; }
.mode-adventure .btn-mode { background: var(--blue);   color: #fff; }
.mode-bomb      .btn-mode { background: var(--orange); color: #fff; }
.mode-infinite  .btn-mode { background: var(--purple); color: #fff; }
.mode-challenge .btn-mode { background: var(--yellow); color: #1a1a00; }

/* ===== REVIEWS ===== */
.reviews {
  position: relative;
  z-index: 1;
  padding: 100px 0;
  background: linear-gradient(180deg, transparent, rgba(34,197,94,0.03), transparent);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 60px;
}

.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform 0.3s, border-color 0.3s;
}

.review-card:hover { transform: translateY(-4px); border-color: rgba(255,255,255,0.15); }

.review-featured {
  background: linear-gradient(135deg, rgba(255,215,0,0.08), rgba(249,115,22,0.08));
  border-color: rgba(255,215,0,0.2);
  grid-row: span 1;
}

.review-mode-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 12px;
}

.review-stars {
  color: var(--yellow);
  font-size: 1.1rem;
  letter-spacing: 2px;
  margin-bottom: 14px;
}

.review-card p {
  font-size: 0.93rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 20px;
  font-style: italic;
}

.reviewer {
  display: flex;
  align-items: center;
  gap: 12px;
}

.reviewer-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  color: #fff;
  flex-shrink: 0;
}

.reviewer strong { display: block; font-size: 0.9rem; }
.reviewer span   { font-size: 0.78rem; color: var(--text-muted); }

.rating-summary {
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  max-width: 500px;
  margin: 0 auto;
}

.big-rating {
  font-family: 'Fredoka One', cursive;
  font-size: 5rem;
  color: var(--yellow);
  line-height: 1;
  text-shadow: var(--glow-yellow);
}

.rating-details { flex: 1; }
.rating-stars { color: var(--yellow); font-size: 1.4rem; letter-spacing: 3px; margin-bottom: 4px; }
.rating-count { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 16px; }

.store-badges { display: flex; gap: 12px; flex-wrap: wrap; }

.store-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.07);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  transition: border-color 0.2s, color 0.2s;
}

.store-badge:hover { border-color: rgba(255,255,255,0.2); color: var(--text); }

/* ===== DOWNLOAD ===== */
.download {
  position: relative;
  z-index: 1;
  padding: 100px 0;
  overflow: hidden;
}

.download-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(43,143,255,0.08), rgba(168,85,247,0.08));
}

.download-content {
  position: relative;
  display: flex;
  align-items: center;
  gap: 80px;
}

.download-text { flex: 1; }

.download-text h2 {
  font-family: 'Fredoka One', cursive;
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 16px;
  line-height: 1.2;
}

.download-text p {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 440px;
  line-height: 1.7;
}

.download-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.store-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  color: #111;
  padding: 14px 24px;
  border-radius: 14px;
  transition: transform 0.2s, box-shadow 0.2s;
  min-width: 180px;
}

.store-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(255,255,255,0.15);
}

.store-btn--large {
  padding: 18px 32px;
  font-size: 1.05rem;
  box-shadow: 0 8px 30px rgba(255,255,255,0.1);
}

.store-btn--large svg { width: 32px; height: 32px; }

.store-sub  { display: block; font-size: 0.72rem; color: #555; line-height: 1; }
.store-name { display: block; font-size: 1.05rem; font-weight: 800; line-height: 1.3; }

.download-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.dl-feat {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.dl-feat span { color: var(--green); font-weight: 800; }

/* Phone Mockup */
.download-visual { flex-shrink: 0; }

.download-mascots {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  gap: 10px;
  flex-shrink: 0;
  align-self: flex-end;
  margin-left: -160px;
}

.dl-mascot-img {
  width: 130px;
  border-radius: 14px;
  filter: drop-shadow(0 10px 30px rgba(0,0,0,0.4));
}

.phone-mockup {
  width: 240px;
  height: 480px;
  background: linear-gradient(145deg, #1e2145, #0d0f28);
  border-radius: 36px;
  border: 2px solid rgba(255,255,255,0.12);
  box-shadow: 0 30px 60px rgba(0,0,0,0.5), 0 0 0 6px rgba(0,0,0,0.2);
  overflow: hidden;
  position: relative;
}

.phone-notch {
  width: 80px;
  height: 20px;
  background: #0a0b1e;
  border-radius: 0 0 14px 14px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.phone-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: calc(100% - 20px);
  overflow: hidden;
}

.phone-screenshot {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: top center;
  display: block;
  border-radius: 0 0 36px 36px;
  background: #0F1021;
}

.app-splash {
  text-align: center;
  padding: 16px;
}

.app-splash .splash-logo {
  font-family: 'Fredoka One', cursive;
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.splash-blocks {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  margin-bottom: 20px;
}

.sb-row { display: flex; gap: 6px; }

.sb {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  animation: blockPop 2s ease-in-out infinite;
}

.sb.yellow { background: var(--yellow); animation-delay: 0.0s; }
.sb.blue   { background: var(--blue);   animation-delay: 0.1s; }
.sb.green  { background: var(--green);  animation-delay: 0.2s; }
.sb.purple { background: var(--purple); animation-delay: 0.3s; }
.sb.red    { background: var(--red);    animation-delay: 0.4s; }
.sb.orange { background: var(--orange); animation-delay: 0.5s; }

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

.splash-cta {
  background: var(--yellow);
  color: #1a1a00;
  font-weight: 800;
  font-size: 0.9rem;
  padding: 10px 24px;
  border-radius: 50px;
  display: inline-block;
}

/* ===== FOOTER ===== */
.footer {
  position: relative;
  z-index: 1;
  background: rgba(0,0,0,0.4);
  border-top: 1px solid var(--border);
  padding: 80px 0 32px;
}

.footer-top {
  display: flex;
  gap: 80px;
  margin-bottom: 60px;
}

.footer-brand {
  flex: 1;
  max-width: 320px;
}

.footer-logo {
  font-family: 'Fredoka One', cursive;
  font-size: 1.8rem;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 24px;
}

.footer-social { display: flex; gap: 12px; }

.social-link {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.07);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.social-link:hover {
  background: rgba(255,215,0,0.15);
  color: var(--yellow);
  border-color: rgba(255,215,0,0.3);
}

.footer-links {
  display: flex;
  gap: 60px;
  flex: 1;
  justify-content: flex-end;
}

.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

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

.footer-col a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--text); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p { font-size: 0.85rem; color: var(--text-muted); }
.footer-love { color: var(--yellow) !important; }

/* ===== INTERSECTION OBSERVER ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .modes-grid { grid-template-columns: repeat(2, 1fr); }
  .modes-grid--6 { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .hero { gap: 40px; }
}

@media (max-width: 768px) {
  .nav-links, .btn-nav { display: none; }
  .hamburger { display: flex; }


  .hero {
    flex-direction: column;
    padding-top: 100px;
    text-align: center;
  }
  .hero-ctas { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { display: none; }
  .hero-mascots { display: none; }

  .features-grid { grid-template-columns: 1fr; }
  .modes-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid { grid-template-columns: 1fr; }
  .steps { flex-direction: column; align-items: center; }
  .step-arrow { transform: rotate(90deg); margin: 0; }

  .download-content { flex-direction: column; gap: 40px; }
  .download-visual { display: none; }
  .download-mascots { display: none; }

  .footer-top { flex-direction: column; gap: 40px; }
  .footer-links { gap: 32px; justify-content: flex-start; flex-wrap: wrap; }

  .footer-bottom { flex-direction: column; text-align: center; }

  .rating-summary { flex-direction: column; text-align: center; padding: 28px; }
  .store-badges { justify-content: center; }
}

@media (max-width: 480px) {
  .modes-grid { grid-template-columns: 1fr; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: rgba(255,215,0,0.3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,215,0,0.5); }
