/* ============================================================
   BioBots — main.css
   Estética del video de referencia: paneles HUD azul petróleo
   translúcidos con borde cian bioluminiscente, títulos amarillos,
   alarmas amarillo/rojo. Colores metabólicos estándar:
   verde = batería, azul/celeste = enfriamiento.
   ============================================================ */

:root {
  --cyan: #2fd6e8;
  --cyan-soft: rgba(47, 214, 232, 0.55);
  --panel-bg: linear-gradient(160deg, rgba(10, 38, 54, 0.92), rgba(6, 24, 38, 0.94));
  --panel-border: 2px solid var(--cyan-soft);
  --panel-radius: 14px;
  --panel-shadow: 0 4px 24px rgba(0, 0, 0, 0.55), inset 0 0 18px rgba(47, 214, 232, 0.08);
  --yellow: #ffc93c;
  --green: #53e07a;
  --red: #ff4b4b;
  --text: #dff4fb;
  --ui-scale: 1;
  font-size: calc(16px * var(--ui-scale));
}

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

[hidden] { display: none !important; }

body {
  font-family: 'Trebuchet MS', 'Segoe UI', system-ui, sans-serif;
  background: radial-gradient(ellipse at 50% 30%, #241a45 0%, #120c24 70%);
  color: var(--text);
  overflow: hidden;
  height: 100vh;
  user-select: none;
}

/* ================= Pantallas de menú ================= */
.screen {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  overflow-y: auto;
  padding: 2rem 1rem;
  z-index: 50;
  background:
    radial-gradient(circle at 15% 80%, rgba(47, 214, 232, 0.12), transparent 40%),
    radial-gradient(circle at 85% 20%, rgba(232, 63, 208, 0.12), transparent 40%),
    radial-gradient(ellipse at 50% 30%, #241a45 0%, #120c24 70%);
}

.panel {
  background: var(--panel-bg);
  border: var(--panel-border);
  border-radius: var(--panel-radius);
  box-shadow: var(--panel-shadow);
  padding: 2rem;
  max-width: 900px;
  width: 100%;
}

.logo {
  font-size: 2.6rem;
  letter-spacing: 0.08em;
  color: var(--yellow);
  text-shadow: 0 0 18px rgba(255, 201, 60, 0.4);
}
.logo span { color: var(--cyan); text-shadow: 0 0 18px var(--cyan-soft); }
.tagline { margin: 0.5rem 0 1.5rem; opacity: 0.85; }

.ob-row { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 0.8rem; }
.ob-row label { display: flex; flex-direction: column; gap: 0.3rem; font-weight: bold; color: var(--cyan); flex: 1; min-width: 180px; }

input[type="text"], input[type="number"] {
  background: rgba(4, 16, 26, 0.9);
  border: 1.5px solid var(--cyan-soft);
  border-radius: 8px;
  color: var(--text);
  padding: 0.6rem 0.8rem;
  font-size: 1.1rem;
  outline: none;
}
input:focus { border-color: var(--cyan); box-shadow: 0 0 10px var(--cyan-soft); }

.tier-badge {
  display: inline-block;
  background: rgba(255, 201, 60, 0.12);
  border: 1px solid var(--yellow);
  color: var(--yellow);
  border-radius: 20px;
  padding: 0.3rem 0.9rem;
  font-weight: bold;
  margin: 0.4rem 0;
}

.ob-details { margin: 0.7rem 0; border: 1px solid rgba(47, 214, 232, 0.25); border-radius: 10px; padding: 0.6rem 0.9rem; }
.ob-details summary { cursor: pointer; font-weight: bold; color: var(--cyan); }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 0.5rem; margin-top: 0.7rem; }
.check { display: flex; gap: 0.55rem; align-items: flex-start; background: rgba(4, 16, 26, 0.6); padding: 0.55rem; border-radius: 8px; cursor: pointer; }
.check input { margin-top: 0.25rem; accent-color: var(--cyan); }
.check small { display: block; opacity: 0.75; font-weight: normal; margin-top: 0.15rem; }

.btn-primary {
  background: linear-gradient(180deg, #6fe03f, #3fae2a);
  border: 2px solid #a8ff7a;
  border-radius: 12px;
  color: #06240b;
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  padding: 0.75rem 2rem;
  cursor: pointer;
  margin-top: 1rem;
  box-shadow: 0 4px 0 #2a7a1c, 0 0 22px rgba(111, 224, 63, 0.35);
  transition: transform 0.1s;
}
.btn-primary:hover:not(:disabled) { transform: translateY(-2px); }
.btn-primary:disabled { filter: grayscale(0.8); cursor: not-allowed; }

.btn-ghost {
  background: transparent;
  border: 1.5px solid var(--cyan-soft);
  color: var(--cyan);
  border-radius: 10px;
  padding: 0.5rem 1rem;
  cursor: pointer;
  font-weight: bold;
}
.btn-ghost:hover { background: rgba(47, 214, 232, 0.12); }

/* --- misiones --- */
.missions-panel { max-width: 1050px; }
.ms-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1.2rem; }
.ms-header h2 { color: var(--yellow); }
.ms-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 0.9rem; }
.mission-card {
  background: rgba(4, 20, 32, 0.85);
  border: 1.5px solid var(--cyan-soft);
  border-radius: 12px;
  color: var(--text);
  text-align: left;
  padding: 1rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  transition: transform 0.12s, border-color 0.12s;
  font-family: inherit;
  font-size: 1rem;
}
.mission-card:hover { transform: translateY(-3px); border-color: var(--yellow); box-shadow: 0 6px 18px rgba(0,0,0,0.5); }
.mc-num { color: var(--cyan); font-size: 0.8rem; font-weight: bold; letter-spacing: 0.1em; text-transform: uppercase; }
.mission-card b { color: var(--yellow); font-size: 1.05rem; }
.mc-analogia { font-style: italic; opacity: 0.8; }
.mc-foco { color: #a8e04b; }
.mc-peligro { color: #ff9a3c; }

/* --- loadout --- */
.loadout-panel { max-width: 1050px; }
.loadout-panel h2 { color: var(--yellow); margin-bottom: 0.3rem; }
.lo-foco { color: #a8e04b; margin: 0.25rem 0; }
.lo-warning {
  color: var(--yellow);
  font-weight: bold;
  background: rgba(255, 201, 60, 0.1);
  border: 1px solid rgba(255, 201, 60, 0.5);
  border-radius: 8px;
  padding: 0.4rem 0.7rem;
  margin: 0.4rem 0;
}
.lo-hint { opacity: 0.7; font-size: 0.9rem; }
.lo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0.6rem; margin: 1rem 0; max-height: 46vh; overflow-y: auto; padding-right: 4px; }
.food-card {
  position: relative;
  background: rgba(4, 20, 32, 0.85);
  border: 1.5px solid rgba(47, 214, 232, 0.3);
  border-radius: 10px;
  color: var(--text);
  padding: 0.7rem;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-family: inherit;
}
.food-card:hover { border-color: var(--cyan); }
.food-card.sel { border-color: var(--green); box-shadow: 0 0 12px rgba(83, 224, 122, 0.35); }
.fc-emoji { font-size: 1.6rem; }
.food-card b { font-size: 0.92rem; color: var(--cyan); }
.food-card small { font-size: 0.78rem; opacity: 0.75; line-height: 1.25; }
.fc-count {
  position: absolute; top: 6px; right: 8px;
  background: var(--green); color: #06240b;
  min-width: 22px; height: 22px; border-radius: 11px;
  display: grid; place-items: center; font-weight: 900; font-size: 0.85rem;
}
.fc-count:empty { display: none; }
.lo-footer { display: flex; justify-content: space-between; align-items: center; }

/* ================= HUD del juego ================= */
#game-canvas { position: fixed; inset: 0; width: 100vw; height: 100vh; display: block; }

.hud-panel {
  position: fixed;
  background: var(--panel-bg);
  border: var(--panel-border);
  border-radius: var(--panel-radius);
  box-shadow: var(--panel-shadow);
  z-index: 10;
}

.np-title {
  background: linear-gradient(90deg, rgba(47, 214, 232, 0.25), rgba(47, 214, 232, 0.08));
  border-bottom: 1px solid var(--cyan-soft);
  border-radius: 12px 12px 0 0;
  padding: 0.4rem 0.8rem;
  font-weight: 900;
  color: #eafcff;
  letter-spacing: 0.02em;
}
.np-chip { color: var(--green); }

/* --- minimapa --- */
#minimap-panel { top: 14px; left: 14px; padding: 5px; }
#minimap { display: block; border-radius: 9px; }

/* --- panel misión --- */
#mission-panel { top: 14px; right: 14px; width: 230px; padding-bottom: 0.7rem; text-align: center; }
.mp-header {
  background: linear-gradient(90deg, rgba(47, 214, 232, 0.3), rgba(47, 214, 232, 0.1));
  border-radius: 12px 12px 0 0;
  padding: 0.35rem;
  font-weight: bold;
  color: #eafcff;
}
.mp-mision { color: var(--yellow); font-weight: 900; letter-spacing: 0.1em; padding: 0.25rem; }
.mp-nombre { color: var(--yellow); font-weight: bold; padding: 0 0.6rem 0.3rem; line-height: 1.2; }
.mp-progreso-label { font-size: 0.75rem; opacity: 0.8; }
.mp-progreso { font-weight: 900; font-size: 1.05rem; }
.mp-barra-track {
  height: 13px; margin: 0.35rem 0.8rem 0;
  background: rgba(4, 16, 26, 0.9);
  border: 1px solid var(--cyan-soft);
  border-radius: 7px; overflow: hidden;
}
.mp-barra-track i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #d4a017, var(--yellow)); transition: width 0.3s; }
.mp-extra { margin-top: 0.4rem; font-weight: bold; color: #ff9a3c; }

/* --- núcleo --- */
#nucleo-panel { top: 14px; right: 262px; width: 300px; }
.np-body { display: flex; gap: 0.6rem; padding: 0.7rem; align-items: center; }
.np-bars { flex: 1; display: flex; flex-direction: column; gap: 0.45rem; }
.np-row label { font-size: 0.82rem; font-weight: bold; color: #cfeef7; display: block; margin-bottom: 2px; }
.np-row { position: relative; }
.bar-track {
  height: 16px;
  background: rgba(4, 16, 26, 0.9);
  border: 1px solid var(--cyan-soft);
  border-radius: 8px;
  overflow: hidden;
}
.bar-track i { display: block; height: 100%; width: 50%; transition: width 0.25s, background 0.4s; border-radius: 6px; }
.bar-track.segmented { position: relative; }
.bar-track.segmented::after {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0 9%, rgba(4, 16, 26, 0.95) 9% 10.5%);
  pointer-events: none;
}

.warn {
  position: absolute; right: -4px; top: 50%;
  transform: translateY(-14%);
  color: var(--yellow);
  font-size: 1.05rem;
  opacity: 0;
  pointer-events: none;
}
.warn.active { opacity: 1; animation: blink 0.6s steps(2) infinite; }
.warn.big { position: static; transform: none; font-size: 1.6rem; color: var(--red); display: block; text-align: center; }
@keyframes blink { 50% { opacity: 0.15; } }

.np-dial-col { display: flex; flex-direction: column; align-items: center; gap: 0.2rem; }
#nucleo-dial {
  width: 62px; height: 62px; border-radius: 50%;
  display: grid; place-items: center;
  background: conic-gradient(var(--green) 270deg, rgba(255,255,255,0.08) 0);
  position: relative;
}
#nucleo-dial::after { content: ''; position: absolute; inset: 7px; border-radius: 50%; background: #071823; }
#dial-icon { position: relative; z-index: 1; font-size: 1.4rem; }

#btn-insulina {
  margin: 0 0.7rem 0.7rem;
  width: calc(100% - 1.4rem);
  background: linear-gradient(180deg, #b13fd0, #7d2a94);
  border: 1.5px solid #e83fd0;
  color: white; font-weight: 900;
  border-radius: 10px; padding: 0.5rem;
  cursor: pointer; font-size: 1rem;
}
#btn-insulina:hover { box-shadow: 0 0 14px rgba(232, 63, 208, 0.5); }

.pulse { animation: pulse 0.35s ease; }
@keyframes pulse { 40% { transform: scale(1.12); } }

/* --- inventario --- */
#inv-panel { bottom: 14px; left: 14px; width: 330px; }
.inv-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 8px; }
.inv-slot {
  position: relative;
  aspect-ratio: 1;
  background: rgba(4, 16, 26, 0.8);
  border: 1.5px solid rgba(47, 214, 232, 0.3);
  border-radius: 10px;
  cursor: default;
  display: grid; place-items: center;
  color: var(--text);
  font-family: inherit;
  overflow: hidden;
}
.inv-slot.filled { cursor: pointer; border-color: var(--cyan-soft); }
.inv-slot.filled:hover { border-color: var(--yellow); box-shadow: 0 0 10px rgba(255, 201, 60, 0.35); }
.inv-emoji { font-size: 1.7rem; line-height: 1; }
.inv-count {
  position: absolute; bottom: 3px; right: 5px;
  background: rgba(4, 16, 26, 0.85);
  border: 1px solid var(--cyan-soft);
  border-radius: 9px; padding: 0 5px;
  font-size: 0.75rem; font-weight: 900;
}
.inv-label {
  position: absolute; bottom: -2px; left: 0; right: 0;
  font-size: 0.5rem; text-align: center;
  color: #9fdcec;
  background: rgba(4, 16, 26, 0.75);
  padding: 1px 2px 3px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* --- placa inferior --- */
#plate-panel {
  bottom: 14px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.45rem 1.4rem;
  border-radius: 40px;
}
.plate-icon { font-size: 1.6rem; }
.plate-text b { letter-spacing: 0.06em; }
.plate-text small { display: block; opacity: 0.7; font-size: 0.72rem; }

/* --- controles táctiles --- */
#touch-controls { position: fixed; bottom: 90px; right: 16px; display: flex; gap: 8px; z-index: 12; }
#touch-controls button {
  width: 58px; height: 58px; border-radius: 50%;
  background: rgba(10, 38, 54, 0.85);
  border: 2px solid var(--cyan-soft);
  color: var(--text); font-size: 1.3rem;
  cursor: pointer; touch-action: none;
}
#touch-controls button:active { background: rgba(47, 214, 232, 0.35); }
@media (hover: hover) and (pointer: fine) { #touch-controls { opacity: 0.35; } #touch-controls:hover { opacity: 1; } }

#keys-hint {
  position: fixed; bottom: 2px; left: 50%; transform: translateX(-50%);
  font-size: 0.7rem; opacity: 0.5; z-index: 11; white-space: nowrap;
}

