/* styles.css - O Pálido Ponto Azul v4.0 */

:root {
    --bg-color: #000;
    --text-color: #fff;
    --accent-color: #00aaff;
    --panel-bg: rgba(0, 0, 0, 0.9);
    --ruler-h: 15vh;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    overflow: hidden;
    height: 100vh;
    height: 100dvh;
    width: 100vw;
    width: 100dvw;
    overscroll-behavior: none;
    touch-action: none;
}

/* ─── Campo de Estrelas ─────────────────────────────────────────── */

#star-field {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
    overflow: hidden;
}

.star {
    position: absolute;
    background: white;
    border-radius: 50%;
    animation: pulse var(--pulse-duration) infinite alternate;
    transform-origin: right center;
    /* sem transition — warp aplica transforms via JS; transition causaria double-animation */
}

/* Promove as 3 layers de parallax a camadas GPU compositing próprias */
.star-layer-0, .star-layer-1, .star-layer-2 {
    will-change: transform;
}

/* ─── Velocidade da Luz: cauda gradiente + glow por camada ──────── */
/*
 * transform-origin: right center → scaleX expande para a esquerda.
 * Cabeça da estrela fica à direita (direção do movimento),
 * cauda gradiente se estende para a esquerda (atrás).
 */
#star-field.warp-active .star {
    border-radius: 0;
    background: linear-gradient(to left, white, transparent);
    transform: scaleX(var(--trail-len, 1)) scaleY(0.15);
    opacity: 0.85;
    animation: none;
}

/* Glow + Doppler blueshift — camada próxima (frente) */
#star-field.warp-active .star-layer-0 {
    filter: drop-shadow(0 0 2px rgba(140, 200, 255, 0.8)) hue-rotate(200deg) saturate(1.5);
}

/* Glow neutro — camada média */
#star-field.warp-active .star-layer-1 {
    filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.5));
}

/* Glow + Doppler redshift — camada distante (atrás) */
#star-field.warp-active .star-layer-2 {
    filter: drop-shadow(0 0 1px rgba(255, 170, 100, 0.5)) hue-rotate(-15deg) sepia(0.35);
}

/* Star layer movement driven by JS in animate() */


@keyframes pulse {
    from { opacity: 0.2; }
    to   { opacity: 1; }
}

/* ─── Universo ──────────────────────────────────────────────────── */

#universe {
    position: relative;
    height: 100vh;
    height: 100dvh;
    width: 100vw;
    width: 100dvw;
    display: flex;
    align-items: center;
    cursor: grab;
    overflow: hidden;
}

body.dragging #universe { cursor: grabbing; }


/* ─── Zonas Solares (cinturões) ─────────────────────────────────── */

.solar-zone {
    position: absolute;
    top: 0;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: visible;
}

.zone-label {
    position: absolute;
    top: 80px;
    font-size: 10px;
    letter-spacing: 3px;
    color: rgba(255, 220, 160, 0.4);
    white-space: nowrap;
    text-transform: uppercase;
}

.zone-label-start { left: 8px; }
.zone-label-end   { right: 8px; }

/* ─── Corpos Celestes ───────────────────────────────────────────── */

.celestial-container {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: translateX(-50%);
    z-index: 1;
}

.celestial-body {
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    background-size: cover;
    background-position: center;
    position: relative;
}

.celestial-body:hover { transform: scale(1.2); }

/* ─── Sol: brilho estático ──────────────────────────────────────── */

#body-sun {
    overflow: visible;
    box-shadow:
        0 0 55px 16px  rgba(253, 205,  70, 0.55),
        0 0 130px 42px rgba(253, 165,  25, 0.25),
        0 0 260px 80px rgba(253, 125,   0, 0.10);
    filter: brightness(1.06) saturate(1.08);
}

.planet-rings {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotateX(72deg);
    border-radius: 50%;
    border: 2px solid;  /* cor definida inline via JS */
    pointer-events: none;
}

/* ─── Anéis de Saturno (três camadas) ───────────────────────────── */

/* Anéis individuais — tamanho definido via JS */
.planet-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotateX(72deg);
    border-radius: 50%;
    border-style: solid;
    pointer-events: none;
}

/* Tampa superior: cobre a metade superior dos anéis,
   criando a ilusão de que os anéis passam por trás do planeta */
.saturn-top-cover {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border-radius: 50%;
    clip-path: polygon(0 0, 100% 0, 100% 50%, 0 50%);
    z-index: 2;
    pointer-events: none;
    background-size: cover;
    background-position: center;
}

.label {
    position: absolute;
    top: -60px;
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.3s;
}

.label:hover { color: var(--accent-color); }

/* ─── Luas ──────────────────────────────────────────────────────── */

.moon-container {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: translateX(-50%);
    z-index: 2;
    cursor: pointer;
    pointer-events: auto;
}

.moon-body {
    border-radius: 50%;
    opacity: 0.8;
    transition: transform 0.2s, opacity 0.2s;
}

.moon-container:hover .moon-body {
    transform: scale(1.6);
    opacity: 1;
}

.moon-label {
    font-size: 8px;
    letter-spacing: 1px;
    color: #667;
    white-space: nowrap;
    margin-top: 3px;
    text-transform: uppercase;
    transition: color 0.2s;
}

.moon-container:hover .moon-label {
    color: var(--accent-color);
}

/* ─── Info Card Zoomed ──────────────────────────────────────────── */

