/* ============================================
   GECKO RAIN — Production Styles (Mobile-First)
   CoinGecko Brand System
   ============================================ */

:root {
  --gecko-green: #8DC63F;
  --gecko-green-dark: #6BA030;
  --gecko-green-glow: rgba(141, 198, 63, 0.3);
  --moon-night: #13151a;
  --moon-night-2: #1a1d24;
  --moon-night-3: #22262f;
  --moon-light: #F0F2F5;
  --moon-light-2: #c8ccd4;
  --gold: #FFD700;
  --gold-glow: rgba(255, 215, 0, 0.25);
  --diamond: #b9f2ff;
  --silver: #c0c0c0;
  --bronze: #cd7f32;
  --danger: #FF4D4D;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  width: 100%;
  min-height: 100vh;
  font-family: var(--font);
  background: var(--moon-night);
  color: var(--moon-light);
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---- SCREENS ---- */
.screen {
  display: none;
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0; left: 0;
  z-index: 1;
}
.screen.active { display: flex; }

#screen-landing {
  position: relative;
  z-index: 1;
}

.landing-scroll {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

/* ---- BACKGROUND PARTICLES ---- */
.bg-particles {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.bg-particle {
  position: absolute;
  border-radius: 50%;
  background: var(--gecko-green);
  opacity: 0.06;
  animation: particleFloat linear infinite;
}
@keyframes particleFloat {
  0% { transform: translateY(100vh) scale(0); opacity: 0; }
  10% { opacity: 0.06; }
  90% { opacity: 0.06; }
  100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}

/* ---- NAV ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(19, 21, 26, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-cg-logo { height: 22px; width: auto; }
.nav-cg-text { font-weight: 700; font-size: 14px; }
.nav-divider {
  width: 1px; height: 18px;
  background: rgba(255,255,255,0.15);
}
.nav-token {
  font-weight: 800;
  font-size: 15px;
  color: var(--gecko-green);
}
.nav-cta {
  padding: 8px 18px;
  background: var(--gecko-green);
  color: var(--moon-night);
  font-weight: 700;
  font-size: 13px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s;
}
.nav-cta:active { transform: scale(0.96); }

/* ---- HERO ---- */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 20px 60px;
  min-height: 100vh;
  justify-content: center;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(141,198,63,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: rgba(141,198,63,0.1);
  border: 1px solid rgba(141,198,63,0.2);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  color: var(--gecko-green);
  margin-bottom: 20px;
  animation: fadeInDown 0.6s ease-out;
}

/* Collab row: CoinGecko × Sponsor */
.collab-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  padding: 12px 24px;
  background: var(--moon-night-2);
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.06);
  animation: fadeInDown 0.5s ease-out;
}
.collab-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}
.collab-img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.1);
}
.collab-sponsor-img {
  border-color: var(--gecko-green);
}
.collab-name {
  font-size: 13px;
  font-weight: 700;
  opacity: 0.8;
}
.collab-x {
  font-size: 18px;
  font-weight: 300;
  opacity: 0.3;
}

.hero-gecko-wrap {
  position: relative;
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.hero-gecko-glow {
  position: absolute;
  width: 120px; height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--gecko-green-glow) 0%, transparent 70%);
  animation: glowPulse 3s ease-in-out infinite;
}
.hero-gecko {
  font-size: 80px;
  position: relative;
  z-index: 2;
  animation: geckoFloat 3s ease-in-out infinite;
  filter: drop-shadow(0 10px 30px rgba(141,198,63,0.3));
}
.hero-gecko-img {
  width: 140px;
  height: 140px;
  object-fit: contain;
  position: relative;
  z-index: 2;
  animation: geckoFloat 3s ease-in-out infinite;
  filter: drop-shadow(0 10px 30px rgba(141,198,63,0.3));
}
.hero-coins-orbit {
  position: absolute;
  width: 100%; height: 100%;
  animation: orbitSpin 8s linear infinite;
}
.orbit-coin {
  position: absolute;
  font-size: 24px;
  filter: drop-shadow(0 2px 8px rgba(255,215,0,0.4));
  width: 36px;
  height: 36px;
  object-fit: contain;
}
.oc1 { top: 0; left: 50%; transform: translateX(-50%); }
.oc2 { bottom: 10px; left: 0; }
.oc3 { bottom: 10px; right: 0; }

