:root {
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

.screen.hidden {
  display: none !important;
}

.ad-banner {
  margin-top: 8px;
  margin-bottom: 16px;
}

.ad-banner-frame {
  display: grid;
  min-height: 90px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(15, 138, 76, .12);
  border-radius: 22px;
  background: rgba(255, 255, 255, .68);
  box-shadow: 0 18px 36px rgba(15, 138, 76, .1);
  backdrop-filter: blur(18px);
}

.ad-banner-frame:empty {
  display: none;
}

button {
  -webkit-tap-highlight-color: transparent;
  position: relative;
  overflow: hidden;
}

.theme-bg {
  background:
    radial-gradient(circle at 16% 8%, rgba(52, 211, 153, .2), transparent 28%),
    radial-gradient(circle at 84% 8%, rgba(187, 247, 208, .12), transparent 24%),
    linear-gradient(145deg, #06120d 0%, #0b1f16 52%, #07140f 100%);
  animation: ambientBreath 18s ease-in-out infinite;
}

.ambient-gradient {
  background:
    radial-gradient(circle at 20% 80%, rgba(34, 197, 94, .13), transparent 32%),
    radial-gradient(circle at 82% 52%, rgba(16, 185, 129, .1), transparent 30%);
  animation: parallaxGlow 18s ease-in-out infinite alternate;
}

.neon-reflections {
  opacity: 0;
  background:
    linear-gradient(105deg, transparent 0 18%, rgba(134, 239, 172, .12) 22%, transparent 32%),
    linear-gradient(75deg, transparent 0 60%, rgba(220, 252, 231, .08) 66%, transparent 78%);
  transform: translate3d(-12%, 0, 0);
  animation: reflectionSlide 16s linear infinite;
}

.rain-glass {
  opacity: 0;
  background: repeating-linear-gradient(112deg, transparent 0 16px, rgba(220, 252, 231, .5) 17px 18px, transparent 19px 42px);
  animation: rainSlide 1.8s linear infinite;
}

.fog-drift {
  opacity: .26;
  background:
    radial-gradient(ellipse at 20% 70%, rgba(255, 255, 255, .08), transparent 42%),
    radial-gradient(ellipse at 80% 40%, rgba(187, 247, 208, .07), transparent 36%);
  filter: blur(18px);
  animation: fogDrift 22s ease-in-out infinite alternate;
}

.scanline-layer {
  opacity: .3;
  background: repeating-linear-gradient(0deg, transparent 0 5px, rgba(187, 247, 208, .035) 5px 6px);
  animation: scanlineMove 9s linear infinite;
}

.platform-grid {
  background:
    linear-gradient(to top, rgba(0, 0, 0, .55), transparent),
    repeating-linear-gradient(90deg, transparent 0 44px, rgba(134, 239, 172, .09) 44px 46px),
    repeating-linear-gradient(0deg, transparent 0 24px, rgba(255, 255, 255, .05) 25px 26px);
  transform: perspective(520px) rotateX(58deg);
  transform-origin: bottom;
  animation: none;
}

.journey-active .neon-reflections {
  opacity: .28;
}

.journey-active .rain-glass {
  opacity: .18;
}

.journey-active .platform-grid {
  animation: gridCrawl 18s linear infinite;
}

.brand-mark,
.small-action,
.mini-button,
.primary-btn,
.secondary-btn {
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.brand-mark {
  display: grid;
  height: 44px;
  width: 44px;
  place-items: center;
  border-radius: 14px;
  border: 1px solid rgba(187, 247, 208, .28);
  background: rgba(22, 163, 74, .16);
  color: #dcfce7;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: .9rem;
  font-weight: 900;
  box-shadow: 0 0 34px rgba(34, 197, 94, .16);
}

.small-action,
.mini-button {
  border-radius: 999px;
  border: 1px solid rgba(187, 247, 208, .16);
  background: rgba(255, 255, 255, .07);
  padding: 9px 13px;
  color: rgba(236, 253, 245, .78);
  font-size: .78rem;
  font-weight: 800;
}

.language-toggle {
  display: flex;
  gap: 4px;
  border-radius: 999px;
  border: 1px solid rgba(187, 247, 208, .22);
  background: rgba(0, 0, 0, .26);
  padding: 4px;
  box-shadow: inset 0 0 24px rgba(34, 197, 94, .08);
}

.language-toggle button {
  min-height: 36px;
  border-radius: 999px;
  padding: 0 12px;
  color: rgba(236, 253, 245, .62);
  font-size: .78rem;
  font-weight: 900;
  transition: color 160ms ease, background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.language-toggle button:hover {
  color: #fff;
}

.language-toggle button.active {
  background: #dcfce7;
  color: #052e16;
  box-shadow: 0 0 24px rgba(134, 239, 172, .22);
}

.small-action:hover,
.mini-button:hover,
.primary-btn:hover,
.secondary-btn:hover {
  transform: translateY(-1px);
}

.tap-ripple {
  pointer-events: none;
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .45);
  transform: translate(-50%, -50%) scale(0);
  animation: tapRipple 520ms ease-out forwards;
}

.counter-panel,
.side-panel {
  position: relative;
  border: 1px solid rgba(187, 247, 208, .14);
  background: linear-gradient(180deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .045));
  border-radius: 24px;
  box-shadow: 0 24px 82px rgba(2, 6, 23, .32);
  backdrop-filter: blur(22px);
  transform: translate3d(0, 0, 0);
  animation: panelFloat 9s ease-in-out infinite;
}

.counter-panel::after,
.side-panel::after,
.machine-screen::after,
.journey-map::after {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: repeating-linear-gradient(0deg, transparent 0 3px, rgba(134, 239, 172, .035) 3px 4px);
  opacity: .6;
}

.ui-label {
  display: inline-block;
  color: rgba(187, 247, 208, .68);
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.board-heading,
.board-text,
.time-board,
.machine-status,
.summary-row dd {
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 12px rgba(134, 239, 172, .28);
}

.board-heading {
  color: #f0fdf4;
}

.board-text {
  font-family: "Space Grotesk", ui-monospace, monospace;
}

.board-heading,
.board-text,
.time-board,
.machine-status,
.summary-row dd {
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 12px rgba(134, 239, 172, .28);
}

.board-heading {
  color: #f0fdf4;
}

.board-text {
  font-family: "Space Grotesk", ui-monospace, monospace;
}

.counter-panel::after,
.side-panel::after,
.machine-screen::after,
.journey-map::after {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: repeating-linear-gradient(0deg, transparent 0 3px, rgba(134, 239, 172, .035) 3px 4px);
  opacity: .6;
}

.counter-panel,
.side-panel,
.machine-screen,
.journey-map {
  position: relative;
}

.time-board {
  min-width: 132px;
  border-radius: 18px;
  border: 1px solid rgba(187, 247, 208, .18);
  background: rgba(22, 163, 74, .12);
  padding: 13px 15px;
  text-align: right;
}

.time-board span {
  display: block;
  color: rgba(220, 252, 231, .64);
  font-size: .72rem;
  font-weight: 800;
}

.time-board strong {
  display: block;
  margin-top: 4px;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 1.3rem;
}

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

.section-heading h2 {
  margin-top: 4px;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
}

.section-heading > span {
  color: rgba(255, 255, 255, .45);
  font-size: .78rem;
  font-weight: 800;
}

.step-panel {
  animation: panelIn 300ms cubic-bezier(.2, .9, .2, 1) both;
}

.step-pill {
  min-height: 54px;
  border-radius: 16px;
  border: 1px solid rgba(187, 247, 208, .1);
  background: rgba(255, 255, 255, .055);
  padding: 10px;
  color: rgba(255, 255, 255, .46);
}

.step-pill span {
  display: block;
  font-size: .62rem;
  font-weight: 900;
  letter-spacing: .16em;
}

.step-pill strong {
  margin-top: 4px;
  display: block;
  font-size: .9rem;
}

.step-pill.active {
  border-color: rgba(134, 239, 172, .42);
  background: rgba(34, 197, 94, .14);
  color: #ecfdf5;
}

.route-card,
.seat-card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(187, 247, 208, .12);
  background: rgba(255, 255, 255, .065);
  text-align: left;
  transition: transform 170ms ease, border-color 170ms ease, background 170ms ease, box-shadow 170ms ease;
}

.route-card {
  min-height: 150px;
  padding: 17px;
}

.seat-card {
  min-height: 142px;
  padding: 17px;
}

.route-card:hover,
.seat-card:hover,
.selected {
  border-color: rgba(134, 239, 172, .54);
  background: rgba(22, 163, 74, .13);
  box-shadow: 0 16px 44px rgba(22, 163, 74, .15);
  transform: translateY(-1px);
}

.route-card::after {
  content: "";
  position: absolute;
  inset: auto -44px -54px auto;
  width: 130px;
  height: 130px;
  border-radius: 999px;
  background: var(--accent);
  filter: blur(14px);
}

.badge-type,
.status-badge {
  border-radius: 999px;
  border: 1px solid rgba(187, 247, 208, .18);
  background: rgba(187, 247, 208, .12);
  color: #dcfce7;
  padding: 5px 9px;
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .12em;
}

.status-badge,
.badge-type {
  animation: statusPulse 2.8s ease-in-out infinite;
}

.machine-status {
  animation: boardBlink 1.9s steps(2, end) infinite;
}

.seat-icon {
  display: grid;
  height: 44px;
  width: 44px;
  place-items: center;
  border-radius: 15px;
  border: 1px solid rgba(187, 247, 208, .18);
  background: rgba(187, 247, 208, .1);
  font-weight: 900;
}

.seat-map-shell {
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(187, 247, 208, .14);
  background:
    linear-gradient(90deg, rgba(187, 247, 208, .12) 0 6px, transparent 6px 14px, rgba(187, 247, 208, .08) 14px 16px, transparent 16px),
    rgba(255, 255, 255, .055);
  padding: 14px;
}

.seat-map-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-radius: 18px;
  border: 1px solid rgba(187, 247, 208, .12);
  background: rgba(0, 0, 0, .22);
  padding: 12px 14px;
}

.seat-map-head strong {
  display: block;
  margin-top: 4px;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 1.35rem;
}

.seat-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0;
  color: rgba(255, 255, 255, .62);
  font-size: .75rem;
  font-weight: 800;
}

