/* Fierro Caliente v2 — base global. Los paneles inyectan su propio CSS con prefijo fc-. */
:root {
  --fc-bg: #0d0b09;
  --fc-panel: rgba(18, 14, 10, 0.86);
  --fc-panel-solid: #16120d;
  --fc-border: #4a3c26;
  --fc-text: #efe4c8;
  --fc-dim: #a4977a;
  --fc-accent: #f2a93b;
  --fc-accent-2: #e8552e;
  --fc-danger: #e34c4c;
  --fc-good: #86cc5c;
  --fc-font-display: 'Bebas Neue', 'Impact', 'Arial Narrow', sans-serif;
  --fc-font-cond: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --fc-font: 'Barlow', 'Segoe UI', sans-serif;
}
html, body { margin: 0; padding: 0; width: 100%; height: 100%; background: var(--fc-bg); overflow: hidden; }
body { font-family: var(--fc-font); color: var(--fc-text); }
#game { position: fixed; inset: 0; width: 100%; height: 100%; display: block; outline: none; }
#ui { position: fixed; inset: 0; pointer-events: none; }
#ui > * { pointer-events: auto; }
#ui .fc-passthrough { pointer-events: none; }

#loader { position: fixed; inset: 0; background: #0d0b09; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 18px; z-index: 50; transition: opacity 0.5s; }
#loader.hide { opacity: 0; pointer-events: none; }
#loader .logo { font-family: var(--fc-font-display); font-size: 64px; letter-spacing: 6px; color: var(--fc-accent);
  text-shadow: 0 0 24px rgba(242,169,59,0.35); }
#loader .bar { width: 240px; height: 4px; background: #2a2119; border-radius: 2px; overflow: hidden; }
#loader .bar i { display: block; height: 100%; width: 40%; background: var(--fc-accent);
  animation: fc-load 1.1s infinite ease-in-out; }
@keyframes fc-load { 0% { transform: translateX(-100%); } 100% { transform: translateX(260%); } }

/* Componentes base compartidos */
.fc-btn { font-family: var(--fc-font-cond); font-weight: 700; font-size: 18px; letter-spacing: 1px;
  text-transform: uppercase; color: var(--fc-text); background: linear-gradient(180deg, #2a2117, #1a140e);
  border: 1px solid var(--fc-border); border-radius: 4px; padding: 10px 18px; cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.05s; }
.fc-btn:hover { border-color: var(--fc-accent); background: linear-gradient(180deg, #3a2d1d, #221a11); }
.fc-btn:active { transform: translateY(1px); }
.fc-btn:disabled { opacity: 0.4; cursor: default; }
.fc-btn.primary { background: linear-gradient(180deg, var(--fc-accent), #c77f1c); color: #1a120a; border-color: #f7c46f; }
.fc-btn.primary:hover { background: linear-gradient(180deg, #ffc066, #d78e25); }
.fc-btn kbd { font-family: inherit; opacity: 0.6; margin-right: 6px; }

.fc-panel { position: absolute; background: var(--fc-panel); border: 1px solid var(--fc-border);
  border-radius: 6px; backdrop-filter: blur(6px); box-shadow: 0 12px 40px rgba(0,0,0,0.5); color: var(--fc-text); }
.fc-panel h1, .fc-panel h2 { font-family: var(--fc-font-display); letter-spacing: 3px; margin: 0; color: var(--fc-accent); font-weight: 400; }
.fc-panel h1 { font-size: 40px; }
.fc-panel h2 { font-size: 26px; }
.fc-dim { color: var(--fc-dim); }
.fc-accent { color: var(--fc-accent); }
.fc-danger { color: var(--fc-danger); }
.fc-good { color: var(--fc-good); }
.fc-money { font-family: var(--fc-font-cond); font-weight: 700; color: var(--fc-accent); }

.fc-toast { position: absolute; left: 50%; top: 24px; transform: translateX(-50%) translateY(-160%);
  background: var(--fc-danger); color: #fff; padding: 10px 20px; border-radius: 4px; font-family: var(--fc-font-cond);
  font-weight: 700; font-size: 18px; letter-spacing: 0.5px; transition: transform 0.25s ease; z-index: 40;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4); }
.fc-toast.show { transform: translateX(-50%) translateY(0); }
.fc-toast.ok { background: #2f6b2a; }

.fc-hud-top { position: absolute; left: 24px; top: 20px; display: flex; gap: 28px; align-items: flex-start; }
.fc-hud-title { font-family: var(--fc-font-display); font-size: 44px; letter-spacing: 3px; line-height: 1;
  text-shadow: 0 2px 12px rgba(0,0,0,0.7); }
.fc-hud-sub { font-family: var(--fc-font-cond); font-size: 16px; color: var(--fc-dim); letter-spacing: 1px; text-transform: uppercase; }
.fc-hud-cash { position: absolute; right: 24px; top: 20px; font-family: var(--fc-font-display); font-size: 40px;
  color: var(--fc-accent); letter-spacing: 2px; text-shadow: 0 2px 12px rgba(0,0,0,0.7); }
.fc-bar { width: 200px; height: 8px; background: rgba(0,0,0,0.6); border: 1px solid rgba(255,255,255,0.12); border-radius: 4px; overflow: hidden; }
.fc-bar i { display: block; height: 100%; background: var(--fc-good); }
.fc-bar.warn i { background: var(--fc-accent); }
.fc-bar.bad i { background: var(--fc-danger); }
.fc-bar-label { font-family: var(--fc-font-cond); font-size: 14px; text-transform: uppercase; letter-spacing: 1px; color: var(--fc-dim); margin-bottom: 3px; }

.fc-menu { position: absolute; left: 24px; bottom: 24px; display: flex; gap: 8px; flex-wrap: wrap; }
.fc-list { display: flex; flex-direction: column; gap: 8px; overflow-y: auto; }
.fc-item { background: rgba(255,255,255,0.03); border: 1px solid var(--fc-border); border-radius: 4px; padding: 10px 14px;
  cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.fc-item:hover { border-color: var(--fc-accent); background: rgba(242,169,59,0.06); }
.fc-item.active { border-color: var(--fc-accent); box-shadow: 0 0 0 1px var(--fc-accent) inset; }
.fc-item .price { font-family: var(--fc-font-cond); font-weight: 700; font-size: 20px; color: var(--fc-accent); }
.fc-item.locked { opacity: 0.4; filter: grayscale(1); }

.fc-center { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.fc-fade { position: fixed; inset: 0; background: #000; pointer-events: none; opacity: 0; transition: opacity 0.4s; z-index: 45; }
.fc-fade.on { opacity: 1; }

input.fc-input { font-family: var(--fc-font); font-size: 16px; padding: 10px 12px; background: #0f0c08; color: var(--fc-text);
  border: 1px solid var(--fc-border); border-radius: 4px; outline: none; width: 100%; box-sizing: border-box; }
input.fc-input:focus { border-color: var(--fc-accent); }
