/* FullMoon MMO - City Screen (3D town viewport) */

.city-viewport {
    width: 100%;
    height: 240px;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    background: radial-gradient(circle at 50% 35%, rgba(120, 160, 255, 0.14), rgba(0, 0, 0, 0.22));
    border: 1px solid var(--theme-border);
    box-shadow: var(--shadow-md);
    position: relative;
}

.city-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.city-viewport--hover .city-canvas {
    cursor: pointer;
}

.town-districts__btn--active {
    border-color: rgba(212, 175, 55, 0.35);
    box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.18) inset, 0 0 18px rgba(212, 175, 55, 0.08);
}

.town-context-actions {
    display: grid;
    gap: var(--spacing-sm);
}

.town-context-menu {
    display: grid;
    gap: var(--spacing-sm);
}

.town-context-actions--grid-two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
}

.town-context-actions--grid-two > p {
    grid-column: 1 / -1;
}

.town-context-actions--grid-two > .btn {
    width: 100%;
}

.town-context-actions__full {
    grid-column: 1 / -1;
    width: 100%;
}

@media (max-width: 360px) {
    .city-viewport {
        height: 170px;
        border-radius: var(--border-radius-md);
    }
}

@media (min-width: 768px) {
    body.hud-layout-landscape .main-content--scene-focus {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
        align-items: stretch;
        gap: 12px;
        height: 100%;
        min-height: 0;
        overflow: hidden;
    }

    body.hud-layout-landscape .main-content--scene-focus .city-scene-card {
        margin-bottom: 0;
        min-height: 0;
        height: 100%;
    }

    body.hud-layout-landscape .main-content--scene-focus .city-scene-card > .card__body {
        padding: 0;
        height: 100%;
        min-height: 0;
    }

    body.hud-layout-landscape .main-content--scene-focus .town-context-card {
        margin-bottom: 0;
        align-self: stretch;
        min-height: 0;
        overflow: hidden;
    }

    body.hud-layout-landscape .main-content--scene-focus .city-viewport {
        height: 100%;
        min-height: 0;
    }
}
