:root { color-scheme: dark; --page-bg: #0c0809; --accent: #a86cff; --border: rgba(194, 157, 255, .72); }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; min-height: 100%; background: var(--page-bg); }
body { color: #fff; font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
a, button { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.landing-shell { width: 100%; }
.hero {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0c0809;
}
.hero-art, .hero-art img { display: block; width: 100%; height: 100%; }
.hero-art img { object-fit: contain; }
.art-hotspot { position: absolute; z-index: 1; display: block; cursor: pointer; border-radius: 8px; }
.art-hotspot:focus-visible { background: rgba(116, 51, 190, .22); }
.primary-hotspot { left: 4.0625%; top: 75.9259%; width: 14.7917%; height: 6.6667%; border-radius: 999px; }
.route-menu-hotspot {
  left: 3.1%;
  top: 4.3%;
  width: 15.2%;
  height: 8.7%;
  padding: 0;
  border: 0;
  background: transparent;
}

.interaction-tray {
  position: absolute;
  z-index: 3;
  left: 7.4%;
  bottom: 4.5%;
  width: min(420px, 38%);
  max-height: 42%;
  overflow: auto;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(16, 8, 25, .97);
  box-shadow: 0 12px 36px rgba(0, 0, 0, .52);
}
.interaction-tray p { margin: 0 0 10px; font-size: 14px; }
.interaction-tray button, .route-link {
  min-height: 40px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  cursor: pointer;
}
#retry-action, .close-tray { padding: 7px 16px; }
.routes { display: grid; gap: 8px; }
.route-link { display: flex; align-items: center; justify-content: center; padding: 7px 12px; }
.close-tray { margin-top: 10px; }
.close-tray-icon { display: none; }

.interaction-tray[data-view="empty"] {
  position: fixed;
  inset: 50% auto auto 50%;
  width: max-content;
  max-width: min(360px, calc(100% - 32px));
  max-height: none;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 12px;
  overflow: visible;
  padding: 10px 10px 10px 18px;
  border-color: rgba(194, 157, 255, .82);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(42, 23, 66, .97), rgba(20, 10, 31, .98));
  box-shadow: 0 12px 34px rgba(22, 8, 36, .54), 0 0 22px rgba(168, 108, 255, .16);
}
.interaction-tray[data-view="empty"] #config-status {
  margin: 0;
  color: #f6f0ff;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
}
.interaction-tray[data-view="empty"] .close-tray {
  flex: 0 0 40px;
  width: 40px;
  min-height: 40px;
  margin: 0;
  padding: 0;
  border-color: rgba(194, 157, 255, .46);
  background: rgba(255, 255, 255, .07);
  color: #dcc9ff;
  line-height: 1;
}
.interaction-tray[data-view="empty"] .close-tray-label { display: none; }
.interaction-tray[data-view="empty"] .close-tray-icon {
  display: inline;
  font-size: 22px;
  font-weight: 300;
}
.interaction-tray[data-view="empty"] .close-tray:hover {
  border-color: rgba(214, 188, 255, .86);
  background: rgba(168, 108, 255, .2);
}

@media (max-width: 700px) {
  .hero { width: 100%; aspect-ratio: 393 / 852; }
  .primary-hotspot { left: 24.173%; top: 81.1033%; width: 51.6539%; height: 5.8685%; }
  .route-menu-hotspot { left: 3.6%; top: 6.7%; width: 36.8%; height: 4.7%; }
  .interaction-tray {
    left: max(16px, env(safe-area-inset-left));
    right: max(16px, env(safe-area-inset-right));
    bottom: max(16px, env(safe-area-inset-bottom));
    width: auto;
    max-height: 56%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
