* {
    font-family: 'PT Sans', sans-serif;
}

/* Typography */
body {
    line-height: 1.6;
    overflow: hidden;
}

.app-shell {
    position: relative;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
}

body.dark-mode {
    background-color: #12141a;
    color: #cdd3de;
}

body.dark-mode .top-left-session-links {
    background: rgba(24, 30, 40, 0.96);
    border-color: rgba(80, 100, 140, 0.4);
}

body.dark-mode .top-left-user,
body.dark-mode .top-left-dropdown-item {
    color: #dfe7f2;
}

body.dark-mode .user-click-hint {
    color: #aebcd0;
}

body.dark-mode .top-left-dropdown {
    background: rgba(24, 30, 40, 0.98);
    border-color: rgba(80, 100, 140, 0.45);
}

body.dark-mode .top-left-dropdown-divider {
    background: rgba(80, 100, 140, 0.45);
}

body.dark-mode .top-left-defense-budget {
    background: rgba(24, 30, 40, 0.95);
    border-color: rgba(80, 100, 140, 0.45);
}

body.dark-mode .top-left-quick-share {
    background: #1877f2;
    border-color: #166fe0;
    color: #ffffff;
}

body.dark-mode .defense-budget-label {
    color: #adbbcf;
}

body.dark-mode .defense-budget-value {
    color: #f2f6ff;
}

body.dark-mode .top-left-user:hover,
body.dark-mode .top-left-dropdown-item:hover,
body.dark-mode .top-left-dropdown-item:focus {
    background: rgba(129, 156, 206, 0.18);
    color: #ffffff;
}

/* Buttons */
.btn {
    transition: all 0.3s ease;
}

.logo {
    position: absolute;
    top: 20px; 
    left: 20px; 
    z-index: 1000; 
    height: 70px;      
}

.logo-black-css {
    filter: grayscale(1) brightness(0);
}

.top-left-session-links {
    position: absolute;
    top: 100px;
    left: 15px;
    z-index: 1001;
    display: inline-block;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid #ced7e0;
    border-radius: 12px;
    padding: 5px;
    font-size: 13px;
    color: #2f3e4f;
    max-width: min(72vw, 420px);
}

.top-left-user {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: min(64vw, 360px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border: 0;
    background: transparent;
    color: #2f3e4f;
    font-weight: 700;
    border-radius: 8px;
    padding: 4px 8px;
    cursor: pointer;
}

.top-left-user:hover {
    background: rgba(112, 134, 160, 0.12);
}

.top-left-user:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(73, 118, 175, 0.24);
}

.user-click-hint {
    font-size: 11px;
    color: #5e6d7d;
    font-weight: 600;
}

.top-left-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 220px;
    max-width: min(72vw, 320px);
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid #ced7e0;
    border-radius: 10px;
    box-shadow: 0 8px 18px rgba(22, 34, 48, 0.2);
    padding: 6px;
    display: none;
    z-index: 1002;
}

.top-left-dropdown.open {
    display: block;
}

.top-left-dropdown-item {
    width: 100%;
    display: block;
    text-align: left;
    border: 0;
    background: transparent;
    color: #2f3e4f;
    text-decoration: none;
    font-size: 13px;
    line-height: 1.25;
    border-radius: 8px;
    padding: 7px 9px;
    cursor: pointer;
}

.top-left-dropdown-item:hover,
.top-left-dropdown-item:focus {
    text-decoration: none;
    color: #1f2e3f;
    background: rgba(112, 134, 160, 0.12);
    outline: none;
}

.top-left-dropdown-item[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
    background: transparent;
}

.selection-actions-list {
    flex-wrap: wrap;
    gap: 8px;
}

.selection-actions-list .btn {
    flex: 1 1 calc(50% - 8px);
    min-width: 128px;
}

.top-left-dropdown-divider {
    height: 1px;
    background: #d8e1eb;
    margin: 6px 2px;
}

.top-left-report-btn {
    padding: 2px 8px;
    font-size: 12px;
    line-height: 1.2;
}

.top-left-sim-panel {
    position: absolute;
    top: 150px;
    left: 15px;
    z-index: 1001;
    width: min(360px, calc(100vw - 40px));
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #ced7e0;
    border-radius: 10px;
    padding: 10px 12px;
    box-shadow: 0 6px 16px rgba(22, 34, 48, 0.15);
    display: none;
}

.top-left-sim-panel.open {
    display: block;
}

.top-left-defense-budget {
    position: fixed;
    left: 15px;
    bottom: 302px;
    z-index: 1001;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid #ced7e0;
    border-radius: 10px;
    padding: 7px 10px;
    box-shadow: 0 5px 14px rgba(22, 34, 48, 0.16);
    min-width: 170px;
    transition: opacity 260ms ease, transform 260ms ease;
}

.top-left-quick-share {
    position: fixed;
    left: 15px;
    bottom: 360px;
    z-index: 1001;
    background: #1877f2;
    border: 1px solid #166fe0;
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 7px 16px rgba(11, 87, 208, 0.34);
}

.top-left-quick-share:hover,
.top-left-quick-share:focus {
    background: #166fe0;
    border-color: #1568d1;
    color: #ffffff;
}

.defense-budget-label {
    font-size: 11px;
    color: #52657a;
    line-height: 1.2;
}

.defense-budget-value {
    font-size: 18px;
    font-weight: 700;
    color: #1f3348;
    line-height: 1.15;
}

.sim-live-title {
    font-weight: 700;
    color: #253647;
    margin-bottom: 6px;
}

.sim-live-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
}

.sim-live-item {
    border: 1px solid #d5dde7;
    border-radius: 8px;
    background: #f8fafc;
    padding: 6px 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #4e6074;
}

.sim-live-item strong {
    font-size: 17px;
    color: #203246;
}

