* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    background: #000;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    font-family: 'Segoe UI', Arial, sans-serif;
}
canvas {
    display: block;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 40%, #0a0f20, #03050a 90%);
}

#panel {
    position: fixed;
    top: 12px;
    left: 12px;
    background: rgba(10, 12, 20, 0.78);
    border: 1px solid rgba(150, 170, 210, 0.25);
    border-radius: 10px;
    padding: 12px 14px;
    color: #cfd8ea;
    font-size: 12px;
    backdrop-filter: blur(4px);
    z-index: 10;
    max-width: 240px;
}
#panel h1 {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: #ffecb3;
    margin-bottom: 8px;
    text-transform: uppercase;
}
#panel label {
    display: block;
    margin-top: 8px;
    font-size: 11px;
    color: #9aa8c4;
}
#panel input, #panel select {
    width: 100%;
    margin-top: 3px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(150,170,210,0.3);
    border-radius: 5px;
    color: #eef2fb;
    padding: 4px 6px;
    font-size: 12px;
}
#panel .row {
    display: flex;
    gap: 6px;
}
#panel .row > div { flex: 1; }
#nowBtn {
    margin-top: 10px;
    width: 100%;
    padding: 6px;
    background: rgba(255, 236, 179, 0.15);
    border: 1px solid rgba(255, 236, 179, 0.4);
    color: #ffecb3;
    border-radius: 5px;
    cursor: pointer;
    font-size: 11px;
}
#nowBtn:hover { background: rgba(255, 236, 179, 0.25); }
#info {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid rgba(150,170,210,0.2);
    font-size: 11px;
    color: #8b98b8;
    line-height: 1.5;
}

/* ---------------------------------------------------------
   Painel educativo — ocupa a margem escura fora do domo
   circular (visível em telas largas o bastante).
   --------------------------------------------------------- */
#edu-panel {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 300px;
    overflow-y: auto;
    padding: 22px 20px 40px;
    box-sizing: border-box;
    background: linear-gradient(to left, rgba(4,6,11,0.85), rgba(4,6,11,0));
    color: #a9b4cc;
    z-index: 9;
    scrollbar-width: thin;
    scrollbar-color: rgba(150,170,210,0.35) transparent;
    transition: transform 0.25s ease;
}
#edu-panel section {
    margin-bottom: 22px;
}
#edu-panel h2 {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: #ffecb3;
    margin-bottom: 8px;
    text-shadow: 0 0 8px rgba(0,0,0,0.6);
}
#edu-panel p {
    font-size: 12px;
    line-height: 1.6;
    margin-bottom: 8px;
    text-shadow: 0 0 6px rgba(0,0,0,0.5);
}
#edu-panel ul {
    padding-left: 16px;
    margin: 0;
}
#edu-panel li {
    font-size: 12px;
    line-height: 1.6;
    margin-bottom: 10px;
    text-shadow: 0 0 6px rgba(0,0,0,0.5);
}
#edu-panel strong {
    color: #dfe6f5;
}

#eduToggle {
    position: sticky;
    top: 0;
    float: right;
    width: 26px;
    height: 26px;
    margin-bottom: 8px;
    background: rgba(255,236,179,0.12);
    border: 1px solid rgba(255,236,179,0.35);
    color: #ffecb3;
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
    line-height: 1;
}
#eduToggle:hover { background: rgba(255,236,179,0.22); }

#edu-panel.collapsed section,
#edu-panel.collapsed { 
    display: none;
}
#edu-panel.collapsed {
    display: block;
    width: auto;
    padding: 12px;
    background: rgba(4,6,11,0.6);
    border-radius: 10px;
    top: 12px;
    right: 12px;
    height: auto;
}
#edu-panel.collapsed #eduToggle {
    display: block;
    float: none;
    margin: 0;
}

/* Em telas estreitas não sobra margem fora do domo — some com o painel
   pra não cobrir o céu (o botão de reabrir continua acessível). */
@media (max-width: 900px) {
    #edu-panel:not(.collapsed) {
        width: min(300px, 78vw);
        background: rgba(4,6,11,0.92);
    }
}
