/* src/styles.css */
:root {
  --buncss-light: ;
  --buncss-dark: initial;
  color-scheme: dark;
  color: #f4f7ee;
  background: #030604;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Noto Sans, Ubuntu, Cantarell, Helvetica Neue, sans-serif;
}

* {
  box-sizing: border-box;
}

html, body, #app {
  overflow: hidden;
  width: 100%;
  height: 100%;
  min-height: 100%;
  margin: 0;
}

body {
  background: #030604;
}

.simulation-shell {
  position: relative;
  isolation: isolate;
}

#simulation-canvas {
  display: block;
  touch-action: none;
  width: 100%;
  height: 100%;
}

.route-nav {
  position: fixed;
  z-index: 2;
  top: max(16px, env(safe-area-inset-top));
  left: max(16px, env(safe-area-inset-left));
  display: flex;
  backdrop-filter: blur(14px);
  background: #040a07a8;
  border: 1px solid #f3efd024;
  border-radius: 8px;
  align-items:  center;
  gap: 6px;
  padding: 5px;
  box-shadow: 0 14px 40px #00000052;
}

.route-nav a {
  color: #f4f7eec2;
  text-align: center;
  text-decoration: none;
  border-radius: 5px;
  min-width: 62px;
  padding: 8px 10px;
  font-size: .82rem;
  font-weight: 700;
  line-height: 1;
}

.route-nav a[aria-current="page"] {
  color: #07120a;
  background: #d7f8ad;
}

.route-nav a:focus-visible {
  outline: 2px solid #f6ca6b;
  outline-offset: 2px;
}

.simulation-label {
  position: fixed;
  z-index: 2;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  color: #f4f7eed1;
  letter-spacing: 0;
  text-align: right;
  backdrop-filter: blur(14px);
  background: #040a0794;
  border: 1px solid #f3efd01f;
  border-radius: 8px;
  max-width: min(360px, 100vw - 32px);
  padding: 9px 12px;
  font-size: .78rem;
  font-weight: 700;
  line-height: 1.1;
}

@media (width <= 560px) {
  .route-nav {
    top: max(10px, env(safe-area-inset-top));
    justify-content: center;
    left: 10px;
    right: 10px;
  }

  .route-nav a {
    flex: 1;
    min-width: 0;
  }

  .simulation-label {
    right: 10px;
    bottom: max(10px, env(safe-area-inset-bottom));
    text-align: center;
    max-width: none;
    left: 10px;
  }
}
