/* Approved image-to-code pass: invitation, conversation and region selectors. */
.home-screen,
.dialog-screen,
.travel-map {
  --journal-ink: #10343c;
  --journal-paper: #f7f4eb;
  --journal-line: #d9d5c9;
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  color: var(--journal-ink);
  background: var(--journal-paper);
  font-family: "Songti SC", "STSong", "Noto Serif CJK SC", Georgia, serif;
}

.home-screen button,
.dialog-screen button,
.travel-map button { -webkit-tap-highlight-color: transparent; }

/* Invitation: a workday table slowly becomes a travel letter. */
.home-photo {
  position: absolute;
  inset: 0 0 35%;
  background: #a77e5e url('./assets/home-desk.jpg') center 49% / cover no-repeat;
}
.home-top {
  position: absolute;
  z-index: 2;
  top: calc(env(safe-area-inset-top) + 20px);
  left: 22px;
  right: 22px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  color: #fff9ed;
  font: 12px/1.5 Georgia, serif;
  letter-spacing: .22em;
  text-shadow: 0 2px 9px rgba(38, 31, 27, .28);
}
.home-top-count {
  display: grid;
  place-items: center;
  width: 51px;
  height: 51px;
  margin-top: -7px;
  border: 1px solid rgba(255, 249, 237, .86);
  border-radius: 50%;
  font-size: 10px;
  letter-spacing: .1em;
}
.home-paper,
.dialog-paper,
.travel-map-paper {
  background: var(--journal-paper) url('./assets/paper-texture.jpg') center / cover no-repeat;
}
.home-paper {
  position: absolute;
  z-index: 2;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  min-height: 332px;
  height: 43%;
  padding: 28px 22px calc(env(safe-area-inset-bottom) + 40px);
  box-shadow: 0 -2px 20px rgba(22, 28, 27, .08);
}
.home-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  font-size: 13px;
  letter-spacing: .08em;
  white-space: nowrap;
}
.home-kicker .icon {
  width: 22px;
  height: 22px;
  padding-right: 9px;
  box-sizing: content-box;
  border-right: 1px solid #9d9587;
  stroke-width: 1.7;
}
.home-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 3px; margin-top: 11px; }
.home-heading h1 {
  flex: 0 0 61%;
  margin: 0;
  font-size: clamp(39px, 10.7vw, 51px);
  font-weight: 500;
  line-height: 1.13;
  letter-spacing: -.055em;
  white-space: nowrap;
}
.home-route { flex: 1; min-width: 0; padding-bottom: 10px; color: #677474; text-align: right; font-size: 10px; white-space: nowrap; }
.home-route-dots {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 12px;
  margin-bottom: 4px;
  border-top: 1px dashed #ad765c;
}
.home-route-dots i { width: 5px; height: 5px; margin-top: -6px; border-radius: 50%; background: #a86c50; }
.home-paper > p { margin: 11px 0 0; font-size: 13px; line-height: 1.55; letter-spacing: .01em; }
.home-open {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 53px;
  margin-top: auto;
  border: 0;
  border-radius: 6px;
  background: #103e48;
  color: #fffaf2;
  font: 19px "Songti SC", "STSong", serif;
  letter-spacing: .13em;
}
.home-open .icon { width: 19px; height: 19px; stroke-width: 1.7; }
.home-open:active { transform: scale(.985); }

/* Dialogue: the same desk remains, while the letter turns into a conversation. */
.dialog-photo {
  position: absolute;
  inset: 0 0 auto;
  height: 29%;
  background: #ba8d63 url('./assets/home-desk.jpg') center 27% / cover no-repeat;
}
.dialog-photo-controls { position: absolute; z-index: 4; top: calc(env(safe-area-inset-top) + 16px); right: 18px; }
.dialog-photo-controls .sound-toggle--icon,
.travel-map-tools .sound-toggle--icon {
  width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 5px;
  border: 0;
  border-radius: 0;
  background: none;
  color: #fff;
  box-shadow: none;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .35);
}
.dialog-photo-controls .sound-toggle--icon .icon,
.travel-map-tools .sound-toggle--icon .icon { width: 26px; height: 26px; stroke-width: 1.6; }
.dialog-paper {
  position: absolute;
  z-index: 2;
  inset: clamp(148px, 25%, 230px) 0 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 23px 20px calc(env(safe-area-inset-bottom) + 20px);
  box-shadow: 0 -4px 19px rgba(22, 28, 27, .07);
}
.dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 32px; }
.dialog-heading-title { display: inline-flex; align-items: center; gap: 12px; font-size: 19px; letter-spacing: .05em; white-space: nowrap; }
.dialog-heading-title .icon { width: 25px; height: 25px; stroke-width: 1.6; }
.dialog-page { color: #4c6870; font: 12px Georgia, serif; letter-spacing: .2em; white-space: nowrap; }
.dialog-conversation {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 11px;
  min-height: 0;
  overflow-y: auto;
  padding: clamp(20px, 5vh, 54px) 0 22px;
  scrollbar-width: none;
}
.dialog-conversation::-webkit-scrollbar { display: none; }
.dialog-line { display: flex; align-items: flex-start; gap: 9px; flex: 0 0 auto; }
.dialog-line--outgoing { justify-content: flex-end; }
.dialog-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 31px;
  width: 31px;
  height: 31px;
  margin-top: 8px;
  border-radius: 50%;
  background: #e9e1d6;
  color: #a36546;
}
.dialog-avatar .icon { width: 17px; height: 17px; stroke-width: 1.8; }
.dialog-bubble {
  width: fit-content;
  max-width: min(78%, 390px);
  padding: 11px 16px;
  border-radius: 10px;
  background: #fffdfa;
  box-shadow: 0 4px 17px rgba(37, 47, 47, .055);
  color: #123942;
  font-size: clamp(16px, 4.5vw, 20px);
  line-height: 1.55;
  letter-spacing: .015em;
  text-wrap: pretty;
}
.dialog-line--outgoing .dialog-bubble { background: #10414b; color: #fffaf0; }
.dialog-bubble--typing:empty::after { content: '···'; color: #8d9a99; letter-spacing: .2em; }
.dialog-bubble--final { position: relative; padding-right: 42px; }
.dialog-bubble-ticket { position: absolute; right: 11px; bottom: 7px; color: #ae7651; transform: rotate(-16deg); }
.dialog-bubble-ticket .icon { width: 22px; height: 22px; stroke-width: 1.5; }
.dialog-actions { display: grid; flex: 0 0 auto; gap: 9px; padding-top: 12px; border-top: 1px solid #d5d1c5; }
.dialog-action-label { margin: 3px 0 2px; font-size: 13px; letter-spacing: .04em; }
.dialog-choice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 51px;
  width: 100%;
  padding: 8px 17px;
  border: 1px solid #16434c;
  border-radius: 9px;
  background: rgba(255, 253, 248, .52);
  color: #153943;
  text-align: left;
  font: 19px "Songti SC", "STSong", serif;
  letter-spacing: .06em;
}
.dialog-choice .icon { width: 21px; height: 21px; stroke-width: 1.7; }
.dialog-choice--primary { justify-content: center; background: #10414b; color: #fffaf0; border-color: #10414b; min-height: 55px; }
.dialog-choice--primary .icon:last-child { margin-left: 4px; }
.dialog-skip { justify-self: center; display: inline-flex; align-items: center; gap: 5px; min-height: 34px; border: 0; background: none; color: #477078; font-size: 12px; }
.dialog-skip .icon { width: 15px; height: 15px; }
.dialog-choice:active { transform: scale(.99); }

/* The destination selector is a photographic field guide. */
.travel-map-hero {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: clamp(210px, 28%, 260px);
  background-color: #5582a2;
  background-position: center 44%;
  background-size: cover;
}
.travel-map--japan .travel-map-hero { background-position: center 52%; }
.travel-map--korea .travel-map-hero { background-position: center top; }
.travel-map--xinjiang .travel-map-hero { background-position: center 59%; }
.travel-map--hongkong .travel-map-hero { background-position: center 57%; }
.travel-map-top {
  position: absolute;
  z-index: 4;
  top: calc(env(safe-area-inset-top) + 18px);
  left: 17px;
  right: 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  text-shadow: 0 2px 9px rgba(0, 0, 0, .45);
}
.travel-map-brand { display: inline-flex; align-items: center; gap: 9px; font: 11px Georgia, serif; letter-spacing: .18em; white-space: nowrap; }
.travel-map-brand .icon { width: 30px; height: 30px; stroke-width: 1.5; }
.travel-map-tools { display: inline-flex; align-items: center; gap: 6px; }
.travel-map-tool { display: grid; place-items: center; width: 34px; height: 36px; padding: 4px; border: 0; background: none; color: #fff; }
.travel-map-tool .icon { width: 25px; height: 25px; stroke-width: 1.5; filter: drop-shadow(0 2px 5px rgba(0,0,0,.4)); }
.travel-map-route {
  position: absolute;
  z-index: 3;
  top: clamp(126px, 17.2vh, 162px);
  left: 18px;
  right: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(6px, 2.6vw, 14px);
  color: #fffdf5;
  text-shadow: 0 2px 9px rgba(0, 0, 0, .7);
  font-size: clamp(12px, 3.4vw, 15px);
  white-space: nowrap;
}
.travel-route-stop { display: inline-flex; align-items: center; gap: 2px; padding: 0 0 6px; border-bottom: 2px solid transparent; }
.travel-route-stop.is-current { border-color: #fff0c9; font-weight: 700; }
.travel-route-stop.is-past { opacity: .88; }
.travel-route-stop .icon { width: 13px; height: 13px; }
.travel-route-divider { margin-bottom: 7px; opacity: .9; }
.travel-map-paper {
  position: absolute;
  z-index: 2;
  inset: clamp(160px, 22.2vh, 205px) 0 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 15px 15px calc(env(safe-area-inset-bottom) + 37px);
  box-shadow: 0 -2px 17px rgba(24, 32, 28, .08);
}
.travel-map-heading { display: grid; grid-template-columns: 69px auto 1fr; align-items: center; gap: 6px; flex: 0 0 auto; min-height: 70px; }
.travel-map-seal { display: block; width: 68px; height: 68px; border-radius: 50%; object-fit: cover; mix-blend-mode: multiply; }
.travel-map-heading h1 {
  width: fit-content;
  margin: 0;
  padding: 8px 13px 7px;
  background: #eee8dc;
  color: #162f38;
  font-size: clamp(38px, 11.2vw, 48px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -.045em;
  white-space: nowrap;
}
.travel-map-heading-copy { min-width: 0; padding-left: 10px; border-left: 1px solid #b4b0a7; }
.travel-map-heading-copy > span { display: block; font: 10px/1.3 Georgia, serif; letter-spacing: .16em; white-space: nowrap; }
.travel-map-heading-copy p { margin: 5px 0 0; font-size: clamp(10px, 2.85vw, 12px); line-height: 1.45; }
.travel-map-heading-copy small { display: inline-flex; align-items: center; gap: 2px; margin-top: 4px; font-size: 10px; color: #a56739; }
.travel-map-heading-copy small .icon { width: 12px; height: 12px; }
.travel-map--japan .travel-map-heading h1 { background: #f1e8dc; }
.travel-map--korea .travel-map-heading h1 { background: #e7eceb; }
.travel-map--xinjiang .travel-map-heading h1 { background: #e3ead8; }
.travel-map--hongkong .travel-map-heading h1 { background: #f4e3c7; }
.travel-map-progress { display: flex; align-items: center; gap: 9px; flex: 0 0 auto; min-height: 28px; margin: 2px 0 5px; border-top: 1px solid var(--journal-line); font-size: 11px; white-space: nowrap; }
.travel-map-progress strong { margin-left: 3px; color: #a55547; font: 600 14px Georgia, serif; }
.travel-map-progress-track { flex: 1; height: 3px; border-radius: 5px; background: #ddd9cc; overflow: hidden; }
.travel-map-progress-track i { display: block; height: 100%; background: #ad7659; transition: width .35s; }
.travel-map-progress-dots { display: inline-flex; gap: 5px; }
.travel-map-progress-dots i { width: 10px; height: 10px; border: 1px solid #aaa89f; border-radius: 50%; }
.travel-map-progress-dots i.is-filled { background: #ad7659; border-color: #ad7659; }
.travel-map-list { position: relative; display: flex; flex: 1; flex-direction: column; gap: 7px; min-height: 0; overflow-y: auto; padding: 2px 1px 9px; scrollbar-width: none; }
.travel-map-list::-webkit-scrollbar { display: none; }
.travel-stop {
  position: relative;
  display: flex;
  align-items: stretch;
  flex: 0 0 auto;
  width: 100%;
  min-height: 72px;
  padding: 0;
  overflow: hidden;
  border: 1px solid #e3ded2;
  border-radius: 7px;
  background: #fffdf8;
  color: #173a42;
  box-shadow: 0 3px 11px rgba(47, 50, 42, .065);
  text-align: left;
}
.travel-stop img { display: block; object-fit: cover; }
.travel-stop--featured { display: block; height: clamp(155px, 23vh, 210px); margin-bottom: 5px; }
.travel-stop--featured img { width: 100%; height: calc(100% - 32px); object-position: center 55%; }
.travel-stop--featured .travel-stop-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 32px;
  padding: 0 45px 0 13px;
  background: #123e47;
  color: #fff9e9;
}
.travel-stop--featured .travel-stop-copy small { margin-left: auto; font: 10px Georgia, serif; letter-spacing: .14em; white-space: nowrap; }
.travel-stop--row { height: clamp(62px, 7.8vh, 73px); min-height: 0; }
.travel-stop--row img { width: 39%; height: 100%; }
.travel-stop--row .travel-stop-copy { display: flex; flex: 1; flex-direction: column; justify-content: center; gap: 3px; min-width: 0; padding: 6px 33px 6px 11px; }
.travel-stop-name { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.travel-stop-name .icon { flex: 0 0 22px; width: 22px; height: 22px; color: #a1694f; stroke-width: 1.6; }
.travel-stop-name strong { overflow: hidden; font-size: clamp(16px, 4.5vw, 20px); font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.travel-stop--featured .travel-stop-name .icon { color: #e8ccad; }
.travel-stop-copy small { overflow: hidden; color: #738085; font: 9px/1.3 Georgia, serif; letter-spacing: .09em; white-space: nowrap; text-overflow: ellipsis; }
.travel-stop--featured .travel-stop-copy small { color: #e2ded0; }
.travel-stop-arrow { position: absolute; right: 11px; top: 50%; display: grid; place-items: center; transform: translateY(-50%); }
.travel-stop-arrow .icon { width: 19px; height: 19px; stroke-width: 1.6; }
.travel-stop-found { position: absolute; top: 5px; right: 6px; display: inline-flex; align-items: center; gap: 2px; padding: 2px 5px; border-radius: 10px; background: rgba(255,252,243,.88); color: #755b41; font-size: 9px; }
.travel-stop-found .icon { width: 10px; height: 10px; }
.travel-stop.is-locked { opacity: .68; }
.travel-stop.is-locked img { filter: saturate(.65); }
.travel-stop.is-done { border-color: #bc9d7b; }
.travel-stop:not(:disabled):active { transform: scale(.99); }
.travel-map-footer { display: grid; place-items: center; flex: 0 0 auto; min-height: 33px; padding-top: 6px; }
.travel-map-footnote { margin: 0; color: #827e71; text-align: center; font-size: 11px; line-height: 1.4; }
.travel-map-next { display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; min-height: 45px; border: 0; border-radius: 6px; background: #123e47; color: #fff8e9; font-size: 13px; }
.travel-map-next .icon { width: 16px; height: 16px; }
.travel-map--korea .travel-stop--featured .travel-stop-copy { background: #3c6071; }
.travel-map--xinjiang .travel-stop--featured .travel-stop-copy { background: #22503f; }
.travel-map--xinjiang .travel-map-progress-track i,
.travel-map--xinjiang .travel-map-progress-dots i.is-filled { background: #64896b; border-color: #64896b; }

/* The final region becomes an ordered itinerary. */
.travel-map--hongkong .travel-map-route { top: clamp(138px, 22vh, 190px); }
.travel-map--hongkong .travel-map-paper { top: clamp(190px, 26vh, 235px); padding-top: 10px; }
.travel-map--hongkong .travel-map-heading { grid-template-columns: 79px auto 1fr; min-height: 78px; margin-bottom: 23px; }
.travel-map--hongkong .travel-map-seal { width: 78px; height: 78px; }
.travel-map--hongkong .travel-map-list { gap: 8px; padding-left: 32px; }
.travel-map--hongkong .travel-map-list::before { content: ''; position: absolute; left: 14px; top: 20px; bottom: 26px; width: 1px; background: #c9b9aa; }
.travel-map--hongkong .travel-stop-number {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: -31px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  transform: translateY(-50%);
  border: 1px solid #c9c5ba;
  border-radius: 50%;
  background: var(--journal-paper);
  color: #73736b;
  font: 11px Georgia, serif;
}
.travel-map--hongkong .travel-stop { overflow: visible; }
.travel-map--hongkong .travel-stop img { border-radius: 6px 0 0 6px; }
.travel-map--hongkong .travel-stop--featured { display: flex; height: clamp(125px, 16.8vh, 158px); margin-bottom: 0; }
.travel-map--hongkong .travel-stop--featured img { width: 58%; height: 100%; }
.travel-map--hongkong .travel-stop--featured .travel-stop-copy { display: flex; flex: 1; flex-direction: column; justify-content: center; align-items: flex-start; gap: 8px; width: auto; height: 100%; min-width: 0; padding: 10px 28px 10px 11px; background: #fffdf8; color: #173a42; }
.travel-map--hongkong .travel-stop--featured .travel-stop-copy small { margin: 0; color: #8a755b; letter-spacing: 0; font: 11px "Songti SC", serif; }
.travel-map--hongkong .travel-stop--featured .travel-stop-arrow { right: 6px; width: 30px; height: 30px; border-radius: 50%; background: #a96827; color: #fffaf1; }
.travel-map--hongkong .travel-stop--featured .travel-stop-arrow .icon { width: 19px; height: 19px; }
.travel-map--hongkong .travel-stop--featured .travel-stop-name .icon { color: #a96827; }
.travel-map--hongkong .travel-stop--row { height: clamp(74px, 10.5vh, 95px); }
.travel-map--hongkong .travel-stop--row img { width: 54%; }
.travel-map--hongkong .travel-stop--row .travel-stop-copy { padding-left: 10px; }
.travel-map--hongkong .travel-stop-name { gap: 5px; }
.travel-map--hongkong .travel-stop-name .icon { flex-basis: 18px; width: 18px; height: 18px; }
.travel-map--hongkong .travel-stop-name strong { font-size: clamp(14px, 3.65vw, 17px); }
.travel-map--hongkong .travel-stop.is-locked { background: #f0efeb; }
.travel-map--hongkong .travel-stop.is-locked .travel-stop-arrow { right: 7px; }
.travel-map--hongkong .travel-stop:not(.is-locked) .travel-stop-number { background: #a76627; border-color: #a76627; color: #fff; }
.travel-map--hongkong .travel-stop:last-child { border-color: #c9cbd5; }

@media (max-width: 359px), (max-height: 680px) {
  .home-paper { height: 42%; min-height: 270px; padding: 20px 17px calc(env(safe-area-inset-bottom) + 40px); }
  .home-heading h1 { font-size: clamp(38px, 11vw, 43px); }
  .home-route { font-size: 9px; }
  .home-open { min-height: 47px; font-size: 16px; }
  .dialog-paper { inset: clamp(146px, 25%, 176px) 0 0; padding: 15px 14px calc(env(safe-area-inset-bottom) + 50px); }
  .dialog-screen--choice .dialog-paper { padding-bottom: calc(env(safe-area-inset-bottom) + 26px); }
  .dialog-heading-title { font-size: 16px; }
  .dialog-conversation { gap: 12px; padding-top: 22px; padding-bottom: 10px; }
  .dialog-bubble { padding: 10px 14px; font-size: 17px; }
  .dialog-choice { min-height: 43px; font-size: 16px; }
  .travel-map-paper { inset: 162px 0 0; padding: 12px 10px calc(env(safe-area-inset-bottom) + 8px); }
  .travel-map-route { top: 128px; }
  .travel-map-heading { grid-template-columns: 58px auto 1fr; min-height: 62px; gap: 3px; }
  .travel-map-seal { width: 57px; height: 57px; }
  .travel-map-heading h1 { font-size: 32px; padding: 5px; }
  .travel-map-heading-copy { padding-left: 6px; }
  .travel-map-heading-copy p { font-size: 10px; }
  .travel-map-progress { min-height: 25px; margin: 1px 0 4px; }
  .travel-stop--featured { height: 129px; }
  .travel-stop--row { height: 62px; }
  .travel-stop-name .icon { flex-basis: 17px; width: 17px; height: 17px; }
  .travel-stop-name strong { font-size: 15px; }
  .travel-map--hongkong .travel-map-heading { margin-bottom: 4px; }
  .travel-map--hongkong .travel-map-route { top: 139px; }
  .travel-map--hongkong .travel-map-paper { top: 174px; padding-bottom: calc(env(safe-area-inset-bottom) + 29px); }
  .travel-map--hongkong .travel-stop--featured { height: 112px; }
  .travel-map--hongkong .travel-stop--row { height: 64px; }
  .travel-map-footnote { font-size: 10px; }
}

/* A named boarding pass appears after the conversation. */
.ticket-card {
  margin: auto 1px;
  padding: 0;
  overflow: visible;
  border: 1px solid rgba(255, 250, 238, .74);
  border-radius: 7px;
  background: #f6efe2 url('./assets/paper-texture.jpg') center / cover;
  color: #183842;
  transform: rotate(-1deg);
}
.ticket-card::before,
.ticket-card::after { top: auto; bottom: 41px; width: 22px; height: 22px; }
.ticket-card::before { left: -12px; }
.ticket-card::after { right: -12px; }
.ticket-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 19px 13px;
  border-bottom: 1px solid #d0c9b9;
  color: #31525a;
  font: 9px/1 Georgia, serif;
  letter-spacing: .17em;
}
.ticket-card-head span:first-child { display: inline-flex; align-items: center; gap: 6px; font-weight: bold; }
.ticket-card-head .icon { width: 17px; height: 17px; }
.ticket-destination,
.ticket-passenger { display: grid; padding-left: 20px; padding-right: 20px; }
.ticket-destination { padding-top: 19px; padding-bottom: 8px; }
.ticket-passenger { padding-top: 5px; padding-bottom: 15px; }
.ticket-destination > span,
.ticket-passenger > span,
.ticket-data-grid span {
  color: #837a6e;
  font: 9px/1.3 Georgia, serif;
  letter-spacing: .17em;
}
.ticket-destination strong {
  margin-top: 3px;
  font: normal clamp(34px, 9.5vw, 43px)/1.05 Georgia, serif;
  letter-spacing: .045em;
}
.ticket-destination small { margin-top: 6px; color: #a06e53; font: 12px/1.3 "Songti SC", "STSong", serif; }
.ticket-passenger strong { margin-top: 4px; font: normal clamp(24px, 6.7vw, 29px)/1.15 Georgia, serif; letter-spacing: .015em; }
.ticket-data-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 20px;
  padding: 2px 0 0;
  border-top: 1px solid #bfb7a9;
  border-bottom: 1px dashed #aa9f8f;
}
.ticket-data-grid > div { display: grid; align-content: center; min-height: 48px; padding: 5px 6px 6px 0; }
.ticket-data-grid > div:nth-child(n + 4) { border-top: 1px solid #dcd3c6; }
.ticket-data-grid strong { margin-top: 4px; font: bold clamp(12px, 3.6vw, 15px)/1.2 Georgia, serif; letter-spacing: .01em; white-space: nowrap; }
.ticket-stub { display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 11px 20px; }
.ticket-stub > span:nth-child(2) { max-width: 135px; color: #6c7772; font: 8px/1.45 Georgia, serif; letter-spacing: .065em; }
.ticket-stub strong { margin-left: auto; color: #a06e53; font: bold 19px/1 Georgia, serif; }
.ticket-barcode { display: block; flex: 0 0 65px; height: 24px; background: repeating-linear-gradient(90deg, #1e3941 0 2px, transparent 2px 4px, #1e3941 4px 5px, transparent 5px 8px); opacity: .82; }

@media (max-height: 680px) {
  .ticket-card-head { padding-top: 12px; padding-bottom: 10px; }
  .ticket-destination { padding-top: 12px; padding-bottom: 5px; }
  .ticket-passenger { padding-bottom: 10px; }
  .ticket-data-grid > div { min-height: 42px; }
  .ticket-stub { min-height: 47px; padding-top: 8px; padding-bottom: 8px; }
  .ticket-card::before, .ticket-card::after { bottom: 34px; }
  .ticket-footer { gap: 7px; }
  .ticket-caption { font-size: 12px; }
  .quiet-note { font-size: 10px; }
}