.planet-info-zoomed {
    position: absolute;
    top: 60px;
    background: rgba(4, 8, 20, 0.9);
    border: 1px solid rgba(0, 170, 255, 0.3);
    padding: 15px;
    min-width: 200px;
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 3;
}

.planet-info-zoomed.visible { opacity: 1; }

.zoomed-stat-row {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    letter-spacing: 1px;
}

.zoomed-stat-label { color: #4a6a8a; text-transform: uppercase; }
.zoomed-stat-value { color: var(--accent-color); }

/* ─── Minimapa ──────────────────────────────────────────────────── */

#minimap-container {
    position: fixed;
    top: 0; left: 0;
    width: calc(100% - 56px); /* leaves room for settings toggle */
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.88) 75%, rgba(0, 0, 0, 0.4) 100%);
    padding: 10px 20px 8px;
    z-index: 2000;
    transition: padding 0.3s, background 0.2s;
}

/* Minimap toggle button — always visible */
#minimap-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    color: #7a8fa8;
    cursor: pointer;
    padding: 3px;
    padding-bottom: 10px; /* fix 4: espaço entre título e barra do minimap */
    line-height: 1;
    transition: color 0.2s;
    text-transform: uppercase;
}

#minimap-toggle-icon {
    font-size: 14px;
    flex-shrink: 0;
}

#minimap-toggle-label {
    font-size: 10px;
    letter-spacing: 4px;
}

#minimap-toggle:hover { color: var(--accent-color); }

/* Collapsed minimap — works on all screen sizes */
#minimap-container.collapsed #minimap-canvas,
#minimap-container.collapsed #minimap-you-row,
#minimap-container.collapsed #nav-row { display: none; }

#minimap-container.collapsed { padding: 6px 14px; }

/* When expanded on small screens, float over everything */
@media (max-width: 600px) {
    #minimap-container:not(.collapsed) { z-index: 9000; }
}

#minimap-header {
    display: none;
}

#minimap-canvas {
    position: relative;
    width: 100%;
    height: 24px;
    overflow: visible;
}

/* Zonas no minimapa */
#minimap-zones {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
}

.minimap-zone {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: 25%;
    min-height: 4px;
    overflow: visible;
}

.minimap-zone-label {
    position: absolute;
    top: calc(100% + 3px);
    left: 50%;
    transform: translateX(-50%);
    font-size: 7px;
    letter-spacing: 1px;
    color: rgba(255, 220, 160, 0.45);
    white-space: nowrap;
    text-transform: uppercase;
    pointer-events: none;
}

/* Corpos no minimapa */
#minimap-bodies {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
}

/* Wrapper com área de clique ampla */
.minimap-body {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    padding: 8px 5px;
    z-index: 2;
}

.minimap-dot-visual {
    border-radius: 50%;
    transition: transform 0.15s;
    flex-shrink: 0;
}

.minimap-body:hover .minimap-dot-visual {
    transform: scale(1.8);
}

.minimap-body.active .minimap-dot-visual {
    box-shadow: 0 0 6px currentColor;
    transform: scale(1.4);
}

.minimap-dot-label {
    position: absolute;
    bottom: calc(100% - 6px);
    left: 50%;
    transform: translateX(-50%);
    font-size: 9px;
    letter-spacing: 1px;
    color: #6688aa;
    white-space: nowrap;
    pointer-events: none;
    text-transform: uppercase;
}

/* Cursor — linha vertical */
#minimap-cursor {
    position: absolute;
    top: 0;
    height: 100%;
    width: 1px;
    background: var(--accent-color);
    z-index: 4;
    pointer-events: none;
    box-shadow: 0 0 4px var(--accent-color);
}

/* "VOCÊ ESTÁ AQUI" abaixo da barra */
#minimap-you-row {
    position: relative;
    width: 100%;
    height: 18px;
    margin-top: 2px;
    pointer-events: none;
}

#minimap-you-label {
    position: absolute;
    top: 0;
    font-size: 9px;
    letter-spacing: 2px;
    color: var(--accent-color);
    white-space: nowrap;
    transform: translateX(-50%);
    opacity: 0.85;
}

/* ─── Navegação Anterior / Próximo ──────────────────────────────── */

#nav-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 3px 0 0;
    margin-top: 1px;
}

.nav-arrow-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    color: #5a7a9a;
    font-family: inherit;
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    padding: 3px 4px;
    transition: color 0.2s;
    white-space: nowrap;
}

.nav-arrow-btn:hover { color: var(--accent-color); }

.nav-dir {
    font-size: 10px;
    opacity: 0.7;
}

#nav-current-name {
    font-size: 10px;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.35);
    text-transform: uppercase;
    pointer-events: none;
    flex-shrink: 0;
}

/* ─── Régua e Info ──────────────────────────────────────────────── */

#astronomical-ruler {
    position: fixed;
    bottom: 0; left: 0; right: 0; height: var(--ruler-h); /* left é atualizado via JS */
    background: rgba(0, 0, 0, 0.95);
    border-top: 1px solid #1a1a2e;
    /* Fade no início esquerdo — mascara a borda abrupta quando a régua não está em left:0 */
    -webkit-mask-image: linear-gradient(to right, transparent 0px, black 52px);
    mask-image: linear-gradient(to right, transparent 0px, black 52px);
    z-index: 1000;
    padding: 6px 20px 10px;
}

#zone-indicator {
    font-size: 8px;
    letter-spacing: 4px;
    color: rgba(255, 220, 160, 0.55);
    text-transform: uppercase;
    text-align: center;
    padding-bottom: 4px;
    display: none;
}

