:root {
  --paper: #f3eee4;
  --paper-deep: #e8dfcf;
  --paper-light: #fbf8f1;
  --ink: #17231f;
  --ink-soft: #56615c;
  --line: rgba(23, 35, 31, 0.16);
  --line-strong: rgba(23, 35, 31, 0.34);
  --red: #d85d42;
  --teal: #247b78;
  --gold: #a56a1d;
  --blue: #526c96;
  --radius: 22px;
  --shadow: 0 20px 60px rgba(37, 31, 22, 0.1);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --topbar-height: 60px;
  --live-rail-height: 72px;
  --chrome-height: calc(var(--topbar-height) + var(--live-rail-height));
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--chrome-height) + 66px);
  max-width: 100%;
  overflow-x: hidden;
}

body {
  min-width: 320px;
  max-width: 100%;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 3%, rgba(216, 93, 66, 0.09), transparent 25rem),
    radial-gradient(circle at 92% 28%, rgba(36, 123, 120, 0.08), transparent 31rem),
    var(--paper);
  font-family: "Noto Sans KR", "Apple SD Gothic Neo", sans-serif;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.map-open,
body.wallet-open {
  overflow: hidden;
}

body.trip-locked {
  height: 100svh;
  overflow: hidden;
}

body.trip-locked [data-private-content] {
  visibility: hidden;
  pointer-events: none;
}

.access-gate {
  position: fixed;
  z-index: 900;
  inset: 0;
  display: none;
  overflow-x: hidden;
  overflow-y: auto;
  background:
    radial-gradient(circle at 86% 42%, rgba(216, 93, 66, 0.1), transparent 31rem),
    radial-gradient(circle at 9% 4%, rgba(36, 123, 120, 0.06), transparent 24rem),
    var(--paper);
  opacity: 1;
  transition: opacity 360ms var(--ease), transform 360ms var(--ease);
}

body.trip-locked .access-gate {
  display: block;
}

.access-gate[hidden] {
  display: none !important;
}

.access-gate.is-unlocking {
  opacity: 0;
  transform: scale(1.012);
}

.access-stage {
  position: relative;
  display: flex;
  width: min(1180px, calc(100% - 44px));
  min-height: 100svh;
  flex-direction: column;
  justify-content: center;
  margin: 0 auto;
  padding: 96px 0 58px;
}

.access-stage::before,
.access-stage::after {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.access-stage::before {
  top: 10%;
  right: -13%;
  width: min(620px, 58vw);
  aspect-ratio: 1;
  border: 1px solid rgba(23, 35, 31, 0.1);
}

.access-stage::after {
  top: 15%;
  right: -8%;
  width: min(520px, 48vw);
  aspect-ratio: 1;
  border: 1px dashed rgba(216, 93, 66, 0.3);
}

.access-nav {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  width: 100%;
  min-height: 60px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.access-nav a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  text-decoration: none;
}

.access-nav a span {
  font-size: 1rem;
  transition: transform 180ms var(--ease);
}

.access-nav a:hover span {
  transform: translateX(-4px);
}

.access-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(370px, 0.72fr);
  align-items: center;
  gap: clamp(48px, 9vw, 132px);
}

.access-route {
  display: grid;
  grid-template-columns: auto minmax(60px, 200px) auto;
  align-items: center;
  width: min(460px, 100%);
  gap: 13px;
  margin-bottom: 30px;
  color: var(--ink-soft);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.2em;
}

.access-route i {
  position: relative;
  display: block;
  height: 1px;
  background: var(--line-strong);
}

.access-route i::before,
.access-route i::after {
  position: absolute;
  top: -3px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  content: "";
}

.access-route i::before {
  left: 0;
  border: 1px solid var(--ink);
  background: var(--paper);
}

.access-route i::after {
  right: 0;
  background: var(--red);
}

.access-copy h2 {
  margin: 11px 0 25px;
  font-family: "Gowun Batang", "Noto Serif KR", serif;
  font-size: clamp(3.2rem, 7vw, 6.25rem);
  font-weight: 700;
  letter-spacing: -0.075em;
  line-height: 1.03;
}

.access-copy h2 em {
  color: var(--red);
  font-style: normal;
}

.access-copy > p:last-child {
  margin: 0;
  color: var(--ink-soft);
  font-family: "Gowun Batang", serif;
  font-size: clamp(0.94rem, 1.4vw, 1.13rem);
  line-height: 1.85;
}

.access-ticket {
  position: relative;
  min-width: 0;
  padding: 24px 26px 18px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  background: rgba(251, 248, 241, 0.88);
  box-shadow: var(--shadow);
  transform: rotate(0.8deg);
}

.access-ticket::before,
.access-ticket::after {
  position: absolute;
  top: 39%;
  width: 24px;
  height: 24px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--paper);
  content: "";
}

.access-ticket::before {
  left: -13px;
}

.access-ticket::after {
  right: -13px;
}

.access-ticket-top {
  display: flex;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px dashed var(--line-strong);
  color: var(--ink-soft);
  font-size: 0.59rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.access-ticket-top span:last-child {
  color: var(--red);
}

.access-destination {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 23px 0 21px;
  border-bottom: 1px dashed var(--line-strong);
  text-align: center;
}

.access-destination strong {
  font-family: "Gowun Batang", serif;
  font-size: clamp(2.4rem, 4.2vw, 3.4rem);
  letter-spacing: -0.05em;
}

.access-lock-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(216, 93, 66, 0.62);
  border-radius: 50%;
  color: var(--red);
  font-family: "Gowun Batang", serif;
  font-size: 1rem;
}

.access-form {
  padding-top: 20px;
}

.access-form > label {
  display: block;
  margin-bottom: 7px;
  color: var(--ink-soft);
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.access-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: var(--paper-light);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.access-field:focus-within {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(216, 93, 66, 0.12);
}

.access-form.has-error .access-field {
  border-color: var(--red);
  animation: access-shake 320ms ease;
}

#trip-password {
  width: 100%;
  min-width: 0;
  min-height: 58px;
  padding: 9px 8px 9px 17px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-family: "Noto Sans KR", sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.42em;
}

#trip-password::placeholder {
  color: rgba(86, 97, 92, 0.42);
  letter-spacing: 0.3em;
}

.password-toggle {
  min-width: 58px;
  min-height: 44px;
  padding: 0 12px;
  border: 0;
  border-left: 1px solid var(--line);
  background: transparent;
  color: var(--ink-soft);
  font-size: 0.61rem;
  font-weight: 700;
  cursor: pointer;
}