.top-left-summary-panel {
    position: absolute;
    top: 62px;
    left: 110px;
    z-index: 1001;
    width: min(360px, calc(100vw - 40px));
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #ced7e0;
    border-radius: 10px;
    padding: 10px 12px;
    box-shadow: 0 6px 16px rgba(22, 34, 48, 0.15);
    display: none;
}

.top-left-summary-panel.open {
    display: block;
}

#mobileDeploymentBackdrop {
    display: none;
}

body.mobile-deployment-modal-open #mobileDeploymentBackdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(8, 13, 20, 0.5);
    z-index: 2050;
}

.summary-title {
    font-weight: 700;
    color: #253647;
    margin-bottom: 6px;
}

.summary-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.summary-back-menu-btn {
    white-space: nowrap;
    padding: 2px 8px;
    font-size: 11px;
    line-height: 1.2;
}

.summary-working-copy {
    font-size: 12px;
    margin-bottom: 6px;
    color: #51657a;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #2f3e4f;
    margin-bottom: 2px;
}

.summary-section {
    font-size: 12px;
    color: #4e6074;
    margin-top: 6px;
}

.summary-divider {
    margin: 8px 0;
}

.summary-label {
    display: block;
    font-size: 12px;
    margin-bottom: 4px;
    color: #3d4f63;
}

.summary-inline-controls {
    display: flex;
    gap: 6px;
    align-items: flex-start;
}

.summary-inline-controls .form-control {
    min-width: 0;
}

.summary-inline-controls .bootstrap-select {
    flex: 1 1 auto;
}

.summary-share-controls button {
    flex: 1 1 0;
}

#deploymentSummaryPanel .bootstrap-select .dropdown-menu {
    max-height: 260px;
    overflow-y: auto;
}

.summary-help {
    font-size: 11px;
    color: #5e6d7d;
    margin-top: 4px;
}

.summary-status {
    font-size: 12px;
    margin-top: 6px;
    min-height: 16px;
    color: #4e6074;
}

#loadDeploymentBtn .spinner-border {
    width: 0.8rem;
    height: 0.8rem;
    margin-right: 0.35rem;
    vertical-align: -0.1rem;
}

/* instruction modal */
/* #instructionsModal .modal-content {
    max-height: 90vh;
}
#instructionsModal .modal-body {
    overflow-y: auto;
    padding: 1rem;
} */

.modal-body {
    max-height: 70vh; 
    overflow-y: auto;
}

.modal-content {
    display: flex;
    flex-direction: column;
}

.modal-header,
.modal-footer {
    flex: 0 0 auto;
}

.modal-body {
    flex: 1 1 auto;
    -webkit-overflow-scrolling: touch;
}

#launcherModal .modal-dialog {
    max-width: min(1100px, 95vw);
}

#airDefenseModal .modal-dialog {
    max-width: min(1100px, 95vw);
}

#launcherModal .launcher-modal-body {
    max-height: calc(100vh - 210px);
    overflow-y: auto;
    overflow-x: hidden;
}

#airDefenseModal .airdefense-modal-body {
    max-height: calc(100vh - 210px);
    overflow-y: auto;
    overflow-x: hidden;
}

#launcherModal .modal-content {
    overflow: hidden;
}

#airDefenseModal .modal-content {
    overflow: hidden;
}

#launcherModal .bootstrap-select,
#launcherModal .bootstrap-select > .dropdown-toggle {
    width: 100% !important;
}

#airDefenseModal .bootstrap-select,
#airDefenseModal .bootstrap-select > .dropdown-toggle {
    width: 100% !important;
}

#launcherModal .dropdown-menu {
    z-index: 1065;
}

#airDefenseModal .dropdown-menu {
    z-index: 1065;
}

.bootstrap-select .dropdown-menu {
    z-index: 2055;
}

.launcher-country-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 2px 0 4px;
}

#autoTargetModal.auto-target-map-pick {
    pointer-events: none;
}

#autoTargetModal.auto-target-map-pick .modal-content,
#autoTargetModal.auto-target-map-pick .modal-header,
#autoTargetModal.auto-target-map-pick .modal-body,
#autoTargetModal.auto-target-map-pick .modal-footer {
    pointer-events: auto;
}

.modal-backdrop.auto-target-map-pick-backdrop {
    pointer-events: none;
    opacity: 0.1;
}

body .modal-body::-webkit-scrollbar {
    width: 6px;
}

body .modal-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.782);
}

body .modal-body::-webkit-scrollbar-thumb {
    background: rgba(69, 73, 83, 0.5);
    border-radius: 3px;
}