.ruler-ticks {
    position: relative;
    width: 100%;
    height: 40px;
    margin-bottom: 10px;
}

.tick {
    position: absolute;
    bottom: 0;
    width: 1px;
    height: 15px;
    background: #444;
}

.tick.major { height: 25px; background: var(--accent-color); }

.tick-label {
    position: absolute;
    bottom: 30px;
    font-size: 10px;
    color: #889;
    transform: translateX(-50%);
    white-space: nowrap;
    letter-spacing: 1px;
}

/* Marcador de posição atual na régua */
.tick-center {
    position: absolute;
    bottom: 0;
    width: 1px;
    height: 100%;
    background: rgba(255, 255, 255, 0.18);
    pointer-events: none;
}

.tick-center::before {
    content: '▼';
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 7px;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 0;
}

#info-display {
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid #0e0e1a;
    padding-top: 10px;
}

.info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 0 12px;
    border-right: 1px solid #0e0e1a;
}

.info-item:last-child { border-right: none; }

.info-label {
    font-size: 10px;
    letter-spacing: 2px;
    color: #4a6a8a;
    text-transform: uppercase;
}

.info-value {
    font-size: 15px;
    color: var(--accent-color);
    letter-spacing: 1px;
    font-weight: 600;
}

/* ─── Tela Inicial ──────────────────────────────────────────────── */

/* Posicionada no universo via JS (translateX tracking scrollPos).
   Sem background próprio — o espaço/estrelas ficam visíveis atrás. */
#welcome-screen {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 5000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    will-change: transform;
}

#pale-blue-dot-sim {
    position: relative;
    width: 100%;
    max-width: 700px;
    height: 200px;
    overflow: visible;
    margin-bottom: 48px;
}

.sun-beam {
    position: absolute;
    width: 300vw;
    height: 100px;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(180, 210, 255, 0.04) 10%,
        rgba(160, 245, 241, 0.11) 40%,
        rgba(255, 235, 165, 0.13) 50%,
        rgba(160, 245, 241, 0.11) 60%,
        rgba(180, 210, 255, 0.04) 90%,
        transparent 100%
    );
    /* Centralizado no #pale-blue-dot-sim; rotação em torno do próprio centro */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(115deg);
   /*  box-shadow: 0 0 80px 28px rgba(255, 200, 100, 0.06); */
}

#the-dot {
    position: absolute;
    width: 2px;
    height: 2px;
    border-radius: 50%;
    background: #aabfff;
    top: 50%;
    left: 50%;
    box-shadow: 0 0 6px 2px rgba(170, 190, 255, 0.85);
}

#welcome-title {
    font-size: 20px;
    letter-spacing: 10px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.82);
    text-transform: uppercase;
    text-align: center;
    margin: 0 0 10px;
}

#welcome-subtitle {
    font-size: 10px;
    letter-spacing: 5px;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    text-align: center;
    margin: 0 0 44px;
    font-weight: 400;
}

#fullscreen-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 4px;
    color: rgba(255, 255, 255, 0.5);
    font-family: inherit;
    font-size: 9px;
    letter-spacing: 3px;
    text-transform: uppercase;
    padding: 7px 12px;
    cursor: pointer;
    pointer-events: auto;
    transition: color 0.2s, border-color 0.2s;
}

#fullscreen-btn:hover {
    color: rgba(255, 255, 255, 0.85);
    border-color: rgba(255, 255, 255, 0.4);
}

/* Ocultar em ambientes que não suportam fullscreen */
#fullscreen-btn.fs-unsupported { display: none; }
#fs-panel-row.fs-unsupported   { display: none; }

#welcome-author {
    position: absolute;
    bottom: 80px;
    right: 28px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    pointer-events: auto;
}

#welcome-author-name {
    font-size: 9px;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
}

#welcome-author-links {
    display: flex;
    gap: 12px;
}

#welcome-author-links a {
    font-size: 8px;
    letter-spacing: 2px;
    color: rgba(0, 170, 255, 0.8);
    text-decoration: none;
    text-transform: uppercase;
    transition: color 0.2s;
}

#welcome-author-links a:hover {
    color: rgba(0, 170, 255, 0.65);
}

#scroll-hint {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    animation: hint-float 2.4s ease-in-out infinite;
    pointer-events: none;
}

#scroll-hint-arrow {
    font-size: 16px;
    letter-spacing: 8px;
    color: rgba(255, 255, 255, 0.5);
}

#scroll-hint-label {
    font-size: 10px;
    letter-spacing: 5px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    white-space: nowrap;
}

@keyframes hint-float {
    0%, 100% { opacity: 0.5; transform: translateX(-50%) translateX(0); }
    50%       { opacity: 1;   transform: translateX(-50%) translateX(8px); }
}

/* ─── Zona de Escala (pré-Sol) ──────────────────────────────────── */

#scale-intro {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-align: center;
    pointer-events: none;
    z-index: 100;
    transition: opacity 0.4s ease;
}

.si-label {
    font-size: clamp(9px, 1.2vw, 14px);
    letter-spacing: 5px;
    color: rgba(255, 255, 255, 0.35);
    text-transform: uppercase;
}

.si-main {
    font-size: clamp(28px, 4vw, 56px);
    letter-spacing: 4px;
    color: rgba(255, 255, 255, 0.80);
    text-transform: uppercase;
    font-weight: 500;
}

