/* Cosmic dark background and neon theme */
body {
  margin: 0;
  font-family: 'Titillium Web', Arial, sans-serif;
  background: linear-gradient(135deg, #0a0f1c 0%, #1a223a 100%);
  color: #eafffa;
  min-height: 100vh;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: 'Rajdhani', 'Titillium Web', Arial, sans-serif;
  letter-spacing: 1px;
  color: #aaffec;
  margin-bottom: 0.5em;
}

section {
  padding: 4em 1em 3em 1em;
  max-width: 900px;
  margin: 0 auto 0 auto;
  box-sizing: border-box;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s, transform 0.8s;
}
section.revealed {
  opacity: 1;
  transform: none;
}

.overlay {
  position: fixed;
  z-index: 1000;
  background: #0a0f1c;
  color: #aaffec;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Orbitron', monospace;
  font-size: 1.2em;
  transition: opacity 0.8s;
}

#terminal-text {
  background: none;
  color: #aaffec;
  font-size: 1.2em;
  line-height: 1.6;
  text-shadow: 0 0 8px #00ffe7;
}

#hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  overflow: hidden;
}

#cosmic-bg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5em;
  padding: 3em 1em 2em 1em;
}

.cta-buttons {
  margin-top: 2em;
  display: flex;
  gap: 1em;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  background: #b2f7ef; /* pastel teal */
  color: #0a0f1c;
  border: none;
  border-radius: 2em;
  padding: 0.9em 2.2em;
  font-size: 1.1em;
  font-family: 'Rajdhani', 'Titillium Web', Arial, sans-serif;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 0 #7ed6c1, 0 2px 16px #b2f7ef80;
  transition: background 0.2s, color 0.2s, transform 0.15s, box-shadow 0.15s;
  text-decoration: none;
  display: inline-block;
  position: relative;
  overflow: hidden;
}
.btn.primary {
  background: #b2f7ef; /* pastel teal */
  box-shadow: 0 6px 0 #7ed6c1, 0 2px 16px #b2f7ef80;
}
.btn.secondary {
  background: #fff6b7; /* pastel yellow */
  color: #0a0f1c;
  box-shadow: 0 6px 0 #ffe066, 0 2px 16px #fff6b780;
}
.btn.twitter {
  background: #b5d0ff; /* pastel blue */
  color: #0a0f1c;
  box-shadow: 0 6px 0 #7eaaff, 0 2px 16px #b5d0ff80;
}
.btn.glow {
  box-shadow: 0 10px 0 #7ed6c1, 0 4px 32px #b2f7efcc;
}
.btn:hover, .btn:focus {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 12px 0 #7ed6c1, 0 6px 24px #b2f7efcc;
  filter: brightness(1.08);
}
.btn.secondary:hover, .btn.secondary:focus {
  box-shadow: 0 12px 0 #ffe066, 0 6px 24px #fff6b7cc;
}
.btn.twitter:hover, .btn.twitter:focus {
  box-shadow: 0 12px 0 #7eaaff, 0 6px 24px #b5d0ffcc;
}
.btn:active {
  transform: translateY(3px) scale(0.98);
  box-shadow: 0 2px 0 #7ed6c1, 0 1px 8px #b2f7ef80;
  filter: brightness(0.97);
}
.btn.secondary:active {
  box-shadow: 0 2px 0 #ffe066, 0 1px 8px #fff6b780;
}
.btn.twitter:active {
  box-shadow: 0 2px 0 #7eaaff, 0 1px 8px #b5d0ff80;
}
#music-toggle {
  background: none;
  border: none;
  font-size: 1.5em;
  color: #aaffec;
  cursor: pointer;
  margin-left: 1em;
  transition: color 0.2s;
}
#music-toggle:hover {
  color: #ffef00;
}

