:root {
  color-scheme: dark;
  --bg: #020711;
  --panel: rgba(3, 13, 27, 0.72);
  --panel-strong: rgba(5, 16, 31, 0.88);
  --line: rgba(130, 195, 255, 0.18);
  --line-strong: rgba(139, 204, 255, 0.34);
  --text: #f6fbff;
  --muted: #a9b8ca;
  --blue: #4aabff;
  --blue-2: #79d5ff;
  --amber: #ffad55;
  --shadow: 0 28px 100px rgba(0, 0, 0, 0.48);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #000;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 71% 17%, rgba(255, 150, 65, 0.16), transparent 19rem),
    radial-gradient(circle at 22% 85%, rgba(35, 133, 255, 0.17), transparent 24rem),
    #00040b;
}

button,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

:focus-visible {
  outline: 2px solid var(--blue-2);
  outline-offset: 3px;
}

.dashboard-shell {
  width: min(1514px, calc(100% - 24px));
  margin: 12px auto;
  overflow: hidden;
  border: 1px solid rgba(139, 191, 255, 0.22);
  border-radius: 22px;
  background: rgba(2, 7, 16, 0.96);
  box-shadow: var(--shadow);
}

.hero {
  position: relative;
  min-height: 470px;
  padding: 24px clamp(18px, 2.2vw, 28px) 38px;
  isolation: isolate;
}

.hero::before,
.hero::after,
.stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero::before {
  content: "";
  z-index: -3;
  background:
    linear-gradient(180deg, rgba(2, 7, 16, 0.03), rgba(2, 7, 16, 0.24) 52%, rgba(2, 7, 16, 0.78) 100%),
    linear-gradient(90deg, rgba(2, 7, 16, 0.42), rgba(2, 7, 16, 0.02) 58%, rgba(2, 7, 16, 0.2)),
    url("./assets/generated-hero-bg.png") center / cover no-repeat;
  filter: saturate(1.12) contrast(1.08);
}

.hero::after {
  content: "";
  z-index: -1;
  background:
    radial-gradient(circle at 71% 23%, rgba(255, 179, 83, 0.22), transparent 12rem),
    linear-gradient(180deg, transparent 78%, rgba(2, 7, 16, 0.78));
}

.stars {
  z-index: -2;
  opacity: 0.68;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.78) 0 1px, transparent 1.7px),
    radial-gradient(circle, rgba(76, 174, 255, 0.72) 0 1px, transparent 1.7px);
  background-position:
    0 0,
    44px 70px;
  background-size:
    120px 120px,
    176px 176px;
}

.topbar {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: clamp(1.2rem, 1.9vw, 1.7rem);
  font-weight: 760;
}

.brand strong,
h1 span,
.sync-line em {
  color: #82ceff;
}

.brand-mark {
  width: 32px;
  height: 32px;
  display: block;
  border-radius: 9px;
  filter: drop-shadow(0 0 14px rgba(73, 173, 255, 0.75));
}

.icon-actions {
  display: flex;
  gap: 12px;
}

.icon-actions button,
.square-button,
.add-city button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(139, 204, 255, 0.16);
  border-radius: 50%;
  color: #e7f4ff;
  background: rgba(4, 13, 27, 0.58);
  backdrop-filter: blur(18px);
}

svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.orbit-note {
  position: absolute;
  z-index: 2;
  color: #fff;
}

.orbit-note::after {
  content: "";
  position: absolute;
  top: 17px;
  width: 140px;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.9), rgba(134, 198, 255, 0));
}

.orbit-note::before {
  content: "";
  position: absolute;
  top: 13px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #fff;
}

.orbit-note strong,
.orbit-note span {
  display: block;
}

.orbit-note strong {
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  line-height: 1.05;
}

.orbit-note span {
  margin-top: 6px;
  color: #bfcde0;
  font-size: 0.76rem;
}

.orbit-note--luna {
  left: 84px;
  top: 215px;
}

.orbit-note--luna::before {
  left: 72px;
}

.orbit-note--luna::after {
  left: 80px;
}

