/* Complete rules introduce the grid. The shop expands a run's possibilities. */
.lf.rule-card-game{--red:#b24734;--paper-label:#655337}
.lf.rule-card-game button{min-height:44px;min-width:44px}
.lf.rule-card-game .primary:hover:not(:disabled){background:#b34d38}
.lf.rule-card-game .lf-dialog .quiet{min-height:44px;min-width:44px;padding:10px 12px}
/* Keep secondary actions quiet, usable by touch, and distinct from playing a hand. */
.lf.rule-card-game .site-header button,.lf.rule-card-game .run-controls button,.lf.rule-card-game .schedule-row,.lf.rule-card-game details>summary{min-height:44px}
.lf.rule-card-game .site-header button,.lf.rule-card-game .run-controls button{min-width:44px;padding:10px 12px}
.lf.rule-card-game .site-header .home-link{display:inline-block;min-height:44px;min-width:44px;padding:10px 0}
.lf.rule-card-game .schedule-row{padding-top:12px;padding-bottom:12px}
.lf.rule-card-game .rule-slot-status,.lf.rule-card-game .rule-reward-action{font:600 13px/1.4 var(--sans);letter-spacing:0;color:#8b3c2b;margin-top:auto;padding-top:9px}
.lf.rule-card-game .rule-slot.empty{border-color:#c9b27b;background:#d1b37b0e}
.lf.rule-card-game .rule-slot.empty .rule-slot-status{color:#f0bc9b}
.lf.rule-card-game .rule-slot:disabled .rule-slot-status{color:#6c654f;font-weight:400}
.lf.rule-card-game .rule-slot.empty:disabled .rule-slot-status{color:var(--muted)}
.lf.rule-card-game .deck-count-label{margin:0 0 10px;font:500 17px/1.4 var(--serif);color:var(--paper)}
.lf.rule-card-game .results-dialog[open]{display:flex;flex-direction:column;max-width:650px;width:calc(100% - 32px);padding:30px}
.lf.rule-card-game .results-body{order:0;min-width:0}
.lf.rule-card-game .results-dialog h2{font-size:clamp(29px,5vw,42px);line-height:1.13;max-width:17ch;margin:0 0 14px}
.lf.rule-card-game .results-dialog .results-summary{font:11px/1.6 var(--sans);letter-spacing:.04em;color:#c5b790;margin:0 0 24px}
.lf.rule-card-game .run-narrative{font:20px/1.55 var(--serif);color:var(--paper);margin:0 0 16px;max-width:40ch}
.lf.rule-card-game .run-next-idea{font:14px/1.65 var(--sans);color:#c2c7b6;margin:0 0 18px;max-width:48ch}
.lf.rule-card-game .run-figures{border-top:1px solid var(--line);margin:20px 0;color:var(--muted);font:12px/1.6 var(--sans)}
.lf.rule-card-game .run-figures>summary{cursor:pointer;padding:12px 0;color:var(--paper)}
.lf.rule-card-game .run-figures dl{margin:0 0 15px}
.lf.rule-card-game .run-figures dl>div{display:flex;justify-content:space-between;gap:16px;padding:4px 0}
.lf.rule-card-game .run-figures dd{margin:0;color:var(--paper);overflow-wrap:anywhere}
.lf.rule-card-game .results-dialog .results-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:22px}
.lf.rule-card-game .results-dialog .primary{background:var(--red);border-color:var(--red);color:#fff3df;justify-content:center;min-height:46px}
.lf.rule-card-game .results-dialog .secondary,.lf.rule-card-game .results-dialog .results-inspect{background:transparent;border-color:var(--line);color:var(--paper);min-height:44px}
.lf.rule-card-game .results-dialog .results-inspect{order:1;float:none;align-self:flex-start;margin:16px 0 0;padding:10px 0;border-color:transparent;font:12px/1.4 var(--sans);text-decoration:underline;text-underline-offset:4px}
.lf.rule-card-game .results-dialog .results-inspect:hover{background:transparent;color:#fff3df}
@media(max-width:480px){.lf.rule-card-game .results-dialog[open]{padding:22px}.lf.rule-card-game .results-actions{flex-direction:column}.lf.rule-card-game .results-actions button{width:100%}.lf.rule-card-game .run-narrative{font-size:18px}}
@media(max-width:650px){.lf.rule-card-game .run-controls{flex-basis:100%;gap:8px}.lf.rule-card-game .run-controls .run-wallet{margin-right:auto}}
.rule-card-game main{max-width:1320px}
.rule-card-game .exhibit-caption{display:none}
.rule-card-game:not(.poker) .playing-card .card-label{font-size:9px;letter-spacing:0}
.rule-card-game .run-strip{grid-template-columns:minmax(0,1fr) repeat(2,90px);margin-bottom:22px}
.rule-card-game .table-layout{display:grid;grid-template-columns:minmax(0,1fr) 250px;gap:24px;align-items:start}
.rule-card-game .hand-section{grid-column:1;margin:0;padding:0;border:0;min-width:0}
.rule-card-game .hand-heading h2,.rule-card-game .panel-heading h2{font-size:22px}
.rule-card-game .hand{gap:9px;padding-top:26px}
.lf.rule-card-game .playing-card.ordered:after{content:none}
.rule-card-game .selection-order{position:absolute;top:-11px;right:-6px;z-index:3;display:grid;place-items:center;width:21px;height:21px;border-radius:50%;background:#a94733;color:#fff4df;font:600 11px/1 var(--mono);pointer-events:none}
.rule-card-game .play-order{margin:20px 0 0;padding:12px 0 0;border-top:1px solid var(--line)}
.rule-card-game .play-order>.overline{color:#d4c6a6}
.rule-card-game .play-order[data-expanded="false"]>.overline{display:none}
.lf.rule-card-game .play-order-toggle{min-height:44px;min-width:44px;padding:10px 12px;font:12px/1.4 var(--sans)}
.rule-card-game .play-order-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,265px),1fr));gap:6px 18px;list-style:none;margin:8px 0;padding:0}
.rule-card-game .play-order-guest{display:flex;align-items:center;gap:8px;min-width:0;font:14px/1.4 var(--serif);color:#e1d6bc;border-bottom:1px solid var(--line)}
.rule-card-game .play-order-name{flex:1;min-width:0}
.rule-card-game .play-order-controls{display:flex;gap:4px}
.lf.rule-card-game .play-order-controls button{width:44px;min-height:44px;padding:0;justify-content:center;font:18px/1 var(--sans);border:1px solid var(--line);border-radius:3px}
.rule-card-game .play-order-number{font:10px/1 var(--mono);color:#d79778}
.rule-card-game #play-order-help{margin:8px 0 0;font:11px/1.65 var(--sans);color:#b7bfad}
.rule-card-game .hand-actions{flex-wrap:wrap;margin-top:16px}
.rule-card-game .hand-actions>p{flex:1;min-width:120px;max-width:none;font:12px/1.6 var(--sans)}
.rule-card-game .score-panel{grid-column:2;display:block;min-height:0;padding:20px}
.rule-card-game .gathering-name{font-size:21px;margin:18px 0 8px}
.rule-card-game .score-total{display:flex;flex-direction:column-reverse;align-items:flex-start;gap:7px;border:0;padding:0;margin:0}
.rule-card-game .score-total strong{font-size:54px;line-height:1.1;overflow-wrap:anywhere;max-width:100%}
.rule-card-game .preview-note{font-size:11px;color:var(--muted);margin:12px 0 0}
.rule-card-game .score-breakdown{border-top:1px solid var(--line);margin-top:20px;padding-top:9px}
.rule-card-game .score-breakdown>summary,.rule-card-game .help-rule-reference>summary{cursor:pointer;padding:8px 0;font-size:12px;color:var(--paper)}
.rule-card-game .score-equation{margin:15px 0 0}
.rule-card-game .score-equation strong{font-size:26px}
.rule-card-game .score-events{max-height:260px}
.rule-card-game .rulebook-panel{grid-column:1/-1;order:initial;border-top:1px solid var(--line);padding-top:22px}
.rule-card-game .panel-note{font-size:12px;line-height:1.65;margin:8px 0 16px}
.rule-slots,.rule-options,.reward-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.rule-card-game .rule-slot,.rule-card-game .rule-choice{display:flex;flex-direction:column;align-items:flex-start;gap:9px;text-align:left;width:100%;min-height:151px;padding:18px 20px;border-radius:4px;background:var(--paper);color:#292b26;border-color:#bfb397}
.rule-card-game .rule-slot:hover:not(:disabled),.rule-card-game .rule-choice:hover:not(:disabled){background:#fff0d5;transform:translateY(-2px)}
.rule-card-game .rule-slot:disabled{opacity:1}
.rule-card-game .rule-slot-label{font:10px var(--mono);letter-spacing:1px;color:#6c654f}
.rule-card-game .rule-card-title{font:700 16px/1.35 var(--serif);overflow-wrap:break-word}
.rule-card-game .rule-card-description{font:12px/1.6 var(--sans);color:#514d41}
.rule-card-game .rule-slot-status{font:10px var(--mono);letter-spacing:.3px;margin-top:auto;padding-top:3px;color:#776340}
.rule-card-game .rule-slot.empty{background:#e8d6a709;border-style:dashed;color:#decfaf;border-color:#b9a67a6b;justify-content:center}
.rule-card-game .rule-slot.empty .rule-card-description,.rule-card-game .rule-slot.empty .rule-slot-label,.rule-card-game .rule-slot.empty .rule-slot-status{color:#beb09a}
.rule-card-game .rule-slot.empty:hover:not(:disabled){background:#e8d6a715}
.rule-card-game .rule-slot.blocked{background:#c6bba4;border-color:#c2604b}
.rule-card-game .rule-slot.blocked .rule-slot-status{color:#892d23;font-weight:700}
.rule-card-game .rule-slot.blocked .rule-card-title{text-decoration:line-through;text-decoration-color:#983e30}
.rule-card-game .rule-slot.editing,.rule-card-game .rule-choice.selected{outline:2px solid var(--gold);outline-offset:3px}
.rule-editor{margin-top:22px;padding:20px;background:#0d131159;border:1px solid #c4a66b59;border-radius:4px}
.rule-editor h3{font-size:24px;margin:0}
.rule-card-game .rule-choice{min-height:145px;background:#dfd4bc}
.rule-card-game .rule-choice:disabled{opacity:.65}
.rule-card-game .rule-choice-score{font:700 14px var(--mono);color:#315345;margin-top:auto;padding-top:5px}
.rule-editor-actions{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-top:18px}
.rule-editor-actions p{font-size:13px;line-height:1.6;margin:0;color:#e0cea7}
.rule-card-game .schedule-panel{grid-column:1/-1;order:initial;margin:0;border-top:1px solid var(--line);padding:12px 0 0}
.schedule-reference>summary{cursor:pointer;font:17px var(--serif);padding:9px 0;color:var(--paper)}
.schedule-reference>summary span{font:11px var(--sans);color:var(--muted);margin-left:12px}
.rule-card-game .schedule-panel #schedule{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 24px}
.rule-card-game .schedule-hand-type{display:block;font:9px/1.5 var(--mono);color:#dcad8c;margin-top:5px;letter-spacing:.15px}
.rule-card-game .impossible-gathering{border-top:1px solid #c49b6a70;margin-top:10px;padding-top:8px}
.rule-card-game .impossible-gathering .schedule-row{align-items:flex-start;font-size:13px;gap:14px}
.rule-card-game .impossible-gathering .schedule-row strong{white-space:nowrap;font-size:13px;color:#efd096}
.rule-card-game .impossible-gathering .schedule-description{font:12px/1.6 var(--sans);margin:8px 0 14px}
.rule-card-game .impossible-gathering .schedule-label:after{display:none}
.rule-card-game .shop{margin:0;padding:24px 0;border-top:1px solid var(--line)}
.rule-card-game .reward-choice{min-height:200px}
.rule-card-game .whole-rule{max-width:340px;right:0;bottom:60px}
.rule-card-game .whole-rule>span{padding:20px 25px;font-size:14px;border-top:3px solid var(--red);background:var(--paper);color:#292b26}
.whole-rule small{display:block;font:12px/1.5 var(--sans);margin-top:8px;color:#635b49}
.rule-card-game .help-rule-reference{border-top:1px solid var(--line);padding-top:12px}
.rule-card-game .help-rule-reference .verb-guide{border:0}
.rule-card-game .rarity-badge{display:inline-block;align-self:flex-start;width:max-content;max-width:100%;padding:2px 6px;border:1px solid currentColor;border-radius:2px;font:600 9px/1.3 var(--sans);letter-spacing:.05em;text-transform:uppercase;color:#bfc0b4}
.rule-card-game .rarity-uncommon{color:#aac69f}
.rule-card-game .rarity-rare{color:#a5c9e0}
.rule-card-game .rarity-epic{color:#dfb8df}
.rule-card-game .rule-slot .rarity-badge,.rule-card-game .rule-choice .rarity-badge,.rule-card-game .curio-card .rarity-badge{color:#625d51}
.rule-card-game .rule-slot .rarity-uncommon,.rule-card-game .rule-choice .rarity-uncommon,.rule-card-game .curio-card .rarity-uncommon{color:#3f6545}
.rule-card-game .rule-slot .rarity-rare,.rule-card-game .rule-choice .rarity-rare,.rule-card-game .curio-card .rarity-rare{color:#355e79}
.rule-card-game .rule-slot .rarity-epic,.rule-card-game .rule-choice .rarity-epic,.rule-card-game .curio-card .rarity-epic{color:#765079}
.rule-card-game .verb-guide .codex-entry{position:relative;padding:14px 0;border-top:1px solid var(--line);display:flex;flex-direction:column;gap:8px;min-width:0}
.rule-card-game .codex-entry .rule-card-title{color:var(--paper);font-size:17px;overflow-wrap:anywhere}
.rule-card-game .codex-entry .rule-card-description{color:var(--muted);font-size:12px}
.rule-card-game .codex-ownership{font:10px/1.4 var(--sans);letter-spacing:.08em;color:#bbcab5}
.rule-card-game .codex-entry.unfound .codex-ownership{color:#b4aea2}
.rule-card-game .rule-codex-link{min-height:44px;padding:8px 0;margin:0 0 15px;font:12px/1.4 var(--sans);color:var(--paper);text-align:left;letter-spacing:0;border-top:1px solid transparent;border-right:1px solid transparent;border-bottom:1px solid transparent;border-left:1px solid transparent;box-shadow:none}
.rule-card-game .rule-codex-link:focus-visible{outline:2px solid var(--gold);outline-offset:3px}
.rule-card-game .coherence-help{padding-left:12px;border-left:2px solid #b8cda0;color:#ced3bd}
@media(max-width:1050px){.rule-card-game .table-layout{grid-template-columns:minmax(0,1fr) 220px;gap:20px}.rule-card-game .hand{grid-template-columns:repeat(4,minmax(0,1fr));gap:24px 10px}.rule-card-game .playing-card{max-width:130px}.rule-card-game .rule-slot,.rule-card-game .rule-choice{padding:16px;min-height:165px}}
@media(max-width:650px){.rule-card-game .table-layout{display:flex;flex-direction:column;gap:20px}.rule-card-game .hand-section{order:1;width:100%}.rule-card-game .score-panel{order:2;width:100%;display:block}.rule-card-game .rulebook-panel{order:3;width:100%}.rule-card-game .schedule-panel{order:4;width:100%}.rule-card-game .run-strip{grid-template-columns:minmax(0,1fr) repeat(2,47px);gap:9px;padding:12px}.rule-card-game .hand{grid-template-columns:repeat(4,minmax(0,1fr));gap:23px 8px}.rule-card-game .hand-actions{display:flex;gap:10px}.rule-card-game .hand-actions>p{flex-basis:100%}.rule-card-game .hand-actions .primary{flex:1}.rule-card-game .hand-heading{align-items:flex-start;flex-wrap:wrap;gap:8px}.rule-card-game .hand-heading h2,.rule-card-game .panel-heading h2{font-size:20px}.rule-card-game .score-total strong{font-size:46px}.rule-card-game .gathering-name{margin-top:13px}.rule-card-game .rule-slots,.rule-card-game .rule-options,.rule-card-game .reward-options{grid-template-columns:1fr;gap:10px}.rule-card-game .rule-slot,.rule-card-game .rule-choice{min-height:112px;padding:16px;gap:7px}.rule-card-game .rule-slot.empty{min-height:85px}.rule-card-game .rule-card-title{font-size:16px}.rule-card-game .rule-card-description{font-size:12px}.rule-card-game .rule-editor{padding:15px}.rule-editor-actions{flex-direction:column;align-items:stretch;gap:12px}.rule-card-game .rule-editor-actions .primary{justify-content:center}.rule-card-game .schedule-panel #schedule{grid-template-columns:1fr}.rule-card-game .schedule-reference>summary span{display:block;margin:5px 0 0 18px}.rule-card-game .shop .hand-heading{align-items:stretch;flex-direction:column;gap:18px}.rule-card-game .whole-rule{bottom:0;max-width:280px}.rule-card-game .whole-rule>span{padding:15px 18px;font-size:12px}.whole-rule small{font-size:11px}}
@media(max-width:350px){.rule-card-game .hand{grid-template-columns:repeat(3,minmax(0,1fr))}.rule-card-game .rulebook-panel>.panel-heading{align-items:flex-start;flex-wrap:wrap;gap:10px}}
@media(prefers-reduced-motion:reduce){.rule-card-game .rule-slot,.rule-card-game .rule-choice{transition:none}}
/* The word grid appears only after the complete-rule introduction. */
.rule-card-game [hidden]{display:none!important}
.rule-card-game .round-track{display:flex;flex-wrap:wrap;gap:5px 10px;max-width:410px;margin:16px 0 0;font:10px/1.7 var(--sans);color:var(--muted)}
.rule-card-game .round-track span+span:before{content:'·';margin-right:10px;color:var(--gold)}
.rule-card-game .round-track strong{font:700 10px var(--mono);color:var(--paper);margin-right:4px}
.rule-card-game .grid-rulebook-panel{min-width:0}
.rule-card-game .grid-workspace{display:grid;grid-template-columns:minmax(0,1fr) 220px;gap:20px;align-items:start}
.rule-card-game .word-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px;padding:12px;border:1px solid var(--line);border-radius:4px;background:#0e15115c;min-width:0}
.rule-card-game .word-tile{display:flex;flex-direction:column;align-items:center;justify-content:center;position:relative;gap:8px;min-width:0;width:100%;min-height:96px;padding:21px 7px 12px;border-top:1px solid #bfb397;border-right:1px solid #bfb397;border-bottom:1px solid #bfb397;border-left:1px solid #bfb397;border-radius:3px;box-shadow:none;background:var(--paper);color:#292b26;letter-spacing:0;text-align:center;cursor:pointer}
.rule-card-game .word-tile:hover:not(:disabled){background:#fff0d5}
.rule-card-game .word-tile:disabled{opacity:1;cursor:default}
.rule-card-game .word-tile .tile-word{display:block;max-width:100%;font:700 clamp(11px,1.25vw,15px)/1.35 var(--mono);overflow-wrap:anywhere;word-break:normal}
.rule-card-game .word-tile .tile-position{position:absolute;top:5px;left:7px;font:9px/1.2 var(--mono);color:#746a52}
.rule-card-game .word-tile.empty{background:#e8d6a706;border-top:1px dashed #b9a67a6b;border-right:1px dashed #b9a67a6b;border-bottom:1px dashed #b9a67a6b;border-left:1px dashed #b9a67a6b;color:#c9bda4}
.rule-card-game .word-tile.empty .tile-position{color:#bfb08e}
.rule-card-game .word-tile.empty:hover:not(:disabled){background:#e8d6a715}
.rule-card-game .word-tile.selected{outline:2px solid var(--gold);outline-offset:2px}
.rule-card-game .word-tile:focus-visible{outline:2px solid var(--gold);outline-offset:3px}
.rule-card-game .grid-tools{display:flex;flex-direction:column;gap:12px;min-width:0}
.rule-card-game .tile-selection{margin:0;min-height:44px;font:13px/1.6 var(--sans);color:var(--paper);overflow-wrap:anywhere}
.rule-card-game .grid-directions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.rule-card-game .grid-tools button{min-height:44px;min-width:0;margin:0;padding:10px 8px;justify-content:center;font-size:12px;line-height:1.3;white-space:normal;border-top:1px solid var(--line);border-right:1px solid var(--line);border-bottom:1px solid var(--line);border-left:1px solid var(--line);box-shadow:none}
.rule-card-game .grid-tools button:disabled{opacity:.42}
.rule-card-game .grid-reserve-wrap,.rule-card-game .formed-rules-wrap{margin-top:23px;min-width:0}
.rule-card-game .grid-reserve-wrap h3,.rule-card-game .formed-rules-wrap h3{margin:0 0 11px;font:22px/1.25 var(--serif);color:var(--paper)}
.rule-card-game .word-reserve{display:grid;grid-template-columns:repeat(auto-fill,minmax(108px,1fr));gap:8px;align-items:start}
.rule-card-game .word-reserve>.word-tile{min-height:64px;padding:12px 8px}
.rule-card-game .word-reserve>p{grid-column:1/-1;margin:0;font:12px/1.6 var(--sans);color:var(--muted)}
.rule-card-game .formed-rules{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.rule-card-game .formed-rule{min-width:0;padding:14px 15px;border:1px solid var(--line);border-radius:3px;background:#ead3a00b}
.rule-card-game .formed-rule strong{display:block;font:700 15px/1.4 var(--serif);color:var(--paper);overflow-wrap:anywhere}
.rule-card-game .formed-rule p,.rule-card-game .formed-rule .description{margin:7px 0;font:12px/1.6 var(--sans);color:var(--muted)}
.rule-card-game .formed-rule small{display:block;font:10px/1.5 var(--mono);color:#ccbb92}
.rule-card-game .formed-rule.inactive{background:#a85d4610}
.rule-card-game .formed-rule.inactive strong{text-decoration:line-through;text-decoration-color:#ca8973}
.rule-card-game .formed-rule.inactive small{color:#d29b89}
.rule-card-game .formed-rule.new{border-color:var(--gold)}
.rule-card-game .rule-changes{display:grid;gap:6px;margin-top:13px}
.rule-card-game .rule-changes:empty{display:none}
.rule-card-game .rule-change{padding:8px 11px;border-left:2px solid var(--gold);font:12px/1.6 var(--sans);color:var(--paper);background:#d9bc7310;overflow-wrap:anywhere}
.rule-card-game .rule-change.broken{border-left-color:#ca8973;background:#a85d4610;color:#e0b8a6}
.rule-card-game .workshop-intro{max-width:850px;margin:8px 0 22px;padding:18px 20px;border:1px solid #c4a66b59;border-radius:4px;background:#0d131159}
.rule-card-game .workshop-intro .eyebrow{margin:0 0 9px}
.rule-card-game .workshop-intro h3{margin:0 0 9px;font:28px/1.2 var(--serif);color:var(--paper)}
.rule-card-game .workshop-intro>p:last-child{margin:0;font:13px/1.7 var(--sans);color:var(--muted)}
.rule-card-game .workshop-actions{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:24px;padding-top:20px;border-top:1px solid var(--line)}
.rule-card-game .workshop-actions p{margin:0;font:13px/1.6 var(--sans);color:var(--muted)}
.rule-card-game .workshop-actions button{min-height:44px;border-top:1px solid var(--red);border-right:1px solid var(--red);border-bottom:1px solid var(--red);border-left:1px solid var(--red);box-shadow:none}
.rule-card-game .table-layout.phase-workshop{grid-template-columns:minmax(0,1fr)}
.rule-card-game .phase-workshop .grid-rulebook-panel{grid-column:1/-1;border-top:0;padding-top:0}
@media(max-width:900px){.rule-card-game .grid-workspace{grid-template-columns:minmax(0,1fr) 180px;gap:14px}.rule-card-game .word-grid{padding:9px;gap:6px}.rule-card-game .formed-rules{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.rule-card-game .grid-workspace{grid-template-columns:minmax(0,1fr);gap:15px}.rule-card-game .word-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:5px;padding:8px}.rule-card-game .word-tile{min-height:82px;padding:19px 4px 9px}.rule-card-game .word-tile .tile-word{font-size:10px;line-height:1.4}.rule-card-game .word-tile .tile-position{top:5px;left:5px;font-size:8px}.rule-card-game .grid-tools{display:grid;grid-template-columns:1fr 1fr;gap:9px}.rule-card-game .tile-selection{grid-column:1/-1;min-height:0}.rule-card-game .grid-directions{grid-column:1/-1;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.rule-card-game .grid-tools button{font-size:11px;padding:10px 4px}.rule-card-game .word-reserve{grid-template-columns:repeat(3,minmax(0,1fr))}.rule-card-game .word-reserve>.word-tile{min-height:60px}.rule-card-game .formed-rules{grid-template-columns:minmax(0,1fr)}.rule-card-game .grid-reserve-wrap h3,.rule-card-game .formed-rules-wrap h3{font-size:21px}.rule-card-game .workshop-intro{padding:16px;margin-bottom:18px}.rule-card-game .workshop-intro h3{font-size:25px}.rule-card-game .workshop-actions{flex-direction:column;align-items:stretch;gap:13px}.rule-card-game .workshop-actions button{justify-content:center}.rule-card-game .grid-rulebook-panel>.panel-heading{align-items:flex-start;flex-wrap:wrap;gap:10px}.rule-card-game .round-track{font-size:9px;gap:3px 7px}.rule-card-game .round-track span+span:before{margin-right:7px}}

/* Run upgrades keep the opening quiet and disclose detail when it is useful. */
.rule-card-game .match-heading,.rule-card-game .run-controls{flex-wrap:wrap;min-width:0}
.rule-card-game .run-wallet{display:flex;align-items:baseline;gap:8px;padding:8px 11px;border:1px solid var(--line);border-radius:3px;color:var(--gold)}
.rule-card-game .run-wallet span{font:9px var(--mono);letter-spacing:1px}
.rule-card-game .run-wallet strong{font:23px/1 var(--serif)}
.rule-card-game .run-capacity{margin:-6px 0 20px;color:var(--muted);max-width:100%}
.rule-card-game .run-capacity>summary{cursor:pointer;width:fit-content;padding:8px 0;font:11px/1.5 var(--mono)}
.rule-card-game .run-capacity dl{display:grid;gap:9px;margin:9px 0;padding:15px;border:1px solid var(--line);max-width:700px;background:#11171466}
.rule-card-game .capacity-row{display:grid;grid-template-columns:100px minmax(0,1fr);gap:14px;font:12px/1.6 var(--sans)}
.rule-card-game .capacity-row dt{color:var(--paper)}
.rule-card-game .capacity-row dd{margin:0;overflow-wrap:anywhere}
.rule-card-game .rule-slots{grid-template-columns:repeat(var(--rule-slots,3),minmax(0,1fr))}
.rule-card-game .grid-scroll{min-width:0;max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;padding:5px 2px 9px;border-radius:4px}
.rule-card-game .word-grid{grid-template-columns:repeat(var(--grid-columns,5),minmax(0,1fr));min-width:var(--grid-min-width,0px)}
.rule-card-game .shop{min-width:0;max-width:100%}
.rule-card-game .shop-intro{display:block;margin:20px 0 30px}
.rule-card-game .shop-wallet{font:28px/1.25 var(--serif);color:var(--gold);margin:0 0 9px}
.rule-card-game .shop-feedback{font:13px/1.6 var(--sans);color:var(--paper);margin:0 0 12px;overflow-wrap:anywhere}
.rule-card-game .shop-feedback:empty{margin:0}
.rule-card-game .shop-intro .panel-note{max-width:650px;margin:0}
.rule-card-game .payout-receipt{padding:12px 16px;border:1px solid var(--line);background:#edd5a60a;border-radius:3px}
.rule-card-game .payout-receipt>summary{cursor:pointer;font:12px/1.5 var(--mono);color:var(--paper)}
.rule-card-game .payout-receipt dl{margin:13px 0 0}
.rule-card-game .receipt-row{display:flex;justify-content:space-between;gap:15px;font:12px/1.75 var(--sans);color:var(--muted)}
.rule-card-game .receipt-row dd{margin:0;color:var(--paper)}
.rule-card-game .receipt-total{margin-top:8px;padding-top:7px;border-top:1px solid var(--line);color:var(--gold)}
.rule-card-game .receipt-total dd{color:var(--gold)}
.rule-card-game .shop-category{margin-top:28px;padding-top:22px;border-top:1px solid var(--line);min-width:0}
.rule-card-game .shop-category-heading{display:flex;align-items:baseline;gap:18px;margin-bottom:14px;flex-wrap:wrap}
.rule-card-game .shop-category-heading h3{font:25px/1.25 var(--serif);margin:0;color:var(--paper)}
.rule-card-game .shop-category-heading p{font:12px/1.5 var(--sans);margin:0;color:var(--muted)}
.rule-card-game .upgrade-offers{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;min-width:0}
.rule-card-game .shop-offer{display:flex;flex-direction:column;min-width:0;padding:17px 18px;border:1px solid var(--line);border-radius:4px;background:#eedbb608}
.rule-card-game .shop-offer.capped{background:#e9d6b004}
.rule-card-game .offer-heading{display:flex;align-items:start;justify-content:space-between;gap:10px;min-width:0}
.rule-card-game .offer-heading h4{margin:0;font:19px/1.25 var(--serif);font-weight:400;color:var(--paper);overflow-wrap:anywhere}
.rule-card-game .offer-level{white-space:nowrap;font:10px/1.8 var(--mono);color:var(--muted)}
.rule-card-game .offer-description{margin:11px 0 8px;font:12px/1.6 var(--sans);color:var(--muted)}
.rule-card-game .offer-effect{font:20px/1.4 var(--serif);color:var(--gold);margin:0 0 8px;overflow-wrap:anywhere}
.rule-card-game .offer-reason{font:12px/1.5 var(--sans);color:var(--muted);margin:auto 0 12px}
.rule-card-game .buy-upgrade{width:100%;font:12px/1.4 var(--mono);min-height:44px;padding:10px;justify-content:center;border-top:1px solid var(--line);border-right:1px solid var(--line);border-bottom:1px solid var(--line);border-left:1px solid var(--line);box-shadow:none}
.rule-card-game .buy-upgrade:disabled{opacity:.55}
.rule-card-game .optional-rules{margin-top:24px;padding-top:18px;border-top:1px solid var(--line)}
.rule-card-game .optional-rules>summary{cursor:pointer;font:17px/1.5 var(--serif);color:var(--paper);padding:4px 0 10px}
.rule-card-game .optional-rules .rule-choice{min-height:125px}
.rule-card-game .shop-footer{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:28px;padding-top:22px;border-top:1px solid var(--line)}
.rule-card-game .shop-footer p{margin:0;font:13px/1.6 var(--sans);color:var(--muted)}
.rule-card-game .shop-footer button{min-height:44px;flex-shrink:0;border-top:1px solid var(--line);border-right:1px solid var(--line);border-bottom:1px solid var(--line);border-left:1px solid var(--line)}
@media(max-width:650px){.rule-card-game .shop-footer{flex-direction:column;align-items:stretch;gap:12px}.rule-card-game .shop-footer button{width:100%;justify-content:center}}
@media(max-width:850px){.rule-card-game .upgrade-offers{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.rule-card-game .rule-slots{grid-template-columns:1fr}.rule-card-game .run-controls{gap:6px}.rule-card-game .run-wallet{padding:7px 8px}.rule-card-game .run-wallet strong{font-size:20px}.rule-card-game .run-capacity{margin:0 0 14px}.rule-card-game .capacity-row{grid-template-columns:75px minmax(0,1fr);gap:10px;font-size:11px}.rule-card-game .shop-intro{grid-template-columns:1fr;gap:15px;margin-bottom:22px}.rule-card-game .shop-wallet{font-size:25px}.rule-card-game .shop-category-heading{gap:6px;margin-bottom:12px}.rule-card-game .shop-category-heading h3{font-size:23px}.rule-card-game .shop-category-heading p{flex-basis:100%;font-size:11px}.rule-card-game .shop-offer{padding:15px}.rule-card-game .offer-heading h4{font-size:18px}.rule-card-game .upgrade-offers{grid-template-columns:1fr}.rule-card-game .offer-description{margin-top:8px}.rule-card-game .optional-rules>summary{font-size:17px}}

/* Small print remains readable on both paper stock and the dark table. */
.lf.rule-card-game :is(.edition,.panel-heading>span,.resource .overline,.target-block .overline,.score-equation span,.score-total>span,.score-event small,.hand-heading>p,.game-footer,.schedule-hand-type,.rarity-badge,.curio-count,.curio-offer.capped .curio-price,.curio-inspector>.overline,.route-eyebrow,.route-target>span,.joining-label,.starter-origin,.round-track,.run-wallet span,.bag-heading .eyebrow,.bag-word-example small,.pocket-label,.pocket-empty span){font-size:10px}
.lf.rule-card-game :is(.rule-slot-label,.bag-word-role,.bag-word-example small,.pocket-label){color:var(--paper-label)}
.lf.rule-card-game .rule-slot.empty .rule-slot-label{color:#beb09a}
.lf.rule-card-game .rule-slot:disabled:not(.empty) .rule-slot-status{color:var(--paper-label)}
