* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: #05060d;
  color: #e8ebf5;
  font: 14px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

#sky {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
  cursor: grab;
}
#sky.dragging { cursor: grabbing; }
#sky.hover { cursor: pointer; }

.hud {
  position: fixed;
  top: 16px;
  left: 20px;
  pointer-events: none;
  text-shadow: 0 1px 6px #000;
}
.hud h1 {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #ffc46b;
}
.date {
  font-size: 26px;
  font-weight: 300;
  font-variant-numeric: tabular-nums;
}
.sub {
  font-size: 12px;
  color: #98a1bd;
  letter-spacing: 0.04em;
}

.chips, .bar, .info {
  background: rgba(14, 17, 32, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.chips {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 2px;
  max-width: calc(100vw - 32px);
  padding: 4px;
  border-radius: 999px;
  overflow-x: auto;
  scrollbar-width: none;
}
.chips button {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  white-space: nowrap;
}
.chips button:hover { background: rgba(255, 255, 255, 0.08); }
.chips button.active { background: rgba(255, 196, 107, 0.18); color: #ffd595; }
.chips i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex: none;
}

button {
  font: inherit;
  color: inherit;
  padding: 6px 13px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: background 0.15s;
}
button:hover { background: rgba(255, 255, 255, 0.12); }
button:focus-visible, input:focus-visible { outline: 2px solid #ffc46b; outline-offset: 2px; }
button.primary { min-width: 72px; background: #ffc46b; border-color: #ffc46b; color: #1b1405; font-weight: 600; }
button.primary:hover { background: #ffd595; }
button[aria-pressed="true"] { background: rgba(255, 196, 107, 0.18); border-color: #ffc46b; color: #ffd595; }

.bar {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 20px;
  width: max-content;
  max-width: calc(100vw - 32px);
  padding: 10px 16px;
  border-radius: 14px;
}
.group { display: flex; align-items: center; gap: 8px; }
.slider { color: #98a1bd; font-size: 12px; }
.slider input { width: 130px; accent-color: #ffc46b; }
.check { display: flex; align-items: center; gap: 5px; cursor: pointer; user-select: none; }
.check input { accent-color: #ffc46b; margin: 0; }

.info {
  position: fixed;
  top: 76px;
  right: 20px;
  width: 280px;
  max-height: calc(100vh - 200px);
  overflow-y: auto;
  padding: 16px 18px;
  border-radius: 14px;
}
.info h2 { margin: 2px 0 8px; font-size: 24px; font-weight: 500; }
.info p { margin: 0 0 12px; color: #c3c9dc; }
.info dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; }
.info dt { color: #98a1bd; }
.info dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  font-size: 18px;
  line-height: 1;
}

.hint {
  position: fixed;
  left: 20px;
  bottom: 22px;
  font-size: 12px;
  color: #98a1bd;
  pointer-events: none;
  transition: opacity 0.6s;
}
.hint.gone { opacity: 0; }

@media (max-width: 1100px) {
  .hint { display: none; }
}
@media (max-width: 640px) {
  .chips { top: 84px; left: 16px; right: 16px; transform: none; border-radius: 14px; }
  .info { top: auto; right: 16px; left: 16px; bottom: 150px; width: auto; max-height: 38vh; }
  .slider input { width: 100px; }
}
