
.canvas-container {
    position: relative;
}

#rotatingCanvas,
#staticCanvas {
    position: absolute;
    left: 0px;
}

#rotatingCanvas {
    z-index: 1; /* Place staticCanvas on top of rotatingCanvas */
}

#stars-container {
    display: flex;
    justify-content: center;
    gap: 25px;
    padding: 10px;
}

.star {
    position: relative; /* Enable positioning for the pseudo-element */
    width: 100px;
    height: 100px;
    background-color: rgba(235, 233, 233, 0.959);
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    z-index: 1;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.star.active {
    /*background-color: gold;*/
    transform: scale(1.25);
    box-shadow: 0 0 10px rgba(255, 223, 0, 0.8);
}


#demo {
  width: 100%;
  min-height: 80vh;
  /* width: 100vw;
  max-width: none;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw); */
}

.dot-demo-shell {
  min-height: 80vh;
  padding: 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.dot-canvas-wrap {
  position: relative;
  overflow: hidden;
  touch-action: none;
}


.dot-finish-panel {
  margin-top: 18px;
  padding: 18px 22px;
  max-width: 640px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.10);
  text-align: center;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

#dot-next-button {
  margin-top: 10px;
  padding: 8px 14px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 8px;
  border: 1px solid #333;
  background: white;
  cursor: pointer;
}

.dot-demo-shell {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.dot-action-button {
  margin-bottom: 12px;
  padding: 14px 28px;
  font-size: 18px;
  font-weight: 600;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #6c5ce7, #8e7dff);
  color: white;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(108, 92, 231, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.dot-action-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(108, 92, 231, 0.35);
}

.dot-action-button:active {
  transform: translateY(0);
}