/* ============================================================
   SHADOWSKINGS — STRONGHOLD MOBILE LANDSCAPE
   Desktop and portrait layouts remain unchanged.
   ============================================================ */

@media screen
    and (max-width: 950px)
    and (orientation: landscape)
    and (max-height: 600px) {

    /* Full available landscape width */

    .keep-panel {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    /* Compact header */

    .keep-command-header {
        padding: 8px 46px 8px 12px;
        gap: 6px;
        min-height: 0;
    }

    .keep-command-eyebrow {
        font-size: 12px;
        letter-spacing: 0.12em;
    }

    .keep-command-title {
        font-size: 18px;
        line-height: 1.2;
    }

    .keep-command-subtitle {
        font-size: 12px;
        line-height: 1.3;
    }

    .keep-command-header-right {
        width: 100%;
        min-width: 0;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 5px;
    }

    .keep-header-status {
        padding: 5px 6px;
    }

    .keep-header-status-label {
        font-size: 12px;
    }

    .keep-header-status-value {
        font-size: 13px;
    }

    /* Compact resources: 4 columns instead of 3 */

    .keep-resource-strip {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .keep-resource-item {
        min-width: 0;
        padding: 5px 7px;
        border-bottom: 1px solid rgba(255,255,255,0.04);
    }

    .keep-resource-symbol {
        width: 24px;
        height: 24px;
        flex-basis: 24px;
        font-size: 12px;
    }

    .keep-resource-label {
        font-size: 12px;
    }

    .keep-resource-value {
        font-size: 12px;
        overflow-wrap: anywhere;
    }

    /* Kingdom status: compact single row */

    .keep-kingdom-status-bar {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .keep-kingdom-status-block {
        min-width: 0;
        padding: 6px 4px;
    }

    .keep-kingdom-status-title {
        font-size: 12px;
    }

    .keep-kingdom-status-main {
        font-size: 12px;
    }

    .keep-kingdom-status-caption {
        font-size: 12px;
    }

    /* Navigation: swipe horizontally */

    .keep-tab-bar,
    .keep-command-tabs {
        display: flex;
        flex-wrap: nowrap;
        max-width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
        scrollbar-width: thin;
    }

    .keep-tab {
        flex: 0 0 auto;
        white-space: nowrap;
        padding: 7px 10px;
        font-size: 12px;
    }

    /* Keep close button visible */

    .keep-panel .panel-close-btn,
    .keep-close-btn {
        top: 8px;
        right: 8px;
        width: 32px;
        height: 32px;
    }
}
