@font-face { font-family: Barlow; font-weight: 400; font-display: swap; src: url('/fonts/barlow-400.ttf'); }
@font-face { font-family: 'Barlow Semi Condensed'; font-weight: 700; font-display: swap; src: url('/fonts/barlow-semi-condensed-700.ttf'); }
@font-face { font-family: CommitMono; font-weight: 400; font-display: swap; src: url('/fonts/commit-mono-400.otf'); }
:root { --mono: CommitMono, ui-monospace, monospace; }
[hidden] { display: none !important; }
#app { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
#app canvas, #app img { -webkit-user-drag: none; -webkit-tap-highlight-color: transparent; }
#app button, #app a { touch-action: manipulation; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, canvas:focus-visible { outline: 2px solid var(--yellow); outline-offset: -3px; }
.tour-tools { position: absolute; right: 16px; top: 16px; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; z-index: 3; }
.tour-tools button, .tour-tools a, #retry, #resumeWalk {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px;
  background: var(--navy); border: 1px solid var(--deep); color: var(--bone);
  padding: 8px 12px; font: 700 15px var(--display); cursor: pointer; text-decoration: none;
}
.tour-tools button:hover, .tour-tools a:hover { border-color: var(--yellow); }
.tour-tools button[aria-pressed="true"] { background: var(--yellow); color: var(--navy); }
.walk-hint { position: absolute; z-index: 3; top: 50%; left: 50%; transform: translate(-50%, -50%); width: min(360px, calc(100% - 32px)); padding: 20px; background: var(--navy); border: 1px solid var(--blue); text-align: center; }
.walk-hint p { margin: 0 0 12px; line-height: 1.5; }
#resumeWalk { border-color: var(--yellow); }
.walk-reticle { position: absolute; top: 50%; left: 50%; width: 6px; height: 6px; margin: -3px; border: 1px solid var(--navy); border-radius: 50%; background: var(--bone); pointer-events: none; }
#help { position: absolute; z-index: 4; right: 16px; top: 70px; width: min(380px, calc(100% - 32px)); padding: 18px; background: var(--navy); border: 1px solid var(--blue); line-height: 1.5; }
#help p { margin: 10px 0 0; }
.cap { pointer-events: none; max-width: calc(100% - 32px); }
.concept-note { display: block; margin-top: 8px; font-size: 12px; color: var(--lblue); }
.bar { flex-wrap: wrap; gap: 4px; }
.views { flex-basis: 100%; }
.keys { font-size: 10px; text-transform: none; text-align: left; letter-spacing: 0.03em; padding: 2px 12px; }
#load { padding: 24px; text-align: center; }
#loadMessage { max-width: 38ch; line-height: 1.6; }
#loadFallback { color: var(--bone); text-underline-offset: 4px; }
#load[data-error] .line { display: none; }
.no-script { position: fixed; inset: 0; z-index: 10; display: grid; place-content: center; gap: 16px; padding: 24px; background: var(--navy); }
.no-script a { color: var(--yellow); }
@media (max-width: 760px) {
  .keys { display: block; width: 100%; text-align: center; }
  .tour-tools { left: 12px; right: 12px; top: 12px; justify-content: flex-start; }
  .tour-tools button, .tour-tools a { font-size: 14px; padding: 8px 10px; }
  #help { top: 108px; right: 12px; max-height: calc(100% - 250px); overflow: auto; }
  .cap { left: 12px; max-width: calc(100% - 24px); padding: 10px 12px; }
  .cap .mono { font-size: 10px; }
  .concept-note { margin-top: 5px; font-size: 11px; }
  .views { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; overflow: visible; }
  .views button { min-height: 44px; padding: 8px 4px; font-size: 13px; }
}
@media (max-height: 500px) {
  .cap { display: none; }
  .tour-tools { top: 8px; left: 8px; right: 8px; }
  #help { top: 60px; max-height: calc(100% - 170px); overflow: auto; }
  .views { display: flex; overflow-x: auto; }
  .views button { padding-inline: 10px; }
}