.si-sub {
    font-size: clamp(11px, 1.5vw, 18px);
    letter-spacing: 3px;
    color: rgba(0, 170, 255, 0.70);
    text-transform: uppercase;
}

.si-arrow {
    font-size: clamp(9px, 1.2vw, 14px);
    letter-spacing: 4px;
    color: rgba(255, 255, 255, 0.25);
    text-transform: uppercase;
    margin-top: 8px;
}

/* ─── Configurações ─────────────────────────────────────────────── */

#settings-toggle {
    position: fixed;
    top: 16px; right: 12px;
    background: none;
    border: none;
    color: #5a7090;
    cursor: pointer;
    z-index: 2100;
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    transition: color 0.3s;
    padding: 0;
}

#settings-toggle:hover { color: var(--accent-color); }

#settings-panel {
    position: fixed;
    top: 62px; right: 16px;
    background: rgba(4, 8, 18, 0.97);
    border: 1px solid rgba(0, 170, 255, 0.1);
    padding: 20px 24px;
    z-index: 2050;
    min-width: 260px;
    display: none;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.9);
}

#settings-panel.open { display: block; }

#settings-panel h3 {
    font-size: 9px;
    letter-spacing: 4px;
    color: #5a7090;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #0e0e1a;
    text-transform: uppercase;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    gap: 16px;
}

.setting-item label {
    font-size: 9px;
    letter-spacing: 2px;
    color: #7a8fa8;
    text-transform: uppercase;
    flex: 1;
}

.setting-item input[type="range"] {
    width: 96px;
    accent-color: var(--accent-color);
    cursor: pointer;
}

.settings-divider {
    height: 1px;
    background: #0e0e1a;
    margin: 4px 0 16px;
}

.settings-section-title {
    font-size: 7px;
    letter-spacing: 4px;
    color: #4a6480;
    margin-bottom: 14px;
    text-transform: uppercase;
}

.settings-action-btn {
    background: none;
    border: 1px solid #3a5268;
    color: #6a8aa8;
    font-family: inherit;
    font-size: 8px;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 5px 10px;
    cursor: pointer;
    transition: 0.2s;
}
.settings-action-btn:hover { border-color: rgba(0,170,255,0.5); color: rgba(0,170,255,0.8); }

.settings-help-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 9px 14px;
    align-items: center;
}

.help-key {
    font-size: 8px;
    letter-spacing: 1px;
    color: #3a3a4a;
    text-transform: uppercase;
    white-space: nowrap;
}

.help-desc {
    font-size: 8px;
    letter-spacing: 1px;
    color: #2a2a3a;
    text-transform: uppercase;
}

/* ─── Velocidade da Luz ─────────────────────────────────────────── */

#lightspeed-btn {
    position: fixed;
    bottom: calc(var(--ruler-h) + 10px); right: 16px;
    background: rgba(4, 8, 18, 0.95);
    border: 1px solid #333;
    color: #556;
    padding: 9px 11px;
    font-family: inherit;
    font-size: 18px;
    cursor: pointer;
    z-index: 2050;
    display: flex;
    align-items: center;
    gap: 0;
    overflow: hidden;
    max-width: 42px;
    transition: max-width 0.35s ease, color 0.3s, border-color 0.3s, gap 0.35s, box-shadow 0.3s;
    white-space: nowrap;
    border-radius: 2px;
}

#lightspeed-btn:hover {
    max-width: 240px;
    gap: 10px;
    color: #aaa;
    border-color: #555;
}

#lightspeed-text {
    font-size: 9px;
    letter-spacing: 3px;
    text-transform: uppercase;
    opacity: 0;
    transition: opacity 0.15s 0.15s;
    overflow: hidden;
}

#lightspeed-btn:hover #lightspeed-text { opacity: 1; }


#lightspeed-btn.active {
    color: var(--accent-color);
    border-color: rgba(0, 170, 255, 0.5);
    box-shadow: 0 0 12px rgba(0, 170, 255, 0.2), inset 0 0 12px rgba(0, 170, 255, 0.05);
}

#lightspeed-btn img{
    width: 3.5vh;
    height: 100%;
}

.btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 1;
}

#photon {
    font-style: normal;
    transition: text-shadow 0.3s;
}

#photon.active {
    text-shadow: 0 0 8px rgba(0, 170, 255, 0.9), 0 0 20px rgba(0, 170, 255, 0.5);
    animation: photon-wave 0.8s ease-in-out infinite alternate;
}


@keyframes photon-wave {
    from { transform: scale(0.9); }
    to   { transform: scale(1.1); }
}

/* ─── Zoom Out ──────────────────────────────────────────────────── */

#zoom-out-btn {
    position: fixed;
    bottom: calc(var(--ruler-h) + 60px); right: 16px;
    background: rgba(4, 8, 18, 0.95);
    border: 1px solid #333;
    color: #aaa;
    padding: 8px 16px;
    font-family: inherit;
    font-size: 9px;
    letter-spacing: 3px;
    cursor: pointer;
    z-index: 2050;
    display: none;
    transition: all 0.3s;
    border-radius: 2px;
}

#zoom-out-btn:hover { border-color: var(--accent-color); color: #fff; }

/* ─── Label especial de Plutão ──────────────────────────────────── */

.pluto-love {
    position: absolute;
    top: -44px;
    font-size: 10px;
    letter-spacing: 2px;
    color: rgba(255, 180, 180, 0.45);
    white-space: nowrap;
    pointer-events: none;
}

