/* Commands and difficulty remain native buttons in both phone orientations. */
#character-select { justify-content: flex-start; overflow-y: auto; padding: 22px 12px; gap: 10px; }
#character-select .char-select-subtitle { margin-bottom: 6px; }
#character-select .start-btn { margin-top: 10px; flex-shrink: 0; }
.difficulty-picker { width: min(600px, 100%); border: 0; padding: 6px 0; margin: 0; }
.difficulty-picker legend { font-size:calc(15px * var(--ui-scale, 1)); color: #ffd49b; padding: 0 0 8px; }
.difficulty-options { display: flex; gap: 8px; }
.difficulty-option { flex: 1; min-height: 44px; padding: 9px 6px; color: #dfeaf4; background: #142d48; border: 1px solid #698ba4; border-radius: 8px; font: inherit; font-size:calc(13px * var(--ui-scale, 1)); }
.difficulty-option[aria-pressed="true"] { border-color: #ffd49b; background: #4d3c2a; color: #fff3dc; }
.difficulty-description { font-size:calc(12px * var(--ui-scale, 1)); line-height: 1.6; margin: 8px 0 0; min-height: 40px; color: #c6d7e8; }
.character-voice-preview { width: min(600px, 100%); margin: 0; min-height: 2.8em; font-size:calc(13px * var(--ui-scale, 1)); color: #f4dbb0; text-align: center; line-height: 1.5; }
.battle-targets { display: flex; gap: 8px; padding: 0 0 6px; }
.battle-target { flex: 1; min-height: 44px; border: 1px solid #7399b0; border-radius: 8px; background: #122e40; color: #e2edf5; font: inherit; font-size:calc(12px * var(--ui-scale, 1)); padding: 8px; }
.battle-target[aria-pressed="true"] { background: #453b24; border-color: #ffd18b; color: #fff0d5; }
.battle-target:disabled { opacity: .5; }
.battle-intent { white-space: pre-line; }
.battle-mode .battle-enemy-health { line-height: 1.5; }
@media (max-width: 700px) { #character-select { padding-top: 16px; } .difficulty-description { min-height: 0; } }
@media (max-height: 480px) and (orientation: landscape) { #character-select { gap: 5px; } .difficulty-picker { padding: 2px 0; } .difficulty-description { margin-top: 4px; } .battle-target { padding: 5px; } }
@media (prefers-reduced-motion: reduce) { .difficulty-option, .battle-target { transition: none; } }
/* Clarity sample: one enemy panel owns HP, present stance, and next intent. */
.battle-mode .battle-enemy-health,.battle-mode .support-roster{display:none}
#battle-menu .battle-intent{white-space:normal;flex-basis:100%;padding:4px 8px;margin:0;min-width:0}
.battle-clarity-header{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:4px}
.battle-help-button{min-height:44px;padding:6px 14px;background:#123744;color:#eaffff;border:1px solid #8ed9cc;border-radius:8px;font:inherit;cursor:pointer}
#battle-menu .battle-targets{display:flex;gap:6px;margin:0}
#battle-menu .enemy-fact{flex:1;min-width:0;display:grid;grid-template-columns:1fr auto;gap:2px 8px;padding:6px 9px;border:1px solid #75aaa9;border-radius:8px;background:#123342;color:#fff;font:inherit;text-align:left;white-space:normal}
.enemy-fact>strong{font-size:calc(14px * var(--ui-scale, 1))}.enemy-fact>span:not([data-health-index]),.enemy-fact>small{grid-column:1/-1}
.enemy-fact>span{font-size:calc(13px * var(--ui-scale, 1));line-height:1.35}.enemy-fact>small{font-size:calc(12px * var(--ui-scale, 1));color:#c1e4df}
#battle-menu .enemy-fact[aria-pressed="true"]{outline:2px solid #d7ec9c;outline-offset:-2px}
#battle-menu .enemy-fact.enemy-danger .enemy-next{color:#ffe1a8;font-weight:bold}
.battle-support-clock{margin:3px 0 0;font-size:calc(12px * var(--ui-scale, 1));color:#d1eee8;line-height:1.4}
.learning-help{position:fixed;inset:0;margin:auto;height:fit-content;box-sizing:border-box;width:min(650px,calc(100vw - 24px));max-height:calc(100dvh - 24px);padding:20px;color:#f1ffff;background:#102c3e;border:2px solid #83d7cc;border-radius:14px;overflow:auto;font-family:inherit;line-height:1.7}
.learning-help::backdrop{background:#061723bb}.learning-help h2{font-size:calc(19px * var(--ui-scale, 1));margin:0 0 12px}
.learning-help p{margin:10px 0}.learning-help details{border-bottom:1px solid #597c86;padding:6px 0}
.learning-help summary{min-height:44px;cursor:pointer;padding:6px 0;box-sizing:border-box}
.learning-help>button{display:block;margin:14px 0 0 auto;min-height:44px;min-width:110px;padding:9px 14px;background:#d5eabc;color:#102c3e;border:0;border-radius:8px;font:inherit;cursor:pointer}
.learning-help>.learning-skip{float:left;background:transparent;color:#e8f5ec;border:1px solid #83d7cc;margin-right:8px}
.learning-help :focus-visible,.battle-help-button:focus-visible{outline:3px solid #ffe3a1;outline-offset:2px}
@media (max-width:700px) and (orientation:portrait){#battle-menu .enemy-fact{grid-template-columns:1fr;padding:5px 7px;gap:1px}.enemy-fact>strong{font-size:calc(13px * var(--ui-scale, 1))}.enemy-fact>span{font-size:calc(12px * var(--ui-scale, 1))}.enemy-fact>small{font-size:calc(11px * var(--ui-scale, 1))}.battle-clarity-header{margin-bottom:2px}.battle-help-button{min-height:44px;padding:4px 10px}}
@media (max-height:500px) and (orientation:landscape){#battle-menu .battle-intent{flex:1 1 48%;padding:0}#battle-menu .enemy-fact{padding:4px 7px}.battle-clarity-header>strong{font-size:calc(13px * var(--ui-scale, 1))}.battle-help-button{padding:3px 9px}#battle-menu .party-status{max-width:25%;flex:1 1 20%}#battle-menu .action-menu{flex:1 1 22%}}
