* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Montserrat", sans-serif;
}
body {
  width: 100%;
  height: 100vh;
  background: #421bcc;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}
.screen {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  width: 100%;
  height: 100%;
  padding: 2rem;
  color: #fff;
}
.show {
  display: flex;
}
.logo {
  max-width: 500px;
  margin-bottom: 2rem;
}
button {
  background: #ffffff;
  color: #3328fe;
  border: none;
  border-radius: 6px;
  padding: 1rem 2rem;
  font-size: 1.25rem;
  cursor: pointer;
  font-weight: 700;
}
button:hover {
  opacity: 0.9;
}

form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  max-width: 420px;
}
input {
  padding: 0.8rem 1rem;
  border-radius: 6px;
  border: none;
  font-size: 1rem;
}
label {
  align-self: flex-start;
  font-size: 0.85rem;
}

.hud {
  display: flex;
  gap: 2rem;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}
.hud p {
  font-size: 0.9rem;
  letter-spacing: 1px;
}
.hud span {
  font-size: 1.8rem;
  font-weight: 700;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  width: 100vw;
  height: calc(100vh - 10rem);
  aspect-ratio: 1/1;
  padding: 0 1rem 1rem;
}
.caixa {
  position: relative;
  width: 100%;
  background: #00000055;
  border: 3px solid #111;
  border-radius: 6px;
  overflow: hidden;
  user-select: none;
  padding: 10px;
}
.caixa img {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  pointer-events: none;
}
.etiqueta {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("/css/etiqueta.png");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  transform: translateY(100%);
  transition: transform 0.45s cubic-bezier(0.165, 0.84, 0.44, 1);
  pointer-events: none;
}
.up .etiqueta {
  transform: translateY(0);
}

#countText {
  font-size: 5rem;
  font-weight: 700;
  letter-spacing: 2px;
}

#finalPoints {
  font-size: 3rem;
  font-weight: 700;
  margin: 1rem 0;
}
@media (max-width: 600px) {
  .hud {
    font-size: 1.1rem;
    gap: 1rem;
  }
  .hud span {
    font-size: 1.4rem;
  }
  button {
    font-size: 1rem;
    padding: 0.8rem 1.2rem;
  }
  #countText {
    font-size: 3.5rem;
  }
}

.promo-img {
  max-width: 600px;
  width: 80%;
  margin: 1rem auto;
  display: block;
}

.fade-sides {
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 20%,
    black 80%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 20%,
    black 80%,
    transparent 100%
  );
}

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

.grace .etiqueta {
  animation: blink 0.5s infinite;
}

.qr-ranking {
  max-width: 260px;
  width: 60%;
  display: block;
  margin: 1.5rem auto;
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 0 12px #0003;
}

.ranking {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 240px;
  font-size: 1.1rem;
}
.ranking li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid #eee;
  padding: 0.25rem 0;
}
.ranking li span:first-child {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ranking li span:last-child {
  text-align: right;
  min-width: 2ch;
}

.msg {
  font-weight: 600;
  text-align: center;
}