.access-submit {
  display: flex;
  width: 100%;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  padding: 10px 17px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper-light);
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, transform 180ms var(--ease);
}

.access-submit:hover {
  background: var(--red);
  border-color: var(--red);
  transform: translateY(-2px);
}

.access-submit:disabled {
  cursor: wait;
  opacity: 0.58;
  transform: none;
}

.access-submit span:last-child {
  font-size: 1rem;
}

.access-message {
  min-height: 1.5em;
  margin: 8px 0 0;
  color: var(--ink-soft);
  font-size: 0.61rem;
}

.access-form.has-error .access-message {
  color: var(--red);
  font-weight: 700;
}

.access-form.is-success .access-message {
  color: var(--teal);
  font-weight: 700;
}

.access-description,
.access-noscript {
  margin: 9px 0 0;
  color: var(--ink-soft);
  font-size: 0.56rem;
  line-height: 1.6;
}

.access-noscript {
  color: var(--red);
}

.access-barcode {
  height: 22px;
  margin-top: 16px;
  opacity: 0.48;
  background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 5px, var(--ink) 5px 6px, transparent 6px 10px);
}

.access-footer {
  position: absolute;
  right: 0;
  bottom: 22px;
  left: 0;
  display: flex;
  justify-content: space-between;
  padding-top: 13px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.access-stamp {
  position: absolute;
  right: 40%;
  bottom: 6%;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border: 1.5px solid rgba(216, 93, 66, 0.52);
  border-radius: 50%;
  color: rgba(216, 93, 66, 0.7);
  font-family: "Gowun Batang", serif;
  transform: rotate(-11deg);
}

.access-stamp::after {
  position: absolute;
  inset: 5px;
  border: 1px dashed currentColor;
  border-radius: 50%;
  content: "";
}

.access-stamp span {
  margin-top: 9px;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1;
}

.access-stamp small {
  align-self: start;
  font-size: 0.42rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

@keyframes access-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  50% { transform: translateX(4px); }
  75% { transform: translateX(-2px); }
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

button {
  color: inherit;
}

.paper-grain {
  position: fixed;
  z-index: 1000;
  inset: 0;
  pointer-events: none;
  opacity: 0.25;
  background-image:
    repeating-linear-gradient(0deg, rgba(30, 24, 18, 0.025) 0, rgba(30, 24, 18, 0.025) 1px, transparent 1px, transparent 4px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.22) 0, rgba(255, 255, 255, 0.22) 1px, transparent 1px, transparent 5px);
  mix-blend-mode: multiply;
}

.skip-link {
  position: fixed;
  z-index: 2000;
  left: 16px;
  top: 12px;
  padding: 11px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper-light);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-150%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.site-chrome {
  position: sticky;
  z-index: 55;
  top: 0;
}

.topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--topbar-height);
  padding: 0 max(22px, calc((100vw - 1240px) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(243, 238, 228, 0.9);
  backdrop-filter: blur(16px);
}

.home-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: 9px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.home-link > span:first-child {
  font-size: 1.1rem;
  transition: transform 200ms var(--ease);
}

.home-link:hover > span:first-child {
  transform: translateX(-4px);
}

.topbar-trip {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink-soft);
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.topbar-divider {
  width: 24px;
  height: 1px;
  background: var(--line-strong);
}

.relock-button,
.wallet-open {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 7px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: border-color 180ms ease, color 180ms ease, background 180ms ease;
}

.relock-button:hover,
.wallet-open:hover {
  border-color: var(--red);
  background: rgba(216, 93, 66, 0.07);
  color: var(--red);
}

.wallet-open {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper-light);
}

.wallet-open:hover {
  border-color: var(--red);
  background: var(--red);
  color: white;
}

.today-rail {
  position: relative;
  z-index: 1;
  min-height: var(--live-rail-height);
  border-bottom: 1px solid rgba(251, 248, 241, 0.24);
  background: var(--ink);
  color: var(--paper-light);
  box-shadow: 0 8px 28px rgba(23, 35, 31, 0.16);
}

.today-rail-inner {
  display: grid;
  width: min(1240px, calc(100% - 44px));
  min-height: var(--live-rail-height);
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: clamp(16px, 2.4vw, 34px);
  margin: 0 auto;
}

.live-day,
.live-next,
.live-countdown {
  min-width: 0;
}

.live-day {
  min-width: 112px;
  padding-right: clamp(16px, 2vw, 28px);
  border-right: 1px solid rgba(251, 248, 241, 0.22);
}

.live-day span,
.live-next > span,
.live-countdown span {
  display: block;
  color: rgba(251, 248, 241, 0.58);
  font-size: 0.51rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1.25;
}

.live-day strong {
  display: block;
  margin-top: 3px;
  color: #ed7b62;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
}

.live-next {
  display: grid;
  grid-template-columns: minmax(0, max-content) minmax(0, 1fr);
  align-items: baseline;
  column-gap: 13px;
}

.live-next > span {
  grid-column: 1 / -1;
}