.country-filter-btn {
    border: 1px solid #d0d5db;
    background: #f7f9fb;
    color: #334;
    border-radius: 999px;
    font-size: 12px;
    line-height: 1;
    padding: 6px 9px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.country-filter-btn:hover {
    background: #ebeff3;
}

.country-filter-btn.active {
    background: #dce8f7;
    border-color: #8eaed8;
    color: #1d3557;
}

.country-filter-btn .flag {
    font-size: 14px;
    line-height: 1;
}

.ammotype-filter-btn .flag {
    display: inline-flex;
    align-items: center;
}

.pill-ammotype-svg {
    width: 13px;
    height: 13px;
    display: block;
    color: currentColor;
}

.ammotype-filter-btn.ammotype-pill-artillery.active {
    background: #f2e5d7;
    border-color: #b97e3e;
    color: #6d431e;
}

.ammotype-filter-btn.ammotype-pill-bomb.active {
    background: #fde1dd;
    border-color: #d66758;
    color: #842e23;
}

.ammotype-filter-btn.ammotype-pill-missile.active {
    background: #f9dede;
    border-color: #d95a5a;
    color: #7b1f1f;
}

.ammotype-filter-btn.ammotype-pill-drone.active {
    background: #ececec;
    border-color: #6f6f6f;
    color: #222;
}

.template-filter-meta {
    font-size: 12px;
    color: #9aaabb;
}

.selected-template-preview {
    margin-top: 6px;
    font-size: 13px;
    color: #1e2a36;
    background: #f1f5f9;
    border: 1px solid #d7e1ec;
    border-radius: 6px;
    padding: 6px 10px;
}

@media (max-width: 768px) {
    .modal {
        padding-left: 0.25rem !important;
        padding-right: 0.25rem !important;
    }

    .modal.show .modal-dialog {
        margin: 0.35rem auto;
        min-height: calc(100dvh - 0.7rem);
        display: flex;
        align-items: stretch;
    }

    .modal.show .modal-content {
        max-height: calc(100dvh - 0.7rem);
        width: 100%;
        overflow: hidden;
    }

    .modal.show .modal-body {
        max-height: none;
        overflow-y: auto;
    }

    #launcherModal .modal-dialog {
        max-width: 98vw;
        margin: 0.35rem auto;
    }

    #airDefenseModal .modal-dialog {
        max-width: 98vw;
        margin: 0.35rem auto;
    }

    #launcherModal .launcher-modal-body {
        max-height: none;
    }

    #airDefenseModal .airdefense-modal-body {
        max-height: none;
    }

    #instructionsModal .modal-dialog,
    #platformInfoModal .modal-dialog,
    #rangeModal .modal-dialog,
    #blastRadiusModal .modal-dialog,
    #icbmModal .modal-dialog {
        max-width: 98vw;
    }

    #launcherModal .bootstrap-select .dropdown-menu,
    #airDefenseModal .bootstrap-select .dropdown-menu {
        max-height: min(42dvh, 320px) !important;
    }
}

#info-btn {
    position: fixed; 
    bottom: 20px; 
    right: 20px; 
    z-index: 1000;
}

.close{
    position: absolute;
    top: 5px; 
    right: 10px; 
}

#map {
    width: 100%;
    height: 100%;
    border-radius: 4px;
    margin: 0;
}
.disable-select {
    -webkit-user-select: none;  /* Safari */
    -moz-user-select: none;     /* Firefox */
    -ms-user-select: none;      /* Internet Explorer/Edge */
    user-select: none;          /* Standard */
}

.leaflet-control-attribution.leaflet-control {
    display: none;
}

.leaflet-control-locate {
    background-color: #fff;
    padding: 8px 12px;
    border-radius: 5px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    font-size: 14px;
    border: 1px solid #ccc;
    transition: background-color 0.2s ease;
    text-align: center;
    user-select: none;
  }

/* Buttons */
.btn-primary {
    background-color: #3a5f8a;
    border-color: #3a5f8a;
    color: #fff;
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary:not(:disabled):not(.disabled):active {
    background-color: #2d4e75;
    border-color: #2d4e75;
    color: #fff;
}
.btn-primary:focus { box-shadow: 0 0 0 0.2rem rgba(58, 95, 138, 0.4); }

.btn-secondary {
    background-color: #60656c;
    border-color: #60656c;
    color: #fff;
}
.btn-secondary:hover,
.btn-secondary:focus,
.btn-secondary:active,
.btn-secondary:not(:disabled):not(.disabled):active {
    background-color: #4a4e54;
    border-color: #4a4e54;
    color: #fff;
}
.btn-secondary:focus { box-shadow: 0 0 0 0.2rem rgba(96, 101, 108, 0.4); }

.btn-success {
    background-color: #3a7a55;
    border-color: #3a7a55;
    color: #fff;
}
.btn-success:hover,
.btn-success:focus,
.btn-success:active,
.btn-success:not(:disabled):not(.disabled):active {
    background-color: #2e6344;
    border-color: #2e6344;
    color: #fff;
}
.btn-success:focus { box-shadow: 0 0 0 0.2rem rgba(58, 122, 85, 0.4); }

.btn-danger {
    background-color: #e05c5c;
    border-color: #e05c5c;
}

.btn-danger:hover {
    background-color: #cc4d4d;
    border-color: #cc4d4d;
}

/* maps control */

.map-controls {
    background: rgba(46, 52, 63, 0.92) !important;
    box-shadow: none;
    padding: 10px;
    width: auto;
    max-width: 250px;
    min-height: 125px;
    max-height: 420px;
    height: auto;
    overflow: hidden;
    border-radius: 6px;
    opacity: 1;
    display: flex;
    flex-direction: column;
    transition: opacity 260ms ease, transform 260ms ease, max-height 260ms ease, padding 260ms ease, margin 260ms ease, border-width 260ms ease;
}

.map-controls:hover{
    opacity: 1;
}
#settings-btn{
    color: #fff;
    position: relative;
    padding-right: 5px;
    padding-bottom: 3px;
    background: transparent;
    border: transparent;

    transition: 200ms;
}
#settings-btn:hover{
   color: #efefef
}
#location-btn{
    color: #fff;
    position: relative;
    padding-bottom: 3px;
    background: transparent;
    border: transparent;

    transition: 200ms;
}
#location-btn:hover{
   color: #efefef
}

