.hp {
  --hp-bg: #070811;
  --hp-panel: #0d101c;
  --hp-panel-2: #121727;
  --hp-line: rgba(213, 190, 132, .2);
  --hp-gold: #dfbd69;
  --hp-cream: #f7f1e4;
  --hp-muted: #a8aec0;
  --hp-planet: #efc76c;
  color: var(--hp-cream);
  overflow: hidden;
  border: 1px solid rgba(222, 197, 131, .14);
  border-radius: 24px;
  background:
    radial-gradient(circle at 8% 28%, rgba(45, 60, 105, .16), transparent 28rem),
    radial-gradient(circle at 92% 72%, rgba(109, 67, 91, .12), transparent 30rem),
    var(--hp-bg);
  box-shadow: 0 28px 85px rgba(0, 0, 0, .34);
  font-family: inherit;
}

.hp *, .hp *::before, .hp *::after { box-sizing: border-box; }
.hp [hidden] { display: none !important; }
.hp button, .hp select { font: inherit; }
.hp button { -webkit-tap-highlight-color: transparent; }
.hp h2, .hp h3, .hp p { margin-top: 0; }

.hp-kicker {
  display: block;
  color: var(--hp-gold);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .18em;
  line-height: 1.35;
  text-transform: uppercase;
}

.hp-hero {
  position: relative;
  min-height: clamp(450px, 58vw, 690px);
  display: grid;
  align-items: end;
  isolation: isolate;
  overflow: hidden;
  border-bottom: 1px solid rgba(226, 201, 134, .16);
}

.hp-hero > img {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 50%;
  filter: saturate(.88) contrast(1.04);
}

.hp-hero-veil {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(4, 5, 11, .05) 8%, rgba(4, 5, 11, .34) 49%, #070811 100%),
    linear-gradient(90deg, rgba(4, 5, 11, .88) 0, rgba(4, 5, 11, .48) 38%, rgba(4, 5, 11, .14) 71%, rgba(4, 5, 11, .18));
}

.hp-hero-copy {
  width: min(650px, 90%);
  padding: clamp(38px, 6.5vw, 76px);
  text-shadow: 0 3px 24px #000;
}

.hp-hero h2,
.hp-picker h2,
.hp-live-head h2,
.hp-nearby h3,
.hp-guide h3 {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 500;
  letter-spacing: -.028em;
}

.hp-hero h2 {
  max-width: 610px;
  margin: 12px 0 17px;
  font-size: clamp(2.7rem, 6.2vw, 5.2rem);
  line-height: .96;
}

.hp-hero-copy > p {
  max-width: 590px;
  margin-bottom: 25px;
  color: #e6e5e4;
  font-size: clamp(1rem, 1.7vw, 1.18rem);
  line-height: 1.65;
}

.hp-hero-points { display: flex; flex-wrap: wrap; gap: 8px; }
.hp-hero-points span {
  padding: 7px 11px;
  border: 1px solid rgba(235, 218, 176, .24);
  border-radius: 999px;
  background: rgba(7, 8, 17, .6);
  color: #f2eee5;
  font-size: .75rem;
  letter-spacing: .04em;
  backdrop-filter: blur(8px);
}

.hp-body { padding: clamp(38px, 6vw, 76px) clamp(18px, 5vw, 68px); }
.hp-picker, .hp-live { width: min(980px, 100%); margin: 0 auto; }
.hp-live:focus { outline: none; }
.hp-picker > header, .hp-live-head { max-width: 710px; margin: 0 auto 30px; text-align: center; }
.hp-picker h2, .hp-live-head h2 {
  margin: 9px 0 12px;
  font-size: clamp(2.05rem, 4.9vw, 3.55rem);
  line-height: 1.04;
}
.hp-picker header p, .hp-planet-tagline { color: var(--hp-muted); line-height: 1.68; }

