@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=Inter:wght@400;700&display=swap');

:root {
  --mc-bg: #1e1e1e;
  --mc-stone: #7d7d7d;
  --mc-dirt: #866043;
  --mc-grass: #52AD2D;
  --mc-gold: #F2D349;
  --mc-border: #000;
  --mc-text: #ffffff;
  --mc-muted: #aaaaaa;
  
  --mc-button-bg: #7c7c7c;
  --mc-button-shadow: #373737;
  --mc-button-highlight: #ffffff44;
}

body.minecraft-theme {
  background-color: var(--mc-bg);
  color: var(--mc-text);
  font-family: 'Inter', sans-serif;
  margin: 0;
  overflow-x: hidden;
}

.minecraft-theme h1, 
.minecraft-theme h2, 
.minecraft-theme h3,
.minecraft-theme .brand-mark,
.minecraft-theme .eyebrow {
  font-family: 'Press Start 2P', cursive;
  text-transform: uppercase;
  line-height: 1.5;
}

/* Background Village Container */
.village-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.15;
  background-image: url('minecraft_village_pixel_art_1777617786293.png');
  background-size: cover;
  background-position: center;
  image-rendering: pixelated;
}

/* Header Styling */
.minecraft-theme .site-header {
  background: rgba(45, 45, 45, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 4px solid var(--mc-border);
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

.minecraft-theme .brand-mark {
  background: var(--mc-grass) !important;
  color: #fff !important;
  border: 2px solid var(--mc-border);
  border-radius: 0;
  box-shadow: 0 4px 0 var(--mc-border);
  width: auto;
  height: auto;
  min-width: 42px;
  padding: 6px 10px;
}

.minecraft-theme .site-nav a {
  color: var(--mc-text);
  text-decoration: none;
  font-weight: bold;
  padding: 0.5rem 1rem;
  transition: color 0.2s;
}

.minecraft-theme .site-nav a:hover {
  color: var(--mc-gold);
}

/* Minecraft Button Style */
.minecraft-theme .button-link {
  display: inline-block;
  padding: 10px 20px;
  background: var(--mc-button-bg);
  border: 4px solid var(--mc-border);
  box-shadow: inset -4px -4px 0 var(--mc-button-shadow), inset 4px 4px 0 var(--mc-button-highlight);
  color: #fff;
  text-decoration: none;
  font-family: 'Press Start 2P', cursive;
  font-size: 0.7rem;
  transition: all 0.1s;
  cursor: pointer;
  border-radius: 0;
}

.minecraft-theme .button-link:hover {
  background: #8c8c8c;
  color: var(--mc-gold);
}

.minecraft-theme .button-link.primary {
  background: var(--mc-grass);
  box-shadow: inset -4px -4px 0 #3b7a20, inset 4px 4px 0 #ffffff44;
}

.minecraft-theme .button-link.primary:hover {
  background: #5ebc34;
}

/* Hero Section */
.minecraft-theme .hero-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 6rem 2rem;
  gap: 4rem;
  max-width: 1400px;
  margin: 0 auto;
}

.minecraft-theme .hero-copy h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  text-shadow: 4px 4px 0 #000;
  color: var(--mc-gold);
}

.minecraft-theme .hero-lead {
  font-size: 1.2rem;
  line-height: 1.6;
  color: #ffffff;
  text-shadow: 2px 2px 0 rgba(0,0,0,0.8);
  max-width: 700px;
}

.minecraft-theme .hero-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

/* Hero Metrics - Stone Block Style */
.minecraft-theme .hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-top: 3rem;
  border-top: none;
  padding-top: 0;
}

.minecraft-theme .hero-metrics div {
  background: #3c3c3c; 
  border: 4px solid #000;
  padding: 15px;
  border-radius: 0;
  box-shadow: 6px 6px 0 rgba(0,0,0,0.4);
  transition: all 0.2s;
}

.minecraft-theme .hero-metrics div:hover {
  transform: translateY(-5px);
  border-color: #F2D349;
  background: #4a4a4a;
}

.minecraft-theme .hero-metrics dt {
  font-family: 'Press Start 2P', cursive;
  font-size: 0.6rem;
  color: #F2D349 !important; /* Gold for headers */
  margin-bottom: 10px;
  text-transform: uppercase;
}

