* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

html {
    background: #010307;
    color-scheme: dark;
}

body {
    overflow: hidden;

    background:
        radial-gradient(
            ellipse at 50% 45%,
            #071322 0%,
            #030912 42%,
            #010307 75%,
            #000 100%
        );

    color: #dce8f2;

    font-family:
        "Segoe UI",
        Arial,
        Helvetica,
        sans-serif;

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;

    user-select: none;
    -webkit-user-select: none;

    overscroll-behavior: none;
    touch-action: none;
}

#navegador-estelar {
    position: fixed;
    inset: 0;

    width: 100%;
    height: 100%;

    overflow: hidden;
}

#galaxia {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    overflow: hidden;
}

#stars-canvas,
#galaxy-canvas {
    position: absolute;
    inset: 0;

    display: block;

    width: 100%;
    height: 100%;

    outline: none;

    touch-action: none;
}

#stars-canvas {
    z-index: 1;

    pointer-events: none;
}

#galaxy-canvas {
    z-index: 2;

    cursor: grab;

    transition:
        opacity 280ms ease;
}

#galaxy-canvas:active {
    cursor: grabbing;
}

#galaxy-info {
    position: fixed;

    top: 24px;
    left: 26px;

    z-index: 25;

    pointer-events: none;

    opacity: 1;
    visibility: visible;

    transition:
        opacity 220ms ease,
        visibility 220ms ease;
}

.galaxy-info-titulo {
    color:
        rgba(211, 236, 248, 0.92);

    font-size: 15px;
    font-weight: 500;

    letter-spacing: 0.18em;
}

.galaxy-info-subtitulo {
    margin-top: 4px;

    color:
        rgba(119, 188, 221, 0.62);

    font-size: 9px;

    letter-spacing: 0.24em;
}

.galaxy-info-linha {
    width: 122px;
    height: 1px;

    margin: 11px 0 9px;

    background:
        linear-gradient(
            to right,
            rgba(102, 195, 235, 0.50),
            rgba(102, 195, 235, 0)
        );
}

.galaxy-info-dados {
    display: flex;

    flex-direction: column;

    gap: 5px;

    color:
        rgba(144, 194, 218, 0.55);

    font-family:
        Consolas,
        "Courier New",
        monospace;

    font-size: 8px;

    letter-spacing: 0.11em;
}

body.modo-sistema #galaxy-info {
    opacity: 0;
    visibility: hidden;
}

#hud {
    position: fixed;

    top: 22px;
    right: 22px;

    z-index: 30;

    width: 300px;

    padding: 18px 18px 16px;

    color:
        rgba(180, 220, 242, 0.90);

    background:
        linear-gradient(
            135deg,
            rgba(7, 24, 39, 0.72),
            rgba(2, 9, 16, 0.45)
        );

    border:
        1px solid
        rgba(101, 177, 217, 0.20);

    border-left:
        2px solid
        rgba(105, 195, 236, 0.44);

    box-shadow:
        0 0 28px rgba(22, 94, 138, 0.08),
        inset 0 0 28px rgba(36, 115, 158, 0.035);

    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);

    opacity: 0;
    visibility: hidden;

    transform:
        translateX(15px);

    pointer-events: none;

    transition:
        opacity 260ms ease,
        transform 260ms ease,
        visibility 260ms ease;
}

body.modo-sistema #hud {
    opacity: 1;
    visibility: visible;

    transform:
        translateX(0);

    pointer-events: auto;
}

.hud-cabecalho {
    display: flex;

    justify-content: space-between;
    align-items: flex-start;

    gap: 12px;
}

.hud-identificacao {
    display: flex;
    flex-direction: column;

    gap: 3px;
}

.hud-linha-superior {
    font-size: 9px;

    letter-spacing: 0.22em;

    color:
        rgba(140, 197, 226, 0.58);
}

.hud-sistema {
    font-size: 12px;
    font-weight: 500;

    letter-spacing: 0.10em;

    color:
        rgba(202, 232, 247, 0.92);
}

.hud-status-led {
    width: 6px;
    height: 6px;

    margin-top: 4px;

    border-radius: 50%;

    background:
        rgba(120, 218, 255, 0.95);

    box-shadow:
        0 0 5px rgba(80, 200, 255, 0.75),
        0 0 12px rgba(80, 200, 255, 0.30);

    animation:
        hudPulso 3.4s ease-in-out infinite;
}

@keyframes hudPulso {
    0%,
    100% {
        opacity: 0.45;
    }

    50% {
        opacity: 1;
    }
}

