:root {
  color-scheme: dark;
  font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #0b0d12;
  color: rgba(255, 255, 255, 0.92);
  text-rendering: geometricPrecision;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scrollbar-width: none;
}

body {
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
}

body::-webkit-scrollbar {
  width: 0;
  height: 0;
}

button,
input,
a {
  font: inherit;
}

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

.background,
.background picture,
.background img,
.background__wash,
.background__vignette {
  position: fixed;
  inset: 0;
}

.background {
  z-index: -2;
  overflow: hidden;
  background: #0b0d12;
}

.background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 48%;
  filter: saturate(0.96) brightness(0.72);
  transform: scale(1.015);
}

.background__wash {
  z-index: 1;
  background:
    radial-gradient(circle at 76% 23%, rgba(255, 196, 146, 0.2), transparent 34%),
    radial-gradient(circle at 18% 70%, rgba(120, 163, 255, 0.12), transparent 38%),
    linear-gradient(180deg, rgba(10, 10, 18, 0.22), rgba(10, 11, 15, 0.56) 62%, rgba(5, 6, 8, 0.9));
}

.background__vignette {
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.52), transparent 22%, transparent 72%, rgba(0, 0, 0, 0.42)),
    linear-gradient(0deg, rgba(0, 0, 0, 0.72), transparent 32%);
}

.date-app {
  position: relative;
  display: grid;
  width: min(calc(100% - 34px), 960px);
  min-height: 100svh;
  margin: 0 auto;
  padding: calc(env(safe-area-inset-top) + 18px) 0 calc(env(safe-area-inset-bottom) + 24px);
  grid-template-rows: auto minmax(300px, 1fr) auto auto;
  gap: 22px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  animation: topIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.72);
}

.brand img {
  width: 116px;
  height: auto;
  opacity: 0.76;
}

.brand span {
  translate: 0 1px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.45);
}

.topbar__link {
  display: inline-grid;
  min-height: 34px;
  place-items: center;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.58);
  font-size: 11px;
  backdrop-filter: blur(18px);
}

.poster {
  align-self: center;
  padding: 6svh 0 2svh;
  animation: posterIn 1s 0.08s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.poster__kicker,
.route-panel__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: rgba(255, 255, 255, 0.42);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.23em;
  text-transform: uppercase;
}

.poster__kicker::before,
.route-panel__meta::before {
  width: 34px;
  height: 1px;
  background: rgba(255, 255, 255, 0.26);
  content: "";
}

h1 {
  max-width: 720px;
  margin: 17px 0 0;
  font-size: clamp(56px, 12vw, 112px);
  line-height: 0.92;
  letter-spacing: -0.075em;
  word-break: keep-all;
}

.poster__copy {
  max-width: 430px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 15px;
  line-height: 1.78;
  word-break: keep-all;
}

