/* @group RESET */

body, div, dl, dt, dd, ul, ol, li, h1, h2, h3, h4, h5, h6, pre, form, fieldset, input, textarea, p, blockquote, th, td {
    margin:0;
    padding:0;
}
table {
    border-collapse:collapse;
    border-spacing:0;
}
fieldset, img {
    border:0;
}
address, caption, cite, code, dfn, em, th, var {
    font-style:normal;
    font-weight:normal;
}
ol, ul {
    list-style:none;
}
caption, th {
    text-align:left;
}
h1, h2, h3, h4, h5, h6 {
    font-size:100%;
    font-weight:normal;
}
q:before, q:after {
    content:'';
}
abbr, acronym {
    border:0;
}
.italic {
    font-style:italic !important;
}
.f_lef {
    float:left;
}
.f_rig {
    float:right;
}
.floatleft {
    float: left;
}
.floatright {
    float: right;
}
/* @end */

/* @group MINISL */

body {
    margin:0;
    padding:0;
    background: #444;
}

#loading {
    position: relative;
	width: 100%;
	height: 100%;
    background-color: #000;
    color: white;
}
#loading_image {
}
#rules {
    position: relative;
	width: 100%;
	height: 100%;
    background-color: #000;
    color: white;
}
#splash_header {
	font-size: 36px;
    font-family: Helvetica, Arial, Sans-Serif;
	color: #ddd;
    padding-top: 16px;
    padding-left: 16px;
    padding-bottom: 0px;
}
#splash_subheader {
	font-size: 28px;
    font-family: Helvetica, Arial, Sans-Serif;
	color: #bbb;
    padding: 16px;
}
#splash_description {
    padding: 16px;
	font-size: 18px;
    font-family: Helvetica, Arial, Sans-Serif;
	color: #bbb;
}
#splash_how_to_description {
    padding: 16px;
	font-size: 18px;
    font-family: Helvetica, Arial, Sans-Serif;
	color: #bbb;
}
#splash_launch {
    padding: 16px;
	font-size: 18px;
    font-family: Helvetica, Arial, Sans-Serif;
	color: #ddd;
}
#loading_text {
    top: 160px;
	width: 420px;
	height: 40px;
	font-size: 32px;
    font-family: Helvetica, Arial, Sans-Serif;
	color: #ddd;
	text-align: center;
	margin: 0px auto; 
}

#minisl {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

#playfield {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    cursor: move;
    background-color: #1d1f21;
}

#playfield-sizer {
    position: absolute;
    top: 0;
    left: 0;
    background-color: #1d1f21;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14'><circle cx='7' cy='7' r='1.2' fill='%23000' fill-opacity='0.55'/></svg>");
    background-repeat: repeat;
    will-change: transform;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    transform-style: preserve-3d;
}

#map {
    left: 0px;
    top: 0px;
    z-index: 30;
    width: 595px;
    height: 835px;
    overflow: hidden;
    position: absolute;
    background:url('../images/slmap1t595x835_hex60x51.png') no-repeat top left;
    will-change: transform;
    transition: transform 0.15s ease-out;
}

#zoom-label {
    font: bold 14px sans-serif;
    color: #fff;
    text-align: center;
    padding: 2px 0;
}

#map_overlay {
	width: 100%;
	height: 100%;
	position: relative;
	top: 0px;
	left: 0px;
	display: none;
    z-index: 35;
}

.faded {
    position: relative;
    left: 0px;
    top: 0px;
    opacity: 0.25;
    background-color: #000000;
    color: blue;
    width: 100%;
    height: 100%;
    z-index: 40;
}
.dialog {
    background-color: #fff;
    border: 2px solid #aaa;
    color: black;
    left: 0px;
    top: 0;
    width: 300px;
    position: relative;
    z-index: 200;
    cursor: pointer; /* task 087: whole dialog is a click target (pin/continue) */
}
.dialog table, .dialog tr, .dialog th, .dialog td { color: inherit; }
/* Click-to-pin (task 087 / Plan 12 Q4): a pinned dialog holds the playback
   queue until clicked again. Border echoes the armed-counter yellow. */
.dialog.dialog_pinned {
    border-color: #e6b800;
}
.dialog_pin_hint {
    background-color: #fff8dc;
    border-top: 1px solid #e6b800;
    color: #665200;
    font: bold 11px arial;
    padding: 3px 6px;
    text-align: center;
}
.fire_cells {
    font: bold 12px serif;
}

#sidebar {
    display: none;
    position: absolute;
    left: 0px;
    top: 100px;
    bottom: 0;
    /* Widened + darkened from the legacy 146px orange strip to host the
       task-056 stack HUD as a floating panel over the map. */
    width: 320px;
    background-color: rgba(24, 26, 28, 0.96);
    border-right: 1px solid #333;
    padding: 6px 10px;
    margin: 0px;
    z-index: 999;
    overflow-y: auto;
    box-sizing: border-box;
}
#sidebar #phaselist {
    padding: 10px 0px 0px 0px;    
}
/* Fire dialog - appears when a unit opens fire */
#fire_dialog {
    font: 14px sans-serif;
    margin: 10px;
    background-color: #dee3e2;
}
#fire_dialog h5 {
    font: bold 14px serif;
    width: 100%;
    text-align: center;
    background-color: #ccc;
}
#fire_dialog .fire_strength {
    font: bold 10px sans-serif;
    width: 100%;
    text-align: center;
}

#fire_dialog .fd_supp {
}
#fire_dialog .fd_detail {
	font-size: 10px;
	padding: 0px 0px 0px 10px;
}
#fire_dialog .fd_move {
    display: block;
    margin-left: 20px;
}
#fire_dialog .fd_short {
    display: block;
    margin-left: 20px;
}
#fire_dialog .fd_long {
    display: block;
    margin-left: 20px;
}
#fire_dialog .fd_bon {
    display: block;
    margin-left: 20px;
}
#fire_dialog .fd_res {
	border-top:  1px solid #888;
    font-weight: bold;
}
#fire_dialog .fd_sum {
	border-top:  1px solid #888;
	font-style: italic;
	padding-left: 20px;
}