@media (max-width: 600px) {
    .camp-floating-modal {
        position: relative;
        top: auto;
        right: auto;
        margin: 0.6rem auto;
        width: calc(100vw - 16px);
        max-width: none;
    }

    .auto-target-floating-modal {
        position: relative;
        top: auto;
        left: auto;
        margin: 0.6rem auto;
        width: calc(100vw - 16px);
        max-width: none;
    }

    .top-left-session-links {
        display: none;
    }

    .top-left-user {
        max-width: 140px;
    }

    .top-left-summary-panel,
    .top-left-sim-panel {
        display: none !important;
    }

    body.mobile-deployment-modal-open .top-left-summary-panel {
        display: block !important;
        position: fixed;
        top: 10px !important;
        left: 8px !important;
        right: 8px;
        width: auto;
        max-width: none;
        max-height: calc(100vh - 20px);
        overflow: auto;
        z-index: 2051;
        box-shadow: 0 10px 28px rgba(0, 0, 0, 0.36);
    }

    .top-left-defense-budget {
        display: none !important;
    }

    .top-left-quick-share {
        display: none !important;
    }

    .map-controls {
        width:auto;
        height: auto;
        max-width: 200px;
        max-height: none;
        overflow: visible;
    }

    #btn-auto-targets {
        display: none;
    }

    #addCampBtn {
        display: none;
    }

    .bottom-sim-panel {
        display: none;
    }

    .bottom-drawer-toggle {
        display: none;
    }

    .mobile-action-panel {
        display: block;
        position: fixed;
        right: 8px;
        bottom: 8px;
        z-index: 1220;
        width: 160px;
        background: rgba(38, 45, 56, 0.94);
        border: 1px solid rgba(255, 255, 255, 0.18);
        border-radius: 10px;
        padding: 6px;
        box-shadow: 0 8px 18px rgba(0, 0, 0, 0.3);
    }
}

@media (max-width: 820px) {
    #btn-auto-targets {
        display: none !important;
    }

    .map-controls {
        max-height: none !important;
        overflow: visible !important;
    }
}

.button-row {
    display: flex;
    justify-content: flex-start;
    gap: 10px;           
    align-items: flex-end; 
    margin-top: auto;   
}

.button-row.clear-buttons {
    display: grid;
    grid-template-columns: 1fr;
    gap: 5px;
    padding-bottom: 5px;
}

.button-row.clear-buttons button {
    background: #60656c;
    color: white;
    font-size: 10px;
    padding: 5px;
    width: 100%; /* Fill each cell */
    cursor: pointer;
    white-space: nowrap;

    border: 0px;
    border-radius: 5px;

    transition: background 200ms; 
}
.button-row.clear-buttons button:hover{
    background: #4a4e54 ;
}

.ring-switches {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4px;
    margin-top: 6px;
}

.ring-switch-item {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    font-size: 11px;
    color: #f0f3f7;
    user-select: none;
}

.ring-switch-item input {
    cursor: pointer;
}

.sim-option-tooltip {
    margin-left: 4px;
    font-size: 11px;
    opacity: 0.82;
    cursor: pointer;
}

.sim-option-tooltip:hover,
.sim-option-tooltip:focus {
    opacity: 1;
}

#mobileSimulationModal .ring-switch-item {
    color: #111111;
    font-size: 13px;
}

.launcher-range-ring,
.airdefense-detection-ring,
.airdefense-interception-ring,
.airdefense-antidrone-ring {
    pointer-events: none !important;
}

.sim-speed-control {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.sim-speed-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.sim-speed-title {
    font-size: 11px;
    font-weight: 700;
    color: #f0f3f7;
}

.sim-speed-value {
    font-size: 12px;
    font-weight: 700;
    color: #ffffff;
    min-width: 56px;
    text-align: right;
}

#simulationSpeedRange {
    width: 100%;
    min-width: 0;
}

.sim-speed-note {
    margin-top: 4px;
    background: #bf2f2f;
    color: #ffffff;
    border-radius: 6px;
    padding: 4px 6px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.25;
    word-break: break-word;
}

.bottom-sim-panel {
    position: fixed;
    left: 14px;
    right: auto;
    width: min(620px, calc(100vw - 28px));
    bottom: 10px;
    z-index: 1000;
    background-color: rgba(46, 52, 63, 0.92) !important;
    background-image: none !important;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
    padding: 8px 10px;
    color: #f0f3f7;
    backdrop-filter: blur(4px);
    pointer-events: none;
    transition: opacity 260ms ease, transform 260ms ease;
}

.bottom-sim-panel > * {
    pointer-events: auto;
}

.bottom-drawer-toggle {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 8px;
    z-index: 1205;
    border: 0;
    border-radius: 999px;
    background: rgba(46, 52, 63, 0.92);
    color: #eef2f7;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 12px;
    box-shadow: 0 5px 14px rgba(0, 0, 0, 0.25);
}

.mobile-action-panel {
    display: none;
}

body.mobile-ui .mobile-action-panel {
    display: block;
    position: fixed;
    left: 8px;
    bottom: 8px;
    z-index: 1000;
    width: 160px;
    background: rgba(38, 45, 56, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 10px;
    padding: 6px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.3);
}

body.modal-open .mobile-action-panel {
    display: none !important;
}

body.mobile-ui .bottom-drawer-toggle {
    display: none;
}

.mobile-action-panel-toggle {
    width: 100%;
    border: 0;
    border-radius: 8px;
    background: #2b3442;
    color: #f2f5fa;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 10px;
}

.mobile-action-panel-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 220ms ease;
    display: grid;
    gap: 6px;
    margin-top: 0;
}

.mobile-action-panel.open .mobile-action-panel-body {
    max-height: min(420px, calc(100vh - 120px));
    overflow-y: auto;
    margin-top: 6px;
}

.bottom-drawer-panel {
    opacity: 1;
    transform: translateY(0);
}

body.bottom-drawer-collapsed .bottom-drawer-panel {
    opacity: 0;
    transform: translateY(120%);
    pointer-events: none !important;
}

body.bottom-drawer-collapsed .top-left-defense-budget.bottom-drawer-panel {
    transform: translateY(180%);
}

body.bottom-drawer-collapsed .map-controls.bottom-drawer-panel {
    max-height: 0 !important;
    min-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    margin-top: 0;
    margin-bottom: 0;
    border-width: 0;
    transform: translateY(24px);
}

.bottom-sim-handle {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #d8e0ea;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    margin-bottom: 7px;
    cursor: grab;
    user-select: none;
}