@keyframes geckoFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-8px) rotate(2deg); }
  75% { transform: translateY(4px) rotate(-1deg); }
}
@keyframes glowPulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.2); opacity: 1; }
}
@keyframes orbitSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-title {
  display: flex;
  flex-direction: column;
  line-height: 0.9;
  margin-bottom: 16px;
  animation: fadeInDown 0.8s ease-out;
}
.hero-title-line1 {
  font-size: 52px;
  font-weight: 900;
  letter-spacing: 4px;
  color: var(--moon-light);
}
.hero-title-line2 {
  font-size: 64px;
  font-weight: 900;
  letter-spacing: 6px;
  color: var(--gecko-green);
  text-shadow: 0 0 40px rgba(141,198,63,0.4);
}

.hero-tagline {
  font-size: 17px;
  font-weight: 500;
  margin-bottom: 10px;
  opacity: 0.9;
}
.text-green { color: var(--gecko-green); font-weight: 700; }

.hero-sub {
  font-size: 13px;
  line-height: 1.6;
  opacity: 0.45;
  max-width: 360px;
  margin-bottom: 32px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 32px;
  padding: 16px 24px;
  background: var(--moon-night-2);
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.06);
}
.stat { text-align: center; }
.stat-value {
  display: block;
  font-size: 18px;
  font-weight: 800;
  color: var(--gecko-green);
}
.stat-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.4;
  margin-top: 2px;
  display: block;
}
.stat-divider {
  width: 1px;
  height: 30px;
  background: rgba(255,255,255,0.08);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: var(--radius);
  font-family: var(--font);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}
.btn:active { transform: scale(0.97); }

.btn-hero {
  padding: 16px 40px;
  font-size: 16px;
  background: linear-gradient(135deg, var(--gecko-green), #a8e063);
  color: var(--moon-night);
  border-radius: 14px;
  box-shadow: 0 4px 24px rgba(141,198,63,0.35);
  margin-bottom: 40px;
}
.btn-hero:hover {
  box-shadow: 0 6px 32px rgba(141,198,63,0.5);
  transform: translateY(-1px);
}
.btn-icon { font-size: 18px; }

.hero-scroll-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  opacity: 0.25;
}
.scroll-arrow {
  width: 20px;
  height: 20px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  animation: scrollBounce 2s ease-in-out infinite;
}
@keyframes scrollBounce {
  0%, 100% { transform: rotate(45deg) translateY(0); }
  50% { transform: rotate(45deg) translateY(6px); }
}

/* ---- SECTIONS ---- */
.section {
  position: relative;
  padding: 80px 0;
}
.section-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}
.section-badge {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(141,198,63,0.1);
  border: 1px solid rgba(141,198,63,0.15);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  color: var(--gecko-green);
  margin-bottom: 14px;
}
.section-title {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 40px;
  line-height: 1.2;
}

/* How It Works */
.section-how {
  background: var(--moon-night-2);
}
.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.step-card {
  position: relative;
  padding: 24px;
  background: var(--moon-night);
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.06);
  transition: all 0.3s;
  overflow: hidden;
}
.step-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--gecko-green), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.step-card:hover::before { opacity: 1; }
.step-icon { font-size: 32px; margin-bottom: 12px; }
.step-icon-img { width: 56px; height: 56px; object-fit: contain; margin-bottom: 12px; }
.step-num {
  position: absolute;
  top: 20px; right: 20px;
  font-size: 36px;
  font-weight: 900;
  opacity: 0.06;
}
.step-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}
.step-card p {
  font-size: 13px;
  line-height: 1.6;
  opacity: 0.55;
}

/* Why This Airdrop */
.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.why-card {
  padding: 24px;
  background: var(--moon-night-2);
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.06);
  transition: border-color 0.3s;
}
.why-card:hover {
  border-color: rgba(141,198,63,0.2);
}
.why-icon { font-size: 28px; margin-bottom: 12px; }
.why-icon-img { width: 48px; height: 48px; object-fit: contain; margin-bottom: 12px; }
.why-card h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
}
.why-card p {
  font-size: 13px;
  line-height: 1.6;
  opacity: 0.5;
}

/* Prize Tiers */
.section-tiers {
  background: var(--moon-night-2);
}
.tiers-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.tier-card {
  position: relative;
  padding: 20px 16px;
  border-radius: var(--radius);
  background: var(--moon-night);
  border: 1px solid rgba(255,255,255,0.06);
  text-align: center;
  overflow: hidden;
  transition: all 0.3s;
}
.tier-card:hover { transform: translateY(-2px); }
.tier-glow {
  position: absolute;
  top: -30px; left: 50%;
  transform: translateX(-50%);
  width: 80px; height: 80px;
  border-radius: 50%;
  opacity: 0.15;
  filter: blur(20px);
}
.tier-diamond .tier-glow { background: var(--diamond); }
.tier-gold .tier-glow { background: var(--gold); }
.tier-silver .tier-glow { background: var(--silver); }
.tier-bronze .tier-glow { background: var(--bronze); }

