@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

body {
  margin: 8px;
  height: 100vh;
  background: radial-gradient(circle at center, #1a0033, #000);
  color: #fff;
  font-family: 'Press Start 2P', cursive;
  overflow-x: hidden;
}

.container {
  padding-top: 15px;
}

h1 {
  font-size: clamp(0.9rem, 2vw, 0.9rem);
  background: linear-gradient(90deg, #ff00cc, #3333ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 20px #ff00ff, 0 0 40px #ff00ff;
  margin: 0 0 2rem 0;
  animation: pulse 2s infinite;
}

.rodapemini {
text-justify: unset;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 5px 0;
}

.modal-content{
	font-size: 0.7em;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.8;
  }
}

button {
  padding: 8px 12px;
  font-family: 'Press Start 2P', cursive;
  background: #ff0066;
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 6px 0 #aa0044, 0 0 15px #ff00aa;
  transition: all 0.1s;
  margin-bottom: 1rem;
  font-size: clamp(0.7rem, 1vw, 0.9rem);
  width: 100%;
}

button:hover {
  background: #0099cc;
}

button:active {
  transform: translateY(4px);
  box-shadow: 0 2px 0 #aa0044, 0 0 15px #ff00aa;
}

#resultado {
  margin-top: 20px;
  font-weight: bold;
  color: #333;
}

.scoreboard {
  width: 100%;
  background: rgba(0, 0, 0, 0.7);
  border: 4px solid #333;
  border-radius: 15px;
  padding: 15px;
  box-shadow: inset 0 0 30px #00ffff, 0 0 20px #00ffff;
  position: relative;
  overflow: hidden;
  margin-top: 1rem;
}

.scoreboard::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: repeating-linear-gradient(45deg,
      transparent,
      transparent 10px,
      rgba(255, 255, 255, 0.03) 10px,
      rgba(255, 255, 255, 0.03) 20px);
  animation: scanlines 8s linear infinite;
  pointer-events: none;
}


 .tit_minitop5 {
            font-family: 'Orbitron', sans-serif;
            color: var(--primary-color);
            margin: 0 0 5px 0;
            font-size: 1.4rem;
            text-transform: uppercase;
            letter-spacing: 3px;
            text-shadow: 0 0 15px rgba(0, 255, 204, 0.6);
        }

        .bt_play_centro {
            width: 25%;
        }

        .bt_minitop5 {
            height: auto;
            margin-top: 3px;
            line-height: 0.1rem;
        }


@keyframes scanlines {
  0% {
    transform: translate(0, 0);
  }

  100% {
    transform: translate(20px, 20px);
  }
}

.rank {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px;
  margin: 6px 0;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  font-size: 0.8rem;
  opacity: 0;
  transform: translateY(50px);
  animation: slideUp 0.8s forwards;
}

.rank:nth-child(1) {
  animation-delay: 0.1s;
  background: linear-gradient(90deg, #ffaa00, #ff6600);
  color: #000;
}

.rank:nth-child(2) {
  animation-delay: 0.3s;
  background: linear-gradient(90deg, #c0c0c0, #888);
}

.rank:nth-child(3) {
  animation-delay: 0.5s;
  background: linear-gradient(90deg, #cd7f32, #8b4513);
}

.rank:nth-child(4) {
  animation-delay: 0.7s;
}

.rank:nth-child(5) {
  animation-delay: 0.9s;
}

.position {
  font-size: 0.8rem;
  margin-right: 10px;
  min-width: 20px;
}

.player {
  flex-grow: 1;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.score {
  font-size: 0.8rem;
  text-shadow: 0 0 10px currentColor;
}

/* Game Wrapper */
#game-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

canvas {
  display: block;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(2, 6, 23, 0.7);
  cursor: none;
  width: 100% !important;
  height: auto !important;
  max-height: 80vh;
  object-fit: contain;
}

#ui {
  position: absolute;
  top: 20px;
  left: 20px;
  color: #e6eef8;
  font-size: small;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.03);
  padding: 8px 12px;
  border-radius: 10px;
  backdrop-filter: blur(6px);
  box-shadow: 0 6px 18px rgba(2, 6, 23, 0.45);
  z-index: 20;
  pointer-events: none;
}

#overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 10;
}

.panel {
  pointer-events: auto;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.02));
  padding: 20px 26px;
  border-radius: 14px;
  color: #e6eef8;
  text-align: center;
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.6);
  max-width: 90%;
}

.bemaqui {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-weight: 700;
}

@keyframes slideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.loading {
  font-size: 1rem;
  text-align: center;
  animation: blink 1.5s infinite;
  padding: 20px;
}

.linhaver {
  padding-top: 2px;
  padding-bottom: 2px;
  font-size: 0.55rem;
  height: 1.6rem !important;
  margin-bottom: 0.6vh;
}

.acordionitem {
  border-bottom: 0px;
}


.fonthistorscore {
  font-size: 0.8rem !important;
  background-color: #230a37 !important;
  color: aliceblue !important;
}

@keyframes blink {

  0%,
  100% {
    opacity: 0.4;
  }

  50% {
    opacity: 1;
  }
}