/* En la nada — estilos base del lector web */

:root {
  --bg: #04060a;
  --bg-2: #070a10;
  --phosphor: #7CFFB2;
  --phosphor-dim: rgba(124, 255, 178, 0.55);
  --phosphor-faint: rgba(124, 255, 178, 0.22);
  --phosphor-ghost: rgba(124, 255, 178, 0.08);
  --glow: 8px;
  --mono: "JetBrains Mono", "IBM Plex Mono", "Fira Code", ui-monospace, Menlo, monospace;
  --serif: "Cormorant Garamond", "EB Garamond", Georgia, serif;
}

.serif {
  font-family: var(--serif);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--phosphor);
  font-family: var(--mono);
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow: hidden;
  height: 100vh;
  height: 100dvh;
  width: 100vw;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: default;
}

/* ── stage ───────────────────────────────── */
.stage {
  position: fixed;
  inset: 0;
  overflow: hidden;
  isolation: isolate;
}

/* layered canvases */
.cosmos {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* CRT / scanlines / vignette */
.crt-scan {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  background: repeating-linear-gradient(to bottom,
      rgba(255, 255, 255, 0.00) 0px,
      rgba(255, 255, 255, 0.00) 2px,
      rgba(0, 0, 0, 0.18) 3px,
      rgba(0, 0, 0, 0.18) 3px);
  mix-blend-mode: multiply;
  opacity: 0.45;
}

.crt-vignette {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 35%, rgba(0, 0, 0, 0.55) 92%, rgba(0, 0, 0, 0.85) 100%);
}

.crt-noise {
  position: absolute;
  inset: 0;
  z-index: 7;
  pointer-events: none;
  opacity: 0.06;
  mix-blend-mode: screen;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.49 0 0 0 0 1 0 0 0 0 0.7 0 0 0 0.45 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.flicker {
  animation: flicker 18s infinite steps(1);
}

@keyframes flicker {

  0%,
  100% {
    opacity: 1;
  }

  16% {
    opacity: 1;
  }

  16.4% {
    opacity: 0.96;
  }

  16.8% {
    opacity: 1;
  }

  67% {
    opacity: 1;
  }

  67.25% {
    opacity: 0.94;
  }

  67.6% {
    opacity: 1;
  }
}

/* ── content layer ───────────────────────── */
.content {
  position: relative;
  z-index: 10;
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.glow-text {
  text-shadow:
    0 0 calc(var(--glow) * 0.4) var(--phosphor-dim),
    0 0 calc(var(--glow) * 1.0) var(--phosphor-faint);
}

/* chrome (top + bottom bars) */
.chrome {
  position: absolute;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 28px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--phosphor-dim);
  z-index: 11;
  pointer-events: none;
}

.chrome.top {
  top: 0;
}

.chrome.bot {
  bottom: 0;
}

.chrome>* {
  pointer-events: auto;
}

.chrome .dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--phosphor);
  margin-right: 8px;
  box-shadow: 0 0 6px var(--phosphor);
  animation: blink 2s infinite;
}

.chrome-brand {
  display: inline-flex;
  align-items: center;
  cursor: default;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: border-color .2s, color .2s;
}

.chrome-brand:hover {
  border-bottom-color: var(--phosphor-dim);
}

.chrome-brand:hover .glow-text {
  text-shadow:
    0 0 calc(var(--glow) * 0.6) var(--phosphor),
    0 0 calc(var(--glow) * 1.4) var(--phosphor-dim);
}

@keyframes blink {
  50% {
    opacity: 0.25;
  }
}

.btn-link {
  cursor: default;
  letter-spacing: 0.1em;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: color .2s, border-color .2s;
  color: var(--phosphor-dim);
}

.btn-link:hover {
  color: var(--phosphor);
  border-bottom-color: var(--phosphor-dim);
}

/* ── boot screen ─────────────────────────── */
.boot {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  height: 100%;
  padding: 0 8vw;
  gap: 6px;
}

.boot-line {
  font-size: 13px;
  opacity: 0;
  animation: bootIn .6s forwards;
}

