html,
body {
    min-height: 100%;
    margin: 0;
    padding: 0;
}

body.kk-wx-body {
    margin: 0 !important;
    padding: 0 !important;
    background:
        linear-gradient(
            rgba(5, 12, 15, 0.55),
            rgba(5, 12, 15, 0.25)
        ),
        url("/assets/wx/radio-forest.jpg");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.wx-page-bg {
    min-height: 100vh;
    padding: 2rem 0;
    background: transparent;
}

.wx-shell {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

.wx-hero {
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 1.25rem;
    background:
        radial-gradient(circle at top left, rgba(13, 110, 253, 0.22), transparent 38%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.25);
}

.wx-kicker {
    font-size: 0.8rem;
    letter-spacing: 0.18em;
    color: #8bb9ff;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.wx-card {
    border-radius: 1rem;
    background-color: rgba(10, 18, 22, 0.88);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 0.75rem 2rem rgba(0, 0, 0, 0.18);
}

.wx-card .card-header {
    background: rgba(255, 255, 255, 0.04);
    border-bottom-color: rgba(255, 255, 255, 0.12);
}

.wx-mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    letter-spacing: 0.03em;
}

.wx-output {
    font-size: 1.1rem;
    min-height: 8rem;
}

.wx-code-block {
    display: block;
    padding: 1rem;
    border-radius: 0.75rem;
    background: rgba(0, 0, 0, 0.28);
    white-space: normal;
    line-height: 1.6;
}

.wx-help-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.wx-help-grid div {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    padding: 0.75rem;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.045);
}

.wx-help-grid code {
    min-width: 5.5rem;
    color: #9ec5fe;
}

.wx-help-grid span {
    color: rgba(255, 255, 255, 0.72);
}

.wx-weather-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.wx-weather-chip {
    border: 1px solid rgba(158, 197, 254, 0.28);
    background: rgba(255, 255, 255, 0.045);
    color: rgba(255, 255, 255, 0.72);
    border-radius: 999px;
    padding: 0.35rem 0.7rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    line-height: 1.1;
    transition:
        background-color 160ms ease,
        border-color 160ms ease,
        color 160ms ease,
        box-shadow 160ms ease,
        transform 120ms ease;
}

.wx-weather-chip:hover {
    border-color: rgba(158, 197, 254, 0.65);
    color: #ffffff;
    transform: translateY(-1px);
}

.wx-weather-chip.is-active {
    background: rgba(13, 110, 253, 0.28);
    border-color: rgba(158, 197, 254, 0.95);
    color: #ffffff;
    box-shadow:
        0 0 0.75rem rgba(13, 110, 253, 0.45),
        inset 0 0 0.6rem rgba(255, 255, 255, 0.08);
}

.wx-weather-chip.is-active::before {
    content: "";
    display: inline-block;
    width: 0.45rem;
    height: 0.45rem;
    margin-right: 0.45rem;
    border-radius: 50%;
    background: #9ec5fe;
    box-shadow: 0 0 0.65rem rgba(158, 197, 254, 0.95);
    vertical-align: 0.05rem;
}

.wx-weather-conflict-notice {
    min-height: 1.3rem;
    margin-top: 0.45rem;
    font-size: 0.82rem;
    color: #ffc107;
}

.wx-weather-chip.is-conflict-attempt {
    animation: wx-weather-conflict-attempt 0.55s ease-in-out 0s 9;
}

.wx-weather-chip.is-conflict-blocker {
    animation: wx-weather-conflict-blocker 0.55s ease-in-out 0s 9;
}

@keyframes wx-weather-conflict-attempt {
    0%,
    100% {
        background: rgba(220, 53, 69, 0.16);
        border-color: rgba(220, 53, 69, 0.55);
        color: #ffffff;
        box-shadow: 0 0 0.35rem rgba(220, 53, 69, 0.35);
    }

    50% {
        background: rgba(220, 53, 69, 0.55);
        border-color: rgba(255, 120, 130, 1);
        color: #ffffff;
        box-shadow:
            0 0 1rem rgba(220, 53, 69, 0.95),
            inset 0 0 0.55rem rgba(255, 255, 255, 0.12);
    }
}

@keyframes wx-weather-conflict-blocker {
    0%,
    100% {
        background: rgba(255, 193, 7, 0.14);
        border-color: rgba(255, 193, 7, 0.5);
        color: #ffffff;
        box-shadow: 0 0 0.35rem rgba(255, 193, 7, 0.3);
    }

    50% {
        background: rgba(255, 193, 7, 0.45);
        border-color: rgba(255, 213, 79, 1);
        color: #ffffff;
        box-shadow:
            0 0 1rem rgba(255, 193, 7, 0.95),
            inset 0 0 0.55rem rgba(255, 255, 255, 0.12);
    }
}

.wx-section-title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.55);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    padding-bottom: 0.35rem;
    margin-top: 0.25rem;
}

@media (max-width: 768px) {
    .wx-page-bg {
        padding: 1rem 0;
    }

    .wx-hero {
        padding: 1.25rem;
    }

    .wx-help-grid {
        grid-template-columns: 1fr;
    }
}
