.sun-screen {
  position: relative;
  padding: 20px;
  overflow: hidden;
  background: #000;
  color: var(--text-primary);
}

.sun-screen:focus {
  border-color: transparent;
  box-shadow: none;
}

.sun-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 209, 102, 0.14), transparent 42%),
    linear-gradient(90deg, rgba(112, 231, 255, 0.08), transparent 58%);
  opacity: 0.8;
}

.sun-header,
.sun-stage,
.sun-metrics,
.sun-footer {
  position: relative;
  z-index: 1;
}

.sun-header {
  height: 70px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.sun-header h1 {
  font-size: 31px;
  line-height: 1;
}

.sun-button {
  width: 86px;
  height: 50px;
  border: 0;
  border-radius: 16px;
  background: rgba(28, 30, 33, 0.88);
  color: var(--warm);
  font-size: 18px;
  line-height: 1;
  font-weight: 950;
}

.sun-stage {
  height: 354px;
  display: grid;
  place-items: center;
  margin-top: 2px;
}

.sun-map {
  width: 420px;
  height: 300px;
  overflow: visible;
}

.sun-map text {
  fill: rgba(255, 255, 255, 0.58);
  font-size: 20px;
  font-weight: 900;
}

.horizon {
  fill: none;
  stroke: rgba(255, 255, 255, 0.22);
  stroke-width: 3;
}

.sun-arc {
  fill: none;
  stroke: rgba(255, 209, 102, 0.58);
  stroke-width: 5;
  stroke-linecap: round;
  filter: drop-shadow(0 0 10px rgba(255, 209, 102, 0.28));
}

.sun-bearing-line {
  stroke: rgba(112, 231, 255, 0.45);
  stroke-width: 2;
  stroke-dasharray: 8 8;
}

.sun-dot {
  fill: #ffd166;
  stroke: rgba(255, 255, 255, 0.86);
  stroke-width: 4;
  filter: drop-shadow(0 0 16px rgba(255, 209, 102, 0.62));
  transition: cx 260ms ease, cy 260ms ease;
}

.sun-readout {
  position: absolute;
  inset: 0;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 12px;
  text-align: center;
  pointer-events: none;
}

.sun-readout strong {
  font-size: 54px;
  line-height: 0.94;
  font-weight: 950;
  text-shadow: 0 0 18px rgba(255, 209, 102, 0.38);
}

.sun-readout span {
  color: var(--text-secondary);
  font-size: 22px;
  line-height: 1;
  font-weight: 850;
}

.sun-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.sun-metrics div {
  display: grid;
  gap: 5px;
  padding: 10px 8px;
  border-radius: 16px;
  background: rgba(12, 14, 18, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.sun-metrics span {
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1;
  font-weight: 900;
}

.sun-metrics strong {
  min-width: 0;
  color: var(--text-primary);
  font-size: 18px;
  line-height: 1;
  font-weight: 950;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
}

.sun-footer {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1;
  font-weight: 800;
}

.sun-screen[data-phase="night"] .sun-dot {
  fill: #82f4ff;
  filter: drop-shadow(0 0 12px rgba(130, 244, 255, 0.55));
}

.sun-screen[data-phase="blue"] .sun-arc {
  stroke: rgba(130, 244, 255, 0.6);
}

.sun-screen[data-phase="golden"] .sun-readout strong {
  color: var(--warm);
}
