/* Letter Rush — "Tile & paper" visual system.
   Paper background, ink text, hairline rules, one muted green accent, a muted red only for rejections.
   Cream letter tiles are the only "physical" element. System fonts only: serif headlines,
   monospace numbers, sans UI text. */
:root {
  --paper: #f7f4ec;
  --paper-2: #efeadd;
  --ink: #1b1b1b;
  --muted: #5f594d;
  --rule: #d9d3c4;
  --rule-strong: #b8b09d;
  --edge: #8c846f;
  --accent: #2f5d50;
  --accent-ink: #ffffff;
  --accent-soft: #e2e9e3;
  --bad: #9b3b32;
  --gold: #86620e;
  --tile: #efe4c8;
  --tile-edge: #c4b186;
  --tile-ink: #1b1b1b;
  --serif: ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --r: 6px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #1c1b19; --paper-2: #24231f; --ink: #ece6d6; --muted: #aaa293; --rule: #3a3832; --rule-strong: #5a5649; --edge: #7a7363;
    --accent: #7aa898; --accent-ink: #12201b; --accent-soft: #26332e; --bad: #e39184; --gold: #d8b15a;
    --tile: #d9cdaf; --tile-edge: #9a8c6c; --tile-ink: #1b1b1b;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #1c1b19; --paper-2: #24231f; --ink: #ece6d6; --muted: #aaa293; --rule: #3a3832; --rule-strong: #5a5649; --edge: #7a7363;
  --accent: #7aa898; --accent-ink: #12201b; --accent-soft: #26332e; --bad: #e39184; --gold: #d8b15a;
  --tile: #d9cdaf; --tile-edge: #9a8c6c; --tile-ink: #1b1b1b;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; padding: 0; overflow-x: clip; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}
button, input { font: inherit; color: inherit; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
#app { max-width: 480px; margin: 0 auto; padding: max(12px, env(safe-area-inset-top)) 16px max(20px, env(safe-area-inset-bottom)); }
.screen { display: none; }
.screen.is-active { display: block; animation: fadeIn .18s ease-out both; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ---------- type ---------- */
.eyebrow { font-family: var(--mono); font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0; }
.rule-head { font-family: var(--sans); font-size: .74rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 28px 0 10px; padding-bottom: 6px; border-bottom: 1px solid var(--rule); text-align: left; }
.fineprint { color: var(--muted); font-size: .82rem; line-height: 1.55; }

/* ---------- tiles ---------- */
.tile {
  display: inline-grid; place-items: center;
  background: var(--tile); color: var(--tile-ink);
  border-radius: 5px;
  box-shadow: inset 0 -3px 0 var(--tile-edge), 0 1px 0 rgba(0, 0, 0, .06);
  font-family: var(--serif); font-weight: 600; line-height: 1;
  text-transform: uppercase;
}
.mini-badge {
  display: inline-grid; place-items: center; min-width: 1.9em; height: 1.45em; padding: 0 .3em;
  background: var(--tile); color: var(--tile-ink); border-radius: 3px; box-shadow: inset 0 -2px 0 var(--tile-edge);
  font-family: var(--mono); font-size: .78em; font-weight: 700; letter-spacing: 0; vertical-align: .08em; margin: 0 .25em;
}

/* ---------- buttons ---------- */
.btn { display: block; width: 100%; border: 1px solid transparent; border-radius: var(--r); padding: 12px 16px; font-weight: 600; cursor: pointer; transition: background-color .12s, border-color .12s, transform .06s; }
.btn:active { transform: translateY(1px); }
.btn-big { font-size: 1.05rem; padding: 15px 16px; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 88%, var(--ink)); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--rule-strong); }
.btn-ghost:hover { background: var(--paper-2); }
.btn:focus-visible, .link:focus-visible, .icon-btn:focus-visible, .appeal-btn:focus-visible, .enter-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.link { background: none; border: 0; padding: 0; color: var(--muted); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; font-size: inherit; }
.icon-btn { width: 38px; height: 38px; border-radius: var(--r); border: 1px solid var(--rule-strong); background: transparent; cursor: pointer; font-size: 1rem; color: var(--ink); }

/* ---------- home ---------- */
.home-wrap { text-align: center; padding-top: 22px; }
.brand { display: flex; justify-content: center; gap: 6px; margin: 18px 0 10px; }
.brand .tile { width: 52px; height: 52px; font-size: 1.9rem; }
.brand .tile:nth-child(2) { transform: translateY(6px); }
.title { font-family: var(--serif); font-weight: 600; font-size: 2.5rem; letter-spacing: -.01em; margin: 10px 0 6px; }
.promise { color: var(--muted); font-size: 1.02rem; line-height: 1.5; margin: 0 auto 20px; max-width: 32ch; }
.home-actions { display: grid; gap: 8px; margin: 18px 0 12px; }
.home-stats { color: var(--muted); min-height: 1.3em; font-size: .84rem; }
.panel { border: 1px solid var(--rule-strong); border-radius: var(--r); padding: 14px; margin: 8px 0; background: var(--paper); text-align: left; }
.challenge-banner p, .home-done p { margin: 0 0 8px; line-height: 1.45; }
.challenge-banner .btn { margin-top: 4px; }
.home-done { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; }
.home-done p { margin: 0; }
.home-done .big { font-family: var(--mono); font-size: 1.4rem; font-weight: 600; }
.home-done .countdown { flex-basis: 100%; font-family: var(--mono); font-size: .82rem; color: var(--muted); }
.howto ol { list-style: none; padding: 0; margin: 0; text-align: left; }
.howto li { display: grid; grid-template-columns: 2.2em 1fr; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--rule); line-height: 1.5; font-size: .95rem; }
.howto .num { color: var(--muted); font-size: .8rem; padding-top: .2em; }

