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

:root {
  --forest: #0a1f0f;
  --forest-mid: #143d22;
  --forest-light: #1e5c33;
  --gold: #d4a017;
  --gold-bright: #f5c842;
  --gold-dark: #a67c00;
  --cream: #f5e6c8;
  --cream-soft: #e8d5a8;
  --text: #f0f4ef;
  --text-muted: #a8b8a8;
  --radius: 16px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--forest);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.gold {
  color: var(--gold-bright);
}

/* Ticker */
.ticker {
  background: var(--gold-dark);
  color: var(--forest);
  overflow: hidden;
  padding: 8px 0;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

.ticker-track {
  display: flex;
  gap: 32px;
  animation: ticker 25s linear infinite;
  white-space: nowrap;
}

.ticker-track span {
  flex-shrink: 0;
}

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 12px 24px;
  background: rgba(10, 31, 15, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(212, 160, 23, 0.2);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Bangers', cursive;
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  color: var(--gold-bright);
}

.nav-logo img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--gold);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 20px;
  margin-left: auto;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.2s;
}

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

.nav-cta {
  display: flex;
  gap: 10px;
}

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

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gold);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
  font-family: inherit;
}

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

.btn-gold {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-dark));
  color: var(--forest);
  box-shadow: 0 4px 20px rgba(245, 200, 66, 0.35);
}

.btn-gold:hover {
  box-shadow: 0 6px 28px rgba(245, 200, 66, 0.5);
}

.btn-outline {
  background: transparent;
  border-color: var(--gold);
  color: var(--gold-bright);
}

.btn-outline:hover {
  background: rgba(212, 160, 23, 0.15);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1rem;
}

/* Hero */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 24px 40px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 70% 40%, rgba(30, 92, 51, 0.6) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(212, 160, 23, 0.12) 0%, transparent 50%),
    linear-gradient(180deg, var(--forest) 0%, var(--forest-mid) 100%);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  width: 100%;
}

.hero-tag {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: 12px;
}

.hero h1 {
  font-family: 'Bangers', cursive;
  font-size: clamp(3.5rem, 8vw, 6rem);
  line-height: 1;
  background: linear-gradient(135deg, var(--gold-bright), var(--cream), var(--gold-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 4px 12px rgba(212, 160, 23, 0.4));
  margin-bottom: 16px;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 24px;
}

.ca-box {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(212, 160, 23, 0.3);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 28px;
  max-width: 420px;
}

.ca-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 8px;
}

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

.ca-row code {
  font-family: 'Courier New', monospace;
  font-size: 0.95rem;
  color: var(--cream);
  word-break: break-all;
}

.copy-btn {
  flex-shrink: 0;
  padding: 6px 14px;
  background: var(--gold-dark);
  color: var(--forest);
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  transition: background 0.2s;
}

.copy-btn:hover {
  background: var(--gold-bright);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-logo {
  width: 500px;
  height: 500px;
  max-width: none;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 2px solid rgba(212, 160, 23, 0.25);
}

.floating {
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.scroll-hint {
  position: relative;
  z-index: 1;
  text-align: center;
  margin-top: 40px;
  color: var(--text-muted);
  font-size: 0.85rem;
  animation: bounce 2s ease infinite;
}

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

/* Sections */
.section {
  padding: 80px 0;
}

.section-alt {
  background: rgba(20, 61, 34, 0.35);
}

.section-title {
  font-family: 'Bangers', cursive;
  font-size: clamp(2.2rem, 5vw, 3rem);
  text-align: center;
  margin-bottom: 16px;
  letter-spacing: 0.04em;
}

.section-desc {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 40px;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: center;
}

.about-img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 2px solid rgba(212, 160, 23, 0.2);
}

.about-text p {
  margin-bottom: 16px;
  color: var(--text-muted);
}

.about-list {
  list-style: none;
  margin-top: 20px;
}

.about-list li {
  padding: 8px 0;
  font-weight: 600;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.step {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(212, 160, 23, 0.2);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
}

.step-num {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-dark));
  color: var(--forest);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Bangers', cursive;
  font-size: 1.5rem;
}

.step h3 {
  margin-bottom: 8px;
  color: var(--gold-bright);
}

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

.buy-cta {
  text-align: center;
}

/* Tokenomics */
.tokenomics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.token-stat {
  background: linear-gradient(145deg, rgba(212, 160, 23, 0.15), rgba(0, 0, 0, 0.3));
  border: 1px solid rgba(212, 160, 23, 0.3);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
}