.seat-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.seat-legend i {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 4px;
}

.seat-legend .available {
  background: #e5e7eb;
}

.seat-legend .selected {
  background: #dc2626;
}

.seat-legend .unavailable {
  background: #8b1d62;
}

.seat-map {
  display: grid;
  grid-template-columns: repeat(3, minmax(42px, 1fr)) minmax(22px, .55fr) repeat(3, minmax(42px, 1fr));
  gap: 12px 8px;
  max-height: 520px;
  overflow-y: auto;
  border-radius: 20px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .12), transparent 7%, transparent 93%, rgba(255, 255, 255, .12)),
    rgba(5, 18, 13, .36);
  padding: 18px 10px;
}

.seat-aisle {
  min-height: 62px;
  border-left: 1px dashed rgba(187, 247, 208, .18);
  border-right: 1px dashed rgba(187, 247, 208, .18);
}

.seat-unit {
  position: relative;
  display: grid;
  min-height: 62px;
  place-items: center;
  border: 0;
  border-radius: 11px 11px 8px 8px;
  background: linear-gradient(180deg, #f1f5f9, #cbd5e1);
  color: #475569;
  font-weight: 900;
  box-shadow: 0 5px 0 rgba(15, 23, 42, .18), inset 0 -8px 0 rgba(15, 23, 42, .07);
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.seat-unit::before {
  content: "";
  position: absolute;
  top: 7px;
  width: 12px;
  height: 3px;
  border-radius: 999px;
  background: rgba(71, 85, 105, .5);
}

.seat-unit span {
  display: block;
  margin-top: 9px;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: .95rem;
}

.seat-unit small {
  display: block;
  margin-top: -2px;
  font-size: .58rem;
  font-weight: 900;
}

.seat-unit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 0 rgba(15, 23, 42, .18), 0 0 26px rgba(134, 239, 172, .22);
}

.seat-unit.unavailable {
  background: linear-gradient(180deg, #a21caf, #701a75);
  color: #fdf4ff;
  cursor: not-allowed;
  opacity: .9;
}

.seat-unit.selected-seat {
  background: linear-gradient(180deg, #ef4444, #dc2626);
  color: #fff;
  box-shadow: 0 5px 0 rgba(127, 29, 29, .65), 0 0 0 3px rgba(255, 255, 255, .92), 0 0 30px rgba(248, 113, 113, .36);
}

.primary-btn,
.secondary-btn {
  min-height: 54px;
  border-radius: 16px;
  padding: 15px 18px;
  font-weight: 900;
}

.primary-btn {
  background: #dcfce7;
  color: #052e16;
}

.secondary-btn {
  border: 1px solid rgba(187, 247, 208, .16);
  background: rgba(255, 255, 255, .07);
  color: rgba(255, 255, 255, .86);
}

.summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.summary-row dt {
  color: rgba(255, 255, 255, .52);
  font-weight: 700;
}

.summary-row dd {
  text-align: right;
  font-weight: 900;
}

.ticket-machine {
  border-radius: 24px;
  border: 1px solid rgba(187, 247, 208, .18);
  background: rgba(5, 46, 22, .34);
  padding: 15px;
  transform: translate3d(0, 0, 0);
}

.machine-screen {
  position: relative;
  overflow: hidden;
  min-height: 300px;
  border-radius: 20px;
  border: 1px solid rgba(134, 239, 172, .24);
  background:
    linear-gradient(135deg, rgba(34, 197, 94, .12), transparent 44%),
    #07150f;
  padding: 17px;
}

.machine-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(134, 239, 172, .22), transparent);
  transform: translateY(-110%);
  opacity: 0;
}

.is-printing .machine-screen::before {
  animation: scanSweep 1.1s ease-in-out infinite;
}

.is-printing {
  animation: printerShake 160ms ease-in-out infinite;
}

.print-complete {
  animation: printComplete 720ms ease-out;
}

.machine-status {
  color: rgba(220, 252, 231, .62);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .2em;
}

.machine-readout {
  border-radius: 15px;
  border: 1px solid rgba(187, 247, 208, .1);
  background: rgba(255, 255, 255, .06);
  padding: 13px;
}

.machine-readout small {
  display: block;
  color: rgba(187, 247, 208, .58);
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .16em;
}

.machine-readout strong {
  margin-top: 8px;
  display: block;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 1.15rem;
}

.progress-fill,
.map-progress {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #86efac, #dcfce7);
  transition: width 650ms ease;
}

.machine-slot {
  position: relative;
  margin: 16px auto 0;
  height: 68px;
  max-width: 420px;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(187, 247, 208, .12);
  background: rgba(0, 0, 0, .28);
}

.machine-slot span {
  position: absolute;
  left: 10%;
  right: 10%;
  top: 15px;
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(134, 239, 172, .82), transparent);
}

