/* "How to play" page: one long paper sheet over the desk, stat tables that scroll sideways on phones. */

.docs-screen {
  position: fixed; inset: 0; z-index: 60; overflow-y: auto; overscroll-behavior: contain;
  padding: max(24px, env(safe-area-inset-top)) 16px 32px; background: rgba(60, 38, 16, 0.55);
}
.docs-sheet { width: min(980px, 100%); margin: 0 auto; color: var(--ink); }
.docs-head { display: flex; align-items: center; gap: 10px; }
.docs-head .menu-heading { margin-right: auto; }
.menu-top-actions { display: flex; gap: 8px; }
.docs-link { font-family: var(--marker); min-width: 2.2em; padding: 3px 10px; }

.docs-body { display: flex; flex-direction: column; gap: 18px; font-size: 1.05rem; line-height: 1.4; }
.docs-body h3 { margin: 0 0 6px; font-family: var(--script); font-size: 1.8rem; color: var(--red); }
.docs-body h4 { margin: 10px 0 4px; font-size: 1.15rem; }
.docs-body p, .docs-body ul { margin: 0 0 8px; }
.docs-body ul { padding-left: 1.2em; }
.docs-body li { margin-bottom: 4px; }
.docs-body section { scroll-margin-top: 16px; }
.docs-body kbd {
  display: inline-block; min-width: 1.4em; padding: 0 5px; text-align: center; color: var(--ink);
  border: 1.5px solid var(--ink-soft); border-radius: 4px; background: var(--paper-2);
}
.docs-toc { font-size: 0.95rem; color: var(--muted); }
.docs-toc a { color: var(--ink); }

.docs-scroll { overflow-x: auto; margin: 0 -4px; padding: 0 4px; }
.docs-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; background: var(--paper-2); }
.docs-table th, .docs-table td { padding: 5px 8px; border-bottom: 1px dashed var(--ink-soft); text-align: left; vertical-align: top; }
.docs-table th { font-family: var(--marker); font-weight: 400; font-size: 0.85rem; white-space: nowrap; border-bottom: 2px solid var(--ink); }
.docs-table td:not(:last-child) { white-space: nowrap; }
.docs-costs { display: inline-block; min-width: 9em; white-space: normal; }
.docs-table td:last-child { min-width: 16em; }
.docs-table small { color: var(--muted); }
.docs-unit { width: 1.9em; height: 1.9em; margin: -0.4em 4px -0.4em -2px; vertical-align: middle; }
.docs-dot { display: inline-block; width: 0.7em; height: 0.7em; margin-right: 6px; border-radius: 50%; border: 1px solid var(--ink-soft); }
.docs-neg { color: var(--red); font-weight: 700; }

@media (max-width: 800px) {
  .docs-screen { padding: max(16px, env(safe-area-inset-top)) 8px 20px; }
  .docs-body { font-size: 1rem; }
  .docs-table { font-size: 0.85rem; }
}
