.fcs-game {
    --fcs-bg: #f6f1e6;
    --fcs-panel: #fffaf0;
    --fcs-ink: #25251f;
    --fcs-muted: #6f705d;
    --fcs-border: #d5c7a6;
    --fcs-accent: #256e5b;
    --fcs-accent-strong: #174b40;
    --fcs-danger: #9f3a38;
    --fcs-gold: #c99a2f;
    --fcs-map-height: clamp(460px, calc(100vh - 190px), 760px);
    color: var(--fcs-ink);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    margin: 24px auto;
    max-width: 1120px;
}

.fcs-shell {
    background: var(--fcs-bg);
    border: 1px solid var(--fcs-border);
    border-radius: 8px;
    display: grid;
    gap: 16px;
    grid-template-columns: minmax(0, 1fr) 260px;
    padding: 16px;
    position: relative;
}

.fcs-map-wrap {
    background: #dce7dc;
    border: 1px solid var(--fcs-border);
    border-radius: 6px;
    min-height: var(--fcs-map-height);
    overflow: hidden;
    position: relative;
}

.fcs-map {
    cursor: grab;
    display: block;
    height: 100%;
    min-height: var(--fcs-map-height);
    touch-action: none;
    width: 100%;
}

.fcs-map:active {
    cursor: grabbing;
}

.fcs-map-controls {
    display: flex;
    gap: 6px;
    left: 10px;
    position: absolute;
    top: 10px;
    z-index: 2;
}