.printing-ticket {
  position: absolute;
  left: 50%;
  top: 21px;
  width: 200px;
  height: 60px;
  border-radius: 9px;
  background:
    repeating-linear-gradient(90deg, rgba(15, 23, 42, .14) 0 2px, transparent 2px 8px),
    #f8fafc;
  transform: translate(-50%, -86px);
}

.printing .printing-ticket {
  animation: printTicket 1.25s cubic-bezier(.2, .85, .2, 1) forwards;
}

.ticket-output {
  overflow: hidden;
  border-radius: 26px;
  border: 1px solid rgba(187, 247, 208, .12);
  background: rgba(255, 255, 255, .05);
  padding: 16px;
}

.study-ticket {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background:
    radial-gradient(circle at 16% 18%, rgba(34, 197, 94, .15), transparent 24%),
    repeating-linear-gradient(0deg, rgba(15, 23, 42, .04) 0 1px, transparent 1px 7px),
    linear-gradient(135deg, #f8fafc, #dcfce7);
  padding: 22px;
  color: #0f172a;
  box-shadow: 0 26px 76px rgba(22, 163, 74, .18);
  animation: slideTicket 580ms cubic-bezier(.16, .9, .2, 1) both;
}

.ticket-rip {
  position: absolute;
  top: 50%;
  z-index: 2;
  height: 38px;
  width: 38px;
  border-radius: 999px;
  background: #06120d;
  transform: translateY(-50%);
}

.ticket-rip.left {
  left: -19px;
}

.ticket-rip.right {
  right: -19px;
}

.ticket-id-box,
.ticket-field-light,
.barcode-panel {
  border: 1px solid rgba(15, 23, 42, .12);
  background: rgba(255, 255, 255, .58);
}

.ticket-id-box {
  border-radius: 16px;
  padding: 12px 14px;
  text-align: right;
}

.ticket-id-box span {
  display: block;
  color: rgba(15, 23, 42, .55);
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .18em;
}

.ticket-id-box strong {
  display: block;
  margin-top: 5px;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 1.15rem;
  color: #0f172a;
}

.ticket-field-light {
  border-radius: 15px;
  padding: 12px;
}

.ticket-field-light small {
  display: block;
  color: rgba(15, 23, 42, .55);
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .14em;
}

.ticket-field-light strong {
  margin-top: 8px;
  display: block;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 1.08rem;
}

.barcode-panel {
  display: grid;
  align-content: space-between;
  gap: 18px;
  border-radius: 18px;
  padding: 15px;
}

.barcode-panel span {
  color: rgba(15, 23, 42, .55);
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.barcode {
  height: 150px;
  border-radius: 8px;
  background: repeating-linear-gradient(90deg, #0f172a 0 3px, transparent 3px 7px, #0f172a 7px 9px, transparent 9px 14px);
  overflow: hidden;
  position: relative;
}

.barcode::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .65), transparent);
  transform: translateX(-120%);
  animation: barcodeShimmer 3.4s ease-in-out infinite;
}