/* ─── Fim da Jornada ────────────────────────────────────────────── */

.journey-end {
    position: absolute;
    top: 0;
    height: 100%;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    z-index: 1;
    pointer-events: none;
}

.journey-end-line {
    width: 1px;
    background: rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.journey-end-content {
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    max-width: 320px;
}

.journey-end-title {
    font-size: 9px;
    letter-spacing: 5px;
    color: rgba(255, 255, 255, 0.25);
    text-transform: uppercase;
}

.journey-end-next {
    font-size: 9px;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.18);
    text-transform: uppercase;
}

.journey-end-star {
    font-size: 20px;
    letter-spacing: 4px;
    color: rgba(255, 255, 255, 0.45);
}

.journey-end-dist {
    font-size: 11px;
    letter-spacing: 2px;
    color: rgba(0, 170, 255, 0.55);
}


/* ─── Marcos de Viagem (texto inline no espaço) ─────────────────── */

.journey-waypoint {
    position: absolute;
    top: calc(50% - 80px);
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding-left: 14px;
    border-left: 1px solid rgba(255, 255, 255, 0.07);
    pointer-events: none;
    user-select: none;
    white-space: nowrap;
}

.wp-label {
    font-size: 32px;
    letter-spacing: 6px;
    color: #ffffff;
    text-transform: uppercase;
    font-weight: 500;
}

.wp-dist {
    font-size: 14px;
    letter-spacing: 3px;
    color: var(--accent-color);
    text-transform: uppercase;
}

.wp-detail {
    font-size: 11px;
    letter-spacing: 2px;
    color: #aabbcc;
    text-transform: uppercase;
}

/* Help waypoints: enable pointer events for dismiss button */
.help-waypoint {
    pointer-events: auto;
}

.wp-dismiss-btn {
    margin-top: 10px;
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.2);
    font-family: inherit;
    font-size: 7px;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 5px 10px;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
    align-self: flex-start;
}

.wp-dismiss-btn:hover {
    color: rgba(255, 255, 255, 0.5);
    border-color: rgba(255, 255, 255, 0.2);
}

/* ─── Painel de Detalhes do Planeta ─────────────────────────────── */

#planet-detail-panel {
    position: fixed;
    top: 110px;
    left: -360px;
    width: 340px;
    bottom: calc(var(--ruler-h) + 10px);
    background: rgba(3, 6, 14, 0.98);
    border-right: 1px solid rgba(0, 170, 255, 0.1);
    overflow: visible;   /* allows collapse button to stick out */
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9800;       /* above everything */
}

#planet-detail-panel.open { left: 0; }

/* Fully off-screen when collapsed — button (right: -24px, width 24px)
   sticks out at screen x ≈ 0 so it's always reachable */
#planet-detail-panel.open.collapsed { left: -340px; }

/* Wrapper for scrollable content */
#planet-detail-inner {
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: #111 transparent;
    padding: 20px 18px 20px;
}

/* Collapse / expand tab — protrudes from right edge of panel.
   When panel is fully collapsed (left:-340px), this button sits at
   screen x ≈ 0 so it is always reachable. */
#detail-collapse-btn {
    position: absolute;
    top: 50%;
    right: -24px;        /* protrudes 24px beyond panel's right edge */
    transform: translateY(-50%);
    width: 24px;
    height: 56px;
    background: rgba(3, 6, 14, 0.97);
    border: 1px solid rgba(0, 170, 255, 0.12);
    border-left: none;
    color: #2a4a6a;
    font-size: 9px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s, background 0.2s;
    font-family: inherit;
    padding: 0;
}

#detail-collapse-btn:hover {
    color: rgba(0, 170, 255, 0.7);
    background: rgba(0, 20, 40, 0.99);
}

#planet-detail-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    color: #222;
    cursor: pointer;
    font-size: 11px;
    font-family: inherit;
    letter-spacing: 1px;
    transition: color 0.2s;
}

#planet-detail-close:hover { color: var(--accent-color); }

#planet-detail-back {
    display: none;
    position: absolute;
    top: 12px;
    left: 40px;
    background: none;
    border: none;
    color: #4a6a8a;
    cursor: pointer;
    font-size: 9px;
    font-family: inherit;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: color 0.2s;
    padding: 0;
}

#planet-detail-back:hover { color: var(--accent-color); }

/* Visual: esfera + luas */
#planet-detail-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    padding: 24px 0 20px;
}

.pdv-sphere {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
}

.pdv-ring {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) rotateX(70deg);
    width: 158%;
    height: 158%;
    border-radius: 50%;
    border: 3px solid;
    pointer-events: none;
}

/* Anéis Saturn no painel de detalhes */
.pdv-ring-c { width: 143%; height: 143%; border-width: 2px !important; border-color: rgba(130, 100, 65, 0.18) !important; }
.pdv-ring-b { width: 175%; height: 175%; border-width: 6px !important; border-color: rgba(195, 162, 96, 0.43) !important; }
.pdv-ring-a { width: 214%; height: 214%; border-width: 4px !important; border-color: rgba(218, 198, 145, 0.34) !important; }

/* Tampa superior para o painel de detalhes */
.pdv-top-cover {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border-radius: 50%;
    clip-path: polygon(0 0, 100% 0, 100% 50%, 0 50%);
    z-index: 2;
    pointer-events: none;
    background-size: cover;
    background-position: center;
}

.pdv-moon-row {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
    justify-content: center;
}