.bottom-sim-panel.dragging .bottom-sim-handle {
    cursor: grabbing;
}

.bottom-sim-row {
    display: grid;
    grid-template-columns: auto minmax(260px, 420px);
    gap: 8px;
    align-items: center;
}

.bottom-sim-secondary-row {
    display: grid;
    grid-template-columns: minmax(230px, 360px) minmax(150px, 200px);
    gap: 8px;
    align-items: center;
    margin-top: 6px;
}

.bottom-sim-switches {
    display: grid;
    grid-template-columns: repeat(2, minmax(120px, 1fr));
    gap: 4px 10px;
    align-content: center;
}

.bottom-sim-speed-control {
    margin-top: 0;
}

.bottom-sim-panel .ring-switch-item {
    font-size: 12px;
    color: #f0f3f7;
    min-width: 0;
    white-space: nowrap;
}

.bottom-urgent-distance .form-control {
    min-width: 120px;
}

.bottom-urgent-distance .summary-help {
    color: #d8e0ea;
}

.bottom-sim-help {
    margin-top: 5px;
    font-size: 10px;
    line-height: 1.3;
    color: #d8e0ea;
    border-left: 3px solid rgba(202, 222, 250, 0.45);
    padding-left: 7px;
}

/* progress bar */
.progress-slice {
    flex: 1;
    background-color: #ddd;
    border-radius: 4px;
    height: 2px;
    transition: background-color 0.3s;
  }
  
  .progress-slice.filled {
    background-color: #c6544b;
  }


