/* Domus Episteme: o céu do Mapa do Conhecimento (SVG), usado em /mapa e na tela inicial. */
:root {
  --st-nao: rgba(238,231,214,.34); --st-desc: #8EA4D9; --st-dev: #C3D2F6; --st-dom: #F3D58C; --st-ava: #FFF5D6; --st-rev: #F4A86B;
}

/* ---------- ícones de estado (forma + cor: nunca só cor) ---------- */
.mp-ico { display: inline-block; width: 14px; height: 14px; flex: none; vertical-align: -2px; margin-right: 8px; background: center / contain no-repeat; }
.mp-ico[data-e="nao"] { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Ccircle cx='7' cy='7' r='4' fill='none' stroke='%23EEE7D6' stroke-opacity='.5' stroke-width='1.4'/%3E%3C/svg%3E"); }
.mp-ico[data-e="descoberto"] { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Ccircle cx='7' cy='7' r='3.6' fill='%238EA4D9'/%3E%3C/svg%3E"); }
.mp-ico[data-e="desenvolvimento"] { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Ccircle cx='7' cy='7' r='3.2' fill='%23C3D2F6'/%3E%3Cpath d='M7 1.4a5.6 5.6 0 0 1 5.6 5.6' fill='none' stroke='%23F3D58C' stroke-width='1.4'/%3E%3C/svg%3E"); }
.mp-ico[data-e="dominado"] { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M7 0.5L8.3 5.7 13.5 7 8.3 8.3 7 13.5 5.7 8.3 0.5 7 5.7 5.7z' fill='%23F3D58C'/%3E%3C/svg%3E"); }
.mp-ico[data-e="avancado"] { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Ccircle cx='7' cy='7' r='6.2' fill='none' stroke='%23FFF5D6' stroke-opacity='.7' stroke-width='.9'/%3E%3Cpath d='M7 1.6L7.9 5 11 3 9 6.1 12.4 7 9 7.9 11 11 7.9 9 7 12.4 6.1 9 3 11 5 7.9 1.6 7 5 6.1 3 3 6.1 5z' fill='%23FFF5D6'/%3E%3C/svg%3E"); }
.mp-ico[data-e="revisao"] { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Ccircle cx='7' cy='7' r='5.8' fill='none' stroke='%23F4A86B' stroke-width='1.2' stroke-dasharray='2 1.6'/%3E%3Cpath d='M7 3.2L7.8 6.2 10.8 7 7.8 7.8 7 10.8 6.2 7.8 3.2 7 6.2 6.2z' fill='%23F4A86B'/%3E%3C/svg%3E"); }
.mp-ico[data-e="semq"] { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Ccircle cx='7' cy='7' r='3' fill='none' stroke='%23EEE7D6' stroke-opacity='.3' stroke-dasharray='1 1.6'/%3E%3C/svg%3E"); }

.mp-ceu { display: block; width: 100%; height: 100%; cursor: grab; user-select: none; -webkit-user-select: none; }
.mp-ceu.arrastando { cursor: grabbing; }
.mp-ceu:focus { outline: none; }
.mp-cam { transition: transform .9s cubic-bezier(.22,1,.36,1); will-change: transform; }
.mp-cam.sem-transicao { transition: none; }

/* nós (SVG) */
.mp-ceu text { font-family: var(--f-texto); fill: var(--tinta); paint-order: stroke; stroke: rgba(4,8,20,.85); stroke-width: 3px; stroke-linejoin: round; pointer-events: none; }
.mp-ceu .t-titulo { font-family: var(--f-display); font-weight: 600; }
.mp-ceu .t-meta { font-family: var(--f-mono); fill: var(--tinta-3); letter-spacing: .04em; }
.mp-ceu .t-pct { font-family: var(--f-display); fill: var(--ouro); font-weight: 600; }
.mp-ceu .t-simbolo { font-family: var(--f-display); fill: rgba(243,213,140,.55); stroke: none; }
.mp-ceu .no { cursor: pointer; outline: none; }
.mp-ceu .no .alvo { fill: transparent; }
.mp-ceu .no:focus-visible .foco, .mp-ceu .no.sel .foco { stroke: var(--ouro); stroke-width: 1.5; fill: none; opacity: 1; }
.mp-ceu .foco { opacity: 0; transition: opacity .2s; }
.mp-ceu .no:hover .foco { opacity: .55; stroke: var(--tinta-2); stroke-width: 1; fill: none; }
.mp-ceu .anel-trilho { fill: none; stroke: rgba(238,231,214,.10); }
.mp-ceu .anel { fill: none; stroke: var(--ouro); stroke-linecap: round; transform: rotate(-90deg); transform-box: fill-box; transform-origin: center; }
.mp-ceu .linha-const { stroke: rgba(238,231,214,.16); stroke-width: 1; fill: none; }
.mp-ceu .linha-gal { stroke: rgba(243,213,140,.12); stroke-width: 1; fill: none; stroke-dasharray: 2 5; }
.mp-ceu .pre { fill: none; stroke: rgba(243,213,140,.0); stroke-width: 1.2; transition: stroke .3s; }
.mp-ceu.mostra-pre .pre { stroke: rgba(243,213,140,.18); }
.mp-ceu .pre.on { stroke: var(--ouro); stroke-dasharray: 5 4; animation: fluxo 1.2s linear infinite; }
.mp-ceu .pre.dep.on { stroke: var(--certo); }
@keyframes fluxo { to { stroke-dashoffset: -18; } }
.mp-ceu .apagada { opacity: .16; }
.mp-ceu .fora-foco { opacity: .28; transition: opacity .5s; }

/* estrelas por estado */
.mp-ceu .st-nao .nucleo { fill: none; stroke: var(--st-nao); stroke-width: 1.4; }
.mp-ceu .st-semq .nucleo { fill: none; stroke: rgba(238,231,214,.2); stroke-width: 1; stroke-dasharray: 1.5 2.5; }
.mp-ceu .st-descoberto .nucleo { fill: var(--st-desc); }
.mp-ceu .st-desenvolvimento .nucleo { fill: var(--st-dev); }
.mp-ceu .st-dominado .nucleo { fill: var(--st-dom); filter: url(#mp-brilho); }
.mp-ceu .st-avancado .nucleo { fill: var(--st-ava); filter: url(#mp-brilho-forte); }
.mp-ceu .st-avancado .halo { fill: none; stroke: rgba(255,245,214,.55); stroke-width: .9; }
.mp-ceu .st-revisao .nucleo { fill: var(--st-rev); }
.mp-ceu .st-revisao .halo { fill: none; stroke: var(--st-rev); stroke-width: 1.2; stroke-dasharray: 3 2.5; }
.mp-ceu .progresso { fill: none; stroke: var(--ouro); stroke-width: 1.4; stroke-linecap: round; opacity: .85; }
.mp-ceu .t-estrela { font-size: 11px; fill: var(--tinta-2); }
.mp-ceu .no:hover .t-estrela, .mp-ceu .no:focus-visible .t-estrela, .mp-ceu .no.sel .t-estrela { fill: var(--tinta); }
.mp-ceu .ponto { stroke: none; }
.mp-ceu .ponto.st-nao { fill: rgba(238,231,214,.22); }
.mp-ceu .ponto.st-semq { fill: rgba(238,231,214,.08); }
.mp-ceu .ponto.st-descoberto { fill: var(--st-desc); }
.mp-ceu .ponto.st-desenvolvimento { fill: var(--st-dev); }
.mp-ceu .ponto.st-dominado { fill: var(--st-dom); }
.mp-ceu .ponto.st-avancado { fill: var(--st-ava); }
.mp-ceu .ponto.st-revisao { fill: var(--st-rev); }

/* animações discretas */
@media (prefers-reduced-motion: no-preference) {
  .mp-ceu .entra { animation: surgir .9s cubic-bezier(.22,1,.36,1) both; animation-delay: calc(var(--i, 0) * 28ms); }
  @keyframes surgir { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
  .mp-ceu .entra { transform-box: fill-box; transform-origin: center; }
  .mp-ceu .st-dominado .nucleo, .mp-ceu .st-avancado .nucleo { animation: respirar 5s ease-in-out infinite; animation-delay: calc(var(--i, 0) * 170ms); }
  @keyframes respirar { 50% { opacity: .78; } }
  .mp-ceu .st-revisao .halo { animation: girar 14s linear infinite; transform-box: fill-box; transform-origin: center; }
  @keyframes girar { to { transform: rotate(360deg); } }
  .mp-ceu .nova .halo-novo { animation: anuncio 2.4s ease-out 3; transform-box: fill-box; transform-origin: center; }
  @keyframes anuncio { from { opacity: .9; transform: scale(.6); } to { opacity: 0; transform: scale(2.6); } }
  .mp-ceu .neb { animation: derivar 9s ease-in-out infinite alternate; }
  @keyframes derivar { to { opacity: .72; } }
  .mp-camada { animation: camada .7s ease both; }
  @keyframes camada { from { opacity: 0; } }
}
.mp-ceu .halo-novo { fill: none; stroke: var(--ouro); stroke-width: 1.5; opacity: 0; }

/* blocos de constelação (dentro de uma galáxia) */
.mp-ceu .caixa-const { fill: rgba(238,231,214,.022); stroke: rgba(238,231,214,.07); stroke-width: 1; transition: fill .3s, stroke .3s; }
.mp-ceu .bloco:hover .caixa-const { fill: rgba(238,231,214,.035); stroke: rgba(243,213,140,.16); }
.mp-ceu .bloco .t-titulo { fill: var(--tinta); }
.mp-ceu .barra-trilho { fill: rgba(238,231,214,.08); }
.mp-ceu .barra { fill: var(--ouro); }
.mp-ceu.fixo { cursor: default; touch-action: pan-y; }
.mp-ceu.fixo .no { cursor: pointer; }
.mp-ceu .no:hover .anel-trilho { stroke: rgba(243,213,140,.28); }
.mp-ceu .no.universo:hover .t-titulo, .mp-ceu .no.galaxia:hover .t-titulo { fill: var(--ouro); }
