.strategy-window .slot-mission-content {
    width: min(880px, calc(100vw - 28px));
    max-height: min(780px, calc(100vh - 28px));
    overflow: auto;
}

.strategy-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
    margin: 10px 0 16px;
}

.strategy-summary > div,
.strategy-faction,
.strategy-route {
    border: 1px solid rgba(189, 149, 82, .45);
    border-radius: 9px;
    padding: 10px;
    background: rgba(31, 24, 17, .82);
}

.strategy-summary span,
.strategy-faction small,
.strategy-route small {
    display: block;
    color: #bdaa7d;
    font-size: 11px;
}

.strategy-summary b {
    color: #ffe4a2;
    font-size: 18px;
}

.strategy-factions,
.strategy-routes {
    display: grid;
    gap: 8px;
}

.strategy-faction {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    border-left: 4px solid var(--faction-color);
}

.strategy-faction-emblem {
    font-size: 27px;
    text-align: center;
}

.strategy-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 5px;
}

.strategy-actions button,
.strategy-route button,
.strategy-create-route button {
    padding: 6px 9px;
}

.strategy-route {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.strategy-create-route {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 8px 0 12px;
}

.strategy-create-route select {
    min-width: 160px;
    padding: 7px;
}

.world-region-tile .strategy-map-marker {
    position: absolute;
    z-index: 8;
    right: 4px;
    bottom: 17px;
    min-width: 25px;
    padding: 2px 4px;
    border: 1px solid #f3d273;
    border-radius: 10px;
    color: #fff4bf;
    background: rgba(63, 35, 15, .92);
    font: 700 9px Arial, sans-serif;
    box-shadow: 0 0 8px rgba(255, 202, 79, .5);
    animation: strategy-marker-pulse 1.8s ease-in-out infinite;
}

.world-region-tile .strategy-trade-marker {
    right: auto;
    left: 4px;
    color: #d7ffd8;
    border-color: #63c475;
    background: rgba(24, 70, 35, .9);
}

.world-region-tile .strategy-trade-marker.is-foreign {
    color: #ffe0d8;
    border-color: #e16f58;
    background: rgba(99, 35, 25, .94);
}

.strategy-route-lines {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    overflow: visible;
}

.strategy-route-lines line {
    fill: none;
    stroke: #f4d071;
    stroke-width: 3;
    stroke-dasharray: 7 6;
    opacity: .72;
    filter: drop-shadow(0 0 3px #2b1706);
    animation: strategy-route-flow 1.7s linear infinite;
}

.strategy-route-lines line.is-foreign {
    stroke: #e66d58;
    opacity: .55;
}

.world-region-grid > .world-region-tile { z-index: 3; }
.strategy-empire-link { margin: -4px 0 14px; text-align: right; }
.strategy-empire-link button { padding: 8px 12px; }

@keyframes strategy-route-flow { to { stroke-dashoffset: -26; } }

@keyframes strategy-marker-pulse {
    50% { transform: translateY(-2px); filter: brightness(1.2); }
}

@media (max-width: 760px) {
    .strategy-summary { grid-template-columns: 1fr; }
    .strategy-faction { grid-template-columns: 34px 1fr; }
    .strategy-actions { grid-column: 1 / -1; justify-content: stretch; }
    .strategy-actions button { flex: 1 1 42%; }
    .strategy-route { align-items: stretch; flex-direction: column; }
}