.live-next strong {
  overflow: hidden;
  margin-top: 4px;
  font-family: "Gowun Batang", serif;
  font-size: 0.88rem;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-next small {
  overflow: hidden;
  color: rgba(251, 248, 241, 0.66);
  font-size: 0.61rem;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-countdown {
  min-width: 86px;
  padding-left: clamp(16px, 2vw, 28px);
  border-left: 1px solid rgba(251, 248, 241, 0.22);
  text-align: right;
}

.live-countdown strong {
  display: block;
  margin-top: 2px;
  color: #f1c895;
  font-size: 0.86rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.live-directions {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 13px;
  border: 1px solid rgba(251, 248, 241, 0.34);
  border-radius: 999px;
  color: var(--paper-light);
  font-size: 0.62rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.live-directions:hover {
  border-color: var(--paper-light);
  background: var(--paper-light);
  color: var(--ink);
}

.live-directions[hidden] {
  display: none;
}

main {
  position: relative;
  z-index: 1;
}

.hero {
  position: relative;
  overflow: hidden;
  width: min(1240px, calc(100% - 44px));
  min-height: min(760px, calc(100svh - var(--chrome-height)));
  margin: 0 auto;
  padding: clamp(78px, 10vw, 138px) 0 84px;
  border-bottom: 1px solid var(--line-strong);
}

.hero::before {
  position: absolute;
  z-index: -1;
  top: 52px;
  right: -9vw;
  width: min(620px, 55vw);
  aspect-ratio: 1;
  border: 1px solid rgba(23, 35, 31, 0.08);
  border-radius: 50%;
  content: "";
}

.hero::after {
  position: absolute;
  z-index: -1;
  top: 88px;
  right: -4vw;
  width: min(520px, 46vw);
  aspect-ratio: 1;
  border: 1px dashed rgba(216, 93, 66, 0.23);
  border-radius: 50%;
  content: "";
}

.hero-route {
  display: grid;
  grid-template-columns: auto minmax(80px, 220px) auto;
  align-items: center;
  width: min(540px, 100%);
  gap: 15px;
  margin-bottom: 36px;
  color: var(--ink-soft);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.2em;
}

.hero-route-line {
  position: relative;
  display: block;
  height: 1px;
  background: var(--line-strong);
}

.hero-route-line::after {
  position: absolute;
  right: 0;
  top: -3px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
  content: "";
}

.hero-route-line i {
  position: absolute;
  left: 0;
  top: -3px;
  width: 7px;
  height: 7px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(330px, 0.64fr);
  align-items: end;
  gap: clamp(40px, 8vw, 118px);
}

.eyebrow,
.section-index,
.map-kicker,
.rule-label {
  margin: 0;
  color: var(--red);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 12px 0 28px;
  font-family: "Gowun Batang", "Noto Serif KR", serif;
  font-size: clamp(3.15rem, 7.3vw, 6.9rem);
  font-weight: 700;
  letter-spacing: -0.075em;
  line-height: 1.03;
}

.hero h1 em {
  color: var(--red);
  font-style: normal;
}

.hero-lede {
  max-width: 34rem;
  margin: 0;
  color: var(--ink-soft);
  font-family: "Gowun Batang", serif;
  font-size: clamp(1rem, 1.65vw, 1.3rem);
  line-height: 1.8;
}

.trip-ticket {
  position: relative;
  overflow: hidden;
  padding: 24px 25px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  background: rgba(251, 248, 241, 0.78);
  box-shadow: var(--shadow);
  transform: rotate(1.4deg);
}

.trip-ticket::before,
.trip-ticket::after {
  position: absolute;
  top: 53%;
  width: 24px;
  height: 24px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--paper);
  content: "";
}

.trip-ticket::before {
  left: -13px;
}

.trip-ticket::after {
  right: -13px;
}

.ticket-top {
  display: flex;
  justify-content: space-between;
  padding-bottom: 17px;
  border-bottom: 1px dashed var(--line-strong);
  color: var(--ink-soft);
  font-size: 0.63rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

#trip-status {
  color: var(--red);
}

.ticket-main {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 30px 0 25px;
  text-align: center;
}

.ticket-code {
  font-family: "Gowun Batang", serif;
  font-size: clamp(2.55rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.05em;
}

.ticket-arrow {
  color: var(--red);
  font-size: 1.35rem;
}

.ticket-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 0;
  padding-top: 18px;
  border-top: 1px dashed var(--line-strong);
}

.ticket-meta div {
  min-width: 0;
}

.ticket-meta dt {
  color: var(--ink-soft);
  font-size: 0.62rem;
  font-weight: 700;
}

.ticket-meta dd {
  margin: 3px 0 0;
  font-size: 0.77rem;
  font-weight: 800;
}

.ticket-barcode {
  width: 100%;
  height: 26px;
  margin-top: 22px;
  opacity: 0.6;
  background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 5px, var(--ink) 5px 6px, transparent 6px 10px);
}

.hero-stamp {
  position: absolute;
  right: 1.5%;
  bottom: 23px;
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border: 2px solid rgba(216, 93, 66, 0.57);
  border-radius: 50%;
  color: rgba(216, 93, 66, 0.76);
  font-family: "Gowun Batang", serif;
  transform: rotate(-10deg);
}

.hero-stamp::after {
  position: absolute;
  inset: 5px;
  border: 1px dashed currentColor;
  border-radius: 50%;
  content: "";
}

.hero-stamp span {
  margin-top: 12px;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
}

.hero-stamp small {
  align-self: start;
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.section-shell {
  width: min(1240px, calc(100% - 44px));
  margin: 0 auto;
  padding: clamp(78px, 10vw, 130px) 0;
  border-bottom: 1px solid var(--line-strong);
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 42px;
}

.section-heading h2 {
  margin: 5px 0 0;
  font-family: "Gowun Batang", serif;
  font-size: clamp(2rem, 4vw, 3.3rem);
  letter-spacing: -0.045em;
  line-height: 1.2;
}

.section-heading > p {
  max-width: 29rem;
  margin: 0 0 6px;
  color: var(--ink-soft);
  font-size: 0.86rem;
  text-align: right;
}

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

.overview-day {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 248px;
  flex-direction: column;
  align-items: flex-start;
  padding: 21px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: rgba(251, 248, 241, 0.55);
  text-align: left;
  cursor: pointer;
  transition: border-color 220ms var(--ease), transform 220ms var(--ease), box-shadow 220ms var(--ease);
}

.overview-day::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--day-color);
  content: "";
}

.overview-day::after {
  position: absolute;
  right: -28px;
  bottom: -39px;
  width: 112px;
  height: 112px;
  border: 1px solid color-mix(in srgb, var(--day-color) 42%, transparent);
  border-radius: 50%;
  content: "";
}

.overview-day:hover {
  border-color: var(--day-color);
  box-shadow: 0 14px 34px rgba(38, 31, 23, 0.09);
  transform: translateY(-5px);
}

.overview-number {
  color: var(--day-color);
  font-family: "Gowun Batang", serif;
  font-size: 2.7rem;
  line-height: 1;
}

.overview-date {
  margin: 10px 0 24px;
  color: var(--ink-soft);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.overview-day strong {
  font-family: "Gowun Batang", serif;
  font-size: 1.12rem;
}

.overview-route {
  margin: 7px 0 20px;
  color: var(--ink-soft);
  font-size: 0.73rem;
}

.overview-stay {
  margin-top: auto;
  padding-top: 13px;
  border-top: 1px dashed var(--line);
  color: var(--ink-soft);
  font-size: 0.65rem;
  font-weight: 700;
}

.atlas {
  width: 100%;
  padding-right: max(22px, calc((100vw - 1240px) / 2));
  padding-left: max(22px, calc((100vw - 1240px) / 2));
}

.atlas-heading,
.day-tabs,
.atlas-layout {
  width: min(1240px, 100%);
  margin-right: auto;
  margin-left: auto;
}

.day-tabs {
  position: sticky;
  z-index: 40;
  top: var(--chrome-height);
  display: grid;
  grid-template-columns: repeat(var(--day-tab-count, 5), 1fr);
  margin-bottom: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  background: rgba(243, 238, 228, 0.94);
  backdrop-filter: blur(14px);
}

.day-tab {
  position: relative;
  min-height: 58px;
  padding: 9px 12px;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease;
}

.day-tab:last-child {
  border-right: 0;
}

.day-tab span,
.day-tab small {
  display: block;
}

.day-tab span {
  font-size: 0.78rem;
  font-weight: 800;
}

.day-tab small {
  color: var(--ink-soft);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
}

.day-tab::after {
  position: absolute;
  right: 12px;
  bottom: -1px;
  left: 12px;
  height: 3px;
  background: var(--red);
  content: "";
  transform: scaleX(0);
  transition: transform 200ms var(--ease);
}

.day-tab.is-active {
  background: var(--paper-light);
}

.day-tab.is-active::after {
  transform: scaleX(1);
}

.atlas-layout {
  display: grid;
  grid-template-columns: minmax(360px, 0.88fr) minmax(0, 1.12fr);
  align-items: start;
  gap: clamp(30px, 4.5vw, 66px);
}

.map-shell {
  position: sticky;
  top: calc(var(--chrome-height) + 78px);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: var(--paper-light);
  box-shadow: var(--shadow);
}

.map-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 16px;
  padding: 13px 16px 12px 19px;
  border-bottom: 1px solid var(--line);
}

.map-kicker {
  display: block;
  color: var(--ink-soft);
  font-size: 0.55rem;
}

.map-toolbar strong {
  display: block;
  margin-top: 2px;
  font-family: "Gowun Batang", serif;
  font-size: 1rem;
}

.map-expand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  gap: 7px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  font-size: 0.65rem;
  font-weight: 700;
  cursor: pointer;
}