.tier-diamond { border-color: rgba(185,242,255,0.2); }
.tier-gold { border-color: rgba(255,215,0,0.2); }

.tier-icon { font-size: 32px; margin-bottom: 8px; position: relative; z-index: 1; }
.tier-icon-img { width: 56px; height: 56px; object-fit: contain; margin-bottom: 8px; position: relative; z-index: 1; }
.tier-name {
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}
.tier-diamond .tier-name { color: var(--diamond); }
.tier-gold .tier-name { color: var(--gold); }
.tier-silver .tier-name { color: var(--silver); }
.tier-bronze .tier-name { color: var(--bronze); }

.tier-score {
  font-size: 11px;
  opacity: 0.4;
  margin-bottom: 10px;
}
.tier-prize {
  font-size: 14px;
  font-weight: 700;
  color: var(--gecko-green);
  margin-bottom: 4px;
}
.tier-chance {
  font-size: 10px;
  opacity: 0.3;
}

/* CoinGecko Section */
.cg-collab {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.cg-desc {
  font-size: 14px;
  line-height: 1.7;
  opacity: 0.6;
  margin-bottom: 20px;
}
.cg-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}
.cg-feat {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  opacity: 0.7;
}
.cg-check {
  color: var(--gecko-green);
  font-weight: 700;
}
.cg-link {
  display: inline-block;
  color: var(--gecko-green);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s;
}
.cg-link:hover { opacity: 0.7; }

.cg-collab-visual {
  display: flex;
  justify-content: center;
}
.cg-visual-card {
  padding: 32px 40px;
  background: var(--moon-night-2);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(141,198,63,0.15);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cg-visual-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: radial-gradient(circle at top, rgba(141,198,63,0.05) 0%, transparent 60%);
}
.cg-visual-gecko { font-size: 56px; margin-bottom: 12px; position: relative; }
.cg-gecko-img { width: 80px; height: 80px; object-fit: contain; }
.cg-official-logo { width: 80px; height: 80px; object-fit: contain; border-radius: 50%; }
.cg-visual-text { display: flex; flex-direction: column; gap: 2px; position: relative; }
.cg-visual-label { font-size: 11px; opacity: 0.4; text-transform: uppercase; letter-spacing: 1px; }
.cg-visual-brand { font-size: 22px; font-weight: 800; }
.cg-visual-verified {
  display: inline-block;
  margin-top: 12px;
  padding: 4px 12px;
  background: rgba(141,198,63,0.15);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  color: var(--gecko-green);
  position: relative;
}

/* Play Section */
.section-play {
  background: var(--moon-night-2);
}
.play-card {
  position: relative;
  max-width: 480px;
  margin: 0 auto;
  padding: 40px 24px;
  background: var(--moon-night);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(141,198,63,0.15);
  text-align: center;
  overflow: hidden;
}
.play-card-glow {
  position: absolute;
  top: -60px; left: 50%;
  transform: translateX(-50%);
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(141,198,63,0.1) 0%, transparent 70%);
  pointer-events: none;
}
.play-gecko { font-size: 48px; margin-bottom: 12px; position: relative; }
.play-gecko-img { width: 80px; height: 80px; object-fit: contain; margin-bottom: 12px; position: relative; }
.play-title {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 8px;
  position: relative;
}
.play-desc {
  font-size: 13px;
  opacity: 0.5;
  line-height: 1.6;
  margin-bottom: 24px;
  position: relative;
}

.wallet-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
  position: relative;
}
.wallet-label {
  font-size: 12px;
  font-weight: 600;
  opacity: 0.5;
}
.wallet-input-wrap {
  position: relative;
}
.wallet-input {
  width: 100%;
  padding: 14px 16px 14px 40px;
  border-radius: var(--radius-sm);
  border: 2px solid rgba(255,255,255,0.08);
  background: var(--moon-night-2);
  color: var(--moon-light);
  font-size: 14px;
  font-family: var(--font);
  outline: none;
  transition: border-color 0.2s;
}
.wallet-input:focus { border-color: var(--gecko-green); }
.wallet-input::placeholder { color: rgba(255,255,255,0.2); }
.wallet-input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  opacity: 0.4;
}

