/* Content pages (lib/seo.js): rules, answers per letter, 404. Same look as the game. */
.seo { max-width: 760px; margin: 0 auto; padding: calc(18px + var(--safe-t)) 16px calc(40px + var(--safe-b)); display: flex; flex-direction: column; gap: 14px; }
.seo h1 { font-family: var(--display); font-weight: 400; color: var(--gold-2); margin: 0; font-size: 2rem; line-height: 1.4; }
.seo h2 { font-family: var(--display); font-weight: 400; color: var(--lapis); margin: 0 0 6px; font-size: 1.3rem; }
.seo .card:not(.paper) h2, .seo .seo-h2 { color: var(--gold-2); }
.seo h3 { margin: 12px 0 4px; font-size: 1rem; }
.seo p, .seo li { margin: 0 0 6px; line-height: 1.95; }
.seo ul, .seo ol { padding-inline-start: 20px; margin: 4px 0; }
.seo a:not(.btn) { color: var(--turq-2); }
.seo .card.paper a:not(.btn) { color: var(--lapis-2); }
.seo-lead { color: rgba(255, 255, 255, .82); }
.seo-nav { display: flex; gap: 8px; flex-wrap: wrap; }
.seo-cat p { font-size: 1.02rem; }
.seo-more { color: var(--ink-2); font-size: .85rem; }
.seo-tip { color: rgba(255, 255, 255, .8); }
.seo-pn { display: flex; justify-content: space-between; gap: 8px; margin-top: 8px; }
.seo-letters { display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 8px; }
.seo-letters a, .seo-letters span { display: grid; place-items: center; height: 48px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, .05); color: #fff; text-decoration: none; font-family: var(--display); font-size: 1.35rem; }
.seo-letters span.on { background: linear-gradient(180deg, #ffd166, var(--saffron)); color: #2a1700; border: 0; }
.seo-cta { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; }
.seo-cta b { font-size: 1.15rem; color: var(--gold-2); }
.seo-foot { text-align: center; color: rgba(255, 255, 255, .6); font-size: .85rem; }
.seo-foot a { color: rgba(255, 255, 255, .75); }
.seo-all { display: inline-block; margin-top: 4px; font-size: .9rem; font-weight: 700; }
.seo-crumbs { font-size: .85rem; color: rgba(255, 255, 255, .6); }
.seo-words { list-style: none; padding: 0; margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.seo-words li { margin: 0; padding: 2px 12px; border-radius: 999px; background: rgba(12, 24, 56, .07); border: 1px solid rgba(12, 24, 56, .12); line-height: 1.9; }
.seo-words.small li { font-size: .92rem; padding: 0 10px; }
.seo-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.seo-chips a { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, .05); color: #fff !important; text-decoration: none; font-size: .92rem; }
.seo-tools { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; margin-bottom: 8px; }
.seo label { display: inline-flex; align-items: center; gap: 6px; }
.seo select.field, .seo input.field { width: auto; min-width: 0; flex: 1; }

/* printable sheet */
.sheet-opts { display: flex; flex-direction: column; gap: 12px; }
.sheet-cats { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.sheet-cats label { font-size: .95rem; cursor: pointer; }
.sheet-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.sheet-row label { flex: 1; min-width: 150px; }
.psheet { background: #fff; color: #111; border-radius: 16px; padding: 14px; overflow-x: auto; }
.psheet-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; font-size: .9rem; }
.psheet-head b { font-family: var(--display); font-weight: 400; font-size: 1.3rem; color: #0c1838; }
.psheet-head i { font-style: normal; }
.sheet-table { width: 100%; border-collapse: collapse; table-layout: fixed; min-width: 560px; }
.sheet-table th, .sheet-table td { border: 1.5px solid #333; height: 36px; padding: 2px 4px; text-align: center; font-size: .85rem; }
.sheet-table th { background: #f2efe6; font-weight: 700; }
.sheet-table th:first-child, .sheet-table th:last-child { width: 52px; }
.psheet-foot { margin-top: 8px; text-align: center; font-size: .75rem; color: #555; }

/* random letter */
.seo [hidden] { display: none !important; }
.rl { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.rl-letter { width: 160px; height: 160px; border-radius: 40px; display: grid; place-items: center; font-family: var(--display); font-size: 5rem; line-height: 1;
  background: linear-gradient(180deg, #ffd166, var(--saffron)); color: #2a1700; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.rl-letter.spinning { transform: scale(.94); transition: transform .1s; }
.rl-time { direction: ltr; min-height: 1.6em; font-size: 1.6rem; font-weight: 700; color: var(--gold-2); }
.rl-timers { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.rl-timers .on { background: rgba(255, 209, 102, .2); border-color: var(--gold-2); }
.rl-used { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.rl-used span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: rgba(255, 255, 255, .08); font-family: var(--display); }

/* answer checker */
.chk-form { display: flex; flex-direction: column; gap: 12px; }
.chk-form label { display: flex; }
.chk-result p:first-child { font-size: 1.05rem; font-weight: 700; }
.chk-ok { color: #1d7a4c; }
.chk-no { color: #b3261e; }
.chk-maybe { color: #8a5a00; }

/* hard letters */
.hard-note { color: var(--ink-2); }
.hard-list { list-style: none; padding: 0; }
.hard-list li { margin: 0 0 4px; }

@media print {
  @page { size: A4 landscape; margin: 10mm; }
  html, body { background: #fff !important; min-height: 0; }
  body::before, body::after { display: none !important; }
  .no-print, .seo > section:not(.psheet) { display: none !important; }
  .seo { display: block; max-width: none; padding: 0; margin: 0; }
  .psheet { width: 100%; padding: 0; border-radius: 0; overflow: visible; }
  .sheet-table { min-width: 0; }
  .sheet-table th, .sheet-table td { height: 11mm; border-color: #000; }
  .sheet-table.wide th, .sheet-table.wide td, .wide .sheet-table th { font-size: .7rem; }
}
.seo-cat h3 { font-size: 1rem; margin: 14px 0 2px; }
.seo-cat h3 small { font-weight: 400; opacity: .6; }