/* --- controles de audio (arriba izquierda, a la derecha del minimapa) --- */
#audio-controls { position: fixed; top: 14px; left: 178px; display: flex; gap: 8px; z-index: 12; }
#audio-controls button {
  position: relative;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--panel-bg);
  border: 2px solid var(--cyan-soft);
  box-shadow: var(--panel-shadow);
  color: var(--text); font-size: 1.25rem; line-height: 1;
  cursor: pointer;
  transition: transform 0.1s, border-color 0.15s;
}
#audio-controls button:hover { border-color: var(--cyan); transform: translateY(-2px); }
#audio-controls button:active { background: rgba(47, 214, 232, 0.35); }
/* muteado: se atenúa y aparece una barra roja diagonal */
#audio-controls button.muted { opacity: 0.55; border-color: rgba(255, 75, 75, 0.6); }
#audio-controls button.muted::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 44%, var(--red) 44%, var(--red) 56%, transparent 56%);
  border-radius: 50%;
}

/* --- capas de efectos --- */
#flight-layer, #callout-layer { position: fixed; inset: 0; pointer-events: none; z-index: 20; }
.flight-dot {
  position: absolute; top: 0; left: 0;
  width: 16px; height: 16px; border-radius: 50%;
  will-change: transform;
}
.impact-flash {
  position: absolute;
  width: 20px; height: 20px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255,255,255,0.95), rgba(47,214,232,0.5) 55%, transparent 70%);
  animation: flash 0.45s ease-out forwards;
}
@keyframes flash { to { transform: translate(-50%, -50%) scale(4); opacity: 0; } }