#trip-map {
  position: relative;
  z-index: 1;
  width: 100%;
  height: clamp(390px, 58vh, 640px);
  background: #ddd8cb;
}

.map-loading {
  position: absolute;
  z-index: 0;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--ink-soft);
  font-size: 0.75rem;
}

.leaflet-container {
  overflow: hidden !important;
  font-family: "Noto Sans KR", sans-serif;
}

.leaflet-tile-pane {
  filter: saturate(0.62) sepia(0.1) contrast(0.93) brightness(1.03);
}

.leaflet-control-zoom a {
  color: var(--ink) !important;
}

.leaflet-control-attribution {
  color: #4e5752;
  font-size: 9px;
}

.leaflet-control-attribution a {
  color: inherit;
}

.trip-marker-icon {
  border: 0;
  background: transparent;
}

.trip-marker {
  position: relative;
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border: 2px solid var(--paper-light);
  border-radius: 50% 50% 50% 4px;
  background: var(--marker-color, var(--ink));
  box-shadow: 0 4px 13px rgba(26, 29, 26, 0.28);
  color: white;
  font-size: 0.61rem;
  font-weight: 800;
  transform: rotate(-45deg);
  transition: transform 180ms var(--ease), box-shadow 180ms var(--ease);
}

.trip-marker span {
  transform: rotate(45deg);
}

.trip-marker.is-optional {
  border-color: var(--marker-color, var(--ink));
  background: var(--paper-light);
  color: var(--marker-color, var(--ink));
}

.trip-marker.is-active {
  z-index: 10;
  box-shadow: 0 0 0 7px rgba(216, 93, 66, 0.2), 0 7px 18px rgba(26, 29, 26, 0.3);
  transform: rotate(-45deg) scale(1.18);
}

.trip-popup h3 {
  margin: 2px 0 4px;
  font-family: "Gowun Batang", serif;
  font-size: 0.95rem;
}

.trip-popup p {
  margin: 0 0 8px;
  color: var(--ink-soft);
  font-size: 0.7rem;
}

.trip-popup a {
  color: var(--red);
  font-size: 0.68rem;
  font-weight: 800;
  text-decoration: none;
}

.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
  background: var(--paper-light);
}

.leaflet-popup-content-wrapper {
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 34px rgba(30, 28, 23, 0.18);
}

.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 15px;
  padding: 14px 18px 9px;
  border-top: 1px solid var(--line);
}

.map-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-soft);
  font-size: 0.58rem;
  font-weight: 700;
}

.map-legend i {
  width: 18px;
  height: 3px;
  border-radius: 99px;
  background: var(--legend);
}

.map-legend i.optional-dot {
  width: 8px;
  height: 8px;
  border: 1px solid var(--ink-soft);
  border-radius: 50%;
  background: transparent;
}

.map-note {
  margin: 0;
  padding: 2px 18px 15px;
  color: var(--ink-soft);
  font-size: 0.56rem;
  line-height: 1.6;
}

.map-error {
  padding: 12px 18px;
  border-top: 1px solid rgba(216, 93, 66, 0.3);
  background: rgba(216, 93, 66, 0.08);
  color: #813928;
  font-size: 0.68rem;
}

.map-shell.is-expanded {
  position: fixed;
  z-index: 1200;
  inset: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  box-shadow: 0 0 0 100vmax rgba(13, 20, 18, 0.72), 0 24px 80px rgba(0, 0, 0, 0.32);
}

.map-shell.is-expanded #trip-map {
  height: auto;
  min-height: 0;
  flex: 1;
}

.map-shell.is-expanded .map-note {
  display: none;
}

.schedule-column {
  min-width: 0;
}

.day-section {
  margin-bottom: 104px;
}

.day-section:last-child {
  margin-bottom: 0;
}

.day-section[hidden] {
  display: none;
}

.day-header {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 28px;
  padding-bottom: 22px;
  border-bottom: 2px solid var(--day-color);
}

.day-badge {
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  flex: 0 0 70px;
  border: 1px solid var(--day-color);
  border-radius: 50%;
  color: var(--day-color);
}