.pdv-moon-dot {
    border-radius: 50%;
    opacity: 0.75;
    flex-shrink: 0;
}

#planet-detail-type {
    font-size: 9px;
    letter-spacing: 3px;
    color: rgba(0, 170, 255, 0.4);
    text-transform: uppercase;
    margin-bottom: 4px;
}

#planet-detail-name {
    font-size: 20px;
    letter-spacing: 4px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    margin-bottom: 14px;
}

#planet-detail-desc {
    font-size: 12px;
    letter-spacing: 0.2px;
    color: #445566;
    line-height: 1.85;
    margin-bottom: 20px;
    border-top: 1px solid #0a0a16;
    padding-top: 14px;
}

#planet-detail-stats {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.detail-stat {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 7px 0;
    border-bottom: 1px solid #080810;
    gap: 6px;
}

.detail-stat-label {
    font-size: 9px;
    letter-spacing: 1px;
    color: #2a3e50;
    text-transform: uppercase;
    flex-shrink: 0;
}

.detail-stat-value {
    font-size: 12px;
    letter-spacing: 0.5px;
    color: rgba(0, 170, 255, 0.65);
    text-align: right;
}

.detail-section-title {
    font-size: 9px;
    letter-spacing: 2px;
    color: #1a2530;
    text-transform: uppercase;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid #0a0a16;
}

.detail-moon-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 0;
    border-bottom: 1px solid #06060e;
}

.detail-moon-item.clickable {
    cursor: pointer;
    transition: background 0.15s;
    padding-left: 4px;
    border-radius: 3px;
}

.detail-moon-item.clickable:hover { background: rgba(0,170,255,0.06); }
.detail-moon-item.clickable:hover .detail-moon-name { color: var(--accent-color); }

.detail-moon-zoom {
    font-size: 9px;
    color: #1a3040;
    transition: color 0.15s;
    flex-shrink: 0;
}

.detail-moon-item.clickable:hover .detail-moon-zoom { color: var(--accent-color); }

.detail-moon-swatch {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    flex-shrink: 0;
    opacity: 0.65;
}

.detail-moon-name {
    font-size: 10px;
    letter-spacing: 1px;
    color: #2d4055;
    text-transform: uppercase;
    flex: 1;
}

.detail-moon-dist {
    font-size: 7px;
    letter-spacing: 1px;
    color: #182028;
}

/* ─── Overlay de Mensagens Centrais ────────────────────────────── */

#msg-overlay {
    position: fixed;
    bottom: calc(var(--ruler-h) + 20px);
    left: 50%;
    transform: translateX(-50%);
    max-width: 600px;
    width: calc(100% - 80px);
    text-align: center;
    font-size: 14px;
    letter-spacing: 0.3px;
    line-height: 1.85;
    color: rgba(255, 255, 255, 0.78);
    font-weight: 500;
    pointer-events: none;
    z-index: 3500;
    white-space: pre-line;
    display: none;
}

#msg-overlay.visible { display: block; }

#msg-overlay.fade-out {
    animation: msg-fade 0.7s forwards;
}

@keyframes msg-fade {
    from { opacity: 1; }
    to   { opacity: 0; }
}

/* waypoints remain visible during lightspeed — user can see them while passing */


/* ─── Créditos ───────────────────────────────────────────────────── */

#credits-toggle {
    position: absolute;
    bottom: 8px;
    right: 10px;
    background: none;
    border: 1px solid #1a1a2e;
    color: #223;
    font-family: inherit;
    font-size: 10px;
    letter-spacing: 1px;
    padding: 3px 8px;
    cursor: pointer;
    z-index: 10;
    transition: 0.3s;
    line-height: 1;
}

#credits-toggle:hover {
    border-color: rgba(0, 170, 255, 0.2);
    color: rgba(0, 170, 255, 0.5);
}

#credits-panel {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 5500;
    background: rgba(0, 0, 0, 0.80);
}

#credits-panel.visible { display: flex; }

#credits-box {
    background: rgba(3, 6, 14, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 44px 52px;
    max-width: 420px;
    width: 90%;
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: relative;
}

#credits-close {
    position: absolute;
    top: 14px; right: 16px;
    background: none;
    border: none;
    color: #2a3a4a;
    font-size: 14px;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
}

#credits-close:hover { color: rgba(0, 170, 255, 0.6); }

.credits-title {
    font-size: 11px;
    letter-spacing: 7px;
    color: rgba(255, 255, 255, 0.45);
    text-transform: uppercase;
}

.credits-subtitle {
    font-size: 10px;
    letter-spacing: 3px;
    color: #2a3a4a;
    text-transform: uppercase;
    margin-top: -18px;
}

.credits-section {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.credits-label {
    font-size: 8px;
    letter-spacing: 4px;
    color: rgba(0, 170, 255, 0.35);
    text-transform: uppercase;
}

.credits-value {
    font-size: 12px;
    color: #3a5a7a;
    line-height: 1.8;
}

.credits-value em {
    font-style: normal;
    color: rgba(255, 255, 255, 0.3);
}

.credits-value a {
    color: rgba(0, 170, 255, 0.5);
    text-decoration: none;
    letter-spacing: 0.5px;
}

.credits-value a:hover { color: rgba(0, 170, 255, 0.9); }

/* ─── Melhoria 2: Tooltip de 1º clique na lua (filho do container) ─ */

.moon-orbit-hint {
    position: absolute;
    bottom: calc(100% + 6px);  /* acima do topo do moon-container */
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 10, 24, 0.88);
    border: 1px solid rgba(0, 170, 255, 0.25);
    color: rgba(0, 170, 255, 0.85);
    font-size: 9px;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 5px 12px;
    pointer-events: none;
    z-index: 5000;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s;
}

