/* Semantic type scale, not a global font-size reset. The title logo remains bespoke. */
:root{--ui-page-title:24px;--ui-section-title:18px;--ui-name:16px;--ui-action:16px;--ui-body:14px;--ui-meta:12px;--ui-cursor:9px;--ui-cursor-slot:12px}
.review-heading h1,.storage-page h1{font-size:var(--ui-page-title);line-height:32px}
.review-summary h2,.review-learner h2,.storage-page h2,.journey-ending-collection h2{font-size:var(--ui-section-title);line-height:26px;font-weight:400}
.review-actions button,.review-supplies button,.journey-actions button,.journey-offers button,.export-actions button,.export-actions a,.storage-context-actions button{font-size:var(--ui-action);line-height:24px}
.review-comparison .review-effect{font-size:var(--ui-body)!important;line-height:22px!important}
.review-comparison dl>div,.review-choice-window .review-move-grid small{font-size:var(--ui-meta);line-height:20px}
#party-dialog .roster-line b,.storage-grid span,.capture-team-grid b{font-size:var(--ui-name);line-height:22px;white-space:normal;overflow-wrap:anywhere}
.capture-team-heading h2{font-size:var(--ui-section-title);line-height:26px}.capture-team-heading button{font-size:var(--ui-body);line-height:22px}
.combat-status b,.combat-status>div>span{font-size:var(--ui-body);line-height:18px}.combat-status b small{font-size:var(--ui-meta);line-height:18px}
.combat-actions>button,.combat-actions>details>summary{font-size:var(--ui-action)!important;line-height:24px;min-height:44px}
.combat-actions{flex-wrap:wrap}.combat-actions>button,.combat-actions>details{flex-shrink:0}
/* Every textual menu uses the same small glyph; preserve each established grid slot. */
.cursor-menu [data-menu-option]::before,.review-choice-window .review-move-name i,.journey-offers button>span,.route .journey .choices button::before{font-family:monospace;font-size:var(--ui-cursor)!important;font-weight:400;letter-spacing:0;line-height:16px}
.review-choice-window .review-move-name i,.journey-offers button>span{display:inline-flex;align-items:center;justify-content:center;width:var(--ui-cursor-slot);min-width:var(--ui-cursor-slot);height:16px;flex:none}
.cursor-menu [data-menu-option]::before{vertical-align:middle}
@media(max-width:600px){:root{--ui-page-title:20px}.review-heading h1,.storage-page h1{line-height:28px}}
@media(max-width:360px){.combat-actions{gap:4px 10px!important}.combat-actions>button,.combat-actions>details>summary{padding:0 4px!important}.review-comparison{min-height:0}.review-comparison .review-effect{min-height:88px}.capture-team-grid{column-gap:8px}}
/* Pointer modality is not keyboard navigation. Preserve game-state triangles. */
html[data-input-mode=pointer] :is(button,a,summary):focus{outline:none!important}
html[data-input-mode=pointer] #party-dialog [data-close-party]:focus-visible .party-close-glyph{outline:0;border:1px solid #62655e}
button,summary,[role=button]{-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}
/* Suppress browser double-tap zoom, while retaining panning and pinch zoom. */
#app,dialog,.prototype-tools,.review-confirm-backdrop{touch-action:manipulation}
/* Command cells must size to their text, not share a zero-basis flex row. */
.combat-console{grid-template-rows:minmax(170px,1fr) auto 84px auto}
.combat-actions{display:flex;flex-wrap:wrap;align-content:start}
.combat-actions>button,.combat-actions>.combat-items,.combat-actions .primary{flex:0 1 auto;min-width:max-content}
.combat-actions>button,.combat-actions>details>summary{justify-content:flex-start}
@media(max-width:650px){
 .combat-console{grid-template-rows:minmax(170px,1fr) auto 80px auto}
 .combat-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 4px!important}
 .combat-actions>button,.combat-actions>.combat-items{min-width:0;width:auto}
 .combat-actions>button,.combat-actions>details>summary{white-space:normal;overflow-wrap:anywhere;height:auto;min-height:44px;font-size:14px!important;line-height:20px}
 .combat-actions>button:only-child{grid-column:1/-1;justify-content:center}
 .battle-page{min-height:680px}
}

/* Player choices use the same optical cursor size as other action menus. */
.player-options button::before,.player-confirm::before{font-size:var(--ui-cursor);line-height:1;width:var(--ui-cursor-slot);text-align:center;display:inline-block;flex:none}
.player-options button::before{transform:translateY(-50%)}
.player-confirm{font-size:var(--ui-action);display:flex;align-items:center;gap:8px}
.player-confirm::before{margin-right:0}