.callout {
  position: absolute;
  display: flex; align-items: center; gap: 0.5rem;
  background: var(--panel-bg);
  border: 1.5px solid var(--cyan-soft);
  border-radius: 10px;
  padding: 0.45rem 0.8rem;
  font-weight: bold;
  color: var(--text);
  box-shadow: var(--panel-shadow);
  transition: opacity 0.4s, transform 0.4s;
}
.callout::after {
  content: '';
  position: absolute; bottom: -12px; left: 24px;
  border: 6px solid transparent;
  border-top-color: var(--cyan-soft);
}
.callout.out { opacity: 0; transform: translateY(-14px); }
.co-emoji { font-size: 1.35rem; }

/* ================= NUT ================= */
#nut {
  position: fixed;
  right: 24px; top: 40%;
  z-index: 30;
  cursor: grab;
  touch-action: none;
}
#nut.dragging { cursor: grabbing; }
#nut-body { animation: float 3.2s ease-in-out infinite; filter: drop-shadow(0 0 10px rgba(47, 214, 232, 0.45)); }
#nut.dragging #nut-body { animation-play-state: paused; }
@keyframes float { 50% { transform: translateY(-12px); } }

#nut-bubble {
  position: absolute;
  right: 78px; top: -10px;
  width: 240px;
  background: var(--panel-bg);
  border: 1.5px solid var(--cyan);
  border-radius: 12px 12px 2px 12px;
  padding: 0.6rem 0.8rem;
  font-size: 0.88rem;
  line-height: 1.35;
  box-shadow: var(--panel-shadow);
}
#nut-bubble.pop { animation: bubblein 0.25s ease; }
@keyframes bubblein { from { transform: scale(0.7); opacity: 0; } }