.btn-primary {
  width: 100%;
  padding: 16px;
  font-size: 15px;
  background: linear-gradient(135deg, var(--gecko-green), #a8e063);
  color: var(--moon-night);
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 20px rgba(141,198,63,0.3);
}
.btn-primary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  box-shadow: none;
}

.wallet-error {
  font-size: 12px;
  color: var(--danger);
  min-height: 16px;
}

.spinner {
  display: inline-block;
  width: 14px; height: 14px;
  border: 2px solid rgba(0,0,0,0.2);
  border-top-color: var(--moon-night);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.play-requirements {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 16px;
  padding: 12px;
  background: rgba(255,255,255,0.03);
  border-radius: var(--radius-sm);
  font-size: 11px;
  opacity: 0.4;
  line-height: 1.5;
  text-align: left;
  position: relative;
}
.req-icon { flex-shrink: 0; }

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 640px;
}
.faq-item {
  background: var(--moon-night-2);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.06);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s;
}
.faq-item:hover { border-color: rgba(255,255,255,0.1); }
.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  font-size: 14px;
  font-weight: 600;
}
.faq-arrow {
  font-size: 20px;
  opacity: 0.3;
  transition: transform 0.3s;
}
.faq-item.open .faq-arrow { transform: rotate(90deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  font-size: 13px;
  line-height: 1.7;
  opacity: 0.5;
  padding: 0 20px;
}
.faq-item.open .faq-a {
  max-height: 200px;
  padding: 0 20px 16px;
}

/* Footer */
.footer {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 40px 0;
}
.footer-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-gecko { font-size: 24px; }
.footer-title { font-weight: 800; font-size: 16px; }
.footer-links {
  display: flex;
  gap: 20px;
}
.footer-links a {
  color: var(--moon-light-2);
  text-decoration: none;
  font-size: 13px;
  opacity: 0.5;
  transition: opacity 0.2s;
}
.footer-links a:hover { opacity: 1; }
.footer-bottom {
  font-size: 12px;
  opacity: 0.3;
  line-height: 1.6;
}
.footer-disclaimer { margin-top: 4px; }

/* ---- GAME SCREEN ---- */
#screen-game {
  flex-direction: column;
  background: #080a0f;
  z-index: 50;
}

.game-hud {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 16px;
  background: rgba(0,0,0,0.9);
  border-bottom: 1px solid rgba(141,198,63,0.1);
  z-index: 10;
  position: relative;
}
.hud-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 70px;
}
.hud-left { align-items: flex-start; }
.hud-right { align-items: flex-end; }
.hud-label {
  font-size: 9px;
  opacity: 0.4;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
}
.hud-value {
  font-size: 22px;
  font-weight: 900;
  color: var(--gecko-green);
}
.hud-score-val {
  font-size: 26px;
  color: #fff;
  text-shadow: 0 0 10px rgba(141,198,63,0.4);
}

/* Timer ring */
.hud-center { min-width: 56px; }
.hud-timer-ring {
  position: relative;
  width: 52px; height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.timer-svg {
  position: absolute;
  width: 100%; height: 100%;
  transform: rotate(-90deg);
}
.timer-bg {
  fill: none;
  stroke: rgba(255,255,255,0.08);
  stroke-width: 3;
}
.timer-fg {
  fill: none;
  stroke: var(--gecko-green);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 163.36;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1s linear, stroke 0.3s;
}
.timer-text {
  font-size: 18px;
  font-weight: 900;
  color: var(--moon-light);
  position: relative;
  z-index: 1;
}

#game-canvas {
  flex: 1;
  width: 100%;
  display: block;
  touch-action: none;
}

.golden-flash {
  display: none;
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: radial-gradient(ellipse at top, rgba(255,215,0,0.12) 0%, transparent 60%);
  pointer-events: none;
  z-index: 5;
  animation: goldenPulse 0.6s ease-in-out infinite;
}
.golden-flash.active { display: block; }
@keyframes goldenPulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.game-hint {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 20px;
  background: rgba(0,0,0,0.7);
  border-radius: 100px;
  font-size: 13px;
  opacity: 0.6;
  z-index: 15;
  pointer-events: none;
  animation: hintFade 3s ease-out forwards;
}
@keyframes hintFade {
  0%, 60% { opacity: 0.6; }
  100% { opacity: 0; display: none; }
}