.maps-control .leaflet-control-layers-toggle {
    background-image: none !important;
    width: 45px;
    height: 45px;
    font-size: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.maps-control .leaflet-control-layers-toggle::before {
    content: "\f278";
    font-family: "Font Awesome 6 Free";
    color: #60656c;
}

body.dark-mode .maps-control .leaflet-control-layers-toggle::before {
    color: #ffffff;
}
.maps-control.leaflet-control-layers-expanded .leaflet-control-layers-toggle {
    display: none;
}

.orange {
    color: orange;
}

.explosion {
    font-size: 24px;
    color: orange;
}

.blast-impact-icon {
    background: transparent;
    border: none;
}

.blast-impact-scale {
    width: 44px;
    height: 44px;
    display: block;
    transform-origin: center;
    transform: scale(calc(var(--marker-scale, 1) * 1.1));
    transition: transform 120ms linear;
}

.blast-impact-pop {
    position: relative;
    width: 44px;
    height: 44px;
    display: block;
    transform-origin: center;
    animation: blast-pop-in 140ms ease-out 1;
}

.blast-impact-core,
.blast-impact-shockwave {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    pointer-events: none;
}

.blast-impact-core {
    width: 18px;
    height: 18px;
    background: radial-gradient(circle at 35% 35%, #fff8d6 0%, #ffd24c 28%, #ff9028 58%, #c83b11 100%);
    box-shadow: 0 0 0 5px rgba(246, 95, 32, 0.22), 0 0 16px rgba(245, 88, 18, 0.75);
    animation: blast-core-flicker 850ms ease-in-out infinite alternate;
}

.blast-impact-shockwave {
    width: 10px;
    height: 10px;
    border: 2px solid rgba(255, 173, 84, 0.95);
    box-shadow: 0 0 12px rgba(255, 145, 50, 0.6);
    animation: blast-shockwave-expand 760ms ease-out 1;
}

.blast-impact-pop.is-settled .blast-impact-core {
    animation: none;
    transform: translate(-50%, -50%) scale(0.9);
    box-shadow: 0 0 0 2px rgba(246, 95, 32, 0.12), 0 0 6px rgba(245, 88, 18, 0.35);
    filter: saturate(0.92);
}

.blast-impact-pop.is-settled .blast-impact-shockwave {
    display: none;
}

@keyframes blast-pop-in {
    0% { transform: scale(0.55); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes blast-core-flicker {
    0% { transform: translate(-50%, -50%) scale(0.92); filter: saturate(0.95); }
    100% { transform: translate(-50%, -50%) scale(1.08); filter: saturate(1.15); }
}

@keyframes blast-shockwave-expand {
    0% { width: 8px; height: 8px; opacity: 0.95; }
    100% { width: 42px; height: 42px; opacity: 0; }
}

.nuclear-icon {
    font-size: 22px;
    font-weight: bold;
    color: red;
}

.marker-icon-wrapper {
    background: transparent;
    border: none;
}

.marker-icon-inner {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.9);
    transform: scale(var(--marker-scale, 1));
    transform-origin: center center;
    transition: transform 120ms linear;
}

.marker-icon-launcher .marker-icon-inner {
    background: linear-gradient(135deg, #d35f3e, #b24125);
}

.marker-icon-launcher-missile .marker-icon-inner {
    background: linear-gradient(135deg, #d35f3e, #b24125);
}

.marker-icon-launcher-drone .marker-icon-inner {
    background: linear-gradient(135deg, #505050, #212121);
}

.marker-icon-launcher-bomb .marker-icon-inner {
    background: linear-gradient(135deg, #c64f40, #8f2f26);
}

.marker-icon-launcher-artillery .marker-icon-inner {
    background: linear-gradient(135deg, #9b6a34, #6e461d);
}

.marker-icon-airdefense .marker-icon-inner {
    background: linear-gradient(135deg, #447db1, #2e5d8c);
}

.marker-icon-inner i {
    font-size: 15px;
}

.marker-ammotype-svg {
    width: 18px;
    height: 18px;
    display: block;
    color: #ffffff;
}

.marker-ammotype-svg.ammotype-svg-missile {
    transform: scaleX(0.8) scaleY(1.2);
    transform-origin: center;
}

.marker-ammotype-svg.ammotype-svg-artillery {
    transform: scaleX(0.65) scaleY(1.28);
    transform-origin: center;
}

.marker-icon-camp-naval .marker-icon-inner {
    background: linear-gradient(135deg, #2d73a9, #1f537a);
}

.marker-icon-camp-army .marker-icon-inner {
    background: linear-gradient(135deg, #4f7b3f, #345629);
}

.marker-icon-camp-airport .marker-icon-inner {
    background: linear-gradient(135deg, #7a6bb6, #564a84);
}

.marker-icon-camp-target .marker-icon-inner {
    background: linear-gradient(135deg, #9a5861, #6f3c43);
}

.camp-draw-controls {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.transport-icon-wrapper {
    background: transparent;
    border: none;
}

.transport-icon-badge {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--transport-color, #4f8fd1);
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.transport-icon-badge i {
    font-size: 10px;
    line-height: 1;
}

.camp-floating-modal {
    margin: 0;
    position: fixed;
    top: 86px;
    right: 14px;
    width: min(430px, calc(100vw - 20px));
    max-width: 430px;
}

.auto-target-floating-modal {
    margin: 0;
    position: fixed;
    top: 86px;
    left: 14px;
    width: min(430px, calc(100vw - 20px));
    max-width: 430px;
}

#campModal .modal-content {
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

#autoTargetModal .modal-content {
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

#campModal {
    pointer-events: none;
}

#autoTargetModal {
    pointer-events: none;
}

#campModal .modal-dialog,
#campModal .modal-content,
#campModal .modal-header,
#campModal .modal-body,
#campModal .modal-footer {
    pointer-events: auto;
}

#autoTargetModal .modal-dialog,
#autoTargetModal .modal-content,
#autoTargetModal .modal-header,
#autoTargetModal .modal-body,
#autoTargetModal .modal-footer {
    pointer-events: auto;
}

.google-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #60656cb3;
    border: transparent;
    padding: 8px;
    border-radius: 5px;
    color: #ffffff;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s ease;
}

.google-btn:hover {
    background-color: #4a4e54;
}

#platformShareLink {
    user-select: text !important;
    cursor: text;
    white-space: normal;
    word-break: break-all;
}


body.dark-mode .modal-body .latex-formula {
    filter: invert(1);
}

body.dark-mode .modal-content {
    background-color: rgba(39, 41, 45, 0.834);
    color: #ffffff;
    border: 1px solid rgba(100, 105, 115, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

body.dark-mode .modal-header {
    background-color: rgba(40, 44, 50, 0.98);
    border-bottom: 1px solid rgba(100, 105, 115, 0.35);
}

body.dark-mode .modal-footer {
    background-color: rgba(40, 44, 50, 0.98);
    border-top: 1px solid rgba(100, 105, 115, 0.35);
}

body.dark-mode .modal-title {
    color: #e2e8f5;
}

body.dark-mode .close {
    color: #9aa5b8;
    text-shadow: none;
}

body.dark-mode .close:hover {
    color: #e2e8f5;
}

.seo-intro-band,
.seo-faq-band {
    padding: 22px 14px;
    background: #f4f7fb;
    border-top: 1px solid #d9e3ef;
}

.seo-faq-band {
    background: #eef4fb;
}

.seo-intro-inner {
    max-width: 1100px;
    margin: 0 auto;
    color: #1f2d3d;
}

.seo-intro-inner h1 {
    font-size: 1.7rem;
    line-height: 1.2;
    margin: 0 0 10px;
}

.seo-intro-inner h2 {
    font-size: 1.35rem;
    margin: 0 0 10px;
}

.seo-intro-inner h3 {
    font-size: 1.06rem;
    margin: 0 0 6px;
}

.seo-intro-inner p {
    margin: 0 0 10px;
    line-height: 1.5;
}

.seo-intro-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 8px;
}

.seo-intro-item {
    background: #ffffff;
    border: 1px solid #d9e3ef;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 0.95rem;
    line-height: 1.45;
}

.seo-intro-item strong {
    display: block;
    margin-bottom: 4px;
}

.seo-intro-link {
    display: inline-block;
    margin-top: 8px;
    font-weight: 600;
}

.seo-intro-links {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.seo-intro-links a {
    font-weight: 600;
}

.seo-faq-item {
    background: #ffffff;
    border: 1px solid #d9e3ef;
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 8px;
}

.seo-faq-item p {
    margin: 0;
}

@media (max-width: 900px) {
    .seo-intro-grid {
        grid-template-columns: 1fr;
    }

    .seo-intro-inner h1 {
        font-size: 1.35rem;
    }
}

@media (max-width: 768px) {
    .seo-intro-band,
    .seo-faq-band {
        display: none !important;
    }
}

.seo-doc-page {
    background-color: #eef3f8;
    /* background-image:
        linear-gradient(180deg, rgba(255, 255, 255, 0.66), rgba(255, 255, 255, 0.78)),
        url('../images/world-map-texture.svg');
    background-repeat: no-repeat, no-repeat;
    background-size: auto, min(1500px, 96vw) auto;
    background-position: center top, center 120px; */
    color: #1f2d3d;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 100vh;
    -webkit-overflow-scrolling: touch;
}

.seo-doc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-bottom: 1px solid #d9e3ef;
    background: #ffffff;
}

.seo-doc-logo-link {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
}

.seo-doc-header .logo {
    position: static;
    top: auto;
    left: auto;
    height: 44px;
    width: auto;
    z-index: auto;
}

.seo-doc-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.seo-doc-nav .is-active {
    pointer-events: none;
}

.seo-doc-user {
    font-size: 0.88rem;
    color: #4b5867;
    padding: 2px 6px;
}

.seo-doc-main {
    padding: 20px 14px 30px;
}

.seo-doc-article {
    max-width: 980px;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid #d9e3ef;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(27, 43, 61, 0.08);
    padding: 18px;
}

.seo-doc-article h1 {
    font-size: 1.8rem;
    margin: 0 0 10px;
}

.seo-doc-article h2 {
    font-size: 1.25rem;
    margin: 18px 0 8px;
}

.seo-doc-article p {
    margin: 0 0 10px;
    line-height: 1.55;
}

.seo-doc-links {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 14px;
    padding-top: 10px;
    border-top: 1px solid #d9e3ef;
}

.seo-doc-links a {
    font-weight: 600;
}

@media (max-width: 900px) {
    .seo-doc-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .seo-doc-header .logo {
        height: 36px;
    }

    .seo-doc-article h1 {
        font-size: 1.45rem;
    }
}

body.dark-mode .form-control {
    background-color: rgba(44, 48, 54, 0.9);
    color: #e0e6f0;
    border: 1px solid rgba(100, 105, 115, 0.4);
}

body.dark-mode.seo-doc-page {
    background-color: #121820;
    background-image:
        linear-gradient(180deg, rgba(18, 24, 32, 0.78), rgba(18, 24, 32, 0.9)),
        url('../images/world-map-texture.svg');
}

body.dark-mode .seo-doc-header {
    background: rgba(22, 30, 40, 0.92);
    border-bottom-color: rgba(80, 100, 140, 0.38);
}

body.dark-mode .seo-doc-article {
    background: rgba(22, 30, 40, 0.9);
    border-color: rgba(80, 100, 140, 0.38);
}

body.dark-mode .form-control:focus {
    background-color: rgba(52, 56, 62, 0.95);
    color: #ffffff;
    border-color: rgba(140, 148, 165, 0.6);
    box-shadow: 0 0 0 0.2rem rgba(120, 128, 150, 0.2);
}

body.dark-mode select.form-control option {
    background-color: #3a3e44;
    color: #e0e6f0;
}

body.dark-mode .bootstrap-select .dropdown-toggle {
    background-color: rgba(44, 48, 54, 0.9);
    color: #e0e6f0;
    border: 1px solid rgba(100, 105, 115, 0.4);
}

body.dark-mode .bootstrap-select .dropdown-toggle:focus,
body.dark-mode .bootstrap-select .dropdown-toggle:active {
    background-color: rgba(52, 56, 62, 0.95);
    color: #ffffff;
    border-color: rgba(140, 148, 165, 0.6);
    box-shadow: 0 0 0 0.2rem rgba(120, 128, 150, 0.2) !important;
    outline: none !important;
}

body.dark-mode .bootstrap-select .dropdown-menu {
    background-color: #3a3e44;
    border: 1px solid rgba(100, 105, 115, 0.4);
}

body.dark-mode .bootstrap-select .dropdown-menu .dropdown-item {
    color: #cdd3de;
    background-color: transparent;
}

body.dark-mode .bootstrap-select .dropdown-menu .dropdown-item:hover,
body.dark-mode .bootstrap-select .dropdown-menu .dropdown-item:focus {
    background-color: rgba(80, 100, 140, 0.3);
    color: #e2e8f5;
}

body.dark-mode .bootstrap-select .dropdown-menu .dropdown-item.active,
body.dark-mode .bootstrap-select .dropdown-menu .dropdown-item:active {
    background-color: rgba(80, 120, 200, 0.4);
    color: #e2e8f5;
}

body.dark-mode .bootstrap-select .bs-searchbox input {
    background-color: rgba(44, 48, 54, 0.9);
    color: #e0e6f0;
    border: 1px solid rgba(100, 105, 115, 0.4);
}

body.dark-mode .bootstrap-select .bs-searchbox input:focus {
    background-color: rgba(52, 56, 62, 0.95);
    color: #ffffff;
    border-color: rgba(140, 148, 165, 0.6);
    box-shadow: 0 0 0 0.2rem rgba(120, 128, 150, 0.2);
}

body.dark-mode .bootstrap-select .no-results {
    background-color: rgba(44, 48, 54, 0.9);
    color: #9aa5b8;
}

body.dark-mode .alert-info {
    background-color: rgba(20, 40, 70, 0.6);
    border-color: rgba(50, 80, 140, 0.4);
    color: #90b4e0;
}

body.dark-mode .alert-danger {
    background-color: rgba(60, 20, 20, 0.6);
    border-color: rgba(140, 50, 50, 0.4);
    color: #e0909a;
}

/* Labels */
body.dark-mode label {
    color: #c8d4e8;
}

/* Leaflet layer controls */
body.dark-mode .leaflet-control-layers {
    background-color: rgba(18, 22, 32, 0.65);
    color: #cdd3de;
    backdrop-filter: blur(6px);
}

body.dark-mode .leaflet-control-layers label {
    color: #cdd3de;
}

body.dark-mode .leaflet-control-layers-toggle {
    background-color: rgba(50, 55, 65, 0.6);
}

body.dark-mode .leaflet-control-layers-toggle:hover {
    background-color: rgba(35, 42, 62, 0.95);
}

body.dark-mode .leaflet-control-layers-separator {
    border-top-color: rgba(80, 100, 140, 0.3);
}

body.dark-mode .leaflet-control-zoom a,
body.dark-mode .leaflet-control-locate {
    background-color: rgba(18, 22, 32, 0.88);
    color: #cdd3de;
    border-color: rgba(80, 100, 140, 0.4);
}

body.dark-mode .leaflet-control-zoom a:hover {
    background-color: rgba(35, 42, 62, 0.95);
}

body.dark-mode .leaflet-popup-content-wrapper {
    background-color: rgba(18, 22, 32, 0.92);
    color: #cdd3de;
    backdrop-filter: blur(6px);
}

body.dark-mode .leaflet-popup-tip {
    background-color: rgba(18, 22, 32, 0.92);
}

body.dark-mode .ring-switch-item {
    color: #d7dde8;
}

body.dark-mode .top-left-summary-panel {
    background: rgba(24, 30, 40, 0.96);
    border-color: rgba(80, 100, 140, 0.4);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

body.dark-mode .top-left-sim-panel {
    background: rgba(24, 30, 40, 0.96);
    border-color: rgba(80, 100, 140, 0.4);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

body.dark-mode .sim-live-title {
    color: #d7dde8;
}

body.dark-mode .sim-live-item {
    background: #1f2734;
    border-color: #344356;
    color: #aab7c8;
}

body.dark-mode .sim-live-item strong {
    color: #e5edf9;
}

body.dark-mode .sim-speed-title {
    color: #e5edf9;
}

body.dark-mode .sim-speed-value {
    color: #ffffff;
}

body.dark-mode .sim-speed-note {
    background: #c73a3a;
    color: #ffffff;
}

body.dark-mode .bottom-sim-panel {
    background-color: rgba(18, 24, 34, 0.94) !important;
    background-image: none !important;
    border-color: rgba(94, 117, 158, 0.45);
    color: #dfe7f2;
}

body.dark-mode .bottom-sim-panel .ring-switch-item,
body.dark-mode .bottom-sim-panel .sim-speed-title,
body.dark-mode .bottom-sim-panel .sim-speed-value,
body.dark-mode .bottom-sim-panel .summary-help,
body.dark-mode .bottom-sim-help {
    color: #dfe7f2;
}

body.dark-mode .bottom-sim-handle {
    background: rgba(129, 156, 206, 0.16);
    border-color: rgba(129, 156, 206, 0.35);
    color: #dfe7f2;
}

body.dark-mode .bottom-drawer-toggle {
    background: rgba(18, 24, 34, 0.94);
    color: #dfe7f2;
    border: 1px solid rgba(94, 117, 158, 0.45);
}

body.dark-mode .mobile-action-panel {
    background: rgba(18, 24, 34, 0.96);
    border-color: rgba(94, 117, 158, 0.45);
}

body.dark-mode .mobile-action-panel-toggle {
    background: rgba(50, 64, 88, 0.9);
    color: #f2f6ff;
}

body.dark-mode .summary-title,
body.dark-mode .summary-row,
body.dark-mode .summary-section {
    color: #d7dde8;
}

body.dark-mode .user-click-hint,
body.dark-mode .summary-working-copy,
body.dark-mode .summary-label,
body.dark-mode .summary-status,
body.dark-mode .summary-help {
    color: #b9c6d8;
}

body.dark-mode .modal-body::-webkit-scrollbar {
    width: 6px;
}

body.dark-mode .modal-body::-webkit-scrollbar-track {
    background: rgba(20, 25, 40, 0.5);
}

body.dark-mode .modal-body::-webkit-scrollbar-thumb {
    background: rgba(80, 100, 150, 0.5);
    border-radius: 3px;
}

.simulation-report-dialog {
    max-width: min(1400px, 96vw);
}

#simulationReportModal .modal-body {
    max-height: 78vh;
}

.sim-report-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.sim-report-metric-box {
    border: 1px solid #d6dde5;
    border-radius: 10px;
    padding: 10px 12px;
    background: #f8fafc;
}

.sim-report-metric-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #607287;
    margin-bottom: 4px;
}

.sim-report-metric-value {
    font-size: 22px;
    line-height: 1.15;
    font-weight: 700;
    color: #1f3042;
}

.sim-report-section {
    border: 1px solid #dce3eb;
    border-radius: 10px;
    padding: 10px 12px;
    background: #ffffff;
    margin-bottom: 12px;
}

.sim-report-section h6 {
    margin-bottom: 8px;
}

body.dark-mode .sim-report-metric-box,
body.dark-mode .sim-report-section {
    background: #1a202a;
    border-color: #2e3845;
}

body.dark-mode .sim-report-metric-label {
    color: #93a1b5;
}

body.dark-mode .sim-report-metric-value {
    color: #d9e2ef;
}

.missile-trail-icon {
    background: transparent;
    border: 0;
}

.trail-ammotype-svg {
    width: 12px;
    height: 12px;
    display: block;
    color: #ff4f4f;
    filter: drop-shadow(0 0 3px rgba(0, 0, 0, 0.35));
}

.trail-ammotype-svg.ammotype-svg-missile {
    transform: scaleX(0.82) scaleY(1.22);
    transform-origin: center;
}

.trail-ammotype-svg.ammotype-svg-artillery {
    transform: scaleX(0.66) scaleY(1.30);
    transform-origin: center;
}

.airdefense-ew-ring {
    pointer-events: none !important;
}

.missile-trail-icon-missile .trail-ammotype-svg {
    color: #ff4f4f;
}

.missile-trail-icon-drone .trail-ammotype-svg {
    color: #111111;
}

.missile-trail-icon-bomb .trail-ammotype-svg {
    color: #d14839;
}

.missile-trail-icon-artillery .trail-ammotype-svg {
    color: #8f5a28;
}

.missile-trail-icon-inner {
    display: inline-block;
    transform-origin: center center;
}

.jammed-drone-icon,
.jammed-missile-icon {
    background: transparent;
    border: 0;
}

.jammed-drone-spin {
    display: inline-flex;
    width: 18px;
    height: 18px;
    align-items: center;
    justify-content: center;
    color: #f2cf2f;
    animation: jammedDroneSpin 0.45s linear infinite;
    filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.45));
}

.jammed-drone-spin .trail-ammotype-svg {
    width: 14px;
    height: 14px;
    color: #f2cf2f;
}

.jammed-missile-core {
    display: inline-flex;
    width: 16px;
    height: 16px;
    border-radius: 999px;
    align-items: center;
    justify-content: center;
    background: rgba(243, 196, 41, 0.2);
    color: #f3c429;
    font-size: 13px;
    font-weight: 700;
}

@keyframes jammedDroneSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
