/* @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;
}
.dialog table, .dialog tr, .dialog th, .dialog td { color: inherit; }
.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;
}

#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;
}

/* @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;
}

.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;
}

.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);
}

.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 white;
    background-color: #9298d5;
}

.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 white;
    background-color: #ca8944;
}

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

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

.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 */