.minecraft-theme .hero-metrics dd {
  color: #ffffff !important;
  font-size: 0.8rem;
  margin: 0;
  font-weight: 700;
  line-height: 1.4;
}

/* Product Preview - Dialogue Window Style */
.minecraft-theme .product-preview {
  position: relative;
  background: #313131; 
  background-image: 
    linear-gradient(45deg, #2a2a2a 25%, transparent 25%, transparent 75%, #2a2a2a 75%, #2a2a2a),
    linear-gradient(45deg, #2a2a2a 25%, transparent 25%, transparent 75%, #2a2a2a 75%, #2a2a2a);
  background-size: 60px 60px;
  background-position: 0 0, 30px 30px;
  border: 4px solid #000;
  padding: 4px;
  box-shadow: 15px 15px 0 rgba(0,0,0,0.5);
  max-width: 480px;
  width: 100%;
  margin: 0 auto;
  aspect-ratio: 1/1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.minecraft-theme .product-preview::before {
  content: '';
  position: absolute;
  top: 2px; left: 2px; right: 2px; bottom: 2px;
  border: 4px solid #5a5a5a; /* Inner highlight */
  pointer-events: none;
}

.flow-item-row .remove-mini-btn {
  position: absolute;
  top: -10px;
  right: -10px;
  background: #ff4444 !important;
  border: 2px solid #000 !important;
  color: #fff !important;
  width: 24px !important;
  height: 24px !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  z-index: 20;
  box-shadow: 2px 2px 0 rgba(0,0,0,0.3);
  padding: 0 !important;
}

.flow-item-row .remove-mini-btn:hover {
  background: #ff5f5f !important;
  transform: scale(1.1);
}

/* --- APPLY CHANGES BUTTON --- */
.inspector-footer {
  padding: 15px;
  border-top: 4px solid #373737;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #404040;
}

.apply-btn {
  width: 100%;
  padding: 12px !important;
  font-size: 14px !important;
  cursor: pointer;
  background: #8B8B8B !important;
  border: 4px solid #000 !important;
  box-shadow: inset -4px -4px #555, inset 4px 4px #AAA !important;
  color: #DDD !important;
  text-shadow: 2px 2px #000;
  transition: all 0.2s;
}

.apply-btn:disabled {
  filter: grayscale(1);
  opacity: 0.6;
  cursor: not-allowed;
}

.apply-btn.pending {
  background: #38E038 !important; /* Esmeralda */
  box-shadow: inset -4px -4px #1A7A1A, inset 4px 4px #8BFF8B !important;
  color: #FFF !important;
  animation: emerald-pulse 2s infinite;
}

.apply-btn.pending:hover {
  background: #4CFF4C !important;
  transform: translateY(-2px);
}

/* --- FLOW ITEM REORDERING --- */
.flow-item-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 8px;
  background: rgba(0, 0, 0, 0.2);
  padding: 8px;
  border: 2px solid #373737;
  position: relative;
}

.flow-item-controls {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 24px;
}

.order-btn {
  width: 24px;
  height: 24px;
  padding: 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #C6C6C6 !important;
  border: 2px solid #000 !important;
  box-shadow: inset -2px -2px #555, inset 2px 2px #FFF !important;
  color: #333 !important;
  font-size: 10px !important;
  cursor: pointer;
  line-height: 1;
}

.order-btn:hover {
  background: #D6D6D6 !important;
}

.order-btn:active {
  box-shadow: inset 2px 2px #555, inset -2px -2px #FFF !important;
}

.flow-item-main {
  flex: 1;
}

.minecraft-theme .npc-float-image {
  width: 85%;
  height: 85%;
  object-fit: cover;
  border: 8px solid #000;
  outline: 4px solid #5a5a5a;
  image-rendering: pixelated;
  animation: float 4s ease-in-out infinite;
}

/* Custom Speech Bubble */
.minecraft-theme .npc-bubble {
  position: absolute;
  bottom: -30px;
  right: -40px;
  width: 280px;
  background: #000000cc;
  border: 3px solid #F2D349;
  padding: 15px;
  color: #fff;
  font-family: 'Press Start 2P', cursive;
  font-size: 10px;
  line-height: 1.6;
  z-index: 10;
  box-shadow: 6px 6px 0 rgba(0,0,0,0.5);
}

.minecraft-theme .npc-bubble::after {
  content: '';
  position: absolute;
  top: -10px;
  left: 20px;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 10px solid #F2D349;
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0px); }
}

