/* Verse projection: high contrast, generous type, no study-panel distractions. */
.vp-launch {
  position: sticky;
  top: 12px;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  width: fit-content;
  max-width: 100%;
  margin: 0 0 16px auto;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  box-shadow: 0 2px 8px #33291d0a;
}
.vp-launch-btn { display: inline-flex; align-items: center; gap: 7px; }
.vp-launch-hint { color: var(--ink-2); font: 12px/1.4 var(--sans); }

.vp-dialog {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  max-width: none;
  max-height: none;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0;
  background: #fffdf8;
  color: #24211c;
  font-family: var(--sans);
  overflow: hidden;
}
.vp-dialog[open] { display: grid; grid-template-rows: minmax(0, 1fr) auto; }
.vp-dialog::backdrop { background: #fffdf8; }
.vp-dialog button {
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid #d4cbbb;
  border-radius: 8px;
  background: #fffdf8;
  color: #393226;
  font: 15px/1.2 var(--sans);
  cursor: pointer;
}
.vp-dialog button:hover:not(:disabled) { background: #f3ecdf; border-color: #b4832a; }
.vp-dialog button:focus-visible, .vp-display:focus-visible {
  outline: 3px solid #88631f;
  outline-offset: 3px;
}
.vp-dialog button:disabled { opacity: .4; cursor: default; }
.vp-dialog .vp-close {
  position: absolute;
  top: max(14px, env(safe-area-inset-top));
  right: max(18px, env(safe-area-inset-right));
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fffdf8ee;
}
.vp-close > span:first-child { font-size: 24px; line-height: 1; }
.vp-display {
  min-height: 0;
  min-width: 0;
  display: flex;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 82px clamp(24px, 6vw, 100px) 28px;
  box-sizing: border-box;
}
.vp-sheet { width: 100%; max-width: 1280px; min-width: 0; margin: auto; }
.vp-reference {
  margin: 0 0 28px;
  color: #79623d;
  text-align: center;
  font-size: clamp(22px, 2.1vw, 32px);
  line-height: 1.4;
}
.vp-texts { display: grid; min-width: 0; gap: 28px; }
.vp-texts.vp-parallel { grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); }
.vp-texts > p {
  min-width: 0;
  margin: 0;
  font: var(--vp-font-size, 48px)/1.55 var(--serif);
  letter-spacing: .02em;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.vp-texts > p[lang="en"] {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.45;
  letter-spacing: 0;
  hyphens: auto;
}
.vp-texts > p[hidden] { display: none; }
.vp-version { margin: 26px 0 0; color: #70675a; text-align: center; font-size: 15px; line-height: 1.4; }
.vp-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 24px;
  padding: 12px 20px max(14px, env(safe-area-inset-bottom));
  border-top: 1px solid #e6dcc3;
  transition: opacity .2s;
}
.vp-navigation, .vp-size { display: flex; gap: 8px; align-items: center; }
.vp-keys { font-size: 12px; color: #756a5b; }
.vp-controls-hidden .vp-controls { opacity: 0; pointer-events: none; }
@media (max-width: 800px) {
  .vp-texts.vp-parallel { grid-template-columns: 1fr; gap: 24px; }
  .vp-display { padding: 76px 24px 20px; }
  .vp-reference { margin-bottom: 20px; }
  .vp-version { margin-top: 20px; }
  .vp-keys { display: none; }
  .vp-controls { gap: 8px 12px; padding: 10px 12px max(12px, env(safe-area-inset-bottom)); }
  .vp-dialog button { padding: 8px 10px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { .vp-controls { transition: none; } }