#nut-panel {
  position: absolute;
  right: 78px; top: 40px;
  width: 320px;
  max-width: calc(100vw - 110px);
  display: flex;
  flex-direction: column;
  background: var(--panel-bg);
  border: var(--panel-border);
  border-radius: 12px;
  padding: 0.7rem;
  box-shadow: var(--panel-shadow);
}
.nut-panel-title { font-weight: 900; color: var(--cyan); margin-bottom: 0.4rem; }

/* Historial de conversación (pregunta + respuesta), scrolleable */
#nut-log {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: min(260px, 42vh);
  overflow-y: auto;
  touch-action: pan-y;
  margin-bottom: 0.5rem;
  padding-right: 2px;
}
#nut-log:empty { display: none; }
.nut-msg {
  max-width: 85%;
  padding: 0.4rem 0.6rem;
  border-radius: 10px;
  font-size: 0.85rem;
  line-height: 1.35;
  white-space: pre-wrap;
  word-break: break-word;
}
.nut-msg-user {
  align-self: flex-end;
  background: var(--cyan);
  color: #06202c;
  font-weight: 600;
  border-bottom-right-radius: 3px;
}
.nut-msg-bot {
  align-self: flex-start;
  background: rgba(47, 214, 232, 0.12);
  border: 1px solid var(--cyan-soft);
  border-bottom-left-radius: 3px;
}
.nut-msg.pending { opacity: 0.6; font-style: italic; }
#nut-form { display: flex; gap: 5px; }
#nut-input { flex: 1; font-size: 0.9rem; padding: 0.4rem 0.6rem; }
#nut-form button {
  background: var(--cyan); border: none; border-radius: 8px;
  width: 36px; cursor: pointer; font-size: 0.95rem; color: #06202c; font-weight: 900;
}
#nut-close {
  position: absolute; top: 6px; right: 8px;
  background: var(--red); color: white; border: none;
  width: 20px; height: 20px; border-radius: 5px;
  cursor: pointer; font-size: 0.7rem; line-height: 1;
}
#btn-nut-voice.listening {
  background: var(--red) !important;
  color: white !important;
  animation: pulse-red 1s infinite alternate;
}
@keyframes pulse-red {
  from { box-shadow: 0 0 2px var(--red); }
  to { box-shadow: 0 0 8px var(--red); }
}
#nut-quota-display {
  font-size: 0.72rem;
  color: var(--cyan);
  margin-top: 0.35rem;
  text-align: right;
  opacity: 0.8;
}