#catdet-showcase {
  text-align: center;
  margin-top: 2em;
}
.catdet-card {
  width: 200px;
  height: 290px;
  margin: 2em auto 1em auto;
  perspective: 1600px;
  position: relative;
  will-change: transform;
  cursor: default;
  user-select: none;
  background: none;
  box-shadow: 0 16px 48px 0 rgba(0,255,231,0.18), 0 2px 32px 0 rgba(0,0,0,0.25);
  border-radius: 2em;
  /* No background, just 3D effect */
}
.catdet-face {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0; left: 0;
  backface-visibility: hidden;
  border-radius: 1.5em;
  /* Remove background, add glow and border for visibility */
  background: none;
  object-fit: contain;
  box-shadow: 0 0 32px #00ffe7a0, 0 0 0 4px rgba(170,255,236,0.18);
  border: 2px solid rgba(170,255,236,0.22);
  z-index: 1;
}
.catdet-face.back {
  transform: rotateY(180deg);
}
.catdet-card.flipped .front {
  transform: rotateY(180deg);
}
.catdet-card.flipped .back {
  transform: rotateY(0deg);
}
.catdet-card {
  transition: transform 0.8s cubic-bezier(.4,2,.6,1);
  transform-style: preserve-3d;
}
.catdet-card:active {
  cursor: grabbing;
}

.catdet-story {
  max-width: 500px;
  margin: 1.5em auto 0 auto;
  text-align: center;
  font-size: 1.1em;
  color: #eafffa;
}

#lore {
  background: #181c2f;
  border-radius: 2em;
  box-shadow: 0 0 32px #00ffe740;
  margin-top: 2em;
  position: relative;
  overflow: visible;
}
.lore-text p {
  font-size: 1.2em;
  margin: 1em 0;
  color: #eafffa;
  text-shadow: 0 0 8px #00ffe7a0;
}

#token-info {
  margin-top: 2em;
}
.token-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5em;
  justify-content: center;
}
.token-card {
  background: linear-gradient(120deg, #181c2f 60%, #00ffe7 100%);
  color: #0a0f1c;
  border-radius: 1.2em;
  padding: 1.5em 2em;
  min-width: 160px;
  box-shadow: 0 0 16px #00ffe7a0;
  text-align: center;
  font-size: 1.1em;
}

#game {
  text-align: center;
  margin-top: 2em;
  display: flex;
  flex-direction: column;
  align-items: center;
}
#game-canvas {
  background: #181c2f;
  border-radius: 1em;
  box-shadow: 0 0 24px #00ffe7a0;
  margin: 1em auto;
  display: block;
  max-width: 100%;
}
#game-container {
  width: 100%;
  max-width: 660px;
  margin: 0 auto;
}
#close-game {
  background: none;
  border: none;
  color: #aaffec;
  font-size: 1.5em;
  cursor: pointer;
  margin-top: 0.5em;
}

#community {
  text-align: center;
  margin: 2em auto;
  max-width: 400px;
  padding: 1.5em 1em;
  font-size: 1.08em;
}
#community .btn {
  display: block;
  margin: 1.2em auto 0 auto;
}
#twitter-embed {
  margin: 2em auto 0 auto;
  max-width: 400px;
}

#final-cta {
  background: #b2f7ef;
  color: #0a0f1c;
  text-align: center;
  padding: 1.5em 1em;
  border-radius: 2em;
  margin: 2em auto;
  box-shadow: 0 0 32px #00ffe7a0;
  max-width: 400px;
  font-size: 1.08em;
}
#final-cta h2 {
  color: #0a0f1c;
}
#final-cta .btn {
  display: block;
  margin: 1.2em auto 0 auto;
}

footer {
  background: #0a0f1c;
  color: #aaffec;
  padding: 2em 1em 1em 1em;
  text-align: center;
  border-top: 2px solid #1da1f2;
  margin-top: 3em;
}
.footer-content {
  display: flex;
  flex-direction: column;
  gap: 0.7em;
  align-items: center;
  font-size: 1em;
}
.footer-socials a {
  color: #aaffec;
  margin: 0 0.5em;
  font-size: 1.3em;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-socials a:hover {
  color: #ffef00;
}

/* Responsive */
@media (max-width: 900px) {
  section {
    padding: 2em 0.5em 2em 0.5em;
    max-width: 98vw;
  }
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1em;
  }
  .catdet-card {
    width: 140px;
    height: 200px;
  }
  .catdet-story {
    font-size: 1em;
    max-width: 95vw;
  }
  .hero-banner {
    max-height: 100px;
  }
  h1 {
    font-size: 1.5em;
  }
  h2 {
    font-size: 1.2em;
  }
  .btn {
    font-size: 1em;
    padding: 0.7em 1.2em;
  }
  #game-canvas {
    max-width: 98vw;
    height: 220px !important;
  }
  #game-container {
    max-width: 98vw;
  }
}
@media (max-width: 600px) {
  section {
    padding: 1.2em 0.2em 1.2em 0.2em;
    max-width: 100vw;
  }
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.7em;
  }
  .gallery-container {
    max-height: 400px;
  }
  .catdet-card {
    width: 90px;
    height: 120px;
  }
  .catdet-story {
    font-size: 0.95em;
    max-width: 99vw;
  }
  .hero-banner {
    max-height: 60px;
  }
  h1 {
    font-size: 1.1em;
  }
  h2 {
    font-size: 1em;
  }
  .btn {
    font-size: 0.95em;
    padding: 0.5em 0.7em;
  }
  #game-canvas {
    max-width: 99vw;
    height: 120px !important;
  }
  #game-container {
    max-width: 99vw;
  }
  .footer-content {
    font-size: 0.95em;
  }
}