/* Rally dialog (task 074) — same shell styling as the fire dialog */
#rally_dialog {
    font: 14px sans-serif;
    margin: 10px;
    background-color: #dee3e2;
}
#rally_dialog h5 {
    font: bold 14px serif;
    width: 100%;
    text-align: center;
    background-color: #ccc;
}
#rally_dialog .rd_unit {
    font: bold 13px sans-serif;
    text-align: center;
    padding: 4px 0px;
}
#rally_dialog #rd_mods {
    margin: 0 auto;
    border-collapse: collapse;
}
#rally_dialog #rd_mods td {
    padding: 1px 8px;
}
#rally_dialog .rd_label {
    font-size: 11px;
    text-align: left;
}
#rally_dialog .rd_val {
    font: bold 13px sans-serif;
    text-align: right;
}
#rally_dialog .rd_dm .rd_label,
#rally_dialog .rd_dm .rd_val {
    color: #b03000;
}
#rally_dialog .rd_needs td {
    border-top: 1px solid #888;
    font-weight: bold;
}
#rally_dialog .rd_roll {
    text-align: center;
    min-height: 70px;
    padding: 8px 0px 10px 0px;
}
#rally_dialog .rd_dice {
    margin-bottom: 4px;
}
#rally_dialog .rd_die_img {
    display: inline-block;
    border: 1px solid #bbbbbb;
    width: 25px;
    vertical-align: middle;
    margin: 0 2px;
    line-height: 0;
}
#rally_dialog .rd_die_total {
    font: bold 16px arial, serif;
    vertical-align: middle;
    margin-left: 6px;
}
#rally_dialog .rd_outcome {
    font: bold 18px arial, serif;
}
#rally_dialog .rd_outcome_rallied { color: #1a7f1a; }
#rally_dialog .rd_outcome_failed { color: #444444; }
#rally_dialog .rd_outcome_kia { color: #cc0000; }
#rally_dialog .rd_outcome_leaderPanic { color: #d2691e; }
#rally_dialog .rd_effects {
    font: italic 11px sans-serif;
    padding-top: 4px;
}

/* Close-combat dialog (task 090) — same shell as the rally dialog, plus a
   two-column stack panel. Shares the rd_* class vocabulary for the parts
   that are identical (dice, outcome, effects). */
#cc_dialog {
    font: 14px sans-serif;
    margin: 10px;
    background-color: #dee3e2;
    min-width: 240px;
}
#cc_dialog h5 {
    font: bold 14px serif;
    width: 100%;
    text-align: center;
    background-color: #ccc;
}
#cc_dialog .rd_unit {
    font: bold 13px sans-serif;
    text-align: center;
    padding: 4px 0px;
}
#cc_dialog .cc_stacks {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 8px;
    padding: 2px 8px 6px 8px;
}
#cc_dialog .cc_stack {
    text-align: center;
    min-width: 80px;
}
#cc_dialog .cc_side_name {
    font: bold 12px sans-serif;
    border-bottom: 1px solid #888;
    padding-bottom: 2px;
    margin-bottom: 3px;
    white-space: nowrap;
}
#cc_dialog .cc_side_symbol {
    vertical-align: middle;
    margin-right: 4px;
}
#cc_dialog .cc_vs {
    font: italic 12px serif;
    color: #666;
    align-self: center;
}
#cc_dialog .cc_unit_row {
    font: 13px sans-serif;
    padding: 1px 4px;
}
/* Melee-round title (task 097) — round ≥ 2 continues a locked melee */
#cc_dialog .cc_title_melee { color: #8a6d00; }
/* Per-unit fates, revealed in phase 2 */
#cc_dialog .cc_u_eliminated { color: #cc0000; text-decoration: line-through; }
#cc_dialog .cc_u_brokenKIA { color: #b03000; text-decoration: line-through; font-style: italic; }
#cc_dialog .cc_u_melee { color: #8a6d00; }
#cc_dialog .cc_u_survives { color: #1a7f1a; }
#cc_dialog #cc_mods {
    margin: 0 auto;
    border-collapse: collapse;
}
#cc_dialog #cc_mods td {
    padding: 1px 8px;
}
#cc_dialog .rd_label {
    font-size: 11px;
    text-align: left;
}
#cc_dialog .rd_val {
    font: bold 13px sans-serif;
    text-align: right;
}
#cc_dialog .rd_needs td {
    border-top: 1px solid #888;
    font-weight: bold;
}
#cc_dialog .rd_roll {
    text-align: center;
    min-height: 70px;
    padding: 8px 0px 10px 0px;
}
#cc_dialog .rd_dice {
    margin-bottom: 4px;
}
#cc_dialog .rd_die_img {
    display: inline-block;
    border: 1px solid #bbbbbb;
    width: 25px;
    vertical-align: middle;
    margin: 0 2px;
    line-height: 0;
}
#cc_dialog .rd_die_total {
    font: bold 16px arial, serif;
    vertical-align: middle;
    margin-left: 6px;
}
#cc_dialog .rd_outcome {
    font: bold 18px arial, serif;
}
#cc_dialog .cc_outcome_win { color: #cc0000; }
#cc_dialog .cc_outcome_melee { color: #8a6d00; }
#cc_dialog .cc_outcome_broken { color: #b03000; }
#cc_dialog .cc_outcome_mutual { color: #7a0000; }
/* Both-sides attack rows (rule 20.2, task 093) */
#cc_dialog .cc_roll_side {
    font: bold 11px sans-serif;
    display: inline-block;
    min-width: 62px;
    text-align: right;
    margin-right: 6px;
    vertical-align: middle;
}
#cc_dialog .cc_atk_hit {
    font: bold 11px sans-serif;
    color: #cc0000;
    margin-left: 8px;
    vertical-align: middle;
    text-transform: uppercase;
}
#cc_dialog .cc_atk_miss {
    font: bold 11px sans-serif;
    color: #888;
    margin-left: 8px;
    vertical-align: middle;
    text-transform: uppercase;
}
#cc_dialog .rd_effects {
    font: italic 11px sans-serif;
    padding-top: 4px;
}

/* Morale-check dialog (task 094) — same shell as the rally/CC dialogs.
   One table row per checked unit; dice + outcome cells fill in at the
   phase-2 reveal. Outcome colors reuse the CC fate palette (broken
   rust/amber, KIA red, holds green). */
