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

body {
    overflow: hidden;
    background-color: #050505;
    font-family: sans-serif;
}

#canvas-container {
    width: 100vw;
    height: 100vh;
}

#ui-panel {
    position: fixed;
    top: 20px;
    left: 20px;
    background: rgba(10, 10, 25, 0.85);
    color: #fff;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #3a3a5c;
    font-family: sans-serif;
    width: 240px;
    z-index: 100; 
    pointer-events: auto; 
}

#ui-panel h3 {
    margin: 0 0 10px 0;
    font-size: 16px;
    color: #00ffcc;
}

.control-group {
    margin: 10px 0;
}

.control-group label {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.coodinates-display {
    display: flex;
    margin-top: 10px;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    gap: 10px;
    
    /*background-color: rgba(255, 255, 255, 0.15); */
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 8px;
    padding: 10px 10px;
    
    color: #ffffff;
    font-family: monospace;
    font-size: 14px;
    white-space: nowrap; 

}
.coodinates-display .display{
    background-color: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 4px;
}

.planet-selector button {
    background: #2a2a40;
    color: white;
    border: 1px solid #444;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 4px;
}
.planet-selector button:hover {
    background: #00ffcc;
    color: black;
}


#planetInfo {
    position: fixed;
    top: 20px;
    right: 20px;

    width: 240px;

    background: rgba(10, 10, 25, 0.85);
    color: #fff;

    padding: 15px;

    border-radius: 8px;
    border: 1px solid #3a3a5c;

    font-family: sans-serif;

    z-index: 100;
    pointer-events: auto;
}

#planetInfo h3 {
    margin: 0 0 10px 0;
    font-size: 16px;
    color: #00ffcc;
}

#planetInfo hr {
    border: none;
    border-top: 1px solid rgba(255,255,255,.15);
    margin: 12px 0;
}

.infoRow {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin: 8px 0;
    padding: 6px 8px;

    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 6px;

    font-family: monospace;
    font-size: 13px;
}

.infoRow span:last-child{
    color:#00ffcc;
    font-weight:bold;
}

.placeholder{
    margin-top:12px;
    padding:10px;

    background: rgba(255,255,255,.05);
    border:1px solid rgba(255,255,255,.08);
    border-radius:6px;

    font-size:13px;
    color:#bbb;
}

#ui-panel, #planetInfo {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}
#ui-panel.hidden, #planetInfo.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}



/*----------------------------------------------------------*/

/* ==========================================
               (USER GUIDE MANUEL)
   ========================================== */

.intro-card {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(2, 6, 23, 0.98));
    
    /* Padrão de pontinhos em toda a tela */
    background-image: 
        radial-gradient(rgba(56, 189, 248, 0.18) 1.5px, transparent 1.5px),
        radial-gradient(rgba(56, 189, 248, 0.12) 1.5px, transparent 1.5px),
        linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(2, 6, 23, 0.98));
    background-size: 30px 30px, 30px 30px, 100% 100%;
    background-position: 0 0, 15px 15px, 0 0;

    z-index: 2147483647;
    display: flex;
    align-items: center;
    justify-content: space-between;
    backdrop-filter: blur(16px);
    box-sizing: border-box;
}

/* Área exclusiva da Terra na esquerda */
#intro-globe-container {
    flex: 1;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Painel de texto travado na direita com 600px */
.intro-card .card-body {
    width: 600px;
    height: 100vh;
    padding: 40px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: rgba(15, 23, 42, 0.4);
    border-left: 1px solid rgba(56, 189, 248, 0.2);
}

.card-header {
    display: none;
}

.card-body {
    display: flex;
    flex-direction: column;
    gap: 25px;
    width: 100%;
    /* Garante um respiro interno extra se a tela for menor */
    max-height: 100%;
    overflow-y: auto;
    padding-right: 5px; /* Evita colar na barra de rolagem */
}

.card-body h2 {
    margin: 0;
    font-size: 30px;
    color: #38bdf8;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.card-body > p {
    font-size: 15px;
    color: #94a3b8;
    margin-top: -10px;
    line-height: 1.5;
}

/* Bloco de Guia de Controles */
.controls-guide {
    display: flex;
    flex-direction: column;
    gap: 18px;
    background: rgba(30, 41, 59, 0.6);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid rgba(51, 65, 85, 0.8);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.control-row {
    display: flex;
    align-items: center;
    gap: 20px;
}

.control-text {
    font-size: 15px;
    color: #e2e8f0;
    line-height: 1.4;
}

.cool-blue {
    color: #38bdf8;
    font-weight: 700;
}

/* Ícone do Mouse */
.mouse-icon-container {
    min-width: 65px;
    display: flex;
    justify-content: center;
}

.mouse-body {
    width: 40px;
    height: 58px;
    border: 3px solid #cbd5e1;
    border-radius: 20px;
    position: relative;
    background: #0f172a;
    overflow: hidden;
    display: flex;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.mouse-divider {
    position: absolute;
    width: 2px;
    height: 22px;
    background: #cbd5e1;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.mouse-click-left, .mouse-click-right {
    width: 50%;
    height: 22px;
    transition: background 0.2s;
}

.active-left {
    background: #38bdf8;
    border-top-left-radius: 16px;
}

.active-right {
    background: #38bdf8;
    border-top-right-radius: 16px;
}

/* Teclas WASD */
.wasd-keys {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 65px;
}

.wasd-row {
    display: flex;
    gap: 4px;
}

.key {
    background: #1e293b;
    color: #ffffff;
    border: 2px solid #475569;
    border-radius: 6px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 13px;
    box-shadow: 0 3px 0 #0f172a;
}

/* Botão Start */
.btn-start {
    display: block;
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #0284c7, #0369a1);
    color: white;
    border: 1px solid rgba(56, 189, 248, 0.4);
    border-radius: 8px;
    font-weight: 700;
    font-size: 17px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px -5px rgba(2, 132, 199, 0.5);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.btn-start:hover {
    background: linear-gradient(135deg, #0369a1, #075985);
    box-shadow: 0 15px 25px -5px rgba(2, 132, 199, 0.7);
    transform: translateY(-2px);
}