:root:is([data-vibe="fantasy"], [data-vibe="water"]) {
  /* Display typefaces need whole words for kerning and joins. */
  & .matrix-run > .text-source {
    position: static !important;
    width: auto;
    height: auto;
    clip-path: none;
    white-space: inherit;
  }
  & .matrix-run > [aria-hidden="true"] { display: none; }
  & .mast { width: var(--circuit-width, 100%); padding-inline: 0; }
  & .reel::before { animation: none; opacity: 1; }
  & :is(.housing, .viewer-window)::after { background: none; }
  & .utilities button { font-size: .85rem; }
}

.theme-options #vibe-change {
  display: inline-grid;
  place-items: center;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
}

.theme-options .vibe-label {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  padding: .26rem .56rem;
  border: 1px solid var(--line);
  background: var(--black);
  color: var(--muted);
  white-space: nowrap;
}

.vibe-label::before {
  content: "";
  width: .52em;
  height: .52em;
  border: 1px solid currentColor;
  box-shadow: 2px -2px 0 -1px var(--black), 2px -2px 0 currentColor;
  transform: rotate(-24deg);
}

#vibe-change:is(:hover, :focus-visible) .vibe-label {
  color: var(--green);
  border-color: currentColor;
}

.entrance-stage {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  overflow: hidden;
  contain: strict;
  pointer-events: none;
  view-transition-name: vibe-stage;
}
:root[data-entrance] { overflow-anchor: none; }
:root[data-entrance] :is(.robot-pointer, .wand-glint, .wire-sparks) { visibility: hidden; }
:root[data-entrance]::view-transition-group(root),
:root[data-entrance]::view-transition-group(vibe-stage) {
  animation-duration: var(--entrance-duration);
}
:root[data-entrance]::view-transition-group(vibe-stage) { z-index: 2; }
:root[data-entrance]::view-transition-old(root),
:root[data-entrance]::view-transition-new(root) {
  animation: none;
  mix-blend-mode: normal;
  height: 100%;
}
:root[data-entrance]::view-transition-new(vibe-stage) {
  animation: entrance-stage-clock var(--entrance-duration) linear both;
  mix-blend-mode: normal;
}
/* Keep the live artwork composited above the two page snapshots for the full cue. */
@keyframes entrance-stage-clock { from, to { opacity: 1; } }

@media (max-width: 365px) {
  .theme-options { gap: .3rem; }
  .theme-options label { min-width: 45px; }
  .theme-options label > span { min-width: 44px; padding-inline: .35rem; }
}
