:root {
  color-scheme: dark;
  --paper: #111213;
  --ink: #d3d4d2;
  --muted: #858784;
  --string-ink: #a6aaa4;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  font-family: ui-rounded, "SF Pro Rounded", "Avenir Next", -apple-system, sans-serif;
  background: var(--paper);
  color: var(--ink);
}

* { box-sizing: border-box; }
body { margin: 0; }
main { position: relative; width: 100%; height: 100svh; overflow: hidden; touch-action: pinch-zoom; }
.string-field {
  position: absolute;
  inset: -28px -240px;
  pointer-events: none;
  user-select: none;
  opacity: 0;
  transition: opacity 500ms var(--ease-out);
  mask-image: radial-gradient(circle 36px at 0 0, #000, transparent);
}
.string-field[data-lit] { opacity: 0.52; transition-duration: 100ms; }
.string-row { display: flex; width: max-content; gap: 12px; height: 15px; align-items: center; }
.string-key {
  flex-shrink: 0;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 10px;
  line-height: 15px;
  letter-spacing: -0.2px;
  color: var(--string-ink);
}
@media (prefers-reduced-motion: reduce) {
  .string-field, .string-field[data-lit] { transition: opacity 200ms ease; }
}

/* Native emoji, with its angle independent of pointer position. */
.flashlight-cursor {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 5;
  pointer-events: none;
  user-select: none;
}
.flashlight-cursor span {
  display: block;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  font-size: 28px;
  line-height: 1;
  transform: rotate(108deg);
}
@media (hover: hover) and (pointer: fine) {
  main { cursor: none; }
  .flashlight-cursor[data-visible] { display: block; }
}

.string-field[data-lit][data-boosted] { opacity: 0.7; }
.string-key { transition: opacity 200ms var(--ease-out); }
.string-key[data-discovered] { opacity: 0; }
.light-cone {
  position: fixed;
  top: 0;
  left: 0;
  width: 84px;
  height: 80px;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(ellipse at 50% 100%, rgba(226, 231, 204, 0.09), transparent 75%);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transition: opacity 200ms var(--ease-out);
}
.light-cone[data-visible] { opacity: 0.45; }
.light-cone[data-visible][data-boosted] { opacity: 1; }
.imprints {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
}
.imprint {
  position: absolute;
  top: 0;
  left: 0;
  color: #d3d7ce;
  font-size: 12px;
  line-height: 15px;
  white-space: nowrap;
  text-shadow: 0 0 5px var(--paper);
  opacity: 0;
  transition: opacity 200ms var(--ease-out);
}
.imprint[data-pinned] { opacity: 1; }
.imprint[data-pinned]::after {
  content: "";
  display: inline-block;
  width: 3px;
  height: 3px;
  margin: 0 0 2px 6px;
  border-radius: 50%;
  background: #999f8e;
}
@media (prefers-reduced-motion: reduce) {
  .imprint, .light-cone, .string-key { transition: opacity 200ms ease; }
}