.day-badge span {
  align-self: end;
  font-size: 0.5rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.day-badge strong {
  align-self: start;
  margin-top: -2px;
  font-family: "Gowun Batang", serif;
  font-size: 1.7rem;
  line-height: 1;
}

.day-header p {
  margin: 0;
  color: var(--day-color);
  font-size: 0.61rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.day-header h2 {
  margin: 2px 0 1px;
  font-family: "Gowun Batang", serif;
  font-size: clamp(1.65rem, 3.3vw, 2.35rem);
  letter-spacing: -0.04em;
  line-height: 1.25;
}

.day-header div > span {
  color: var(--ink-soft);
  font-size: 0.68rem;
}

.timeline {
  position: relative;
  display: grid;
  gap: 12px;
}

.timeline::before {
  position: absolute;
  z-index: -1;
  top: 20px;
  bottom: 20px;
  left: 76px;
  width: 1px;
  background: linear-gradient(var(--day-color), var(--line));
  content: "";
}

.timeline-card {
  position: relative;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 17px;
}

.timeline-card > time {
  position: relative;
  padding: 18px 12px 0 0;
  color: var(--ink);
  font-size: 0.73rem;
  font-weight: 800;
  line-height: 1.35;
  text-align: right;
}

.timeline-card > time::after {
  position: absolute;
  z-index: 1;
  top: 23px;
  right: -5px;
  width: 9px;
  height: 9px;
  border: 2px solid var(--paper);
  border-radius: 50%;
  background: var(--day-color);
  box-shadow: 0 0 0 1px var(--day-color);
  content: "";
}

.timeline-card > time small {
  display: block;
  color: var(--ink-soft);
  font-size: 0.57rem;
  font-weight: 600;
}

.timeline-card-body {
  position: relative;
  min-width: 0;
  padding: 17px 18px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(251, 248, 241, 0.68);
  transition: border-color 200ms ease, box-shadow 200ms ease, transform 200ms var(--ease), opacity 200ms ease, filter 200ms ease;
}

.timeline-card.is-past > time,
.timeline-card.is-past .timeline-card-body {
  opacity: 0.46;
  filter: saturate(0.5);
}

.timeline-card.is-past:hover > time,
.timeline-card.is-past:hover .timeline-card-body,
.timeline-card.is-past:focus-within > time,
.timeline-card.is-past:focus-within .timeline-card-body {
  opacity: 0.78;
}

.timeline-card.is-current .timeline-card-body {
  border-color: var(--day-color);
  box-shadow: 0 12px 34px color-mix(in srgb, var(--day-color) 18%, transparent);
}

.timeline-card.is-current .timeline-card-body::after,
.timeline-card.is-next .timeline-card-body::after {
  position: absolute;
  top: -9px;
  right: 12px;
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--day-color);
  color: white;
  content: "NOW";
  font-size: 0.47rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.timeline-card.is-next .timeline-card-body {
  border-color: color-mix(in srgb, var(--day-color) 58%, var(--line));
}

.timeline-card.is-next .timeline-card-body::after {
  border: 1px solid color-mix(in srgb, var(--day-color) 52%, var(--line));
  background: var(--paper-light);
  color: var(--day-color);
  content: "NEXT";
}

.timeline-card.is-current > time::after {
  box-shadow: 0 0 0 1px var(--day-color), 0 0 0 7px color-mix(in srgb, var(--day-color) 15%, transparent);
  animation: live-marker-pulse 1.8s ease-in-out infinite;
}

@keyframes live-marker-pulse {
  50% {
    box-shadow: 0 0 0 1px var(--day-color), 0 0 0 11px transparent;
  }
}

.timeline-card:hover .timeline-card-body,
.timeline-card.is-active .timeline-card-body {
  border-color: color-mix(in srgb, var(--day-color) 62%, var(--line));
  box-shadow: 0 10px 26px rgba(38, 31, 23, 0.07);
  transform: translateX(3px);
}

.timeline-card.is-active .timeline-card-body {
  outline: 2px solid color-mix(in srgb, var(--day-color) 25%, transparent);
  outline-offset: 2px;
}

.timeline-card.optional .timeline-card-body {
  border-style: dashed;
  background: rgba(251, 248, 241, 0.4);
}

.card-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.stop-type {
  display: block;
  margin-bottom: 2px;
  color: var(--day-color);
  font-size: 0.53rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.stop-type.priority {
  color: #b53f2a;
}

.stop-type.optional-label {
  color: var(--ink-soft);
}

.timeline-card h3 {
  margin: 0;
  font-family: "Gowun Batang", serif;
  font-size: 1.05rem;
  letter-spacing: -0.025em;
  line-height: 1.45;
}

.timeline-card p {
  margin: 6px 0 0;
  color: var(--ink-soft);
  font-size: 0.72rem;
}

.timeline-card p strong {
  color: var(--ink);
}

.map-focus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  min-height: 44px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  font-size: 0.61rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.map-focus::before {
  width: 6px;
  height: 6px;
  margin-right: 5px;
  border-radius: 50%;
  background: var(--day-color);
  content: "";
}

.map-focus:hover {
  border-color: var(--day-color);
  background: var(--day-color);
  color: white;
}

.map-focus:hover::before {
  background: white;
}

.external-map {
  display: inline-block;
  margin-top: 9px;
  color: var(--day-color);
  font-size: 0.62rem;
  font-weight: 800;
  text-underline-offset: 3px;
}

.external-map.is-directions {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border: 1px solid color-mix(in srgb, var(--day-color) 45%, var(--line));
  border-radius: 999px;
  text-decoration: none;
}

.external-map.is-directions:hover {
  background: color-mix(in srgb, var(--day-color) 9%, transparent);
}

.stop-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.stop-tags li {
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 0.59rem;
  font-weight: 600;
}

.timeline-card.compact .timeline-card-body {
  padding-top: 14px;
  padding-bottom: 14px;
  background: transparent;
}

.rule-card {
  position: relative;
  margin: 26px 0 0 93px;
  padding: 22px 24px;
  overflow: hidden;
  border: 1px solid var(--day-color);
  background:
    repeating-linear-gradient(135deg, transparent 0 12px, color-mix(in srgb, var(--day-color) 5%, transparent) 12px 13px),
    rgba(251, 248, 241, 0.58);
}

.rule-card::after {
  position: absolute;
  right: -22px;
  top: -25px;
  width: 100px;
  height: 100px;
  border: 1px solid color-mix(in srgb, var(--day-color) 40%, transparent);
  border-radius: 50%;
  content: "";
}

.rule-label {
  color: var(--day-color);
}

.rule-card h3 {
  margin: 4px 0 13px;
  font-family: "Gowun Batang", serif;
  font-size: 1.12rem;
}

.rule-card ol {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: rule;
}

.rule-card li {
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper-light);
  color: var(--ink-soft);
  font-size: 0.64rem;
  counter-increment: rule;
}

.rule-card li::before {
  margin-right: 5px;
  color: var(--day-color);
  font-weight: 800;
  content: counter(rule);
}

.rule-card p {
  margin: 13px 0 0;
  color: var(--ink-soft);
  font-size: 0.64rem;
}

.checklist-reset {
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  font-size: 0.66rem;
  font-weight: 700;
  cursor: pointer;
}

.checklist-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border: 1px solid var(--line-strong);
}

.check-item {
  display: flex;
  min-height: 150px;
  align-items: flex-start;
  gap: 13px;
  padding: 21px 17px;
  border-right: 1px solid var(--line);
  background: rgba(251, 248, 241, 0.5);
  cursor: pointer;
}

.check-item:last-child {
  border-right: 0;
}

.check-item input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.check-box {
  position: relative;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border: 1px solid var(--line-strong);
  background: var(--paper-light);
}

.check-item input:checked + .check-box {
  border-color: var(--teal);
  background: var(--teal);
}

.check-item input:checked + .check-box::after {
  width: 8px;
  height: 4px;
  border-bottom: 2px solid white;
  border-left: 2px solid white;
  content: "";
  transform: rotate(-45deg) translateY(-1px);
}

.check-item input:focus-visible + .check-box {
  outline: 3px solid rgba(216, 93, 66, 0.27);
  outline-offset: 3px;
}

.check-item strong,
.check-item small {
  display: block;
}

.check-item strong {
  font-family: "Gowun Batang", serif;
  font-size: 0.9rem;
}

.check-item small {
  margin-top: 6px;
  color: var(--ink-soft);
  font-size: 0.65rem;
  line-height: 1.55;
}

.check-item:has(input:checked) {
  background: rgba(36, 123, 120, 0.08);
}

.check-item:has(input:checked) strong,
.check-item:has(input:checked) small {
  opacity: 0.55;
  text-decoration: line-through;
}

.footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  width: min(1240px, calc(100% - 44px));
  gap: 32px;
  margin: 0 auto;
  padding: 58px 0 max(58px, env(safe-area-inset-bottom));
  color: var(--ink-soft);
  font-size: 0.7rem;
}