.gate-scene {
  display: grid;
  position: relative;
  overflow: hidden;
  min-height: 540px;
  place-items: center;
  border-radius: 28px;
  border: 1px solid rgba(187, 247, 208, .12);
  background: rgba(255, 255, 255, .055);
  padding: 24px;
  text-align: center;
  backdrop-filter: blur(22px);
}

.gate-dim {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: rgba(0, 0, 0, .22);
  transition: opacity 500ms ease;
}

.gate-prep .gate-dim,
.gate-scanning .gate-dim {
  opacity: 1;
}

.ic-gate {
  position: relative;
  margin-top: 28px;
  height: 280px;
  width: min(100%, 520px);
}

.gate-light {
  position: absolute;
  inset: 0 8%;
  border-radius: 30px 30px 16px 16px;
  border: 1px solid rgba(134, 239, 172, .28);
  background:
    linear-gradient(90deg, rgba(34, 197, 94, .22), transparent 24%, transparent 76%, rgba(34, 197, 94, .22)),
    rgba(2, 6, 23, .68);
  box-shadow: inset 0 0 58px rgba(34, 197, 94, .16);
  transition: box-shadow 420ms ease, border-color 420ms ease;
}

.gate-scanning .gate-light {
  border-color: rgba(187, 247, 208, .72);
  box-shadow: inset 0 0 80px rgba(34, 197, 94, .26), 0 0 80px rgba(34, 197, 94, .28);
}