/* ---------- loading ---------- */
.loading { text-align: center; padding-top: 28vh; color: var(--muted); }
.loader { display: flex; justify-content: center; gap: 6px; margin-bottom: 14px; }
.loader .tile { width: 40px; height: 40px; font-size: 1.3rem; animation: lift 1s ease-in-out infinite; }
.loader .tile:nth-child(2) { animation-delay: .12s; }
.loader .tile:nth-child(3) { animation-delay: .24s; }
@keyframes lift { 40% { transform: translateY(-6px); } }

/* ---------- play ---------- */
.play-head { display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 10px; }
.round-info { display: flex; flex-direction: column; font-size: .84rem; color: var(--muted); line-height: 1.25; }
.round-info #round-label { font-family: var(--mono); text-transform: uppercase; letter-spacing: .06em; font-size: .76rem; }
.round-hard { color: var(--ink); font-weight: 600; }
.running { justify-self: end; font-size: 1.5rem; font-weight: 600; display: flex; align-items: baseline; gap: 4px; }
.running small { font-size: .72rem; color: var(--muted); font-weight: 400; font-family: var(--sans); }
.running.bump span { display: inline-block; animation: nudge .25s ease-out; }
@keyframes nudge { 40% { transform: translateY(-2px); } }
.timer-row { display: flex; justify-content: space-between; align-items: baseline; margin: 14px 0 5px; min-height: 1.2em; }
.timer-text { margin-left: auto; font-size: .95rem; font-weight: 600; }
.dt-label { font-family: var(--mono); font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.timer { height: 2px; background: var(--rule); overflow: hidden; }
.timer-bar { height: 100%; width: 100%; background: var(--ink); transform-origin: left; transition: background-color .3s; }
.timer-bar.dt { background: var(--accent); }
.timer.dt { height: 3px; }
.card-zone { position: relative; margin: 14px 0 12px; touch-action: pan-y; overflow-x: clip; }
.cat-card { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 16px; padding: 14px 2px; border-bottom: 1px solid var(--rule); min-height: 108px; user-select: none; }
.letter-tile { width: 72px; height: 72px; font-size: 2.6rem; box-shadow: inset 0 -4px 0 var(--tile-edge), 0 1px 0 rgba(0, 0, 0, .06); }
.letter-tile.pop { animation: drop .28s ease-out; }
@keyframes drop { from { transform: translateY(-8px); opacity: 0; } to { transform: none; opacity: 1; } }
.cat-body { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.cat-card.slide-in .cat-body { animation: slideIn .2s ease-out both; }
.cat-card.slide-out .cat-body { animation: slideOut .15s ease-in both; }
.cat-card.shake .cat-body { animation: shake .28s ease; }
@keyframes slideIn { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
@keyframes slideOut { to { opacity: 0; transform: translateX(-20px); } }
@keyframes shake { 25%, 75% { transform: translateX(-4px); } 50% { transform: translateX(4px); } }
.cat-starts { font-size: .74rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; display: flex; align-items: center; }
.cat-starts b { color: var(--ink); margin-left: .35em; }
.cat-starts .mini-badge { margin-left: .6em; font-size: .85rem; }
.cat-label { font-family: var(--serif); font-weight: 600; font-size: clamp(1.45rem, 6.6vw, 1.9rem); margin: 0; line-height: 1.12; overflow-wrap: anywhere; }
.cat-meta { font-size: .74rem; color: var(--muted); min-height: 1em; }
.flyups { position: absolute; right: 0; bottom: 14px; pointer-events: none; }
.flyup { position: absolute; right: 2px; bottom: 0; font-family: var(--mono); font-weight: 700; font-size: 1.05rem; color: var(--accent); white-space: nowrap; animation: fly .9s ease-out forwards; }
.flyup.rare { color: var(--gold); }
.flyup small { margin-left: .6em; font-size: .76rem; font-weight: 600; color: var(--muted); }
@keyframes fly { from { opacity: 0; transform: translateY(4px); } 20% { opacity: 1; transform: none; } 75% { opacity: 1; } to { opacity: 0; transform: translateY(-8px); } }
.answer-form { display: flex; gap: 8px; }
.answer { flex: 1; min-width: 0; font-size: 1.2rem; padding: 13px 14px; border-radius: var(--r); border: 1px solid var(--edge); background: var(--paper); outline: none; }
.answer:focus { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.answer.bad { border-color: var(--bad); box-shadow: 0 0 0 1px var(--bad); }
.answer::placeholder { color: var(--muted); opacity: .8; }
.enter-btn { width: 54px; border: 0; border-radius: var(--r); background: var(--accent); color: var(--accent-ink); font-size: 1.3rem; cursor: pointer; }
.feedback { min-height: 44px; margin: 8px 0 4px; font-size: .92rem; line-height: 1.45; }
.feedback .why { color: var(--bad); }
.feedback .ok { color: var(--ink); }
.feedback .ok::before { content: "✓ "; color: var(--accent); font-weight: 700; }
.feedback .reveal { color: var(--muted); }
.feedback .deepcut { color: var(--muted); font-size: .86rem; }
.appeal-btn { margin-top: 6px; background: none; border: 1px dashed var(--rule-strong); color: var(--muted); border-radius: var(--r); padding: 5px 10px; cursor: pointer; font-size: .85rem; }
.play-actions { display: flex; gap: 8px; }
.btn-skip { padding: 10px 14px; }

/* ---------- answer words: rows of small tiles + mono points badge ---------- */
.words { display: flex; flex-wrap: wrap; gap: 10px 14px; margin-top: 14px; }
.words.center { justify-content: center; }
.word { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; max-width: 100%; padding-bottom: 3px; border-bottom: 2px solid transparent; }
.word .t { display: inline-flex; flex-wrap: wrap; gap: 3px 7px; min-width: 0; }
.word .g { display: inline-flex; flex-wrap: wrap; gap: 2px; min-width: 0; }
.word .t .tile { width: 19px; height: 22px; font-size: .8rem; border-radius: 3px; box-shadow: inset 0 -2px 0 var(--tile-edge); }
.word .punct { align-self: center; width: 6px; text-align: center; font-family: var(--mono); font-size: .8rem; color: var(--muted); }
.word .pts { font-family: var(--mono); font-size: .76rem; color: var(--muted); white-space: nowrap; }
.word .tag { font-size: .7rem; color: var(--muted); font-style: italic; white-space: nowrap; }
.word.rare { border-bottom-color: var(--gold); }
.word.rare .pts { color: var(--ink); font-weight: 700; }
.word.gold .pts::after { content: " ★"; color: var(--gold); }
.word.appeal .t .tile { background: transparent; box-shadow: inset 0 0 0 1px var(--rule-strong); color: var(--muted); }
.word.new { animation: drop .22s ease-out both; }
.word.empty { color: var(--muted); font-size: .88rem; }
/* review list: category caption above each answer */
.review { display: grid; gap: 10px; margin-top: 10px; text-align: left; }
.ritem { display: grid; gap: 3px; min-width: 0; }
.rcat { font-size: .74rem; color: var(--muted); line-height: 1.3; }
.ritem .word { justify-self: start; }
.wordlist { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.wordlist li { font-family: var(--serif); font-size: 1rem; padding: 6px 0; border-bottom: 1px solid var(--rule); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wordlist li.empty-note { grid-column: 1 / -1; border: 0; font-family: var(--sans); white-space: normal; }
.missed { text-align: left; margin-top: 14px; }
.missed p { margin: 6px 0; font-size: .88rem; color: var(--muted); line-height: 1.5; }
.missed b { color: var(--ink); font-weight: 600; }

/* ---------- between ---------- */
.between { text-align: center; padding-top: 6vh; }
.between-score { font-size: 3rem; font-weight: 600; margin: 8px 0 14px; }
.between .review { border-top: 1px solid var(--rule); padding-top: 14px; }
.between-next { font-family: var(--serif); font-size: 1.25rem; margin: 26px 0 12px; }
.between-next .mini-badge { font-size: .8rem; }

/* ---------- result ---------- */
.result { text-align: center; padding-top: 10px; }
.result-score { font-size: 4rem; margin: 6px 0 0; font-weight: 600; line-height: 1; }
.result-score small { font-family: var(--sans); font-size: .95rem; color: var(--muted); margin-left: 6px; font-weight: 400; }
.result-badge { font-family: var(--serif); font-style: italic; font-size: 1.25rem; margin: 10px 0 0; }
.result-line { font-family: var(--serif); font-size: 1.08rem; margin: 12px auto 10px; max-width: 34ch; line-height: 1.5; }
.result-lexicon { font-size: .8rem; color: var(--muted); margin: 0 0 14px; }
.highlights { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); margin: 6px 0 18px; }
.hl { padding: 12px 6px; min-width: 0; text-align: center; }
.hl + .hl { border-left: 1px solid var(--rule); }
.hl b { display: block; font-family: var(--mono); font-size: 1.05rem; font-weight: 600; overflow-wrap: anywhere; }
.hl span { font-size: .68rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.hl.gold b { text-decoration: underline 2px var(--gold); text-underline-offset: 4px; }
.result-rounds { display: grid; gap: 4px; text-align: left; }
.rround { border-top: 1px solid var(--rule); padding: 14px 0 6px; }
.rround-head { display: flex; align-items: center; gap: 10px; }
.rround-head .tile { width: 32px; height: 32px; font-size: 1.15rem; flex: none; }
.rround-head .meta { font-family: var(--mono); font-size: .84rem; }
.rround-head .meta small { color: var(--muted); font-family: var(--sans); }
.rround .words { margin-top: 10px; }
.share-box { margin: 22px 0 8px; display: grid; gap: 8px; text-align: left; }
.share-label { font-size: .82rem; color: var(--muted); }
.share-name { padding: 11px 12px; border-radius: var(--r); border: 1px solid var(--edge); background: var(--paper); font-size: 1rem; }
.share-name:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.share-status { min-height: 1.2em; margin: 0; color: var(--accent); text-align: center; font-size: .9rem; overflow-wrap: anywhere; }
.share-status a { color: var(--accent); }
.countdown { color: var(--muted); font-size: .85rem; }
.result-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }

/* ---------- head to head ---------- */
.h2h { border: 1px solid var(--rule-strong); border-radius: var(--r); padding: 14px; margin-bottom: 18px; text-align: left; }
.h2h-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; text-align: center; gap: 6px; }
.h2h-head .vs { color: var(--muted); font-size: .76rem; font-family: var(--serif); font-style: italic; padding-bottom: 4px; }
.h2h-head .num { font-family: var(--mono); font-size: 1.8rem; font-weight: 600; display: block; }
.h2h-head .who { font-size: .84rem; color: var(--muted); }
.h2h-head .win .num { text-decoration: underline 2px var(--accent); text-underline-offset: 6px; }
.h2h-verdict { text-align: center; font-family: var(--serif); font-size: 1.05rem; margin: 12px 0 4px; }
.h2h-summary { text-align: center; font-family: var(--mono); font-size: .78rem; color: var(--muted); margin: 0 0 10px; }
.h2h-round { margin-top: 12px; }
.h2h-cols, .h2h-row { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr) minmax(0, 1fr); gap: 8px; padding-left: 8px; }
.h2h-cols { font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding-bottom: 4px; }
.h2h-cols .tile { width: 20px; height: 20px; font-size: .75rem; }
.h2h-row { align-items: baseline; padding: 7px 0 7px 8px; border-top: 1px solid var(--rule); font-size: .86rem; }
.h2h-row .lab { color: var(--muted); overflow-wrap: anywhere; font-size: .8rem; }
.h2h-row .ans { overflow-wrap: anywhere; }
.h2h-row .ans small { font-family: var(--mono); color: var(--muted); font-size: .72rem; }
.h2h-row .ans.none { color: var(--muted); }
.h2h-row .ans.unique { font-weight: 600; }
.h2h-row .mark { display: inline-block; font-family: var(--mono); font-size: .62rem; text-transform: uppercase; letter-spacing: .06em; padding: 0 4px; border-radius: 3px; margin-left: 4px; vertical-align: .1em; }
.h2h-row .mark.both { background: var(--accent-soft); color: var(--accent); }
.h2h-row .mark.only { border: 1px solid var(--rule-strong); color: var(--muted); }
.h2h-row.shared { box-shadow: inset 2px 0 0 var(--accent); }

/* ---------- lexicon ---------- */
.sub-head { display: grid; grid-template-columns: 38px 1fr; align-items: center; gap: 12px; margin-bottom: 14px; }
.sub-title { font-family: var(--serif); font-weight: 600; font-size: 1.7rem; margin: 0; }
.az-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.az { aspect-ratio: 1; display: grid; place-items: center; border-radius: 5px; font-family: var(--serif); font-weight: 600; font-size: 1.15rem; position: relative; }
.az.l0 { border: 1px dashed var(--rule-strong); color: var(--muted); font-weight: 400; }
.az.l1, .az.l2, .az.l3, .az.l4 { color: var(--tile-ink); box-shadow: inset 0 -3px 0 var(--tile-edge); }
.az.l1 { background: var(--tile); }
.az.l2 { background: color-mix(in srgb, var(--tile) 78%, var(--accent)); }
.az.l3 { background: color-mix(in srgb, var(--tile) 52%, var(--accent)); }
.az.l4 { background: var(--accent); color: var(--accent-ink); box-shadow: inset 0 -3px 0 color-mix(in srgb, var(--accent) 70%, #000); }
.az small { position: absolute; right: 4px; bottom: 3px; font-family: var(--mono); font-size: .56rem; font-weight: 600; }
.legend { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin: 10px 0 0; font-size: .74rem; }
.legend .sw { width: 12px; height: 12px; border-radius: 2px; display: inline-block; margin-left: 6px; }
.legend .sw:first-child { margin-left: 0; }
.sw.l1 { background: var(--tile); } .sw.l2 { background: color-mix(in srgb, var(--tile) 78%, var(--accent)); }
.sw.l3 { background: color-mix(in srgb, var(--tile) 52%, var(--accent)); } .sw.l4 { background: var(--accent); }
.groups { display: grid; gap: 2px; }
.grow { display: grid; grid-template-columns: minmax(0, 8.5em) 1fr 3.2em; align-items: center; gap: 10px; padding: 6px 0; font-size: .9rem; }
.grow .bar { height: 2px; background: var(--rule); position: relative; }
.grow .bar i { position: absolute; inset: 0 auto 0 0; background: var(--ink); }
.grow.top .bar i { background: var(--accent); }
.grow .pct { font-family: var(--mono); font-size: .8rem; text-align: right; color: var(--muted); }
.grow .tag { font-size: .68rem; color: var(--muted); font-style: italic; margin-left: 4px; }
.empty-note { color: var(--muted); font-size: .9rem; text-align: left; }

/* ---------- credits ---------- */
.credits { max-width: min(92vw, 460px); border: 1px solid var(--rule-strong); border-radius: 8px; padding: 22px; background: var(--paper); color: var(--ink); line-height: 1.55; font-size: .94rem; }
.credits::backdrop { background: rgba(20, 18, 14, .45); }
.credits h2 { margin-top: 0; font-family: var(--serif); font-weight: 600; }
.credits ul { padding-left: 18px; }
.credits li { margin-bottom: 6px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition: none !important; }
}
@media (max-height: 640px) {
  .cat-card { min-height: 92px; padding: 10px 2px; }
  .letter-tile { width: 60px; height: 60px; font-size: 2.1rem; }
  .timer-row { margin-top: 8px; }
}
@media (min-width: 900px) {
  #app { padding-top: 40px; }
}

/* ---------- wordplay + twist cards ---------- */
.cat-kind { font-family: var(--mono); font-size: .72rem; letter-spacing: .04em; text-transform: none; color: var(--muted); margin-left: .6em; padding-left: .6em; border-left: 1px solid var(--rule-strong); }
.rule-chip {
  display: inline-block; font-family: var(--mono); font-weight: 700; font-size: .82em; line-height: 1.2;
  background: var(--tile); color: var(--tile-ink); border-radius: 4px; padding: .06em .3em .12em;
  box-shadow: inset 0 -2px 0 var(--tile-edge); white-space: nowrap; letter-spacing: .02em; vertical-align: .06em;
}
.twist-line { display: block; font-family: var(--mono); font-size: .92rem; font-weight: 600; color: var(--ink); margin-top: 5px; letter-spacing: .01em; }
.howto .rule-chip { font-size: .78em; }