.boot-line.dim {
  color: var(--phosphor-dim);
}

@keyframes bootIn {
  from {
    opacity: 0;
    filter: blur(6px);
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

.cursor::after {
  content: "▮";
  display: inline-block;
  margin-left: 4px;
  animation: cursorBlink 1.05s steps(1) infinite;
}

@keyframes cursorBlink {
  50% {
    opacity: 0;
  }
}

/* ── index screen ────────────────────────── */
.idx {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 96px 8vw 80px;
  overflow-y: auto;
}

.idx-header {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-bottom: 80px;
  max-width: 900px;
  opacity: 0;
  animation: bootIn 1.2s forwards .15s;
}

.idx-eyebrow {
  font-family: var(--mono);
  font-size: 15px;
  letter-spacing: 0.28em;
  color: var(--phosphor-dim);
  text-transform: uppercase;
}

.idx-eyebrow-prompt {
  color: var(--phosphor);
  margin-right: 4px;
}

.idx-eyebrow-sep {
  color: var(--phosphor-faint);
}

.idx-title {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(56px, 9vw, 108px);
  letter-spacing: -0.01em;
  line-height: 0.98;
  margin: 0;
}

.idx-blurb {
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-width: 660px;
}

.idx-blurb p {
  margin: 0;
}

.idx-blurb-lead {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.005em;
  color: var(--phosphor);
}

.idx-blurb-body {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.55;
  color: var(--phosphor);
  opacity: 0.78;
  max-width: 580px;
}

.idx-blurb-cta {
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--phosphor-dim);
  display: flex;
  align-items: center;
  gap: 14px;
}

.idx-cta-mark {
  color: var(--phosphor-faint);
  font-size: 14px;
  line-height: 1;
}

.idx-section {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 48px;
  padding: 36px 0;
  border-top: 1px solid var(--phosphor-ghost);
}

.idx-section:last-of-type {
  border-bottom: 1px solid var(--phosphor-ghost);
}

.idx-sec-meta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: sticky;
  top: 80px;
  align-self: start;
}

.idx-sec-num {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.28em;
  color: var(--phosphor-dim);
  text-transform: uppercase;
}

.idx-sec-name {
  font-family: var(--serif);
  font-style: italic;
  font-size: 32px;
  letter-spacing: 0;
  line-height: 1.05;
}

.idx-sec-desc {
  color: var(--phosphor-dim);
  font-size: 14px;
  line-height: 1.6;
  max-width: 240px;
}

.idx-poem-list {
  display: flex;
  flex-direction: column;
}

.idx-poem {
  display: grid;
  grid-template-columns: 44px 1fr auto 24px;
  align-items: baseline;
  gap: 24px;
  padding: 18px 4px;
  border-bottom: 1px dashed var(--phosphor-ghost);
  cursor: default;
  transition: background .2s, padding .2s, border-color .2s;
}

.idx-poem:hover {
  background: rgba(124, 255, 178, 0.07);
  padding-left: 16px;
  padding-right: 16px;
  border-bottom-color: var(--phosphor-dim);
}

.idx-poem:hover .idx-poem-arrow {
  color: var(--phosphor);
  transform: translateX(6px);
}

.idx-poem:hover .idx-poem-title {
  text-shadow:
    0 0 calc(var(--glow) * 0.6) var(--phosphor),
    0 0 calc(var(--glow) * 1.4) var(--phosphor-dim);
}

.idx-poem.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.idx-poem.disabled:hover {
  background: transparent;
  padding-left: 4px;
  padding-right: 4px;
  border-bottom-color: var(--phosphor-ghost);
}

.idx-poem.disabled:hover .idx-poem-arrow {
  transform: none;
  color: var(--phosphor-dim);
}

.idx-poem.read .idx-poem-num::after {
  content: " ●";
  color: var(--phosphor);
  font-size: 9px;
  vertical-align: middle;
}

.idx-poem-num {
  font-family: var(--mono);
  color: var(--phosphor-dim);
  font-size: 13px;
  letter-spacing: 0.05em;
}