#mc_dialog {
    font: 14px sans-serif;
    margin: 10px;
    background-color: #dee3e2;
    min-width: 260px;
}
#mc_dialog h5 {
    font: bold 14px serif;
    width: 100%;
    text-align: center;
    background-color: #ccc;
}
#mc_dialog .rd_unit {
    font: bold 13px sans-serif;
    text-align: center;
    padding: 4px 0px;
}
#mc_dialog #mc_rows {
    margin: 0 auto;
    border-collapse: collapse;
}
#mc_dialog #mc_rows td {
    padding: 2px 6px;
    vertical-align: middle;
}
#mc_dialog .rd_label {
    font-size: 12px;
    text-align: left;
    font-weight: bold;
}
#mc_dialog .rd_val {
    font-size: 11px;
    text-align: right;
    white-space: nowrap;
}
#mc_dialog .mc_was_broken {
    font: italic 10px sans-serif;
    color: #b03000;
}
#mc_dialog .mc_recheck {
    font: italic 10px sans-serif;
    color: #8a6d00;
}
#mc_dialog .mc_dice {
    min-width: 120px;
    text-align: center;
    white-space: nowrap;
}
#mc_dialog .mc_dice .rd_dice {
    margin-bottom: 0;
    white-space: nowrap;
}
#mc_dialog .rd_die_img {
    display: inline-block;
    border: 1px solid #bbbbbb;
    width: 25px;
    vertical-align: middle;
    margin: 0 2px;
    line-height: 0;
}
#mc_dialog .rd_die_total {
    font: bold 14px arial, serif;
    vertical-align: middle;
    margin-left: 4px;
}
#mc_dialog .mc_out {
    font: bold 13px arial, serif;
    text-align: left;
    min-width: 56px;
}
#mc_dialog .mc_out_holds { color: #1a7f1a; }
#mc_dialog .mc_out_broken { color: #b03000; }
#mc_dialog .mc_out_kia { color: #cc0000; }
/* Row tint mirrors the outcome so the eye can scan a long cascade */
#mc_dialog .mc_row_kia .rd_label { color: #cc0000; text-decoration: line-through; }
#mc_dialog .mc_row_broken .rd_label { color: #b03000; }
#mc_dialog .rd_roll {
    text-align: center;
    min-height: 24px;
    padding: 6px 0px 8px 0px;
}
#mc_dialog .rd_effects {
    font: italic 11px sans-serif;
    padding-top: 4px;
}

#fd_detail th {
    font-size: 12px;
    padding: 5px;
    text-align: center;
}

#fd_detail tr {
    border-left: 1px solid #afafaf;
    border-bottom: 1px solid #afafaf;
}

#fd_detail td {
    border-right: 1px solid #afafaf;
    padding: 1px 10px;
}

.fd_stk, .fd_org, .fd_str, .fd_pen {
}

.fd_label {
    font-size: 11px;
    font-weight: bold;
    text-align: right;
}

.fd_str .fd_label {
	font-size: 13px;
}

.fd_total {
    font-size: 12px;
    font-weight: bold;
    text-align: center;
}
.fd_str .fd_total {
	font-size: 14px;
}


.fd_lead,
.fd_unit,
.fd_supp {
    font-size: 10px;
    text-align: center;
}

.fd_log {
	border: 1px dashed black;
    text-align: right;
}

.fd_log_pre, .fd_log_delta, .fd_log_suf {
	font-size: 10px;
}


#results_table_div {
	margin: 10px 0px;
	padding: 0px 0px 0px 10px;
	border: 1px solid #ccc;
}
	
/* Mapper dialog - appears in editor */
#mapper_dialog {
    display: none;
    padding:4px;
}
/* @end */

/* Counter-rotation: keeps counter divs upright when the map is rotated */
.counter-wrap {
    transform: rotate(var(--counter-rot, 0deg));
    transform-origin: 20.5px 20px;
}

/* Unavailable counter (enemy side / no MP or FP left / not broken during
   rout): the figure graphic + text fade, but the side-color background stays
   at full strength — and since the counter element itself remains opaque, a
   counter stacked beneath never shows through. Toggled per frame in
   CounterView.draw(). */
.counterFaded img,
.counterFaded svg.malfX,
.counterFaded .stats,
.counterFaded .identity,
.counterFaded .brokeFig,
.counterFaded .unitInfoBroken,
.counterFaded .remaining,
.counterFaded .portage {
    opacity: 0.5;
}

/* @group Unit Markers */
.marker, .marker_leader, .marker_support {
    position:absolute;
    border: 2px solid transparent;
    width: 39px;
    height: 38px;
    z-index: 30;
    -webkit-user-select: none;
    cursor:move;
}

/*
 * Carried support weapon (task 065 / Rule 5.7). Class name is legacy; the
 * actual angle is 135° — the original −45° rendered upside-down relative to the
 * board's 90° transform, so it's flipped 180° to read right-side-up.
 */
.rot_counter_45 {
    -webkit-transform: rotate(135deg);
    -moz-transform: rotate(135deg);
    transform: rotate(135deg);
}

/*
 * Armed support weapon awaiting a carrier (task 065 / Rule 5.7 pickup). A
 * bright yellow glow makes the pending pick clearly perceptible before the
 * player clicks the unit to attach it. Pure UI state — toggled from
 * sprack-start.ts `syncArmedHighlight`.
 */
.armed_counter {
    outline: 3px solid #ffd400;
    outline-offset: 1px;
    box-shadow: 0 0 8px 3px rgba(255, 212, 0, 0.9);
    z-index: 2000;
}

/*
 * Broken unit that MUST rout this phase (Rule 13.2 — adjacent to an enemy).
 * A red-orange glow marks each such counter so the player can see at a glance
 * which units are blocking "Done", without hovering for the tooltip. Distinct
 * from the yellow selection frame and the yellow armed-weapon glow. Driven by
 * the scene-manager's must-rout snapshot diff (UPDATE_COUNTER { mustRout });
 * it clears automatically when the unit routs or the phase ends.
 */
.must_rout_counter .marker {
    outline: 3px solid #ff4d1f;
    outline-offset: 1px;
    box-shadow: 0 0 9px 3px rgba(255, 77, 31, 0.85);
    z-index: 2000;
}

/*
 * Malfunctioned support weapon the active side can attempt to repair this
 * Rally Phase (§18.2, task 102). An amber glow — distinct from the red
 * must-rout ring and yellow selection frame — marks each clickable weapon.
 * Driven by the scene-manager's repairable snapshot diff
 * (UPDATE_COUNTER { repairable }); clears on the attempt or at phase end.
 */
.repairable_counter .marker,
.repairable_counter .marker_support {
    outline: 3px solid #d9a441;
    outline-offset: 1px;
    box-shadow: 0 0 9px 3px rgba(217, 164, 65, 0.85);
    z-index: 2000;
}