.gate-sweep {
  position: absolute;
  inset: 0 8%;
  border-radius: 30px 30px 16px 16px;
  background: linear-gradient(105deg, transparent 0 35%, rgba(220, 252, 231, .25) 48%, transparent 62%);
  transform: translateX(-120%);
}

.gate-scanning .gate-sweep {
  animation: gateSweep 1.2s ease-out forwards;
}

.gate-slot {
  position: absolute;
  left: 18%;
  right: 18%;
  top: 126px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, #86efac, transparent);
  box-shadow: 0 0 30px rgba(134, 239, 172, .55);
}

.scan-ticket {
  position: absolute;
  left: 50%;
  top: 42px;
  width: 210px;
  height: 80px;
  border-radius: 12px;
  background: linear-gradient(135deg, #f8fafc, #dcfce7);
  transform: translateX(-50%);
}

.gate-scanning .scan-ticket {
  animation: scanTicket 1.25s cubic-bezier(.2, .85, .2, 1) forwards;
}

.beep-mark {
  position: absolute;
  left: 50%;
  top: 154px;
  opacity: 0;
  border-radius: 999px;
  background: #dcfce7;
  padding: 9px 17px;
  color: #052e16;
  font-weight: 900;
  transform: translateX(-50%) scale(.9);
}

.gate-scanning .beep-mark {
  animation: beepMark .95s .65s ease-out forwards;
}

.journey-window {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(187, 247, 208, .12);
  background: rgba(0, 0, 0, .22);
  box-shadow: 0 28px 90px rgba(2, 6, 23, .34);
}

.window-sky,
.moving-city {
  position: absolute;
  inset: 0;
}

.window-sky {
  background:
    radial-gradient(circle at 76% 16%, rgba(220, 252, 231, .18), transparent 10%),
    linear-gradient(180deg, rgba(6, 32, 20, .82), rgba(8, 47, 30, .36) 48%, rgba(3, 15, 10, .88));
  animation: subtleVibration 5.2s ease-in-out infinite;
}

.moving-city {
  top: auto;
  height: 56%;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .1) 0 10px, transparent 10px 36px, rgba(134, 239, 172, .14) 36px 39px, transparent 39px 78px),
    linear-gradient(to top, rgba(0, 0, 0, .72), transparent);
  animation: none;
}

.distant-lights {
  position: absolute;
  inset: auto 0 18% 0;
  height: 30%;
  opacity: .5;
  background:
    radial-gradient(circle, rgba(220, 252, 231, .9) 0 1px, transparent 2px) 0 0 / 86px 38px,
    radial-gradient(circle, rgba(134, 239, 172, .75) 0 1px, transparent 2px) 22px 14px / 120px 52px;
  filter: blur(.4px);
  animation: none;
}

.window-rain {
  position: absolute;
  inset: 0;
  opacity: .2;
  background: repeating-linear-gradient(100deg, transparent 0 22px, rgba(255, 255, 255, .4) 23px 24px, transparent 25px 54px);
  animation: none;
}

.tunnel-shadow {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: rgba(0, 0, 0, .78);
  animation: none;
}

.journey-active .moving-city {
  animation: passCity 16s linear infinite;
}

.journey-active .distant-lights {
  animation: lightsPass 22s linear infinite;
}

.journey-active .window-rain {
  animation: rainSlide 2.3s linear infinite;
}

.journey-active .tunnel-shadow {
  animation: tunnelFlash 18s ease-in-out infinite;
}

.journey-content {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 600px;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  animation: cabinSway 7s ease-in-out infinite;
}

.departing .journey-content {
  animation: departCamera 1.8s cubic-bezier(.16, .9, .2, 1), cabinSway 7s ease-in-out infinite 1.8s;
}

.journey-chip {
  border-radius: 999px;
  border: 1px solid rgba(187, 247, 208, .15);
  background: rgba(255, 255, 255, .08);
  padding: 7px 11px;
  color: rgba(236, 253, 245, .75);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.journey-map,
.announcement-card {
  border-radius: 20px;
  border: 1px solid rgba(187, 247, 208, .12);
  background: rgba(0, 0, 0, .24);
  padding: 17px;
  backdrop-filter: blur(18px);
}

.announcement-card span {
  color: rgba(255, 255, 255, .5);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.announcement-card p {
  margin-top: 8px;
  color: rgba(255, 255, 255, .9);
  font-size: 1.06rem;
  font-weight: 700;
}

.map-line {
  position: relative;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .16);
}

.train-marker {
  position: absolute;
  top: 50%;
  left: 0;
  display: grid;
  height: 32px;
  width: 46px;
  place-items: center;
  border-radius: 999px;
  background: #dcfce7;
  color: #052e16;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: .72rem;
  font-weight: 900;
  box-shadow: 0 0 26px rgba(134, 239, 172, .44);
  transform: translate(-12px, -50%);
  transition: left 650ms ease;
  animation: trainGlow 2.4s ease-in-out infinite;
}

.station-stop {
  display: grid;
  gap: 8px;
  justify-items: center;
  color: rgba(255, 255, 255, .45);
  font-size: .68rem;
  font-weight: 900;
  text-align: center;
}

.station-stop::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 2px solid currentColor;
  background: rgba(255, 255, 255, .12);
}

