/* Action/reaction UI 0.47.5 — inherits the existing CRT shell in both themes. */
:root #game-shell .scene-heading {display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:9px 0;border-bottom:1px solid var(--shell-line)}
:root #game-shell .scene-heading>span {font:10px var(--pixel);color:var(--shell-sub)}
:root #game-shell .scene-heading #scene-title {font:700 13px var(--pixel);flex:1;min-width:0;overflow-wrap:anywhere}
:root #game-shell #scene-close,:root #game-shell .compact-close {width:28px;min-width:28px;height:28px;min-height:28px;padding:0!important;flex:none;border:1px solid var(--shell-line);font:18px var(--mono);background:var(--shell-input);color:var(--shell-text)}
:root #game-shell #scene-back {min-width:0;min-height:28px;padding:4px 6px!important;font-size:10px!important}
:root #game-shell .scene-module-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
:root #game-shell .scene-module {display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:5px;padding:12px!important;min-height:72px;text-align:left;white-space:normal;min-width:0;border:1px solid var(--shell-line);background:var(--shell-input)!important}
:root #game-shell .scene-module strong {font:700 calc(13px * var(--type-scale)) var(--pixel);color:var(--shell-text)!important}
:root #game-shell .scene-module small {font:calc(11px * var(--type-scale))/1.65 var(--pixel);color:var(--shell-sub)!important;overflow-wrap:anywhere}
:root #game-shell .scene-module:hover:not(:disabled),:root #game-shell .combat-choice:hover:not(:disabled) {border-color:var(--shell-accent);background:var(--shell-raised)!important}
:root #game-shell .scene-deck .scene-surface-head {display:none!important}
:root #game-shell .reaction-detail .micro-label {display:none!important}
:root #game-shell .reaction-detail .panel {margin-block:6px;background:transparent!important}
:root #game-shell .reaction-detail .system-view>.panel:first-child>.section-header h2 {font-size:14px!important}
:root #game-shell .reaction-story {padding:0;background:none;border:0;color:var(--shell-text)}
:root #game-shell .reaction-story h3 {font:700 calc(16px * var(--type-scale)) var(--pixel);margin:0 0 9px;color:var(--shell-accent)!important}
:root #game-shell .reaction-story p,:root #game-shell .reaction-findings p,:root #game-shell .reaction-contact p {font:calc(13px * var(--type-scale))/1.85 var(--pixel);white-space:pre-wrap;overflow-wrap:anywhere;margin:5px 0 10px}
:root #game-shell .reaction-findings {margin:9px 0;padding:0}
:root #game-shell .reaction-options {display:flex;gap:7px;flex-wrap:wrap;margin-top:12px}
:root #game-shell .reaction-options button,:root #game-shell .reaction-findings button {font:calc(12px * var(--type-scale))/1.5 var(--pixel);min-height:36px;padding:7px 12px!important;white-space:normal;text-align:left;width:auto;min-width:0;background:var(--shell-input)!important;color:var(--shell-text);border:1px solid var(--shell-line);overflow-wrap:anywhere}
:root #game-shell .reaction-contact {display:grid;grid-template-columns:44px minmax(0,1fr);gap:14px;margin-top:14px;padding:13px 0;border-block:1px dashed var(--shell-line)}
:root #game-shell .reaction-contact h3 {font:700 14px var(--pixel);margin:0;color:var(--shell-accent)}
.contact-emblem svg {width:40px;height:40px;color:var(--shell-accent)}
:root #game-shell .contact-attack {border-color:var(--shell-accent)!important}
:root #game-shell .combat-primary {display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;align-items:stretch}
:root #game-shell .combat-choice {display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;min-width:0;gap:5px;padding:10px!important;min-height:70px;border:1px solid var(--shell-line);background:var(--shell-input)!important;color:var(--shell-text);white-space:normal;text-align:left}
:root #game-shell .combat-choice strong {font:700 calc(13px * var(--type-scale)) var(--pixel);overflow-wrap:anywhere}
:root #game-shell .combat-choice small {font:calc(10px * var(--type-scale))/1.6 var(--pixel);color:var(--shell-sub);overflow-wrap:anywhere}
:root #game-shell .combat-choice.selected {border-color:var(--shell-accent);box-shadow:inset 0 -2px var(--shell-accent)}
:root #game-shell .combat-subchoices {margin:10px 0 0;padding:10px;border:1px solid var(--shell-line);background:var(--shell-raised)}
.combat-subheading {display:flex;justify-content:space-between;align-items:center;margin-bottom:8px;font:12px var(--pixel)}
.combat-branch-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.combat-branch-grid.body-choices {grid-template-columns:repeat(3,minmax(0,1fr))}
:root #game-shell .enemy-target {position:relative;display:flex;flex-direction:column;align-items:center;margin:auto;gap:6px;background:transparent!important;border:0!important;width:min(100%,230px);padding:8px!important}
:root #game-shell .reaction-command-error {color:var(--shell-danger)!important}
:root #game-shell #reaction-combat-log {max-height:220px;overflow:auto;overscroll-behavior:contain}
:root #game-shell .enemy-tell {color:var(--shell-accent)}
:root #game-shell .battle-position-panel {padding:6px 0;font:11px/1.65 var(--pixel)}
:root #game-shell .battle-position-panel .raid-map {max-width:300px;width:100%;margin:10px auto}
:root #game-shell .battle-position-panel .raid-tile {min-width:0;min-height:28px;height:auto;aspect-ratio:1;padding:2px!important;font:14px var(--mono);border-radius:0!important}
:root #game-shell .battle-position-panel .raid-tile:disabled {opacity:1;color:var(--shell-sub)}
:root #game-shell .battle-position-panel .raid-tile[data-command] {border-color:var(--shell-accent);cursor:pointer}
:root #game-shell .combat-wait {font:11px/1.6 var(--pixel);color:var(--shell-sub)}
:root #game-shell .scene-module:disabled,:root #game-shell .combat-choice:disabled {opacity:.45;cursor:not-allowed}
:root #game-shell .reaction-window :focus-visible,:root #game-shell .scene-deck :focus-visible,:root #game-shell .reaction-actions :focus-visible {outline:2px solid var(--shell-accent);outline-offset:3px}
@media(max-width:1250px){:root #game-shell .combat-primary {grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:540px){:root #game-shell .scene-module{padding:9px!important;min-height:90px}:root #game-shell .combat-primary{grid-template-columns:repeat(3,minmax(0,1fr))}:root #game-shell .combat-choice{padding:8px!important;min-height:80px}:root #game-shell .reaction-contact{grid-template-columns:30px minmax(0,1fr);gap:10px}.contact-emblem svg{width:28px;height:28px}:root #game-shell .scene-heading>span{font-size:9px}}

:root #game-shell .combat-receipt {font:12px/1.7 var(--pixel);color:var(--shell-accent);margin-top:8px}
