/* Mobile-first */
.modality-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
  margin-top: 0.85rem;
}

.planet-card {
  display: flex;
  align-items: center;
  min-height: 0;
  padding: 0.7rem 0.85rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 6px 14px rgba(30, 70, 90, 0.08);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.planet-card:hover,
.planet-card:focus-visible {
  outline: none;
  transform: translateY(-2px);
  border-color: rgba(90, 200, 220, 0.65);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 10px 20px rgba(40, 140, 160, 0.14);
}

.planet {
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.85rem;
  margin: 0;
  cursor: pointer;
  animation: none;
}

.planet img {
  width: 72px;
  height: auto;
  flex-shrink: 0;
  filter: drop-shadow(0 8px 14px rgba(40, 120, 150, 0.22));
  transition: transform 0.25s ease;
}

.planet-card:hover .planet img,
.planet-card:focus-visible .planet img {
  transform: scale(1.04);
}

.planet span {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  line-height: 1.25;
  color: var(--ink);
  text-align: left;
}

.hint-chip {
  display: inline-flex;
  margin-top: 0.7rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.82rem;
  color: var(--aqua-deep);
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.85);
}

.modal-dialog:not(.modal-fullscreen) .modal-content h2 {
  font-family: var(--font-display);
  color: var(--ink);
  margin-bottom: 0.85rem;
}

.modal-dialog:not(.modal-fullscreen) .modal-content .dock-btn {
  min-width: 140px;
}

@media (min-width: 769px) {
  .modality-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1.1rem;
  }

  .planet-card {
    min-height: 220px;
    padding: 1.35rem 1rem;
    border-radius: 24px;
    justify-content: center;
  }

  .planet {
    width: min(200px, 70%);
    flex-direction: column;
    margin-inline: auto;
    animation: float 5s ease-in-out infinite;
  }

  .planet img {
    width: 100%;
  }

  .planet span {
    margin-top: 0.85rem;
    text-align: center;
    font-size: 1.02rem;
  }

  @keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
  }
}

@media (max-width: 768px) {
  .stage-copy { margin-bottom: 0; }

  .modal-dialog:not(.modal-fullscreen) .modal-content .dock-btn {
    width: 100%;
    min-height: 52px;
  }
}