/*
 * Berserk unit (§18.4, task 105). The renderer has toggled this class since
 * task 105 but the rule was never written (task 056 Slice D): a deep red
 * glow — darker than the orange must-rout ring — marks the charging unit.
 * Driven by UPDATE_COUNTER { isBerserk }; persists until the state ends.
 */
.berserk_counter .marker {
    outline: 3px solid #d40000;
    outline-offset: 1px;
    box-shadow: 0 0 9px 3px rgba(212, 0, 0, 0.85);
    z-index: 2000;
}

/*
 * PREP FIRE marker (Plan 13, 2026-07-10). A full-cover status counter drawn
 * over a unit that fired in the Prep Fire phase (Rule 6/7 — a prep-fired unit
 * may not fire again that turn). Built the same way as unit art: the pictorial
 * figure (two red muzzle-flash stars extracted from VSQL info-PrepF.gif, text
 * stripped) plus our own vector "PREP FIRE" text in the same bold arial the
 * game uses for factor text. Faithful white chit. Toggled by
 * CounterView.applyPrepFired via the scene-manager's prep-fire snapshot diff;
 * clears when prepFired resets at TURN_END. Design locked with the user via
 * tools/vassal-prep-preview.cjs (white bg, black text, 7px, bottom -1px).
 */
.prepFireMark {
    position: absolute;
    top: 0;
    left: 0;
    width: 35px;
    height: 35px;
    background-color: #fff;
    border: 1px solid #000;
    overflow: hidden;
    /* above .side (10), .stats (10), and .frame (40) — a full cover */
    z-index: 60;
}
.prepFireMark .prepStars {
    position: absolute;
    left: 2px;
    top: 3px;
    /* beat the generic `.marker img { 35x34 }` sizing (two-class specificity) */
    width: 31px;
    height: 14px;
    image-rendering: auto;
}
.prepFireMark .prepTxt {
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 37px;
    height: 20px;
    font: bold 7px arial, serif;
    line-height: 7px;
    letter-spacing: -0.02em;
    color: #000;
    text-align: center;
    z-index: 20;
}

.marker img, .marker_leader img, .marker_support img {
    width: 35px;
    height: 34px;
}

.marker_leader img {
    position: relative;
    left: -8px;    
}

.marker_support img {
    position: relative;
    left: -2px;
    top: 4px;
}

/* VSQL counter art (Plan 13 / task 068): 48x48 source downscaled to fill the
   35x35 counter face. Overrides the placeholder-tuned offsets above so the
   real artwork sits square in the .side0/.side1 frame (incl. leaders). */
.marker img.counterArt,
.marker_leader img.counterArt,
.marker_support img.counterArt {
    width: 35px;
    height: 35px;
    position: relative;
    left: 0;
    top: 0;
}

.remaining {
    font: bold 10px arial,serif;
    position: absolute;
    top: -12px;
    left:0px;
    width: 37px;
    height: 37px;
    z-index: 0;
    color: #001010;
    visibility: hidden;
    text-align: center;
    
    background: #000;
    color: #fff;
    cursor: default;
}

.shadow {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 37px;
    height: 37px;
    background-color: #000;
    opacity: 0.5;
    z-index: -10;
}

.frame {
    position: absolute;
    top: -2px;
    left:-2px;
    width: 37px;
    height: 37px;
    z-index: 40;
    border:2px solid yellow;
}

.portage {
    background: #f00;
    border: 1px solid white;
    font: bold 11px arial,serif;
    color: #fff;
    position: absolute;
    padding: 1px;
    left: -10px;
    bottom: -10px;
    width: 14px;
    height: 12px;
    z-index: 10;
    border:0px;
    text-align: center;
}

.marker_support .portage {
    display: none;
}

.marker .stats {
    font: bold 12px arial,serif;
    color: #000;
    position: absolute;
    left: 0px;
    bottom: 4px;
    width: 37px;
    height: 12px;
    z-index: 10;
    border:0px;
    text-align: center;
}

.marker_leader .stats {
    font: bold 14px arial,serif;
    color: #000;
    position: absolute;
    right: -6px;
    top: 12px;
    width: 37px;
    height: 12px;
    z-index: 10;
    border:0px;
    text-align: center;
-webkit-transform: rotate(-90deg);
-moz-transform: rotate(-90deg);
}

.marker_support .stats {
    font: bold 12px arial,serif;
    line-height: 10px;
    color: #000;
    position: absolute;
    right: 0px;
    top: 16px;
    width: 37px;
    height: 12px;
    z-index: 10;
    border:0px;
    text-align: center;
-webkit-transform: rotate(-90deg);
-moz-transform: rotate(-90deg);
}

/* Masked-art SW malfunction face (Plan 13): white "X" SVG across the side
   background. Sits under the gun figure via DOM order (svg first, img after —
   both positioned, so the later img paints on top). */
.marker_support svg.malfX {
    position: absolute;
    /* 55% of the counter face, centered */
    top: 22.5%;
    left: 22.5%;
    width: 55%;
    height: 55%;
}
/* Stroke thickness lives here (overrides the markup attribute) so tuning is
   CSS-only; viewBox units — renders at ~67% of this value on the face. */
.marker_support svg.malfX line {
    stroke-width: 4;
}

/* Masked-art support weapons (Plan 13): the VSQL text is stripped from the
   figure, so the vector block carries all three lines (LMG / 2-8 / B12) —
   normal orientation, right-aligned in the top-right like the source counter. */
.marker_support .stats.swStats {
    font: bold 8px arial,serif;
    line-height: 8px;
    /* breathing room between the text block and the counter border */
    right: 4px;
    /* 3 tight lines (24px) vertically centered on the 35px face */
    top: 5px;
    width: auto;
    height: auto;
    text-align: right;
-webkit-transform: none;
-moz-transform: none;
}

/* Russian SW (masked): factor columns read bottom-to-top (-90°) like the
   VSQL counter — the weapon name stays upright above them. writing-mode
   keeps each column a normal narrow box; rotate(180) flips vertical-rl's
   top-to-bottom flow into the VSQL bottom-to-top read. */
.marker_support .stats.swStats .swVertNum {
    display: inline-block;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    -webkit-transform: rotate(180deg);
    vertical-align: top;
    margin-left: 2px;
}

/* Malfunction face: the R1/X6 repair block — same style as the front block
   but 2 lines with breathing room (20px), re-centered on the 35px face and
   inset a bit further from the border. */
