:root {
  --wl-night-blue: #151d3b;
  --wl-night-deep: #0f1730;
  --wl-twilight-purple: #756b96;
  --wl-peach-pink: #dfa3ae;
  --wl-sun-gold: #ffe0a8;
  --wl-card-cream: #f9f1ea;
  --wl-ink: #555068;
  --wl-text: #fbf6f1;
  --wl-muted: rgba(248, 242, 239, 0.72);
  --wl-glass: rgba(249, 241, 234, 0.1);
  --wl-glass-strong: rgba(249, 241, 234, 0.16);
  --wl-border: rgba(255, 245, 237, 0.22);
  --wl-focus: #ffe0a8;
  --wl-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --wl-safe-top: max(24px, env(safe-area-inset-top));
  --wl-safe-bottom: max(28px, env(safe-area-inset-bottom));
  color-scheme: dark;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
}

.wl-page,
.wl-page * {
  box-sizing: border-box;
}

.wl-root {
  min-width: 320px;
  min-height: 100%;
  background: var(--wl-night-blue);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body.wl-page {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 78% 3%, rgba(117, 107, 150, 0.24), transparent 31rem),
    linear-gradient(180deg, #111832 0%, var(--wl-night-blue) 44%, #202844 100%);
  color: var(--wl-text);
  -webkit-tap-highlight-color: transparent;
}

@supports (min-height: 100dvh) {
  body.wl-page {
    min-height: 100dvh;
  }
}

.wl-page button,
.wl-page select,
.wl-page input {
  font: inherit;
}

.wl-page button,
.wl-page select,
.wl-page input[type="range"] {
  touch-action: manipulation;
}

.wl-page button,
.wl-page select {
  color: inherit;
}

.wl-page button:focus-visible,
.wl-page select:focus-visible,
.wl-page input:focus-visible {
  outline: 2px solid var(--wl-focus);
  outline-offset: 3px;
}

.wl-page [hidden] {
  display: none !important;
}

.wl-shell {
  width: min(100%, 620px);
  margin: 0 auto;
  padding: var(--wl-safe-top) 18px var(--wl-safe-bottom);
}

.wl-header {
  padding: 14px 4px 24px;
}

.wl-title {
  margin: 0;
  font-family: "Songti SC", "STSong", "SimSun", serif;
  font-size: clamp(2rem, 10vw, 3.15rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: 0.05em;
}

.wl-intro {
  max-width: 29rem;
  margin: 13px 0 0;
  color: var(--wl-muted);
  font-size: 0.96rem;
  line-height: 1.75;
  letter-spacing: 0.015em;
}

.wl-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  align-items: end;
  margin-bottom: 14px;
}

.wl-field {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.wl-field__label {
  padding-left: 3px;
  color: var(--wl-muted);
  font-size: 0.76rem;
  line-height: 1;
  letter-spacing: 0.12em;
}

.wl-select-wrap {
  position: relative;
  display: block;
}

.wl-select {
  width: 100%;
  min-height: 48px;
  appearance: none;
  border: 1px solid var(--wl-border);
  border-radius: 15px;
  padding: 0 42px 0 15px;
  background: var(--wl-glass);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.05);
  font-size: 0.93rem;
  font-weight: 520;
}

.wl-select-icon {
  position: absolute;
  top: 50%;
  right: 15px;
  width: 16px;
  height: 16px;
  pointer-events: none;
  transform: translateY(-50%);
}

.wl-select-icon path {
  fill: none;
  stroke: var(--wl-muted);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.wl-return:active,
.wl-quick-times button:active {
  transform: scale(0.98);
}

.wl-stage,
.wl-timeline {
  border: 1px solid var(--wl-border);
  border-radius: 25px;
  background: var(--wl-glass);
  box-shadow: 0 22px 60px rgba(6, 11, 31, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.wl-stage {
  overflow: hidden;
  padding: 18px;
}

.wl-time-heading {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  justify-content: space-between;
  min-height: 68px;
  margin: 0 2px 15px;
}

.wl-location {
  margin: 2px 0 5px;
  font-size: 1.15rem;
  font-weight: 570;
  line-height: 1.25;
  letter-spacing: 0.035em;
}

.wl-date,
.wl-phase,
.wl-zone,
.wl-mode-status,
.wl-timeline__heading p,
.wl-travel-note {
  margin: 0;
  color: var(--wl-muted);
}

.wl-date {
  font-size: 0.78rem;
  line-height: 1.55;
}

.wl-clock-block {
  min-width: 5.7rem;
  text-align: right;
}

.wl-clock {
  margin: 0;
  color: #fff8ed;
  font-size: clamp(2rem, 10vw, 2.65rem);
  font-variant-numeric: tabular-nums;
  font-weight: 440;
  line-height: 1;
  letter-spacing: -0.035em;
}

.wl-phase {
  margin-top: 6px;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
}

.wl-visual {
  --wl-night-opacity: 1;
  --wl-dawn-opacity: 0;
  --wl-day-opacity: 0;
  --wl-dusk-opacity: 0;
  --wl-stars-opacity: 1;
  --wl-sun-opacity: 0;
  --wl-halo-opacity: 0;
  --wl-sun-x: 50;
  --wl-sun-y: 78;
  position: relative;
  isolation: isolate;
  width: 100%;
  aspect-ratio: 1.08 / 1;
  min-height: 280px;
  max-height: 430px;
  overflow: hidden;
  border-radius: 19px;
  background: var(--wl-night-deep);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.wl-sky,
.wl-stars,
.wl-orbit,
.wl-horizon {
  position: absolute;
  inset: 0;
}

.wl-sky {
  z-index: -4;
  will-change: opacity;
  transition: opacity 220ms linear;
}

.wl-sky--night {
  opacity: var(--wl-night-opacity);
  background:
    radial-gradient(circle at 72% 18%, rgba(117, 107, 150, 0.3), transparent 35%),
    linear-gradient(180deg, #0e1630 0%, #1c274b 57%, #3b405e 100%);
}

.wl-sky--dawn {
  opacity: var(--wl-dawn-opacity);
  background:
    radial-gradient(circle at 46% 70%, rgba(255, 224, 168, 0.82), transparent 28%),
    linear-gradient(180deg, #4d5377 0%, #867697 43%, #dca4ae 73%, #f4cfb7 100%);
}

.wl-sky--day {
  opacity: var(--wl-day-opacity);
  background:
    radial-gradient(circle at 52% 24%, rgba(255, 245, 213, 0.68), transparent 26%),
    linear-gradient(180deg, #8099be 0%, #abc1d0 48%, #edd5c1 100%);
}

.wl-sky--dusk {
  opacity: var(--wl-dusk-opacity);
  background:
    radial-gradient(circle at 70% 67%, rgba(255, 208, 151, 0.75), transparent 26%),
    linear-gradient(180deg, #424b74 0%, #8b7191 44%, #d48e93 71%, #edb48f 100%);
}

.wl-stars {
  z-index: -2;
  opacity: var(--wl-stars-opacity);
  pointer-events: none;
  transition: opacity 200ms linear;
}

.wl-stars i {
  position: absolute;
  left: var(--wl-star-x);
  top: var(--wl-star-y);
  width: var(--wl-star-s);
  height: var(--wl-star-s);
  border-radius: 50%;
  background: rgba(255, 249, 232, 0.94);
  box-shadow: 0 0 8px rgba(255, 228, 186, 0.55);
  animation: wl-star-breathe 4.6s var(--wl-star-d) ease-in-out infinite;
}

.wl-orbit {
  z-index: -1;
  width: 100%;
  height: 69%;
  margin-top: 8%;
  overflow: visible;
  opacity: 0.35;
}

.wl-orbit path {
  fill: none;
  stroke: rgba(255, 242, 218, 0.52);
  stroke-dasharray: 1.6 3.1;
  stroke-linecap: round;
  stroke-width: 0.36;
}

.wl-sun {
  position: absolute;
  z-index: 1;
  left: calc(var(--wl-sun-x) * 1%);
  top: calc(var(--wl-sun-y) * 1%);
  width: clamp(38px, 13vw, 58px);
  height: clamp(38px, 13vw, 58px);
  opacity: var(--wl-sun-opacity);
  transform: translate3d(-50%, -50%, 0);
  will-change: left, top, opacity;
  transition: left 180ms linear, top 180ms linear, opacity 180ms linear;
}

.wl-sun__disc,
.wl-sun__halo {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  transform: translate3d(-50%, -50%, 0);
}

.wl-sun__disc {
  width: 100%;
  height: 100%;
  background: #ffe7ad;
  box-shadow: 0 0 18px rgba(255, 224, 168, 0.72);
}

.wl-sun__halo {
  opacity: var(--wl-halo-opacity);
  border: 1px solid rgba(255, 232, 190, 0.45);
  transition: opacity 180ms linear;
}

.wl-sun__halo--inner {
  width: 190%;
  height: 190%;
  background: rgba(255, 224, 168, 0.13);
}

.wl-sun__halo--outer {
  width: 310%;
  height: 310%;
  background: rgba(255, 224, 168, 0.055);
}

.wl-horizon {
  z-index: 3;
  top: auto;
  height: 35%;
  pointer-events: none;
}

.wl-horizon span {
  position: absolute;
  right: -8%;
  bottom: -22%;
  left: -8%;
  display: block;
  border-radius: 50% 50% 0 0;
}

.wl-horizon__back {
  height: 74%;
  background: rgba(75, 70, 91, 0.42);
  transform: rotate(-3deg) translateY(10%);
}

.wl-horizon__front {
  height: 60%;
  background: rgba(37, 39, 61, 0.72);
  transform: rotate(2.5deg) translateY(28%);
}

/* One SVG landscape sits on the existing horizon; only its selected city paints.
   Light variables come from the same visual state as the sky and sun. */
.wl-landmarks {
  position: absolute;
  z-index: 4;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

.wl-landmark-city {
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wl-landmarks stop {
  transition: stop-color 180ms linear, stop-opacity 180ms linear;
}

.wl-lm-body { fill: url(#wlLmBody); }
.wl-lm-roof { fill: url(#wlLmRoof); }
.wl-lm-face { fill: url(#wlLmFace); }
.wl-lm-land { fill: url(#wlLmLand); }
.wl-lm-water { fill: url(#wlLmWater); }
.wl-lm-stone { fill: var(--wl-lm-stone, #576078); }
.wl-lm-foreground { fill: var(--wl-lm-land-base, #18253e); }
.wl-lm-distant { fill: var(--wl-lm-land-top, #29364e); opacity: 0.48; }
.wl-lm-backdrop { opacity: 0.65; }
.wl-lm-snow { fill: var(--wl-lm-stone, #576078); opacity: 0.6; }

.wl-lm-edge {
  fill: none;
  stroke: var(--wl-lm-stone, #576078);
  stroke-width: 1.4;
  opacity: 0.7;
}

.wl-lm-columns {
  fill: none;
  stroke: var(--wl-lm-roof-top, #53506a);
  stroke-width: 5;
}

.wl-lm-ripples {
  fill: none;
  stroke: var(--wl-lm-stone, #576078);
  stroke-width: 1;
  opacity: 0.22;
}

.wl-lm-lights {
  opacity: var(--wl-lm-lights-opacity, 1);
  transition: opacity 180ms linear;
}
.wl-lm-tower-lights { fill: none; stroke: #ffd9a1; stroke-width: 2.2; }
.wl-lm-water-lights {
  fill: none;
  stroke: #f8d09d;
  stroke-width: 2.2;
  opacity: var(--wl-lm-reflection-opacity, 0.8);
  transition: opacity 180ms linear;
}

.wl-lm-sun-reflection {
  transform: translateX(calc(var(--wl-lm-reflection-x, 50) * 6px));
  opacity: var(--wl-lm-sun-reflection-opacity, 0);
  transition: transform 180ms linear, opacity 180ms linear;
}

.wl-status-row {
  display: flex;
  gap: 9px 16px;
  align-items: flex-start;
  justify-content: space-between;
  margin: 14px 2px 1px;
}

.wl-mode-status {
  position: relative;
  padding-left: 14px;
  font-size: 0.78rem;
  line-height: 1.55;
}

.wl-mode-status::before {
  content: "";
  position: absolute;
  top: 0.54em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--wl-sun-gold);
  box-shadow: 0 0 8px rgba(255, 224, 168, 0.5);
}

.wl-zone {
  max-width: 54%;
  font-size: 0.72rem;
  line-height: 1.55;
  text-align: right;
  overflow-wrap: anywhere;
}

.wl-timeline {
  margin-top: 14px;
  padding: 20px;
}

.wl-timeline__heading {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  justify-content: space-between;
}

.wl-timeline__heading h2 {
  margin: 0 0 7px;
  font-size: 1.02rem;
  font-weight: 570;
  letter-spacing: 0.03em;
}

.wl-timeline__heading p {
  font-size: 0.78rem;
  line-height: 1.6;
}

.wl-return {
  flex: 0 0 auto;
  min-height: 44px;
  border: 1px solid rgba(255, 224, 168, 0.35);
  border-radius: 13px;
  padding: 0 14px;
  background: rgba(255, 224, 168, 0.12);
  color: #fff2d4;
  font-size: 0.82rem;
  font-weight: 560;
  cursor: pointer;
}

.wl-range-label {
  display: flex;
  justify-content: space-between;
  margin: 22px 1px 7px;
  color: var(--wl-muted);
  font-size: 0.7rem;
  font-variant-numeric: tabular-nums;
}

.wl-range {
  width: 100%;
  height: 44px;
  margin: 0;
  appearance: none;
  background: transparent;
  cursor: pointer;
}

.wl-range::-webkit-slider-runnable-track {
  height: 5px;
  border-radius: 99px;
  background: linear-gradient(90deg, #343e68 0%, #d39aa9 28%, #ffe0a8 52%, #d0838d 76%, #2d365d 100%);
}

.wl-range::-webkit-slider-thumb {
  width: 28px;
  height: 28px;
  margin-top: -11.5px;
  appearance: none;
  border: 2px solid rgba(255, 249, 237, 0.9);
  border-radius: 50%;
  background: var(--wl-sun-gold);
  box-shadow: 0 3px 14px rgba(8, 12, 31, 0.38);
}

.wl-range::-moz-range-track {
  height: 5px;
  border: 0;
  border-radius: 99px;
  background: linear-gradient(90deg, #343e68 0%, #d39aa9 28%, #ffe0a8 52%, #d0838d 76%, #2d365d 100%);
}

.wl-range::-moz-range-thumb {
  width: 26px;
  height: 26px;
  border: 2px solid rgba(255, 249, 237, 0.9);
  border-radius: 50%;
  background: var(--wl-sun-gold);
  box-shadow: 0 3px 14px rgba(8, 12, 31, 0.38);
}

.wl-quick-times {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.wl-quick-times button {
  min-width: 0;
  min-height: 52px;
  border: 1px solid var(--wl-border);
  border-radius: 13px;
  padding: 7px 4px;
  background: rgba(249, 241, 234, 0.08);
  cursor: pointer;
  transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.wl-quick-times button:hover:not(:disabled),
.wl-quick-times button:focus-visible {
  border-color: rgba(255, 224, 168, 0.55);
  background: rgba(255, 224, 168, 0.13);
}

.wl-quick-times span,
.wl-quick-times small {
  display: block;
}

.wl-quick-times span {
  font-size: 0.82rem;
  font-weight: 560;
}

.wl-quick-times small {
  margin-top: 3px;
  color: var(--wl-muted);
  font-size: 0.66rem;
  font-variant-numeric: tabular-nums;
}

.wl-travel-note {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 245, 237, 0.12);
  font-size: 0.72rem;
  line-height: 1.65;
}

@keyframes wl-star-breathe {
  0%,
  100% {
    opacity: 0.38;
    transform: scale(0.88);
  }
  50% {
    opacity: 0.94;
    transform: scale(1.08);
  }
}

.wl-cities {
  margin-top: 28px;
}

.wl-cities__title {
  margin: 0 3px 14px;
  color: var(--wl-text);
  font-size: 1.02rem;
  font-weight: 570;
  letter-spacing: 0.06em;
}

.wl-city-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 12px;
}

.wl-city-card {
  display: block;
  min-width: 0;
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(249, 241, 234, 0.2);
  border-radius: 19px;
  padding: 0;
  background: linear-gradient(145deg, rgba(117, 107, 150, 0.14), rgba(15, 23, 48, 0.36));
  box-shadow: 0 8px 24px rgba(6, 11, 31, 0.14);
  text-align: left;
  cursor: pointer;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.wl-city-card__art {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--wl-night-blue);
}

.wl-city-card__art::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(21, 29, 59, 0.04), transparent 42%, rgba(21, 29, 59, 0.24));
  content: "";
  pointer-events: none;
}

.wl-city-card__art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.wl-city-card[data-location="seoul"] .wl-city-card__art img {
  object-position: 65% center;
}

.wl-city-card__footer {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-top: 1px solid rgba(249, 241, 234, 0.08);
  padding: 12px 14px;
  background: linear-gradient(180deg, rgba(249, 241, 234, 0.035), rgba(15, 23, 48, 0.12));
  color: var(--wl-text);
  font-size: 0.86rem;
  font-weight: 520;
  line-height: 1.4;
  letter-spacing: 0.08em;
}

.wl-city-card__check {
  display: grid;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255, 224, 168, 0.6);
  border-radius: 50%;
  background: rgba(255, 224, 168, 0.16);
  color: var(--wl-sun-gold);
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1;
  visibility: hidden;
}

.wl-city-card[aria-pressed="true"] {
  border-color: rgba(255, 224, 168, 0.72);
  box-shadow: 0 0 0 1px rgba(255, 224, 168, 0.12), 0 8px 24px rgba(6, 11, 31, 0.18);
}

.wl-city-card[aria-pressed="true"] .wl-city-card__footer {
  background: linear-gradient(110deg, rgba(223, 163, 174, 0.09), rgba(255, 224, 168, 0.08));
  color: #fff0d4;
}

.wl-city-card[aria-pressed="true"] .wl-city-card__check {
  visibility: visible;
}

.wl-city-card:focus-visible {
  outline: 2px solid var(--wl-focus);
  outline-offset: 4px;
}

@media (hover: hover) {
  .wl-city-card:hover:not([aria-pressed="true"]) {
    border-color: rgba(255, 224, 168, 0.5);
  }
}

@media (min-width: 560px) {
  .wl-city-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 420px) {
  .wl-shell {
    padding-right: 14px;
    padding-left: 14px;
  }

  .wl-controls {
    grid-template-columns: 1fr;
  }

  .wl-field {
    gap: 7px;
  }

  .wl-stage {
    padding: 14px;
  }

  .wl-visual {
    min-height: 268px;
  }

  .wl-timeline {
    padding: 18px 14px;
  }
}

@media (max-width: 350px) {
  .wl-header {
    padding-bottom: 20px;
  }

  .wl-title {
    font-size: 2rem;
  }

  .wl-time-heading {
    gap: 8px;
  }

  .wl-location {
    font-size: 1.02rem;
  }

  .wl-clock {
    font-size: 2rem;
  }

  .wl-visual {
    min-height: 252px;
  }

  .wl-status-row {
    display: grid;
  }

  .wl-zone {
    max-width: none;
    text-align: left;
  }

  .wl-timeline__heading {
    display: grid;
  }

  .wl-return {
    width: 100%;
  }

  .wl-quick-times {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .wl-stage,
  .wl-timeline {
    background: rgba(38, 45, 74, 0.92);
  }
}
