:root { color-scheme: dark; }
* { box-sizing: border-box; }
html, body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #050505;
}
body {
  font-family: Helvetica, Arial, sans-serif;
  color: #c8c4bc;
}
.stage {
  position: fixed;
  inset: 0;
  isolation: isolate;
  background: #050505;
}
canvas {
  display: block;
  width: 100%;
  height: 100%;
  outline: 0;
  cursor: crosshair;
  touch-action: none;
}
.label,
.telemetry,
.hint {
  position: fixed;
  z-index: 2;
  pointer-events: none;
  text-transform: uppercase;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.label {
  left: 28px;
  top: 26px;
  color: #9a958c66;
  font-size: 9px;
  line-height: 1.4;
  letter-spacing: 0.16em;
}
.label b {
  color: #d2cdc3b8;
  font-weight: 400;
}
.telemetry {
  left: 28px;
  bottom: 26px;
  color: #8a857c66;
  font-size: 8px;
  line-height: 1.45;
  letter-spacing: 0.1em;
}
.hint {
  right: 28px;
  bottom: 26px;
  color: #b0aaa066;
  font-size: 8px;
  line-height: 1.55;
  letter-spacing: 0.12em;
  text-align: right;
}
.fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 30px;
  color: #9a958c88;
  font: 10px ui-monospace, monospace;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
}
.fallback[hidden] { display: none; }

.open {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  background: #050505;
  padding: 6vh 6vw;
}
.open[hidden] { display: none; }
.open img {
  display: block;
  max-width: min(1280px, 92vw);
  max-height: 78vh;
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 0 0 1px #ffffff10;
}
.open-meta {
  position: absolute;
  left: 28px;
  bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  pointer-events: none;
}
.open-meta #openTitle {
  color: #e8e2d8cc;
  font-size: 11px;
}
.open-meta #openRole {
  color: #9a958c77;
  font-size: 9px;
}
.open-close {
  position: absolute;
  right: 28px;
  top: 26px;
  appearance: none;
  border: 0;
  background: transparent;
  color: #b0aaa099;
  font: 9px ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 8px 0;
}
.open-close:hover,
.open-close:focus-visible {
  color: #e8e2d8cc;
  outline: none;
}

.sr-works {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (max-width: 700px) {
  .label { left: 16px; top: 16px; }
  .telemetry { left: 16px; bottom: 16px; max-width: 70vw; }
  .hint { right: 16px; bottom: 16px; }
  .open-meta { left: 16px; bottom: 16px; }
  .open-close { right: 16px; top: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .hint { opacity: 0.45; }
  .open img {
    transition: none;
  }
}