.idx-poem-title {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  letter-spacing: 0;
  line-height: 1.2;
  transition: text-shadow .2s;
}

.idx-poem-status {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--phosphor-dim);
  text-align: right;
}

.idx-poem-arrow {
  color: var(--phosphor-dim);
  text-align: right;
  font-size: 18px;
  transition: transform .2s, color .2s;
}

.idx-footer {
  margin-top: 80px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding-bottom: 24px;
}

.idx-footer-line {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--phosphor-dim);
}

.idx-footer-mark {
  color: var(--phosphor-faint);
}

.idx-footer-author {
  font-family: var(--serif);
  font-style: italic;
  font-size: 13px;
  color: var(--phosphor);
  opacity: 0.45;
  letter-spacing: 0.04em;
  transition: opacity .25s;
}
.idx-footer-author:hover {
  opacity: 0.85;
}
.idx-footer-author-name {
  color: var(--phosphor);
}
.idx-footer-author-mail {
  color: var(--phosphor);
  border-bottom: 1px dotted transparent;
  transition: border-color .25s, color .25s;
}
.idx-footer-author-mail:hover {
  border-bottom-color: var(--phosphor-dim);
}

/* ── reader screen ───────────────────────── */
.reader {
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  text-align: center;
  overflow: hidden;
}

.reader>* {
  text-align: initial;
}

.reader-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 32px 6vw 60px;
  text-align: center;
}

.reader-scroll>* {
  text-align: initial;
}

.reader-head {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  padding: 70px 6vw 22px;
  text-align: center;
  background: rgba(4, 6, 10, 0.7);
  border-bottom: 1px solid var(--phosphor-ghost);
  opacity: 0;
  animation: bootIn 1.4s forwards .3s;
}

.reader-back {
  align-self: flex-start;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--phosphor-dim);
}

.reader-eyebrow {
  font-family: var(--mono);
  font-size: 15px;
  letter-spacing: 0.34em;
  color: var(--phosphor);
  opacity: 0.85;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-shadow:
    0 0 6px var(--phosphor-faint),
    0 0 12px var(--phosphor-ghost);
  padding: 6px 14px;
  border: 1px solid var(--phosphor-ghost);
  border-radius: 2px;
  background: rgba(7, 10, 16, 0.45);
}

.reader-eyebrow-num {
  color: var(--phosphor);
  font-weight: 500;
}

.reader-eyebrow-sep {
  color: var(--phosphor-faint);
}

.reader-title {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(36px, 5.2vw, 64px);
  letter-spacing: -0.005em;
  line-height: 1;
  margin: 0;
  transition: font-size .3s ease;
}

.reader-body {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  line-height: 1.4;
  color: var(--phosphor);
  opacity: 0.7;
  max-width: 560px;
  margin-top: -2px;
}

.reader-rule {
  width: 72px;
  height: 1px;
  background: var(--phosphor-dim);
  margin-top: 8px;
}

.poem {
  display: inline-block;
  text-align: left;
  white-space: pre;
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: 0.005em;
  tab-size: 4;
  -moz-tab-size: 4;
  max-width: 100%;
  font-variant-ligatures: none;
  flex-shrink: 0;
}

.poem .verse {
  display: block;
  opacity: 0;
  filter: blur(14px);
  transform: translateY(6px);
  transition:
    opacity 1.6s ease-out,
    filter 1.6s ease-out,
    transform 1.6s ease-out;
  min-height: 1.85em;
}

.poem .verse.in {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

.poem .verse.empty {
  min-height: 1.85em;
  margin: 0.55em 0;
}

.poem-end {
  display: none;
  margin: 56px auto 0;
  opacity: 0;
  transition: opacity 2s 1s;
  justify-content: center;
  align-items: center;
  color: var(--phosphor-dim);
}

.poem-end.in {
  display: flex;
  opacity: 1;
}

.poem-end .pe-rule {
  width: 80px;
  height: 1px;
  background: var(--phosphor-dim);
}

.poem-end .pe-lead {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(28px, 3.4vw, 38px);
  line-height: 1;
  letter-spacing: -0.005em;
  color: var(--phosphor);
}

.poem-end .pe-body {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--phosphor-dim);
}