/* Feature Band */
.minecraft-theme .feature-band {
  background: #2d2d2d;
  border-top: 8px solid var(--mc-border);
  border-bottom: 8px solid var(--mc-border);
}

.minecraft-theme .feature-grid article {
  background: #3c3c3c;
  border: 4px solid #000;
  transition: transform 0.3s;
  color: #fff;
}

.minecraft-theme .feature-grid article h3 {
  color: #F2D349;
  margin-top: 1.5rem;
}

.minecraft-theme .feature-grid article p {
  color: #ddd;
}

.minecraft-theme .feature-grid article:hover {
  transform: scale(1.05);
  border-color: var(--mc-gold);
}

.minecraft-theme .feature-grid article span {
  background: var(--mc-dirt) !important;
  color: #fff !important;
  border-radius: 0;
  border: 2px solid var(--mc-border);
}

/* Workflow Band */
.minecraft-theme .workflow-band {
  background: transparent;
  color: #fff;
}

.minecraft-theme .workflow-step {
  background: rgba(45, 45, 45, 0.9);
  border: 4px solid #000;
  padding: 25px;
}

.minecraft-theme .workflow-step h3 {
  color: #F2D349;
}

.minecraft-theme .workflow-step p {
  color: #eee;
}

.minecraft-theme .workflow-step span {
  background: var(--mc-stone) !important;
  border-radius: 0;
  border: 2px solid var(--mc-border);
}

/* Pricing Band */
.minecraft-theme .pricing-band {
  background: #111;
  border-top: 8px solid var(--mc-border);
  position: relative;
  overflow: hidden;
}

.minecraft-theme .pricing-band::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: radial-gradient(circle, rgba(82,173,45,0.1) 0%, transparent 70%);
  pointer-events: none;
}

