:root { --wall: #F1E3CB; --ink: #3A2C35; --red: #C4553F; --paper: #FBF4E6; --frame: #F7EDDC; --frame-edge: #D9C3A0; --navy: #1F2E4A; --blue: #2B4E86; }
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background: var(--wall); color: var(--ink); min-height: 100dvh;
  font-family: "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif; -webkit-font-smoothing: antialiased;
}
button { font: inherit; color: inherit; cursor: pointer; }
[hidden] { display: none !important; }
.bar { display: flex; align-items: center; justify-content: space-between; max-width: 960px; margin: 0 auto; padding: max(14px, env(safe-area-inset-top)) 16px 8px; }
.back { color: inherit; text-decoration: none; font-size: 14px; letter-spacing: .1em; opacity: .7; }
.lang { width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(58,44,53,.07); font-size: 12px; font-weight: 600; display: grid; place-items: center; color: inherit; text-decoration: none; }
main { max-width: 960px; margin: 0 auto; padding: 0 16px max(40px, env(safe-area-inset-bottom)); }

.hero { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; align-items: center; margin-top: 6px; }
.win {
  aspect-ratio: 16 / 10; border-radius: 26px; overflow: hidden; border: 12px solid var(--frame); background: #222;
  box-shadow: 0 0 0 2px var(--frame-edge), 0 16px 26px -16px rgba(58,44,53,.45);
}
.win svg { width: 100%; height: 100%; display: block; }
.sign { background: #F7F4EC; border-radius: 10px; overflow: hidden; box-shadow: 0 10px 20px -12px rgba(0,0,0,.35); text-align: center; }
.sign h1 { font-size: clamp(34px, 7vw, 56px); color: var(--navy); padding: 22px 12px 2px; line-height: 1.15; word-break: keep-all; }
.sign .en { font-size: 15px; color: var(--navy); opacity: .7; padding-bottom: 16px; }
.sign .lines { display: flex; justify-content: space-between; gap: 8px; background: var(--blue); color: #F7F4EC; font-size: 13px; padding: 10px 14px; }
.sign .lines a { color: inherit; text-decoration: none; }

.status { margin: 0; background: var(--paper); border-radius: 16px; padding: 18px 20px; box-shadow: 0 6px 16px -12px rgba(0,0,0,.3); }
.status .lead { font-size: 15px; opacity: .75; }
.status .big { font-size: clamp(28px, 6vw, 40px); font-weight: 700; margin: 6px 0 4px; font-variant-numeric: tabular-nums; }
.status .big small { font-size: 15px; font-weight: 400; opacity: .6; margin-right: 8px; }
.status dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin-top: 12px; font-size: 14px; }
.status dt { opacity: .55; }
.status dd small { opacity: .55; margin-left: 6px; }
.status .ride { display: inline-block; margin-top: 14px; background: var(--red); color: #FFF6EC; text-decoration: none; padding: 11px 20px; border-radius: 999px; font-weight: 600; }

.notes { margin-top: 26px; }
.nhead { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.nhead h2 { font-size: 19px; }
.nbtn.go { background: var(--red); color: #FFF6EC; width: auto; margin: 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 22px 16px; padding: 10px 2px; }
.grid .nc { --w: 100%; aspect-ratio: 1; height: auto; }
.grid .nc .txt { font-size: 14px; -webkit-line-clamp: 6; }
.grid .empty { grid-column: 1 / -1; text-align: center; padding: 40px 10px; opacity: .65; line-height: 1.7; }
.mine { margin-top: 30px; background: rgba(255,255,255,.4); border-radius: 14px; padding: 14px 16px; }
.mine h3 { font-size: 14px; margin-bottom: 8px; }
.mine li { list-style: none; font-size: 13px; padding: 6px 0; border-top: 1px solid rgba(58,44,53,.08); display: flex; gap: 10px; }
.mine li span:first-child { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mine .st { opacity: .6; white-space: nowrap; }
.nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 34px; font-size: 14px; }
.nav a { color: inherit; text-decoration: none; background: rgba(58,44,53,.06); padding: 10px 14px; border-radius: 12px; }
.nav a small { display: block; font-size: 11px; opacity: .55; }
.nav .r { text-align: right; margin-left: auto; }
.nav .off, .sign .lines .off { opacity: .5; }
.nav span.off { padding: 10px 14px; }
.nav i.en, .sign .lines i.en { font-style: normal; font-size: 10px; border: 1px solid currentColor; border-radius: 3px; padding: 0 3px; margin-left: 4px; opacity: .7; }

/* Clackety 写的站点介绍：放在纸条墙上面，不算纸条 */
.intro { margin: 22px 0 0; padding: 18px 20px; border-left: 4px solid var(--red); background: rgba(255,255,255,.35); border-radius: 4px 14px 14px 4px; line-height: 1.7; font-size: 15px; }
.intro .welcome { font-size: 18px; font-weight: 600; margin-bottom: 6px; }
.intro .by { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 10px; font-size: 13px; opacity: .7; }
.intro .by a { color: inherit; }

/* 列车现在在哪 */
.where { display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; margin: 22px 0 6px; align-items: stretch; }
.where .status .now { font-size: 14px; margin-top: 10px; opacity: .8; }
.minimap { background: var(--paper); border-radius: 16px; padding: 12px 14px; box-shadow: 0 6px 16px -12px rgba(0,0,0,.3); --frame-edge: #D9C3A0; --red: #C4553F; --ink: #3A2C35; --paper: #FBF4E6; }
.minimap .mapstrip { width: 100%; height: auto; display: block; margin-bottom: 6px; }
.minimap .mapstrip .route { fill: none; stroke: var(--frame-edge); stroke-width: 1.4; }
.minimap .mapstrip .done { fill: none; stroke: var(--red); stroke-width: 1.8; }
.minimap .mapstrip .here { fill: var(--red); }
.minimap .mapsvg { width: 100%; height: auto; display: block; max-height: 260px; }
.minimap .mapsvg a { color: inherit; text-decoration: none; }
.minimap .mapsvg .route { fill: none; stroke: var(--frame-edge); stroke-width: 2.5; stroke-dasharray: 4 5; stroke-linecap: round; }
.minimap .mapsvg .done { fill: none; stroke: var(--red); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.minimap .mapsvg .dots circle { fill: var(--paper); stroke: var(--ink); stroke-width: 1.5; }
.minimap .mapsvg .dots circle.passed { fill: var(--red); stroke: var(--red); }
.minimap .mapsvg .dots circle.closed { stroke-opacity: .35; }
.minimap .mapsvg .dots circle.focus { fill: var(--paper); stroke: var(--red); stroke-width: 3; }
.minimap .mapsvg .dots text { font-size: 9px; fill: var(--ink); opacity: .7; }
.minimap .mapsvg .dots text.focus { font-weight: 700; opacity: 1; font-size: 11px; }
.minimap .mapsvg .here { fill: var(--red); stroke: #fff; stroke-width: 2; }
.minimap .mapsvg .here-glow { fill: var(--red); opacity: .2; }
.minimap .mapinfo { font-size: 13px; margin-top: 6px; opacity: .8; }
.minimap .mapinfo a { color: inherit; }
.minimap .credit { display: none; }

@media (max-width: 640px) {
  .where { grid-template-columns: 1fr; }
  .hero { grid-template-columns: 1fr; gap: 0; }
  .win { border-width: 9px; border-radius: 20px; aspect-ratio: 16 / 11; }
  .sign { margin: -26px 18px 0; position: relative; }
  .sign h1 { padding-top: 16px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 18px 14px; }
}
.status dd .mytime { display: block; font-size: 12px; opacity: .6; }
.grid .nc.blank { background: rgba(255,255,255,.5); border: 2px dashed rgba(58,44,53,.25); box-shadow: none; text-align: center; justify-content: center; }
.grid .nc.blank::before { display: none; }
.langhint { position: absolute; top: calc(env(safe-area-inset-top) + 62px); left: 50%; transform: translateX(-50%); z-index: 80; display: flex; align-items: center; gap: 6px;
  background: #3A2C35; color: #FBF4E6; text-decoration: none; font-size: 13px; padding: 7px 8px 7px 14px; border-radius: 999px; }
.langhint button { border: 0; background: rgba(255,255,255,.15); color: inherit; width: 22px; height: 22px; border-radius: 50%; font-size: 14px; line-height: 1; }

.minimap .allroute { display: block; text-align: center; margin-top: 10px; padding: 8px; border-radius: 999px; background: rgba(58,44,53,.07); color: inherit; text-decoration: none; font-weight: 600; font-size: 13px; }

.foot { max-width: 960px; margin: 0 auto; padding: 0 16px max(30px, env(safe-area-inset-bottom)); font-size: 13px; opacity: .6; line-height: 1.8; }
.foot a { color: inherit; text-decoration: none; }

.langmenu { position: absolute; z-index: 95; background: #FBF4E6; border-radius: 14px; padding: 6px; box-shadow: 0 12px 26px -10px rgba(0,0,0,.45); display: flex; flex-direction: column; min-width: 140px; }
.langmenu a { padding: 9px 14px; border-radius: 9px; color: #3A2C35; text-decoration: none; font-size: 14px; }
.langmenu a:hover { background: rgba(58,44,53,.07); }
.langmenu a[aria-current] { font-weight: 700; color: #C4553F; }