.poem-end .pe-mark {
  color: var(--phosphor-faint);
}

.poem-end .pe-actions {
  display: flex;
  gap: 28px;
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.empty-poem {
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--phosphor-dim);
  margin-top: 72px;
  text-align: center;
}

/* ── ficha como cajón lateral ─────────────── */
.ficha-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  right: 0;
  width: 380px;
  max-width: 88vw;
  z-index: 50;
  background: rgba(7, 10, 16, 0.92);
  border-left: 1px solid var(--phosphor-faint);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.2, .7, .2, 1);
  padding: 60px 32px 32px;
  overflow-y: auto;
  font-size: 13px;
  line-height: 1.7;
}

.ficha-drawer.show {
  transform: translateX(0);
}

.ficha-drawer .close-x {
  position: absolute;
  top: 20px;
  right: 22px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--phosphor-dim);
  cursor: default;
}

.ficha-drawer .close-x:hover {
  color: var(--phosphor);
}

.ficha-head {
  margin-bottom: 28px;
}

.ficha-eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--phosphor-dim);
  text-transform: uppercase;
  margin-bottom: 14px;
}

.ficha-eyebrow-prompt {
  color: var(--phosphor);
  margin-right: 4px;
}

.ficha-title {
  font-family: var(--serif);
  font-style: italic;
  font-size: 36px;
  font-weight: 400;
  letter-spacing: -0.005em;
  line-height: 1.05;
  margin: 0 0 12px 0;
}

.ficha-body {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: lowercase;
  color: var(--phosphor-dim);
  line-height: 1.5;
  margin-bottom: 20px;
}

.ficha-rule {
  width: 60px;
  height: 1px;
  background: var(--phosphor-dim);
}


.ficha-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 14px;
  padding: 6px 0;
  border-bottom: 1px dashed var(--phosphor-ghost);
}

.ficha-row:last-child {
  border-bottom: 0;
}

.ficha-key {
  color: var(--phosphor-dim);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  align-self: center;
}

.ficha-val {
  color: var(--phosphor);
  font-size: 14px;
}

.ficha-tag {
  display: inline-block;
  padding: 3px 10px;
  margin: 0 6px 6px 0;
  border: 1px solid var(--phosphor-faint);
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--phosphor-dim);
  transition: border-color .2s, color .2s;
}

.ficha-tag:hover {
  border-color: var(--phosphor-dim);
  color: var(--phosphor);
}

.ficha-close {
  margin-top: 24px;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--phosphor-dim);
  text-align: center;
}

.ficha-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--phosphor-ghost);
}

.ficha-actions button {
  text-align: left;
  cursor: default;
  padding: 10px 12px;
  border: 1px solid var(--phosphor-faint);
  background: transparent;
  color: var(--phosphor);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: background .2s, border-color .2s;
}

.ficha-actions button:hover {
  background: rgba(124, 255, 178, 0.06);
  border-color: var(--phosphor-dim);
}

/* índice — marcador de leído */
.idx-poem.read .idx-poem-title::after {
  content: " ●";
  color: var(--phosphor);
  font-size: 10px;
}

/* ── mapa estelar ──────────────────────────── */
.cnst {
  position: relative;
  flex: 1;
  display: flex;
  width: 100%;
  height: 100%;
  min-height: 0;
}

.cnst-aside {
  width: 240px;
  flex-shrink: 0;
  border-right: 1px solid var(--phosphor-ghost);
  padding: 28px 18px 18px;
  overflow-y: auto;
  background: rgba(7, 10, 16, 0.45);
  display: flex;
  flex-direction: column;
}

.cnst-aside-title {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.32em;
  color: var(--phosphor-faint);
  text-transform: uppercase;
  margin-bottom: 16px;
  padding: 0 6px;
}

