/* 沿線慢旅：坐在車窗邊 */
:root {
  --sans: "PingFang TC", "Noto Sans TC", "Source Han Sans TC", "Microsoft JhengHei", system-ui, sans-serif;
  --title-font: "Chiron GoRound TC", var(--sans);
  --title-weight: 500;
  --radius: 4px;
  --ease: cubic-bezier(.22, .8, .24, 1);
  --pad: clamp(16px, 4.6vw, 80px);
  --win-top: clamp(84px, 12.5vh, 128px);
  --win-bottom: clamp(236px, 31vh, 330px);
  /* 定案配色「海線藍窗」 */
  --wall: #eef1f2;
  --wall-shade: #dde3e6;
  --frame: #24415f;
  --frame-light: #36597c;
  --ink: #121418;
  --accent: #f08a4b;
  --accent-ink: #121418;
  --ticket: #f6efe2;
  --ticket-ink: #24415f;
  --lamp: #f08a4b;
  --menu-bg: #24415f;
}

/* 每站的天光照進車廂的顏色 */
body[data-stop="0"] { --daylight: 255, 176, 128; }
body[data-stop="1"] { --daylight: 255, 236, 196; }
body[data-stop="2"] { --daylight: 236, 246, 255; }
body[data-stop="3"] { --daylight: 255, 222, 170; }
body[data-stop="4"] { --daylight: 255, 140, 90; }

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; overflow: hidden; overscroll-behavior: none; touch-action: none;
  background: var(--wall); color: var(--ink);
  font: 400 16px/1.8 var(--sans);
  -webkit-font-smoothing: antialiased;
  transition: background-color .6s ease;
}
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
.display { font-family: var(--title-font); font-weight: var(--title-weight); letter-spacing: 0; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 50; padding: 10px 14px; background: var(--ink); color: var(--wall); }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
[tabindex="-1"]:focus { outline: none; }

