/* Rules fill preparation; a compact effect list accompanies the dealt hand. */
.lf .hand-preparation,.lf .preparation-actions,.lf .hand-powers{grid-column:1/-1;width:100%;min-width:0}
.lf .hand-preparation{padding:16px 0 0}
.lf #preparation-title{font:400 clamp(27px,3vw,38px)/1.2 var(--serif);letter-spacing:-.5px;margin:8px 0 14px}
.lf #preparation-title:focus{outline:none}
.lf #preparation-note{max-width:68ch;font-size:15px;line-height:1.65}
.lf .preparation-context{font:600 12px/1.6 var(--sans);color:#e4cf9f;margin:14px 0 6px}
.lf #preparation-held:empty{display:none}
.lf .preparation-kept{grid-column:1/-1;width:100%;order:0}
.lf .preparation-kept summary{min-height:44px;display:flex;align-items:center;font:13px var(--sans);cursor:pointer}
.lf .preparation-kept-cards{display:flex;flex-wrap:wrap;gap:12px;padding:12px 0}
.lf .preparation-kept-cards .playing-card{width:90px;max-width:90px;min-width:0}
.lf .preparation-actions{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:18px 0;border-top:1px solid var(--line)}
.lf #preparation-ready{max-width:60ch;margin:0;color:#d8d5c4;font:13px/1.6 var(--sans)}
.lf #begin-hand{min-height:48px;flex-shrink:0;padding:13px 20px;font:600 14px/1.5 var(--sans)}
.lf .hand-powers{border-top:1px solid var(--line);padding-top:18px}
.lf .hand-powers .panel-heading{flex-wrap:wrap;gap:12px}
.lf .hand-powers h2{font-size:24px}
.lf #edit-hand-rules{min-height:44px;font:600 12px/1.5 var(--sans);padding:10px 14px}
.lf #hand-power-note{font-size:12px;line-height:1.6;color:#d0cdbd}
.lf .hand-power-list{list-style:none;padding:0;margin:15px 0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 24px}
.lf .hand-power{border-left:2px solid #9a875a;padding:0 0 0 12px;min-width:0}
.lf .hand-power strong{display:block;font:600 12px/1.5 var(--sans);color:#efdab0;overflow-wrap:anywhere}
.lf .hand-power p{font:13px/1.6 var(--sans);color:#e1dece;margin:5px 0}
.lf .hand-power small{font:11px/1.5 var(--sans);color:#c8c7b8}
.lf #inactive-powers summary{min-height:44px;display:flex;align-items:center;font:12px var(--sans);cursor:pointer}
.lf #inactive-power-list{font:12px/1.6 var(--sans);color:#c8c7b8}
.lf .starter-keepsake{display:grid;gap:6px;border-left:2px solid #c2a779;padding:4px 0 4px 14px;margin:16px 0;color:#ebe3cf;font:13px/1.6 var(--sans)}
.lf .starter-keepsake strong{font:400 21px/1.25 var(--serif);color:#f0dab0}
.lf .starter-power{grid-column:1/-1;width:100%;min-width:0;display:flex;align-items:center;gap:24px;padding:16px 20px;border:1px solid var(--line);border-radius:4px;background:#17251fee}
.lf .starter-power-copy{flex:1;min-width:0}
.lf .starter-power h2{font:400 25px/1.2 var(--serif);margin:5px 0 8px;color:#f0dab0}
.lf .starter-power .eyebrow{font-size:10px;margin:0;color:#c8c7b8}
.lf #starter-power-description{font:13px/1.6 var(--sans);margin:0;max-width:62ch;color:#e1dece}
.lf .starter-power-controls{flex:1;min-width:0;max-width:470px}
.lf #starter-power-result,.lf #promise-label{font:13px/1.6 var(--sans);margin:8px 0;color:#d9d6c6}
.lf #starter-power-result.is-paying{color:#efdab0}
.lf .promise-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.lf .promise-option{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:48px;padding:9px 12px;font:13px/1.4 var(--sans)}
.lf .promise-option strong{white-space:nowrap;font-size:12px}
.lf .promise-option span{font:inherit;background:none;padding:0;letter-spacing:0;text-transform:none}
.lf #starter-power-help summary{font:13px/1.5 var(--sans);min-height:44px;display:flex;align-items:center;cursor:pointer;color:#d9d6c6}
.lf #starter-power-help summary[hidden]{display:none}
.lf #starter-power-help summary:before{content:'+ ';margin-right:8px}
.lf #starter-power-help[open] summary:before{content:'− '}
.lf .promise-option[aria-pressed=true]{border:2px solid #e5c282;background:#304039;color:#fff1d6;padding:8px 11px}
.lf .promise-option[aria-pressed=true] span:before{content:'✓ ';font-weight:700}
.lf #burn-discard{min-height:48px;font:600 13px/1.5 var(--sans);padding:10px 16px}
@media(max-width:650px){
 .lf.rule-card-game .run-controls{display:flex;flex-direction:row;align-items:center;justify-content:flex-end;gap:8px}
 .lf.rule-card-game .run-controls button{font-size:12px}
 .lf .hand-preparation{order:0;padding-top:0}
 .lf .hand-power-list{grid-template-columns:1fr;gap:14px}
 .lf .hand-powers{order:2}
 .lf .preparation-actions{order:3;position:sticky;bottom:0;z-index:10;background:#18241f;flex-direction:column;align-items:stretch;gap:10px;padding:12px 0 calc(12px + env(safe-area-inset-bottom,0px))}
 .lf #preparation-ready{font-size:12px}
 .lf #begin-hand{justify-content:center}
 .lf #preparation-note{font-size:14px}
 .lf .starter-power{order:0;flex-direction:column;align-items:stretch;gap:8px;padding:14px}
 .lf .starter-power-controls{max-width:none}
 .lf .starter-power h2{font-size:23px}
 .lf #burn-discard{width:100%}
}
