* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  background: #000;
  color: #f2f2f2;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

#particulas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

main {
  position: relative;
  z-index: 1;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 20px;
  gap: 28px;
}

/* ---- a imagem ---- */
.imagem {
  width: min(220px, 55vw);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}
.imagem img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 28px rgba(255, 255, 255, .18));
  animation: flutuar 6s ease-in-out infinite;
}
.imagem .vazia {
  width: 100%;
  height: 100%;
  border: 2px dashed rgba(255, 255, 255, .22);
  border-radius: 24px;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, .35);
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
}
@keyframes flutuar {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

h1 {
  font-size: clamp(34px, 7vw, 64px);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.05;
  text-shadow: 0 0 40px rgba(255, 255, 255, .15);
}
.sub {
  color: rgba(255, 255, 255, .6);
  font-size: clamp(15px, 2.4vw, 18px);
  margin-top: 10px;
}

/* ---- o IP ---- */
.ip {
  display: flex;
  align-items: stretch;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, .04);
  backdrop-filter: blur(6px);
  max-width: 100%;
}
.ip code {
  font-family: Consolas, "Courier New", monospace;
  font-size: clamp(17px, 3.4vw, 22px);
  padding: 16px 22px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  user-select: all;
}
.ip button {
  border: 0;
  border-left: 1px solid rgba(255, 255, 255, .18);
  background: #fff;
  color: #000;
  font-weight: 700;
  font-size: 15px;
  padding: 0 22px;
  cursor: pointer;
  transition: background .2s;
  white-space: nowrap;
}
.ip button:hover { background: #dcdcdc; }
.ip button.feito { background: #4ade80; }

/* ---- quantos online ---- */
.online {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  color: rgba(255, 255, 255, .8);
}
.online b { color: #fff; font-size: 20px; }
.ponto {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 0 rgba(74, 222, 128, .6);
  animation: pulsar 2s infinite;
}
.ponto.desligado { background: #f87171; animation: none; }
@keyframes pulsar {
  0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, .6); }
  70% { box-shadow: 0 0 0 12px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

.versoes {
  font-size: 13px;
  color: rgba(255, 255, 255, .45);
  letter-spacing: .5px;
}

/* ---- verificado ---- */
.visto {
  width: 96px;
  height: 96px;
}
.visto circle {
  fill: none;
  stroke: #fff;
  stroke-width: 3;
  stroke-dasharray: 290;
  stroke-dashoffset: 290;
  animation: desenhar .9s ease-out forwards;
}
.visto path {
  fill: none;
  stroke: #fff;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  animation: desenhar .5s .7s ease-out forwards;
}
.visto.erro circle, .visto.erro path { stroke: #f87171; }
@keyframes desenhar { to { stroke-dashoffset: 0; } }

.fechar {
  color: rgba(255, 255, 255, .55);
  font-size: 15px;
}
a.voltar {
  color: rgba(255, 255, 255, .7);
  font-size: 14px;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, .25);
  padding-bottom: 2px;
}
a.voltar:hover { color: #fff; border-color: #fff; }

footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 18px;
  font-size: 12px;
  color: rgba(255, 255, 255, .3);
}

@media (prefers-reduced-motion: reduce) {
  .imagem img, .ponto { animation: none; }
}

/* Telemovel: o IP e o botao cabem na largura sem empurrar a pagina para o lado. */
.ip { width: min(440px, 100%); }
.ip code { flex: 1; min-width: 0; text-align: center; }
@media (max-width: 480px) {
  main { padding: 36px 16px; gap: 22px; }
  .ip code { padding: 14px 12px; font-size: 16px; }
  .ip button { padding: 0 14px; font-size: 14px; }
  .sub { font-size: 14px; }
}
