/* QA2: controles y lectura C5, sin modificar el arte. */
body.chapter-v5[data-chapter="c5"] #game #content .c5-scene-code{font:12px/1.3 "Atkinson Hyperlegible",sans-serif;letter-spacing:.03em;color:#bdb0c7;margin:0 0 12px;font-style:normal}
body.chapter-v5[data-chapter="c5"] #game[data-voice="narration"] .speaker-row{display:none}
body.chapter-v5[data-chapter="c5"] #game #content .c5-legacy-notice{font:14px/1.45 "Atkinson Hyperlegible",sans-serif;color:#cbbdd1;margin:16px 0 0}
body[data-chapter="c5"] #discovery-toast{max-width:360px;max-height:100px;overflow:auto}
body[data-chapter="c5"] .c5-editor,body[data-chapter="c5"] .c5-preparation,body[data-chapter="c5"] .c5-premortem{font-size:16px;line-height:1.45;margin:16px 0;padding:16px;border:1px solid #81708c;border-radius:8px;background:#241a2c}
body[data-chapter="c5"] .c5-editor p,body[data-chapter="c5"] .c5-preparation p,body[data-chapter="c5"] .c5-premortem p{font-size:16px}
body[data-chapter="c5"] .c5-plan-card{border-top:1px solid #675672;padding:12px 0}
body[data-chapter="c5"] summary{cursor:pointer;min-height:44px;align-content:center}
body[data-chapter="c5"] .c5-editor form{display:grid;gap:12px}
body[data-chapter="c5"] .c5-editor label{display:grid;gap:6px;font-size:16px;color:#f6eedf}
body[data-chapter="c5"] .c5-editor textarea{box-sizing:border-box;width:100%;min-height:70px;resize:vertical;font:16px/1.4 Atkinson,sans-serif;color:#fff8eb;background:#17101f;border:1px solid #b6a18a;border-radius:5px;padding:10px}
body[data-chapter="c5"] .c5-preparation label{display:flex;gap:12px;margin:12px 0;min-height:44px;font-size:16px;align-items:start}
body[data-chapter="c5"] .c5-preparation input{width:24px;height:24px;flex:none;accent-color:#d6b47c}
body[data-chapter="c5"] .c5-preparation label span span{display:block}
body[data-chapter="c5"] .c5-error{font-size:16px;color:#f7d3b7;margin:8px 0}
body[data-chapter="c5"] .c5-board-card{border:1px solid #aa8d61;border-radius:8px;background:#fff2d7;color:#2c2130;padding:18px;margin:16px 0;font-size:16px;line-height:1.5}
body[data-chapter="c5"] .c5-board-card h3{color:#37263d;margin-top:0}
body[data-chapter="c5"] .c5-board-card dl{display:grid;grid-template-columns:minmax(110px,1fr) 3fr;gap:8px 16px;margin:0}
body[data-chapter="c5"] .c5-board-card dt{font-weight:bold}
body[data-chapter="c5"] .c5-board-card dd{margin:0;overflow-wrap:anywhere}
body[data-chapter="c5"] #production-board p,body[data-chapter="c5"] #production-board button{font-size:16px;line-height:1.5}
body[data-chapter="c5"] .c5-option{min-width:0;border:1px solid #65516d;border-radius:8px}
body[data-chapter="c5"] .c5-option>button{width:100%;margin:0}
body[data-chapter="c5"] .c5-option-details{padding:0 12px;font-size:16px;line-height:1.4}
body[data-chapter="c5"] .c5-option-details .choice-detail{display:block;white-space:normal;font-size:16px;line-height:1.4;padding-bottom:10px}
body[data-chapter="c5"] .c5-options-notice{flex:none;font:14px/1.35 Atkinson,sans-serif;color:#eddfc6;margin:8px 0 0;padding:8px 10px;border-top:1px solid #65516d}
body.chapter-v5[data-chapter="c5"] #game #c5-options-notice{width:100%;min-height:44px;max-height:none;background:none;border:0;border-top:1px solid #65516d;border-radius:0;box-shadow:none;filter:none;font:14px/1.35 "Atkinson Hyperlegible",sans-serif;color:#eddfc6;text-align:left;text-decoration:underline;margin:4px 0 0;padding:8px 10px}
body.chapter-v5[data-chapter="c5"] #game #content .c5-case-notes{font-size:var(--font);line-height:1.5;border-top:1px solid #65516d;margin:12px 0 0}
body.chapter-v5[data-chapter="c5"] #game .c5-case-notes summary{font:16px/1.4 "Atkinson Hyperlegible",sans-serif;color:#dbc18f;min-height:44px;padding:10px 0;box-sizing:border-box}
body[data-chapter="c5"] .c5-case-notes dl{display:grid;grid-template-columns:minmax(110px,1fr) 2fr;gap:8px 16px}
body[data-chapter="c5"] .c5-case-notes dt{font-weight:700}
body[data-chapter="c5"] .c5-case-notes dd{margin:0}
body.chapter-v5[data-chapter="c5"] #game #content .c5-form-feedback,body.chapter-v5[data-chapter="c5"] #game .c5-form-feedback{font:14px/1.4 "Atkinson Hyperlegible",sans-serif;color:#eddfc6;width:100%;margin:0}
body.chapter-v5[data-chapter="c5"] #game .c5-money-cost{font:14px/1.35 "Atkinson Hyperlegible",sans-serif;color:#eddfc6;display:block;margin-top:6px}
body.chapter-v5[data-chapter="c5"] #game #content .exchange-narration:focus{outline:none}
body.chapter-v5[data-chapter="c5"] #game[data-c5-editor="true"] .dialogue{height:min(62svh,calc(100svh - var(--header-overlay,90px) - 90px));max-height:min(62svh,calc(100svh - var(--header-overlay,90px) - 90px))}
@media(max-width:760px){
 body[data-chapter="c5"] .c5-case-notes dl{grid-template-columns:1fr;gap:4px}
 body[data-chapter="c5"] .c5-case-notes dd{margin-bottom:10px}
 body[data-chapter="c5"] .c5-board-card dl{grid-template-columns:1fr;gap:0}
 body[data-chapter="c5"] .c5-board-card dd{margin:0 0 12px}
 body[data-chapter="c5"] #game .c5-options-notice{max-height:none;overflow:visible}
 body.chapter-v5[data-chapter="c5"] #game #discovery-toast{position:absolute;top:var(--header-overlay,90px);left:12px;right:12px;margin:0;max-height:85px}
 body.chapter-v5[data-chapter="c5"] #game .choices{gap:8px}
 body.chapter-v5[data-chapter="c5"] #game .choices button{padding:10px;font-size:16px}
 body.chapter-v5[data-chapter="c5"] #game .choices .choice-body{display:flex;flex-direction:column;align-items:flex-start;gap:6px;min-width:0}
 body.chapter-v5[data-chapter="c5"] #game .choices .choice-label{font-size:16px;line-height:1.3}
 body.chapter-v5[data-chapter="c5"] #game #actions{flex-wrap:wrap;gap:8px}
 body.chapter-v5[data-chapter="c5"] #game #actions button{min-height:44px;font-size:16px;padding:8px 12px}
}
