/* Galaxy Dot — a dark theater screen for a single black dot. */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  background: #252528;
  color: #c9c9ce;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  overflow: hidden;
}
.topbar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.9rem;
  background: #252528;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex: 0 0 auto;
}
.nav {
  display: flex;
  gap: 0.15rem;
  overflow-x: auto;
  scrollbar-width: none;
  flex: 1 1 auto;
}
.nav::-webkit-scrollbar { display: none; }
.nav a {
  color: #8e8e94;
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  padding: 0.35rem 0.55rem;
  white-space: nowrap;
  border-radius: 6px;
}
.nav a:hover { color: #d7d7dc; }
.nav a.active {
  color: #f4f4f6;
  text-decoration: underline;
  text-decoration-color: rgba(244, 244, 246, 0.45);
  text-underline-offset: 4px;
}
.nav a:focus-visible, .sound:focus-visible {
  outline: 2px solid #f4f4f6;
  outline-offset: 2px;
}
.sound {
  flex: 0 0 auto;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #a9a9af;
  font: inherit;
  font-size: 0.78rem;
  padding: 0.32rem 0.6rem;
  border-radius: 999px;
  cursor: pointer;
}
.sound:hover { color: #e8e8ec; border-color: rgba(255, 255, 255, 0.35); }
.stage {
  position: relative;
  flex: 1 1 auto;
  overflow: hidden;
}
.dot {
  position: absolute;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #000;
  visibility: hidden;
}
.dot.placed { visibility: visible; }
@media (max-width: 640px) {
  .topbar { padding: 0.45rem 0.6rem; }
  .nav a { font-size: 0.8rem; padding: 0.3rem 0.45rem; }
  .sound { font-size: 0.72rem; padding: 0.28rem 0.5rem; }
}
