/* ═══════════════════════════════════════════════════════════════
   JUNCTION & OAK RAILWAY — s115 deep-custom portal skin
   site youxi--1--115 · index.html
   language: split-flap board · platform tracks · signal masts
   ═══════════════════════════════════════════════════════════════ */

/* ── palette (unchanged from original site) ──────────────────── */
:root {
  --bg: #101A14;
  --panel: #17241B;
  --panel-2: #1F3024;
  --accent: #3EC089;
  --accent2: #5E8C6A;
  --text: #F1EFE2;
  --soft: #A3AE9C;
  --line: rgba(62, 192, 137,.28);
  --fh: Georgia, serif;
  --fb: 'Segoe UI', sans-serif;
  --fm: 'Courier New', monospace;
  --sec-gap: 30px;
  /* theme additions — brass fittings, lamps, ironwork */
  --brass: #C9A24B;
  --brass-2: #8F6E2E;
  --lamp-y: #E8C547;
  --lamp-r: #D9754A;
  --iron: #0B120D;
  --iron-2: #223528;
  --paper: #E9E4CE;
  --rail: #8FA896;
}

/* ═══ 0. reset & base ═══════════════════════════════════════════ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html { scroll-behavior: smooth; }

body {
  color: var(--text);
  font-family: var(--fb);
  font-size: 15px;
  line-height: 1.55;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--bg);
}

/* the night concourse: distant lamps, jointed rail, lamp-room glow */
body.t-rail {
  background:
    radial-gradient(circle at 10% 14%, rgba(232,197,71,.16) 0 2px, transparent 3px),
    radial-gradient(circle at 74% 7%, rgba(62,192,137,.2) 0 2px, transparent 3px),
    radial-gradient(circle at 41% 38%, rgba(217,117,74,.12) 0 2px, transparent 3px),
    radial-gradient(circle at 89% 58%, rgba(232,197,71,.14) 0 2px, transparent 3px),
    radial-gradient(circle at 23% 76%, rgba(62,192,137,.14) 0 2px, transparent 3px),
    repeating-linear-gradient(90deg, rgba(0,0,0,.22) 0 3px, transparent 3px 46px),
    radial-gradient(ellipse at 50% 0%, rgba(62,192,137,.11), transparent 55%),
    var(--bg);
  background-attachment: fixed;
}

[v-cloak] { display: none; }
a { color: inherit; text-decoration: none; display: block; }
img { display: block; max-width: 100%; }
button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
  color: inherit;
}

