/* ==========================================================================
   ASTERISMO (Cronômetro e Ferramentas)
   ========================================================================== */
.constellation-panel-container {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.constellation-panel-container h3 {
  display: none;
}
.constellation-panel-description h3 {
  display: block;
}
.constellation-panel-description {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: -0.75rem;
  margin-left: 0.75rem;
  align-self: end;
}

.constellation-panel-btns {
  display: flex;
  gap: 0.75rem;
  width: 100%;
}

.canvas-wrapper {
  width: 100%;
  max-width: 25vw;
  border: 1px solid #000;
  background-color: #fff;
  box-shadow: 5px 5px 0px rgba(0, 0, 0, 1);
}

#skyCanvas {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 1000px) {
  .constellation-panel-container {
    flex-direction: column;
    align-items: start;
    border-top: 1px solid black;
    padding-top: 10svh;
  }
  .canvas-wrapper {
    max-width: 100%;
    margin-bottom: 1.5rem;
  }
  .constellation-panel-container h3 {
    display: block;
  }
  .constellation-panel-description h3 {
    display: none;
  }
  .constellation-panel-description {
    width: 100%;
    margin-top: 0;
    margin-left: 0;
  }
  .constellation-panel-btns {
    margin-top: 0;
    flex-wrap: wrap;
  }
}

/* Modais do Cronômetro */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100svh;
  background-color: #000000;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.8s ease;
}

.modal-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.modal-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  color: white;
}

#time-display {
  color: #fff;
  font-weight: 400;
  margin-bottom: -0.3rem;
}

#btn-start-timer,
#btn-spin {
  width: 180px;
  text-align: center;
  display: inline-block;
  border-radius: 20px;
}

.dot,
#btn-open-timer,
#btn-open-roller {
  touch-action: manipulation;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

#btn-time-minus,
#btn-time-plus {
  transition: opacity 1s ease;
}

.btn-close {
  position: fixed;
  top: 1.5rem;
  right: 2rem;
  background: none;
  border: none;
  color: white;
  font-size: 3rem;
  cursor: pointer;
  line-height: 1;
  z-index: 10000;
  transition: color 0.2s ease;
  font-weight: 250;
}

.btn-close:hover,
#btn-time-plus,
#btn-time-minus {
  color: #888;
  text-decoration: none;
}

.dot-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 12px;
}

.dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: white;
  transition: background-color 0.5s ease;
}

.dot.spent {
  background-color: #111;
}

.timer-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: monospace;
  font-size: 1.5rem;
}

.time-adjust {
  background: none;
  border: 1px solid #000;
  color: white;
  padding: 0.2rem 0.8rem;
  cursor: pointer;
  font-size: 1.2rem;
}

.btn-start {
  background: white;
  color: black;
  border: none;
  padding: 0.8rem 2rem;
  font-family: "Jost", sans-serif;
  text-transform: uppercase;
  letter-spacing: 2px;
  cursor: pointer;
}