.orbit-note--terra {
  right: 91px;
  top: 314px;
}

.orbit-note--terra::before {
  right: 92px;
}

.orbit-note--terra::after {
  right: 100px;
  transform: rotate(180deg);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 22px auto 0;
  text-align: center;
}

.kicker {
  margin: 0 0 10px;
  color: #d5e6f8;
  font-size: 0.88rem;
  font-weight: 760;
  letter-spacing: 0.34em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(4.4rem, 8vw, 6.3rem);
  line-height: 0.94;
  letter-spacing: 0;
}

.release-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 20px auto 18px;
  padding: 12px 22px;
  border: 1px solid rgba(132, 201, 255, 0.35);
  border-radius: 999px;
  background: rgba(5, 18, 37, 0.68);
  color: #eff8ff;
  font-size: 1rem;
  box-shadow: inset 0 0 30px rgba(58, 154, 255, 0.12);
  backdrop-filter: blur(18px);
}

.release-pill svg {
  color: #5dbdff;
}

.countdown {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: clamp(8px, 1.7vw, 22px);
  max-width: 830px;
  margin: 2px auto 0;
}

.countdown-unit span {
  display: block;
  font-size: clamp(3.8rem, 7vw, 5.95rem);
  font-weight: 820;
  line-height: 0.98;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  text-shadow: 0 0 30px rgba(255, 255, 255, 0.18);
}

.countdown-unit--hot span {
  color: #7bcbff;
  text-shadow: 0 0 36px rgba(65, 173, 255, 0.55);
}

.countdown-unit small {
  display: block;
  margin-top: 10px;
  color: #cedbec;
  font-size: clamp(0.78rem, 1.1vw, 0.98rem);
  font-weight: 760;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.countdown b {
  color: rgba(215, 236, 255, 0.78);
  font-size: clamp(2.7rem, 5.2vw, 5rem);
  line-height: 1;
  transform: translateY(-0.15em);
}

.sync-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 22px 0 0;
  color: #c8d8ea;
  font-size: 0.95rem;
}

.sync-line span {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(118, 204, 255, 0.5);
  border-radius: 50%;
  background: radial-gradient(circle, #4aaeff 0 4px, transparent 5px);
  box-shadow: 0 0 24px rgba(70, 171, 255, 0.42);
}

.sync-line strong,
.sync-line em {
  font-style: normal;
  font-weight: 500;
}

.hero-share {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 14px;
}

.hero-share a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
}

.hero-share a:first-child {
  border: 1px solid rgba(72, 172, 255, 0.46);
  color: #e8f6ff;
  background: linear-gradient(180deg, rgba(24, 118, 245, 0.52), rgba(6, 55, 126, 0.58));
  padding: 0 18px;
}

.hero-share a:last-child {
  border: 1px solid rgba(128, 198, 255, 0.18);
  color: #9ed7ff;
  background: rgba(2, 10, 23, 0.5);
  padding: 0 14px;
}

.main-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.16fr) minmax(385px, 1fr);
  gap: 16px;
  padding: 0 16px 16px;
}

.map-panel,
.times-panel,
.feature-strip {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px);
}

.map-panel {
  position: relative;
  min-height: 438px;
  overflow: hidden;
}

.map-toolbar {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
}

.segmented,
.map-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.segmented {
  padding: 4px;
  border: 1px solid rgba(128, 198, 255, 0.18);
  border-radius: 999px;
  background: rgba(1, 9, 22, 0.64);
}

.segmented button,
.map-actions button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  color: #e5f4ff;
  background: transparent;
}

.segmented button {
  padding: 0 16px;
}

.segmented button.is-active {
  background: rgba(31, 126, 255, 0.34);
  box-shadow: inset 0 0 20px rgba(116, 206, 255, 0.16);
}

.map-actions button {
  border: 1px solid rgba(136, 199, 255, 0.28);
  background: rgba(3, 12, 25, 0.58);
  padding: 0 16px;
}

.map-actions .square-button {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 14px;
}

.world-map {
  position: absolute;
  inset: 54px 0 58px;
}

.world-map img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  opacity: 0.9;
}