.route-panel {
  position: relative;
  width: min(100%, 640px);
  padding: 22px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  animation: routeIn 0.9s 0.18s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.route-panel--hidden {
  display: none;
}

.route-panel.is-changing {
  animation: routeSwap 0.82s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.route-panel__meta {
  font-size: 9.5px;
  letter-spacing: 0.19em;
}

h2 {
  max-width: 560px;
  margin: 12px 0 0;
  font-size: clamp(28px, 6.4vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

#route-summary {
  max-width: 520px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 13.5px;
  line-height: 1.75;
  word-break: keep-all;
}

.route-list {
  display: grid;
  gap: 13px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.route-list li {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.route-list span {
  color: rgba(255, 255, 255, 0.4);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.route-list strong {
  display: block;
  color: rgba(255, 255, 255, 0.84);
  font-size: 14px;
  line-height: 1.45;
}

.route-list em {
  display: block;
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.42);
  font-size: 12px;
  font-style: normal;
  line-height: 1.58;
  word-break: keep-all;
}

.route-actions {
  display: grid;
  width: min(100%, 360px);
  height: 48px;
  margin-top: 22px;
  overflow: hidden;
  grid-template-columns: 1fr 1fr;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(22px) saturate(1.2);
}

.route-action {
  display: grid;
  min-width: 0;
  height: 100%;
  place-items: center;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  cursor: pointer;
}

.route-action--map {
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.82);
  color: #111217;
  font-weight: 800;
}

.date-console {
  position: fixed;
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom) + 14px);
  z-index: 10;
  width: min(calc(100% - 40px), 760px);
  max-width: 100%;
  margin-top: 8px;
  overflow: hidden;
  transform: translateX(-50%);
  animation: consoleIn 1s 0.26s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.date-console form {
  display: grid;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  background: rgba(11, 12, 16, 0.46);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(28px) saturate(1.2);
}

.console-grid {
  display: grid;
  min-width: 0;
  max-width: 100%;
  gap: 8px;
}

fieldset {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  margin: 0;
  padding: 0;
  border: 0;
}

legend {
  width: auto;
  margin: 0 0 7px;
  padding: 0 2px;
  color: rgba(255, 255, 255, 0.42);
  font-size: 11px;
  line-height: 1;
}

.choice-row {
  display: grid;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  min-height: 34px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.choice-row label {
  position: relative;
  display: grid;
  min-width: 0;
  place-items: center;
  border-left: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.5);
  font-size: 11px;
  text-align: center;
  cursor: pointer;
  transition: color 0.24s ease, background 0.24s ease;
}

.choice-row label:first-child {
  border-left: 0;
}

.choice-row input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice-row label:has(input:checked) {
  background: rgba(255, 255, 255, 0.76);
  color: #121318;
  font-weight: 800;
}

.primary-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 50px;
  border: 0;
  border-radius: 17px;
  padding: 0 16px 0 18px;
  background: rgba(255, 255, 255, 0.9);
  color: #111217;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
}

.primary-button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

@keyframes topIn {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
}

@keyframes posterIn {
  from {
    opacity: 0;
    filter: blur(18px);
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

@keyframes routeIn {
  from {
    opacity: 0;
    filter: blur(16px);
    transform: translateY(18px);
  }
}

@keyframes consoleIn {
  from {
    opacity: 0;
    filter: blur(18px);
    transform: translateX(-50%) translateY(24px) scale(0.98);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: translateX(-50%) translateY(0) scale(1);
  }
}

@keyframes routeSwap {
  0% {
    opacity: 0.42;
    filter: blur(18px);
    transform: translateY(18px);
  }
  100% {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

@media (min-width: 760px) {
  .date-app {
    grid-template-columns: minmax(0, 1fr) minmax(330px, 410px);
    grid-template-rows: auto minmax(520px, 1fr) auto;
    column-gap: 60px;
  }

  .topbar {
    grid-column: 1 / -1;
  }

  .poster {
    grid-column: 1;
    grid-row: 2;
  }

  .route-panel {
    grid-column: 2;
    grid-row: 2;
    align-self: end;
  }

  .date-console {
    width: min(calc(100% - 56px), 760px);
  }

  .console-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  legend {
    width: auto;
    margin: 0 0 8px;
    padding: 0 2px;
    line-height: 1;
  }

  fieldset {
    display: block;
  }

  .date-console form {
    grid-template-columns: minmax(0, 1fr) 170px;
    align-items: end;
  }

  .primary-button {
    min-height: 78px;
  }
}

@media (max-width: 520px) {
  .date-app {
    width: min(calc(100% - 28px), 430px);
    gap: 18px;
    grid-template-rows: auto minmax(0, 1fr) auto;
  }

  .brand img {
    width: 104px;
  }

  h1 {
    font-size: clamp(46px, 14vw, 64px);
    max-width: 360px;
  }

  .poster {
    align-self: center;
    padding-top: 2svh;
    padding-bottom: 5svh;
  }

  .date-console {
    width: min(calc(100% - 72px), 320px);
  }

  .poster__copy {
    max-width: 320px;
    font-size: 13.5px;
  }

  .route-panel {
    margin-bottom: 188px;
  }
}