.marker_support .stats.swStats.swMalf {
    line-height: 10px;
    right: 7px;
    top: 8px;
    /* heavier than bold without jumping to Arial Black */
    -webkit-text-stroke: 0.3px #000;
}

.marker_leader .identity {
    font: bold 6px arial,serif;
    color: #000;
    position: absolute;
    right: -2px;
    top: 12px;
    width: 37px;
    height: 12px;
    z-index: 10;
    border:0px;
    text-align: center;
-webkit-transform: rotate(-90deg);
-moz-transform: rotate(-90deg);
}

.marker_support .identity {
    font: 9px arial,serif;
    color: #000;
    position: absolute;
    right: 0px;
    top: 2px;
    width: 37px;
    height: 12px;
    z-index: 10;
    border:0px;
    text-align: center;
}

.side0 {
    position: absolute;
    top: 0;
    left: 0;
    width: 35px;
    height: 35px;
    border: 1px solid black;
    z-index: 10;
    overflow: hidden;
    background-color: #878DC7;
}

.marker_leader .side0 {
    border: 1px solid black;
    /* same nation color as squads (original SL prints leaders on the same
       counter color; the old lighter #9298d5 read as a mismatch) */
    background-color: #878DC7;
}

.marker_support .side0 {
    border: 1px dotted black;
}

.marker_support .side1 {
    border: 1px dotted black;
}

.side1 {
    position: absolute;
    top: 0;
    left: 0;
    width: 35px;
    height: 35px;
    border: 1px solid black;
    z-index: 10;
    overflow: hidden;
    background-color: #B77C3D;
}
.marker_leader .side1 {
    border: 1px solid black;
    /* same nation color as squads (was the lighter #ca8944) */
    background-color: #B77C3D;
}

.part3 {
    position: absolute;
    top: 0;
    left: 0;
    width: 35px;
    height: 35px;
    z-index: 20;
    overflow: hidden;
}

/* Legacy red "BROKEN" text — the OFF/default mode broken indicator (and the
   fallback for off-roster units in any mode). Kept as the pre-Plan-13 look. */
.unitInfoBroken {
    position: absolute;
    bottom: 0px;
    left: 0px;
    font: 12px sans-serif;
    text-align: left;
    color: #f00;
    display: block;
    z-index: 40;
    pointer-events: none;
}

/* Masked-mode broken-face label (Plan 13): "Broke" at the top + the morale
   number below it, mimicking the VSQL "Broke N" counter. Black, bold
   arial,serif — matching the .stats factor text ("4-6-7"). Separate class from
   .unitInfoBroken so the off-mode red "BROKEN" is unaffected. */
.brokeFig {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 35px;
    font: bold 10px arial,serif;
    line-height: 10px;
    text-align: center;
    color: #000;
    display: block;
    z-index: 40;
    pointer-events: none;
}
/* Positioning anchor for the left-side numeral: an inline-block around "Broke"
   (still centered by .brokeFig), so left:0 on the digit = the "B" left edge. */
.brokeFig .brkGrp {
    position: relative;
    display: inline-block;
    text-align: left;
}
.brokeFig .brkMorale {
    position: absolute;
    top: 9px;
    font: bold 11px arial,serif;
    /* line box matches the tallest text in the label (the 11px numeral itself;
       "Broke" above is 10px), instead of inheriting .brokeFig's 10px. */
    line-height: 11px;
    color: #000;
}
/* Place the morale number on the side matching the VSQL counter, flush with
   the edges of the centered "Broke" word (anchored to .brkGrp). */
.brokeFig .brkMorale.brkRight { right: 0; }  /* German squads — "e" edge */
.brokeFig .brkMorale.brkLeft  {
    left: 0;   /* Russian squads + all leaders — "B" edge */
    /* tighten multi-digit morale ("10") — no visible effect on single digits */
    letter-spacing: -1px;
}

/* Broken SQUADS only (both sides): nudge the figure + "Broke N" label down 2px
   to better match the VSQL squad layout. The .artBroken class is toggled by
   applyBrokenVisual so the good-order front face sits at top:0. Leaders/SW are
   unaffected (they use .marker_leader / .marker_support). Must follow the
   combined img.counterArt rule above to override its top:0. */
.marker img.counterArt.artBroken { top: 2px; }
.marker .brokeFig { top: 2px; }
/* Leaders: "Broke N" label at the same vertical position as squads (the
   figure itself stays unnudged — only squads' art shifts down). */
.marker_leader .brokeFig { top: 2px; }

.unitInfoDM {
    position: absolute;
    bottom: 0px;
    right: 0px;
    font: 12px sans-serif;
    text-align: right;
    color: #f00;
    display:block;
    z-index: 40;
}

.tooltip {
    font: 14px bold sans-serif;
    position:relative;
    left: 40px;
    top: -40px;
    z-Index: 1000 !important;
    width: 100px;
    height: 60px;
    background-color: #fff;
    border: 1px #000 solid;
    display: block;
    border-radius: 4px;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    padding: 6px;
    cursor: default;
    overflow: hidden;

    -webkit-transition: all 1s ease-in-out;
    -moz-transition: all 1s ease-in-out;
    -o-transition: all 1s ease-in-out;
    opacity: 1.0;
}

/* tooltip_faded MUST be away from the Unit so that it doesn't accept Mouse input*/
.tooltip_faded {
    font: 14px bold sans-serif;
    position:relative;
    left: 40px;
    top: -40px;
    z-Index: 1000;
    width: 0px;
    height: 0px;
    background-color: #fff;
    border: 1px #000 solid;
    display: block;
    border-radius: 4px;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    padding: 6px;
    cursor: default;
    overflow: hidden;
    
    -webkit-transition: all 1s ease-in-out;
    -moz-transition: all 1s ease-in-out;
    -o-transition: all 1s ease-in-out;
    opacity: 0;
}

#side0, #side1 {
    overflow: hidden;
    -webkit-transition: all 1s ease-in-out;
    -moz-transition: all 1s ease-in-out;
    -o-transition: all 1s ease-in-out;
}

/* @end */

#unitInfo {
    width: 100%;
	
    font: 12px arial,serif;
    color: #000;
    text-align: right;
    background:#888;
}

#unitInfo h5 {
    font: bold 18px arial,serif;
    color: #fff;
    text-align: center;
}

#unitInfo .count {
    font: 16px arial,serif;
    color: #ccc;
    text-align: center;
}

#unitInfo .fire {
    font: 16px arial,serif;
    color: #ccc;
    text-align: center;
}

