:root {
  --night: #05060b;
  --night-low: #0c0e19;
  --ink: #eceaf4;
  --dim: rgba(236, 234, 244, 0.5);
  --faint: rgba(236, 234, 244, 0.32);
  --line: #a9a6d6;
  --warm: #e9c58f;
  --mono: "JetBrains Mono Variable", "JetBrains Mono", ui-monospace, Menlo, monospace;
}

* { box-sizing: border-box; margin: 0; }

html, body {
  height: 100%;
  background: var(--night);
  color: var(--ink);
  font-family: var(--mono);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

.stage {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: radial-gradient(120% 80% at 50% 110%, var(--night-low), var(--night) 70%);
  touch-action: none;
  user-select: none;
  cursor: grab;
}
.stage.is-dragging { cursor: grabbing; }

.sky {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.top, .bottom {
  position: absolute;
  left: clamp(16px, 4vw, 40px);
  right: clamp(16px, 4vw, 40px);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  pointer-events: none;
}
.top { top: clamp(14px, 3.4vh, 32px); }
.bottom { bottom: clamp(14px, 3.4vh, 30px); align-items: flex-end; }

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: clamp(11px, min(1.25vw, 2.4vh), 14px);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 560;
  white-space: nowrap;
}
.brand__mark { width: 14px; height: 14px; fill: var(--ink); flex: none; }

.next, .facing, .tonight {
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-align: right;
}
.facing { text-align: left; }
.next__label, .facing__label {
  font-size: clamp(9px, min(0.9vw, 1.9vh), 11px);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--faint);
}
.next__value, .facing__value, .tonight__value {
  font-size: clamp(11px, min(1.2vw, 2.4vh), 14px);
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.facing__value { display: inline-block; min-width: 10ch; }
.tonight__value { color: var(--dim); }

.hint {
  position: absolute;
  left: 50%;
  top: 60%;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(9px, min(0.95vw, 2vh), 11px);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--dim);
  white-space: nowrap;
  pointer-events: none;
}
.hint__arrow { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }

.cursor {
  position: absolute;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  fill: #fff;
  stroke: #05060b;
  stroke-width: 1.2;
  stroke-linejoin: round;
  opacity: 0;
  pointer-events: none;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.5));
  z-index: 5;
}

@media (max-width: 560px) {
  .tonight { display: none; }
}