.world-map::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 9, 20, 0.18), transparent 22%, transparent 76%, rgba(2, 9, 20, 0.32)),
    linear-gradient(180deg, rgba(2, 9, 20, 0.2), transparent 28%, rgba(2, 9, 20, 0.24));
  pointer-events: none;
}

.pin-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.pin {
  position: absolute;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  transform: translate(-50%, -50%);
}

.pin::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 3px solid #f9fdff;
  border-radius: 50%;
  background: var(--blue);
  box-shadow:
    0 0 0 8px rgba(62, 166, 255, 0.22),
    0 0 34px rgba(62, 166, 255, 0.82);
}

.pin.is-selected {
  background: transparent;
}

.pin.is-selected::after {
  background: var(--amber);
  box-shadow:
    0 0 0 9px rgba(255, 173, 85, 0.26),
    0 0 42px rgba(255, 173, 85, 0.92);
}

.pin-card {
  position: absolute;
  min-width: 124px;
  padding: 8px 10px;
  border: 1px solid rgba(130, 195, 255, 0.12);
  border-radius: 12px;
  background: rgba(2, 10, 23, 0.64);
  color: #ecf8ff;
  transform: translate(-10px, 16px);
  pointer-events: none;
}

.pin-card strong,
.pin-card span {
  display: block;
}

.pin-card strong {
  font-size: 0.9rem;
}

.pin-card span {
  color: #c6d8eb;
  font-size: 0.79rem;
  line-height: 1.35;
}

.offset-card {
  position: absolute;
  left: 20px;
  bottom: 14px;
  z-index: 4;
  width: min(520px, calc(100% - 40px));
  padding: 12px 18px 13px;
  border: 1px solid rgba(128, 198, 255, 0.2);
  border-radius: 14px;
  background: rgba(2, 10, 23, 0.78);
}

.offset-labels {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  color: #bdccdc;
  font-size: 0.78rem;
}

.offset-track {
  position: relative;
  height: 4px;
  margin-top: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, #526276, #ffad55, #526276);
}

.offset-track i {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 22px rgba(255, 173, 85, 0.82);
  transform: translate(-50%, -50%);
}

.times-panel {
  padding: 18px 16px;
}

.times-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(132, 196, 255, 0.15);
}

.times-head p {
  margin: 0;
  color: #f4f9ff;
  font-size: 0.82rem;
  font-weight: 760;
  letter-spacing: 0.23em;
  text-transform: uppercase;
}

.times-head strong {
  color: #8bcfff;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.selected-city,
.city-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
}

.selected-city {
  padding: 14px 4px;
  border-bottom: 1px solid rgba(132, 196, 255, 0.12);
}

.selected-city > span {
  font-size: 1.9rem;
}

.selected-city p,
.selected-city small,
.selected-city strong,
.selected-city em {
  display: block;
  margin: 0;
}

.selected-city p {
  font-weight: 760;
}

.selected-city small {
  color: var(--muted);
}

.selected-city strong,
.city-row__time {
  color: #fff;
  font-size: 1.22rem;
  font-weight: 760;
  white-space: nowrap;
}

.selected-city em,
.city-row__date {
  color: var(--amber);
  font-size: 0.84rem;
  font-style: normal;
}

.city-list {
  display: grid;
}

.city-row {
  width: 100%;
  min-height: 54px;
  border: 0;
  border-bottom: 1px solid rgba(132, 196, 255, 0.12);
  color: var(--text);
  background: transparent;
  text-align: left;
}

.city-row:hover,
.city-row.is-selected {
  background: linear-gradient(90deg, rgba(67, 158, 255, 0.12), transparent);
}

.city-row__flag {
  font-size: 1.55rem;
}