.station-stop.passed,
.station-stop.current {
  color: #86efac;
}

.station-stop.current::before {
  box-shadow: 0 0 22px rgba(134, 239, 172, .7);
  animation: stationPulse 1.8s ease-in-out infinite;
}

.passing-card {
  border-radius: 18px;
  border: 1px solid rgba(187, 247, 208, .14);
  background: rgba(0, 0, 0, .22);
  padding: 12px 14px;
  color: rgba(220, 252, 231, .72);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .18em;
  overflow: hidden;
  position: relative;
}

.passing-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(134, 239, 172, .12), transparent);
  transform: translateX(-120%);
  animation: tickerSweep 4s ease-in-out infinite;
}

.arrival-metric {
  min-height: 92px;
  border-radius: 20px;
  border: 1px solid rgba(187, 247, 208, .14);
  background: rgba(0, 0, 0, .2);
  padding: 15px;
  box-shadow: inset 0 0 30px rgba(34, 197, 94, .06);
}

.arrival-metric span {
  display: block;
  font-family: "Space Grotesk", ui-monospace, monospace;
  font-size: 2rem;
  font-weight: 900;
  color: #dcfce7;
  text-shadow: 0 0 20px rgba(134, 239, 172, .32);
}

.arrival-metric small {
  display: block;
  margin-top: 7px;
  color: rgba(255, 255, 255, .52);
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .16em;
}

@keyframes panelIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ambientBreath {
  50% {
    filter: saturate(1.14) brightness(1.08);
  }
}

@keyframes parallaxGlow {
  from {
    transform: translate3d(-1.5%, 1%, 0) scale(1);
  }
  to {
    transform: translate3d(1.5%, -1%, 0) scale(1.03);
  }
}

@keyframes reflectionSlide {
  to {
    transform: translate3d(12%, 0, 0);
  }
}

@keyframes rainSlide {
  from {
    background-position: 0 0;
  }
  to {
    background-position: -32px 90px;
  }
}

@keyframes fogDrift {
  from {
    transform: translate3d(-2%, 0, 0);
  }
  to {
    transform: translate3d(2%, -1%, 0);
  }
}

@keyframes scanlineMove {
  to {
    background-position: 0 90px;
  }
}

@keyframes gridCrawl {
  to {
    background-position: 0 0, 120px 0, 0 96px;
  }
}

@keyframes panelFloat {
  50% {
    transform: translate3d(0, -2px, 0);
  }
}

@keyframes tapRipple {
  to {
    opacity: 0;
    transform: translate(-50%, -50%) scale(18);
  }
}

@keyframes scanSweep {
  0% {
    opacity: 0;
    transform: translateY(-110%);
  }
  20%, 70% {
    opacity: .6;
  }
  100% {
    opacity: 0;
    transform: translateY(110%);
  }
}

@keyframes printerShake {
  50% {
    transform: translate3d(.6px, 0, 0);
  }
}

@keyframes printComplete {
  40% {
    box-shadow: 0 0 42px rgba(134, 239, 172, .3);
  }
}

@keyframes barcodeShimmer {
  0%, 42% {
    transform: translateX(-120%);
  }
  82%, 100% {
    transform: translateX(120%);
  }
}

@keyframes gateSweep {
  to {
    transform: translateX(120%);
  }
}

@keyframes subtleVibration {
  50% {
    transform: translate3d(.5px, -.5px, 0);
  }
}

@keyframes lightsPass {
  to {
    background-position: -520px 0, -620px 14px;
  }
}

@keyframes tunnelFlash {
  0%, 72%, 100% {
    opacity: 0;
  }
  78%, 84% {
    opacity: .72;
  }
}

@keyframes cabinSway {
  50% {
    transform: translate3d(0, -1px, 0);
  }
}