.stat-value {
  display: block;
  font-family: 'Bangers', cursive;
  font-size: 2.5rem;
  color: var(--gold-bright);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

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

.token-card {
  background: rgba(0, 0, 0, 0.25);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid rgba(212, 160, 23, 0.15);
}

.token-card h3 {
  margin-bottom: 10px;
  color: var(--gold-bright);
}

.token-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.token-card code {
  color: var(--cream);
  background: rgba(0, 0, 0, 0.3);
  padding: 2px 6px;
  border-radius: 4px;
}

/* Chart */
.chart-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid rgba(212, 160, 23, 0.25);
  background: #0d1117;
  margin-bottom: 24px;
}

.chart-wrap iframe {
  width: 100%;
  height: 500px;
  border: none;
  display: block;
}

.chart-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.gallery-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.2s, transform 0.2s;
}

.gallery-item:hover {
  border-color: var(--gold);
  transform: scale(1.03);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Games */
.games-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 24px;
}

.game-tab {
  padding: 10px 18px;
  border-radius: 999px;
  border: 2px solid rgba(212, 160, 23, 0.3);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text-muted);
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.game-tab.active,
.game-tab:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
  background: rgba(212, 160, 23, 0.15);
}

.game-panel {
  display: none;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(212, 160, 23, 0.2);
  border-radius: var(--radius);
  padding: 24px;
}

.game-panel.active {
  display: block;
}

.game-header {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  font-size: 0.95rem;
}

.game-header strong {
  color: var(--gold-bright);
}

.game-hint,
.clicker-hint {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 12px;
}

/* Clicker */
.clicker-arena {
  position: relative;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, var(--forest-light) 0%, var(--forest) 70%);
  border-radius: 12px;
  overflow: hidden;
}

.clicker-target {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 3px solid var(--gold);
  cursor: pointer;
  transition: transform 0.1s;
  object-fit: cover;
  user-select: none;
}

.clicker-target:active {
  transform: scale(0.9);
}

.clicker-target.hidden {
  opacity: 0.3;
  pointer-events: none;
}

.clicker-pop {
  position: absolute;
  color: var(--gold-bright);
  font-family: 'Bangers', cursive;
  font-size: 1.5rem;
  pointer-events: none;
  animation: popUp 0.6s ease forwards;
}

@keyframes popUp {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-40px); }
}

/* Canvas games */
#jumpCanvas,
#catchCanvas {
  display: block;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  border-radius: 12px;
  background: var(--forest-mid);
  cursor: pointer;
}

/* Memory */
.memory-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  max-width: 520px;
  margin: 0 auto;
}

.memory-card {
  aspect-ratio: 1;
  border-radius: 12px;
  cursor: pointer;
  perspective: 600px;
  border: none;
  background: none;
  padding: 0;
}

.memory-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.4s;
  transform-style: preserve-3d;
}

.memory-card.flipped .memory-card-inner,
.memory-card.matched .memory-card-inner {
  transform: rotateY(180deg);
}

.memory-front,
.memory-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.memory-front {
  background: linear-gradient(135deg, var(--gold-dark), var(--forest-light));
  font-family: 'Bangers', cursive;
  font-size: 1.8rem;
  color: var(--forest);
  border: 2px solid var(--gold);
}

.memory-back {
  transform: rotateY(180deg);
  overflow: hidden;
  border: 2px solid var(--gold);
}

.memory-back img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.memory-card.matched .memory-back {
  border-color: var(--gold-bright);
  box-shadow: 0 0 16px rgba(245, 200, 66, 0.5);
}

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

.social-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 32px 20px;
  background: rgba(0, 0, 0, 0.3);
  border: 2px solid rgba(212, 160, 23, 0.2);
  border-radius: var(--radius);
  transition: transform 0.2s, border-color 0.2s, background 0.2s;
}

.social-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  background: rgba(212, 160, 23, 0.1);
}

.social-icon {
  font-size: 2rem;
}

.social-name {
  font-weight: 700;
  color: var(--gold-bright);
}

.social-handle {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Footer */
.footer {
  text-align: center;
  padding: 48px 24px;
  border-top: 1px solid rgba(212, 160, 23, 0.15);
  background: rgba(0, 0, 0, 0.3);
}

.footer-logo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin: 0 auto 16px;
  border: 2px solid var(--gold);
}

.footer-disclaimer {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 8px;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius);
  border: 2px solid var(--gold);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: var(--gold-bright);
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
}

/* Responsive */
@media (max-width: 900px) {
  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .nav.open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--forest);
    padding: 20px 24px;
    border-bottom: 1px solid rgba(212, 160, 23, 0.2);
  }

  .nav.open .nav-cta {
    display: flex;
    position: absolute;
    top: calc(100% + 200px);
    left: 24px;
    right: 24px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-sub,
  .ca-box {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-visual {
    order: -1;
  }

  .about-grid,
  .steps,
  .tokenomics-grid,
  .token-details,
  .socials-grid {
    grid-template-columns: 1fr;
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 480px) {
  .gallery {
    grid-template-columns: 1fr;
  }

  .memory-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