.city-row__name {
  overflow: hidden;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.city-row__zone {
  color: var(--muted);
  font-size: 0.84rem;
}

.city-row__date {
  min-width: 44px;
  text-align: right;
}

.add-city {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-top: 14px;
}

.add-city label {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  min-height: 44px;
  border: 1px solid rgba(128, 198, 255, 0.2);
  border-radius: 10px;
  background: rgba(2, 10, 23, 0.54);
  overflow: hidden;
}

.add-city label span {
  padding-left: 14px;
  color: #e9f5ff;
  font-size: 0.92rem;
}

.add-city select {
  min-width: 0;
  width: 100%;
  border: 0;
  color: #c6d8eb;
  background: transparent;
  font-size: 0.78rem;
  padding: 0 8px;
}

.add-city button {
  width: 44px;
  height: 44px;
  border-radius: 10px;
}

.feature-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto auto;
  align-items: center;
  gap: 16px;
  margin: 0 16px 16px;
  padding: 13px 20px;
}

.feature-strip div {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.feature-strip div > span {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  color: #71c9ff;
  background: rgba(34, 139, 255, 0.13);
  box-shadow: 0 0 22px rgba(65, 159, 255, 0.18);
  font-size: 1.25rem;
}

.feature-strip p {
  display: grid;
  gap: 2px;
  margin: 0;
}

.feature-strip small {
  color: var(--muted);
}

.creator-link,
.share-x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  white-space: nowrap;
  text-decoration: none;
}

.creator-link {
  border: 1px solid rgba(128, 198, 255, 0.2);
  border-radius: 10px;
  color: #d9e9fa;
  background: rgba(2, 10, 23, 0.55);
  padding: 0 16px;
}

.creator-link strong {
  color: #82ceff;
  margin-left: 4px;
}

.share-x {
  min-height: 42px;
  border: 1px solid rgba(72, 172, 255, 0.45);
  border-radius: 10px;
  color: #dff2ff;
  background: linear-gradient(180deg, rgba(24, 118, 245, 0.55), rgba(6, 55, 126, 0.55));
  padding: 0 22px;
}

@media (max-width: 1080px) {
  .hero {
    min-height: 560px;
  }

  .orbit-note {
    display: none;
  }

  .main-grid {
    grid-template-columns: 1fr;
  }

  .feature-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .creator-link,
  .share-x {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  .dashboard-shell {
    width: min(100% - 12px, 520px);
    margin-top: 6px;
    border-radius: 18px;
  }

  .hero {
    min-height: 610px;
    padding-inline: 14px;
  }

  .icon-actions button {
    width: 44px;
    height: 44px;
  }

  .icon-actions button:nth-child(1),
  .icon-actions button:nth-child(2) {
    display: none;
  }

  .hero-content {
    margin-top: 56px;
  }

  .kicker {
    font-size: 0.7rem;
    letter-spacing: 0.22em;
  }

  h1 {
    font-size: clamp(2.9rem, 15vw, 5rem);
  }

  .release-pill {
    max-width: 100%;
    padding-inline: 14px;
    font-size: clamp(0.78rem, 4vw, 0.9rem);
  }

  .countdown {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .countdown b {
    display: none;
  }

  .countdown-unit {
    padding: 12px 8px;
    border: 1px solid rgba(136, 199, 255, 0.15);
    border-radius: 14px;
    background: rgba(2, 10, 22, 0.44);
  }

  .countdown-unit span {
    font-size: clamp(2.25rem, 13vw, 3.9rem);
  }

  .sync-line {
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero-share {
    flex-direction: column;
  }

  .hero-share a {
    width: min(100%, 280px);
  }

  .main-grid {
    padding-inline: 10px;
  }

  .map-panel {
    min-height: 390px;
  }

  .map-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .segmented,
  .map-actions {
    width: 100%;
  }

  .segmented button,
  .map-actions button {
    flex: 1;
    justify-content: center;
  }

  .world-map {
    inset: 112px -165px 62px;
  }

  .pin-card {
    display: none;
  }

  .offset-card {
    left: 12px;
    width: calc(100% - 24px);
    padding-inline: 10px;
  }

  .offset-labels {
    font-size: 0.68rem;
  }

  .times-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .selected-city,
  .city-row {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .selected-city em,
  .city-row__date {
    display: none;
  }

  .city-row__zone {
    display: none;
  }

  .feature-strip {
    grid-template-columns: 1fr;
    margin-inline: 10px;
  }
}

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