::selection { background: var(--accent); color: #101A14; }

/* ═══ 1. layout shell ════════════════════════════════════════════ */
.wrap {
  max-width: 620px;
  margin: 0 auto;
  padding: 0 18px;
}

/* each section is a paneled waiting-room bay */
.sec {
  position: relative;
  margin-top: var(--sec-gap);
  min-width: 0;
  padding: 15px 16px 17px;
  border-radius: 10px;
  border: 1.5px solid rgba(62,192,137,.22);
  background:
    linear-gradient(180deg, rgba(62,192,137,.05), rgba(16,26,20,.4) 60%),
    var(--panel);
  box-shadow:
    inset 0 2px 0 rgba(241,239,226,.03),
    0 12px 26px -18px rgba(0,0,0,.75);
}

/* the brass safety line along the platform rim */
.sec::before {
  content: '';
  position: absolute;
  top: 0;
  left: 14px;
  right: 14px;
  height: 3px;
  border-radius: 2px;
  background: repeating-linear-gradient(90deg, rgba(201,162,75,.5) 0 6px, transparent 6px 12px);
  pointer-events: none;
}

/* ═══ 2. callout — the enamel platform sign ══════════════════════ */
.callout {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.callout b {
  flex: none;
  font-family: var(--fm);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #101A14;
  background: var(--accent);
  border-radius: 3px;
  padding: 4px 13px;
}

.callout span {
  font-family: var(--fm);
  font-size: 10.5px;
  color: var(--soft);
  letter-spacing: .06em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.callout::after {
  content: '';
  flex: 1;
  border-top: 1.5px dashed rgba(62,192,137,.32);
}

/* the signal lamp beside the label */
.co-lamp {
  flex: none;
  font-style: normal;
  font-size: 12px;
  line-height: 1;
  color: var(--accent);
  text-shadow: 0 0 6px rgba(62,192,137,.55);
}

/* ═══ 3. header — platform canopy + rail ties ════════════════════ */
.hdr {
  position: relative;
  z-index: 50;
  background: linear-gradient(180deg, #1C2B21, #14201A);
  overflow: hidden;
}

/* the cantilevered canopy sheets over the concourse */
.s115-canopy {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 1px;
  height: 32px;
  padding-top: 5px;
}

.s115-canopy i {
  flex: none;
  width: 76px;
  height: 24px;
  clip-path: polygon(0 100%, 7% 0, 93% 0, 100% 100%);
  background: linear-gradient(180deg, #324737, #20301F);
  border-bottom: 2px solid rgba(143,168,150,.5);
}

.s115-canopy i:nth-child(2) { height: 26px; width: 92px; }
.s115-canopy i:nth-child(4) { height: 26px; width: 92px; }

.hdr-in {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0 11px;
}

.s115-brand {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.hdr-name {
  font-family: var(--fh);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.s115-sub {
  font-family: var(--fm);
  font-size: 8.5px;
  letter-spacing: .22em;
  color: var(--brass);
}

.hdr-search {
  flex: none;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  border: 1.5px solid rgba(62,192,137,.4);
  border-radius: 6px;
}

/* the tie bed closing the header: one rail over timber sleepers */
.s115-ties {
  display: flex;
  gap: 9px;
  height: 13px;
  padding: 3px 8px 0;
  background: linear-gradient(180deg, rgba(143,168,150,.6), rgba(143,168,150,.6)) 0 0 / 100% 2px no-repeat;
}

.s115-ties i {
  flex: 1;
  border-radius: 1px;
  background: linear-gradient(180deg, #3A4A3E, #243329);
}

/* ═══ 4. platform rail + search ══════════════════════════════════ */
.s115-rail {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 14px 2px 6px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.s115-rail::-webkit-scrollbar { display: none; }

/* each chip is a small platform plate on the departure rail */
.s115-plat {
  flex: none;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid rgba(62,192,137,.35);
  border-radius: 6px;
  padding: 7px 12px;
  background: var(--panel);
}

/* the marker lamp on each plate */
.s115-plat-dot {
  flex: none;
  width: 11px;
  height: 11px;
}

.s115-plat-dot.d0 {
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px rgba(62,192,137,.5);
}

.s115-plat-dot.d1 { border-radius: 2px; background: var(--brass); }

.s115-plat-dot.d2 {
  width: 9px;
  height: 9px;
  transform: rotate(45deg);
  background: var(--iron);
  border: 1.5px solid rgba(241,239,226,.7);
}

.s115-plat-dot.d3 {
  width: 9px;
  height: 9px;
  transform: rotate(45deg);
  background: var(--accent2);
  position: relative;
}

/* the twin diamond mark */
.s115-plat-dot.d3::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 7px;
  height: 7px;
  transform: rotate(45deg);
  background: var(--accent2);
}

.s115-plat b {
  font-family: var(--fh);
  font-size: 12.5px;
  color: var(--text);
  white-space: nowrap;
}

.s115-plat em {
  font-style: normal;
  font-family: var(--fm);
  font-size: 9px;
  color: var(--soft);
}

.s115-plat.on {
  background: var(--accent);
  border-color: var(--accent);
}

.s115-plat.on b { color: #101A14; }
.s115-plat.on em { color: #2A3E30; }
.s115-plat.on .s115-plat-dot.d2 { border-color: #101A14; }

.s115-plat:active { transform: scale(.96); }

.srch-bar {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.srch-input {
  flex: 1;
  min-width: 0;
  background: var(--iron);
  border: 1.5px solid rgba(62,192,137,.28);
  border-radius: 6px;
  padding: 10px 13px;
  font-family: var(--fh);
  font-size: 13.5px;
  color: var(--text);
  outline: none;
}

.srch-input:focus { border-color: var(--accent); }

.srch-go {
  flex: none;
  font-family: var(--fh);
  font-size: 12.5px;
  font-weight: 800;
  color: #101A14;
  background: var(--accent);
  border-radius: 6px;
  padding: 0 16px;
}

.srch-go:active { transform: scale(.96); }

/* ═══ 5. loading ═════════════════════════════════════════════════ */
.loading-full {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
}

.loading-bar {
  width: 120px;
  height: 4px;
  border-radius: 2px;
  background: var(--panel-2);
  overflow: hidden;
  margin: 0 auto 12px;
}

.loading-bar::after {
  content: '';
  display: block;
  width: 40%;
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  animation: ldslide 1s infinite;
}

/* the dispatch shuttle running the board */
@keyframes ldslide {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(350%); }
}

.loading-txt {
  font-family: var(--fm);
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--soft);
}

/* ═══ 6. hero — the split-flap departure board ═══════════════════ */
.hv13 {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  border: 2px solid rgba(62,192,137,.3);
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  box-shadow:
    0 14px 30px -18px rgba(0,0,0,.8),
    inset 0 1px 0 rgba(241,239,226,.05);
  overflow: hidden;
}

/* the brass nameplate across the board crown */
.hv13-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 14px;
  background: linear-gradient(180deg, var(--brass), var(--brass-2));
  border-bottom: 2px solid rgba(11,18,13,.55);
}

.hv13-head b {
  font-family: var(--fm);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .22em;
  color: #241C08;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* the little platform clock at the plate end */
.hv13-clock {
  position: relative;
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 36%, #F2EDD8, #D8D2B8);
  box-shadow: 0 0 0 2px rgba(36,28,8,.6);
}

.hv13-clock::before,
.hv13-clock::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 50%;
  width: 2px;
  border-radius: 1px;
  background: #241C08;
  transform-origin: 50% 100%;
}

.hv13-clock::before {
  height: 7px;
  margin-left: -1px;
  transform: rotate(300deg);
}

.hv13-clock::after {
  height: 9px;
  margin-left: -1px;
  transform: rotate(90deg);
}

/* the flap label beneath the plate */
.hv13-k {
  display: block;
  padding: 11px 14px 0;
  font-family: var(--fm);
  font-size: 9.5px;
  letter-spacing: .18em;
  color: var(--lamp-y);
}

.hv13-board {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 12px 16px 18px;
}

/* the dark glass of the board screen */
.hv13-screen {
  position: relative;
  width: 158px;
  height: 158px;
  border-radius: 12px;
  overflow: hidden;
  border: 4px solid var(--iron);
  background: var(--iron);
  box-shadow:
    inset 0 0 22px rgba(0,0,0,.6),
    0 0 0 1.5px rgba(62,192,137,.25);
}

.hv13-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* the cell grid and glare across the flap glass */
.hv13-screen::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(90deg, rgba(11,18,13,.28) 0 1px, transparent 1px 7px),
    linear-gradient(115deg,
      rgba(241,239,226,.16) 0 12%,
      transparent 12% 54%,
      rgba(241,239,226,.07) 54% 60%,
      transparent 60%);
  pointer-events: none;
}

/* the split-flap cells spelling the departure state */
.hv13-flap {
  display: flex;
  justify-content: center;
  gap: 4px;
}

.hv13-flap i {
  width: 25px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  border: 1px solid rgba(62,192,137,.16);
  background: linear-gradient(180deg, #24382B 0 47%, #0A100C 47% 53%, #24382B 53% 100%);
  box-shadow:
    inset 0 7px 8px -7px rgba(0,0,0,.7),
    inset 0 -7px 8px -7px rgba(0,0,0,.7);
  color: var(--paper);
  font-family: var(--fm);
  font-size: 15px;
  font-weight: 700;
}

.hv13-flap i:nth-child(1)::before { content: 'B'; }
.hv13-flap i:nth-child(2)::before { content: 'O'; }
.hv13-flap i:nth-child(3)::before { content: 'A'; }
.hv13-flap i:nth-child(4)::before { content: 'R'; }
.hv13-flap i:nth-child(5)::before { content: 'D'; }
.hv13-flap i:nth-child(6)::before { content: 'I'; }
.hv13-flap i:nth-child(7)::before { content: 'N'; }
.hv13-flap i:nth-child(8)::before { content: 'G'; }

/* one cell caught mid-flip */
.hv13-flap i:nth-child(4) { animation: s115flap 5s infinite; }

@keyframes s115flap {
  0%, 68% { transform: scaleY(1); }
  72% { transform: scaleY(.5); }
  78% { transform: scaleY(1); }
  82% { transform: scaleY(.72); }
  88%, 100% { transform: scaleY(1); }
}

.hv13-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  min-width: 0;
}

.hv13-nm {
  font-family: var(--fh);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  overflow-wrap: break-word;
}

.hv13-ds {
  font-size: 12.5px;
  color: var(--soft);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.hv13-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 2px;
}

.hv13-meta em {
  font-style: normal;
  font-family: var(--fm);
  font-size: 9.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #101A14;
  background: var(--accent);
  border-radius: 3px;
  padding: 3px 10px;
}

.hx-stars {
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 2px;
}

.hx-stars i { font-style: normal; }
.hx-stars i.off { opacity: .25; }

.hx-cta {
  align-self: center;
  margin-top: 8px;
  font-family: var(--fh);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1em;
  color: #101A14;
  background: linear-gradient(180deg, #55D89E, var(--accent));
  border-radius: 4px;
  padding: 8px 20px;
}

.hv13-board:active { transform: scale(.98); }

/* ═══ 7. divider — the track section ═════════════════════════════ */
.tk-div {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  padding: 6px 0 10px;
}

/* the rails */
.tk-div i:nth-child(odd) {
  width: 42px;
  height: 2.5px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, rgba(143,168,150,.55), transparent);
}

/* the sleepers set between them */
.tk-div i:nth-child(2),
.tk-div i:nth-child(4) {
  width: 9px;
  height: 11px;
  border-radius: 2px;
  background: linear-gradient(180deg, #3A4A3E, #26352B);
  border: 1px solid rgba(143,168,150,.3);
}

/* ═══ 8. departure board — the split-flap timetable ══════════════ */
.s115-flaps {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 13px 12px 14px;
  border: 1.5px solid rgba(62,192,137,.2);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(11,18,13,.55), rgba(11,18,13,.2) 70%, transparent),
    var(--iron-2);
}

.s115-frow {
  position: relative;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: linear-gradient(180deg, #263B2C, #1C2C22);
  border: 1px solid rgba(62,192,137,.16);
  border-radius: 7px;
}

/* the flap cell holding the departure time */
.s115-frow-t {
  flex: none;
  font-family: var(--fm);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--paper);
  background: linear-gradient(180deg, #24382B 0 47%, #0A100C 47% 53%, #24382B 53%);
  border: 1px solid rgba(62,192,137,.18);
  border-radius: 4px;
  padding: 5px 7px;
}

.s115-frow img {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 6px;
  object-fit: cover;
  border: 1.5px solid rgba(62,192,137,.3);
}

.s115-frow-b {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.s115-frow-b b {
  font-family: var(--fh);
  font-size: 13.5px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.s115-frow-b em {
  font-style: normal;
  font-family: var(--fm);
  font-size: 8.5px;
  letter-spacing: .1em;
  color: var(--soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* the brass platform chip at row end */
.s115-frow-p {
  flex: none;
  font-family: var(--fm);
  font-size: 8.5px;
  letter-spacing: .08em;
  color: #241C08;
  background: var(--brass);
  border-radius: 3px;
  padding: 3px 6px;
}

.s115-frow:active { transform: scale(.98); }

/* ═══ 9. platform row — parallel tracks under the canopy ═════════ */
.s115-plats {
  position: relative;
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 4px 14px;
  -webkit-overflow-scrolling: touch;
}

.s115-plats::-webkit-scrollbar { height: 4px; }
.s115-plats::-webkit-scrollbar-thumb { background: rgba(62,192,137,.4); border-radius: 2px; }
.s115-plats::-webkit-scrollbar-track { background: transparent; }

.s115-plat2 {
  flex: none;
  width: 104px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 8px 7px 5px;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1.5px solid rgba(62,192,137,.22);
  border-radius: 10px 10px 6px 6px;
}

/* the cantilevered canopy roof over each bay */
.s115-plat2-canopy {
  width: 100%;
  height: 9px;
  clip-path: polygon(0 100%, 5% 0, 95% 0, 100% 100%);
  background: linear-gradient(180deg, var(--rail), #55705C);
}

.s115-plat2-art {
  width: 100%;
  height: 64px;
  border-radius: 7px;
  overflow: hidden;
  border: 2px solid rgba(62,192,137,.3);
}

.s115-plat2-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.s115-plat2-nm {
  font-family: var(--fh);
  font-size: 11px;
  color: var(--text);
  max-width: 100%;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.s115-plat2-no {
  font-style: normal;
  font-family: var(--fm);
  font-size: 8px;
  letter-spacing: .14em;
  color: var(--soft);
}

/* the twin rails each bay stands on */
.s115-plat2-track {
  position: relative;
  width: 100%;
  height: 9px;
  margin-top: 2px;
}

.s115-plat2-track i {
  position: absolute;
  left: 2px;
  right: 2px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg,
    transparent,
    rgba(143,168,150,.65) 12%,
    rgba(143,168,150,.65) 88%,
    transparent);
}

.s115-plat2-track i:nth-child(2) { top: 5px; height: 2.5px; }

.s115-plat2:active { transform: scale(.95); }

/* ═══ 10. depot stalls — the locomotive shed ═════════════════════ */
.s115-depot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 13px 12px;
}

.s115-stall {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 9px 10px;
  background: var(--panel-2);
  border: 1px solid rgba(62,192,137,.2);
  border-radius: 8px;
  overflow: hidden;
}

/* the striped shed shutter each engine sleeps behind */
.s115-stall-door {
  height: 13px;
  margin: 0 -9px 2px;
  background: repeating-linear-gradient(90deg, rgba(62,192,137,.4) 0 4px, rgba(11,18,13,.85) 4px 13px);
  box-shadow: inset 0 -3px 0 rgba(0,0,0,.4);
}

.s115-stall-door.d1 {
  background: repeating-linear-gradient(90deg, rgba(201,162,75,.45) 0 4px, rgba(11,18,13,.85) 4px 13px);
}

.s115-stall-door.d2 {
  background: repeating-linear-gradient(90deg, rgba(232,197,71,.4) 0 5px, rgba(11,18,13,.85) 5px 14px);
}

.s115-stall-door.d3 {
  background: repeating-linear-gradient(90deg, rgba(94,140,106,.5) 0 4px, rgba(11,18,13,.85) 4px 12px);
}

.s115-stall-art img {
  width: 100%;
  height: 86px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid rgba(62,192,137,.25);
}

.s115-stall-b {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.s115-stall-b b {
  font-family: var(--fh);
  font-size: 13px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.s115-stall-b em {
  font-style: normal;
  font-family: var(--fm);
  font-size: 8.5px;
  letter-spacing: .1em;
  color: var(--soft);
}

.s115-stall:active { transform: scale(.97); }

/* ═══ 11. freight yard — the coupled car chain ═══════════════════ */
.s115-freight {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 4px 0 12px;
}

/* the yard rail the whole cut rests on */
.s115-freight::after {
  content: '';
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg,
    transparent,
    rgba(143,168,150,.55) 8%,
    rgba(143,168,150,.55) 92%,
    transparent);
}

.s115-car {
  position: relative;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px 13px;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1.5px solid rgba(62,192,137,.22);
  border-radius: 9px;
}

/* the bogie wheels under each car */
.s115-car::before,
.s115-car::after {
  content: '';
  position: absolute;
  bottom: -5px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--iron);
  border: 2px solid var(--rail);
}

.s115-car::before { left: 30px; }
.s115-car::after { right: 30px; }

/* the stencil plate riveted to the car side */
.s115-car-type {
  flex: none;
  max-width: 58px;
  font-family: var(--fm);
  font-size: 7.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-align: center;
  color: var(--paper);
  background: linear-gradient(180deg, #24382B, #16241B);
  border: 1px solid rgba(62,192,137,.22);
  border-radius: 4px;
  padding: 4px 5px;
  overflow: hidden;
}

.s115-car img {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 7px;
  object-fit: cover;
  border: 1.5px solid rgba(62,192,137,.3);
}

.s115-car-b {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.s115-car-b b {
  font-family: var(--fh);
  font-size: 13.5px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.s115-car-b em {
  font-style: normal;
  font-size: 11px;
  color: var(--soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.s115-car-arrow {
  flex: none;
  font-size: 13px;
  color: var(--accent);
}

.s115-car:active { transform: scale(.98); }

/* ═══ 12. signal line — the trackside masts ══════════════════════ */
.s115-signals {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
}

.s115-sig {
  min-width: 0;
  display: flex;
  gap: 9px;
  padding: 11px 10px;
  background: var(--panel);
  border: 1px solid rgba(62,192,137,.18);
  border-radius: 8px;
}

/* the mast with its three lamp heads */
.s115-sig-mast {
  flex: none;
  width: 26px;
  position: relative;
  padding-left: 5px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

/* the mast pole */
.s115-sig-mast::before {
  content: '';
  position: absolute;
  left: 1px;
  top: 3px;
  bottom: 2px;
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--rail), #4E6250);
}

.s115-sig-mast i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--iron);
  border: 2px solid #3C4E40;
  box-shadow: inset 0 0 3px rgba(0,0,0,.7);
}

/* clear — the lower lamp burns green */
.s115-sig-mast.m0 i:nth-child(3) {
  background: var(--accent);
  border-color: #6FDCA4;
  box-shadow: 0 0 8px rgba(62,192,137,.65);
  animation: s115blink 2.4s infinite;
}

/* caution — the middle lamp burns amber */
.s115-sig-mast.m1 i:nth-child(2) {
  background: var(--lamp-y);
  border-color: #F2DA82;
  box-shadow: 0 0 8px rgba(232,197,71,.6);
  animation: s115blink 1.6s infinite;
}

/* stop — the top lamp burns red */
.s115-sig-mast.m2 i:nth-child(1) {
  background: var(--lamp-r);
  border-color: #E89A78;
  box-shadow: 0 0 8px rgba(217,117,74,.6);
  animation: s115blink 1.1s infinite;
}

@keyframes s115blink {
  0%, 100% { opacity: 1; }
  50% { opacity: .45; }
}

.s115-sig-art { flex: none; }

.s115-sig-art img {
  width: 52px;
  height: 52px;
  border-radius: 7px;
  object-fit: cover;
  border: 1.5px solid rgba(62,192,137,.3);
}

.s115-sig-b {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.s115-sig-b b {
  font-family: var(--fh);
  font-size: 13px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.s115-sig-b em {
  font-style: normal;
  font-family: var(--fm);
  font-size: 8.5px;
  letter-spacing: .12em;
  color: var(--soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.s115-sig:active { transform: scale(.97); }

/* ═══ 13. station clock — the platform clock column ══════════════ */
.s115-clocks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 10px;
  padding-top: 6px;
}

.s115-clock {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 11px 6px 10px;
  background: var(--panel-2);
  border: 1px solid rgba(62,192,137,.18);
  border-radius: 8px;
}

/* the dial: a tick ring around a cream face */
.s115-clock-face {
  position: relative;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: repeating-conic-gradient(rgba(233,228,206,.55) 0 1.5deg, transparent 1.5deg 30deg);
  box-shadow: 0 0 0 2px rgba(62,192,137,.35);
}

/* the inner face */
.s115-clock-face::before {
  content: '';
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 36%, #F2EDD8, #D8D2B8);
}

/* the hub cap over the hands */
.s115-clock-face::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  border-radius: 50%;
  background: #22301F;
  z-index: 2;
}

.s115-clock-h,
.s115-clock-m {
  position: absolute;
  left: 50%;
  bottom: 50%;
  border-radius: 2px;
  background: #22301F;
  transform-origin: 50% 100%;
  z-index: 1;
}

.s115-clock-h {
  width: 3px;
  height: 13px;
  margin-left: -1.5px;
}

.s115-clock-m {
  width: 2px;
  height: 19px;
  margin-left: -1px;
}

/* four clocks, four right times */
.s115-clock-face.c0 .s115-clock-h { transform: rotate(300deg); }
.s115-clock-face.c0 .s115-clock-m { transform: rotate(45deg); }
.s115-clock-face.c1 .s115-clock-h { transform: rotate(30deg); }
.s115-clock-face.c1 .s115-clock-m { transform: rotate(180deg); }
.s115-clock-face.c2 .s115-clock-h { transform: rotate(120deg); }
.s115-clock-face.c2 .s115-clock-m { transform: rotate(90deg); }
.s115-clock-face.c3 .s115-clock-h { transform: rotate(255deg); }
.s115-clock-face.c3 .s115-clock-m { transform: rotate(320deg); }

.s115-clock-nm {
  font-family: var(--fh);
  font-size: 11px;
  color: var(--text);
  max-width: 100%;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.s115-clock:active { transform: scale(.95); }

/* ═══ 14. dining car — the folded menu card ══════════════════════ */
.s115-menu {
  padding: 14px 13px 13px;
  border: 1.5px dashed rgba(201,162,75,.42);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(233,228,206,.06), transparent 42%),
    var(--panel);
}

/* the twin fold leaves of the menu cover */
.s115-menu-fold {
  display: flex;
  gap: 3px;
  margin-bottom: 11px;
}

.s115-menu-fold span {
  flex: 1;
  height: 15px;
  background: linear-gradient(180deg, var(--brass), var(--brass-2));
}

.s115-menu-fold span:first-child {
  clip-path: polygon(0 0, 100% 0, 86% 100%, 0 100%);
}

.s115-menu-fold span:last-child {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 14% 100%);
}

.s115-dish {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  background: var(--panel-2);
  border: 1px solid rgba(62,192,137,.16);
  border-radius: 8px;
}

.s115-dish + .s115-dish { margin-top: 8px; }

.s115-dish img {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 7px;
  object-fit: cover;
  border: 1.5px solid rgba(201,162,75,.35);
}

.s115-dish-b {
  flex: 1;
  min-width: 0;
}

.s115-dish-b b {
  display: block;
  font-family: var(--fh);
  font-size: 13.5px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* the dotted leader under the course name */
.s115-dish-b em {
  font-style: normal;
  display: block;
  margin-top: 2px;
  font-family: var(--fm);
  font-size: 9px;
  letter-spacing: .1em;
  color: var(--soft);
  border-bottom: 1.5px dotted rgba(62,192,137,.3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* the paper price chip */
.s115-dish-price {
  flex: none;
  font-family: var(--fm);
  font-size: 11px;
  font-weight: 700;
  color: #22301F;
  background: var(--paper);
  border-radius: 4px;
  padding: 4px 7px;
  box-shadow: inset 0 -2px 0 rgba(143,120,46,.35);
}

.s115-dish:active { transform: scale(.98); }

/* ═══ 15. route map — the line cards ═════════════════════════════ */
.s115-routes {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 11px 10px;
}

.s115-route {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 11px 11px 10px;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1.5px solid rgba(62,192,137,.22);
  border-radius: 8px;
}

.s115-route-top {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* the brass line code tab */
.s115-route-code {
  flex: none;
  font-family: var(--fm);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .1em;
  color: #241C08;
  background: var(--brass);
  border-radius: 3px;
  padding: 2px 6px;
}

/* the colored running line with its stops */
.s115-route-line {
  flex: 1;
  min-width: 0;
  position: relative;
  height: 14px;
  color: var(--accent);
}

.s115-route-line::before {
  content: '';
  position: absolute;
  left: 3px;
  right: 3px;
  top: 6px;
  height: 2.5px;
  border-radius: 2px;
  background: currentColor;
}

.s115-route-line i {
  position: absolute;
  top: 3px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--panel-2);
  border: 2px solid currentColor;
}

.s115-route-line i:nth-child(1) { left: 0; }
.s115-route-line i:nth-child(2) { left: 50%; margin-left: -4px; }
.s115-route-line i:nth-child(3) { right: 0; }

/* the terminal stop drawn solid */
.s115-route-line i:nth-child(3) { background: currentColor; }

.s115-route-line.r0 { color: var(--accent); }
.s115-route-line.r1 { color: var(--brass); }
.s115-route-line.r2 { color: var(--lamp-y); }
.s115-route-line.r3 { color: var(--accent2); }

.s115-route-b {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.s115-route-b b {
  font-family: var(--fh);
  font-size: 13px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.s115-route-b i {
  font-style: normal;
  flex: none;
  font-family: var(--fm);
  font-size: 9px;
  color: var(--soft);
}

.s115-route-arrow {
  flex: none;
  font-size: 13px;
  color: var(--accent);
}

.s115-route:active { transform: scale(.97); }

/* ═══ 16. archive — the punched ticket stubs ═════════════════════ */
.s115-stubs {
  position: relative;
  padding: 15px 12px 12px;
  background: var(--panel);
  border: 1.5px solid rgba(62,192,137,.22);
  border-radius: 10px;
}

/* the twin punch clips over the stub stack */
.s115-stubs-punch {
  position: absolute;
  top: -7px;
  left: 24px;
  right: 24px;
  display: flex;
  justify-content: space-between;
}

.s115-stubs-punch i {
  width: 36px;
  height: 15px;
  border-radius: 4px;
  background: linear-gradient(180deg, #D8C48A, #8F6E2E);
  box-shadow: 0 3px 6px rgba(0,0,0,.45);
}

.arc-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.arc {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: var(--panel-2);
  border: 1px solid rgba(62,192,137,.14);
  border-radius: 8px;
}

/* the punch hole bitten from each stub edge */
.s115-stub {
  position: relative;
  border-style: dashed;
  border-color: rgba(201,162,75,.35);
}

.s115-stub::after {
  content: '';
  position: absolute;
  right: 52px;
  top: 50%;
  width: 9px;
  height: 9px;
  margin-top: -4.5px;
  border-radius: 50%;
  background: var(--bg);
  box-shadow: inset 0 1px 2px rgba(0,0,0,.6);
}

.arc img {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 7px;
  object-fit: cover;
}

/* the ticket number torn with the stub */
.s115-stub-no {
  flex: none;
  font-family: var(--fm);
  font-size: 9px;
  letter-spacing: .06em;
  color: var(--accent);
  background: linear-gradient(180deg, #24382B 0 47%, #0A100C 47% 53%, #24382B 53%);
  border: 1px solid rgba(62,192,137,.2);
  border-radius: 4px;
  padding: 3px 5px;
}

.arc-b { flex: 1; min-width: 0; }

.arc-nm {
  display: block;
  font-family: var(--fh);
  font-size: 13px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.arc-ds {
  display: block;
  font-size: 11px;
  color: var(--soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* the line tag clipped to each stub */
.s115-stub-tag {
  flex: none;
  font-style: normal;
  font-family: var(--fm);
  font-size: 8.5px;
  letter-spacing: .08em;
  color: var(--brass);
}

.arc:active { transform: scale(.98); }

/* ═══ 17. filter view + empty ════════════════════════════════════ */
.filter-hd {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
}

.filter-back {
  flex: none;
  font-family: var(--fh);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text);
  background: var(--panel);
  border: 1.5px solid rgba(62,192,137,.5);
  border-radius: 6px;
  padding: 7px 12px;
}

.filter-title {
  flex: 1;
  min-width: 0;
  font-family: var(--fh);
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.filter-cnt {
  flex: none;
  font-family: var(--fm);
  font-size: 11.5px;
  color: #101A14;
  background: var(--accent);
  border-radius: 4px;
  padding: 3px 8px;
}

.empty-space {
  text-align: center;
  padding: 40px 0 24px;
}

/* the dark empty platform at midnight */
.empty-space p {
  font-size: 30px;
  line-height: 1;
  color: var(--soft);
}

.empty-space span {
  display: block;
  margin-top: 10px;
  font-family: var(--fm);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--soft);
}

/* ═══ 18. more ═══════════════════════════════════════════════════ */
.more-wrap {
  text-align: center;
  margin-top: 15px;
}

.more-btn {
  font-family: var(--fh);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--accent);
  background: var(--panel);
  border: 1.5px solid rgba(62,192,137,.4);
  border-radius: 6px;
  padding: 10px 22px;
}

.more-btn:active { transform: scale(.97); }

/* ═══ 19. footer — the ballast & ties ════════════════════════════ */
.foot {
  position: relative;
  margin-top: 44px;
  padding: 28px 0 30px;
  text-align: center;
  background: linear-gradient(180deg, #1C2B21, #101A14);
}

/* the ballast bed: twin rails on timber ties */
.s115-ballast {
  height: 16px;
  margin-bottom: 12px;
  background:
    linear-gradient(180deg,
      transparent 0 2px,
      rgba(143,168,150,.75) 2px 4px,
      transparent 4px 12px,
      rgba(143,168,150,.75) 12px 14px,
      transparent 14px 16px),
    repeating-linear-gradient(90deg, #2C3E31 0 9px, #1A291F 9px 24px);
  border-bottom: 1px solid rgba(0,0,0,.5);
}

.foot-name {
  font-family: var(--fh);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--text);
}

.foot-links {
  display: flex;
  justify-content: center;
  gap: 22px;
  margin-top: 12px;
}

.foot-links a {
  display: inline;
  font-size: 12.5px;
  color: var(--soft);
  text-decoration: underline;
}

.foot-fine {
  margin-top: 12px;
  font-family: var(--fm);
  font-size: 10px;
  letter-spacing: .14em;
  color: var(--soft);
  opacity: .75;
}

/* ═══ 20. back-to-top — the signal disc ══════════════════════════ */
.totop-btn {
  position: fixed;
  right: 16px;
  bottom: 24px;
  z-index: 60;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--fh);
  font-size: 17px;
  font-weight: 700;
  color: #101A14;
  background: radial-gradient(circle at 40% 30%, #66DCA3, var(--accent));
  border-radius: 50%;
  box-shadow: 0 4px 14px rgba(0,0,0,.5);
}

/* ═══ 21. responsive ═════════════════════════════════════════════ */
@media (max-width: 480px) {
  .sec { padding: 13px 12px 15px; }

  .hv13-screen { width: 132px; height: 132px; }

  .hv13-nm { font-size: 19px; }

  .hv13-flap i { width: 22px; height: 31px; font-size: 13.5px; }

  .s115-flaps { padding: 12px 10px 12px; }

  .s115-frow img { width: 42px; height: 42px; }

  .s115-plat2 { width: 96px; }

  .s115-plat2-art { height: 58px; }

  .s115-stall-art img { height: 76px; }

  .s115-clocks { gap: 10px 8px; }

  .s115-clock-face { width: 52px; height: 52px; }

  .s115-clock-m { height: 17px; }

  .s115-clock-h { height: 11px; }

  .s115-stubs-punch { left: 18px; right: 18px; }
}

@media (max-width: 375px) {
  .wrap { padding: 0 14px; }

  .hdr-name { font-size: 16px; }

  .s115-canopy i { width: 64px; }
  .s115-canopy i:nth-child(2),
  .s115-canopy i:nth-child(4) { width: 78px; }

  .s115-depot,
  .s115-signals,
  .s115-routes { gap: 10px; }

  .s115-sig { gap: 8px; padding: 10px 8px; }

  .s115-sig-mast { width: 22px; }

  .s115-sig-art img { width: 46px; height: 46px; }

  .s115-car { gap: 8px; }

  .s115-stub { gap: 8px; }

  .s115-stub::after { right: 44px; }

  .hv13-flap i { width: 20px; height: 28px; font-size: 12.5px; }

  .s115-dish { gap: 8px; padding: 8px 8px; }
}