@keyframes departCamera {
  from {
    opacity: .2;
    transform: translate3d(0, 16px, 0) scale(.985);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes trainGlow {
  50% {
    box-shadow: 0 0 34px rgba(134, 239, 172, .62);
  }
}

@keyframes stationPulse {
  50% {
    transform: scale(1.18);
  }
}

@keyframes tickerSweep {
  0%, 40% {
    transform: translateX(-120%);
  }
  80%, 100% {
    transform: translateX(120%);
  }
}

@keyframes statusPulse {
  50% {
    box-shadow: 0 0 18px rgba(134, 239, 172, .2);
  }
}

@keyframes boardBlink {
  50% {
    opacity: .62;
  }
}

@keyframes printTicket {
  from {
    transform: translate(-50%, -86px);
  }
  to {
    transform: translate(-50%, 16px);
  }
}

@keyframes slideTicket {
  from {
    opacity: 0;
    transform: translateY(-60px) scale(.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes scanTicket {
  0% {
    transform: translateX(-50%) translateY(0);
  }
  72%, 100% {
    transform: translateX(-50%) translateY(88px) scale(.72);
    opacity: 0;
  }
}

@keyframes beepMark {
  0% {
    opacity: 0;
    transform: translateX(-50%) scale(.9);
  }
  35%, 75% {
    opacity: 1;
    transform: translateX(-50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) scale(1.05);
  }
}

@keyframes passCity {
  from {
    background-position: 0 0, 0 0;
  }
  to {
    background-position: -900px 0, 0 0;
  }
}

@media (max-width: 640px) {
  .journey-content,
  .study-ticket {
    padding: 16px;
  }
}

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

/* Light mobile-app redesign inspired by modern airline reservation apps. */
body {
  background: #242927;
}

#appShell {
  color: #12352a;
  background:
    radial-gradient(circle at 20% 14%, rgba(34, 197, 94, .16), transparent 24%),
    linear-gradient(180deg, #dff3eb 0%, #eefaf5 44%, #f8fffb 100%);
  box-shadow: 0 24px 90px rgba(0, 0, 0, .32);
}

#appShell .theme-bg,
#appShell .platform-grid,
#appShell .ambient-gradient,
#appShell .neon-reflections,
#appShell .rain-glass,
#appShell .fog-drift,
#appShell .scanline-layer {
  opacity: 0;
}

#appShell .text-white,
#appShell .text-white\/50,
#appShell .text-white\/55,
#appShell .text-white\/58,
#appShell .text-white\/60,
#appShell .text-white\/65,
#appShell .text-white\/70,
#appShell .text-white\/75,
#appShell .text-white\/80,
#appShell .text-white\/90,
#appShell .text-emerald-50\/65,
#appShell .text-emerald-50\/70,
#appShell .text-emerald-50\/75,
#appShell .text-emerald-100\/60,
#appShell .text-emerald-100\/65,
#appShell .text-emerald-100\/70,
#appShell .text-emerald-100\/80 {
  color: inherit;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding-top: 18px;
  background: linear-gradient(180deg, rgba(223, 243, 235, .96), rgba(223, 243, 235, .78), transparent);
  backdrop-filter: blur(14px);
}

.brand-mark {
  border-color: rgba(21, 128, 61, .14);
  background: #fff;
  color: #08713f;
  box-shadow: 0 8px 20px rgba(21, 128, 61, .12);
}

.language-toggle {
  border: 1px solid rgba(21, 128, 61, .12);
  background: rgba(255, 255, 255, .75);
  box-shadow: 0 8px 22px rgba(21, 128, 61, .1);
}

.language-toggle button {
  color: rgba(18, 53, 42, .62);
}

.language-toggle button.active {
  background: #0f8a4c;
  color: #fff;
  box-shadow: 0 10px 20px rgba(15, 138, 76, .22);
}

.small-action {
  border-color: rgba(21, 128, 61, .12);
  background: #fff;
  color: #0f6f42;
  box-shadow: 0 8px 20px rgba(21, 128, 61, .1);
}

.counter-panel,
.side-panel,
.ticket-output,
.gate-scene,
.journey-window,
#arrivalScreen > div {
  border: 1px solid rgba(21, 128, 61, .08);
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 16px 38px rgba(21, 128, 61, .12);
  backdrop-filter: blur(18px);
}

.counter-panel,
.side-panel {
  border-radius: 22px;
}

.counter-panel::after,
.side-panel::after,
.machine-screen::after,
.journey-map::after {
  opacity: .18;
}

.ui-label,
.board-text,
.board-heading {
  color: #0f6f42;
  text-shadow: none;
}

.time-board {
  min-width: 112px;
  border: 0;
  background: #fff;
  color: #10372b;
  box-shadow: 0 10px 24px rgba(21, 128, 61, .12);
}

.time-board span {
  color: rgba(18, 53, 42, .52);
}

.section-heading h2 {
  color: #12352a;
}

.section-heading > span {
  color: rgba(18, 53, 42, .55);
}

.step-pill {
  border: 0;
  background: rgba(255, 255, 255, .64);
  color: rgba(18, 53, 42, .45);
  box-shadow: inset 0 0 0 1px rgba(21, 128, 61, .06);
}

.step-pill.active {
  background: #0f8a4c;
  color: #fff;
  box-shadow: 0 12px 24px rgba(15, 138, 76, .22);
}

.route-card,
.seat-card,
.seat-map-shell,
.ticket-machine,
.journey-map,
.announcement-card {
  border: 1px solid rgba(21, 128, 61, .08);
  background: #fff;
  box-shadow: 0 12px 28px rgba(21, 128, 61, .1);
}

.route-card {
  min-height: 138px;
}

.route-card:hover,
.seat-card:hover,
.selected {
  background: #fff;
  border-color: rgba(15, 138, 76, .22);
  box-shadow: 0 18px 34px rgba(15, 138, 76, .16);
}

.badge-type,
.status-badge {
  border: 0;
  background: #e6f7ee;
  color: #08713f;
}

.primary-btn {
  background: #0f8a4c;
  color: #fff;
  box-shadow: 0 14px 28px rgba(15, 138, 76, .24);
}

.secondary-btn,
.mini-button {
  border: 1px solid rgba(21, 128, 61, .12);
  background: #fff;
  color: #0f6f42;
}

.summary-row dt,
.summary-row dd {
  color: #12352a;
}

.side-panel .summary-row {
  border-bottom: 1px solid rgba(21, 128, 61, .08);
  padding-bottom: 10px;
}

.side-panel .summary-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.seat-map-shell {
  background:
    linear-gradient(90deg, rgba(15, 138, 76, .08) 0 5px, transparent 5px 13px),
    #fff;
}

.seat-map-head {
  border: 0;
  background: #effaf4;
  color: #12352a;
}

.seat-legend {
  color: rgba(18, 53, 42, .62);
}

.seat-map {
  background: linear-gradient(90deg, rgba(15, 138, 76, .06), transparent 8%, transparent 92%, rgba(15, 138, 76, .06)), #f8fcfa;
}

.machine-screen {
  border-color: rgba(15, 138, 76, .1);
  background:
    linear-gradient(135deg, rgba(15, 138, 76, .08), transparent 48%),
    #f7fffb;
  color: #12352a;
}

.machine-readout {
  border-color: rgba(21, 128, 61, .08);
  background: #fff;
}

.machine-readout small,
.machine-status {
  color: rgba(15, 111, 66, .62);
}

.machine-slot {
  border-color: rgba(21, 128, 61, .08);
  background: #e6f7ee;
}

.study-ticket {
  background:
    radial-gradient(circle at 16% 18%, rgba(34, 197, 94, .12), transparent 24%),
    repeating-linear-gradient(0deg, rgba(15, 23, 42, .035) 0 1px, transparent 1px 7px),
    linear-gradient(135deg, #fff, #e6f7ee);
}

.ticket-rip {
  background: #e8f6ef;
}

.gate-scene {
  color: #12352a;
}

.gate-light {
  background:
    linear-gradient(90deg, rgba(34, 197, 94, .18), transparent 24%, transparent 76%, rgba(34, 197, 94, .18)),
    #effaf4;
}

.journey-window {
  background: #12352a;
  color: #fff;
}

.journey-window .summary-row dt,
.journey-window .summary-row dd,
.journey-window .board-heading,
.journey-window .board-text {
  color: #fff;
}

.journey-window .journey-map,
.journey-window .journey-map .board-text,
.journey-window .station-stop {
  color: #12352a;
}

.journey-window .journey-map {
  background: rgba(255, 255, 255, .94);
  border-color: rgba(15, 138, 76, .14);
}

.journey-window .map-line {
  background: rgba(15, 138, 76, .18);
}

.journey-window .station-stop {
  color: rgba(18, 53, 42, .58);
}

.journey-window .station-stop.passed,
.journey-window .station-stop.current {
  color: #08713f;
}

.window-sky {
  background:
    radial-gradient(circle at 76% 16%, rgba(220, 252, 231, .2), transparent 10%),
    linear-gradient(180deg, rgba(6, 32, 20, .72), rgba(8, 47, 30, .32) 48%, rgba(3, 15, 10, .82));
}

@media (min-width: 1024px) {
  body {
    background: #eaf8f0;
  }

  #appShell {
    max-width: none;
    min-height: 100vh;
    margin: 0;
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
  }

  .app-header,
  .app-main {
    max-width: 72rem;
  }

  #boardingScreen {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    align-items: start;
  }

  #focusScreen {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    align-items: start;
  }

  #boardingScreen > aside,
  #focusScreen > aside {
    margin-top: 0;
  }

}

@media (max-width: 1023px) {
  #appShell {
    max-width: 430px;
    min-height: 100vh;
    margin: 0 auto;
    overflow-x: hidden;
  }

  .app-header,
  .app-main {
    max-width: 430px;
  }

  #boardingScreen,
  #focusScreen {
    display: block;
  }

  #boardingScreen > aside,
  #focusScreen > aside {
    margin-top: 16px;
  }
}

body.journey-active #appShell .platform-grid,
body.journey-active #appShell .neon-reflections,
body.journey-active #appShell .rain-glass {
  opacity: .2;
}

body:not(.journey-active) #appShell .platform-grid,
body:not(.journey-active) #appShell .neon-reflections,
body:not(.journey-active) #appShell .rain-glass {
  opacity: 0;
  animation: none;
}
