/* Global styles */
:root {
  --primary-gradient: linear-gradient(135deg, #1e0d46, #1f285d, #1e0d46);
  --accent: #5f27cd;
  --accent-hover: #7128d4;
  --highlight-bg: rgba(255, 255, 255, 0.08);
  --stroke: rgba(255, 255, 255, 0.2);
  --text-muted: rgba(255, 255, 255, 0.7);
  font-family: 'Arial', sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--primary-gradient);
  color: #ffffff;
  line-height: 1.5;
}

.hero {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding: 60px 10%;
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.1), transparent 60%);
}

.hero-content {
  max-width: 600px;
  z-index: 1;
}

.logo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  margin-bottom: 20px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
}

.title {
  font-size: 3rem;
  margin: 0 0 10px 0;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.tagline {
  font-size: 1.1rem;
  margin: 0 0 20px 0;
  opacity: 0.9;
}

.banner {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 14px;
  background: var(--highlight-bg);
  backdrop-filter: blur(6px);
  font-weight: 700;
  margin: 10px 0 20px 0;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.countdowns {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin: 20px 0;
}

.countdown h3 {
  margin: 0 0 10px 0;
  font-size: 1.2rem;
  font-weight: 600;
}

.timer span {
  display: inline-block;
  margin-right: 12px;
  font-size: 1.4rem;
  font-weight: 700;
}

.timer small {
  font-size: 0.7rem;
  opacity: 0.7;
  text-transform: uppercase;
  margin-left: 4px;
}

.live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 20px 0;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--highlight-bg);
  backdrop-filter: blur(6px);
  font-size: 0.9rem;
  font-weight: 700;
}

.live .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #45e786;
  box-shadow: 0 0 8px #45e786;
}

.live .sep {
  opacity: 0.6;
}

.live .muted {
  opacity: 0.7;
  font-weight: 600;
}

.cta {
  display: inline-block;
  margin-top: 20px;
  padding: 14px 28px;
  border-radius: 30px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  transition: background 0.3s;
}

.cta:hover {
  background: var(--accent-hover);
}

/* Disabled state for the call‑to‑action button: reduce opacity and disable pointer events */
.cta.disabled {
  opacity: 0.5;
  pointer-events: none;
  cursor: default;
}

/* Share button styling: similar to CTA but with a subtle border and more transparency */
.share-btn {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 24px;
  border-radius: 24px;
  border: 2px solid var(--accent);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-weight: 700;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background 0.3s, box-shadow 0.3s;
}
.share-btn:hover {
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}

/* Neon lights effect overlay: large radial gradients slowly moving to create a vibrant glow */
.neon-lights {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  pointer-events: none;
  background: radial-gradient(circle at 30% 30%, rgba(255, 20, 147, 0.25), transparent 50%),
              radial-gradient(circle at 70% 80%, rgba(0, 255, 255, 0.2), transparent 50%),
              radial-gradient(circle at 80% 20%, rgba(255, 255, 0, 0.2), transparent 50%),
              radial-gradient(circle at 20% 75%, rgba(138, 43, 226, 0.3), transparent 60%);
  animation: moveNeon 40s linear infinite;
  z-index: 0;
}

@keyframes moveNeon {
  0% {
    transform: translate(0%, 0%) rotate(0deg);
  }
  50% {
    transform: translate(10%, -5%) rotate(180deg);
  }
  100% {
    transform: translate(0%, 0%) rotate(360deg);
  }
}

.hero-image img {
  width: 450px;
  max-width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.about {
  padding: 60px 10%;
  text-align: center;
  backdrop-filter: blur(4px);
}

.about h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  font-weight: 800;
}

.about p {
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
  opacity: 0.9;
}

/* Verified badge styling */
.verified {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--highlight-bg);
  backdrop-filter: blur(6px);
  font-weight: 700;
  margin: 10px 0 20px 0;
  color: #45e786;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

/* Wallet section styling */
.wallet {
  padding: 60px 10%;
  text-align: center;
  backdrop-filter: blur(4px);
}

/* Floating decorative icons within hero */
.floating-icons {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.floating-icons .icon {
  position: absolute;
  font-size: 1.6rem;
  opacity: 0.8;
  animation-name: floatIcon;
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;
}
/* Position each icon at different starting coordinates and set unique durations/delays */
.icon1 { top: 10%; left: 5%; animation-duration: 12s; animation-delay: 0s; }
.icon2 { top: 40%; left: 80%; animation-duration: 15s; animation-delay: 2s; }
.icon3 { top: 20%; left: 50%; animation-duration: 18s; animation-delay: 4s; }
.icon4 { top: 70%; left: 20%; animation-duration: 14s; animation-delay: 6s; }
.icon5 { top: 55%; left: 65%; animation-duration: 16s; animation-delay: 8s; }
.icon6 { top: 30%; left: 30%; animation-duration: 20s; animation-delay: 10s; }

/* Additional floating icons */
.icon7 { top: 80%; left: 10%; animation-duration: 22s; animation-delay: 12s; }
.icon8 { top: 65%; left: 90%; animation-duration: 25s; animation-delay: 14s; }

@keyframes floatIcon {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg);
  }
  25% {
    transform: translate(10px, -15px) rotate(10deg);
  }
  50% {
    transform: translate(-15px, 10px) rotate(-10deg);
  }
  75% {
    transform: translate(5px, -10px) rotate(5deg);
  }
}