/* ================= Modales ================= */
.modal {
  position: fixed; inset: 0;
  background: rgba(4, 10, 18, 0.72);
  display: grid; place-items: center;
  z-index: 40;
}
.modal-card {
  background: var(--panel-bg);
  border: var(--panel-border);
  border-radius: var(--panel-radius);
  box-shadow: var(--panel-shadow);
  padding: 1.6rem 2rem;
  text-align: center;
  max-width: 460px;
  width: calc(100vw - 30px);
}
.modal-card h3 { color: var(--cyan); margin-bottom: 0.4rem; }
.modal-card.shake { animation: shake 0.3s; }
@keyframes shake { 25% { transform: translateX(-8px); } 75% { transform: translateX(8px); } }

#hack-seq { display: flex; gap: 8px; justify-content: center; margin: 1rem 0 0.6rem; }
.hack-key {
  font-size: 1.7rem;
  padding: 0.35rem;
  border-radius: 10px;
  border: 2px solid rgba(47, 214, 232, 0.3);
  opacity: 0.55;
}
.hack-key.current { border-color: var(--yellow); opacity: 1; box-shadow: 0 0 12px rgba(255, 201, 60, 0.5); }
.hack-key.done { border-color: var(--green); opacity: 1; background: rgba(83, 224, 122, 0.15); }
.hack-track { margin: 0.6rem 0 1rem; }
.hack-track i { background: linear-gradient(90deg, #1a7fd4, var(--cyan)); width: 100%; }
.hack-pad { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.hack-pad button {
  font-size: 1.4rem; width: 54px; height: 46px;
  background: rgba(4, 20, 32, 0.9);
  border: 1.5px solid var(--cyan-soft);
  border-radius: 10px; cursor: pointer; margin: 0 3px;
}

/* --- resumen --- */
.summary-card h2.ok { color: var(--yellow); text-shadow: 0 0 16px rgba(255, 201, 60, 0.45); }
.summary-card h2.fail { color: var(--red); }
.sum-mision { color: var(--cyan); font-weight: bold; margin: 0.2rem 0 0.5rem; }
#sum-stats { margin: 1rem 0; display: flex; flex-direction: column; gap: 0.45rem; }
.sum-row { display: grid; grid-template-columns: 105px 1fr 36px; align-items: center; gap: 0.6rem; text-align: left; font-size: 0.9rem; }
.sum-bar { height: 13px; background: rgba(4, 16, 26, 0.9); border: 1px solid var(--cyan-soft); border-radius: 7px; overflow: hidden; }
.sum-bar i { display: block; height: 100%; }
.sum-sub { opacity: 0.75; font-size: 0.85rem; }
#sum-consumidos { margin: 0.4rem 0 0.8rem; display: flex; gap: 0.5rem; flex-wrap: wrap; justify-content: center; font-size: 1.15rem; }
.sum-nut-box {
  display: flex; gap: 0.7rem; align-items: flex-start;
  background: rgba(47, 214, 232, 0.1);
  border: 1px solid var(--cyan-soft);
  border-radius: 10px;
  padding: 0.7rem;
  text-align: left;
  font-size: 0.92rem;
}
.sum-nut-icon { font-size: 1.5rem; }
.sum-btns { display: flex; gap: 0.8rem; justify-content: center; margin-top: 1.2rem; }

/* ================= Tier Micro (1-5): UI gigante y mínima ================= */
body[data-tier="micro"] #mission-panel .mp-progreso-label,
body[data-tier="micro"] #keys-hint { display: none; }
body[data-tier="micro"] .inv-emoji { font-size: 2.2rem; }

/* ================= Responsive ================= */
@media (max-width: 900px) {
  #nucleo-panel { right: auto; left: 180px; top: 14px; width: 270px; }
  #mission-panel { width: 195px; }
  #inv-panel { width: 270px; }
}
@media (max-width: 640px) {
  #minimap-panel { display: none; }
  #nucleo-panel { left: 14px; top: 70px; }
  #audio-controls { left: 14px; }
  .np-row label { font-size: 0.72rem; }
  #keys-hint { display: none; }
}