#unitInfo_firepower, #unitInfo_count {
    width: 40px;
    font: bold 18px arial,serif;
    color: #fff;
    text-align: center;
}

#unitInfo .stackUnit {
  border: 1px solid black;
  font-weight: bold;
  font: 18px arial,serif;
  color: #fff;
  text-align: left;
}

#stack_u0, #stack_u1, #stack_u2, #stack_u3 {
    font: 18px arial,serif;
    color: #fff;
    text-align: center;
}

.phase {
	padding: 0px;
	margin: 0px;
	border: 2px solid; 
}
.phase p {
	font: italic bold 14px arial,serif;
	padding-left: 5px;
	display: inline;
    vertical-align: middle;
}
.phase img {
    padding: 2px;
    margin: 0px;
    vertical-align: middle;
}
.currentPhase {
	border-color: black; 
	background-color: #f0b440;
    -webkit-transition: all 1s ease-in-out;
    -moz-transition: all 1s ease-in-out;
    -o-transition: all 1s ease-in-out;
}
.otherPhase {
	border-color: transparent;
    -webkit-transition: all 1s ease-in-out;
    -moz-transition: all 1s ease-in-out;
    -o-transition: all 1s ease-in-out;
}


/* @group Game Header */
#fc-status-widget {
    display: flex;
    align-items: center;
    gap: 12px;
}

#headerPhase {
    display: flex;
    align-items: center;
    height: 28px;
    padding: 0 4px;
    background: transparent;
    border: none;
    border-radius: 0;
    box-sizing: border-box;
}

#headerPhase img {
    width: 22px;
    height: 22px;
    margin-right: 8px;
    vertical-align: middle;
}

#headerPhase .side-name {
    font: bold 14px arial,serif;
    color: #fff;
    margin-right: 6px;
}

#headerPhase .phase-name {
    font: italic bold 14px arial,serif;
    color: #ffcd03;
}

#turn_side {
    font: italic 12px arial,serif;
    color: #ccc;
}

#turn_side .attacker-name {
    color: #fff;
    font-weight: bold;
}

#turn_desc {
    margin: 0;
}

.button_Done {
	margin: 5px auto;
}

.button_Done input {
	width: 150px;
	border-style: solid;
	border-width: 0px 0px 0px 1px;
	border-radius: 8px;
    -webkit-border-radius: 8px;
    -moz-border-radius: 8px;
	font: bold 18px/normal Trebuchet, Tahoma, Arial, sans-serif;
	padding: 7px 13px;
	text-align: center;
	text-decoration: none;
	vertical-align: middle;
	margin: 0px auto;
}
.button_Done input {
	background-color: #78D103;
	border-color: #91D254;
	color: #000;
	text-shadow: #73B01F 0px 0px 1px;
}

.button_Done input:hover{
	background-color:#ffcd03;
	border-color:#BC9600;
/*
	color:#FFF;
*/
	text-shadow:#A88700 0 0 1px;
}

.button_Done input:disabled,
.button_Done input:disabled:hover {
	background-color: #555;
	border-color: #444;
	color: #999;
	text-shadow: none;
	cursor: not-allowed;
	opacity: 0.6;
}

.button_Done, .button_Done input {
	display: block;
}

.sidebutton {
	margin: 5px auto;
}

.sidebutton input {
/*
    display: inline-block;
*/
    width: 95%;
    margin-left: 3px;
    outline: none;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    font: 16px/100% Arial, Helvetica, sans-serif;
    height: 32px;
/*
    padding: .5em 2em .55em;
    text-shadow: 0 1px 1px rgba(0,0,0,.3);
*/
    -webkit-border-radius: .5em; 
    -moz-border-radius: .5em;
    border-radius: .5em;
    -webkit-box-shadow: 0 1px 2px rgba(0,0,0,.2);
    -moz-box-shadow: 0 1px 2px rgba(0,0,0,.2);
    box-shadow: 0 1px 2px rgba(0,0,0,.2);

    color: #000000;
    border: solid 1px #BC9600;
	background:#ffcd03;
    background: -webkit-gradient(linear, left top, left bottom, from(#ffeb98), to(#ffcd03));
    background: -moz-linear-gradient(top,  #ffeb98,  #ffcd03);
    filter:  progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffeb98', endColorstr='#ffcd03');
}

.sidebutton2 input {
	border-style: solid;
	border-width: 0px 0px 0px 1px;
	border-radius: 16px;
    -webkit-border-radius: 16px;
    -moz-border-radius: 16px;
	font: bold 14px sans-serif;
	text-align: center;
	text-decoration: none;
	vertical-align: middle;
	background-color:#ffcd03;
	border: 1px solid #BC9600;
	color:#000;
	display: block;
	width: 100%;
	height: 26px;
/*
	font-size: 16px;
*/
	padding: 1px 1px;
	margin: 0px auto;
}

.sidebutton input:hover{
	background-color: #f00;
	border: 1px solid #fff;
/*
	color: #fff;
*/
}

.sb_collapse {

}
.sb_deselect {

}

.fc-widget .turn_bar {
	background: transparent;
	margin: 0;
}

.fc-widget .turn_bar ul {
	background: transparent;
	list-style: none;
	margin: 0px;
	padding: 0px;
}

.fc-widget .turn_bar ul li {
	font: 13px sans-serif;
	background: #333;
	color: #ddd;
	display: inline-block;
	position: relative;
	text-align: center;
	padding: 4px 9px;
	font-weight: bold;
	margin: 0px 1px 0px 0px;
	border-radius: 3px;

    -webkit-transition: all 1s ease-in-out;
    -moz-transition: all 1s ease-in-out;
    -o-transition: all 1s ease-in-out;
}

.fc-widget .turn_bar .current_turn {
	background: #f00;
	color: #fff;

    -webkit-transition: all 1s ease-in-out;
    -moz-transition: all 1s ease-in-out;
    -o-transition: all 1s ease-in-out;
}



/* @end */

.display_none {
    display: none;   
}

.display_block {
    display: block;   
}


#message_area {
    margin-top: 12px;
    background-color: #999;
}

#message_area h5 {
    padding: 4px;
    font: bold 14px sans-serif;
    color: #000;
    border: 1px solid #444;
}

#message_area ul {
    font: 12px sans-serif;
}

#message_area ul li {
    background-color: #000;
}

#message_area .alternate {
    background-color: #ddd;
}

