* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Georgia, "Times New Roman", serif;
  color: white;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 0%, #75183f 0%, #390b25 45%, #100510 100%);
  overflow-x: hidden;
}

.stars {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.star {
  position: absolute;
  top: -25px;
  color: white;
  opacity: 0.8;
  animation: falling linear infinite;
  text-shadow: 0 0 8px white, 0 0 16px #ffb6d5;
}

@keyframes falling {
  0% {
    transform: translateY(-10vh) rotate(0deg);
    opacity: 0;
  }

  10% {
    opacity: 0.9;
  }

  100% {
    transform: translateY(110vh) rotate(360deg);
    opacity: 0;
  }
}

.page {
  position: relative;
  z-index: 1;
  display: none;
  min-height: 100vh;
  width: 100%;
  padding: 35px 18px;
  animation: fadeIn 0.7s ease;
}

.page.active {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

h1 {
  font-size: clamp(2rem, 7vw, 3.4rem);
  font-weight: normal;
  font-style: italic;
  text-shadow: 0 0 18px #ffb6d5;
  margin-bottom: 15px;
}

h2 {
  font-weight: normal;
  font-style: italic;
}

p {
  line-height: 1.8;
}

.subtitle {
  font-style: italic;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

/* Circular star orbits */

.orbit-system {
  position: relative;
  width: min(82vw, 340px);
  height: min(82vw, 340px);
  margin: 20px auto;
  flex-shrink: 0;
}

.orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px solid rgba(255, 210, 232, 0.4);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 12px rgba(255, 160, 210, 0.12);
}

.orbit-one {
  width: 42%;
  height: 42%;
}

.orbit-two {
  width: 70%;
  height: 70%;
}

.orbit-three {
  width: 98%;
  height: 98%;
}

.orbit-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 38px;
  filter: drop-shadow(0 0 12px #ffb6d5);
}

.orbiting-star {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  animation: orbit-spin 8s linear infinite;
  pointer-events: none;
}

.orbiting-star::before {
  content: "✦";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 17px;
  text-shadow: 0 0 8px white, 0 0 18px #ff8cbd;
}

.orbit-two .orbiting-star {
  animation-duration: 13s;
  animation-direction: reverse;
}

.orbit-three .orbiting-star {
  animation-duration: 19s;
}

@keyframes orbit-spin {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* Buttons */

button {
  border: 1px solid #ffb6d5;
  background: linear-gradient(135deg, #701b43, #a83265);
  color: white;
  padding: 13px 23px;
  margin: 8px;
  border-radius: 30px;
  font-family: inherit;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 0 15px #a832654d;
  transition: 0.25s;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 22px #ff8cbd99;
}

button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

/* Galaxy days */

.days-grid {
  width: 100%;
  max-width: 650px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 25px auto;
}

.day-button {
  min-height: 65px;
  padding: 10px 5px;
  border: 1px solid #e9a2c4;
  border-radius: 15px;
  background: #4a102dba;
  color: white;
  font-family: inherit;
  font-size: 1rem;
  font-style: italic;
}

.day-button.completed {
  background: linear-gradient(135deg, #8c2858, #51152f);
  box-shadow: 0 0 15px #ffb6d566;
}

.day-button.locked {
  opacity: 0.45;
}

.message {
  min-height: 28px;
  color: #ffd1e5;
  font-style: italic;
}

.day-label {
  font-style: italic;
  letter-spacing: 2px;
  color: #ffd1e5;
}

/* Games */

#gameArea {
  width: 100%;
  max-width: 500px;
  margin: 20px auto;
}

.game-option {
  display: block;
  width: 100%;
  margin: 10px 0;
}

.game-symbol {
  display: inline-block;
  padding: 12px;
  margin: 5px;
  min-width: 48px;
  border: 1px solid #e9a2c4;
  border-radius: 12px;
  background: #4a102d;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Letters */

.letter {
  width: 100%;
  max-width: 700px;
  padding: 28px 23px;
  margin: 20px auto;
  border: 1px solid #d78aaf;
  border-radius: 18px;
  background: #31091fdb;
  color: #fff;
  font-size: 1.12rem;
  line-height: 2;
  font-style: italic;
  text-align: left;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  box-shadow: 0 0 25px #d84e8a30;
}

/* Voice notes */

.voice-section {
  width: 100%;
  max-width: 550px;
  margin: 20px auto;
  padding: 20px;
  border: 1px solid #a84b75;
  border-radius: 18px;
  background: #30091eaa;
}

input[type="file"] {
  display: block;
  max-width: 100%;
  margin: 15px auto;
  color: white;
}

audio {
  width: 100%;
  max-width: 400px;
  margin-top: 10px;
}

.small-note {
  font-size: 0.85rem;
  opacity: 0.75;
}

[hidden] {
  display: none !important;
}

@media (max-width: 480px) {
  .days-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .day-button {
    min-height: 58px;
    font-size: 0.9rem;
  }

  .page {
    padding: 30px 14px;
  }

  .letter {
    padding: 20px 16px;
    font-size: 1rem;
  }
}