:root {
  --ink: #171713;
  --ink-soft: #514f47;
  --paper: #f4f0e6;
  --paper-deep: #e8e1d2;
  --gold: #a38445;
  --gold-light: #c6aa6a;
  --page: #d9d4c9;
  --white: #fffdf8;
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--page);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 15% 12%, rgba(255, 255, 255, 0.72), transparent 31rem),
    radial-gradient(circle at 84% 86%, rgba(163, 132, 69, 0.09), transparent 29rem),
    linear-gradient(135deg, #e0dcd3 0%, #d1cbc0 100%);
}

button {
  color: inherit;
  font: inherit;
}

.ambient-route {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.18;
}

.ambient-route path {
  fill: none;
  stroke: var(--gold);
  stroke-width: 1;
  stroke-dasharray: 5 13;
  animation: route-drift 25s linear infinite;
}

.ambient-route circle {
  fill: var(--gold);
}

.page-shell {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 100svh;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: clamp(36px, 8vh, 90px) clamp(20px, 4vw, 64px) 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.eyebrow {
  margin: 0 0 18px;
  color: rgba(23, 23, 19, 0.6);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.ticket-entry {
  width: 100%;
  perspective: 1600px;
  animation: ticket-arrive 900ms cubic-bezier(0.2, 0.82, 0.24, 1) both;
}

.ticket-float {
  width: 100%;
  animation: ticket-float 7s ease-in-out 1s infinite;
}

.boarding-pass {
  --rotate-x: 0deg;
  --rotate-y: 0deg;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(250px, 23vw, 310px);
  width: 100%;
  min-height: 456px;
  overflow: hidden;
  border: 1px solid rgba(23, 23, 19, 0.11);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow:
    0 26px 60px rgba(38, 34, 25, 0.16),
    0 5px 15px rgba(38, 34, 25, 0.08);
  transform: rotateX(var(--rotate-x)) rotateY(var(--rotate-y));
  transform-style: preserve-3d;
  transition: transform 280ms ease, box-shadow 280ms ease;
  will-change: transform;
}

.boarding-pass::after {
  position: absolute;
  inset: 0;
  z-index: 5;
  border-radius: inherit;
  background:
    repeating-radial-gradient(circle at 10% 20%, rgba(20, 18, 13, 0.045) 0 0.4px, transparent 0.7px 3px),
    repeating-linear-gradient(104deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 5px);
  content: "";
  mix-blend-mode: multiply;
  opacity: 0.3;
  pointer-events: none;
}

.ticket-main,
.ticket-stub {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.ticket-main {
  display: flex;
  flex-direction: column;
}

.ticket-header {
  position: relative;
  display: grid;
  min-height: 122px;
  padding: 24px 28px;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  overflow: hidden;
  background: var(--ink);
  color: var(--white);
}

.ticket-header::after,
.stub-header::after {
  position: absolute;
  right: -6%;
  bottom: -48px;
  width: 73%;
  height: 100px;
  border: 1px solid rgba(198, 170, 106, 0.24);
  border-right: 0;
  border-radius: 50%;
  box-shadow:
    0 -8px 0 -7px rgba(198, 170, 106, 0.18),
    0 -16px 0 -15px rgba(198, 170, 106, 0.13),
    0 -24px 0 -23px rgba(198, 170, 106, 0.1);
  content: "";
  transform: rotate(-6deg);
}

.plane-trigger {
  position: relative;
  z-index: 1;
  display: grid;
  width: 58px;
  height: 58px;
  padding: 0;
  place-items: center;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.plane-trigger svg {
  width: 54px;
  fill: var(--gold-light);
  transform: rotate(-8deg);
  transition: transform 240ms ease;
}

.plane-trigger:hover svg,
.plane-trigger:focus-visible svg {
  transform: rotate(-4deg) translateX(2px);
}

.plane-trigger:focus-visible,
.destination:focus-visible,
.details-toggle:focus-visible,
.calendar-button:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 4px;
}

.title-lockup {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.micro-label {
  display: block;
  margin-bottom: 5px;
  color: var(--gold-light);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.22em;
}

h1 {
  margin: 0;
  font-size: clamp(28px, 3.15vw, 46px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.class-badge {
  position: relative;
  z-index: 1;
  min-width: 82px;
  padding: 9px 13px 8px;
  border: 1px solid var(--gold-light);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.08em;
  text-align: center;
}

.ticket-body {
  display: grid;
  flex: 1;
  padding: 27px 30px 25px;
  grid-template-columns: minmax(190px, 0.75fr) minmax(330px, 1.35fr);
  gap: 25px 36px;
}

.field-label,
.flight-grid dt,
.stub-grid dt,
.detail-kicker {
  display: block;
  margin-bottom: 7px;
  color: var(--gold);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.passenger-block {
  align-self: center;
}

.passenger-name {
  display: block;
  font-size: clamp(20px, 2.1vw, 29px);
  line-height: 1;
  letter-spacing: -0.03em;
}

.sub-label {
  display: block;
  margin-top: 9px;
  color: var(--ink-soft);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  font-style: italic;
}

.route-block {
  display: grid;
  grid-template-columns: 1fr minmax(66px, 0.75fr) 1.25fr;
  align-items: center;
  gap: 10px;
}

.route-point {
  min-width: 0;
}

.route-point strong,
.destination {
  display: block;
  max-width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: clamp(20px, 2vw, 29px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.destination {
  position: relative;
  cursor: pointer;
}

.destination::after {
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 2px;
  background: var(--gold);
  content: "";
  opacity: 0.55;
  transform: scaleX(0.2);
  transform-origin: left;
  transition: transform 240ms ease;
}

.destination:hover::after,
.destination:focus-visible::after {
  transform: scaleX(1);
}

.destination.is-pulsing {
  animation: classified-pulse 680ms ease-out;
}

.route-code {
  display: block;
  margin-top: 6px;
  color: rgba(23, 23, 19, 0.46);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.route-track {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.route-line {
  position: absolute;
  right: 0;
  left: 0;
  height: 1px;
  border-top: 1px dashed rgba(163, 132, 69, 0.65);
}

.route-track::before,
.route-track::after {
  position: absolute;
  z-index: 1;
  width: 5px;
  height: 5px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  background: var(--paper);
  content: "";
}

.route-track::before {
  left: 0;
}

.route-track::after {
  right: 0;
}

.route-track svg {
  position: relative;
  z-index: 2;
  width: 34px;
  padding: 5px;
  background: var(--paper);
  fill: var(--gold);
  transform: rotate(-7deg);
}

.flight-grid {
  display: grid;
  margin: 0;
  grid-column: 1 / -1;
  grid-template-columns: 0.65fr 0.65fr 1.25fr 1.6fr 0.85fr 1fr;
  border-top: 1px solid rgba(23, 23, 19, 0.14);
  border-bottom: 1px solid rgba(23, 23, 19, 0.14);
}

.flight-field {
  min-width: 0;
  padding: 18px 16px 18px 0;
}

.flight-field + .flight-field {
  padding-left: 16px;
  border-left: 1px solid rgba(23, 23, 19, 0.1);
}

.flight-grid dt {
  margin-bottom: 6px;
}

.flight-grid dd {
  margin: 0;
  font-size: clamp(14px, 1.35vw, 18px);
  font-weight: 700;
  line-height: 1.15;
  white-space: nowrap;
}

.main-footer {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(150px, 1fr) auto;
  align-items: center;
  gap: 4px 20px;
}

.barcode {
  width: 100%;
  height: 52px;
  background: repeating-linear-gradient(
    90deg,
    var(--ink) 0 2px,
    transparent 2px 4px,
    var(--ink) 4px 5px,
    transparent 5px 9px,
    var(--ink) 9px 13px,
    transparent 13px 15px,
    var(--ink) 15px 16px,
    transparent 16px 21px
  );
}

.barcode--wide {
  width: min(100%, 330px);
  height: 38px;
}

.barcode-caption,
.stub-code {
  color: rgba(23, 23, 19, 0.55);
  font-family: "Courier New", monospace;
  font-size: 8px;
  letter-spacing: 0.16em;
}

.status-stamp {
  display: inline-block;
  padding: 9px 14px 8px;
  grid-row: 1 / span 2;
  grid-column: 2;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  transform: rotate(-2deg);
  animation: stamp-in 550ms cubic-bezier(0.22, 1.25, 0.36, 1) 700ms both;
}

.ticket-stub {
  display: flex;
  border-left: 2px dashed rgba(23, 23, 19, 0.34);
  flex-direction: column;
  animation: stub-align 900ms cubic-bezier(0.2, 0.8, 0.2, 1) 120ms both;
}

.ticket-stub::before,
.ticket-stub::after {
  position: absolute;
  left: -9px;
  z-index: 6;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--page);
  content: "";
}

.ticket-stub::before {
  top: -9px;
}

.ticket-stub::after {
  bottom: -9px;
}

.stub-header {
  position: relative;
  display: flex;
  min-height: 122px;
  padding: 24px 24px 22px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  overflow: hidden;
  background: var(--ink);
  color: var(--white);
}

.stub-header span,
.stub-header strong {
  position: relative;
  z-index: 1;
}

.stub-header span {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.stub-header strong {
  color: var(--gold-light);
  font-size: 12px;
  line-height: 1.05;
  letter-spacing: 0.08em;
  text-align: right;
}

.stub-body {
  display: flex;
  height: 100%;
  padding: 27px 24px 22px;
  flex-direction: column;
  gap: 21px;
}

.stub-passenger {
  font-size: 17px;
  letter-spacing: -0.02em;
}

.stub-route {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
}

.stub-route svg {
  width: 28px;
  justify-self: center;
  fill: var(--gold);
  transform: rotate(-7deg);
}

.stub-grid {
  display: grid;
  margin: 0;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.stub-grid div {
  min-width: 0;
}

.stub-grid dd {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}

.stub-body .barcode {
  margin-top: auto;
}

.bonus-message {
  margin: 17px 0 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  font-style: italic;
  text-align: center;
  animation: bonus-in 450ms ease-out both;
}

.bonus-message[hidden] {
  display: none;
}

.details-toggle {
  display: flex;
  margin-top: 24px;
  padding: 10px 3px 9px;
  align-items: center;
  gap: 8px;
  border: 0;
  border-bottom: 1px solid rgba(23, 23, 19, 0.42);
  background: transparent;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}

.details-toggle svg {
  width: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  transition: transform 320ms ease;
}

.details-toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.boarding-details {
  width: 100%;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 650ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 350ms ease, margin 500ms ease;
}

.boarding-details.is-open {
  max-height: 500px;
  margin-top: 30px;
  opacity: 1;
}

.details-inner {
  display: grid;
  padding-top: 25px;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 48px;
  border-top: 1px solid rgba(23, 23, 19, 0.22);
}

.countdown {
  display: flex;
  align-items: flex-start;
  gap: clamp(7px, 1.2vw, 18px);
}

.countdown div {
  min-width: 48px;
}

.countdown strong {
  display: block;
  font-size: clamp(27px, 4vw, 52px);
  line-height: 0.95;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
}

.countdown strong.is-changing {
  animation: digit-change 280ms ease-out;
}

.countdown span {
  display: block;
  margin-top: 8px;
  color: rgba(23, 23, 19, 0.57);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.countdown i {
  color: var(--gold);
  font-size: clamp(20px, 3vw, 38px);
  font-style: normal;
  line-height: 0.9;
}

.detail-copy p {
  max-width: 390px;
  margin: 0 0 16px;
  color: var(--ink-soft);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  line-height: 1.5;
}

.detail-copy p strong {
  color: var(--ink);
}

.calendar-button {
  display: inline-flex;
  padding: 10px 15px;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--ink);
  background: transparent;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: inherit;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 200ms ease, color 200ms ease;
}

.calendar-button:hover {
  background: var(--ink);
  color: var(--white);
}

.calendar-button svg {
  width: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.footer-message {
  margin: 28px 0 0;
  color: rgba(23, 23, 19, 0.48);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-align: center;
  text-transform: uppercase;
}

.journey-dispatch {
  width: min(100%, 870px);
  margin-top: clamp(25px, 4.5vw, 48px);
  padding: 0 4px 30px;
  border-bottom: 1px solid rgba(23, 23, 19, 0.22);
  text-align: center;
}

.journey-dispatch[hidden] {
  display: none;
}

.dispatch-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--gold);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.dispatch-status {
  padding-left: 14px;
  border-left: 1px solid rgba(163, 132, 69, 0.5);
}

.journey-dispatch h2 {
  margin: 12px 0 9px;
  font-size: clamp(31px, 5.4vw, 62px);
  line-height: 0.96;
  letter-spacing: -0.055em;
}

.dispatch-copy {
  max-width: 620px;
  margin: 0 auto;
  color: var(--ink-soft);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(14px, 1.5vw, 17px);
  line-height: 1.55;
}

.journey-prompt {
  max-width: 570px;
  margin: 25px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(23, 23, 19, 0.15);
}

.journey-prompt[hidden] {
  display: none;
}

.journey-prompt p {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(18px, 2.5vw, 25px);
  font-style: italic;
  line-height: 1.32;
}

.prompt-button {
  margin-top: 17px;
  padding: 8px 2px 7px;
  border: 0;
  border-bottom: 1px solid rgba(23, 23, 19, 0.45);
  background: transparent;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  cursor: pointer;
}

.prompt-button[hidden] {
  display: none;
}

.status-stamp.is-updating {
  animation: stamp-update 500ms cubic-bezier(0.22, 1.15, 0.36, 1) both;
}

.journey-dispatch.is-updating {
  animation: dispatch-in 600ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.journey-prompt.is-changing {
  animation: prompt-change 360ms ease-out both;
}

body[data-journey-stage="now_boarding"] .status-stamp,
body[data-journey-stage="connection_call"] .status-stamp {
  background: var(--gold);
  color: var(--paper);
}

body[data-journey-stage="now_boarding"] .ambient-route path,
body[data-journey-stage="connection_call"] .ambient-route path {
  animation-duration: 10s;
}

body[data-journey-stage="evening_service"] {
  background:
    radial-gradient(circle at 15% 12%, rgba(255, 255, 255, 0.58), transparent 31rem),
    radial-gradient(circle at 84% 86%, rgba(163, 132, 69, 0.15), transparent 29rem),
    linear-gradient(135deg, #d8d2c6 0%, #c8c0b2 100%);
}

body[data-journey-stage="journey_complete"] .destination::after {
  transform: scaleX(1);
}

body[data-journey-stage="journey_complete"] .status-stamp {
  border-color: var(--ink);
  color: var(--ink);
}

@keyframes stamp-update {
  from { opacity: 0.25; transform: scale(1.2) rotate(-6deg); }
  to { opacity: 1; transform: scale(1) rotate(-2deg); }
}

@keyframes dispatch-in {
  from { opacity: 0; transform: translateY(11px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes prompt-change {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 700px) {
  .journey-dispatch {
    padding-right: 8px;
    padding-left: 8px;
  }

  .dispatch-meta {
    gap: 10px;
    font-size: 8px;
  }
}

@keyframes ticket-arrive {
  from { opacity: 0; transform: translateY(26px) rotate(-0.8deg); }
  to { opacity: 1; transform: translateY(0) rotate(0); }
}

@keyframes ticket-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@keyframes stub-align {
  from { opacity: 0.35; transform: translateX(18px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes stamp-in {
  from { opacity: 0; transform: scale(1.32) rotate(-8deg); }
  to { opacity: 1; transform: scale(1) rotate(-2deg); }
}

@keyframes classified-pulse {
  0%, 100% { color: var(--ink); letter-spacing: -0.04em; }
  35% { color: transparent; background: var(--ink); letter-spacing: 0.03em; }
  70% { color: var(--paper); background: var(--ink); letter-spacing: 0.01em; }
}

@keyframes bonus-in {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes digit-change {
  from { opacity: 0.28; transform: translateY(-3px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes route-drift {
  to { stroke-dashoffset: -360; }
}

@media (hover: hover) and (pointer: fine) {
  .boarding-pass.is-hovering {
    box-shadow:
      0 31px 68px rgba(38, 34, 25, 0.18),
      0 7px 17px rgba(38, 34, 25, 0.08);
  }
}

@media (max-width: 1080px) {
  .page-shell {
    padding-right: 28px;
    padding-left: 28px;
  }

  .ticket-header {
    padding-right: 22px;
    padding-left: 22px;
    gap: 16px;
  }

  .plane-trigger {
    width: 48px;
  }

  .plane-trigger svg {
    width: 46px;
  }

  .ticket-body {
    padding-right: 22px;
    padding-left: 22px;
    grid-template-columns: minmax(150px, 0.7fr) minmax(290px, 1.3fr);
    gap: 22px;
  }

  .flight-field {
    padding-right: 9px;
  }

  .flight-field + .flight-field {
    padding-left: 9px;
  }

  .flight-grid dd {
    font-size: 14px;
  }
}

@media (max-width: 820px) {
  .boarding-pass {
    grid-template-columns: minmax(0, 1fr) 220px;
  }

  .class-badge {
    min-width: 68px;
    padding-right: 8px;
    padding-left: 8px;
    font-size: 10px;
  }

  .ticket-body {
    grid-template-columns: 1fr;
  }

  .route-block,
  .flight-grid,
  .main-footer {
    grid-column: 1;
  }

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

  .flight-field:nth-child(4) {
    border-left: 0;
  }

  .flight-field:nth-child(n + 4) {
    border-top: 1px solid rgba(23, 23, 19, 0.1);
  }
}

@media (max-width: 700px) {
  .page-shell {
    min-height: 100svh;
    padding: 28px 16px 34px;
    justify-content: flex-start;
  }

  .eyebrow {
    margin-top: 8px;
  }

  .ticket-float {
    animation-name: none;
  }

  .boarding-pass {
    display: block;
    min-height: 0;
    border-radius: 12px;
  }

  .ticket-header {
    min-height: 104px;
    padding: 20px;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
  }

  .plane-trigger {
    width: 38px;
    height: 44px;
  }

  .plane-trigger svg {
    width: 38px;
  }

  .micro-label {
    font-size: 7px;
  }

  h1 {
    font-size: clamp(23px, 7.8vw, 34px);
    white-space: normal;
  }

  .class-badge {
    position: absolute;
    top: 14px;
    right: 16px;
    display: block;
    min-width: 0;
    padding: 0;
    border: 0;
    color: var(--gold-light);
    font-size: 8px;
    letter-spacing: 0.12em;
  }

  .ticket-body {
    display: grid;
    padding: 24px 20px;
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .passenger-block {
    padding-bottom: 19px;
    border-bottom: 1px solid rgba(23, 23, 19, 0.14);
  }

  .passenger-name {
    font-size: 25px;
  }

  .route-block {
    grid-template-columns: 1fr 62px 1.35fr;
    gap: 7px;
  }

  .route-point strong,
  .destination {
    font-size: clamp(17px, 5.6vw, 23px);
  }

  .route-track svg {
    width: 29px;
  }

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

  .flight-field,
  .flight-field + .flight-field {
    padding: 15px 10px 15px 0;
    border-top: 1px solid rgba(23, 23, 19, 0.1);
    border-left: 0;
  }

  .flight-field:nth-child(even) {
    padding-right: 0;
    padding-left: 14px;
    border-left: 1px solid rgba(23, 23, 19, 0.1);
  }

  .flight-field:nth-child(-n + 2) {
    border-top: 0;
  }

  .flight-grid dd {
    font-size: 14px;
    white-space: normal;
  }

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

  .barcode--wide {
    width: 100%;
  }

  .ticket-stub {
    border-top: 2px dashed rgba(23, 23, 19, 0.34);
    border-left: 0;
  }

  .ticket-stub::before,
  .ticket-stub::after {
    top: -9px;
    bottom: auto;
  }

  .ticket-stub::before {
    left: -9px;
  }

  .ticket-stub::after {
    right: -9px;
    left: auto;
  }

  .stub-header {
    display: none;
  }

  .stub-body {
    display: grid;
    padding: 21px 20px 22px;
    grid-template-columns: 1fr 1fr;
    gap: 18px 16px;
  }

  .stub-route {
    align-self: center;
  }

  .stub-route span {
    font-size: 9px;
  }

  .stub-grid {
    grid-column: 1 / -1;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
  }

  .stub-grid dd {
    font-size: 13px;
  }

  .stub-body .barcode {
    height: 34px;
    margin: 0;
    grid-column: 1 / -1;
  }

  .stub-code {
    grid-column: 1 / -1;
  }

  .details-toggle {
    margin-top: 20px;
  }

  .boarding-details.is-open {
    margin-top: 24px;
  }

  .details-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .countdown {
    justify-content: space-between;
    gap: 5px;
  }

  .countdown div {
    min-width: 38px;
  }

  .countdown strong {
    font-size: clamp(27px, 10vw, 42px);
  }

  .footer-message {
    line-height: 1.5;
  }
}

@media (max-width: 390px) {
  .ticket-header {
    padding-right: 16px;
    padding-left: 16px;
  }

  .ticket-body,
  .stub-body {
    padding-right: 17px;
    padding-left: 17px;
  }

  .route-block {
    grid-template-columns: 0.75fr 48px 1.35fr;
  }

  .route-point strong,
  .destination {
    font-size: 17px;
  }

  .status-stamp {
    padding-right: 9px;
    padding-left: 9px;
    font-size: 10px;
  }

  .stub-body {
    grid-template-columns: 1fr;
  }

  .stub-route {
    display: none;
  }

  .stub-grid,
  .stub-body .barcode,
  .stub-code {
    grid-column: 1;
  }

}

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

  .ambient-route {
    opacity: 0.1;
  }

}
