html,
body {
    margin: 0;
    width: 100%;
    height: 100%;
}

body.lang-de [data-lang='it'] {
    display: none;
}

body.lang-it [data-lang='de'] {
    display: none;
}

.point-section {
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    padding: 0;
    height: 100%;
    display: flex;
    align-items: stretch;
    overflow: hidden;
}

.point-stage {
    position: relative;
    width: 100%;
    margin: 0 auto;
    height: 100%;
    min-height: 0;
    background: #0d1117;
    border: 1px solid rgba(0, 86, 179, 0.1);
    border-radius: 0;
    box-shadow: 0 18px 44px rgba(9, 43, 85, 0.12);
    overflow: hidden;
    isolation: isolate;
}

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

.point-ui {
    position: absolute;
    top: 18px;
    left: 18px;
    background: rgba(5, 12, 22, 0.8);
    border: 1px solid rgba(0, 110, 220, 0.4);
    border-radius: 10px;
    padding: 12px 18px;
    color: #8ab4cc;
    font: 13px/1.7 Arial, sans-serif;
    pointer-events: none;
    z-index: 2;
}

.point-ui h2 {
    color: #33ccff;
    font-size: 14px;
    margin-bottom: 2px;
}

.point-controls-hint {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 0.7rem;
    margin-top: 0.2rem;
}

.point-control-item {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.point-control-symbol {
    display: inline-grid;
    place-items: center;
    width: 1.15rem;
    height: 1.15rem;
    border-radius: 999px;
    border: 1px solid rgba(90, 220, 255, 0.35);
    color: #c7f4ff;
    font-size: 0.8rem;
    line-height: 1;
    background: rgba(16, 45, 77, 0.75);
}

.point-reset-view {
    position: absolute;
    top: 18px;
    right: 18px;
    padding: 0.45rem 0.8rem;
    border: 1px solid rgba(51, 204, 255, 0.45);
    border-radius: 999px;
    background: rgba(12, 33, 58, 0.95);
    color: #dff7ff;
    font: 600 12px/1 Arial, sans-serif;
    letter-spacing: 0.02em;
    cursor: pointer;
    pointer-events: auto;
    z-index: 3;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.point-reset-view:hover {
    background: rgba(21, 57, 96, 0.98);
    border-color: rgba(90, 220, 255, 0.8);
    transform: translateY(-1px);
}

.point-legend {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: min(280px, calc(100% - 2rem));
    pointer-events: none;
    z-index: 2;
}

.point-legend-bar {
    height: 10px;
    border-radius: 6px;
    background: linear-gradient(to right, #0000ff, #00ffff, #00ff00, #ffff00, #ff8800, #ff0000);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 8px rgba(0, 120, 255, 0.4);
}

.point-legend-labels {
    display: flex;
    justify-content: space-between;
    color: rgba(180, 210, 240, 0.75);
    font: 11px/1.8 Arial, sans-serif;
    margin-top: 3px;
}

.point-legend-title {
    text-align: center;
    color: rgba(180, 210, 240, 0.55);
    font: 11px Arial, sans-serif;
    margin-bottom: 4px;
    letter-spacing: 0.04em;
}

.point-hlabel {
    position: absolute;
    pointer-events: none;
    background: rgba(5, 12, 22, 0.82);
    border: 1px solid rgba(0, 140, 255, 0.5);
    border-radius: 5px;
    padding: 2px 8px;
    color: #55ccff;
    font: bold 10px/1.35 'Courier New', monospace;
    white-space: nowrap;
    box-shadow: 0 0 8px rgba(0, 100, 220, 0.35);
    transform: translate(-50%, -50%);
    z-index: 2;
}

.point-leader {
    position: absolute;
    height: 1px;
    background: rgba(96, 212, 255, 0.78);
    transform-origin: 0 50%;
    box-shadow: 0 0 6px rgba(43, 159, 228, 0.55);
    pointer-events: none;
    z-index: 1;
}

@media (max-width: 768px) {
    .point-stage {
        width: 100%;
        height: 100%;
        min-height: 0;
    }

    .point-ui {
        top: 14px;
        bottom: auto;
        left: 14px;
        right: auto;
        width: min(280px, calc(100% - 28px));
        max-width: min(280px, calc(100% - 28px));
        padding: 8px 11px;
        font-size: 10px;
        line-height: 1.45;
    }

    .point-ui h2 {
        font-size: 12px;
    }

    .point-controls-hint {
        gap: 0.22rem 0.45rem;
        margin-top: 0.1rem;
        justify-content: flex-end;
        width: 100%;
        font-size: 0.72em;
    }

    .point-control-item {
        gap: 0.2rem;
    }

    .point-control-symbol {
        width: 0.8rem;
        height: 0.8rem;
        font-size: 0.56rem;
    }

    .point-reset-view {
        top: 14px;
        right: 14px;
        padding: 0.34rem 0.62rem;
        font-size: 10px;
    }

    .point-legend {
        width: min(240px, calc(100% - 1.5rem));
    }

    .point-legend-title,
    .point-legend-labels {
        font-size: 10px;
    }

    .point-hlabel {
        padding: 2px 7px;
        font-size: 9px;
    }
}

@media (max-width: 480px) {
    .point-stage {
        width: 100%;
        height: 100%;
        min-height: 0;
        border-radius: 0;
    }

    .point-ui {
        top: 12px;
        bottom: auto;
        left: 12px;
        right: auto;
        width: min(240px, calc(100% - 24px));
        max-width: min(240px, calc(100% - 24px));
        padding: 7px 10px;
        font-size: 9px;
        line-height: 1.35;
    }

    .point-ui h2 {
        font-size: 11px;
    }

    .point-controls-hint {
        gap: 0.18rem 0.35rem;
        justify-content: flex-end;
        width: 100%;
        font-size: 0.68em;
    }

    .point-control-item {
        gap: 0.22rem;
    }

    .point-control-symbol {
        width: 0.72rem;
        height: 0.72rem;
        font-size: 0.5rem;
    }

    .point-reset-view {
        top: 12px;
        right: 12px;
        padding: 0.3rem 0.56rem;
        font-size: 9px;
    }

    .point-legend {
        bottom: 18px;
        width: min(210px, calc(100% - 1rem));
    }

    .point-legend-title,
    .point-legend-labels {
        font-size: 9px;
    }

    .point-hlabel {
        padding: 1px 6px;
        font-size: 8px;
    }
}