@media (max-width: 920px) {
  .minecraft-theme .hero-section {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .minecraft-theme .hero-actions {
    justify-content: center;
  }
}

.minecraft-theme .eyebrow {
  display: inline-block;
  background: #866043; /* mc-dirt */
  color: #fff;
  padding: 8px 12px;
  font-size: 0.7rem;
  margin-bottom: 1.5rem;
  border: 3px solid #000;
  box-shadow: 4px 4px 0 rgba(0,0,0,0.3);
}

/* Ramified Flow UI */
.inspector-wrapper {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.inspector-scroll-area {
  flex: 1;
  overflow-y: auto;
  padding-right: 5px;
}

.flow-section {
  background: rgba(0, 0, 0, 0.2);
  border: 2px solid #555;
  margin-top: 15px;
  padding: 10px;
}

.flow-section.success { border-color: #3b7a20; }
.flow-section.failure { border-color: #7a2020; }

.flow-header {
  font-family: 'Press Start 2P', cursive;
  font-size: 9px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.flow-item-row {
  background: #333;
  border: 1px solid #444;
  padding: 5px;
  margin-bottom: 5px;
  display: flex;
  gap: 5px;
  align-items: center;
}

.flow-item-main {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
}

.flow-item-main select, 
.flow-item-main input {
  font-size: 11px;
  padding: 2px 4px;
  background: #111;
  color: #fff;
  border: 1px solid #555;
}

.empty-msg {
  font-size: 10px;
  color: #888;
  font-style: italic;
  margin: 5px 0;
}

/* Graph Edges */
.flow-edge.failure-branch {
  stroke: #ef4444 !important;
  stroke-dasharray: 4;
}

.flow-edge.node {
  stroke: #52AD2D; /* Success path default */
}

/* ==========================================================================
   MINECRAFT EDITOR THEME
   ========================================================================== */

.minecraft-theme .app-shell {
  background: var(--mc-bg);
  border: none;
}

/* Sidebar & Brand */
.minecraft-theme .sidebar {
  background: #313131 !important;
  border-right: 4px solid #000 !important;
  box-shadow: inset -4px 0 0 #4a4a4a;
}

.minecraft-theme .brand-mark {
  font-size: 1rem;
}

/* Workspace Header - Dirt style */
.minecraft-theme .workspace-header {
  background: #4e3826 !important; /* Dark dirt */
  border-bottom: 4px solid #000 !important;
  box-shadow: inset 0 -4px 0 #3a2a1c, 0 4px 10px rgba(0,0,0,0.5);
  padding: 15px 25px !important;
}

.minecraft-theme .workspace-header h2 {
  color: var(--mc-gold);
  text-shadow: 2px 2px 0 #000;
  font-size: 1.1rem;
}

/* Editor Panels - Stone style */
.minecraft-theme .nodes-panel,
.minecraft-theme .details-panel,
.minecraft-theme .result-panel {
  background: #7c7c7c !important; /* Stone gray */
  background-image: 
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 20px 20px;
  border: 4px solid #000 !important;
  box-shadow: inset 4px 4px 0 #9d9d9d, inset -4px -4px 0 #5a5a5a;
  color: #fff;
  padding: 20px !important; /* Añadido padding general */
}

.minecraft-theme .inspector-wrapper {
  background: transparent !important;
  padding: 10px 5px !important;
  gap: 20px !important;
}

/* Spacing for labels and inputs */
.minecraft-theme label {
  margin-bottom: 8px;
  margin-top: 10px;
}

.minecraft-theme input, 
.minecraft-theme textarea, 
.minecraft-theme select {
  margin-bottom: 15px;
  padding: 10px !important;
}

.minecraft-theme .inspector-actions {
  gap: 12px !important;
  margin-bottom: 20px !important;
}

/* Resizers */
.minecraft-theme .resizer {
  background: #000 !important;
  width: 8px !important;
  opacity: 0.8;
}

.minecraft-theme .resizer:hover,
.minecraft-theme .resizer.dragging {
  background: var(--mc-gold) !important;
}

/* Buttons in Editor */
.minecraft-theme .header-actions button,
.minecraft-theme .toolbar button,
.minecraft-theme .section-heading button,
.minecraft-theme .server-actions button {
  background: #7c7c7c;
  border: 2px solid #000;
  box-shadow: inset -2px -2px 0 #373737, inset 2px 2px 0 #ffffff44;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 0.7rem;
  padding: 6px 14px;
  min-height: 34px;
  border-radius: 0;
  cursor: pointer;
  transition: transform 0.1s, background 0.1s, box-shadow 0.1s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-shadow: 1px 1px 0 rgba(0,0,0,0.5);
  line-height: 1;
}

.minecraft-theme .header-actions button:hover:not(:disabled),
.minecraft-theme .toolbar button:hover:not(:disabled),
.minecraft-theme .section-heading button:hover:not(:disabled),
.minecraft-theme .server-actions button:hover:not(:disabled) {
  background: #8c8c8c;
  color: #fff;
  box-shadow: inset -2px -2px 0 #4a4a4a, inset 2px 2px 0 #ffffff66;
}

.minecraft-theme .header-actions button:active:not(:disabled),
.minecraft-theme .toolbar button:active:not(:disabled),
.minecraft-theme .section-heading button:active:not(:disabled),
.minecraft-theme .server-actions button:active:not(:disabled) {
  transform: translateY(1px);
  box-shadow: inset 2px 2px 0 #000, inset -1px -1px 0 #ffffff22;
}

.minecraft-theme .header-actions button.primary,
.minecraft-theme .toolbar button.primary,
.minecraft-theme .section-heading button.primary,
.minecraft-theme .server-actions button.primary {
  background: var(--mc-grass);
  box-shadow: inset -2px -2px 0 #3b7a20, inset 2px 2px 0 #ffffff44;
}

.minecraft-theme .header-actions button.primary:hover:not(:disabled),
.minecraft-theme .toolbar button.primary:hover:not(:disabled),
.minecraft-theme .section-heading button.primary:hover:not(:disabled),
.minecraft-theme .server-actions button.primary:hover:not(:disabled) {
  background: #5ebc34;
  box-shadow: inset -2px -2px 0 #469226, inset 2px 2px 0 #ffffff66;
}

/* Inputs & Selects - Dark MC theme */
.minecraft-theme input,
.minecraft-theme select,
.minecraft-theme textarea,
.minecraft-theme .flow-item-row {
  background: #1e1e1e !important;
  border: 2px solid #000 !important;
  box-shadow: inset 2px 2px 0 #000;
  color: #fff !important;
  border-radius: 0 !important;
}

.minecraft-theme .flow-item-row {
  background: #3c3c3c !important;
  border-left: 6px solid var(--mc-stone) !important;
}

.minecraft-theme .flow-section.success { border-left-color: var(--mc-grass) !important; }
.minecraft-theme .flow-section.failure { border-left-color: #7a2020 !important; }

/* Tree Items */
.minecraft-theme .tree-item {
  background: #1e1e1e !important; /* Dark background for visibility */
  border: 2px solid #000 !important;
  margin-bottom: 4px;
  box-shadow: inset 2px 2px 0 #333;
}

.minecraft-theme .tree-item.active {
  background: #4a4a4a !important;
  border: 2px solid var(--mc-gold) !important;
  box-shadow: none;
}

.minecraft-theme .tree-item strong {
  color: #fff !important; /* Ensure white text */
}

.minecraft-theme .panel-note {
  color: #bbb !important; /* Lighter color for notes on stone background */
}

.minecraft-theme .tree-item span {
  border-radius: 0 !important;
  border: 1px solid #000;
  color: #000 !important; /* Ensure labels like 'Nodo' are readable */
}

/* Inspector Labels & Headings */
.minecraft-theme label {
  color: var(--mc-gold) !important; /* Gold for labels to make them pop */
  text-shadow: 1px 1px 0 #000;
  font-size: 0.8rem;
  text-transform: uppercase;
}

.minecraft-theme .inspector-heading span {
  color: #bbb !important; /* Lighter color for 'DIALOGO', 'NODO', etc */
}

.minecraft-theme .inspector-heading h3 {
  color: #fff !important;
  font-family: 'Press Start 2P', cursive;
  font-size: 1.1rem;
  text-transform: uppercase;
}

/* Visual Toggle Card (Resource Pack) */
.minecraft-theme .visual-toggle-card {
  background: #3c3c3c !important;
  border: 2px solid #000 !important;
  color: #fff !important;
  border-radius: 0 !important;
  box-shadow: inset 2px 2px 0 #000;
}

.minecraft-theme .visual-toggle-card strong {
  color: var(--mc-gold) !important;
}

.minecraft-theme .visual-toggle-card span {
  color: #aaa !important;
}


/* --- MINECRAFT COLOR PREVIEW --- */
.mc-preview {
  background: #111;
  border: 2px solid #373737;
  padding: 8px;
  margin-top: 5px;
  min-height: 1.2em;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.4;
  white-space: pre-wrap;
  word-wrap: break-word;
  text-transform: none !important;
}

.minecraft-theme .mc-preview {
  color: #FFF;
  font-weight: 400;
  text-shadow: 1px 1px 0 rgba(0,0,0,0.8);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: 0.2px;
}


/* --- MINECRAFT CONVERSATION SIMULATOR (REDESIGN) --- */
.simulation-dialog {
  width: min(1000px, 98vw);
  height: 90vh;
  padding: 0;
  border: 4px solid #000;
  background: #1e1e1e;
  color: #fff;
  border-radius: 0;
  box-shadow: 0 0 50px rgba(0,0,0,0.8);
  overflow: hidden;
}

.simulation-shell {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.simulation-header {
  background: #252525;
  padding: 15px 25px;
  border-bottom: 3px solid #000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.simulation-header .header-info {
  display: flex;
  flex-direction: column;
}

.simulation-header .badge {
  background: #ff5555;
  color: #fff;
  padding: 2px 6px;
  font-family: 'Press Start 2P', cursive;
  font-size: 8px;
  margin-bottom: 5px;
  display: inline-block;
  width: fit-content;
}

.simulation-header h3 {
  margin: 0;
  color: var(--mc-gold);
  font-size: 1.1rem;
  text-shadow: 2px 2px 0 #000;
}

.close-sim-btn {
  background: #cc3333 !important;
  border: 2px solid #000 !important;
  box-shadow: inset -2px -2px 0 #000, inset 2px 2px 0 #ffffff44 !important;
  color: #fff !important;
  font-family: 'Press Start 2P', cursive !important;
  font-size: 10px !important;
  padding: 8px 15px !important;
  cursor: pointer;
}

.simulation-body {
  flex: 1;
  display: flex;
  overflow: hidden;
  background: #111;
}

.simulation-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  border-right: 2px solid #333;
}

.simulation-config {
  width: 320px;
  background: #1a1a1a;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex-shrink: 0;
}

.config-section h4 {
  font-family: 'Press Start 2P', cursive;
  font-size: 9px;
  color: #55FF55;
  margin: 0 0 12px 0;
  border-bottom: 1px solid #333;
  padding-bottom: 8px;
}

.config-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.simulation-config label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 11px;
  color: #aaa;
}

.simulation-config input,
.simulation-config textarea {
  background: #000 !important;
  border: 1px solid #444 !important;
  border-radius: 0 !important;
  padding: 8px 10px !important;
  color: #fff !important;
  font-size: 13px !important;
  width: 100%;
  box-sizing: border-box;
}

.simulation-config input:focus,
.simulation-config textarea:focus {
  border-color: var(--mc-gold) !important;
  outline: none;
}

.minecraft-chat {
  flex: 1;
  background: #000;
  padding: 25px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}


.mc-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid #222;
  margin-bottom: 15px;
  font-family: 'Press Start 2P', cursive;
  font-size: 9px;
  color: #666;
  flex-shrink: 0;
}

.mc-toolbar button {
  background: #333 !important;
  border: 1px solid #444 !important;
  color: #fff !important;
  font-size: 8px !important;
  padding: 4px 10px !important;
}

.mc-lines {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mc-line {
  line-height: 1.6;
  font-size: 14px;
  font-weight: 400;
  word-break: break-word;
  text-shadow: 1px 1px 0 rgba(0,0,0,0.7);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: 0.1px;
}

.mc-line.npc span { color: var(--mc-gold); font-weight: bold; margin-right: 8px; }
.mc-line.player span { color: #55FF55; font-weight: bold; margin-right: 8px; }
.mc-line.system { color: #aaa; font-style: italic; }

.mc-placeholder {
  background: rgba(242, 211, 73, 0.2);
  color: var(--mc-gold);
  padding: 0 4px;
  border-radius: 2px;
}

.mc-options {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 15px;
}

.mc-option {
  background: #111 !important; /* Fondo mucho más oscuro para contraste */
  border: 2px solid #000 !important;
  box-shadow: inset -2px -2px 0 #222, inset 2px 2px 0 #ffffff11 !important;
  color: #fff !important;
  padding: 8px 12px !important;
  text-align: left;
  cursor: pointer;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  transition: all 0.1s;
  font-family: 'Press Start 2P', cursive;
  font-size: 8px !important;
  text-shadow: 1px 1px 0 rgba(0,0,0,0.8);
  line-height: 1.6;
  min-height: 42px;
}

.mc-option:hover:not(.locked) {
  background: #222 !important;
  border-color: var(--mc-gold) !important;
}

.mc-option.locked {
  opacity: 0.3;
  cursor: not-allowed;
  filter: grayscale(1);
}

.mc-option > span:first-child {
  background: var(--mc-gold);
  color: #000;
  min-width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  flex-shrink: 0;
  box-shadow: 1px 1px 0 rgba(0,0,0,0.5);
}

/* El contenedor del texto principal */
.mc-option > span:not(:first-child), 
.mc-option > div {
  flex: 1;
  display: inline-block;
  white-space: normal;
  word-break: break-word;
  background: transparent !important; /* Asegurar que no haya fondo */
}

/* Quitar fondo de placeholders en opciones para evitar ruido */
.mc-option .mc-placeholder {
  background: transparent !important;
  border-bottom: 1px dashed var(--mc-gold);
  padding: 0;
}

/* Evitar cuadros vacíos por spans de color iniciales */
.mc-option span:empty {
  display: none !important;
}

.mc-ended {
  text-align: center;
  font-family: 'Press Start 2P', cursive;
  color: #ff5555;
  margin: 10px 0;
  font-size: 12px;
}

.mc-command-title {
  color: #55FFFF;
  font-family: monospace;
  font-size: 12px;
  background: rgba(0, 255, 255, 0.1);
  padding: 4px 8px;
  border-left: 3px solid #55FFFF;
}