/* Countdown */
.countdown-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.8);
  z-index: 20;
}
.countdown-num {
  font-size: 100px;
  font-weight: 900;
  color: var(--gecko-green);
  text-shadow: 0 0 60px rgba(141,198,63,0.5);
  animation: countPop 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes countPop {
  0% { transform: scale(2.5); opacity: 0; }
  60% { transform: scale(0.9); }
  100% { transform: scale(1); opacity: 1; }
}

/* ---- RESULT SCREEN ---- */
#screen-result {
  z-index: 50;
  background: var(--moon-night);
}
.result-scroll {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  position: relative;
}
.result-particles {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  overflow: hidden;
}
.confetti {
  position: absolute;
  width: 8px; height: 8px;
  border-radius: 2px;
  animation: confettiFall linear forwards;
}
@keyframes confettiFall {
  0% { transform: translateY(-20px) rotate(0deg); opacity: 1; }
  100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

.result-container {
  max-width: 480px;
  margin: 0 auto;
  padding: 48px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 2;
}

.result-gecko-wrap {
  position: relative;
  margin-bottom: 16px;
}
.result-gecko-glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 100px; height: 100px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--gecko-green-glow) 0%, transparent 70%);
  animation: glowPulse 2s ease-in-out infinite;
}
.result-gecko {
  font-size: 64px;
  position: relative;
  animation: geckoFloat 3s ease-in-out infinite;
}
.result-gecko-img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  position: relative;
  animation: geckoFloat 3s ease-in-out infinite;
}

.result-title {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 16px;
  animation: fadeInDown 0.5s ease-out;
}

.result-tier {
  font-size: 32px;
  font-weight: 900;
  letter-spacing: 4px;
  padding: 10px 36px;
  border-radius: var(--radius);
  background: rgba(141,198,63,0.1);
  border: 2px solid var(--gecko-green);
  margin-bottom: 24px;
  animation: fadeInDown 0.6s ease-out;
}

.result-score-box {
  margin-bottom: 8px;
  animation: fadeInDown 0.7s ease-out;
}
.result-score-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.4;
  margin-bottom: 4px;
}
.result-score-val {
  font-size: 40px;
  font-weight: 900;
  color: var(--gecko-green);
}

.result-prize {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 28px;
  animation: fadeInDown 0.8s ease-out;
}
.prize-label {
  font-size: 13px;
  opacity: 0.5;
}
.prize-amount {
  font-size: 22px;
  font-weight: 800;
  color: var(--gold);
}

.btn-claim {
  width: 100%;
  max-width: 320px;
  padding: 18px;
  font-size: 17px;
  background: linear-gradient(135deg, var(--gecko-green), #a8e063);
  color: var(--moon-night);
  border-radius: var(--radius);
  box-shadow: 0 4px 24px rgba(141,198,63,0.4);
  margin-bottom: 10px;
  animation: fadeInDown 0.9s ease-out, claimPulse 2s ease-in-out 1s infinite;
}
@keyframes claimPulse {
  0%, 100% { box-shadow: 0 4px 24px rgba(141,198,63,0.4); }
  50% { box-shadow: 0 4px 40px rgba(141,198,63,0.7); }
}

.result-note {
  font-size: 11px;
  opacity: 0.3;
  margin-bottom: 24px;
}

.result-share {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 32px;
}
.share-label {
  font-size: 12px;
  opacity: 0.4;
}
.btn-share {
  padding: 8px 14px;
  background: var(--moon-night-3);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  color: var(--moon-light);
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-share:hover { border-color: rgba(255,255,255,0.2); }

.result-branding {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  opacity: 0.3;
}
.logo-cg-small { height: 16px; width: auto; }

/* ---- DESKTOP ---- */
@media (min-width: 768px) {
  .hero-title-line1 { font-size: 72px; }
  .hero-title-line2 { font-size: 88px; }
  .hero-tagline { font-size: 20px; }
  .section-title { font-size: 36px; }
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .tiers-grid { grid-template-columns: repeat(4, 1fr); }
  .cg-collab { flex-direction: row; align-items: center; }
  .cg-collab-text { flex: 1; }
  .cg-collab-visual { flex: 0 0 auto; }
  #game-canvas { max-width: 480px; margin: 0 auto; }
}

/* ---- SCROLL ANIMATIONS ---- */
.step-card, .why-card, .tier-card {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.step-card.visible, .why-card.visible, .tier-card.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Shake animation for validation errors */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}
