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

body {
  color: white;
  text-align: center;
  min-height: 100vh;
  overflow-x: hidden;
}

/* FUNDO GALÁXIA */
.galaxy {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, #7f5cff, transparent 40%),
    radial-gradient(circle at 70% 20%, #ff7eb3, transparent 40%),
    radial-gradient(circle at 50% 80%, #4a90e2, transparent 45%),
    linear-gradient(#040014, #12002b);
  z-index: -1;
}

/* TELAS */
.screen {
  display: none;
  min-height: 100vh;
  padding: 40px 20px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 15px;
}

.screen.active {
  display: flex;
}

/* INPUT */
input {
  padding: 10px;
  width: 220px;
  border-radius: 8px;
  border: none;
  text-align: center;
}

/* BOTÃO */
button {
  padding: 10px 20px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
}

/* GRID DE ÍCONES */
.icons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, 95px);
  gap: 18px;
  max-width: 900px;
  justify-content: center;
}

.icon {
  width: 95px;
  height: 95px;
  object-fit: contain;
  cursor: pointer;
  transition: 0.3s;
}

/* BORDA ILUMINADA */
.icon.selected {
  outline: 5px solid rgba(255,255,255,0.8);
  box-shadow: 0 0 20px rgba(255,255,255,0.9);
}

/* ESPIRAL */
.spiral {
  position: relative;
  width: 400px;
  height: 400px;
  animation: rotate 60s linear infinite;
}

.spiral img {
  position: absolute;
  width: 60px;
  height: 60px;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}