.close_icon {
	position: absolute;
	right: 10px;
	top: 10px;
	border: 0;
	width: 24px;
	height: 24px;
}


#message_area ul li {
    background-color: #fff;
}

#message_area .alternate {
    background-color: #ddd;
}

.close_icon {
	position: absolute;
	right: 10px;
	top: 10px;
	border: 0;
	width: 24px;
	height: 24px;
}

/* @group WebSocket Waiting Overlay */

.ws-waiting-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.ws-waiting-content {
    background-color: #222;
    border: 2px solid #555;
    border-radius: 8px;
    padding: 32px 40px;
    text-align: center;
    max-width: 500px;
    width: 90%;
}

.ws-waiting-content h2 {
    font: bold 22px Helvetica, Arial, sans-serif;
    color: #fff;
    margin-bottom: 16px;
}

.ws-waiting-side {
    font: 16px Helvetica, Arial, sans-serif;
    color: #ccc;
    margin-bottom: 20px;
}

.ws-waiting-share-label {
    font: 14px Helvetica, Arial, sans-serif;
    color: #999;
    margin-bottom: 8px;
}

.ws-waiting-link {
    width: 100%;
    padding: 8px 12px;
    font: 14px monospace;
    background-color: #333;
    color: #0cf;
    border: 1px solid #555;
    border-radius: 4px;
    text-align: center;
    box-sizing: border-box;
    cursor: text;
}

.ws-waiting-link:focus {
    outline: 2px solid #0cf;
}

.ws-side-notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.85);
    color: #fff;
    font: bold 18px Helvetica, Arial, sans-serif;
    padding: 12px 24px;
    border-radius: 6px;
    border: 1px solid #555;
    z-index: 10001;
    pointer-events: none;
}

/* @end */

/* @group Floating Controls */
#floating-controls {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 100;
}
.fc-quadrant {
    position: absolute;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: calc(50% - 24px);
}
.fc-tl { top: 12px;    left: 12px;  align-items: flex-start; }
.fc-tr { top: 12px;    right: 12px; align-items: flex-end; }
.fc-bl { bottom: 12px; left: 12px;  align-items: flex-start; }
.fc-br { bottom: 12px; right: 12px; align-items: flex-end; }

