:root{font-family:"Helvetica Neue",Arial,sans-serif;color:#e5d9cf;background:#05060d;--edge:clamp(22px,2.15vw,40px);--bottom:clamp(22px,3.5vh,38px);--top-inset:max(var(--edge),env(safe-area-inset-top));--bottom-inset:max(var(--bottom),env(safe-area-inset-bottom));font-synthesis:none}*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden}body{-webkit-font-smoothing:antialiased}a{color:inherit;text-decoration:none}button{font:inherit;color:inherit;cursor:pointer}a,button{-webkit-tap-highlight-color:transparent;touch-action:manipulation}a:focus-visible,button:focus-visible,main:focus-visible{outline:1px solid #d7c8ea;outline-offset:6px}main:focus-visible{outline-offset:-10px}#encounter{position:fixed;inset:0;overflow:hidden;touch-action:none}#world{position:absolute;inset:0;width:100%;height:100%;display:block;opacity:0;transition:opacity 1.3s ease}body[data-ready=true] #world{opacity:1}
.identities{position:fixed;inset:auto var(--edge) var(--bottom-inset);display:flex;justify-content:space-between;align-items:flex-start;z-index:3;pointer-events:none}.name{font-size:clamp(17px,1.36vw,23px);letter-spacing:-.045em;line-height:1.2;min-height:44px;display:flex;align-items:center;padding:10px 0;position:relative;pointer-events:auto;text-shadow:0 1px 9px #05060d,0 1px 2px #05060d}.name::after{content:"";position:absolute;left:0;right:0;bottom:4px;height:1px;background:currentColor;transform:scaleX(0);transform-origin:left;transition:transform .3s}.name.current::after,.name:hover::after,.name:focus-visible::after{transform:scaleX(1)}/* Keep the contacts and settings on the same centered rail. */
.top-controls {
  --control-gap: clamp(3px, .65vw, 8px);
  position: fixed;
  z-index: 3;
  top: var(--top-inset);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: var(--control-gap);
}
.connections {
  display: flex;
  gap: var(--control-gap);
}
.connections a,.quiet-control{position:relative;display:grid;place-items:center;width:44px;height:44px}.connections svg,.quiet-control svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 1px 3px #05060d)}.connections a{opacity:.8;transition:opacity .2s}.connections a:hover,.connections a:focus-visible{opacity:1}.quiet-control{background:none;border:0;padding:0;opacity:.65}.quiet-control svg{width:18px;height:18px;stroke-width:1.25}.quiet-control:hover{opacity:1}[data-label]::after{content:attr(data-label);position:absolute;top:54px;left:50%;transform:translate(-50%,5px);opacity:0;transition:.2s;pointer-events:none;font-size:11px;letter-spacing:.025em;white-space:nowrap;background:#0b0916de;border:1px solid #dec5fa22;padding:6px 9px;border-radius:3px;backdrop-filter:blur(16px)}[data-label]:hover::after,[data-label]:focus-visible::after{opacity:1;transform:translate(-50%,0)}.connections a:last-child::after{left:auto;right:0;transform:translateY(5px)}.connections a:last-child:hover::after,.connections a:last-child:focus-visible::after{transform:translateY(0)}.quiet-control::after{left:0;transform:translateY(5px)}.quiet-control:hover::after,.quiet-control:focus-visible::after{transform:translateY(0)}
.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}.skip-link{position:fixed;top:10px;left:50%;z-index:20;padding:11px 16px;background:#10101d;transform:translate(-50%,-200%)}.skip-link:focus{transform:translate(-50%,0)}.render-fallback{position:absolute;left:var(--edge);right:var(--edge);top:45%;font-size:15px;line-height:1.6;max-width:28em}@media(max-aspect-ratio:1/1){.name{font-size:19px}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important}}

[hidden]{display:none!important}.load-status{position:absolute;top:48%;left:var(--edge);right:var(--edge);margin:0;font-size:13px;letter-spacing:.03em;line-height:1.6;opacity:.75;max-width:30em}.setting:disabled{opacity:.4;cursor:default}
.return-control{position:fixed;left:var(--edge);top:var(--top-inset);z-index:3;display:flex;gap:7px;align-items:center;justify-content:center;min-width:85px;height:44px;padding:0 8px;border:0;background:transparent;font-size:12px;text-shadow:0 1px 4px #05060d}.return-control svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round}
@media(max-width:540px){.return-control{left:calc(var(--edge) - 10px);top:calc(var(--top-inset) + 50px)}}

/* Public lettering: National Park, SIL Open Font License. */
.identities .name {
  font-size: clamp(24px, 1.9vw, 32px);
}
@font-face {
  font-family: "National Park";
  src: url("./type/NationalPark.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
.trial-telly, .trial-glyphica, .name.portfolio {
  font-family: "National Park", "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  letter-spacing: 0;
}
.name.exhibit {
  color: #e2d3fa;
}
.name.exhibit::after {
  transform: scaleX(1);
}
.trial-lettering { display: none; }

/* Direct controls: one action per icon, no settings panel. */
.encounter-controls{display:flex;gap:var(--control-gap);margin-right:7px}
.quiet-control:disabled{opacity:.3;cursor:default}
.quiet-control .sound-muted,.quiet-control .sound-waiting,.quiet-control .motion-play{display:none}
#sound-toggle[data-state="muted"] .sound-muted,#sound-toggle[data-state="waiting"] .sound-waiting,#sound-toggle[data-state="starting"] .sound-waiting{display:block}
#sound-toggle:not([data-state="playing"]) .sound-waves{display:none}
#motion-toggle[aria-pressed="false"] .motion-play{display:block}
#motion-toggle[aria-pressed="false"] .motion-pause{display:none}
.record-link{opacity:.5}
@media(max-width:420px){.top-controls{--control-gap:0px}.encounter-controls{margin-right:3px}.quiet-control,.connections a{width:42px}}

.record-link::after{left:auto;right:0;transform:translateY(5px)}.record-link:hover::after,.record-link:focus-visible::after{transform:translateY(0)}
