/* Лист на официальном бланке: страницы PDF картинками, надписи героя синими «чернилами» поверх. */
.official-sheet { position:fixed; inset:0; z-index:70; overflow:auto; padding:0 8px 24px; background:#050605; color:var(--text); }
.official-sheet-toolbar { position:sticky; top:0; z-index:1; display:flex; flex-wrap:wrap; align-items:center; gap:8px; max-width:860px; margin:0 auto; padding:8px 0; background:#050605; }
.official-sheet-hint { flex:1 1 220px; margin:0; color:var(--muted); font-size:15px; line-height:1.3; }
.official-sheet-toolbar button { min-height:48px; padding:6px 14px; border:1px solid #4a5541; border-radius:8px; background:#151a13; color:var(--text); font:inherit; font-size:17px; cursor:pointer; touch-action:manipulation; }
.sheet-page { position:relative; container-type:inline-size; width:min(100%,860px); aspect-ratio:481.89 / 680.32; margin:0 auto 16px; overflow:hidden; background:#fff; }
.sheet-page-art { position:absolute; inset:0; width:100%; height:100%; }
.sheet-ink, .sheet-lines, .sheet-mark, .sheet-book { position:absolute; color:#1d3a8f; font-family:"Times New Roman",Times,"Liberation Serif","Noto Serif",serif; font-style:italic; font-variant-numeric:lining-nums; }
.sheet-ink { display:flex; align-items:flex-end; overflow:hidden; line-height:1; white-space:nowrap; }
.sheet-ink.is-wrap { align-items:center; white-space:normal; line-height:1.1; overflow-wrap:anywhere; }
.sheet-ink.is-top { align-items:flex-start; }
.sheet-ink.is-bottom { align-items:flex-end; }
.sheet-ink.is-title { font-weight:700; letter-spacing:.02em; }
.sheet-lines { overflow:hidden; white-space:normal; overflow-wrap:anywhere; }
.sheet-lines.is-clamped { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:var(--rows); }
.sheet-mark { transform:translate(-50%,-50%); line-height:1; font-style:normal; font-weight:700; white-space:nowrap; }
.sheet-book { overflow:hidden; line-height:1.3; white-space:pre-line; overflow-wrap:anywhere; }
.sheet-book p { margin:0 0 .4em; color:inherit; font:inherit; }
.sheet-book-spacer { float:right; width:0; }
.sheet-book-bag { float:right; clear:right; }
html.official-sheet-open { overflow:hidden; }
@media print {
  html.official-sheet-open { overflow:visible; }
  html.official-sheet-open .print-sheet { display:none !important; }
  .official-sheet { position:static; overflow:visible; padding:0; background:none; }
  .official-sheet-toolbar { display:none; }
  .sheet-page { width:170mm; margin:0 auto; break-after:page; break-inside:avoid; }
  .sheet-page:last-child { break-after:auto; }
  .sheet-page-art, .sheet-ink, .sheet-lines, .sheet-mark, .sheet-book { -webkit-print-color-adjust:exact; print-color-adjust:exact; }
}