.moon-orbit-hint.visible { opacity: 1; }

/* ─── Fix 1: Banner de contexto de escala ───────────────────────── */

#scale-banner {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    top: 116px;
    background: rgba(0, 5, 18, 0.88);
    border: 1px solid rgba(0, 170, 255, 0.14);
    padding: 8px 22px 9px;
    z-index: 3000;
    text-align: center;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s;
}

#scale-banner.visible { opacity: 1; }

#scale-banner-comparison {
    font-size: 12px;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.75);
    text-transform: uppercase;
    margin-bottom: 3px;
}

#scale-banner-px {
    font-size: 9px;
    letter-spacing: 3px;
    color: rgba(0, 170, 255, 0.65);
    text-transform: uppercase;
}

/* ─── Melhoria 3: Minimap — lua ativa no planeta pai ────────────── */

.minimap-body.moon-active .minimap-dot-visual {
    box-shadow:
        0 0 0 2px rgba(0, 170, 255, 0.18),
        0 0 8px rgba(0, 170, 255, 0.35);
}

/* ─── Melhoria 4: Labels das luas irmãs destacadas ──────────────── */

.moon-container.sibling-highlight .moon-label {
    color: rgba(180, 220, 255, 0.9);
    font-size: 9px;
    letter-spacing: 1.5px;
}

.moon-container.sibling-highlight .moon-body {
    opacity: 1;
    box-shadow: 0 0 6px rgba(100, 180, 255, 0.35);
}

/* ─── Melhoria 5: Factoid comparativo no painel de detalhe ──────── */

.detail-highlight {
    background: rgba(0, 100, 180, 0.10);
    border-left: 2px solid rgba(0, 170, 255, 0.45);
    color: rgba(180, 220, 255, 0.85);
    font-size: 11px;
    letter-spacing: 0.3px;
    line-height: 1.5;
    padding: 8px 12px;
    margin-bottom: 14px;
    border-radius: 0 3px 3px 0;
}

/* ─── Moon thumbnail in detail panel ────────────────────────────── */

.detail-moon-thumb {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    opacity: 0.85;
    border: 1px solid rgba(255,255,255,0.06);
}

/* ─── Responsive: Mobile & Tablet ───────────────────────────────── */

/* ---------- Shared small-screen adjustments (≤ 900px) ----------- */
@media (max-width: 900px) {
    :root { --ruler-h: 12vh; }

    /* Keep minimap full-width so outer planets don't crowd */
    #minimap-container { width: calc(100% - 56px); }

    .info-value { font-size: 12px; }
    .info-label { font-size: 8px; }

    /* Truncate minimap labels to first letter to prevent overlap */
    .minimap-dot-label {
        overflow: hidden;
        max-width: 8px;
        letter-spacing: 0;
    }

    #zoom-out-btn { font-size: 8px; padding: 8px 18px; }
}

/* ---------- Tablet portrait (≤ 768px) --------------------------- */
@media (max-width: 768px) {
    /* Hide UA and Ano-Luz info, keep Distância + Tempo de Luz */
    .info-item:nth-child(2),
    .info-item:nth-child(3) { display: none; }

    #settings-panel { width: 240px; right: 0; border-radius: 0; }

    #msg-overlay { font-size: 12px; width: calc(100% - 40px); }
}

/* ---------- Phone (≤ 600px): collapsible minimap + lateral panel - */
@media (max-width: 600px) {
    :root { 
        --ruler-h: 120px; 
    }

    body {
        /* Evita problemas com a barra de endereços no mobile */
        height: -webkit-fill-available;
    }

    /* Minimapa mais compacto e com toque facilitado */
    #minimap-container {
        width: 100% !important;
        padding: 10px 10px 5px !important;
    }

    #minimap-toggle-label {
        font-size: 10px;
        letter-spacing: 2px;
    }

    .minimap-dot-label {
        display: none; /* Esconde nomes no minimapa em telas muito pequenas */
    }

    .minimap-body {
        padding: 12px 8px; /* Área de toque maior */
    }

    /* Ajuste da navegação inferior do minimapa */
    #nav-row {
        gap: 2px;
    }

    .nav-arrow-btn {
        font-size: 9px;
        padding: 8px 4px;
        color: #aabbcc;
    }

    #nav-current-name {
        font-size: 9px;
        max-width: 80px;
        overflow: hidden;
        text-overflow: ellipsis;
        color: #ffffff;
    }

    /* Painel de detalhes: 88vw para que o botão de colapso fique visível */
    #planet-detail-panel {
        top: 0;
        width: 88vw;
        left: -88vw;
        bottom: 0;
        border-right: none;
        z-index: 10000;
    }

    #planet-detail-panel.open { left: 0; }
    
    #planet-detail-panel.open.collapsed { left: calc(-96vw + 32px); }

    #planet-detail-inner {
        padding: 60px 20px 140px; /* Espaço para o botão fechar e régua */
    }

    #detail-collapse-btn {
        right: -32px;
        width: 32px;
        height: 80px;
        font-size: 14px;
        background: var(--accent-color);
        color: #000;
        border: none;
        border-radius: 0 8px 8px 0;
        box-shadow: 2px 0 10px rgba(0,0,0,0.5);
    }

    /* Esconde a aba de colapso enquanto o painel não foi aberto */
    #planet-detail-panel:not(.open) #detail-collapse-btn {
        display: none;
    }

    /* Régua Astronômica: Info mais compacta */
    #astronomical-ruler {
        height: var(--ruler-h);
        padding: 10px 10px;
    }

    #info-display {
        gap: 5px;
        padding-top: 5px;
    }

    .info-item {
        padding: 0 5px;
        flex: 1;
    }

    .info-value {
        font-size: 11px;
    }

    /* Botão de Velocidade da Luz e Zoom Out */
    #lightspeed-btn {
        bottom: calc(var(--ruler-h) + 10px);
        right: 10px;
        padding: 12px;
    }

    #zoom-out-btn {
        bottom: calc(var(--ruler-h) + 70px);
        right: 10px;
        padding: 10px 12px;
    }

    /* Mensagens centrais: sobe um pouco para não cobrir botões */
    #msg-overlay {
        bottom: calc(var(--ruler-h) + 130px);
        font-size: 12px;
        padding: 0 15px;
    }

    /* Welcome Overlay */
    #welcome-title {
        font-size: 24px;
        letter-spacing: 6px;
    }

    #welcome-subtitle {
        font-size: 12px;
        letter-spacing: 4px;
    }

    #scroll-hint-label {
        font-size: 11px;
        letter-spacing: 4px;
        color: rgba(255, 255, 255, 0.45);
    }

    #scroll-hint-arrow {
        font-size: 18px;
        color: rgba(255, 255, 255, 0.6);
    }

    #welcome-author {
        bottom: 110px;
        right: 16px;
    }

    /* Scale intro — clamp() already handles mobile sizing */
}