.fc-widget {
    pointer-events: auto;
    background: rgba(0, 0, 0, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 10px 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    color: #eee;
    font: 13px sans-serif;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
/* @end */

/* @group Transient banner (task 057 / Plan 12) */
/* Centered over the map (both axes). Always safe from any floating-controls
   widget overlap — no widget lives at map center. Mounted into #playfield by
   DomClientRenderer._showBanner. Fade in, hold, fade out. Timing here MUST
   match BANNER_REVEAL_MS / BANNER_FADE_MS in dom-client-renderer.ts (200ms
   each). The on-screen hold is driven by a JS timer, not CSS. */
.minisl-banner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 50;
    box-sizing: border-box;
    width: 320px;
    max-width: calc(100% - 24px);
    padding: 10px 14px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.82);
    border-left: 4px solid #6aa9ff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    color: #ddd;
    font: 14px sans-serif;
    text-align: center;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    pointer-events: auto;
    cursor: pointer;
    animation: minisl-banner-in 200ms ease-out;
}
.minisl-banner-info    { border-left-color: #6aa9ff; }
.minisl-banner-success { border-left-color: #3a8a3a; }
.minisl-banner-warning { border-left-color: #c7902a; }

.minisl-banner-out {
    animation: minisl-banner-out 200ms ease-in forwards;
}

/* Fade + subtle scale-from-96% pop. Transform is composed onto the layout
   translate(-50%, -50%) — keyframes re-state it so the centering survives. */
@keyframes minisl-banner-in {
    from { opacity: 0; transform: translate(-50%, -50%) scale(0.96); }
    to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
@keyframes minisl-banner-out {
    from { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    to   { opacity: 0; transform: translate(-50%, -50%) scale(0.96); }
}
/* @end */

/* @group Game-over modal + pill (task 060 / Plan 12 Q7) */
/* Modal overlay covers the playfield with a dimmer; mounted into #playfield by
   DomClientRenderer._renderGameOverModal. Clicking "Review board" drops the
   overlay and leaves a re-open pill at bottom-right. z-index 100 keeps the
   modal above the fire dialog (50) and banner (50); the pill sits at 50 so
   the banner won't be hidden behind it. */
.minisl-gameover-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    animation: minisl-gameover-fade-in 200ms ease-out;
}
.minisl-gameover-modal {
    box-sizing: border-box;
    min-width: 320px;
    max-width: 420px;
    padding: 22px 26px;
    border-radius: 12px;
    background: rgba(20, 20, 20, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    color: #ddd;
    font: 14px sans-serif;
    text-align: center;
}
.minisl-gameover-title {
    margin: 0 0 16px;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #fff;
}
.minisl-gameover-outcome {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0 0 14px;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
}
.minisl-gameover-side-symbol {
    width: 28px;
    height: 28px;
    object-fit: contain;
}
.minisl-gameover-reason {
    margin: 0 0 20px;
    font-size: 14px;
    color: #bbb;
    font-style: italic;
}
.minisl-gameover-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}
.minisl-gameover-btn {
    flex: 1;
    padding: 10px 16px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.08);
    color: #ddd;
    font: 14px sans-serif;
    cursor: pointer;
    transition: background-color 120ms;
}
.minisl-gameover-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}
.minisl-gameover-btn-new {
    background: rgba(106, 169, 255, 0.2);
    border-color: rgba(106, 169, 255, 0.4);
}
.minisl-gameover-btn-new:hover {
    background: rgba(106, 169, 255, 0.35);
}

.minisl-gameover-pill {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 50;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(0, 0, 0, 0.82);
    color: #ddd;
    font: 13px sans-serif;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    animation: minisl-gameover-pill-in 200ms ease-out;
}
.minisl-gameover-pill:hover {
    background: rgba(0, 0, 0, 0.92);
}

@keyframes minisl-gameover-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes minisl-gameover-pill-in {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}
/* @end */

/* @group Scenario intro card + objective chip (task 088) */
/* Same overlay treatment as the game-over modal (z-index 100 over dialogs at
   50); the card is left-aligned reading material, a touch wider than the
   game-over modal. Mounted into #playfield by
   DomClientRenderer.showScenarioIntro. */
.minisl-intro-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    animation: minisl-gameover-fade-in 200ms ease-out;
}
.minisl-intro-card {
    box-sizing: border-box;
    min-width: 340px;
    max-width: 520px;
    /* Always slightly shorter than the game canvas: capped by the overlay
       (= playfield) AND the visible viewport — the playfield can outgrow
       the window at zoom, and 100% alone would follow it off-screen. */
    max-height: min(calc(100% - 40px), calc(100vh - 40px));
    display: flex;
    flex-direction: column;
    padding: 24px 28px;
    border-radius: 12px;
    background: rgba(20, 20, 20, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    color: #ddd;
    font: 14px sans-serif;
    text-align: left;
}
/* Scrollable narrative region (title → turn note). The side selector and
   Begin button live OUTSIDE it, pinned at the card bottom, so the primary
   action never disappears below the scroll fold on short windows. */
.minisl-intro-scroll {
    overflow-y: auto;
    min-height: 0;
    margin-bottom: 12px;
}
.minisl-intro-title {
    margin: 0 0 2px;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #fff;
}
.minisl-intro-dateline {
    margin: 0 0 14px;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #999;
}
.minisl-intro-history {
    margin: 0 0 12px;
    line-height: 1.5;
    color: #bbb;
}
.minisl-intro-briefing {
    margin: 0 0 12px;
    line-height: 1.5;
    color: #ddd;
    font-weight: 600;
}
.minisl-intro-objective {
    margin: 0 0 14px;
    padding: 10px 14px;
    border-left: 3px solid #6aa9ff;
    border-radius: 0 6px 6px 0;
    background: rgba(106, 169, 255, 0.08);
}
.minisl-intro-objective-label {
    margin: 0 0 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #6aa9ff;
}
.minisl-intro-objective-text {
    line-height: 1.5;
    color: #ddd;
}
.minisl-intro-turnnote {
    margin: 0 0 18px;
    font-size: 13px;
    color: #999;
}
.minisl-intro-btn {
    display: block;
    width: 100%;
    flex-shrink: 0;
    padding: 10px 16px;
    border-radius: 8px;
    border: 1px solid rgba(106, 169, 255, 0.4);
    background: rgba(106, 169, 255, 0.2);
    color: #ddd;
    font: 14px sans-serif;
    cursor: pointer;
    transition: background-color 120ms;
}
.minisl-intro-btn:hover {
    background: rgba(106, 169, 255, 0.35);
}
/* "You command" side selector (intro mode) — segmented row above Begin.
   Pinned footer (outside .minisl-intro-scroll): never shrinks. */
.minisl-intro-sides {
    margin: 0 0 14px;
    flex-shrink: 0;
}
.minisl-intro-sides-label {
    margin: 0 0 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #6aa9ff;
}
.minisl-intro-sides-row {
    display: flex;
    gap: 8px;
}
.minisl-intro-side-btn {
    flex: 1;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.06);
    color: #bbb;
    font: 13px sans-serif;
    cursor: pointer;
    transition: background-color 120ms, border-color 120ms, color 120ms;
}
.minisl-intro-side-btn:hover {
    background: rgba(106, 169, 255, 0.15);
    color: #ddd;
}
.minisl-intro-side-btn.active {
    border-color: #6aa9ff;
    background: rgba(106, 169, 255, 0.35);
    color: #fff;
    font-weight: 600;
}

/* Compact persistent objective affordance in the top-left status widget
   (below the turn bar / phase pill — deliberately small so it doesn't crowd
   the phase indicator). Click re-opens the intro card in reference mode. */
.objective-chip {
    margin-top: 4px;
    font-size: 11px;
    color: #9ab;
    cursor: pointer;
    user-select: none;
}
.objective-chip:hover {
    color: #cde;
    text-decoration: underline;
}

/* Live victory-status card (reuses the intro overlay/card chrome). One row
   per Soviet victory path — a met path is tinted green — then the
   "if the game ended now" verdict. */
.minisl-victory-row {
    margin: 0 0 10px;
    padding: 8px 12px;
    border-left: 3px solid rgba(255, 255, 255, 0.18);
    border-radius: 0 6px 6px 0;
    background: rgba(255, 255, 255, 0.04);
}
.minisl-victory-row-met {
    border-left-color: #5cc98a;
    background: rgba(92, 201, 138, 0.1);
}
.minisl-victory-row-label {
    font-weight: 600;
    color: #eee;
}
.minisl-victory-row-met .minisl-victory-row-label {
    color: #bfe9cf;
}
.minisl-victory-row-detail {
    margin-top: 2px;
    font-size: 12px;
    color: #9aa;
}
.minisl-victory-verdict {
    margin: 14px 0 18px;
    padding: 10px 14px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
}
.minisl-victory-verdict-lead {
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #888;
}
.minisl-victory-verdict-outcome {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 4px 0 2px;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
}
.minisl-victory-verdict-reason {
    font-size: 12px;
    line-height: 1.4;
    color: #bbb;
}
/* @end */

/* @group Fire DRM hover preview panel (task 089 / Plan 12 Stage 1b) */
/* Fixed slot bottom-left of the playfield, below the dialog/banner z-band
   (dialogs 50, game-over 100). pointer-events none — the panel must never
   swallow a map click or hover. Mounted/removed per SET_HOVER_HEX by
   DomClientRenderer._renderFirePreviewPanel. */
.minisl-firepreview {
    position: absolute;
    left: 12px;
    bottom: 12px;
    z-index: 40;
    min-width: 190px;
    max-width: 260px;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.82);
    color: #ddd;
    font: 12px sans-serif;
    pointer-events: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.minisl-firepreview-header {
    margin: 0 0 4px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #e06a6a;
}
.minisl-firepreview-fp {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
}
.minisl-firepreview-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    line-height: 1.5;
    color: #bbb;
}
.minisl-firepreview-value {
    font-variant-numeric: tabular-nums;
    color: #ddd;
}
.minisl-firepreview-net {
    margin-top: 2px;
    padding-top: 2px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: #ddd;
    font-weight: 600;
}
.minisl-firepreview-net .minisl-firepreview-value {
    color: #fff;
}
.minisl-firepreview-odds {
    margin-top: 6px;
    font-size: 11px;
    color: #9ab;
}
.minisl-firepreview-breakdown {
    margin-top: 2px;
    color: #d9a441; /* amber — §18.1 malfunction risk */
}
.minisl-firepreview-route {
    margin: 2px 0 4px;
    font-size: 11px;
    font-style: italic;
    color: #e0b0b0; /* pale red — §16.1 route engagement */
}
/* @end */