.hp-form {
  width: min(760px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 12px;
  margin: 0 auto;
  padding: 18px;
  border: 1px solid var(--hp-line);
  border-radius: 18px;
  background: linear-gradient(150deg, rgba(20, 24, 39, .96), rgba(10, 12, 21, .96));
  box-shadow: 0 18px 46px rgba(0, 0, 0, .22);
}

.hp-form label { min-width: 0; }
.hp-form label > span {
  display: block;
  margin: 0 0 7px 3px;
  color: #ded7c7;
  font-size: .73rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.hp-form select {
  width: 100%;
  min-height: 54px;
  padding: 0 44px 0 15px;
  border: 1px solid rgba(204, 211, 230, .23);
  border-radius: 12px;
  outline: none;
  background-color: #0a0d17;
  color: #f7f2e7;
  color-scheme: dark;
}
.hp-form select:focus { border-color: var(--hp-gold); box-shadow: 0 0 0 3px rgba(223, 189, 105, .12); }

.hp-primary, .hp-share, .hp-change-city {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 22px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
  transition: transform .2s ease, border-color .2s ease, filter .2s ease, background .2s ease;
}

.hp-primary {
  border: 1px solid #efcf7a;
  background: linear-gradient(135deg, #ebce7c, #b9883c);
  color: #161108;
  box-shadow: 0 12px 30px rgba(184, 135, 56, .18);
}
.hp-primary:hover, .hp-share:hover, .hp-change-city:hover { transform: translateY(-2px); filter: brightness(1.06); }
.hp-primary:focus-visible, .hp-share:focus-visible, .hp-change-city:focus-visible, .hp-schedule summary:focus-visible { outline: 2px solid #f4d788; outline-offset: 3px; }

.hp-remember, .hp-form-error {
  width: min(700px, 100%);
  margin: 12px auto 0;
  color: #7f879a;
  font-size: .77rem;
  line-height: 1.55;
  text-align: center;
}
.hp-form-error { color: #ef9f8f; }

.hp-live { padding-top: clamp(58px, 8vw, 96px); }
.hp-live-head { margin-bottom: 38px; }
.hp-live-head h2 { color: var(--hp-planet); transition: color .35s ease; }
.hp-planet-tagline { margin-bottom: 0; font-size: 1.04rem; }

.hp-now {
  display: grid;
  grid-template-columns: minmax(300px, .92fr) minmax(320px, 1.08fr);
  align-items: center;
  gap: clamp(30px, 6vw, 70px);
  padding: clamp(24px, 4vw, 46px);
  border: 1px solid color-mix(in srgb, var(--hp-planet) 36%, transparent);
  border-radius: 26px;
  background:
    radial-gradient(circle at 19% 48%, color-mix(in srgb, var(--hp-planet) 13%, transparent), transparent 39%),
    linear-gradient(140deg, rgba(18, 22, 37, .96), rgba(8, 10, 18, .98));
  box-shadow: 0 25px 70px rgba(0, 0, 0, .28), inset 0 1px rgba(255, 255, 255, .025);
  transition: border-color .35s ease, background .35s ease;
}

.hp-dial {
  position: relative;
  width: min(100%, 390px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  margin: 0 auto;
  border: 1px solid color-mix(in srgb, var(--hp-planet) 56%, transparent);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(17, 22, 37, .97) 0 46%, transparent 46.5%),
    repeating-radial-gradient(circle, transparent 0 15%, rgba(221, 197, 136, .08) 15.4% 15.9%, transparent 16.2% 24%);
  box-shadow: inset 0 0 55px rgba(0, 0, 0, .66), 0 0 50px color-mix(in srgb, var(--hp-planet) 8%, transparent);
}

.hp-dial::before, .hp-dial::after {
  content: '';
  position: absolute;
  border: 1px solid rgba(222, 198, 139, .18);
  border-radius: 50%;
}
.hp-dial::before { inset: 5%; }
.hp-dial::after { inset: 13%; border-style: dashed; opacity: .65; }

.hp-dial-progress {
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  background: conic-gradient(var(--hp-planet) var(--hp-progress-angle, 0deg), rgba(255,255,255,.055) 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4px));
  filter: drop-shadow(0 0 8px color-mix(in srgb, var(--hp-planet) 40%, transparent));
}

.hp-ticks { position: absolute; inset: 0; }
.hp-tick {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1px;
  height: 44%;
  transform: translate(-50%, -100%) rotate(calc(var(--i) * 15deg));
  transform-origin: 50% 100%;
  background: linear-gradient(transparent 0 84%, rgba(219, 210, 190, .32) 84% 100%);
}
.hp-tick.is-night { opacity: .56; }
.hp-tick.is-current { width: 2px; background: linear-gradient(transparent 0 72%, var(--hp-planet) 72% 100%); opacity: 1; }

.hp-dial-core {
  position: relative;
  z-index: 2;
  width: 45%;
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid color-mix(in srgb, var(--hp-planet) 48%, transparent);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 38%, color-mix(in srgb, var(--hp-planet) 14%, #111725), #080a12 72%);
  box-shadow: 0 0 42px rgba(0,0,0,.4), inset 0 0 28px color-mix(in srgb, var(--hp-planet) 8%, transparent);
  text-align: center;
}
.hp-symbol { color: var(--hp-planet); font-family: Georgia, serif; font-size: clamp(2.8rem, 6vw, 4.5rem); line-height: .92; }
.hp-planet-short { margin-top: 6px; color: #f5efe3; font-family: Georgia, serif; font-size: clamp(1rem, 2.4vw, 1.35rem); font-weight: 500; }
.hp-period { max-width: 110px; margin-top: 4px; color: #8d95a7; font-size: .67rem; line-height: 1.3; }
.hp-sun-mark, .hp-moon-mark {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(224, 199, 131, .28);
  border-radius: 50%;
  background: #0b0e18;
  color: #d8bd78;
  font-size: 1rem;
  transform: translateY(-50%);
}
.hp-sun-mark { left: -17px; }
.hp-moon-mark { right: -17px; color: #b7c8e7; }

.hp-now-copy { min-width: 0; }
.hp-local-clock {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  gap: 3px 12px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(218, 205, 173, .14);
}
.hp-local-clock > span { color: var(--hp-gold); font-size: .68rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.hp-clock { grid-row: span 2; color: #faf5ea; font-family: Georgia, serif; font-size: clamp(2.5rem, 5.8vw, 4.3rem); font-weight: 400; line-height: .95; text-align: right; font-variant-numeric: tabular-nums; }
.hp-date { color: #9098a9; font-size: .83rem; text-transform: capitalize; }
.hp-description { margin: 22px 0 18px; color: #d8d9df; font-size: 1rem; line-height: 1.75; }
.hp-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.hp-chips span {
  padding: 6px 9px;
  border: 1px solid rgba(215, 204, 179, .16);
  border-radius: 999px;
  background: rgba(255,255,255,.025);
  color: #b9bdc8;
  font-size: .73rem;
}

.hp-change {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
  padding: 14px 15px;
  border: 1px solid color-mix(in srgb, var(--hp-planet) 27%, transparent);
  border-radius: 15px;
  background: rgba(5, 7, 13, .42);
}
.hp-next-symbol { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--hp-line); border-radius: 50%; color: var(--hp-planet); font-family: Georgia, serif; font-size: 1.55rem; }
.hp-change div { min-width: 0; }
.hp-change small { display: block; color: #9299a9; font-size: .72rem; }
.hp-change strong { display: block; margin-top: 2px; color: #f1ecdf; font-family: Georgia, serif; font-size: 1.05rem; font-weight: 500; }
.hp-countdown { color: var(--hp-planet); font-size: .78rem; font-variant-numeric: tabular-nums; white-space: nowrap; }

.hp-associations {
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  gap: 13px;
  margin-top: 14px;
}
.hp-associations section {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border: 1px solid rgba(202, 208, 224, .15);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(17, 21, 34, .92), rgba(9, 11, 19, .96));
}
.hp-associations section:first-child { border-color: color-mix(in srgb, var(--hp-planet) 32%, transparent); }
.hp-card-number { position: absolute; top: 14px; right: 17px; color: rgba(228, 230, 238, .12); font-family: Georgia, serif; font-size: 1.25rem; }
.hp-associations h3 { margin: 0 0 15px; color: var(--hp-gold); font-size: .72rem; letter-spacing: .13em; text-transform: uppercase; }
.hp-associations ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.hp-associations li { padding: 8px 10px; border: 1px solid rgba(210, 217, 232, .13); border-radius: 10px; background: rgba(255,255,255,.022); color: #d6d8df; font-size: .82rem; line-height: 1.35; }

.hp-solar-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.hp-solar-facts article {
  min-width: 0;
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 1px 8px;
  padding: 15px;
  border: 1px solid rgba(202, 208, 224, .13);
  border-radius: 14px;
  background: rgba(13, 16, 28, .78);
}
.hp-solar-facts article > span { grid-row: span 2; align-self: center; color: var(--hp-gold); font-size: 1.15rem; }
.hp-solar-facts small { color: #858d9f; font-size: .67rem; text-transform: uppercase; }
.hp-solar-facts strong { color: #eee9df; font-size: .88rem; font-weight: 700; }

.hp-nearby { margin-top: clamp(46px, 7vw, 72px); }
.hp-nearby > header { margin-bottom: 18px; }
.hp-nearby h3 { margin: 7px 0 0; font-size: clamp(1.7rem, 3.8vw, 2.55rem); }
.hp-nearby-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; }
.hp-near-card {
  position: relative;
  min-width: 0;
  padding: 19px;
  border: 1px solid rgba(202, 208, 224, .14);
  border-radius: 16px;
  background: rgba(12, 15, 26, .88);
}
.hp-near-card.is-current { border-color: var(--hp-planet); background: linear-gradient(145deg, color-mix(in srgb, var(--hp-planet) 10%, #121624), #0a0c15); }
.hp-near-card small { color: #838b9d; font-size: .67rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.hp-near-card div { display: flex; align-items: center; gap: 8px; margin-top: 11px; }
.hp-near-card b { color: var(--near-color); font-family: Georgia, serif; font-size: 1.7rem; font-weight: 400; }
.hp-near-card strong { color: #f2ede3; font-family: Georgia, serif; font-size: 1.08rem; font-weight: 500; }
.hp-near-card time { display: block; margin-top: 8px; color: #9da4b3; font-size: .78rem; }

.hp-schedule {
  margin-top: 15px;
  border: 1px solid rgba(206, 211, 226, .15);
  border-radius: 18px;
  background: rgba(10, 12, 21, .82);
}
.hp-schedule summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 19px 21px;
  color: #eee9df;
  cursor: pointer;
  font-weight: 800;
  list-style: none;
}
.hp-schedule summary::-webkit-details-marker { display: none; }
.hp-schedule summary span { color: var(--hp-gold); font-size: 1.2rem; transition: transform .2s ease; }
.hp-schedule[open] summary span { transform: rotate(45deg); }
.hp-schedule-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 0 15px 15px; }
.hp-schedule-grid > section { padding: 15px; border: 1px solid rgba(205, 211, 227, .1); border-radius: 14px; background: rgba(255,255,255,.018); }
.hp-schedule-grid h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; color: #d8d2c7; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; }
.hp-schedule-grid h3 span { color: var(--hp-gold); font-size: 1rem; }
.hp-schedule ol { margin: 0; padding: 0; list-style: none; }
.hp-schedule-row {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 9px;
  padding: 9px 7px;
  border-top: 1px solid rgba(218, 222, 232, .075);
}
.hp-schedule-row:first-child { border-top: 0; }
.hp-schedule-row.is-current { margin: 1px -4px; padding-inline: 11px; border: 1px solid color-mix(in srgb, var(--hp-planet) 36%, transparent); border-radius: 10px; background: color-mix(in srgb, var(--hp-planet) 7%, transparent); }
.hp-schedule-index { color: #71798b; font-size: .67rem; font-weight: 800; }
.hp-schedule-planet { display: flex; align-items: center; gap: 7px; min-width: 0; color: #e6e1d8; font-size: .81rem; }
.hp-schedule-planet b { color: var(--row-color); font-family: Georgia, serif; font-size: 1.08rem; font-weight: 400; }
.hp-schedule-row time { color: #8f97a7; font-size: .72rem; font-variant-numeric: tabular-nums; white-space: nowrap; }

.hp-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.hp-share { border: 1px solid #d9b85f; background: rgba(217, 184, 95, .08); color: #ead08b; }
.hp-change-city { border: 1px solid rgba(194, 202, 221, .24); background: rgba(255,255,255,.025); color: #c4c9d5; }
.hp-share-status { min-height: 1.4em; margin: 11px 0 0; color: #9fa7b8; font-size: .78rem; text-align: center; }
.hp-disclaimer { margin: 6px 0 0; color: #646c7d; font-size: .68rem; line-height: 1.5; text-align: center; }

.hp-guide {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(28px, 6vw, 70px);
  padding: clamp(42px, 7vw, 78px) clamp(22px, 6vw, 72px);
  border-top: 1px solid rgba(216, 194, 139, .15);
  background: linear-gradient(145deg, #101522, #080a12);
}
.hp-guide h3 { margin: 9px 0 16px; font-size: clamp(2rem, 4.7vw, 3.35rem); line-height: 1.07; }
.hp-guide > div > p { color: #aeb3c0; line-height: 1.75; }
.hp-guide ol { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.hp-guide li { display: grid; grid-template-columns: 43px 1fr; align-items: start; gap: 13px; padding: 16px; border: 1px solid rgba(204, 211, 227, .13); border-radius: 14px; background: rgba(5, 7, 13, .32); }
.hp-guide li b { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid rgba(223, 189, 105, .38); border-radius: 50%; color: var(--hp-gold); font-family: Georgia, serif; font-weight: 400; }
.hp-guide li strong { display: block; color: #ede7db; font-family: Georgia, serif; font-size: 1rem; font-weight: 500; }
.hp-guide li small { display: block; margin-top: 4px; color: #8e96a7; font-size: .78rem; line-height: 1.55; }

@media (max-width: 820px) {
  .hp-now { grid-template-columns: 1fr; }
  .hp-dial { width: min(88vw, 390px); }
  .hp-associations { grid-template-columns: 1fr; }
  .hp-solar-facts { grid-template-columns: 1fr 1fr; }
  .hp-guide { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .hp { border-radius: 16px; }
  .hp-hero { min-height: 590px; align-items: end; }
  .hp-hero > img { object-position: 53% center; }
  .hp-hero-veil { background: linear-gradient(180deg, rgba(4,5,11,.08), rgba(4,5,11,.38) 42%, #070811 91%), linear-gradient(90deg, rgba(4,5,11,.34), rgba(4,5,11,.12)); }
  .hp-hero-copy { width: 100%; padding: 34px 22px 42px; text-align: center; }
  .hp-hero h2 { font-size: clamp(2.65rem, 13vw, 4rem); }
  .hp-hero-points { justify-content: center; }
  .hp-body { padding-inline: 14px; }
  .hp-form { grid-template-columns: 1fr; padding: 14px; }
  .hp-primary { width: 100%; }
  .hp-now { gap: 27px; padding: 28px 16px 20px; border-radius: 20px; }
  .hp-dial { width: min(82vw, 330px); }
  .hp-local-clock { grid-template-columns: 1fr; text-align: center; }
  .hp-clock { grid-row: auto; text-align: center; }
  .hp-date { margin-top: 2px; }
  .hp-description { text-align: center; }
  .hp-chips { justify-content: center; }
  .hp-change { grid-template-columns: 39px 1fr; }
  .hp-countdown { grid-column: 1 / -1; padding-top: 8px; border-top: 1px solid rgba(255,255,255,.08); text-align: center; }
  .hp-associations section { padding: 21px 17px; }
  .hp-solar-facts { grid-template-columns: 1fr 1fr; gap: 8px; }
  .hp-solar-facts article { grid-template-columns: 25px 1fr; padding: 12px 10px; }
  .hp-nearby-grid { grid-template-columns: 1fr; }
  .hp-near-card { display: grid; grid-template-columns: 70px 1fr auto; align-items: center; gap: 8px; padding: 14px; }
  .hp-near-card div { margin-top: 0; }
  .hp-near-card time { margin-top: 0; }
  .hp-schedule-grid { grid-template-columns: 1fr; padding: 0 9px 9px; }
  .hp-schedule summary { padding: 17px 15px; font-size: .88rem; }
  .hp-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .hp-share, .hp-change-city { width: 100%; padding-inline: 12px; }
  .hp-guide { padding-inline: 17px; }
}

@media (max-width: 390px) {
  .hp-solar-facts { grid-template-columns: 1fr; }
  .hp-actions { grid-template-columns: 1fr; }
  .hp-schedule-row { grid-template-columns: 31px 1fr; }
  .hp-schedule-row time { grid-column: 2; }
}

@media (prefers-reduced-motion: reduce) {
  .hp *, .hp *::before, .hp *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
