/* =====================================================================
   v6 · IDIOMAS, CLIMA, BRÚJULA DEL TABLERO, DOCK COMPACTO, SIN SUPERPOSICIONES
   ===================================================================== */
/* ---------- Selector de idioma (pantalla principal) ---------- */
.lang-sel { display: flex; gap: 10px; justify-content: center; margin: 2px 0 4px; }
.lang-sel button { display: flex; align-items: center; gap: 7px; padding: 4px 12px 4px 4px; border-radius: 22px; cursor: pointer;
  background: rgba(255,255,255,.04); border: 1px solid var(--line-faint); color: var(--text-dim); font-family: var(--disp); font-weight: 600; font-size: 13px; }
.lang-sel button i { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-style: normal; font-family: var(--mono); font-size: 10.5px; font-weight: 700;
  background: #2a2d31; border: 1px solid #44484e; color: var(--text); }
.lang-sel button:hover { border-color: var(--line); color: var(--text); }
.lang-sel button.on { border-color: var(--accent); color: var(--accent); background: rgba(255,196,20,.1); }
.lang-sel button.on i { background: var(--accent); color: #141517; border-color: var(--accent); }

/* ---------- Barra de clima (5 íconos circulares) ---------- */
#wxBar { position: fixed; top: 62px; left: 50%; transform: translateX(-50%); z-index: 19; display: flex; gap: 6px; padding: 4px; border-radius: 26px;
  background: rgba(18,20,23,.82); border: 1px solid var(--line-soft); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
body.menu #wxBar { display: none; }
body.work #wxBar, body.ui-hidden #wxBar { top: 10px; }
.wxbtn { width: 34px; height: 34px; border-radius: 50%; padding: 0; cursor: pointer; display: flex; align-items: center; justify-content: center;
  background: #1f2225; border: 1px solid #3c4046; color: var(--text-dim); }
.wxbtn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.wxbtn:hover { color: var(--text); border-color: var(--line); }
.wxbtn.on[data-wx="normal"] { color: #141517; background: #45d483; border-color: #45d483; }
.wxbtn.on[data-wx="hot"] { color: #141517; background: #ff8a1f; border-color: #ff8a1f; }
.wxbtn.on[data-wx="rain"] { color: #141517; background: #48bfff; border-color: #48bfff; }
.wxbtn.on[data-wx="storm"] { color: #fff; background: #a970ff; border-color: #a970ff; animation: wxStorm 1.4s ease-in-out infinite; }
.wxbtn.on[data-wx="post"] { color: #141517; background: #2fc4b2; border-color: #2fc4b2; }
@keyframes wxStorm { 50% { box-shadow: 0 0 0 6px rgba(169,112,255,.3); } }
#toast { top: 108px; }
body.work #toast, body.ui-hidden #toast { top: 56px; }

/* fondo según el clima */
body[data-wx="hot"] { background: radial-gradient(ellipse at 50% 42%, #4d463d 0%, #33302c 38%, #1e1c1a 75%, #121110 100%); }
body[data-wx="rain"] { background: radial-gradient(ellipse at 50% 40%, #39414a 0%, #2a3036 40%, #181b1f 76%, #0f1113 100%); }
body[data-wx="storm"] { background: radial-gradient(ellipse at 50% 40%, #2c3138 0%, #1f2328 40%, #121417 76%, #0a0b0d 100%); }
body[data-wx="post"] { background: radial-gradient(ellipse at 50% 40%, #434a50 0%, #30353a 40%, #1b1e21 76%, #111214 100%); }

/* ---------- Brújula pequeña en el tablero ---------- */
.dcomp { width: 40px; height: 40px; flex: none; margin-left: 4px; }
.dcomp .dc-b { fill: rgba(5,12,20,.6); stroke: rgba(127,167,201,.35); stroke-width: 1; }
.dcomp .dc-t { stroke: rgba(127,167,201,.55); stroke-width: .8; }
.dcomp .dc-l { font-family: var(--mono); font-size: 6.4px; font-weight: 700; fill: #9fbad4; }
.dcomp .dc-l.n { fill: #ff5a4f; }
.dcomp .dc-boom { stroke: #ffc414; stroke-width: 1.6; stroke-linecap: round; }
.dcomp .dc-bt { fill: #ffc414; }
.dcomp .dc-idx { fill: #45d483; }
.dcomp .dc-c { fill: #cfe8ff; }
.lcd-wx { font-weight: 700; letter-spacing: .06em; }

/* ---------- Dock vertical derecho: solo íconos, compacto ---------- */
#dock { top: 62px; transform: none; bottom: auto; max-height: calc(100% - 62px - 150px); overflow-y: auto; overflow-x: hidden; scrollbar-width: none; padding: 4px; gap: 1px; right: 10px; }
#dock::-webkit-scrollbar { display: none; }
#dock .dbtn { width: 34px; height: 30px; flex: none; border-radius: 4px; }
#dock .dbtn svg { width: 17px; height: 17px; }
#dock .dock-eye { width: 24px; height: 24px; flex: none; }
#dock .dsep { margin: 2px 3px; flex: none; }
#quick { right: 58px; }
#detail, #specs { right: 58px; }
/* ficha de la parte + ficha técnica abiertas a la vez: comparten la columna derecha */
body.specs-on #detail { max-height: calc((100% - 216px) / 2 - 4px); }
body.specs-on #specs { top: auto; bottom: 150px; max-height: calc((100% - 216px) / 2 - 4px); }
body.joy.specs-on #detail { max-height: calc((100% - 378px) / 2 - 4px); }
body.joy.specs-on #specs { bottom: 312px; max-height: calc((100% - 378px) / 2 - 4px); }

/* ---------- Paneles ordenados sin superposición ---------- */
#detail { max-height: calc(100% - 66px - 150px); }
#specs { bottom: 150px; max-height: calc(100% - 66px - 160px - 10px); }
body.joy #detail { max-height: calc(100% - 66px - 312px); }
body.joy #specs { bottom: 312px; max-height: calc(100% - 66px - 322px); }
#left { bottom: 16px; }
#compass { left: 326px; bottom: 16px; }
body.min-left #compass { left: 70px; }
#inspPanel { max-height: calc(100% - 66px - 16px); }
body.joy #left { bottom: 196px; }
body.joy #inspPanel { max-height: calc(100% - 66px - 196px); }
#probCard { bottom: 170px; }
@media (max-height: 760px) { #dock .dbtn { height: 26px; } #dock .dbtn svg { width: 15px; height: 15px; } }
