/* nudisco-void-flow-v2: ALL rules are scoped to /void. */
.void-page .void-return {
  display: inline-flex; align-items: center; justify-content: center;
  padding-inline: 1ch; font-size: clamp(17px, 5.4vw, 64px);
}
.void-page .void-return-label,
.void-page .void-return-arrow { display: inline-block; }
.void-page .void-return .void-arrow-left {
  animation: void-arrow-left 2s step-end infinite !important;
}
.void-page .void-return .void-arrow-right {
  animation: void-arrow-right 2s step-end infinite !important;
}
@keyframes void-arrow-left { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(-1ch); } }
@keyframes void-arrow-right { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(1ch); } }
.void-page .void-word-field {
  position: fixed; inset: 16px 16px max(170px, 25vh); z-index: 3;
  overflow: auto; scrollbar-width: thin; outline-offset: 3px;
}
.void-page .void-word-field:focus-visible { outline: 1px dashed #00F600; }
.void-page.void-running .void-word-field { visibility: hidden; pointer-events: none; }
.void-page .void-word-block {
  box-sizing: border-box; max-width: 400px; margin: 12px auto;
  padding: 10px 12px; border: 1px solid #0F5351; color: #B3ECD8;
  background: #000000; border-radius: 0;
  font: 400 clamp(14px, 1.1vw, 16px)/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  overflow-wrap: anywhere; white-space: pre-wrap;
}
.void-page .void-word { color: inherit; text-decoration: none; border-radius: 2px; }
.void-page .void-word:hover,
.void-page .void-word:focus-visible { color: #B3ECD8; background: #0F5351; outline: 1px solid #00F600; }
.void-page .void-word:active { color: #000000; background: #00F600; outline-color: #00F600; }
.void-page.void-words-moving .void-word-field { overflow: hidden; inset: 0; }
.void-page.void-words-moving .void-word-block {
  position: absolute; margin: 0; transform-origin: center; will-change: transform, opacity;
}
.void-page.void-text-idle .void-return .void-return-arrow { animation-play-state: paused !important; }
@media (prefers-reduced-motion: reduce) {
  .void-page .void-return .void-return-arrow { animation: none !important; }
  .void-page .void-return .void-arrow-left { transform: translateX(-1ch); }
  .void-page .void-return .void-arrow-right { transform: translateX(1ch); }
}
.void-page:not(.void-words-moving) .void-word-field {
  z-index: 6; max-height: min(640px, calc(100svh - 190px));
}

/* nudisco-void-hitbox-v1
   Make moving linked words easier to catch without changing their appearance,
   scale, speed, or pause behavior. The pseudo-element belongs to the anchor,
   so its transparent overflow becomes part of the link's hit target. */
.void-page .void-word {
  position: relative;
}

.void-page .void-word::before {
  content: "";
  position: absolute;
  inset: -6px -8px;
  background: transparent;
}

/* Touch/coarse pointers get a little more forgiveness. */
@media (any-pointer: coarse) {
  .void-page .void-word::before {
    inset: -10px -12px;
  }
}

/* nudisco-void-static-red-v1: red hover for non-clickable words. */
.void-page .void-word-static {
  color: inherit;
  border-radius: 2px;
  cursor: text;
}
.void-page .void-word-static:hover {
  color: #B3ECD8;
  background: #369D69;
  outline: 1px solid #369D69;
}

/* nudisco-void-emoji-red-v1: one stable hover box for each non-linked emoji cluster. */
.void-page .void-word-emoji {
  display: inline-block;
  vertical-align: baseline;
  white-space: nowrap;
  line-height: inherit;
}

/* nudisco-void-green-word-highlights-v1: only approved Void swatches. */
.void-page .void-word:is(:hover,:focus-visible){color:#000000;background:#00F600;outline:1px solid #B3ECD8;}
.void-page .void-word-static:hover{color:#CDE67E;background:#093434;outline:1px solid #369D69;}
