html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: black;
  overflow: hidden;
  font-family: 'Poppins', sans-serif;
}

canvas#matrix {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  pointer-events: none;
}

canvas.threejs-canvas {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  display: none;
}

h1 {
  z-index: 2;
  position: relative;
  color: white;
  font-size: 4rem;
  text-align: center;
  top: 5%;
}

#ascii-art {
  z-index: 3;
  position: relative;
  background-color: rgb(0 0 0 / 94%);
  border-radius: 100%;
  color: rgb(32, 220, 128);
  font-family: "Inconsolata", monospace;
  font-size: 1.3vmin; /* menor */
  line-height: 0.6em;
  text-rendering: optimizeSpeed;
  white-space: pre;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0 auto;
  padding: 1rem;
}

#globe {
  height: 235px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

#panel {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 8%;
  transform: translateX(-50%);
  text-align: center;
  color: rgb(32, 220, 128);
  width: min(90vw, 420px);
}

#panel p {
  margin: 0.4rem 0;
  color: rgb(180, 255, 210);
  font-size: 0.95rem;
}

#last-payer {
  color: #fff;
  font-weight: 600;
}

#pay-btn {
  cursor: pointer;
  margin-top: 0.6rem;
  padding: 0.8rem 1.6rem;
  font-family: 'Poppins', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: #001b0d;
  background: rgb(32, 220, 128);
  border: none;
  border-radius: 999px;
  box-shadow: 0 0 20px rgba(32, 220, 128, 0.6);
  transition: transform 0.1s ease, box-shadow 0.2s ease;
}

#pay-btn:hover {
  transform: scale(1.04);
  box-shadow: 0 0 32px rgba(32, 220, 128, 0.9);
}

#pay-btn:disabled {
  opacity: 0.5;
  cursor: default;
  transform: none;
}

#status {
  min-height: 1.2rem;
  color: #ffe08a;
}

.marker {
  color: red;
  animation: blink 1s infinite;
}

.marker-red {
  color: #ff2b2b;
}

/* Marcador sobreposto ao globo: circulo perfeito, tamanho definido via JS. */
#marker-dot {
  position: fixed;
  border-radius: 50%;
  background: #ff2b2b;
  box-shadow: 0 0 6px 2px rgba(255, 43, 43, 0.85);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 5;
  display: none;
}

@keyframes blink {
  0%, 100% { opacity: 1 }
  50% { opacity: 0.2 }
}