.footer > div:first-child {
  display: flex;
  align-items: center;
  gap: 17px;
}

.footer p {
  margin: 0;
}

.footer-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--red);
  color: var(--red);
  font-family: "Gowun Batang", serif;
  font-size: 1.35rem;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a,
.footer-links .relock-button {
  font-weight: 700;
  text-underline-offset: 4px;
}

.footer-links .relock-button {
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: inherit;
  letter-spacing: 0;
  text-decoration: underline;
}

.travel-wallet {
  width: min(520px, 100%);
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0 0 0 auto;
  padding: 0;
  border: 0;
  background: var(--paper);
  color: var(--ink);
  box-shadow: -24px 0 80px rgba(17, 27, 23, 0.24);
}

.travel-wallet:not([open]) {
  display: none;
}

.travel-wallet[open] {
  animation: wallet-drawer-in 360ms var(--ease) both;
}

.travel-wallet::backdrop {
  background: rgba(14, 23, 20, 0.58);
  backdrop-filter: blur(4px);
  animation: wallet-backdrop-in 260ms ease both;
}

.wallet-sheet {
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0 30px max(34px, env(safe-area-inset-bottom));
  background:
    radial-gradient(circle at 100% 0, rgba(216, 93, 66, 0.11), transparent 20rem),
    var(--paper);
  overscroll-behavior: contain;
}

.wallet-header {
  position: sticky;
  z-index: 2;
  top: 0;
  display: flex;
  min-height: 102px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 -30px;
  padding: max(18px, env(safe-area-inset-top)) 30px 17px;
  border-bottom: 1px solid var(--line-strong);
  background: rgba(243, 238, 228, 0.94);
  backdrop-filter: blur(14px);
}

.wallet-header p {
  margin: 0 0 3px;
  color: var(--red);
  font-size: 0.53rem;
  font-weight: 900;
  letter-spacing: 0.17em;
}

.wallet-header h2 {
  margin: 0;
  font-family: "Gowun Batang", serif;
  font-size: 1.5rem;
  letter-spacing: -0.035em;
  line-height: 1.25;
}

.wallet-close {
  display: inline-flex;
  min-width: 48px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 7px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  font-size: 0.62rem;
  font-weight: 800;
  cursor: pointer;
}

.wallet-intro,
.wallet-footnote {
  color: var(--ink-soft);
  font-size: 0.68rem;
  line-height: 1.75;
}

.wallet-intro {
  margin: 25px 0 19px;
}

.wallet-intro code {
  padding: 2px 5px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--paper-light);
  color: var(--ink);
  font-size: 0.62rem;
}

.wallet-items {
  display: grid;
  gap: 12px;
}

.wallet-ticket {
  --ticket-color: var(--red);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-left: 4px solid var(--ticket-color);
  border-radius: 5px;
  background: rgba(251, 248, 241, 0.82);
}

.wallet-ticket-stay {
  --ticket-color: var(--teal);
}

.wallet-ticket-rental {
  --ticket-color: var(--gold);
}

.wallet-ticket-ticket {
  --ticket-color: var(--blue);
}

.wallet-ticket summary {
  display: grid;
  min-height: 94px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 17px 18px;
  cursor: pointer;
  list-style: none;
}

.wallet-ticket summary::-webkit-details-marker {
  display: none;
}

.wallet-ticket summary small,
.wallet-ticket summary strong,
.wallet-ticket summary span span {
  display: block;
}

.wallet-ticket summary small {
  color: var(--ticket-color);
  font-size: 0.5rem;
  font-weight: 900;
  letter-spacing: 0.15em;
}

.wallet-ticket summary strong {
  overflow-wrap: anywhere;
  margin: 3px 0 1px;
  font-family: "Gowun Batang", serif;
  font-size: 1rem;
  letter-spacing: -0.025em;
  line-height: 1.35;
}

.wallet-ticket summary span span {
  color: var(--ink-soft);
  font-size: 0.61rem;
  font-weight: 600;
}

.wallet-ticket summary i {
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-style: normal;
  transition: transform 200ms var(--ease), background 200ms ease;
}

.wallet-ticket[open] summary i {
  background: color-mix(in srgb, var(--ticket-color) 10%, transparent);
  transform: rotate(45deg);
}

.wallet-fields {
  margin: 0;
  padding: 0 18px 17px;
  border-top: 1px dashed var(--line-strong);
}

.wallet-field {
  display: grid;
  min-height: 58px;
  grid-template-columns: minmax(72px, 0.42fr) minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--line);
}

.wallet-field:last-child {
  border-bottom: 0;
}

.wallet-field dt {
  color: var(--ink-soft);
  font-size: 0.59rem;
  font-weight: 800;
}

.wallet-field dd {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0;
  font-size: 0.66rem;
  font-weight: 700;
}

.wallet-value {
  min-width: 0;
  overflow-wrap: anywhere;
}

.wallet-field-link {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 6px;
  color: var(--ticket-color);
  font-weight: 800;
  text-underline-offset: 3px;
}