/* Button Glow & Ripple */
.btn .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(170,255,236,0.4);
  transform: scale(0);
  animation: ripple 0.6s linear;
  pointer-events: none;
  width: 120px;
  height: 120px;
  left: 50%;
  top: 50%;
  margin-left: -60px;
  margin-top: -60px;
  z-index: 1;
}
@keyframes ripple {
  to { transform: scale(2.5); opacity: 0; }
}

/* Floating Cosmic/Meme Elements */
.floater {
  position: absolute;
  pointer-events: none;
  opacity: 0.7;
  animation: floaty 10s infinite linear;
  filter: drop-shadow(0 0 8px #00ffe7);
  z-index: 2;
}
@keyframes floaty {
  0% { transform: translateY(0) scale(1) rotate(0deg); }
  50% { transform: translateY(-30px) scale(1.1) rotate(10deg); }
  100% { transform: translateY(0) scale(1) rotate(0deg); }
}

.hero-banner {
  display: block;
  max-width: 90%;
  max-height: 320px;
  margin: 0 auto 2em auto;
  border-radius: 1.2em;
  box-shadow: 0 0 32px #00ffe7a0;
  object-fit: contain;
}

#bg-floating-logos {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  z-index: 0;
  pointer-events: none;
}
#main-content, .overlay { position: relative; z-index: 2; }

.glass {
  background: rgba(20, 30, 50, 0.55);
  box-shadow: 0 8px 32px 0 rgba(0,0,0,0.25);
  backdrop-filter: blur(12px);
  border-radius: 2em;
  border: 1.5px solid rgba(170,255,236,0.18);
  padding: 2.5em 1.5em;
  margin-bottom: 2em;
}

.divider {
  width: 100%;
  margin: 0 auto 2em auto;
  text-align: center;
  opacity: 0.7;
}

/* Roadmap Timeline */
.roadmap-timeline {
  display: flex;
  gap: 2em;
  justify-content: center;
  margin: 2em 0 1em 0;
  flex-wrap: wrap;
}
.roadmap-phase {
  background: rgba(0,255,231,0.08);
  border-radius: 1.2em;
  padding: 1.2em 2em;
  min-width: 180px;
  box-shadow: 0 0 16px #00ffe7a0;
  text-align: center;
  margin-bottom: 1em;
}

/* Gallery Container and Grid */
.gallery-container {
  max-height: 600px;
  overflow-y: auto;
  padding: 1em;
  margin: 2em 0 1em 0;
  border-radius: 1em;
  background: rgba(0,255,231,0.05);
  box-shadow: inset 0 0 16px rgba(0,255,231,0.1);
  scrollbar-width: thin;
  scrollbar-color: #00ffe7 #0a0f1c;
}

.gallery-container::-webkit-scrollbar {
  width: 8px;
}

.gallery-container::-webkit-scrollbar-track {
  background: rgba(0,255,231,0.1);
  border-radius: 4px;
}

.gallery-container::-webkit-scrollbar-thumb {
  background: #00ffe7;
  border-radius: 4px;
  box-shadow: 0 0 8px rgba(0,255,231,0.5);
}