.fcs-map-control {
    align-items: center;
    background: rgba(37, 37, 31, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 5px;
    color: #ffffff;
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-size: 16px;
    font-weight: 800;
    height: 32px;
    justify-content: center;
    line-height: 1;
    padding: 0;
    width: 32px;
}

.fcs-map-control:hover,
.fcs-map-control:focus-visible {
    background: rgba(37, 37, 31, 0.92);
}

.fcs-focus-mode {
    background: var(--fcs-bg);
    height: 100vh;
    height: 100dvh;
    inset: 0;
    margin: 0;
    max-width: none;
    padding: 0;
    position: fixed;
    width: 100vw;
    z-index: 999999;
}

.fcs-focus-mode .fcs-shell {
    border-radius: 0;
    box-sizing: border-box;
    gap: 10px;
    grid-template-columns: minmax(0, 1fr) 260px;
    height: 100%;
    padding: 10px;
}

.fcs-focus-mode .fcs-map-wrap,
.fcs-focus-mode .fcs-map {
    height: 100%;
    min-height: 0;
}

.fcs-focus-mode .fcs-side {
    min-height: 0;
    overflow: auto;
}

.fcs-turn-bubble {
    background: rgba(255, 250, 240, 0.96);
    border: 1px solid rgba(37, 37, 31, 0.18);
    border-radius: 999px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
    color: var(--fcs-ink);
    font-size: 15px;
    font-weight: 700;
    left: 50%;
    opacity: 0;
    padding: 10px 16px;
    pointer-events: none;
    position: absolute;
    top: 72px;
    transform: translate(-50%, -12px);
    transition: opacity 160ms ease, transform 160ms ease;
    z-index: 3;
}

.fcs-turn-bubble-active {
    opacity: 1;
    transform: translate(-50%, 0);
}

.fcs-turn-bubble-alert {
    background: linear-gradient(135deg, rgba(255, 250, 240, 0.98), rgba(250, 230, 169, 0.98));
    border-color: rgba(159, 58, 56, 0.56);
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(37, 37, 31, 0.26), 0 0 0 3px rgba(201, 154, 47, 0.2);
    color: #4b251f;
    font-size: 16px;
    font-weight: 750;
    line-height: 1.35;
    max-width: min(620px, calc(100% - 72px));
    padding: 14px 18px;
    text-align: center;
    top: 42%;
    transform: translate(-50%, calc(-50% - 12px));
    white-space: normal;
}

.fcs-turn-bubble-alert.fcs-turn-bubble-active {
    transform: translate(-50%, -50%);
}

.fcs-turn-bubble-airdrop {
    background: rgba(37, 37, 31, 0.88);
    border-color: rgba(255, 250, 240, 0.36);
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(37, 37, 31, 0.22);
    color: #fffaf0;
    font-size: 14px;
    font-weight: 750;
    line-height: 1.25;
    max-width: min(560px, calc(100% - 104px));
    padding: 9px 14px;
    text-align: center;
    top: 12px;
    transform: translate(-50%, -8px);
    white-space: normal;
}

.fcs-turn-bubble-airdrop.fcs-turn-bubble-active {
    transform: translate(-50%, 0);
}

.fcs-loss-notice {
    animation: fcs-loss-notice 4200ms ease-out forwards;
    filter: drop-shadow(0 6px 10px rgba(37, 37, 31, 0.28));
    pointer-events: none;
}

.fcs-loss-notice-panel {
    fill: rgba(37, 37, 31, 0.88);
    stroke: rgba(210, 48, 39, 0.92);
    stroke-width: 1.4;
}

.fcs-loss-notice-pointer {
    fill: rgba(37, 37, 31, 0.88);
    stroke: rgba(210, 48, 39, 0.72);
    stroke-width: 1;
}

.fcs-loss-marker {
    fill: rgba(210, 48, 39, 0.88);
    stroke: rgba(255, 241, 184, 0.95);
    stroke-width: 2.2;
}

.fcs-loss-skull {
    dominant-baseline: central;
    fill: #ffffff;
    font-size: 17px;
    font-weight: 900;
    text-anchor: middle;
}

.fcs-loss-notice-text {
    dominant-baseline: central;
    fill: #fffaf0;
    text-anchor: middle;
}

.fcs-loss-notice-title {
    font-size: 10px;
    font-weight: 600;
    opacity: 0.82;
}

.fcs-loss-notice-name {
    fill: #ffdca0;
    font-size: 10px;
    font-weight: 750;
}

.fcs-point-notice {
    animation: fcs-point-notice 3400ms ease-out forwards;
    filter: drop-shadow(0 6px 10px rgba(37, 37, 31, 0.22));
    pointer-events: none;
}

.fcs-point-notice-panel {
    fill: rgba(248, 244, 234, 0.96);
    stroke: rgba(37, 123, 98, 0.72);
    stroke-width: 1.3;
}

.fcs-point-notice-pointer {
    fill: rgba(248, 244, 234, 0.96);
    stroke: rgba(37, 123, 98, 0.58);
    stroke-width: 1;
}

.fcs-point-notice-text {
    dominant-baseline: central;
    fill: #154f42;
    font-size: 10px;
    font-weight: 700;
    text-anchor: middle;
}

@keyframes fcs-loss-notice {
    0% {
        opacity: 0;
        transform: translateY(8px);
    }

    12%, 74% {
        opacity: 1;
        transform: translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateY(-8px);
    }
}

@keyframes fcs-point-notice {
    0% {
        opacity: 0;
        transform: translateY(8px);
    }

    12%, 78% {
        opacity: 1;
        transform: translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateY(-8px);
    }
}

.fcs-objective-active .fcs-map {
    filter: blur(3px) saturate(0.8);
}

.fcs-objective-active .fcs-side {
    filter: saturate(0.75);
    opacity: 0.62;
    pointer-events: none;
    user-select: none;
}

.fcs-scenario-picker-active .fcs-map,
.fcs-scenario-picker-active .fcs-side {
    filter: blur(3px) saturate(0.78);
    pointer-events: none;
    user-select: none;
}

.fcs-intro-active .fcs-map,
.fcs-intro-active .fcs-side,
.fcs-intro-active .fcs-map-controls {
    filter: blur(3px) saturate(0.75);
    pointer-events: none;
    user-select: none;
}

.fcs-intro-screen {
    background: #161915;
    border-radius: 6px;
    display: block;
    inset: 16px;
    overflow: hidden;
    position: absolute;
    z-index: 8;
}

.fcs-intro-screen[hidden] {
    display: none;
}

.fcs-intro-image {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.fcs-intro-start {
    background: linear-gradient(180deg, #2f977d, var(--fcs-accent));
    border: 2px solid rgba(255, 250, 240, 0.88);
    border-radius: 15px;
    bottom: clamp(42px, 7.1%, 86px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.26), 0 0 0 1px rgba(255, 255, 255, 0.22) inset;
    color: #fffaf0;
    cursor: pointer;
    font: inherit;
    font-size: clamp(18px, 2.3vw, 34px);
    font-weight: 800;
    height: clamp(48px, 6.9vw, 74px);
    left: 50%;
    padding: 0;
    position: absolute;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.22);
    transform: translateX(-50%);
    width: clamp(220px, 30.4vw, 340px);
}

.fcs-intro-start:hover,
.fcs-intro-start:focus-visible {
    background: linear-gradient(180deg, #35a78a, #287b67);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3), 0 0 0 3px rgba(255, 250, 240, 0.86), 0 0 34px rgba(255, 250, 240, 0.55);
    outline: none;
}

.fcs-scenario-picker {
    align-items: center;
    background: rgba(37, 37, 31, 0.34);
    display: flex;
    inset: 0;
    justify-content: center;
    padding: 24px;
    position: absolute;
    z-index: 6;
}

.fcs-scenario-picker[hidden] {
    display: none;
}

.fcs-scenario-picker-card {
    background: rgba(255, 250, 240, 0.98);
    border: 1px solid rgba(37, 37, 31, 0.16);
    border-radius: 7px;
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.24);
    display: grid;
    gap: 12px;
    max-height: calc(100% - 48px);
    max-width: 620px;
    overflow-y: auto;
    padding: 20px;
    width: min(620px, calc(100% - 48px));
}

.fcs-scenario-picker-card h2 {
    color: var(--fcs-accent);
    font-size: 24px;
    line-height: 1.15;
    margin: 0;
}

.fcs-scenario-picker-card p {
    color: var(--fcs-muted);
    margin: 0;
}

.fcs-scenario-list {
    display: grid;
    gap: 10px;
}

.fcs-scenario-card {
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(37, 37, 31, 0.14);
    border-radius: 6px;
    color: var(--fcs-ink);
    cursor: pointer;
    display: grid;
    gap: 4px;
    padding: 14px;
    text-align: left;
}

.fcs-scenario-card:hover,
.fcs-scenario-card:focus-visible {
    border-color: rgba(40, 126, 103, 0.48);
    box-shadow: 0 0 0 3px rgba(40, 126, 103, 0.14);
    outline: none;
}

.fcs-scenario-card-selected {
    animation: fcsScenarioSelectedIn 180ms ease-out both;
    background: rgba(40, 126, 103, 0.12);
    border-color: rgba(40, 126, 103, 0.58);
    box-shadow: 0 0 0 3px rgba(40, 126, 103, 0.12);
    order: -2;
}

.fcs-scenario-card strong {
    font-size: 17px;
}

.fcs-scenario-card span,
.fcs-scenario-card small {
    color: var(--fcs-muted);
    font-size: 13px;
    line-height: 1.35;
}

.fcs-scenario-briefing {
    animation: fcsScenarioBriefingIn 220ms ease-out both;
    background: rgba(255, 255, 255, 0.68);
    border: 1px solid rgba(37, 37, 31, 0.12);
    border-radius: 6px;
    display: grid;
    gap: 10px;
    order: -1;
    padding: 14px;
}

.fcs-scenario-briefing h3 {
    color: var(--fcs-accent-strong);
    font-size: 18px;
    line-height: 1.2;
    margin: 0;
}

.fcs-scenario-briefing-text,
.fcs-scenario-briefing-section p {
    color: var(--fcs-muted);
    font-size: 14px;
    line-height: 1.45;
    margin: 0;
    white-space: pre-wrap;
}

.fcs-scenario-briefing-section {
    display: grid;
    gap: 5px;
}

.fcs-scenario-briefing-section strong {
    color: var(--fcs-ink);
    font-size: 14px;
}

.fcs-scenario-briefing-section ul {
    color: var(--fcs-ink);
    display: grid;
    font-size: 13px;
    gap: 4px;
    line-height: 1.35;
    margin: 0;
    padding-left: 18px;
}

@keyframes fcsScenarioSelectedIn {
    from {
        transform: translateY(6px);
    }

    to {
        transform: translateY(0);
    }
}

@keyframes fcsScenarioBriefingIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fcs-objective-overlay {
    align-items: center;
    background: rgba(37, 37, 31, 0.28);
    display: none;
    inset: 0;
    justify-content: center;
    padding: 24px;
    position: absolute;
    z-index: 4;
}

.fcs-objective-overlay-active {
    display: flex;
}

.fcs-objective-card {
    background: rgba(255, 250, 240, 0.98);
    border: 1px solid rgba(37, 37, 31, 0.18);
    border-radius: 6px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.24);
    display: grid;
    gap: 12px;
    max-height: calc(100% - 48px);
    max-width: 430px;
    overflow: auto;
    padding: 18px;
}

.fcs-rules-active .fcs-objective-card {
    max-width: 560px;
    width: min(560px, calc(100% - 48px));
}

.fcs-intel-active .fcs-objective-card {
    background: #ffffff;
    border-color: rgba(37, 37, 31, 0.08);
    box-shadow: 0 18px 48px rgba(37, 37, 31, 0.14);
    gap: 14px;
    max-width: 470px;
    width: min(470px, calc(100% - 48px));
}

.fcs-intel-active .fcs-objective-card > strong {
    color: #151925;
    font-size: 18px;
    font-weight: 650;
}

.fcs-intel-active .fcs-overlay-actions .fcs-button {
    background: #111827;
    border-radius: 8px;
    min-height: 46px;
}

.fcs-intel-active .fcs-overlay-actions .fcs-button:hover,
.fcs-intel-active .fcs-overlay-actions .fcs-button:focus-visible {
    background: #0b1220;
}

.fcs-commander-active .fcs-objective-card {
    max-width: 620px;
    width: min(620px, calc(100% - 48px));
}

.fcs-commander-select {
    display: grid;
    gap: 12px;
    text-align: left;
}

.fcs-commander-select > p {
    color: var(--fcs-muted);
    font-size: 13px;
    line-height: 1.4;
    margin: 0;
}

.fcs-commander-list {
    display: grid;
    gap: 10px;
    max-height: min(390px, 54vh);
    overflow: auto;
    padding-right: 2px;
}

.fcs-commander-card {
    align-items: center;
    background: rgba(244, 239, 227, 0.78);
    border: 1px solid rgba(37, 37, 31, 0.14);
    border-radius: 8px;
    color: var(--fcs-ink);
    cursor: pointer;
    display: grid;
    gap: 12px;
    grid-template-columns: 72px 1fr;
    padding: 10px;
    text-align: left;
}

.fcs-commander-card:hover,
.fcs-commander-card:focus-visible,
.fcs-commander-card-selected {
    border-color: rgba(37, 123, 98, 0.72);
    box-shadow: 0 0 0 3px rgba(37, 123, 98, 0.14);
}

.fcs-commander-image {
    aspect-ratio: 1;
    background: #ffffff;
    border: 1px solid rgba(37, 37, 31, 0.14);
    border-radius: 7px;
    display: block;
    object-fit: cover;
    width: 72px;
}

.fcs-commander-placeholder {
    align-items: center;
    color: var(--fcs-accent);
    display: flex;
    font-size: 28px;
    font-weight: 850;
    justify-content: center;
}

.fcs-commander-body {
    display: grid;
    gap: 3px;
}

.fcs-commander-body strong {
    color: var(--fcs-ink);
    font-size: 15px;
}

.fcs-commander-body small,
.fcs-commander-body em,
.fcs-commander-body span {
    color: var(--fcs-muted);
    font-size: 12px;
    font-style: normal;
    line-height: 1.3;
}

.fcs-commander-body mark {
    background: rgba(37, 123, 98, 0.12);
    border: 1px solid rgba(37, 123, 98, 0.18);
    border-radius: 999px;
    color: #185748;
    display: inline-flex;
    font-size: 12px;
    font-weight: 750;
    justify-self: start;
    margin-top: 3px;
    padding: 3px 8px;
}

.fcs-commander-note {
    font-size: 12px !important;
}

.fcs-map-notice-active .fcs-objective-card {
    border-color: rgba(159, 58, 56, 0.34);
    box-shadow: 0 20px 52px rgba(37, 37, 31, 0.28), 0 0 0 4px rgba(201, 154, 47, 0.18);
    max-width: 460px;
    text-align: center;
    width: min(460px, calc(100% - 48px));
}

.fcs-map-notice-active .fcs-objective-card > strong {
    color: #7a2925;
    font-size: 20px;
}

.fcs-map-notice-active .fcs-objective-text {
    color: var(--fcs-ink);
    font-size: 16px;
    line-height: 1.45;
}

.fcs-objective-checklist {
    display: grid;
    gap: 10px;
    text-align: left;
}

.fcs-objective-section {
    display: grid;
    gap: 6px;
}

.fcs-objective-section strong {
    color: var(--fcs-ink);
    font-size: 14px;
}

.fcs-objective-note {
    color: var(--fcs-muted);
    font-size: 13px;
    white-space: pre-wrap;
}

.fcs-objective-row {
    align-items: start;
    color: var(--fcs-ink);
    display: grid;
    font-size: 13px;
    gap: 8px;
    grid-template-columns: 18px 1fr;
    line-height: 1.35;
}

.fcs-objective-row small {
    color: var(--fcs-muted);
    display: block;
    font-size: 12px;
    margin-top: 2px;
}

.fcs-objective-checkmark {
    align-items: center;
    border: 1px solid rgba(37, 37, 31, 0.3);
    border-radius: 4px;
    color: #ffffff;
    display: inline-flex;
    font-size: 12px;
    font-weight: 850;
    height: 16px;
    justify-content: center;
    margin-top: 1px;
    width: 16px;
}

.fcs-objective-row-done .fcs-objective-checkmark {
    background: var(--fcs-accent);
    border-color: var(--fcs-accent);
}

.fcs-objective-row-open .fcs-objective-checkmark {
    background: #9b3f3f;
    border-color: #9b3f3f;
}

.fcs-objective-row-info .fcs-objective-checkmark {
    background: rgba(37, 37, 31, 0.12);
    border-color: rgba(37, 37, 31, 0.22);
}

.fcs-rules-card {
    color: var(--fcs-ink);
    display: grid;
    gap: 12px;
    text-align: left;
    white-space: normal;
}

.fcs-rules-card section {
    display: grid;
    gap: 5px;
}

.fcs-rules-card strong {
    color: var(--fcs-ink);
    font-size: 15px;
}

.fcs-rules-card ul {
    display: grid;
    gap: 4px;
    margin: 0;
    padding-left: 18px;
}

.fcs-rules-card li {
    font-size: 13px;
    line-height: 1.35;
}

.fcs-intel-card {
    color: var(--fcs-ink);
    display: grid;
    gap: 11px;
    text-align: left;
    white-space: normal;
}

.fcs-intel-card p {
    font-size: 14px;
    line-height: 1.45;
    margin: 0;
}

.fcs-intel-card ul {
    display: grid;
    gap: 5px;
    margin: 0;
    padding-left: 18px;
}

.fcs-intel-card li {
    font-size: 13px;
    line-height: 1.35;
}

.fcs-intel-note {
    background: rgba(109, 90, 47, 0.1);
    border: 1px solid rgba(109, 90, 47, 0.22);
    border-radius: 5px;
    padding: 9px 10px;
}

.fcs-intel-choice-grid {
    display: grid;
    gap: 9px;
}

.fcs-intel-choice {
    background: #f7f8fb;
    border: 1px solid rgba(37, 37, 31, 0.12);
    border-radius: 8px;
    color: var(--fcs-ink);
    cursor: pointer;
    display: grid;
    gap: 4px;
    padding: 12px;
    text-align: left;
}

.fcs-intel-choice strong {
    align-items: center;
    color: var(--fcs-ink);
    display: flex;
    font-size: 14px;
    gap: 7px;
}

.fcs-intel-choice span {
    color: var(--fcs-muted);
    font-size: 13px;
    line-height: 1.35;
}

.fcs-intel-choice:hover,
.fcs-intel-choice:focus-visible {
    border-color: rgba(37, 110, 91, 0.5);
    box-shadow: 0 0 0 2px rgba(37, 110, 91, 0.12);
}

.fcs-intel-choice:disabled {
    cursor: not-allowed;
    opacity: 0.64;
}

.fcs-intel-choice-locked {
    background: rgba(37, 37, 31, 0.04);
}

.fcs-quiz-card {
    font-family: Inter, Roboto, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    gap: 15px;
    min-width: 0;
    width: 100%;
}

.fcs-quiz-top {
    align-items: center;
    display: flex;
    justify-content: space-between;
}

.fcs-quiz-top > div:first-child {
    display: grid;
    gap: 3px;
}

.fcs-quiz-meta,
.fcs-quiz-category {
    color: var(--fcs-muted);
    font-size: 12px;
    font-weight: 600;
}

.fcs-quiz-timer {
    --fcs-quiz-progress: 1;
    align-items: center;
    background:
        conic-gradient(var(--fcs-danger) calc(var(--fcs-quiz-progress) * 1turn), rgba(37, 37, 31, 0.1) 0);
    border-radius: 999px;
    display: inline-flex;
    height: 54px;
    justify-content: center;
    width: 54px;
}

.fcs-quiz-timer span {
    align-items: center;
    background: var(--fcs-panel);
    border-radius: 999px;
    display: inline-flex;
    font-size: 17px;
    font-weight: 650;
    height: 40px;
    justify-content: center;
    width: 40px;
}

.fcs-quiz-progress {
    display: grid;
    gap: 3px;
    grid-template-columns: repeat(auto-fit, minmax(24px, 1fr));
}

.fcs-quiz-step {
    background: rgba(37, 37, 31, 0.1);
    border-radius: 999px;
    height: 6px;
}

.fcs-quiz-step-active {
    background: #2c7dcc;
}

.fcs-quiz-step-done {
    background: var(--fcs-accent);
}

.fcs-quiz-step-correct {
    background: var(--fcs-accent);
}

.fcs-quiz-step-wrong {
    background: var(--fcs-danger);
}

.fcs-quiz-question {
    background: #fafbfe;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 520;
    line-height: 1.3;
    padding: 20px 16px;
    text-align: center;
}

.fcs-quiz-options {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fcs-quiz-option {
    background: #f4f4f6;
    border: 1px solid transparent;
    border-radius: 8px;
    color: var(--fcs-ink);
    cursor: pointer;
    font: inherit;
    font-weight: 500;
    min-height: 50px;
    padding: 10px 12px;
}

.fcs-quiz-option:hover,
.fcs-quiz-option:focus-visible {
    border-color: rgba(37, 110, 91, 0.45);
}

.fcs-quiz-option:disabled {
    cursor: default;
}

.fcs-quiz-option-correct,
.fcs-quiz-option-correct:disabled {
    background: #1fa650;
    color: #ffffff;
}

.fcs-quiz-option-wrong,
.fcs-quiz-option-wrong:disabled {
    background: var(--fcs-danger);
    color: #ffffff;
}

.fcs-quiz-feedback {
    font-size: 17px !important;
    font-weight: 600;
    text-align: center;
}

.fcs-quiz-explanation {
    align-items: center;
    background: rgba(37, 37, 31, 0.04);
    border-radius: 7px;
    color: var(--fcs-ink);
    display: grid;
    gap: 12px;
    grid-template-columns: auto 1fr;
    padding: 12px 14px;
    text-align: left;
}

.fcs-quiz-explanation p {
    margin: 0;
}

.fcs-quiz-explanation-image {
    border-radius: 7px;
    display: block;
    height: 70px;
    object-fit: cover;
    width: 70px;
}

.fcs-quiz-explanation:not(:has(.fcs-quiz-explanation-image)) {
    display: block;
    text-align: center;
}

.fcs-quiz-result {
    display: grid;
    gap: 8px;
    text-align: center;
}

.fcs-quiz-result strong {
    color: var(--fcs-accent-strong);
    font-size: 28px;
    font-weight: 650;
}

.fcs-rules-legend {
    margin-top: 2px;
}

.fcs-objective-card strong {
    font-size: 20px;
}

.fcs-objective-card .fcs-objective-section strong,
.fcs-victory-active .fcs-objective-card .fcs-objective-section strong {
    color: var(--fcs-ink);
    font-size: 14px;
    line-height: 1.2;
}

.fcs-victory-active .fcs-objective-card {
    max-width: 520px;
    padding: 24px;
    text-align: center;
}

.fcs-victory-active .fcs-objective-card strong {
    color: var(--fcs-accent-strong);
    font-size: 34px;
    line-height: 1.1;
}

.fcs-victory-active .fcs-objective-card .fcs-objective-text {
    color: var(--fcs-ink);
    font-size: 17px;
}

.fcs-objective-card .fcs-objective-text {
    color: var(--fcs-muted);
    line-height: 1.45;
    margin: 0;
    white-space: pre-wrap;
}

.fcs-overlay-actions {
    display: grid;
    gap: 8px;
}

.fcs-overlay-actions [hidden] {
    display: none;
}

.fcs-side {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.fcs-panel {
    background: var(--fcs-panel);
    border: 1px solid var(--fcs-border);
    border-radius: 6px;
    padding: 12px;
}

.fcs-round-score {
    align-items: start;
    display: grid;
    gap: 8px;
    grid-template-columns: 1fr auto;
    margin-bottom: 6px;
}

.fcs-info-panel-glow {
    animation: fcs-info-glow 1500ms ease-out;
}

@keyframes fcs-info-glow {
    0% {
        background: var(--fcs-panel);
        box-shadow: 0 0 0 rgba(201, 154, 47, 0);
    }

    18% {
        background: #e7d37a;
        border-color: rgba(201, 154, 47, 1);
        box-shadow: 0 0 0 5px rgba(201, 154, 47, 0.28), 0 0 28px rgba(37, 110, 91, 0.34);
    }

    55% {
        background: #d9ead4;
        border-color: rgba(37, 110, 91, 0.9);
        box-shadow: 0 0 0 3px rgba(37, 110, 91, 0.18), 0 0 18px rgba(201, 154, 47, 0.18);
    }

    100% {
        background: var(--fcs-panel);
        box-shadow: 0 0 0 rgba(201, 154, 47, 0);
    }
}

.fcs-title {
    font-size: 18px;
    font-weight: 750;
    line-height: 1.2;
    margin: 0;
}

.fcs-score {
    background: rgba(37, 110, 91, 0.1);
    border: 1px solid rgba(37, 110, 91, 0.2);
    border-radius: 4px;
    color: var(--fcs-accent-strong);
    font-size: 12px;
    font-weight: 750;
    line-height: 1;
    padding: 5px 7px;
    white-space: nowrap;
}

.fcs-status {
    color: var(--fcs-muted);
    font-size: 14px;
    line-height: 1.35;
    min-height: 38px;
}

.fcs-stat-row {
    align-items: center;
    display: flex;
    font-size: 14px;
    gap: 10px;
    justify-content: space-between;
    line-height: 1.5;
}

.fcs-stat-row span {
    flex: 0 0 auto;
}

.fcs-stat-row strong {
    overflow-wrap: anywhere;
    text-align: right;
}

.fcs-unit-list {
    display: grid;
    gap: 6px;
    margin-top: 8px;
}

.fcs-unit-row {
    align-items: center;
    border-top: 1px solid rgba(37, 37, 31, 0.12);
    display: grid;
    font-size: 13px;
    gap: 6px;
    grid-template-columns: 1fr auto;
    padding-top: 6px;
}

.fcs-unit-row strong {
    font-size: 13px;
}

.fcs-unit-row-active {
    color: var(--fcs-accent-strong);
}

.fcs-unit-row-spent {
    color: var(--fcs-muted);
}

.fcs-selected-unit {
    display: grid;
    gap: 8px;
    margin-top: 0;
    padding-top: 0;
}

.fcs-selected-empty {
    gap: 10px;
}

.fcs-selected-unit strong {
    font-size: 15px;
    line-height: 1.2;
}

.fcs-selected-unit span {
    color: var(--fcs-muted);
    font-size: 13px;
}

.fcs-selected-visual {
    position: relative;
}

.fcs-selected-image {
    aspect-ratio: 1;
    border: 1px solid rgba(37, 37, 31, 0.18);
    border-radius: 6px;
    display: block;
    object-fit: cover;
    width: 100%;
}

.fcs-selected-unit-info-button {
    align-items: center;
    background: #4f7190;
    border: 1px solid rgba(255, 250, 240, 0.92);
    border-radius: 999px;
    color: #fffaf0;
    cursor: pointer;
    display: inline-flex;
    height: 30px;
    justify-content: center;
    padding: 0;
    position: absolute;
    right: 8px;
    top: 8px;
    width: 30px;
    z-index: 2;
}

.fcs-selected-unit-info-button:hover,
.fcs-selected-unit-info-button:focus-visible {
    background: #3f5d78;
}

.fcs-selected-unit-info-button .fcs-button-icon-info {
    border-color: #ffffff;
    color: #ffffff;
}

.fcs-selected-unit-info-panel {
    background: rgba(255, 250, 240, 0.96);
    border: 1px solid rgba(37, 37, 31, 0.22);
    border-radius: 6px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
    display: grid;
    gap: 8px;
    inset: 8px;
    max-height: calc(100% - 16px);
    overflow: hidden;
    padding: 10px;
    position: absolute;
    z-index: 3;
}

.fcs-selected-unit-info-text {
    color: var(--fcs-ink);
    font-size: 12px;
    line-height: 1.35;
    overflow: auto;
    white-space: pre-wrap;
}

.fcs-selected-unit-info-close {
    align-self: end;
    background: #4f7190;
    border: 0;
    border-radius: 5px;
    color: #ffffff;
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    min-height: 30px;
    padding: 6px 10px;
}

.fcs-selected-unit-info-close:hover,
.fcs-selected-unit-info-close:focus-visible {
    background: #3f5d78;
}

.fcs-selected-placeholder {
    align-content: center;
    aspect-ratio: 1;
    background: rgba(37, 37, 31, 0.05);
    border: 1px solid rgba(37, 37, 31, 0.12);
    border-radius: 6px;
    display: grid;
    gap: 8px;
    padding: 14px;
    text-align: center;
}

.fcs-selected-placeholder strong {
    font-size: 16px;
}

.fcs-selected-placeholder span {
    color: var(--fcs-muted);
    font-size: 14px;
    line-height: 1.35;
}

.fcs-selected-placeholder-compact {
    aspect-ratio: auto;
    min-height: 34px;
    padding: 7px 10px;
}

.fcs-selected-flag-image {
    aspect-ratio: 16 / 10;
    border: 1px solid rgba(37, 37, 31, 0.18);
    border-radius: 5px;
    box-shadow: 0 1px 2px rgba(37, 37, 31, 0.08);
    display: block;
    object-fit: cover;
    width: 100%;
}

.fcs-selected-xp {
    align-items: center;
    align-self: start;
    background: rgba(201, 154, 47, 0.16);
    border: 1px solid rgba(201, 154, 47, 0.42);
    border-radius: 999px;
    color: #6d4c11 !important;
    display: inline-flex;
    font-size: 12px !important;
    font-weight: 750;
    gap: 6px;
    justify-self: start;
    line-height: 1;
    padding: 4px 8px 4px 6px;
}

.fcs-selected-commander-card {
    align-items: center;
    background: rgba(244, 239, 227, 0.72);
    border: 1px solid rgba(79, 113, 144, 0.22);
    border-radius: 7px;
    display: grid;
    gap: 10px;
    grid-template-columns: 72px 1fr;
    padding: 8px;
}

.fcs-selected-commander-image {
    aspect-ratio: 1;
    background: #ffffff;
    border: 1px solid rgba(37, 37, 31, 0.14);
    border-radius: 7px;
    display: block;
    object-fit: cover;
    width: 72px;
}

.fcs-selected-commander-body {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.fcs-selected-commander-body strong {
    color: var(--fcs-muted);
    font-size: 11px;
    line-height: 1.2;
    text-transform: uppercase;
}

.fcs-selected-commander-body em {
    color: var(--fcs-ink);
    font-size: 13px;
    font-style: normal;
    font-weight: 750;
    line-height: 1.25;
}

.fcs-selected-commander-body small {
    color: var(--fcs-muted);
    font-size: 12px;
    line-height: 1.25;
}

.fcs-selected-morale {
    background: rgba(37, 123, 98, 0.14);
    border-color: rgba(37, 123, 98, 0.34);
    color: #185748 !important;
}

.fcs-selected-command {
    background: rgba(79, 113, 144, 0.15);
    border-color: rgba(79, 113, 144, 0.34);
    color: #2f536f !important;
    white-space: normal;
}

.fcs-selected-xp-icon {
    background: linear-gradient(90deg, #d1232a 0 34%, #f5f5f5 34% 66%, #194a9b 66% 100%);
    border-radius: 2px 2px 5px 5px;
    display: inline-block;
    height: 16px;
    position: relative;
    width: 14px;
}

.fcs-selected-xp-icon::after {
    background: radial-gradient(circle at 35% 30%, #ffe79a 0 18%, #d7a739 19% 68%, #9a6b13 69% 100%);
    border: 1px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 1px 2px rgba(37, 37, 31, 0.18);
    content: "";
    height: 13px;
    left: 50%;
    position: absolute;
    top: 7px;
    transform: translateX(-50%);
    width: 13px;
}

.fcs-selected-mark {
    align-items: center;
    aspect-ratio: 1;
    border: 2px solid #ffffff;
    border-radius: 6px;
    color: #ffffff;
    display: flex;
    font-size: 42px;
    font-weight: 800;
    justify-content: center;
    width: 100%;
}

.fcs-selected-mark.fcs-unit-player {
    background: var(--fcs-accent);
}

.fcs-selected-mark.fcs-unit-enemy {
    background: var(--fcs-danger);
}

.fcs-selected-feature p {
    color: var(--fcs-muted);
    font-size: 13px;
    line-height: 1.38;
    margin: 0;
}

.fcs-selected-feature-visual {
    align-items: center;
    aspect-ratio: 1;
    border: 2px solid #ffffff;
    border-radius: 6px;
    box-shadow: inset 0 -18px 30px rgba(37, 37, 31, 0.12);
    color: #ffffff;
    display: flex;
    font-size: 22px;
    font-weight: 800;
    justify-content: center;
    width: 100%;
}

.fcs-selected-city-visual {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0)),
        #9f4e3e;
}

.fcs-selected-mine-visual {
    background:
        radial-gradient(circle at 50% 54%, #fff1b8 0 13%, transparent 14%),
        radial-gradient(circle at 50% 54%, #d23027 0 36%, #6c2724 37% 100%);
    color: #ffffff;
    font-size: 46px;
}

.fcs-selected-mine-triggered {
    background:
        radial-gradient(circle at 50% 55%, #1f1d19 0 18%, transparent 19%),
        radial-gradient(circle at 50% 55%, #4b4437 0 42%, #2e2a23 43% 100%);
    color: #ffdca0;
    font-size: 34px;
}

.fcs-selected-stats {
    display: grid;
    gap: 6px;
    grid-template-columns: repeat(3, 1fr);
}

.fcs-selected-stats-two {
    grid-template-columns: repeat(2, 1fr);
}

.fcs-selected-stats span {
    background: rgba(37, 37, 31, 0.06);
    border-radius: 5px;
    color: var(--fcs-ink);
    font-size: 12px;
    font-weight: 700;
    padding: 6px 5px;
    text-align: center;
}

.fcs-actions {
    display: grid;
    gap: 8px;
}

.fcs-button-intel {
    background: #6d5a2f;
}

.fcs-button-intel:hover,
.fcs-button-intel:focus-visible {
    background: #574723;
}

.fcs-button-intel:disabled {
    background: rgba(109, 90, 47, 0.54);
    cursor: not-allowed;
}

.fcs-button-lock {
    border: 2px solid currentColor;
    border-radius: 2px;
    display: inline-block;
    height: 10px;
    margin-right: 7px;
    position: relative;
    width: 12px;
}

.fcs-button-lock::before {
    border: 2px solid currentColor;
    border-bottom: 0;
    border-radius: 999px 999px 0 0;
    content: "";
    height: 8px;
    left: 1px;
    position: absolute;
    top: -9px;
    width: 6px;
}

.fcs-action-row {
    display: grid;
    gap: 8px;
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
}

.fcs-button {
    align-items: center;
    background: var(--fcs-accent);
    border: 0;
    border-radius: 6px;
    color: #ffffff;
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-weight: 700;
    justify-content: center;
    min-height: 40px;
    padding: 9px 12px;
}

.fcs-button:hover,
.fcs-button:focus-visible {
    background: var(--fcs-accent-strong);
}

.fcs-button:disabled {
    opacity: 0.58;
    cursor: not-allowed;
}

.fcs-button-secondary {
    background: #695f48;
}

.fcs-button-secondary:hover,
.fcs-button-secondary:focus-visible {
    background: #4e4737;
}

.fcs-button-info {
    background: #4f6f8f;
    gap: 8px;
}

.fcs-button-info:hover,
.fcs-button-info:focus-visible {
    background: #3e5d7b;
}

.fcs-button-danger {
    background: #9b3f3f;
    gap: 8px;
}

.fcs-button-danger:hover,
.fcs-button-danger:focus-visible {
    background: #7d3030;
}

.fcs-button-icon-x {
    align-items: center;
    border: 2px solid currentColor;
    border-radius: 999px;
    display: inline-flex;
    height: 17px;
    justify-content: center;
    position: relative;
    width: 17px;
}

.fcs-button-icon-x::before,
.fcs-button-icon-x::after {
    background: currentColor;
    content: "";
    height: 2px;
    position: absolute;
    width: 9px;
}

.fcs-button-icon-x::before {
    transform: rotate(45deg);
}

.fcs-button-icon-x::after {
    transform: rotate(-45deg);
}

.fcs-button-icon-info {
    align-items: center;
    border: 2px solid currentColor;
    border-radius: 999px;
    display: inline-flex;
    font-family: Georgia, serif;
    font-size: 14px;
    font-style: italic;
    font-weight: 850;
    height: 17px;
    justify-content: center;
    line-height: 1;
    width: 17px;
}

.fcs-game[data-mode="editor"] [data-fcs-abandon],
.fcs-game[data-mode="editor"] [data-fcs-rules] {
    display: none;
}

.fcs-game[data-mode="editor"] .fcs-action-row {
    display: none;
}

.fcs-editor-active .fcs-map-wrap {
    --fcs-map-height: clamp(500px, calc(100vh - 175px), 900px);
    box-shadow: 0 0 0 3px rgba(201, 154, 47, 0.24);
}

.fcs-editor-panel {
    display: grid;
    gap: 8px;
}

.fcs-game:not(.fcs-editor-active) .fcs-editor-field,
.fcs-game:not(.fcs-editor-active) .fcs-editor-unit-list,
.fcs-game:not(.fcs-editor-active) .fcs-editor-custom-unit,
.fcs-game:not(.fcs-editor-active) .fcs-editor-object-tools,
.fcs-game:not(.fcs-editor-active) .fcs-editor-output,
.fcs-game:not(.fcs-editor-active) .fcs-editor-message,
.fcs-game:not(.fcs-editor-active) [data-fcs-export] {
    display: none;
}

.fcs-editor-toggle {
    align-items: center;
    display: flex;
    font-size: 13px;
    gap: 8px;
}

.fcs-editor-toggle input {
    accent-color: var(--fcs-accent);
}

.fcs-editor-field {
    color: var(--fcs-muted);
    display: grid;
    font-size: 12px;
    gap: 4px;
}

.fcs-editor-field select,
.fcs-editor-field input,
.fcs-editor-field textarea {
    background: #ffffff;
    border: 1px solid rgba(37, 37, 31, 0.22);
    border-radius: 5px;
    color: var(--fcs-ink);
    font: inherit;
    min-height: 34px;
    padding: 6px 8px;
}

.fcs-editor-field textarea {
    min-height: 82px;
    resize: vertical;
}

.fcs-editor-grid-2 {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fcs-editor-grid-3 {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fcs-editor-grid-4 {
    display: grid;
    gap: 6px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.fcs-editor-crop {
    border: 1px solid rgba(37, 37, 31, 0.12);
    border-radius: 6px;
    display: grid;
    gap: 8px;
    padding: 8px;
}

.fcs-editor-crop strong {
    font-size: 13px;
}

.fcs-editor-custom-unit {
    border-top: 1px solid rgba(37, 37, 31, 0.14);
    display: grid;
    gap: 8px;
    margin-top: 2px;
    padding-top: 10px;
}

.fcs-editor-object-tools {
    background: rgba(37, 37, 31, 0.035);
    border: 1px solid rgba(37, 37, 31, 0.12);
    border-radius: 6px;
    display: grid;
    gap: 8px;
    padding: 9px;
}

.fcs-editor-reinforcements-panel {
    background: rgba(37, 37, 31, 0.035);
    border: 1px solid rgba(37, 37, 31, 0.12);
    border-radius: 6px;
    display: grid;
    gap: 8px;
    padding: 9px;
}

.fcs-editor-reinforcements-panel[hidden] {
    display: none;
}

.fcs-editor-section {
    display: none;
}

.fcs-editor-section-active {
    display: grid;
    gap: 8px;
}

.fcs-editor-custom-unit h4,
.fcs-editor-object-tools h4 {
    color: var(--fcs-ink);
    font-size: 15px;
    margin: 0;
}

.fcs-editor-save-row {
    display: grid;
    gap: 6px;
    grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
}

.fcs-editor-save-row .fcs-button {
    font-size: 13px;
    min-height: 34px;
    padding: 7px 8px;
}

.fcs-editor-output {
    background: rgba(37, 37, 31, 0.04);
    border: 1px solid rgba(37, 37, 31, 0.16);
    border-radius: 5px;
    color: var(--fcs-ink);
    font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
    font-size: 11px;
    line-height: 1.35;
    min-height: 110px;
    padding: 8px;
    resize: vertical;
}

.fcs-editor-unit-list {
    display: grid;
    gap: 5px;
}

.fcs-editor-unit-option {
    align-items: center;
    background: rgba(37, 37, 31, 0.04);
    border: 1px solid rgba(37, 37, 31, 0.14);
    border-radius: 5px;
    color: var(--fcs-ink);
    cursor: pointer;
    display: grid;
    font: inherit;
    gap: 2px;
    padding: 6px 8px;
    text-align: left;
}

.fcs-editor-unit-option span {
    font-size: 12px;
    line-height: 1.2;
}

.fcs-editor-unit-option small,
.fcs-editor-empty {
    color: var(--fcs-muted);
    font-size: 11px;
}

.fcs-editor-unit-option-active {
    background: rgba(37, 110, 91, 0.12);
    border-color: rgba(37, 110, 91, 0.55);
}

.fcs-editor-message {
    color: var(--fcs-muted);
    font-size: 12px;
    min-height: 16px;
}

.fcs-legend {
    display: grid;
    gap: 7px 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fcs-legend-item {
    align-items: flex-start;
    display: flex;
    font-size: 12px;
    gap: 8px;
    line-height: 1.25;
}

.fcs-legend-item small {
    color: var(--fcs-muted);
    display: block;
    font-size: 11px;
    margin-top: 1px;
}

.fcs-swatch {
    flex: 0 0 auto;
    border: 1px solid rgba(37, 37, 31, 0.25);
    border-radius: 4px;
    display: inline-block;
    height: 16px;
    margin-top: 1px;
    width: 22px;
}

.fcs-swatch.fcs-terrain-plains {
    background: #c9d88f;
}

.fcs-swatch.fcs-terrain-forest {
    background: #76965f;
}

.fcs-swatch.fcs-terrain-hill {
    background: #c2aa73;
}

.fcs-swatch.fcs-terrain-water {
    background: #7caec6;
}

.fcs-swatch.fcs-terrain-bridge {
    background: linear-gradient(135deg, #7caec6 0 42%, #8a6f4b 42% 58%, #7caec6 58% 100%);
}

.fcs-swatch.fcs-unit-player {
    background: var(--fcs-accent);
}

.fcs-swatch.fcs-unit-enemy {
    background: var(--fcs-danger);
}

.fcs-swatch.fcs-bunker-swatch {
    background: #9f3a38;
    border-color: rgba(37, 37, 31, 0.38);
}

.fcs-hex {
    cursor: pointer;
    stroke: rgba(37, 37, 31, 0.18);
    stroke-width: 1;
    transition: fill 120ms ease, stroke 120ms ease, filter 120ms ease;
}

.fcs-hex:hover,
.fcs-hex:focus {
    filter: brightness(1.06);
    outline: none;
    stroke: rgba(37, 37, 31, 0.75);
}

.fcs-terrain-plains {
    fill: #c9d6a0;
}

.fcs-terrain-forest {
    fill: #8fa977;
}

.fcs-terrain-hill {
    fill: #c9b78a;
}

.fcs-terrain-water {
    cursor: not-allowed;
    fill: #78aeca;
}

.fcs-terrain-bridge {
    fill: #78aeca;
}

.fcs-terrain-detail {
    pointer-events: none;
}

.fcs-mine-detail {
    pointer-events: none;
}

.fcs-mine-pulse {
    fill: rgba(210, 48, 39, 0.22);
    stroke: rgba(210, 48, 39, 0.72);
    stroke-width: 2;
}

.fcs-mine-marker {
    fill: #d23027;
    stroke: #fff1b8;
    stroke-width: 2;
}

.fcs-mine-icon {
    dominant-baseline: central;
    fill: #ffffff;
    font-size: 15px;
    font-weight: 900;
    text-anchor: middle;
}

.fcs-mine-label {
    fill: rgba(37, 37, 31, 0.82);
    font-size: 9px;
    font-weight: 750;
    paint-order: stroke;
    pointer-events: none;
    stroke: rgba(255, 250, 240, 0.82);
    stroke-width: 2.4px;
    text-anchor: middle;
}

.fcs-mine-blast {
    fill: #f0b23c;
    opacity: 0;
    stroke: #b13a2d;
    stroke-linejoin: round;
    stroke-width: 1.4;
}

.fcs-mine-crater {
    fill: #4b4437;
    opacity: 0.85;
    stroke: rgba(255, 241, 184, 0.5);
    stroke-width: 1.2;
}

.fcs-mine-scorch {
    fill: #1f1d19;
    opacity: 0.68;
}

.fcs-mine-crack {
    fill: none;
    opacity: 0.72;
    stroke: #3a3329;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.fcs-mine-animating .fcs-mine-pulse {
    animation: fcs-mine-pulse 900ms ease-out 0s 3;
}

.fcs-mine-animating .fcs-mine-blast {
    animation: fcs-mine-flash 900ms ease-out 0s 3;
}

@keyframes fcs-mine-pulse {
    0% {
        opacity: 0.95;
        transform: scale(0.7);
        transform-origin: center;
    }

    70% {
        opacity: 0.22;
        transform: scale(1.35);
        transform-origin: center;
    }

    100% {
        opacity: 0.45;
        transform: scale(1);
        transform-origin: center;
    }
}

@keyframes fcs-mine-flash {
    0% {
        opacity: 0.95;
        transform: scale(0.65);
        transform-origin: center;
    }

    45% {
        opacity: 0.75;
        fill: #ffcf33;
        transform: scale(1.16);
        transform-origin: center;
    }

    100% {
        opacity: 0;
        transform: scale(0.9);
        transform-origin: center;
    }
}

.fcs-city-detail {
    pointer-events: none;
}

.fcs-editor-active .fcs-city-detail {
    cursor: pointer;
    pointer-events: auto;
}

.fcs-city-hp {
    pointer-events: none;
}

.fcs-city-hp-tab {
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.16));
    stroke: #ffffff;
    stroke-width: 1.2;
}

.fcs-city-hp-text {
    dominant-baseline: central;
    fill: #ffffff;
    font-size: 8px;
    font-weight: 650;
    text-anchor: middle;
}

.fcs-city-shadow {
    fill: rgba(38, 35, 28, 0.2);
}

.fcs-city-building {
    fill: #d8c4a1;
    stroke: rgba(78, 66, 49, 0.55);
    stroke-width: 1.1;
}

.fcs-city-building-back {
    fill: #c9b38f;
}

.fcs-city-building-main {
    fill: #ead8b6;
}

.fcs-city-roof {
    fill: #9f4e3e;
    stroke: rgba(78, 38, 31, 0.45);
    stroke-width: 1;
}

.fcs-city-window {
    fill: rgba(73, 94, 106, 0.72);
}

.fcs-city-flag-pole {
    fill: none;
    stroke: rgba(42, 40, 34, 0.72);
    stroke-linecap: round;
    stroke-width: 1.5;
}

.fcs-city-flag {
    stroke: rgba(54, 42, 37, 0.38);
    stroke-linejoin: round;
    stroke-width: 0.8;
}

.fcs-city-player .fcs-city-flag {
    fill: rgba(38, 132, 93, 0.9);
}

.fcs-city-enemy .fcs-city-flag {
    fill: rgba(178, 57, 52, 0.9);
}

.fcs-city-neutral .fcs-city-flag {
    fill: rgba(217, 171, 52, 0.95);
}

.fcs-city-neutral .fcs-city-roof {
    fill: #c99a2f;
    stroke: rgba(92, 67, 28, 0.5);
}

.fcs-city-neutral .fcs-city-building {
    fill: #e3cf99;
    stroke: rgba(93, 76, 37, 0.5);
}

.fcs-city-neutral .fcs-city-building-back {
    fill: #d2b977;
}

.fcs-city-neutral .fcs-city-building-main {
    fill: #f2dda2;
}

.fcs-border-detail {
    pointer-events: none;
}

.fcs-border-shadow {
    fill: none;
    opacity: 0.34;
    stroke: rgba(255, 250, 240, 0.95);
    stroke-linecap: round;
    stroke-width: 7;
}

.fcs-border-line {
    fill: none;
    stroke: rgba(52, 45, 38, 0.76);
    stroke-dasharray: 8 6;
    stroke-linecap: round;
    stroke-width: 3.2;
}

.fcs-bunker-detail {
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.18));
    pointer-events: none;
}

.fcs-editor-active .fcs-bunker-detail {
    cursor: pointer;
    pointer-events: auto;
}

.fcs-bunker-base {
    fill: #8b7b5a;
    stroke: rgba(37, 37, 31, 0.42);
    stroke-width: 1.5;
}

.fcs-bunker-roof {
    fill: #6d6047;
    stroke: rgba(37, 37, 31, 0.38);
    stroke-width: 1.2;
}

.fcs-bunker-enemy .fcs-bunker-base {
    fill: #9f3a38;
}

.fcs-bunker-player .fcs-bunker-base {
    fill: var(--fcs-accent);
}

.fcs-bunker-slit {
    fill: rgba(37, 37, 31, 0.72);
}

.fcs-bunker-label {
    dominant-baseline: central;
    fill: #ffffff;
    font-size: 12px;
    font-weight: 850;
    text-anchor: middle;
}

.fcs-bunker-hp {
    pointer-events: none;
}

.fcs-bunker-hp-tab {
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.16));
    stroke: #ffffff;
    stroke-width: 1.2;
}

.fcs-bunker-hp-text {
    dominant-baseline: central;
    fill: #ffffff;
    font-size: 8px;
    font-weight: 650;
    text-anchor: middle;
}

.fcs-tree-trunk {
    fill: #7a6040;
    opacity: 0.9;
}

.fcs-tree-bough {
    fill: #355f42;
    stroke: rgba(255, 255, 255, 0.2);
    stroke-width: 0.8;
}

.fcs-tree-bough-top {
    fill: #47764f;
}

.fcs-hill-shadow {
    fill: rgba(79, 63, 45, 0.18);
}

.fcs-hill-ridge {
    fill: #8f815e;
    opacity: 0.8;
    stroke: rgba(255, 255, 255, 0.22);
    stroke-width: 1.2;
}

.fcs-hill-highlight {
    fill: none;
    opacity: 0.85;
    stroke: rgba(232, 220, 177, 0.85);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.fcs-water-wave {
    fill: none;
    opacity: 0.45;
    stroke: rgba(232, 249, 255, 0.8);
    stroke-linecap: round;
    stroke-width: 1.5;
}

.fcs-water-wave-strong {
    opacity: 0.65;
    stroke-width: 1.9;
}

.fcs-bridge-deck {
    fill: #9a7a51;
    opacity: 0.94;
    stroke: rgba(72, 48, 29, 0.55);
    stroke-linejoin: round;
    stroke-width: 1;
}

.fcs-bridge-plank {
    fill: none;
    opacity: 0.78;
    stroke: rgba(80, 50, 31, 0.8);
    stroke-linecap: round;
    stroke-width: 1.15;
}

.fcs-bridge-rail {
    fill: none;
    opacity: 0.9;
    stroke: rgba(64, 43, 28, 0.82);
    stroke-linecap: round;
    stroke-width: 2;
}

.fcs-base-player {
    stroke: var(--fcs-accent);
    stroke-width: 2.5;
}

.fcs-base-enemy {
    stroke: var(--fcs-danger);
    stroke-width: 2.5;
}

.fcs-base-neutral {
    stroke: var(--fcs-gold);
    stroke-width: 2.5;
}

.fcs-hex-selected {
    stroke: #ffdc3f;
    stroke-width: 3;
}

.fcs-hex-spent {
    stroke: rgba(37, 37, 31, 0.3);
    stroke-dasharray: 5 5;
}

.fcs-hex-reachable {
    fill: rgba(73, 157, 220, 0.34);
    stroke: rgba(40, 128, 196, 0.72);
    stroke-width: 2.5;
}

.fcs-hex-attackable {
    fill: rgba(204, 61, 57, 0.28);
    stroke: rgba(166, 39, 37, 0.78);
    stroke-width: 2.5;
}

.fcs-unit {
    cursor: pointer;
}

.fcs-unit-hp {
    pointer-events: none;
}

.fcs-unit-disc {
    filter: drop-shadow(0 5px 4px rgba(0, 0, 0, 0.22));
    stroke: #ffffff;
    stroke-width: 3;
}

.fcs-unit-image {
    pointer-events: none;
}

.fcs-unit-hp-tab {
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.16));
    stroke: #ffffff;
    stroke-width: 1.5;
}

.fcs-unit-hp-icon {
    fill: #ffffff;
    pointer-events: none;
    stroke: #ffffff;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.25;
}

.fcs-unit-hp-text {
    fill: #ffffff;
    font-size: 8.5px;
    font-weight: 500;
    dominant-baseline: central;
    text-anchor: middle;
}

.fcs-unit-spent {
    opacity: 0.62;
}

.fcs-unit-xp-badge {
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.18));
    pointer-events: none;
}

.fcs-unit-xp-medal {
    fill: #d7a739;
    stroke: #ffffff;
    stroke-width: 1.5;
}

.fcs-unit-xp-text {
    dominant-baseline: central;
    fill: #ffffff;
    font-size: 8px;
    font-weight: 850;
    text-anchor: middle;
}

.fcs-unit-commander-badge {
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.22));
    pointer-events: none;
}

.fcs-unit-commander-medal {
    fill: #2f6f5f;
    stroke: #fffaf0;
    stroke-width: 1.6;
}

.fcs-unit-commander-star {
    dominant-baseline: central;
    fill: #fffaf0;
    font-size: 10px;
    font-weight: 900;
    text-anchor: middle;
}

.fcs-unit-editor-selected .fcs-unit-disc,
.fcs-unit-editor-selected .fcs-unit-hp-tab {
    stroke: #ffdc3f;
    stroke-width: 3;
}

.fcs-unit-inspected .fcs-unit-disc,
.fcs-unit-inspected .fcs-unit-hp-tab {
    stroke: #ffdc3f;
    stroke-width: 3;
}

.fcs-unit-player {
    fill: var(--fcs-accent);
}

.fcs-unit-enemy {
    fill: var(--fcs-danger);
}

.fcs-unit-neutral {
    fill: var(--fcs-gold);
}

.fcs-unit-label {
    fill: #ffffff;
    font-size: 20px;
    font-weight: 800;
    text-anchor: middle;
    dominant-baseline: central;
}

.fcs-airdrop {
    filter: drop-shadow(0 7px 6px rgba(37, 37, 31, 0.3));
    pointer-events: none;
}

.fcs-airdrop-shadow {
    fill: rgba(37, 37, 31, 0.2);
}

.fcs-airdrop-body,
.fcs-airdrop-tail {
    fill: #4f6d52;
    stroke: rgba(255, 250, 240, 0.92);
    stroke-linejoin: round;
    stroke-width: 1.4;
}

.fcs-airdrop-cabin {
    fill: rgba(187, 214, 217, 0.92);
    stroke: rgba(37, 37, 31, 0.36);
    stroke-width: 0.9;
}

.fcs-airdrop-mast,
.fcs-airdrop-rotor,
.fcs-airdrop-tail-rotor {
    stroke: rgba(37, 37, 31, 0.82);
    stroke-linecap: round;
}

.fcs-airdrop-mast {
    stroke-width: 2;
}

.fcs-airdrop-rotor {
    animation: fcs-airdrop-rotor 130ms linear infinite alternate;
    stroke-width: 3.4;
    transform-origin: center;
}

.fcs-airdrop-tail-rotor {
    stroke-width: 2.4;
}

.fcs-airdrop-caption {
    filter: drop-shadow(0 3px 5px rgba(37, 37, 31, 0.22));
    pointer-events: none;
}

.fcs-airdrop-caption-panel {
    fill: rgba(37, 37, 31, 0.86);
    stroke: rgba(255, 250, 240, 0.45);
    stroke-width: 1;
}

.fcs-airdrop-caption-text {
    dominant-baseline: central;
    fill: #fffaf0;
    font-size: 9px;
    font-weight: 750;
    text-anchor: middle;
}

@keyframes fcs-airdrop-rotor {
    from {
        transform: scaleX(0.64);
    }

    to {
        transform: scaleX(1.08);
    }
}

.fcs-base-label {
    fill: rgba(37, 37, 31, 0.72);
    font-size: 11px;
    font-weight: 800;
    pointer-events: none;
    text-anchor: middle;
}

.fcs-map-label {
    fill: rgba(37, 37, 31, 0.66);
    font-size: 9px;
    font-weight: 700;
    paint-order: stroke;
    pointer-events: none;
    stroke: rgba(255, 250, 240, 0.82);
    stroke-linejoin: round;
    stroke-width: 2.4px;
    text-anchor: middle;
}

@media (max-width: 760px) {
    .fcs-game {
        --fcs-map-height: 420px;
    }

    .fcs-shell {
        grid-template-columns: 1fr;
    }

    .fcs-map-wrap,
    .fcs-map {
        min-height: var(--fcs-map-height);
    }

    .fcs-focus-mode {
        overflow: hidden;
    }

    .fcs-focus-mode .fcs-shell {
        gap: 6px;
        grid-template-columns: 1fr;
        grid-template-rows: minmax(0, 1fr) minmax(86px, 30dvh);
        padding: 6px;
    }

    .fcs-focus-mode .fcs-map-wrap,
    .fcs-focus-mode .fcs-map {
        height: 100%;
        min-height: 0;
    }

    .fcs-focus-mode .fcs-side {
        gap: 6px;
        min-height: 0;
        overflow-y: auto;
    }

    .fcs-focus-mode .fcs-panel {
        padding: 8px;
    }

    .fcs-focus-mode [data-fcs-stats] {
        display: none;
    }

    .fcs-focus-mode .fcs-actions {
        gap: 6px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .fcs-focus-mode .fcs-actions > .fcs-button:first-child,
    .fcs-focus-mode .fcs-actions > .fcs-button:nth-child(2),
    .fcs-focus-mode .fcs-actions > .fcs-button:last-child,
    .fcs-focus-mode .fcs-action-row {
        grid-column: 1 / -1;
    }

    .fcs-focus-mode .fcs-button {
        min-height: 36px;
        padding: 7px 8px;
    }

    .fcs-intel-active .fcs-objective-overlay {
        align-items: stretch;
        background: rgba(37, 37, 31, 0.42);
        inset: 0;
        justify-content: center;
        padding: 10px;
        position: fixed;
        z-index: 50;
    }

    .fcs-intel-active .fcs-objective-card {
        align-self: center;
        gap: 10px;
        max-height: calc(100vh - 20px);
        max-height: calc(100dvh - 20px);
        max-width: none;
        overflow-x: hidden;
        overflow-y: auto;
        padding: 12px;
        width: min(100%, 430px);
    }

    .fcs-intel-active .fcs-objective-card > strong {
        font-size: 16px;
    }

    .fcs-quiz-card {
        gap: 10px;
    }

    .fcs-quiz-timer {
        height: 46px;
        width: 46px;
    }

    .fcs-quiz-timer span {
        font-size: 15px;
        height: 34px;
        width: 34px;
    }

    .fcs-quiz-question {
        font-size: 16px;
        padding: 14px 12px;
    }

    .fcs-quiz-options {
        gap: 8px;
        grid-template-columns: 1fr;
    }

    .fcs-quiz-option {
        min-height: 42px;
        padding: 8px 10px;
    }

    .fcs-quiz-explanation {
        align-items: start;
        gap: 9px;
        padding: 10px;
    }

    .fcs-quiz-explanation-image {
        height: 56px;
        width: 56px;
    }

    .fcs-intel-active .fcs-overlay-actions .fcs-button {
        min-height: 42px;
    }
}

@media (min-width: 761px) and (max-height: 820px) {
    .fcs-game {
        --fcs-map-height: clamp(420px, calc(100vh - 185px), 600px);
        margin-bottom: 8px;
        margin-top: 8px;
    }

    .fcs-shell {
        gap: 12px;
        padding: 10px;
    }

    .fcs-editor-active .fcs-map-wrap {
        --fcs-map-height: clamp(460px, calc(100vh - 165px), 700px);
    }
}

@media (min-width: 761px) and (max-height: 740px) {
    .fcs-game {
        --fcs-map-height: clamp(360px, calc(100vh - 220px), 520px);
        margin-bottom: 6px;
        margin-top: 6px;
    }

    .fcs-shell {
        gap: 10px;
        padding: 8px;
    }

    .fcs-editor-active .fcs-map-wrap {
        --fcs-map-height: clamp(400px, calc(100vh - 190px), 620px);
    }
}