.cnst-aside-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cnst-aside-item {
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}

.cnst-aside-item:hover {
  background: var(--phosphor-ghost);
  border-color: var(--phosphor-faint);
}

.cnst-aside-item.active {
  background: var(--phosphor-ghost);
  border-color: var(--phosphor-dim);
}

.cnst-aside-name {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--phosphor);
  display: flex;
  gap: 10px;
  margin-bottom: 4px;
}

.cnst-aside-num {
  color: var(--phosphor-faint);
}

.cnst-aside-meta {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--phosphor-dim);
}

.cnst-aside-clear {
  margin-top: 14px;
  padding: 10px 12px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--phosphor-dim);
  cursor: pointer;
  border-top: 1px dashed var(--phosphor-ghost);
}

.cnst-aside-clear:hover {
  color: var(--phosphor);
}

.cnst-canvas {
  flex: 1;
  position: relative;
  min-width: 0;
}

.cnst-svg {
  display: block;
  width: 100%;
  height: 100%;
}

.cnst-tooltip {
  position: absolute;
  transform: translate(-50%, calc(-100% - 14px));
  pointer-events: none;
  padding: 10px 14px;
  background: rgba(7, 10, 16, 0.94);
  border: 1px solid var(--phosphor-faint);
  border-radius: 2px;
  min-width: 180px;
  max-width: 280px;
  z-index: 5;
  white-space: nowrap;
}

.cnst-tt-title {
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  color: var(--phosphor);
  margin-bottom: 6px;
}

.cnst-tt-meta {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--phosphor-dim);
  margin-bottom: 6px;
  white-space: normal;
}

.cnst-tt-state {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--phosphor-faint);
}

.cnst-legend {
  position: absolute;
  bottom: 20px;
  right: 20px;
  padding: 12px 14px;
  background: rgba(7, 10, 16, 0.7);
  border: 1px solid var(--phosphor-ghost);
  border-radius: 2px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--phosphor-dim);
  pointer-events: none;
}

.cnst-legend-title {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--phosphor-faint);
  margin-bottom: 8px;
}

.cnst-legend-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.cnst-legend-row:last-child {
  margin-bottom: 0;
}

.lg-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
}

.lg-dot.full {
  background: var(--phosphor);
  box-shadow: 0 0 6px var(--phosphor-dim);
}

.lg-dot.ring {
  background: var(--phosphor);
}

.lg-dot.ring::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--phosphor);
  opacity: 0.75;
}

.lg-dot.dim {
  background: var(--phosphor-faint);
}

@media (max-width: 768px) {
  .cnst {
    flex-direction: column;
  }

  .cnst-aside {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--phosphor-ghost);
    max-height: 180px;
    padding: 14px;
  }

  .cnst-aside-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
  }

  .cnst-aside-item {
    flex: 1 1 140px;
  }

  .cnst-legend {
    bottom: 12px;
    right: 12px;
  }
}

/* ── modo paginado por estrofa ────────────── */
.poem.paginated .verse {
  display: block;
}

.poem.paginated .stanza-hidden {
  display: none;
}

.pager {
  margin-top: 56px;
  display: flex;
  gap: 40px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--phosphor-dim);
  align-items: center;
  justify-content: center;
  text-align: center;
}

.pager-btn {
  min-width: 130px;
}

.pager-progress {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
}

.pager-dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  max-width: 280px;
}

.pager-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--phosphor-ghost);
  transition: background .3s, box-shadow .3s, transform .3s;
}

.pager-dot.on {
  background: var(--phosphor);
  box-shadow: 0 0 6px var(--phosphor-dim);
}

.pager-dot.current {
  transform: scale(1.5);
  box-shadow: 0 0 10px var(--phosphor);
}

.pager-count {
  color: var(--phosphor-dim);
  letter-spacing: 0.32em;
  font-size: 11px;
}

/* ── cheatsheet de atajos ─────────────────── */
.cheats {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 40;
  padding: 28px 36px;
  border: 1px solid var(--phosphor-faint);
  background: rgba(7, 10, 16, 0.95);
  font-size: 12px;
  line-height: 1.9;
  letter-spacing: 0.04em;
  color: var(--phosphor-dim);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
  min-width: 280px;
}