.wallet-field-link::after {
  content: "↗";
  font-size: 0.62rem;
}

.wallet-empty {
  color: rgba(86, 97, 92, 0.58);
  font-weight: 600;
}

.wallet-copy {
  min-width: 48px;
  min-height: 38px;
  flex: 0 0 auto;
  padding: 6px 9px;
  border: 1px solid var(--ticket-color);
  border-radius: 999px;
  background: transparent;
  color: var(--ticket-color);
  font-size: 0.57rem;
  font-weight: 800;
  cursor: pointer;
}

.wallet-copy:disabled {
  border-color: var(--line);
  color: rgba(86, 97, 92, 0.38);
  cursor: not-allowed;
}

.wallet-footnote {
  margin: 20px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

@keyframes wallet-drawer-in {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
}

@keyframes wallet-sheet-in {
  from {
    opacity: 0;
    transform: translateY(100%);
  }
}

@keyframes wallet-backdrop-in {
  from {
    opacity: 0;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 480ms var(--ease), transform 480ms var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid rgba(216, 93, 66, 0.45);
  outline-offset: 3px;
}

@media (max-width: 1040px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
    gap: 44px;
  }

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

  .overview-day {
    min-height: 220px;
  }

  .atlas-layout {
    grid-template-columns: minmax(310px, 0.8fr) minmax(0, 1.2fr);
    gap: 30px;
  }

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

  .check-item:nth-child(3) {
    border-right: 0;
  }

  .check-item:nth-child(n + 4) {
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 820px) {
  :root {
    --topbar-height: 56px;
    --live-rail-height: 80px;
  }

  .access-stage {
    width: min(100% - 36px, 680px);
    min-height: 100svh;
    justify-content: flex-start;
    padding: 82px 0 42px;
  }

  .access-nav {
    min-height: 56px;
  }

  .access-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 34px 0 50px;
  }

  .access-route {
    margin-bottom: 22px;
  }

  .access-copy h2 {
    margin-bottom: 19px;
    font-size: clamp(3.15rem, 12.5vw, 5.2rem);
  }

  .access-ticket {
    width: min(100%, 470px);
    margin-left: auto;
  }

  .access-footer {
    position: relative;
    right: auto;
    bottom: auto;
    left: auto;
    margin-top: auto;
  }

  .access-stamp {
    right: auto;
    bottom: 28px;
    left: 3px;
  }

  .topbar {
    min-height: 56px;
    padding-right: 18px;
    padding-left: 18px;
  }

  .topbar-trip > span:first-child,
  .topbar-divider {
    display: none;
  }

  .today-rail-inner {
    width: min(100% - 36px, 680px);
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    gap: 12px;
  }

  .live-day {
    min-width: 74px;
    padding-right: 12px;
  }

  .live-next {
    display: block;
  }

  .live-next strong,
  .live-next small {
    display: block;
  }

  .live-next small {
    margin-top: 1px;
  }

  .live-countdown {
    min-width: 78px;
    padding-left: 12px;
  }

  .live-directions {
    min-height: 40px;
    padding-right: 11px;
    padding-left: 11px;
  }

  .hero,
  .section-shell,
  .footer {
    width: min(100% - 36px, 680px);
  }

  .hero {
    min-height: auto;
    padding: 74px 0 88px;
  }

  .hero::before {
    top: 25px;
    right: -45vw;
    width: 100vw;
  }

  .hero::after {
    top: 54px;
    right: -34vw;
    width: 82vw;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .hero h1 {
    font-size: clamp(3rem, 14vw, 5.4rem);
  }

  .trip-ticket {
    width: min(100%, 470px);
    margin-left: auto;
  }

  .hero-stamp {
    left: 6px;
    right: auto;
    bottom: 16px;
    width: 76px;
    height: 76px;
  }

  .hero-stamp span {
    font-size: 1.2rem;
  }

  .section-heading {
    display: block;
    margin-bottom: 30px;
  }

  .section-heading > p {
    margin-top: 11px;
    text-align: left;
  }

  .atlas {
    width: 100%;
    padding-right: 18px;
    padding-left: 18px;
  }

  .atlas-heading,
  .day-tabs,
  .atlas-layout {
    width: min(100%, 680px);
  }

  .day-tabs {
    top: var(--chrome-height);
    overflow-x: auto;
    grid-template-columns: repeat(var(--day-tab-count, 5), minmax(74px, 1fr));
    margin-bottom: 22px;
    scrollbar-width: none;
  }

  .day-tabs::-webkit-scrollbar {
    display: none;
  }

  .day-tab {
    min-height: 54px;
  }

  .atlas-layout {
    grid-template-columns: 1fr;
  }

  .map-shell {
    position: relative;
    top: auto;
  }

  #trip-map {
    height: min(54svh, 500px);
    min-height: 360px;
  }

  .map-column {
    margin-bottom: 24px;
  }

  .day-section {
    margin-bottom: 84px;
  }

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

  .check-item,
  .check-item:nth-child(3) {
    border-right: 1px solid var(--line);
  }

  .check-item:nth-child(even) {
    border-right: 0;
  }

  .check-item:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .travel-wallet {
    width: 100%;
    height: min(86dvh, 780px);
    margin: auto 0 0;
    border-radius: 26px 26px 0 0;
    box-shadow: 0 -24px 80px rgba(17, 27, 23, 0.25);
  }

  .travel-wallet[open] {
    animation-name: wallet-sheet-in;
  }

  .wallet-sheet {
    border-radius: 26px 26px 0 0;
  }
}

@media (max-width: 520px) {
  html {
    scroll-padding-top: calc(var(--chrome-height) + 58px);
  }

  .access-stage {
    width: calc(100% - 32px);
    padding: 74px 0 32px;
  }

  .access-nav > span:last-child {
    display: none;
  }

  .access-grid {
    gap: 24px;
    padding: 25px 0 36px;
  }

  .access-route {
    margin-bottom: 18px;
    font-size: 0.56rem;
  }

  .access-copy h2 {
    margin-top: 8px;
    margin-bottom: 16px;
    font-size: clamp(2.85rem, 15vw, 4.25rem);
  }

  .access-copy > p:last-child {
    font-size: 0.88rem;
  }

  .access-ticket {
    width: calc(100% - 8px);
    padding: 20px 18px 15px;
    transform: rotate(0.35deg);
  }

  .access-destination {
    gap: 12px;
    padding: 18px 0;
  }

  .access-destination strong {
    font-size: clamp(2.25rem, 12vw, 2.85rem);
  }

  .access-lock-mark {
    width: 38px;
    height: 38px;
  }

  #trip-password {
    min-height: 54px;
  }

  .access-footer {
    display: block;
    line-height: 1.8;
  }

  .access-footer span {
    display: block;
  }

  .access-stamp {
    display: none;
  }

  .home-link {
    font-size: 0.68rem;
  }

  .topbar-trip {
    gap: 8px;
    font-size: 0.58rem;
  }

  .topbar-trip .relock-button,
  .topbar-trip .wallet-open {
    min-height: 36px;
    padding: 5px 9px;
    font-size: 0.56rem;
  }

  .today-rail-inner {
    width: calc(100% - 32px);
    gap: 6px;
  }

  .live-day {
    min-width: 52px;
    padding-right: 8px;
  }

  .live-day span,
  .live-next small {
    display: none;
  }

  .live-day strong {
    margin-top: 0;
    font-size: 0.67rem;
  }

  .live-next > span {
    font-size: 0.46rem;
    letter-spacing: 0.1em;
  }

  .live-next strong {
    font-size: 0.75rem;
  }

  .live-countdown {
    min-width: 62px;
    padding-left: 8px;
  }

  .live-countdown span {
    font-size: 0.46rem;
    letter-spacing: 0.08em;
  }

  .live-countdown strong {
    font-size: 0.7rem;
  }

  .live-directions {
    width: 42px;
    padding: 0;
    font-size: 0;
  }

  .live-directions span {
    font-size: 0.76rem;
  }

  .wallet-sheet {
    padding-right: 18px;
    padding-left: 18px;
  }

  .wallet-header {
    min-height: 88px;
    margin-right: -18px;
    margin-left: -18px;
    padding-right: 18px;
    padding-left: 18px;
  }

  .wallet-header h2 {
    font-size: 1.28rem;
  }

  .wallet-intro {
    margin-top: 20px;
  }

  .wallet-ticket summary {
    min-height: 86px;
    padding-right: 14px;
    padding-left: 14px;
  }

  .wallet-fields {
    padding-right: 14px;
    padding-left: 14px;
  }

  .hero,
  .section-shell,
  .footer {
    width: calc(100% - 32px);
  }

  .hero {
    padding-top: 58px;
  }

  .hero-route {
    grid-template-columns: auto 1fr auto;
    gap: 10px;
    margin-bottom: 24px;
    font-size: 0.58rem;
  }

  .eyebrow,
  .section-index {
    font-size: 0.61rem;
  }

  .hero h1 {
    margin-bottom: 20px;
    font-size: clamp(2.78rem, 15vw, 4.6rem);
  }

  .hero-lede {
    font-size: 0.94rem;
  }

  .trip-ticket {
    width: calc(100% - 20px);
    padding-right: 19px;
    padding-left: 19px;
  }

  .ticket-top {
    font-size: 0.55rem;
  }

  .ticket-code {
    font-size: 2.75rem;
  }

  .ticket-meta dd {
    font-size: 0.67rem;
  }

  .section-shell {
    padding-top: 76px;
    padding-bottom: 76px;
  }

  .section-heading h2 {
    font-size: 2rem;
  }

  .overview-grid {
    gap: 9px;
  }

  .overview-day {
    min-height: 206px;
    padding: 16px 14px;
  }

  .overview-number {
    font-size: 2.15rem;
  }

  .overview-date {
    margin: 7px 0 17px;
    font-size: 0.52rem;
  }

  .overview-day strong {
    font-size: 0.91rem;
  }

  .overview-route,
  .overview-stay {
    font-size: 0.58rem;
  }

  .atlas {
    padding-top: 76px;
    padding-right: 16px;
    padding-left: 16px;
  }

  .day-tabs {
    width: calc(100% + 32px);
    margin-left: -16px;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .map-toolbar {
    min-height: 64px;
  }

  .expand-label {
    display: none;
  }

  #trip-map {
    height: 48svh;
    min-height: 330px;
  }

  .map-legend {
    gap: 7px 11px;
    padding-right: 14px;
    padding-left: 14px;
  }

  .map-note {
    padding-right: 14px;
    padding-left: 14px;
  }

  .map-shell.is-expanded {
    inset: max(7px, env(safe-area-inset-top)) max(7px, env(safe-area-inset-right)) max(7px, env(safe-area-inset-bottom)) max(7px, env(safe-area-inset-left));
  }

  .map-shell.is-expanded .map-legend {
    display: none;
  }

  .day-header {
    gap: 13px;
  }

  .day-badge {
    width: 58px;
    height: 58px;
    flex-basis: 58px;
  }

  .day-badge strong {
    font-size: 1.4rem;
  }

  .day-header h2 {
    font-size: 1.52rem;
  }

  .timeline::before {
    left: 59px;
  }

  .timeline-card {
    grid-template-columns: 59px minmax(0, 1fr);
    gap: 12px;
  }

  .timeline-card > time {
    padding-right: 8px;
    font-size: 0.64rem;
  }

  .timeline-card-body {
    padding: 15px 14px 14px;
  }

  .timeline-card h3 {
    font-size: 0.93rem;
  }

  .timeline-card p {
    font-size: 0.66rem;
  }

  .card-title-row {
    gap: 6px;
  }

  .map-focus {
    min-width: 44px;
    padding-right: 7px;
    padding-left: 7px;
    font-size: 0.55rem;
  }

  .rule-card {
    margin-left: 71px;
    padding: 18px;
  }

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

  .check-item,
  .check-item:nth-child(even),
  .check-item:nth-child(3) {
    min-height: 104px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .check-item:last-child {
    border-bottom: 0;
  }

  .footer {
    display: block;
  }

  .footer-links {
    margin-top: 25px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media print {
  body {
    background: white;
  }

  .paper-grain,
  .access-gate,
  .site-chrome,
  .travel-wallet,
  .day-tabs,
  .map-column,
  .map-focus,
  .checklist-reset,
  .external-map,
  .hero-stamp,
  .relock-button {
    display: none !important;
  }

  .hero,
  .section-shell,
  .footer {
    width: 100%;
  }

  .hero {
    min-height: 0;
    padding: 30px 0;
  }

  .hero-grid,
  .atlas-layout {
    grid-template-columns: 1fr;
  }

  .overview-day,
  .timeline-card-body,
  .rule-card,
  .check-item {
    break-inside: avoid;
  }

  .day-section[hidden] {
    display: block;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .timeline-card.is-past > time,
  .timeline-card.is-past .timeline-card-body {
    opacity: 1;
    filter: none;
  }
}
