:root {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #113034;
  background: #f2f8f6;
  -webkit-text-size-adjust: 100%;
}
* { box-sizing: border-box; }
html, body { margin: 0; width: 100%; min-height: 100%; height: 100%; background: #f2f8f6; }
body { overflow: hidden; }
#app {
  position: fixed;
  inset: 0;
  z-index: 200;
  width: 100%;
  height: 100%;
  background: #f2f8f6;
}
#app.ui-hidden { display: none; }
.center {
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(24px, env(safe-area-inset-top)) 24px max(24px, env(safe-area-inset-bottom));
}
.card {
  width: min(520px, 100%);
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(17,48,52,.08);
  border-radius: 22px;
  padding: 28px;
  box-shadow: 0 16px 50px rgba(17,48,52,.08);
}
.logo { width: 78px; height: 78px; display: block; margin: 0 auto 18px; border-radius: 18px; }
h1 { margin: 0 0 12px; text-align: center; font-size: 26px; }
p { margin: 10px 0; line-height: 1.65; color: #3e5b5e; }
.steps { margin: 18px 0 0; padding-left: 24px; line-height: 1.8; color: #294b4f; }
.button {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  border: 0;
  border-radius: 14px;
  padding: 0 18px;
  font-size: 17px;
  font-weight: 650;
  background: #173f43;
  color: white;
  text-decoration: none;
  cursor: pointer;
}
.button.secondary { margin-top: 10px; background: #e7f0ee; color: #173f43; }
.note { font-size: 13px; color: #658083; text-align: center; margin-top: 14px; }
.connecting { height: 100%; display: flex; align-items: center; justify-content: center; padding: 28px; }
.connecting-inner { text-align: center; }
.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(17,48,52,.15);
  border-top-color: #173f43;
  border-radius: 50%;
  margin: 0 auto 18px;
  animation: spin .85s linear infinite;
}
.connecting-title { font-size: 20px; font-weight: 700; }
@keyframes spin { to { transform: rotate(360deg); } }
.route-frame-preload,
.route-frame-live {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  border: 0;
  margin: 0;
  padding: 0;
  background: #fff;
}
.route-frame-preload {
  opacity: 0;
  pointer-events: none;
  z-index: -1;
}
.route-frame-live {
  opacity: 1;
  pointer-events: auto;
  z-index: 100;
}
@media (orientation: landscape) and (max-height: 520px) {
  .card { padding: 18px 24px; }
  .logo { width: 54px; height: 54px; margin-bottom: 10px; }
  h1 { font-size: 22px; }
  .steps { line-height: 1.55; margin-top: 10px; }
}