.gallery-container::-webkit-scrollbar-thumb:hover {
  background: #b2f7ef;
  box-shadow: 0 0 12px rgba(0,255,231,0.8);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5em;
  align-items: center;
}
.gallery-item {
  background: none;
  border-radius: 1em;
  max-width: 100%;
  max-height: 220px;
  min-height: 120px;
  display: block;
  margin: 0 auto;
  object-fit: cover;
  box-shadow: 0 0 12px #00ffe7a0, 0 2px 16px #b2f7ef40;
  transition: transform 0.18s, box-shadow 0.18s, opacity 0.3s;
  opacity: 0;
  animation: fadeInUp 0.6s ease-out forwards;
}

.gallery-item:nth-child(1) { animation-delay: 0.1s; }
.gallery-item:nth-child(2) { animation-delay: 0.2s; }
.gallery-item:nth-child(3) { animation-delay: 0.3s; }
.gallery-item:nth-child(4) { animation-delay: 0.4s; }
.gallery-item:nth-child(5) { animation-delay: 0.5s; }
.gallery-item:nth-child(6) { animation-delay: 0.6s; }
.gallery-item:nth-child(7) { animation-delay: 0.7s; }
.gallery-item:nth-child(8) { animation-delay: 0.8s; }
.gallery-item:nth-child(9) { animation-delay: 0.9s; }
.gallery-item:nth-child(10) { animation-delay: 1.0s; }
.gallery-item:nth-child(11) { animation-delay: 1.1s; }
.gallery-item:nth-child(12) { animation-delay: 1.2s; }
.gallery-item:nth-child(13) { animation-delay: 1.3s; }
.gallery-item:nth-child(14) { animation-delay: 1.4s; }
.gallery-item:nth-child(15) { animation-delay: 1.5s; }
.gallery-item:nth-child(16) { animation-delay: 1.6s; }
.gallery-item:nth-child(17) { animation-delay: 1.7s; }
.gallery-item:nth-child(18) { animation-delay: 1.8s; }
.gallery-item:nth-child(19) { animation-delay: 1.9s; }
.gallery-item:nth-child(20) { animation-delay: 2.0s; }
.gallery-item:nth-child(21) { animation-delay: 2.1s; }
.gallery-item:nth-child(22) { animation-delay: 2.2s; }
.gallery-item:nth-child(23) { animation-delay: 2.3s; }
.gallery-item:nth-child(24) { animation-delay: 2.4s; }
.gallery-item:nth-child(25) { animation-delay: 2.5s; }
.gallery-item:nth-child(26) { animation-delay: 2.6s; }
.gallery-item:nth-child(27) { animation-delay: 2.7s; }
.gallery-item:nth-child(28) { animation-delay: 2.8s; }
.gallery-item:nth-child(29) { animation-delay: 2.9s; }
.gallery-item:nth-child(30) { animation-delay: 3.0s; }
.gallery-item:nth-child(31) { animation-delay: 3.1s; }
.gallery-item:nth-child(32) { animation-delay: 3.2s; }
.gallery-item:nth-child(33) { animation-delay: 3.3s; }
.gallery-item:nth-child(34) { animation-delay: 3.4s; }
.gallery-item:nth-child(35) { animation-delay: 3.5s; }
.gallery-item:nth-child(36) { animation-delay: 3.6s; }
.gallery-item:nth-child(37) { animation-delay: 3.7s; }
.gallery-item:nth-child(38) { animation-delay: 3.8s; }
.gallery-item:nth-child(39) { animation-delay: 3.9s; }
.gallery-item:nth-child(40) { animation-delay: 4.0s; }
.gallery-item:nth-child(41) { animation-delay: 4.1s; }
.gallery-item:nth-child(42) { animation-delay: 4.2s; }
.gallery-item:nth-child(43) { animation-delay: 4.3s; }
.gallery-item:nth-child(44) { animation-delay: 4.4s; }
.gallery-item:nth-child(45) { animation-delay: 4.5s; }
.gallery-item:nth-child(46) { animation-delay: 4.6s; }
.gallery-item:nth-child(47) { animation-delay: 4.7s; }
.gallery-item:nth-child(48) { animation-delay: 4.8s; }
.gallery-item:nth-child(49) { animation-delay: 4.9s; }
.gallery-item:nth-child(50) { animation-delay: 5.0s; }
.gallery-item:nth-child(51) { animation-delay: 5.1s; }
.gallery-item:nth-child(52) { animation-delay: 5.2s; }
.gallery-item:nth-child(53) { animation-delay: 5.3s; }

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.gallery-item:hover {
  transform: scale(1.06) rotate(-2deg);
  box-shadow: 0 0 32px #00ffe7cc, 0 4px 32px #b2f7ef80;
  z-index: 2;
}