.cheats.show {
  opacity: 1;
  pointer-events: auto;
}

.cheats h4 {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  font-weight: 400;
  color: var(--phosphor);
  margin: 0 0 14px 0;
}

.cheats kbd {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10px;
  border: 1px solid var(--phosphor-faint);
  border-radius: 3px;
  padding: 2px 6px;
  margin-right: 8px;
  color: var(--phosphor);
  min-width: 28px;
  text-align: center;
}

/* botón de ayuda */
.help-btn {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 12;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--phosphor-faint);
  cursor: default;
  padding: 4px 10px;
  border-radius: 99px;
  border: 1px solid transparent;
}

.help-btn:hover {
  color: var(--phosphor);
  border-color: var(--phosphor-ghost);
}

/* ── audio button ─────────────────────────── */
.audio-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: default;
}

.audio-btn .bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
}

.audio-btn .bar {
  width: 2px;
  background: var(--phosphor);
  box-shadow: 0 0 4px var(--phosphor-faint);
}

.audio-btn.on .bar {
  animation: bar 1.2s infinite ease-in-out;
}

.audio-btn .bar:nth-child(1) {
  animation-delay: 0s;
  height: 4px;
}

.audio-btn .bar:nth-child(2) {
  animation-delay: .15s;
  height: 8px;
}

.audio-btn .bar:nth-child(3) {
  animation-delay: .3s;
  height: 6px;
}

.audio-btn .bar:nth-child(4) {
  animation-delay: .45s;
  height: 10px;
}

@keyframes bar {

  0%,
  100% {
    height: 4px;
  }

  50% {
    height: 12px;
  }
}

/* scrollbars */
.idx::-webkit-scrollbar,
.reader::-webkit-scrollbar {
  width: 6px;
}

.idx::-webkit-scrollbar-thumb,
.reader::-webkit-scrollbar-thumb {
  background: var(--phosphor-ghost);
}

/* responsive */
@media (max-width: 720px) {
  .idx {
    padding: 80px 6vw 60px;
  }

  .idx-header {
    margin-bottom: 56px;
    gap: 16px;
  }

  .idx-blurb {
    gap: 16px;
  }

  .idx-blurb-body {
    font-size: 18px;
    line-height: 1.5;
  }

  .idx-blurb-cta {
    font-size: 11px;
    letter-spacing: 0.24em;
  }

  .idx-section {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 28px 0;
  }

  .idx-sec-meta {
    position: static;
  }

  .idx-sec-name {
    font-size: 26px;
  }

  .idx-poem {
    grid-template-columns: 36px 1fr auto 20px;
    gap: 14px;
    padding: 16px 4px;
  }

  .idx-poem-title {
    font-size: 19px;
  }

  .idx-poem-status {
    font-size: 10px;
    letter-spacing: 0.18em;
  }

  .reader-head {
    padding: 72px 5vw 18px;
    gap: 16px;
  }

  .reader-scroll {
    padding: 24px 5vw 60px;
  }

  .poem {
    font-size: 16px;
  }

  .reader-title {
    font-size: clamp(28px, 9vw, 44px);
  }

  .chrome {
    padding: 12px 14px;
    font-size: 11px;
    letter-spacing: 0.08em;
  }

  /* Compactar chrome top en móvil */
  .chrome-brand-text { display: none; }
  .chrome-nav { display: flex; gap: 14px; }
  .lbl-long { display: none; }
  .lbl-short { display: inline; }
  .chrome-ficha { display: none; }

  /* Bot chrome: ocultar label redundante */
  .chrome-bot-label { display: none; }

  /* Sin atajos en móvil (no hay teclado físico) */
  .help-btn { display: none !important; }
}

/* Default desktop: chrome-nav gap + short label oculto */
.chrome-nav {
  display: flex;
  gap: 24px;
}
.lbl-short { display: none; }