* { margin: 0; padding: 0; box-sizing: border-box; }
html, body {
  min-height: 100%;
  width: 100%;
  background: #000;
  font-family: 'Orbitron', sans-serif;
  color: #f2f2f2;
  overflow-x: hidden;
  user-select: none;
}
body {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.grid-container {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  overflow: hidden;
  z-index: 0;
}
.grid-layer {
  position: absolute;
  width: 200%; height: 200%;
  background-size: 200px 200px;
  background-image:
    linear-gradient(to right, rgba(0,255,0,0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0,255,0,0.08) 1px, transparent 1px);
  filter: drop-shadow(0 0 6px rgba(0,255,0,0.3));
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.grid-layer.two {
  background-size: 300px 300px;
  opacity: 0.07;
}
.fog {
  position: absolute;
  width: 200%;
  height: 200%;
  top: -50%;
  left: -50%;
  background: radial-gradient(circle at 50% 50%, rgba(0,255,100,0.04), transparent 70%);
  filter: blur(120px);
  animation: fogMove 15s linear infinite alternate;
  z-index: -1;
}
@keyframes fogMove {
  0% { transform: translate(0,0); }
  100% { transform: translate(60px,60px); }
}

.profit {
  position: absolute;
  font-size: 1.2rem;
  font-weight: bold;
  color: rgba(0,255,100,0.6);
  opacity: 0;
  animation: floatProfit 5s linear forwards;
}
@keyframes floatProfit {
  0% { opacity: 0; transform: translateY(0) scale(0.9); }
  10% { opacity: 0.6; }
  50% { opacity: 0.6; transform: translateY(-60px) scale(1); }
  100% { opacity: 0; transform: translateY(-120px) scale(1.1); }
}

.wow-profit {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.5);
  font-size: 4rem;
  font-weight: bold;
  color: #FFD700;
  text-shadow: 0 0 20px rgba(255,215,0,0.9), 0 0 40px rgba(255,215,0,0.7);
  opacity: 0;
  z-index: 999;
  animation: wowAnim 3s ease-out forwards;
  pointer-events: none;
  user-select: none;
}
@keyframes wowAnim {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
  20% { opacity: 1; transform: translate(-50%, -50%) scale(1.3); }
  60% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.5); }
}

@keyframes neonGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.neon-text {
  background: linear-gradient(270deg, #fffb00, #ffee00, #ffd800, #fff700);
  background-size: 400% 400%;
  animation: neonGradient 3s linear infinite;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 10px rgba(255,255,0,0.8), 0 0 20px rgba(255,255,0,0.5);
}
h1 {
  font-size: 4rem;
  margin-bottom: 2rem;
  text-align: center;
  padding: 0 2rem;
}

.top-buttons {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 3rem;
  padding: 0 2rem;
}
.btn {
  width: 120px;
  height: 50px;
  background-color: rgba(0,0,0,0.4);
  border: 2px solid rgba(255,255,255,0.15);
  border-radius: 6px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  position: relative;
  color: transparent;
  background-image: linear-gradient(270deg, #fffb00, #ffee00, #ffd800);
  background-size: 400% 400%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: neonGradient 3s linear infinite;
  transition: transform 0.3s ease;
}
.btn:hover {
  transform: scale(1.05);
}
.btn::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 2px solid #ffd800;
  border-radius: 6px;
  opacity: 0;
  pointer-events: none;
}
.btn:hover::after {
  opacity: 1;
  animation: pixelPulse 0.6s infinite;
}
@keyframes pixelPulse {
  0%, 100% { box-shadow: 0 0 3px #ffd800, 0 0 6px #ffd800; }
  50% { box-shadow: 0 0 12px #ffee00, 0 0 24px #ffd800; }
}

.dice-game {
  background: rgba(0,0,0,0.6);
  padding: 2rem 2rem 0 2rem;
  border-radius: 1rem;
  text-align: center;
  width: 400px;
}
.dice-game button {
  width: 120px;
  height: 50px;
  margin-top: 1rem;
  background-color: rgba(0,0,0,0.4);
  border: 2px solid rgba(255,255,255,0.15);
  border-radius: 6px;
  font-size: 1rem;
  font-weight: bold;
  color: transparent;
  background-image: linear-gradient(270deg, #fffb00, #ffee00, #ffd800);
  background-size: 400% 400%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: neonGradient 3s linear infinite;
}
.dice-result {
  font-size: 2rem;
  margin-top: 1rem;
}

#game-container {
  width: 100%;
  max-width: 100vw;
  height: 50vh;
  margin: 0 auto 0;
  padding: 0;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
@media (min-width: 768px) {
  #game-container {
    height: 60vh;
  }
}

#game-container canvas {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  touch-action: none;
  object-fit: contain;
}

.section {
  max-width: 700px;
  margin-bottom: 4rem;
  padding: 2rem;
  background: rgba(0,0,0,0.6);
  border-radius: 1rem;
  box-shadow: 0 0 15px rgba(255,255,255,0.05);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}
.section.visible {
  opacity: 1;
  transform: translateY(0);
}
.section h2 {
  margin-bottom: 1rem;
}
#roadmap .roadmap-item {
  margin-bottom: 1.5rem;
  padding-left: 1rem;
  border-left: 3px solid #ffd800;
}
footer {
  text-align: center;
  font-size: 0.9rem;
  color: #777;
  margin-top: auto;
  padding: 1rem 0;
}
.scramble {
  display: inline-block;
  white-space: nowrap;
}