/* FAQ */
.faq-list {
  margin: 2em 0 1em 0;
}
.faq-item {
  background: rgba(0,255,231,0.07);
  border-radius: 1em;
  margin-bottom: 1em;
  padding: 1em 1.5em;
  box-shadow: 0 0 8px #00ffe7a0;
}
.faq-item h3 {
  margin-bottom: 0.5em;
  color: #aaffec;
}

/* Modernize token cards */
.token-card {
  background: rgba(0,255,231,0.10);
  border: 1px solid rgba(170,255,236,0.18);
  box-shadow: 0 0 16px #00ffe7a0;
  border-radius: 1.2em;
  padding: 1.5em 2em;
  min-width: 160px;
  text-align: center;
  font-size: 1.1em;
  margin-bottom: 1em;
}

/* Animated headings */
h2 {
  color: #aaffec;
  background: none;
  -webkit-background-clip: initial;
  -webkit-text-fill-color: initial;
  background-clip: initial;
  text-fill-color: initial;
  position: relative;
  display: inline-block;
  animation: shimmer 2.5s infinite linear;
}
@keyframes shimmer {
  0% { filter: brightness(1.1); }
  50% { filter: brightness(1.5); }
  100% { filter: brightness(1.1); }
}

/* Responsive for new sections */
@media (max-width: 900px) {
  .roadmap-timeline { flex-direction: column; gap: 1em; }
  .gallery-grid { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
  .gallery-container { max-height: 500px; }
}

.section-divider {
  width: 100%;
  height: 2px;
  background: #aaffec33;
  margin: 3em 0 2em 0;
  border: none;
  border-radius: 1em;
}

#game-controls {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 1.2em;
  margin: 1.2em auto 0 auto;
  max-width: 340px;
  width: 100%;
}
.game-btn {
  background: #b2f7ef;
  color: #0a0f1c;
  border: none;
  border-radius: 50%;
  width: 54px;
  height: 54px;
  font-size: 2em;
  font-family: inherit;
  font-weight: bold;
  box-shadow: 0 4px 0 #7ed6c1, 0 2px 12px #b2f7ef80;
  margin: 0 0.2em;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.15s;
  outline: none;
  user-select: none;
}
.game-btn:active {
  transform: translateY(3px) scale(0.97);
  box-shadow: 0 1px 0 #7ed6c1, 0 1px 6px #b2f7ef80;
}
.game-btn:focus {
  outline: none;
}
@media (max-width: 700px) {
  #game-controls {
    max-width: 98vw;
    gap: 0.7em;
  }
  .game-btn {
    width: 44px;
    height: 44px;
    font-size: 1.4em;
  }
}
@media (max-width: 500px) {
  .game-btn {
    width: 36px;
    height: 36px;
    font-size: 1.1em;
  }
}

.game-ps {
  font-size: 0.98em;
  color: #aaffec;
  margin-top: 0.7em;
  text-align: center;
  opacity: 0.85;
}
@media (max-width: 900px) {
  .game-ps {
    display: none;
  }
}

.lore-typewriter {
  position: relative;
  overflow: hidden;
}
.lore-typewriter p {
  font-family: 'Titillium Web', 'Courier New', Courier, monospace;
  font-size: 1.15em;
  min-height: 1.5em;
  letter-spacing: 0.01em;
  margin-bottom: 0.7em;
  white-space: pre-line;
}
.lore-part {
  margin-bottom: 2.2em;
}
.lore-part:last-child {
  margin-bottom: 0;
}
.lore-part h3 {
  color: #b2f7ef;
  font-size: 1.15em;
  margin-bottom: 0.3em;
  font-weight: 700;
  letter-spacing: 0.02em;
}
@media (max-width: 700px) {
  .lore-typewriter p {
    font-size: 1em;
  }
  .lore-part h3 {
    font-size: 1em;
  }
} 