.hud-divisor {
    height: 1px;

    margin: 13px 0;

    background:
        linear-gradient(
            to right,
            rgba(86, 170, 213, 0.28),
            rgba(86, 170, 213, 0.04),
            transparent
        );
}

.hud-bloco {
    display: flex;

    flex-direction: column;

    gap: 7px;
}

.hud-titulo-bloco {
    margin-bottom: 3px;

    font-size: 8px;

    letter-spacing: 0.20em;

    color:
        rgba(113, 178, 211, 0.48);
}

.hud-registro {
    display: grid;

    grid-template-columns:
        105px
        1fr;

    align-items: center;

    min-height: 18px;
}

.hud-chave {
    font-size: 8px;

    letter-spacing: 0.14em;

    color:
        rgba(116, 171, 199, 0.48);
}

.hud-valor {
    justify-self: end;

    font-family:
        Consolas,
        "Courier New",
        monospace;

    font-size: 10px;

    letter-spacing: 0.075em;

    color:
        rgba(188, 221, 238, 0.75);
}

.hud-destaque {
    color:
        rgba(211, 239, 252, 0.96);
}

.hud-coordenadas {
    display: grid;

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

    gap: 5px;
}

.hud-coordenadas div {
    display: flex;

    flex-direction: column;

    gap: 3px;

    padding: 6px 7px;

    border:
        1px solid
        rgba(81, 160, 201, 0.10);

    background:
        rgba(26, 83, 112, 0.045);
}

.hud-coordenadas span {
    font-size: 7px;

    letter-spacing: 0.14em;

    color:
        rgba(97, 166, 201, 0.45);
}

.hud-coordenadas strong {
    font-family:
        Consolas,
        "Courier New",
        monospace;

    font-size: 9px;
    font-weight: 400;

    color:
        rgba(190, 226, 244, 0.80);
}

.hud-orientacao {
    display: none;
}

#rodape {
    position: fixed;

    left: 0;
    right: 0;
    bottom: 0;

    z-index: 50;

    display: flex;

    justify-content: center;
    align-items: center;

    min-height: 34px;

    padding:
        7px
        max(16px, env(safe-area-inset-right))
        calc(7px + env(safe-area-inset-bottom))
        max(16px, env(safe-area-inset-left));

    pointer-events: none;

    background:
        linear-gradient(
            to top,
            rgba(0, 0, 0, 0.62),
            rgba(0, 0, 0, 0.20),
            transparent
        );
}

#rodape p {
    color:
        rgba(205, 220, 232, 0.48);

    font-size: 10px;
    font-weight: 400;

    line-height: 1.4;

    letter-spacing: 0.08em;

    text-align: center;
    text-transform: uppercase;
}

#rodape .separador {
    display: inline-block;

    margin: 0 8px;

    opacity: 0.45;
}

@media (max-width: 768px) {

    #galaxy-info {
        top:
            calc(
                16px +
                env(safe-area-inset-top)
            );

        left:
            calc(
                16px +
                env(safe-area-inset-left)
            );
    }

    .galaxy-info-titulo {
        font-size: 12px;
    }

    .galaxy-info-subtitulo {
        font-size: 8px;
    }

    #hud {
        top: auto;

        right: 10px;
        left: 10px;

        bottom:
            calc(
                38px +
                env(safe-area-inset-bottom)
            );

        width: auto;

        max-height: 42vh;

        padding:
            12px 14px;

        overflow-y: auto;

        background:
            linear-gradient(
                to top,
                rgba(2, 10, 18, 0.90),
                rgba(4, 17, 28, 0.78)
            );
    }

    .hud-registro {
        grid-template-columns:
            95px
            1fr;
    }

    #rodape {
        min-height: 30px;

        padding-left: 10px;
        padding-right: 10px;
    }

    #rodape p {
        font-size: 8px;

        letter-spacing: 0.055em;
    }

    #rodape .separador {
        margin: 0 5px;
    }
}

@media (max-width: 420px) {

    #hud {
        left: 7px;
        right: 7px;
    }

    .hud-linha-superior {
        font-size: 7px;
    }

    .hud-sistema {
        font-size: 10px;
    }

    .hud-chave {
        font-size: 7px;
    }

    .hud-valor {
        font-size: 9px;
    }

    #rodape p {
        max-width: 95%;

        font-size: 7px;

        letter-spacing: 0.04em;
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration:
            0.01ms !important;

        animation-iteration-count:
            1 !important;

        transition-duration:
            0.01ms !important;
    }
}                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            