:root {
    --lp-background:
        linear-gradient(
            145deg,
            rgba(18, 28, 38, 0.97),
            rgba(10, 16, 22, 0.97)
        );

    --lp-card:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.065),
            rgba(255, 255, 255, 0.025)
        );

    --lp-border:
        rgba(255, 255, 255, 0.08);

    --lp-text:
        #eef4f8;

    --lp-text-muted:
        #94a3b8;

    --lp-primary:
        #7dd3fc;

    --lp-live:
        #2fe0b7;

    --lp-wind:
        #2dd4bf;

    --lp-temperature:
        #22c55e;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    background: transparent;
    color: var(--lp-text);
    font-family:
        Inter,
        Arial,
        sans-serif;
}

.live-position-widget {
    width: 100%;
    min-height: 360px;
    padding: 24px;

    overflow: hidden;

    border: 1px solid var(--lp-border);
    border-radius: 26px;

    background:
        radial-gradient(
            circle at top right,
            rgba(125, 211, 252, 0.12),
            transparent 300px
        ),
        var(--lp-background);

    box-shadow:
        0 18px 50px rgba(0, 0, 0, 0.20);
}

.widget-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;

    margin-bottom: 24px;
}

.widget-heading {
    min-width: 0;
}

.widget-kicker {
    margin-bottom: 7px;

    color: var(--lp-primary);

    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.widget-header h1 {
    margin: 0;

    overflow-wrap: anywhere;

    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.05;
    letter-spacing: -0.035em;
}

.live-indicator {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 9px;

    padding: 9px 13px;

    border: 1px solid
        rgba(47, 224, 183, 0.24);
    border-radius: 999px;

    background:
        rgba(47, 224, 183, 0.10);

    color: #dffff5;

    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;

    transition:
        opacity 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease;
}

.live-dot {
    width: 9px;
    height: 9px;

    border-radius: 50%;

    background: var(--lp-live);

    box-shadow:
        0 0 12px
        rgba(47, 224, 183, 0.85);
}

.live-indicator.is-offline {
    opacity: 0.58;

    border-color:
        rgba(239, 68, 68, 0.28);

    background:
        rgba(239, 68, 68, 0.08);
}

.live-indicator.is-offline
.live-dot {
    background: #ef4444;

    box-shadow:
        0 0 10px
        rgba(239, 68, 68, 0.65);
}

.position-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 14px;
}

.position-card {
    min-width: 0;
    padding: 17px 18px;

    border: 1px solid var(--lp-border);
    border-radius: 18px;

    background: var(--lp-card);

    backdrop-filter: blur(14px);
}

.position-label {
    display: block;

    margin-bottom: 11px;

    color: var(--lp-text-muted);

    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.075em;
    text-transform: uppercase;
}

.position-card strong {
    display: block;

    overflow-wrap: anywhere;

    color: var(--lp-text);

    font-size: 19px;
    font-weight: 700;
    line-height: 1.3;
}

.position-card-wide strong {
    font-size: 17px;
}

.position-card-wind {
    border-color:
        rgba(45, 212, 191, 0.20);
}

.position-card-wind strong {
    color: var(--lp-wind);
}

.position-card-temperature {
    border-color:
        rgba(34, 197, 94, 0.18);
}

.position-card-temperature strong {
    color: var(--lp-temperature);
}

.widget-footer {
    margin-top: 22px;

    color: var(--lp-text-muted);

    font-size: 13px;
}

@media (max-width: 900px) {
    .position-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .live-position-widget {
        min-height: 100vh;
        padding: 18px;

        border-radius: 0;
    }

    .widget-header {
        gap: 14px;
        margin-bottom: 20px;
    }

    .widget-header h1 {
        font-size: 30px;
    }

    .live-indicator {
        padding: 8px 10px;

        font-size: 11px;
    }

    .position-grid {
        grid-template-columns: 1fr;
        gap: 11px;
    }

    .position-card {
        padding: 15px 16px;
    }

    .position-card strong,
    .position-card-wide strong {
        font-size: 18px;
    }
}
