:root {
  color-scheme: light;
  --ink: #192538;
  --muted: #52647a;
  --soft: #65788e;
  --blue: #2257bf;
  --blue-hover: #194397;
  --border: #d9e5f1;
  --paper: #fff;
  --blue-tint: #edf4ff;
}
*, *::before, *::after { box-sizing: border-box }
body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(ellipse at 15% 12%, #e9f4fe, transparent 48%),
              linear-gradient(133deg, #eff6fb, #edf3fd 54%, #e4edfb);
  color: var(--ink);
  font: 14px/1.5 -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent }
a:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px }
svg { width: 17px; height: 17px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round }
.shell {
  width: min(646px, calc(100% - 32px)); margin: 18px auto; padding: 24px 26px 12px;
  border: 1px solid #fff; border-radius: 26px; background: #f9fbffdb;
  box-shadow: 0 20px 70px #345c9417;
}
.hero { text-align: center }
.banner {
  height: 141px; border-radius: 19px;
  background: radial-gradient(ellipse at 25% 24%, #f5fbffbc, transparent 62%),
              linear-gradient(119deg, #b8e3fb, #c6dcfa 54%, #a9bee9);
  mask-image: linear-gradient(#000 76%, transparent);
}
.art {
  position: relative; display: grid; place-items: center; margin: -41px auto 13px;
  width: 78px; height: 78px; border: 4px solid #fff; border-radius: 50%;
  background: #eaf4ff; box-shadow: 0 8px 24px #315c962b;
}
.art img { width: 58px; height: 58px; object-fit: contain }
.eyebrow { margin: 0 0 4px; color: var(--blue); font-size: 10px; font-weight: 740; letter-spacing: .12em }
h1 { margin: 0; font-size: clamp(29px, 5vw, 39px); font-weight: 780; letter-spacing: -.035em; line-height: 1.16 }
.intro { margin: 8px 0 0; color: var(--muted); font-size: 13px }
.actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 14px }
.primary, .secondary, .shuffle {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 38px; padding: 0 13px; border-radius: 10px; font-size: 13px; font-weight: 700;
}
.primary { color: white; background: var(--blue) }
.primary:hover { background: var(--blue-hover) }
.secondary, .shuffle { border: 1px solid var(--border); background: var(--paper) }
.secondary:hover, .shuffle:hover { background: var(--blue-tint); border-color: #abc1e7 }
.entries { margin-top: 26px; scroll-margin-top: 68px }
#entries { scroll-margin-top: 68px }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px }
h2 { margin: 0; font-size: 16px; font-weight: 740; display: flex; align-items: center; gap: 8px }
h2::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #4a83d9; box-shadow: 0 0 0 4px #e3efff }
.shuffle { color: var(--blue); white-space: nowrap; min-height: 34px }
.shuffle svg { width: 14px; height: 14px }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px }
.card, .download {
  display: flex; align-items: center; min-width: 0; min-height: 82px; border-radius: 16px;
  border: 1px solid #fff; background: var(--paper); box-shadow: 0 5px 15px #32578a0b;
}
.card { gap: 2px; padding-right: 13px }
.card:hover, .card:focus-within, .download:hover { border-color: #adcaee }
.entry, .download { display: flex; align-items: center; gap: 10px; padding: 10px 12px }
.entry { flex: 1 1 0; min-width: 0; min-height: 80px; border-radius: 15px }
.grid .card { position: relative; padding-right: 0 }
.grid .entry {
  display: grid; grid-template-columns: 39px minmax(0, 1fr);
  align-content: center; column-gap: 10px; row-gap: 3px;
}
.entry-copy { min-width: 0 }
.grid .entry-copy { padding-inline-end: 60px }
.tile {
  width: 39px; height: 39px; flex: none; display: grid; place-items: center;
  border-radius: 11px; background: var(--blue-tint); color: var(--blue);
}
.tile svg { width: 22px; height: 22px }
strong, small { display: block }
strong { font-size: 14px; line-height: 1.3 }
small { color: var(--muted); margin-top: 2px; font-size: 12px; line-height: 1.4 }
.route-meta { grid-column: 1 / -1; min-width: 0; margin-top: 1px; color: var(--soft); font-size: 11px; overflow-wrap: anywhere }
.route-label { font: 11px ui-monospace, monospace; letter-spacing: .015em }
.card-switch {
  width: 34px; height: 38px; flex: none; display: grid; place-items: center;
  border-radius: 10px; color: var(--blue);
}
.card-switch svg {
  box-sizing: content-box; width: 13px; height: 13px; padding: 6px;
  border: 1px solid var(--border); border-radius: 50%; background: #f7faff;
}
.card-switch:hover svg { background: var(--blue-tint); border-color: #a9c3eb }
.route-status { width: 8px; height: 8px; flex: none; margin-left: 2px; border-radius: 50%; background: #168361; box-shadow: 0 0 0 3px #dcf4e9 }
.grid .card-switch { position: absolute; top: 10px; right: 26px }
.grid .route-status { position: absolute; top: 25px; right: 14px }
.download { min-height: 64px; margin-top: 10px }
.fixed { margin-left: auto; border: 1px solid var(--border); border-radius: 6px; color: var(--muted); background: #f5f8fc; padding: 2px 7px; font-size: 11px }
.legend { margin: 8px 2px 0; color: var(--soft); font-size: 11px }
footer { display: flex; justify-content: center; gap: 8px; margin-top: 17px; padding: 10px 1px; color: var(--muted); font-size: 12px }
footer span + span::before { content: "·"; margin-right: 8px; color: var(--soft) }
.route-toast {
  position: fixed; z-index: 2; top: max(10px, env(safe-area-inset-top)); left: 50%;
  width: min(400px, calc(100% - 28px)); transform: translateX(-50%);
  display: flex; align-items: center; gap: 11px; padding: 12px 15px;
  border: 1px solid var(--border); border-radius: 15px; background: var(--paper);
  box-shadow: 0 10px 30px #17223526; pointer-events: none;
  animation: toast-in .18s ease-out, toast-out .2s ease-in 3.6s forwards;
}
.toast-icon { display: grid; flex: 0 0 29px; height: 29px; place-items: center; border-radius: 50%; background: var(--blue); color: white }
.toast-icon svg { width: 16px; height: 16px; stroke-width: 2.3 }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, -5px) } }
@keyframes toast-out { to { opacity: 0; visibility: hidden } }
@media (prefers-reduced-motion: reduce) { .route-toast { animation: toast-out 3.8s step-end forwards } }
@media (max-width: 530px) {
  .shell { width: calc(100% - 20px); margin: 10px auto; padding: 14px 14px 8px; border-radius: 19px }
  .banner { height: 106px; border-radius: 14px }
  .art { width: 65px; height: 65px; margin-top: -35px }
  .art img { width: 48px; height: 48px }
  .entries { margin-top: 20px }
  .grid { grid-template-columns: 1fr; gap: 8px }
  .card, .entry { min-height: 71px }
  .card-switch { width: 44px; height: 44px }
  .grid .card-switch { top: 7px; right: 21px }
}