/* 車廂牆面的紙紋 */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .28 0 0 0 0 .2 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── 車廂與窗 ── */
.carriage { position: fixed; inset: 0; z-index: 1; }
.carriage::after {
  /* 窗外的光灑在牆上 */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(70% 60% at 50% 40%, rgba(var(--daylight), .28), rgba(var(--daylight), 0) 70%);
  transition: background .8s ease;
}
.window {
  position: absolute; left: var(--pad); right: var(--pad); top: var(--win-top); bottom: var(--win-bottom);
  border-radius: 34px;
  background: var(--frame);
  padding: clamp(10px, 1.1vw, 18px);
  box-shadow: 0 0 0 2px var(--ink), inset 0 0 0 2px var(--ink), inset 0 3px 0 4px var(--frame-light), 0 18px 0 -6px rgba(0,0,0,.08);
}
.view {
  position: relative; width: 100%; height: 100%; overflow: hidden;
  border-radius: 22px; background: #13161c;
  box-shadow: 0 0 0 2px var(--ink);
  isolation: isolate;
}
.sky { position: absolute; inset: 0; background: #3b4a63; }
.scene-layers { position: absolute; inset: 0; }
.layer {
  position: absolute; left: 50%; top: 50%;
  width: var(--layer-w, 130%); height: auto;
  transform: translate(calc(-50% + var(--tx, 0px)), calc(-50% + var(--ty, 0px)));
  will-change: transform;
  user-select: none; pointer-events: none;
}
.layer img { display: block; width: 100%; height: auto; }
.layer-near img { filter: blur(var(--near-blur, 0px)); }
/* 第 3 站月台的站名牌（圖上是空白板子，字由網頁疊上去） */
.station-sign {
  position: absolute; left: 7.6%; top: 38.6%; width: 10.3%; height: 27.4%;
  display: grid; place-items: center;
  color: #2a2d33; font-size: calc(var(--layer-w, 1000px) * .026); line-height: 1.1; white-space: nowrap;
  transform: perspective(600px) rotateY(-14deg) skewY(-2deg);
  transform-origin: 0 50%;
}
.station-sign[hidden] { display: none; }
.poles { position: absolute; inset: 0; pointer-events: none; }
.poles i {
  position: absolute; top: -4%; bottom: -10%; width: 14px; left: 0;
  background: #2a2420; border-left: 3px solid #4a3d33;
  transform: translateX(var(--x, -200px));
  filter: blur(var(--pole-blur, 1px));
}
.poles i::before { content: ""; position: absolute; left: -42px; right: -42px; top: 9%; height: 7px; background: #2a2420; }
.poles i::after { content: ""; position: absolute; left: -36px; right: -36px; top: 13.5%; height: 5px; background: #2a2420; }

.tunnel { position: absolute; inset: 0; pointer-events: none; }
.tunnel-mouth {
  position: absolute; top: -2%; bottom: -2%; left: 0; width: 300%;
  background:
    radial-gradient(50% 90% at 0% 50%, rgba(255,255,255,0) 60%, rgba(0,0,0,.25)),
    #15120f;
  transform: translateX(var(--mouth, 110%));
}
.tunnel-mouth::before {
  /* 隧道口的石牆邊 */
  content: ""; position: absolute; top: 0; bottom: 0; left: -26px; width: 28px;
  background: repeating-linear-gradient(180deg, #4b4038 0 34px, #3a312b 34px 37px, #554941 37px 70px, #3a312b 70px 73px);
  box-shadow: inset -6px 0 10px rgba(0,0,0,.45);
}
.tunnel-mouth.is-exit::before { left: auto; right: -26px; }
.tunnel-lights {
  position: absolute; inset: 0; opacity: var(--tunnel, 0);
  background:
    linear-gradient(180deg, rgba(0,0,0,0) 22%, rgba(255,181,71,.07) 30%, rgba(0,0,0,0) 40%),
    repeating-linear-gradient(90deg, rgba(0,0,0,0) 0 calc(var(--lamp-gap, 340px) - 60px), rgba(255,190,110,.0) calc(var(--lamp-gap, 340px) - 60px), rgba(255,190,110,.9) calc(var(--lamp-gap, 340px) - 30px), rgba(255,190,110,0) var(--lamp-gap, 340px));
  background-size: 100% 100%, 100% 9%;
  background-repeat: no-repeat, repeat-x;
  background-position: 0 0, var(--lamp-x, 0px) 24%;
  filter: blur(1.5px);
}

/* 玻璃：上半固定，下半可以拉下來 */
.glass { position: absolute; inset: 0; pointer-events: none; }
.glass::before, .glass::after { content: ""; position: absolute; left: 0; right: 0; }
.glass::before {
  top: 0; height: 70%;
  background: linear-gradient(115deg, rgba(255,255,255,0) 30%, rgba(255,255,255,.16) 38%, rgba(255,255,255,0) 46%, rgba(255,255,255,0) 60%, rgba(255,255,255,.08) 66%, rgba(255,255,255,0) 72%);
  background-position: var(--glare-x, 0px) 0; background-size: 160% 100%;
}
.glass::after {
  top: 70%; bottom: 0;
  background:
    linear-gradient(115deg, rgba(255,255,255,0) 26%, rgba(255,255,255,.14) 34%, rgba(255,255,255,0) 42%, rgba(255,255,255,0) 64%, rgba(255,255,255,.07) 70%, rgba(255,255,255,0) 76%),
    rgba(214, 228, 236, .06);
  background-position: var(--glare-x, 0px) 0, 0 0; background-size: 160% 100%, auto;
  border-top: clamp(8px, .9vw, 14px) solid var(--frame);
  box-shadow: 0 -2px 0 var(--ink), inset 0 2px 0 var(--frame-light), 0 2px 0 var(--ink);
  transition: transform .9s var(--ease);
}
.is-window-open .glass::after { transform: translateY(104%); }
.glass-glare { position: absolute; inset: 0; background: radial-gradient(40% 60% at var(--gx, 70%) 20%, rgba(255,255,255,.07), transparent 70%); }

.curtain {
  position: absolute; z-index: 2; top: calc(var(--win-top) - 0px); left: calc(var(--pad) + clamp(10px, 1.1vw, 18px)); top: 0;
  width: clamp(36px, 5vw, 76px); height: 62%;
  margin: clamp(10px, 1.1vw, 18px) 0 0;
  background: repeating-linear-gradient(90deg, #d9d2c3 0 9px, #ece6d8 9px 15px, #c7bfae 15px 18px);
  border: 2px solid var(--ink); border-top: 0;
  border-radius: 0 0 40% 20% / 0 0 18% 10%;
  clip-path: polygon(0 0, 100% 0, 100% 78%, 62% 84%, 70% 100%, 0 100%);
  transform-origin: 50% 0;
}
.window .curtain { position: absolute; left: clamp(10px, 1.1vw, 18px); top: clamp(10px, 1.1vw, 18px); margin: 0; }
.curtain i { position: absolute; left: -2px; right: -2px; top: 74%; height: 8px; background: var(--ink); border-radius: 4px; }
.is-window-open .curtain { animation: curtain-sway 2.6s ease-in-out infinite; }
@keyframes curtain-sway { 0%, 100% { transform: skewX(0deg) scaleX(1); } 30% { transform: skewX(-4deg) scaleX(1.06); } 60% { transform: skewX(2deg) scaleX(.98); } }

.sill {
  position: absolute; left: calc(var(--pad) - 18px); right: calc(var(--pad) - 18px);
  top: calc(100% - var(--win-bottom) - 6px); height: clamp(18px, 2.6vh, 28px);
  background: var(--frame); border: 2px solid var(--ink); border-radius: 6px;
  box-shadow: inset 0 4px 0 var(--frame-light), 0 12px 0 -4px rgba(0,0,0,.12);
}

/* ── 頁首與路線圖燈號 ── */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 10;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  height: var(--win-top); padding: 0 var(--pad);
}
.brand { display: inline-flex; align-items: center; gap: 10px; justify-self: start; color: var(--ink); text-decoration: none; min-height: 44px; }
.brand-mark { width: 34px; height: 34px; fill: none; stroke: var(--frame); stroke-width: 2.4; }
.brand-mark circle:last-child { fill: var(--accent); stroke: none; }
.brand-name { font-size: 24px; line-height: 1.2; }
.route-board ol { list-style: none; margin: 0; padding: 0; display: flex; align-items: flex-start; position: relative; }
.route-board ol::before { content: ""; position: absolute; left: 28px; right: 28px; top: 15px; height: 3px; background: var(--frame); border-radius: 2px; }
.route-board li { position: relative; }
.route-board button {
  position: relative; display: grid; justify-items: center; gap: 2px;
  min-width: clamp(64px, 6.4vw, 96px); min-height: 56px; padding: 6px 4px 4px; border: 0; background: none;
}
.route-board i { width: 20px; height: 20px; border-radius: 50%; background: var(--wall); border: 3px solid var(--frame); transition: background-color .3s ease, box-shadow .3s ease; }
.route-board span { font-size: 15px; line-height: 1.3; }
.route-board small { font-size: 11px; line-height: 1.2; opacity: .7; font-variant-numeric: tabular-nums; }
.route-board button[aria-current] i { background: var(--lamp); box-shadow: 0 0 0 3px rgba(255,181,71,.25), 0 0 14px 3px var(--lamp); }
.route-board button:hover i { background: var(--lamp); }
.train-dot { position: absolute; top: 9px; left: var(--train-x, 0px); width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--lamp); box-shadow: 0 0 12px 3px var(--lamp); opacity: var(--train-o, 0); pointer-events: none; }
.header-actions { justify-self: end; display: flex; gap: 10px; align-items: center; }

.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px;
  border: 2px solid var(--ink); border-radius: var(--radius);
  font-size: 15px; font-weight: 600; line-height: 1.2; white-space: nowrap; text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background-color .2s ease;
}
.button-solid { background: var(--accent); color: var(--accent-ink); box-shadow: 3px 3px 0 var(--ink); }
.button-solid:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.button-solid:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.button-line { background: transparent; color: var(--ink); }
.button-line:hover { background: var(--ink); color: var(--wall); }
.site-header .button { min-height: 44px; }
.menu-open { display: none; background: none; }

/* ── 各站內容（窗台下方） ── */
.stops { position: fixed; z-index: 3; left: var(--pad); bottom: 0; height: calc(var(--win-bottom) - 6px); width: min(720px, 56vw); display: flex; align-items: center; }
.stop { width: 100%; padding-top: clamp(14px, 2.6vh, 26px); }
.stop[hidden] { display: none; }
.stop-meta { margin: 0 0 4px; font-size: 13px; font-weight: 600; letter-spacing: .04em; color: var(--frame); }
.stop-title { margin: 0; font-size: clamp(30px, 3.3vw, 54px); line-height: 1.3; text-wrap: balance; }
.stop-lede { margin: 8px 0 0; max-width: 36em; font-size: clamp(14px, 1.08vw, 16px); line-height: 1.8; text-wrap: pretty; }
.stop-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.stop-facts { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 26px; font-size: 14px; }
.stop-facts b { display: block; font-size: 12px; color: var(--frame); }

/* 進場：字像車站翻牌一樣翻下來，說明逐行亮 */
.stop.is-entering .stop-meta { animation: board-flip .5s var(--ease) both; }
.stop.is-entering .stop-title { animation: board-flip .65s var(--ease) .08s both; }
.stop.is-entering .stop-lede { animation: rise-in .6s var(--ease) .22s both; }
.stop.is-entering .stop-facts li, .stop.is-entering .stop-actions { animation: rise-in .55s var(--ease) both; }
.stop.is-entering .stop-facts li:nth-child(1), .stop.is-entering .stop-actions { animation-delay: .32s; }
.stop.is-entering .stop-facts li:nth-child(2) { animation-delay: .4s; }
.stop.is-entering .stop-facts li:nth-child(3) { animation-delay: .48s; }
.stop.is-leaving { animation: fade-out .3s ease both; }
@keyframes board-flip { from { opacity: 0; transform: perspective(600px) rotateX(-80deg); transform-origin: 50% 0; } to { opacity: 1; transform: none; transform-origin: 50% 0; } }
@keyframes rise-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes fade-out { to { opacity: 0; transform: translateY(-6px); } }

/* ── 車票 ── */
.ticket { position: fixed; z-index: 4; right: calc(var(--pad) + 2vw); bottom: calc(var(--win-bottom) - clamp(70px, 9vh, 96px)); perspective: 800px; }
.ticket-card {
  position: relative; width: clamp(230px, 19vw, 300px); aspect-ratio: 57 / 30;
  padding: 12px 16px; display: grid; align-content: space-between;
  background: var(--ticket); color: var(--ticket-ink);
  border: 2px solid var(--ink); border-radius: 6px;
  box-shadow: 5px 6px 0 rgba(0,0,0,.18);
  transform: rotate(-4deg);
  transform-origin: 50% 100%;
}
.ticket-card::before { content: ""; position: absolute; left: 0; right: 0; top: 30%; height: 3px; background: repeating-linear-gradient(90deg, currentColor 0 6px, transparent 6px 10px); opacity: .35; }
.ticket.is-flipping .ticket-card { animation: ticket-flip .7s var(--ease); }
@keyframes ticket-flip { 0% { transform: rotate(-4deg); } 45% { transform: rotate(-4deg) rotateX(88deg); } 55% { transform: rotate(-4deg) rotateX(88deg); } 100% { transform: rotate(-4deg); } }
.ticket p { margin: 0; }
.ticket-line { display: flex; justify-content: space-between; font-size: 11px; font-weight: 600; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.ticket-route { display: flex; align-items: baseline; justify-content: center; gap: 10px; font-size: clamp(22px, 1.9vw, 30px); line-height: 1.2; }
.ticket-route i { font-style: normal; font-size: 16px; opacity: .6; }
.ticket-punch {
  position: absolute; right: 18%; top: -2px; width: 22px; height: 14px;
  background: var(--wall); border: 2px solid var(--ink); border-top: 0; border-radius: 0 0 11px 11px;
  transform: scaleY(0); transform-origin: 50% 0; transition: transform .25s cubic-bezier(.3,1.6,.5,1);
}
.ticket.is-punched .ticket-punch { transform: scaleY(1); }

/* ── 摺頁時刻表（細節面板） ── */
.timetable-panel { position: fixed; inset: 0; z-index: 30; display: grid; place-items: end center; padding: 0 var(--pad) 3vh; background: rgba(20, 18, 16, .35); }
.timetable-panel[hidden] { display: none; }
.timetable-sheet {
  position: relative; width: min(640px, 100%); max-height: calc(100dvh - 6vh - 20px); overflow: auto;
  padding: 30px 32px 28px; background: #fbf7ee; color: var(--ink);
  border: 2px solid var(--ink); border-radius: 6px; box-shadow: 6px 8px 0 rgba(0,0,0,.2);
  transform-origin: 50% 100%;
  background-image: linear-gradient(90deg, rgba(0,0,0,0) calc(50% - 1px), rgba(0,0,0,.06) 50%, rgba(0,0,0,0) calc(50% + 1px));
}
.timetable-panel.is-open .timetable-sheet { animation: unfold .6s var(--ease) both; }
@keyframes unfold { from { opacity: 0; transform: perspective(900px) rotateX(70deg) translateY(30px); } to { opacity: 1; transform: none; } }
.timetable-sheet h2 { margin: 0 0 16px; font-size: 30px; line-height: 1.3; }
.panel-close { position: absolute; right: 12px; top: 12px; min-width: 44px; min-height: 44px; border: 2px solid var(--ink); border-radius: var(--radius); background: none; font-size: 13px; }
.timetable { width: 100%; border-collapse: collapse; font-size: 15px; }
.timetable th { text-align: left; font-size: 12px; color: var(--frame); border-bottom: 2px solid var(--ink); padding: 6px 8px; }
.timetable td { padding: 9px 8px; border-bottom: 1px dashed rgba(0,0,0,.25); vertical-align: top; }
.timetable td:first-child { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.timetable td:nth-child(2) { white-space: nowrap; }
.panel-note { margin: 14px 0 0; font-size: 13px; opacity: .75; }
.bento-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.bento-list li { display: grid; gap: 2px; padding: 12px 14px; border: 2px solid var(--ink); border-radius: 6px; background: #fff; }
.bento-list b { font-size: 17px; }
.bento-list span { font-size: 14px; line-height: 1.7; }
.book-form { display: grid; gap: 12px; }
.book-form > label { display: grid; gap: 4px; font-size: 13px; font-weight: 600; }
.book-form input[type="date"], .book-form input[type="number"], .book-form input[type="tel"] { min-height: 46px; padding: 0 12px; border: 2px solid var(--ink); border-radius: var(--radius); background: #fff; font-size: 16px; }
.book-form fieldset { margin: 0; padding: 0; border: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.book-form legend { width: 100%; padding: 0 0 4px; font-size: 13px; font-weight: 600; }
.choice { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 15px; }
.choice input { width: 20px; height: 20px; accent-color: var(--accent); }
.form-status { min-height: 1.6em; margin: 0; font-size: 14px; font-weight: 600; }

/* ── 全螢幕選單：像捲簾拉下來 ── */
.menu-sheet { position: fixed; inset: 0; z-index: 40; background: var(--menu-bg); color: #fbf6ec; overflow: auto; }
.menu-sheet[hidden] { display: none; }
.menu-sheet::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(180deg, rgba(255,255,255,.035) 0 3px, rgba(0,0,0,0) 3px 22px); pointer-events: none; }
.menu-sheet.is-open { animation: blind-down .55s var(--ease) both; }
.menu-sheet.is-closing { animation: blind-up .35s ease both; }
@keyframes blind-down { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes blind-up { from { clip-path: inset(0 0 0 0); } to { clip-path: inset(0 0 100% 0); } }
.menu-inner { position: relative; min-height: 100%; display: grid; grid-template-rows: auto 1fr auto; gap: 20px; padding: 16px var(--pad) 26px; }
.menu-close { justify-self: end; min-width: 64px; min-height: 44px; border: 2px solid rgba(251,246,236,.7); border-radius: var(--radius); background: none; }
.menu-list { list-style: none; margin: 0; padding: 0 0 0 18px; display: grid; align-content: center; gap: 0; border-left: 3px solid rgba(251,246,236,.5); }
.menu-list button { position: relative; display: grid; grid-template-columns: 52px 1fr; grid-template-rows: auto auto; column-gap: 12px; width: 100%; min-height: 76px; padding: 10px 0; border: 0; background: none; text-align: left; }
.menu-list button::before { content: ""; position: absolute; left: -29px; top: 50%; width: 16px; height: 16px; margin-top: -8px; border-radius: 50%; background: var(--menu-bg); border: 3px solid rgba(251,246,236,.8); }
.menu-list button[aria-current]::before { background: var(--lamp); border-color: var(--lamp); box-shadow: 0 0 12px var(--lamp); }
.menu-list small { grid-row: 1 / 3; align-self: center; font-size: 13px; opacity: .75; font-variant-numeric: tabular-nums; }
.menu-list b { font-size: 34px; line-height: 1.2; font-weight: var(--title-weight); }
.menu-list span { font-size: 14px; opacity: .8; }
.menu-sheet.is-open .menu-list li { animation: rise-in .45s var(--ease) both; }
.menu-sheet.is-open .menu-list li:nth-child(2) { animation-delay: .06s; }
.menu-sheet.is-open .menu-list li:nth-child(3) { animation-delay: .12s; }
.menu-sheet.is-open .menu-list li:nth-child(4) { animation-delay: .18s; }
.menu-sheet.is-open .menu-list li:nth-child(5) { animation-delay: .24s; }
.menu-foot { display: grid; gap: 12px; }
.menu-foot .button { border-color: #fbf6ec; box-shadow: 3px 3px 0 rgba(0,0,0,.4); }
.menu-foot p { margin: 0; font-size: 14px; opacity: .8; }

.window-toggle {
  position: fixed; z-index: 4; right: calc(var(--pad) + clamp(22px, 2vw, 34px)); top: calc(var(--win-top) + clamp(22px, 2vw, 34px));
  min-height: 40px; padding: 0 14px; border: 2px solid var(--ink); border-radius: 999px;
  background: rgba(251, 247, 238, .9); color: var(--ink); font-size: 13px; font-weight: 600;
}
.window-toggle[aria-pressed="true"] { background: var(--ink); color: #fbf6ec; }
.hint { position: fixed; z-index: 3; right: var(--pad); bottom: 14px; margin: 0; font-size: 12px; opacity: .7; transition: opacity .4s ease; }
body.has-moved .hint { opacity: 0; }

/* ── 小螢幕 ── */
@media (max-width: 1100px) {
  .route-board { display: none; }
  .site-header { grid-template-columns: 1fr auto; }
  .menu-open { display: inline-flex; }
}
@media (max-width: 760px), (orientation: portrait) {
  :root { --pad: 14px; --win-top: 68px; --win-bottom: max(300px, 44dvh); }
  .site-header .button-solid { display: none; }
  .route-board { display: none; }
  .site-header { grid-template-columns: 1fr auto; }
  .menu-open { display: inline-flex; }
  .brand-name { font-size: 21px; }
  .window { border-radius: 26px; padding: 9px; }
  .view { border-radius: 18px; }
  .curtain { width: 30px; }
  .stops { left: var(--pad); right: var(--pad); width: auto; align-items: flex-start; }
  .stop { padding-top: 34px; }
  .stop-title { font-size: clamp(26px, 7.2vw, 34px); }
  .stop-lede { font-size: 14px; line-height: 1.75; }
  .stop-actions .button { flex: 1 1 auto; }
  .ticket { right: calc(var(--pad) + 6px); bottom: calc(var(--win-bottom) - 32px); }
  .ticket-card { width: 172px; padding: 8px 11px; }
  .ticket-route { font-size: 19px; gap: 6px; }
  .ticket-line { font-size: 9px; }
  .window-toggle { top: calc(var(--win-top) + 18px); right: calc(var(--pad) + 18px); min-height: 36px; }
  .hint { display: none; }
  .timetable-panel { padding: 0; }
  .timetable-sheet { width: 100%; max-height: 90dvh; border-radius: 6px 6px 0 0; padding: 26px 18px 22px; }
}
@media (max-height: 760px) and (min-width: 761px) and (orientation: landscape) {
  :root { --win-bottom: 250px; }
  .stop-title { font-size: clamp(28px, 2.8vw, 42px); }
  .stop-actions { margin-top: 12px; }
}

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