/* RESET E BASE */
* {
  box-sizing: border-box;
}

body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  margin: 0;
  font-family: Arial, sans-serif;
  text-align: center;
  background-color: #000;
  color: #fff;
  padding: 20px; /* dá um respiro nas telas pequenas */
}

h1 {
  font-size: clamp(1.5em, 5vw, 2.5em); /* tamanho responsivo entre 1.5em e 2.5em */
  margin: 0.2em;
}

#emoji {
  font-size: clamp(2em, 10vw, 4em);
  margin-top: 0.5em;
}

/* TOCA-DISCO */
.toca-disco-container {
  margin-top: 30px;
  text-align: center;
  width: 100%;
  max-width: 350px; /* limite para telas grandes */
}

.base-toca-disco {
  background: #444;
  padding: 20px;
  border-radius: 20px;
  display: inline-block;
  box-shadow: inset 0 0 10px #222;
  width: 100%; /* ocupa todo o container */
}

.disco {
  width: 100%;
  aspect-ratio: 1 / 1; /* mantém disco quadrado */
  max-width: 300px;
  background: radial-gradient(circle, #222 40%, #000 100%);
  border: 8px solid #bbb;
  border-radius: 50%;
  position: relative;
  margin: 0 auto;
  cursor: pointer;
  overflow: hidden;
}

.disco.girando {
  animation: girar 3s linear infinite;
}

@keyframes girar {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.svg-texto {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.centro {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12%;
  max-width: 40px;
  aspect-ratio: 1 / 1;
  background: #666;
  border: 2px solid #999;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}

.instrucoes {
  margin-top: 15px;
  font-size: clamp(0.9em, 4vw, 1.2em);
}

/* MEDIA QUERY EXTRA PARA CELULAR */
@media (max-width: 400px) {
  body {
    padding: 10px;
  }

  .toca-disco-container {
    max-width: 95%;
  }
}
