:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #17212b;
  background: #e8f0f8;
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: linear-gradient(180deg, #d8eafa 0, #f7faff 45%); }
button { font: inherit; }

.app-shell { width: min(100%, 560px); min-height: 100vh; margin: 0 auto; background: #fff; box-shadow: 0 0 32px rgb(30 69 108 / 15%); }
.app-header { display: flex; align-items: center; gap: .7rem; padding: max(1rem, env(safe-area-inset-top)) 1.25rem 1rem; color: #fff; font-size: 1.05rem; font-weight: 800; background: #0b5cab; }
.bus-badge { display: grid; place-items: center; width: 3rem; height: 2rem; border: 2px solid #fff; border-radius: .45rem; font-size: .72rem; letter-spacing: .08em; }
.screen { padding: 1.5rem 1.25rem max(2rem, env(safe-area-inset-bottom)); }
h1 { margin: .5rem 0; font-size: clamp(2rem, 8vw, 3rem); line-height: 1.04; }
h2 { margin: 0 0 .75rem; font-size: 1rem; }
.lead { margin: .6rem 0 1.5rem; color: #4a5c6d; font-size: 1.15rem; }
.start-actions, .route-actions { display: grid; gap: 1rem; }
.button { min-height: 3.25rem; padding: .85rem 1rem; border: 0; border-radius: .9rem; font-weight: 850; letter-spacing: .02em; cursor: pointer; }
.button:focus-visible { outline: 4px solid #f3b61f; outline-offset: 3px; }
.button--large { min-height: 4.25rem; }
.button--primary { color: #fff; background: #0b5cab; box-shadow: 0 .3rem 0 #073e75; }
.button--success { color: #fff; background: #16733b; box-shadow: 0 .3rem 0 #0b4a24; }
.button--danger-outline { color: #9d1c20; border: 3px solid #c53035; background: #fff; }
.start-warning { margin-top: 2rem; padding: 1rem; border: 2px solid #e4a4a6; border-radius: 1rem; background: #fff8f8; }
.start-warning .button { width: 100%; margin-top: .5rem; }
.safety-message p { margin: .35rem 0; font-size: 1.05rem; }
.safety-message__contact { color: #b42328; font-weight: 400; }
.progress { margin: 0 0 1.35rem; color: #56697b; font-weight: 700; }
.eyebrow { margin: 0; color: #4a5c6d; font-size: 1rem; }
.stop-name { color: #0b5cab; }
.landmark { padding: .8rem 1rem; border-left: .4rem solid #f3b61f; border-radius: .4rem; background: #fff8dd; }
.bus-group { margin: 1.5rem 0; padding: 1.25rem; border-radius: 1rem; background: #edf5fc; }
.bus-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
.bus-number { display: grid; place-items: center; min-height: 4rem; border-radius: .75rem; font-size: 2rem; font-weight: 900; }
.bus-number--required { min-height: 6rem; color: #fff; background: #0b5cab; font-size: 3.7rem; }
.bus-number--allowed { color: #0b5b2b; border: 3px solid #198548; background: #f3fff7; }
.forbidden { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1rem; padding-top: 1rem; border-top: 2px solid #cad8e5; color: #9d1c20; }
.forbidden strong { font-size: 1.8rem; }
.exit-card { display: grid; gap: .3rem; margin: 1.5rem 0; padding: 1.1rem; border: 3px solid #0b5cab; border-radius: 1rem; }
.exit-card strong { color: #0b5cab; font-size: 2rem; }
.exit-landmark { margin-top: .35rem; padding-top: .7rem; border-top: 1px solid #adc8e2; color: #584600; }
.help-screen { display: grid; align-content: center; min-height: calc(100vh - 4rem); text-align: center; }
.help-screen .safety-message { margin: 2rem 0; padding: 1.5rem 1rem; border-radius: 1rem; background: #fff2f2; }
.help-screen .safety-message p { font-size: 1.25rem; }
.complete-screen { padding-top: 4rem; text-align: center; }
.complete-mark { display: grid; place-items: center; width: 7rem; height: 7rem; margin: 0 auto 1.5rem; border-radius: 50%; color: #fff; background: #16733b; font-size: 4rem; font-weight: 900; }

@media (min-width: 560px) {
  .screen { padding-inline: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
}