/* Fade‑in sections: hidden by default, become visible on scroll */
.fade-section.hidden {
  opacity: 0;
  transform: translateY(30px);
}
.fade-section.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.wallet-title {
  font-size: 1.6rem;
  font-weight: 800;
  margin: 0 0 10px 0;
}

.wallet-desc {
  font-size: 1.1rem;
  margin: 0 0 20px 0;
  opacity: 0.9;
}

.address-container {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--highlight-bg);
  padding: 8px 12px;
  border-radius: 12px;
  margin-bottom: 16px;
  backdrop-filter: blur(6px);
}

.address {
  font-family: monospace;
  font-size: 0.95rem;
  word-break: break-all;
}

.copy-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 4px 8px;
  cursor: pointer;
  font-weight: 700;
  transition: background 0.3s;
}

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

.wallet-stats .amount {
  font-size: 2rem;
  font-weight: 800;
  display: block;
  margin-bottom: 12px;
}

.progress {
  width: 100%;
  max-width: 500px;
  height: 12px;
  background: var(--highlight-bg);
  border-radius: 999px;
  margin: 0 auto 10px auto;
  overflow: hidden;
  backdrop-filter: blur(6px);
}

.progress-bar {
  width: 0%;
  height: 100%;
  background: var(--accent);
  border-radius: inherit;
  transition: width 0.5s ease-out;
}

.wallet-note {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Game section styles */
.game {
  padding: 60px 10%;
  text-align: center;
  backdrop-filter: blur(4px);
}

.game-title {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.game-instruction {
  font-size: 1rem;
  margin-bottom: 20px;
  opacity: 0.9;
}

#gameCanvas {
  background: var(--highlight-bg);
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  margin: 20px auto;
  display: block;
  /* Ensure the canvas adapts to the container width and is capped at 600px on desktop. */
  width: 100%;
  max-width: 600px;
}

.score-display {
  font-size: 1.2rem;
  margin-bottom: 10px;
  font-weight: 700;
}

.total-display {
  font-size: 1rem;
  margin-bottom: 10px;
  font-weight: 600;
}

.game-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 10px 20px;
  margin: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.3s;
}

.game-btn:hover {
  background: var(--accent-hover);
}

.game-over {
  margin-top: 20px;
}

.game-over.hidden {
  display: none;
}

#leaderboard {
  max-width: 400px;
  margin: 0 auto;
  padding: 0;
  list-style: decimal inside;
  text-align: left;
}

#leaderboard li {
  margin: 4px 0;
  font-weight: 600;
}

/* Comments section styles */
.comments {
  padding: 60px 10%;
  text-align: center;
  backdrop-filter: blur(4px);
}
.comments h2 {
  font-size: 1.8rem;
  margin-bottom: 10px;
  font-weight: 800;
}
.rating {
  font-size: 1.1rem;
  margin-bottom: 20px;
  font-weight: 700;
}
.stars {
  color: #ffd700;
  font-family: inherit;
  letter-spacing: 2px;
}
#commentsContainer {
  max-width: 700px;
  margin: 0 auto;
  text-align: left;
}
.comment {
  background: var(--highlight-bg);
  backdrop-filter: blur(6px);
  padding: 16px;
  margin-bottom: 12px;
  border-radius: 14px;
  font-style: italic;
  color: #ffffff;
}
.comment em {
  font-style: normal;
  opacity: 0.7;
}
.comment-form-title {
  font-size: 1.4rem;
  margin-top: 30px;
  margin-bottom: 10px;
  font-weight: 700;
}
.comment-form {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
}
.comment-input,
.comment-text,
.comment-rating {
  padding: 8px 12px;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 0.95rem;
  backdrop-filter: blur(4px);
}
.comment-input::placeholder,
.comment-text::placeholder {
  color: var(--text-muted);
}
.rating-label {
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}
.comment-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 10px 20px;
  font-weight: 700;
  cursor: pointer;
  align-self: flex-start;
  transition: background 0.3s;
}
.comment-btn:hover {
  background: var(--accent-hover);
}

/* Responsive adjustments for mobile screens */
@media (max-width: 600px) {
  .hero {
    padding: 40px 5%;
  }
  .logo {
    width: 100px;
    height: 100px;
    margin-bottom: 10px;
  }
  .title {
    font-size: 2.2rem;
  }
  .tagline {
    font-size: 0.9rem;
  }
  .banner {
    font-size: 0.9rem;
    padding: 10px 16px;
  }
  .cta,
  .share-btn {
    padding: 10px 18px;
    font-size: 0.9rem;
  }
  .hero-image img {
    width: 90%;
    border-radius: 16px;
  }
  #gameCanvas {
    width: 100%;
    max-width: none;
  }
  .game-title {
    font-size: 1.4rem;
  }
  .game-instruction {
    font-size: 0.9rem;
  }
  .game-btn {
    font-size: 0.9rem;
    padding: 8px 16px;
  }
  .wallet, .about, .game, .comments {
    padding: 40px 5%;
  }
}

#playerName {
  padding: 8px 12px;
  border-radius: 6px;
  border: none;
  margin-bottom: 10px;
  width: 220px;
}

@media (max-width: 900px) {
  .hero {
    flex-direction: column;
    align-items: center;
  }
  .hero-image {
    margin-top: 40px;
  }
}