/* ---------- Phone landscape (height ≤ 440px) --------------------- */
@media (max-height: 440px) and (orientation: landscape) {
    :root { --ruler-h: 90px; }

    #minimap-toggle { display: inline-flex; }

    #planet-detail-panel { top: 0; bottom: var(--ruler-h); }

    .info-item:nth-child(3) { display: none; }

    #settings-toggle { top: 8px; right: 8px; }

    #msg-overlay { font-size: 11px; }
}

/* ─── Régua Interativa ──────────────────────────────────────────── */

#measure-btn {
    position: fixed;
    bottom: calc(var(--ruler-h) + 110px); right: 16px;
    background: rgba(4, 8, 18, 0.95);
    border: 1px solid #333;
    color: #556;
    padding: 9px 11px;
    font-family: inherit;
    cursor: pointer;
    z-index: 2050;
    display: flex;
    align-items: center;
    border-radius: 2px;
    transition: color 0.2s, border-color 0.2s;
}
#measure-btn:hover { color: #aaa; border-color: #555; }
#measure-btn.active { color: #f5c518; border-color: #f5c518; }

body.measure-active { cursor: crosshair !important; }
body.measure-active * { cursor: crosshair !important; }

#measure-capture {
    position: fixed;
    inset: 0;
    z-index: 1500;
    pointer-events: none;
}
body.measure-active #measure-capture {
    pointer-events: all;
}

#measure-overlay {
    position: fixed;
    inset: 0;
    z-index: 1501;
    pointer-events: none;
    overflow: hidden;
}

.measure-tick {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 0;
    border-left: 1px dashed rgba(245, 197, 24, 0.35);
    display: none;
}

.measure-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #f5c518;
    border-radius: 50%;
    transform: translateX(-50%);
    display: none;
    box-shadow: 0 0 6px rgba(245, 197, 24, 0.7);
}

.measure-badge {
    position: absolute;
    transform: translateX(-50%);
    background: rgba(245, 197, 24, 0.12);
    border: 1px solid rgba(245, 197, 24, 0.45);
    border-radius: 3px;
    padding: 1px 5px;
    font-size: 10px;
    letter-spacing: 1px;
    color: rgba(245, 197, 24, 0.85);
    white-space: nowrap;
    display: none;
}

#measure-span {
    position: absolute;
    height: 1px;
    background: rgba(245, 197, 24, 0.45);
    display: none;
}
#measure-span::before,
#measure-span::after {
    content: '';
    position: absolute;
    top: -5px;
    width: 1px;
    height: 10px;
    background: rgba(245, 197, 24, 0.65);
}
#measure-span::before { left: 0; }
#measure-span::after  { right: -1px; }

#measure-distance {
    position: absolute;
    transform: translateX(-50%);
    text-align: center;
    white-space: nowrap;
    display: none;
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(245, 197, 24, 0.25);
    border-radius: 4px;
    padding: 5px 10px;
    backdrop-filter: blur(4px);
}
#measure-distance .dist-main {
    font-size: 13px;
    letter-spacing: 2px;
    color: rgba(245, 197, 24, 0.95);
    font-weight: 600;
}
#measure-distance .dist-sub {
    font-size: 10px;
    color: rgba(245, 197, 24, 0.55);
    letter-spacing: 1px;
    line-height: 1.6;
}
#measure-distance .dist-sub:empty { display: none; }

#measure-hint {
    position: fixed;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    letter-spacing: 2px;
    color: rgba(245, 197, 24, 0.45);
    pointer-events: none;
    white-space: nowrap;
    display: none;
    text-transform: uppercase;
}

@media (max-width: 600px) {
    #measure-hint { bottom: 100px; font-size: 9px; }
}
