/* --- LADO DERECHO (42%) · MESA FISICA ESTILO PAPERS PLEASE --- */
.desk-workspace {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 7px;
  min-width: 0;
  min-height: 0;
  height: 100%;
  background:
    repeating-linear-gradient(
      90deg,
      #3b2214 0px,
      #3b2214 14px,
      #311b0f 14px,
      #311b0f 28px
    );
  border: 4px solid #1b0e07;
  box-shadow: inset 0 0 0 3px #593520, 0 6px 0 var(--ink);
  position: relative;
  overflow: hidden;
}

.desk-workspace.desk-shake {
  animation: deskShake 0.12s 4;
}

@keyframes deskShake {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(-4px, 2px); }
  75% { transform: translate(4px, -2px); }
}

/* 1. Franja Superior Compacta (18%, min 115px) */
.desk-top-rail {
  height: 18%;
  min-height: 115px;
  flex-shrink: 0;
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 7px;
  position: relative;
  z-index: 60;
}

.desk-heat-meter {
  padding: 6px 7px;
  background: #170f0a;
  border: 3px solid var(--ink);
  box-shadow: inset 0 0 0 2px #4a2e1e;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

.desk-heat-led {
  width: 8px;
  height: 8px;
  background: #38b764;
  border: 1px solid var(--ink);
  flex-shrink: 0;
}

.desk-heat-led.warn { background: #feae34; }
.desk-heat-led.crit { background: #ff3864; box-shadow: 0 0 8px #ff3864; }

.desk-heat-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #38b764, #8cf57a);
  transition: width 0.15s ease;
}

.desk-heat-fill.warn { background: linear-gradient(90deg, #feae34, #fee761); }
.desk-heat-fill.crit { background: linear-gradient(90deg, #e43b44, #ff3864); }

/* Entrada de despacho animada */
.desk-booth {
  min-width: 0;
  display: flex;
}

.booth-window-frame {
  flex: 1;
  position: relative;
  background: linear-gradient(180deg, #101729 0%, #1a2642 78%, #263659 100%);
  border: 3px solid var(--ink);
  box-shadow: inset 0 0 0 2px #334155;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

@keyframes boothWalkBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

@keyframes boothPropBob {
  from { transform: translateY(0) rotate(-4deg); }
  to { transform: translateY(-3px) rotate(4deg); }
}

.booth-speech {
  position: absolute;
  top: 16px;
  right: 8px;
  max-width: 62%;
  z-index: 4;
  background: #fffbeb;
  color: #111827;
  border: 2px solid var(--ink);
  padding: 3px 6px;
  font-size: 9.5px;
  font-weight: 700;
  text-align: center;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.35);
}

/* Post-it amarillo compacto (solo Ranked/Multi) */

.postit-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  border-bottom: 1px dashed #a16207;
  padding-bottom: 2px;
  margin-bottom: 3px;
}

/* 2. Gran Tapete Abierto (~82%): LIENZO LIBRE POSITION:RELATIVE */
.desk-felt-mat {
  flex: 1 1 0;
  min-height: 0;
  position: relative;
  overflow: hidden;
  background: #16382c;
  border: 4px solid #0b1c17;
  box-shadow:
    inset 0 0 0 2px rgba(254, 231, 97, 0.28),
    inset 0 0 0 6px rgba(254, 231, 97, 0.10);
}

.desk-objects-layer {
  position: absolute;
  inset: 0;
}

.desk-alarm-banner {
  position: absolute;
  top: 8px;
  left: 12px;
  right: 12px;
  z-index: 999;
  background: #991b1b;
  color: #fef08a;
  border: 3px solid var(--ink);
  padding: 5px 8px;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 4px 0 var(--ink);
  pointer-events: none;
}

.tier-unlock-banner {
  position: absolute;
  top: 8px;
  left: 12px;
  right: 12px;
  z-index: 998;
  background: #14532d;
  color: #fef08a;
  border: 3px solid var(--gold-hi);
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 4px 0 var(--ink);
  cursor: pointer;
}

/* Dos estaciones fijas ancladas en las esquinas inferiores */
.desk-panic-box {
  position: absolute;
  left: 10px;
  bottom: 10px;
  width: 110px;
  height: 90px;
  z-index: 50;
  background: #334155;
  border: 3px solid var(--ink);
  box-shadow: inset 0 0 0 2px #64748b, 3px 4px 0 rgba(0, 0, 0, 0.5);
  padding: 5px 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.panic-led {
  width: 8px;
  height: 8px;
  background: #38b764;
  border: 1px solid var(--ink);
}

.panic-led.busy { background: #e43b44; }

.panic-glass-cover {
  position: absolute;
  inset: 0;
  background: rgba(186, 230, 253, 0.34);
  border: 2px solid rgba(255, 255, 255, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transform-origin: top center;
  transition: transform 0.16s ease, opacity 0.16s ease;
}

.panic-glass-cover.open {
  transform: translateY(-88%) rotateX(70deg);
  opacity: 0.25;
  pointer-events: none;
}

.desk-shredder {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 115px;
  height: 110px;
  z-index: 50;
  background: #27272a;
  border: 3px solid var(--ink);
  box-shadow: inset 0 0 0 2px #52525b, 3px 4px 0 rgba(0, 0, 0, 0.5);
  padding: 5px 6px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.desk-shredder.drag-over {
  border-color: #feae34;
  box-shadow: 0 0 12px #feae34, inset 0 0 0 2px #ff6b78;
  animation: deskShake 0.14s infinite;
}

.desk-shredder.alarm-flash {
  border-color: #ff3864;
  background: #7f1d1d;
}

.shredder-slot {
  height: 16px;
  background: #09090b;
  border: 2px solid #18181b;
  display: flex;
  align-items: center;
}

.shredder-teeth {
  width: 100%;
  height: 6px;
  background: repeating-linear-gradient(90deg, #9ca3af 0 6px, #18181b 6px 10px);
}

.shredder-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 3px;
  text-align: center;
}

.shredder-led {
  position: absolute;
  top: 25px;
  right: 7px;
  width: 7px;
  height: 7px;
  background: #38b764;
  border: 1px solid var(--ink);
}

.shredder-title { font-size: 10px; color: var(--cream); }

.shredder-stain {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 40%, rgba(120, 53, 15, 0.65), transparent 65%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}

.shredder-stain.visible { opacity: 1; }

.shredder-confetti {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.shred-bit {
  position: absolute;
  top: 10px;
  width: 5px;
  height: 8px;
  border: 1px solid var(--ink);
  animation: shredFall 0.9s linear forwards;
}

@keyframes shredFall {
  from { transform: translateY(0) rotate(0deg); opacity: 1; }
  to { transform: translateY(72px) rotate(160deg); opacity: 0; }
}

/* --- OBJETOS FISICOS ARRASTRABLES (TAMANOS FIJOS EN PIXELES) --- */
.desk-obj {
  position: absolute;
  user-select: none;
  touch-action: none;
  cursor: grab;
  box-sizing: border-box;
  transition: box-shadow 0.1s ease;
}

.desk-obj.dragging {
  cursor: grabbing;
  box-shadow: 8px 12px 0 rgba(0, 0, 0, 0.55) !important;
}

.desk-obj.throw-in {
  animation: objThrowDrop 0.24s ease-out;
}

@keyframes objThrowDrop {
  from { opacity: 0; margin-top: -32px; }
  to { opacity: 1; margin-top: 0; }
}

.desk-obj.buried-tremble {
  animation: buriedTremble 0.18s infinite;
}

@keyframes buriedTremble {
  0%, 100% { margin-left: 0; margin-top: 0; }
  50% { margin-left: 2px; margin-top: -1px; }
}

/* 1. Periodico Financiero */
.obj-paper {
  background: #ede4cc;
  color: #1b1815;
  border: 3px solid var(--ink);
  box-shadow: 4px 5px 0 rgba(0, 0, 0, 0.45);
  padding: 7px;
  display: flex;
  flex-direction: column;
}

.obj-paper.folded {
  border-color: #fee761;
  justify-content: center;
  text-align: center;
}

.obj-paper-folded {
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: center;
}

.obj-paper-folded strong { font-size: 12px; color: #111827; }
.obj-paper-folded small { font-size: 9px; color: #4b5563; }

.obj-paper-open {
  display: flex;
  flex-direction: column;
  gap: 5px;
  height: 100%;
}

.paper-headline {
  flex: 1;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  overflow: hidden;
}

.paper-fuse-track { height: 6px; background: #cbbd9c; border: 1px solid #1b1815; }
.paper-fuse-fill { height: 100%; width: 100%; background: #e43b44; }

/* 2 & 3. Portatiles de Bulo / Panico (190x140px) */
.obj-laptop_bull,
.obj-laptop_bear {
  background: #475569;
  border: 3px solid var(--ink);
  box-shadow: 4px 5px 0 rgba(0, 0, 0, 0.45);
  padding: 5px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.laptop-bezel {
  flex: 1;
  background: #0f172a;
  border: 2px solid var(--ink);
  padding: 5px;
  display: flex;
}

.laptop-screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  padding: 4px;
}

.laptop-screen.green { background: #0a261a; color: #8cf57a; }
.laptop-screen.red { background: #2b0c14; color: #ff858d; }
.laptop-title { font-size: 10px; font-weight: 700; }

.laptop-action-btn {
  padding: 5px 7px;
  font-size: 10px;
  font-weight: 700;
  border: 2px solid var(--ink);
  cursor: pointer;
  color: #111827;
}

.laptop-action-btn.bull { background: #4ade80; }
.laptop-action-btn.bear { background: #f87171; }
.laptop-action-btn:disabled { background: #64748b; color: #cbd5e1; cursor: default; }

.laptop-sub { font-size: 9px; opacity: 0.9; }
.laptop-base { height: 12px; background: #334155; border: 2px solid var(--ink); }

/* 4. Sobre Confidencial Lacrado (145x105px) */
.obj-envelope {
  background: #d6c5a3;
  border: 3px solid var(--ink);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.42);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6px;
  text-align: center;
}

.env-flap {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 26px;
  background: #c2ae88;
  border-bottom: 2px solid var(--ink);
}

.env-wax {
  width: 24px;
  height: 24px;
  background: #dc2626;
  border: 2px solid var(--ink);
  border-radius: 50%;
  z-index: 2;
  margin-top: 8px;
}

.obj-envelope.cracked .env-wax { background: #f59e0b; transform: scale(0.9); }
.env-label { font-size: 10px; font-weight: 700; color: #1b1815; margin-top: 4px; }
.env-hint { font-size: 11px; font-weight: 700; color: #14532d; background: #fef08a; padding: 3px 5px; border: 1px solid #1b1815; margin-top: 4px; }

/* 5. Carpeta Roja PRUEBAS CNMV (155x120px) */
.obj-evidence {
  display: flex;
  flex-direction: column;
  filter: drop-shadow(4px 4px 0 rgba(0, 0, 0, 0.45));
}

.ev-tab {
  align-self: flex-start;
  background: #991b1b;
  color: #fef08a;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border: 2px solid var(--ink);
  border-bottom: none;
}

.ev-body {
  flex: 1;
  background: #dc2626;
  color: #ffffff;
  border: 3px solid var(--ink);
  padding: 6px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
}

.ev-body strong { font-size: 11px; }
.ev-body small { font-size: 9px; color: #fef08a; }
.ev-fuse-track { height: 7px; background: #450a0a; border: 1px solid var(--ink); }
.ev-fuse-fill { height: 100%; width: 100%; background: #fee761; }

/* 6. Contrato de Bono VIP (155x135px) */
.obj-contract {
  background: #f8fafc;
  color: #0f172a;
  border: 3px solid var(--ink);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.42);
  padding: 7px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
}

.contract-head { font-size: 10px; font-weight: 700; border-bottom: 2px solid #0f172a; padding-bottom: 3px; }
.contract-lines { font-size: 11px; font-weight: 700; color: #1d4ed8; line-height: 1.3; }
.contract-sign-box { padding: 4px; border: 2px dashed #0f172a; font-size: 11px; font-weight: 700; background: #fef9c3; }
.obj-contract.signed .contract-sign-box { border-style: solid; border-color: #166534; background: #86efac; color: #14532d; }

/* 7. Taza de Cafe Caliente (74x82px) */
.obj-coffee {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  filter: drop-shadow(3px 4px 0 rgba(0, 0, 0, 0.45));
}

.coffee-steam {
  display: flex;
  gap: 6px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  font-weight: 700;
  animation: steamFloat 0.9s infinite alternate;
}

.obj-coffee.empty .coffee-steam { opacity: 0; }
@keyframes steamFloat { from { transform: translateY(2px); } to { transform: translateY(-4px); } }

.coffee-lbl { font-size: 9px; font-weight: 700; color: var(--cream); background: #0f172a; padding: 1px 4px; border: 1px solid var(--ink); margin-top: 2px; }

/* 8. Sobre de Soborno (145x95px) */
.obj-bribe {
  background: #14532d;
  color: #fef08a;
  border: 3px solid var(--ink);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.45);
  padding: 6px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 4px;
}

.bribe-bills { font-size: 15px; font-weight: 700; color: #8cf57a; }
.bribe-sub { font-size: 9px; line-height: 1.25; color: #fef9c3; }

/* 9. Nota de Chivatazo del Jefe (125x115px) */
.obj-note {
  background: #fde047;
  color: #1c1917;
  border: 2px solid #854d0e;
  box-shadow: 3px 4px 0 rgba(0, 0, 0, 0.38);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  text-align: center;
}

.note-pin { width: 8px; height: 8px; background: #dc2626; border: 1px solid var(--ink); border-radius: 50%; margin: 0 auto; }
.note-title { font-size: 9px; font-weight: 700; border-bottom: 1px dashed #a16207; padding-bottom: 2px; }
.note-txt { font-size: 11px; font-weight: 700; line-height: 1.25; margin: auto 0; }

/* 10. Movil del Operador (105x150px) */
.obj-phone {
  background: #1e293b;
  border: 3px solid var(--ink);
  box-shadow: inset 0 0 0 2px #475569, 4px 5px 0 rgba(0, 0, 0, 0.5);
  padding: 5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.obj-phone.cracked::after {
  content: "";
  position: absolute;
  inset: 14px 6px 14px 6px;
  background: linear-gradient(125deg, transparent 47%, rgba(255, 255, 255, 0.45) 49%, transparent 51%);
  pointer-events: none;
}

.obj-phone.ringing {
  animation: phoneVibrate 0.16s infinite;
  border-color: #8cf57a;
  box-shadow: 0 0 14px rgba(140, 245, 122, 0.75);
}

.obj-phone.buried-ringing {
  box-shadow: 0 0 22px 6px rgba(140, 245, 122, 0.9);
}

@keyframes phoneVibrate {
  0%, 100% { margin-left: 0; margin-top: 0; }
  25% { margin-left: -2px; margin-top: 1px; }
  75% { margin-left: 2px; margin-top: -1px; }
}

.phone-speaker { width: 24px; height: 4px; background: #0f172a; border: 1px solid #64748b; }
.phone-led { position: absolute; top: 5px; right: 6px; width: 6px; height: 6px; border: 1px solid var(--ink); background: #38b764; }
.phone-led.busy { background: #e43b44; }
.phone-led.ringing { background: #8cf57a; box-shadow: 0 0 8px #8cf57a; }

.phone-screen {
  flex: 1;
  width: 100%;
  min-height: 0;
  background: #0f1f1c;
  border: 2px solid #091210;
  padding: 4px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.phone-screen.is-off {
  background: #06090f;
}

.phone-off-view {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: #334155;
}

.phone-led.off {
  background: #1e293b;
}

.phone-call-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  text-align: center;
}

.phone-call-badge {
  font-size: 8px;
  font-weight: 700;
  padding: 1px 5px;
  background: #16a34a;
  color: #fff;
}

.phone-call-head strong {
  font-size: 9.5px;
  color: #f8fafc;
}

.phone-speech-bubble {
  position: relative;
  background: #fffdf5;
  color: #111827;
  border: 2px solid #0f172a;
  padding: 4px 5px;
  font-size: 8.5px;
  font-weight: 700;
  line-height: 1.2;
}

.phone-speech-bubble p {
  margin: 0;
}

.phone-call-ring-txt {
  font-size: 9px;
  color: #8cf57a;
  text-align: center;
}

.phone-sms-view {
  display: flex;
  flex-direction: column;
  gap: 3px;
  height: 100%;
  justify-content: space-between;
}

.phone-sms-head {
  font-size: 8.5px;
  font-weight: 700;
  color: #fde047;
  text-align: center;
}

.phone-pin-display {
  background: #06100e;
  border: 1px solid #2e6b54;
  color: #8cf57a;
  font-size: 10px;
  font-weight: 700;
  text-align: center;
  padding: 2px;
}

.phone-pin-display.err {
  border-color: #ef4444;
  color: #fca5a5;
}

.phone-pin-pad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.phone-pin-pad button {
  background: #1e293b;
  color: #f8fafc;
  border: 1px solid #475569;
  font-family: inherit;
  font-size: 8.5px;
  font-weight: 700;
  padding: 2px 0;
  cursor: pointer;
}

.phone-pin-pad button:hover {
  background: #334155;
}

.phone-sms-msg {
  background: #06281e;
  border: 2px solid #22c55e;
  color: #bbf7d0;
  font-size: 9px;
  font-weight: 700;
  padding: 5px;
  text-align: center;
  line-height: 1.25;
}

.note-pin-code {
  display: inline-block;
  margin-top: 3px;
  padding: 2px 7px;
  background: #1c1917;
  color: #fde047;
  font-size: 13px;
  letter-spacing: 1px;
}

.env-sender {
  font-size: 9.5px;
  font-weight: 700;
  color: #1e293b;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid #78716c;
  padding: 1px 5px;
  z-index: 2;
  margin-top: 12px;
}

.paper-critic-quote {
  font-size: 9px;
  font-weight: 700;
  color: #1e3a8a;
  background: #dbeafe;
  border: 1px solid #60a5fa;
  padding: 2px 4px;
}

.paper-critics-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 8px;
  font-weight: 700;
  color: #14532d;
  background: #dcfce7;
  border: 1px solid #86efac;
  padding: 3px 4px;
}

.phone-call-view {
  display: flex;
  flex-direction: column;
  gap: 3px;
  height: 100%;
  justify-content: space-between;
}

.phone-call-ring { font-size: 9px; font-weight: 700; color: #8cf57a; }
.phone-call-desc { margin: 0; font-size: 9px; color: var(--cream); line-height: 1.2; }
.phone-call-fuse { height: 4px; background: #1e293b; border: 1px solid #000; }
.phone-call-fuse-fill { height: 100%; width: 100%; background: #8cf57a; }
.phone-call-btns { display: flex; gap: 3px; }
.phone-call-btns .px-btn { flex: 1; font-size: 8px; padding: 2px; }
.phone-home-btn { width: 14px; height: 4px; background: #475569; border: 1px solid var(--ink); }

.paper-masthead,
.paper-open-masthead {
  font-family: var(--font-pixel);
  font-weight: 700;
  letter-spacing: 0.6px;
  border-bottom: 2px solid #1b1815;
  padding-bottom: 2px;
}

.paper-masthead {
  font-size: 11px;
  color: #111827;
  width: 100%;
}

.paper-open-masthead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  color: #111827;
}

.env-wax {
  width: 34px;
  height: 22px;
  background: #dc2626;
  color: #fef08a;
  font-size: 8px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  z-index: 2;
  margin-top: 8px;
}

/* Folio A4 grande que ocupa espacio real en gameplay derecha */
.obj-folio {
  background: #f8fafc;
  color: #1e293b;
  border: 3px solid var(--ink);
  box-shadow: 5px 6px 0 rgba(0, 0, 0, 0.48);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.folio-head {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  font-weight: 700;
  color: #475569;
  border-bottom: 2px solid #0f172a;
  padding-bottom: 3px;
}

.folio-title {
  font-size: 13px;
  color: #0f172a;
}

.folio-body {
  margin: 0;
  font-size: 11px;
  line-height: 1.3;
  white-space: pre-line;
  color: #334155;
}

.folio-lines {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
}

.folio-lines span {
  height: 3px;
  background: #cbd5e1;
}

.folio-foot {
  font-size: 9px;
  font-weight: 700;
  text-align: center;
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #991b1b;
  padding: 2px 4px;
}

@keyframes sellMegaFlash {
  0% { box-shadow: inset 0 0 0 4px #fee761, 0 0 28px #8cf57a; }
  100% { box-shadow: none; }
}

/* --- PORTFOLIO POP + MICRO SHAKE --- */
.hud-portfolio-box {
  border-color: var(--gold) !important;
  background: #172822 !important;
  transition: transform 0.12s ease, border-color 0.15s ease;
}

.hud-money-title {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--gold-hi);
  font-weight: 700;
}

.hud-total-hero {
  font-size: 18px !important;
  color: #fef08a !important;
  text-shadow: 2px 2px 0 var(--ink);
}

.hud-hold-pnl {
  font-size: 9px;
  font-weight: 700;
  color: var(--ink-muted);
  white-space: nowrap;
}

.hud-hold-pnl.pos { color: #8cf57a; }
.hud-hold-pnl.neg { color: #ff6b78; }

.chart-share-bills-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  background: #0d1629;
  border: 2px solid #24375f;
  flex-shrink: 0;
}

.bills-bar-lbl,
.bills-bar-cnt {
  font-size: 10px;
  font-weight: 700;
  color: var(--ink-muted);
  white-space: nowrap;
}

.bills-bar-cnt {
  color: var(--gold-hi);
  margin-left: auto;
}

.chart-share-bills {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 4px;
}

.chart-bill-slot {
  height: 15px;
  border: 2px solid #1e293b;
  background: #0b1222;
  color: #334155;
  font-size: 9px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.12s ease, border-color 0.12s ease, transform 0.12s ease;
}

.chart-bill-slot.lit {
  background: linear-gradient(180deg, #4ade80, #16a34a);
  border-color: #bbf7d0;
  color: #052e16;
  box-shadow: 0 0 6px rgba(74, 222, 128, 0.55);
  transform: translateY(-1px);
}

.chart-bill-slot.short {
  background: linear-gradient(180deg, #38bdf8, #0284c7);
  border-color: #bae6fd;
  color: #082f49;
  box-shadow: 0 0 6px rgba(56, 189, 248, 0.55);
  transform: translateY(-1px);
}

@keyframes portfolioPop {
  0% { transform: scale(1); }
  45% { transform: scale(1.18); border-color: #fee761; background: #263b2b; }
  100% { transform: scale(1); }
}

@keyframes microShake {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(-4px, 2px); }
  50% { transform: translate(4px, -2px); }
  75% { transform: translate(-3px, -1px); }
}

/* --- VENTANILLA DETALLADA (MII 2.5x + OFICINA + MOSTRADOR) --- */

#desk-booth-canvas {
  width: 100%;
  height: 100%;
  display: block;
  image-rendering: pixelated;
}

.booth-speech {
  position: absolute;
  top: 6px;
  left: 8px;
  right: 8px;
  z-index: 6;
  background: #fffbeb;
  color: #111827;
  border: 3px solid var(--ink);
  padding: 3px 6px;
  font-size: 10px;
  font-weight: 700;
  text-align: center;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.45);
}

.booth-speech::after {
  content: "";
  position: absolute;
  bottom: -7px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 7px 6px 0 6px;
  border-style: solid;
  border-color: var(--ink) transparent transparent transparent;
}

/* --- ILUMINACION + MANCHA CAFE + SOMBRAS DURAS --- */
.desk-lamp-cone {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 8% 8%, rgba(255, 217, 138, 0.10) 0%, rgba(255, 217, 138, 0.04) 38%, transparent 72%);
  pointer-events: none;
  z-index: 1;
}

.desk-coffee-stain {
  position: absolute;
  left: 24%;
  bottom: 18%;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 3px solid rgba(92, 52, 24, 0.25);
  box-shadow: inset 0 0 8px rgba(92, 52, 24, 0.14);
  pointer-events: none;
  z-index: 1;
}

.desk-obj {
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.45) !important;
}

.desk-obj.dragging {
  box-shadow: 12px 14px 0 rgba(0, 0, 0, 0.5) !important;
}

/* --- PERIODICO CERRADO Y ABIERTO DETALLADO --- */
.obj-paper {
  background: #efe4c6;
  padding: 6px;
}

.obj-paper.folded {
  box-shadow: inset 6px -6px 0 rgba(180, 160, 120, 0.45), 6px 6px 0 rgba(0, 0, 0, 0.45) !important;
}

.paper-ribbon {
  position: absolute;
  top: 22px;
  right: -6px;
  background: #dc2626;
  color: #ffffff;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 8px;
  border: 2px solid var(--ink);
  transform: rotate(12deg);
}

.paper-bw-photo {
  width: 54px;
  height: 36px;
  background: #cbd5e1;
  border: 2px solid #1b1815;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  filter: grayscale(0.8) contrast(1.2);
}

.paper-bw-photo.small {
  width: 42px;
  height: 28px;
  font-size: 16px;
}

.paper-fake-cols {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  height: 14px;
}

.paper-fake-cols span {
  background: repeating-linear-gradient(180deg, #9ca3af 0 2px, transparent 2px 4px);
}

.obj-paper-open {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 8px;
  height: 100%;
  background: linear-gradient(90deg, #efe4c6 58%, #dfd0aa 60%, #efe4c6 62%);
}

.paper-spread-left,
.paper-spread-right {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.paper-timer-pill {
  font-size: 9px;
  font-weight: 700;
  padding: 2px 4px;
  background: #fef08a;
  color: #111827;
  border: 1px solid #854d0e;
  text-align: center;
}

.paper-timer-pill.impact {
  background: #dc2626;
  color: #ffffff;
}

.paper-timer-pill.expired {
  background: #cbd5e1;
  color: #475569;
  border-color: #64748b;
}

.obj-paper.expired-paper {
  opacity: 0.85;
}

.paper-ink-seal {
  margin-top: auto;
  align-self: center;
  padding: 3px 6px;
  font-size: 10px;
  font-weight: 700;
  border: 2px solid;
  transform: rotate(-8deg);
}

.paper-ink-seal.real { color: #166534; border-color: #166534; background: rgba(134, 239, 172, 0.25); }
.paper-ink-seal.fake { color: #991b1b; border-color: #991b1b; background: rgba(254, 202, 202, 0.35); }

/* --- CARPETA ROJA CON CLIP + FRANJA PELIGRO --- */
.ev-clip {
  position: absolute;
  top: 12px;
  right: 10px;
  width: 8px;
  height: 18px;
  border: 2px solid #cbd5e1;
  border-radius: 4px;
  z-index: 3;
}

.ev-stamp {
  font-size: 8px;
  font-weight: 700;
  color: #fef08a;
  border: 1px solid #fef08a;
  padding: 1px 3px;
  align-self: center;
  transform: rotate(-4deg);
}

.ev-hazard {
  height: 6px;
  background: repeating-linear-gradient(135deg, #facc15 0 5px, #111827 5px 10px);
  border: 1px solid var(--ink);
}

/* --- MOVIL CON BARRA DE ESTADO --- */

/* --- PORTATIL CON SCANLINES Y TECLADO --- */
.laptop-screen {
  position: relative;
  overflow: hidden;
}

.laptop-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(180deg, rgba(0, 0, 0, 0.16) 0 2px, transparent 2px 4px);
  pointer-events: none;
}

.laptop-base {
  height: 22px;
  background: #334155;
  border: 2px solid var(--ink);
  padding: 2px 5px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.laptop-keys {
  height: 8px;
  background: repeating-linear-gradient(90deg, #94a3b8 0 4px, #1e293b 4px 6px);
}

.laptop-trackpad {
  width: 28px;
  height: 5px;
  margin: 0 auto;
  background: #1e293b;
  border: 1px solid #64748b;
}

/* --- TRITURADORA INDUSTRIAL CON VISOR DE TIRAS --- */
.desk-shredder {
  width: 120px;
  height: 115px;
}

.desk-shredder.drag-over .shredder-teeth {
  animation: teethSpin 0.18s linear infinite;
}

@keyframes teethSpin {
  from { background-position: 0 0; }
  to { background-position: 10px 0; }
}

.shredder-warn {
  position: absolute;
  top: 23px;
  left: 7px;
  font-size: 11px;
  color: #facc15;
}

.shredder-window {
  width: 100%;
  height: 36px;
  background: #09090b;
  border: 2px solid #3f3f46;
  position: relative;
  overflow: hidden;
}

.shred-strip-pile {
  position: absolute;
  bottom: 2px;
  width: 4px;
  height: 14px;
  border: 1px solid #000;
}

.keycap-actions.two-big-btns {
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.big-trade-btn {
  height: 40px;
  font-size: 14px !important;
  font-weight: 700;
}

.desk-top-rail {
  grid-template-columns: minmax(0, 1fr) !important;
}

#desk-booth-canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
  image-rendering: pixelated;
}

.phone-sig-bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 1px;
  height: 8px;
}

.phone-sig-bars i {
  display: block;
  width: 2px;
  background: #4ade80;
}
.phone-sig-bars i:nth-child(1) { height: 3px; }
.phone-sig-bars i:nth-child(2) { height: 5px; }
.phone-sig-bars i:nth-child(3) { height: 8px; }

@media (max-width: 960px) {
  #view-game .dual-screen-layout {
    grid-template-columns: 1fr;
    grid-template-rows: 58fr 42fr;
  }
}

/* --- FIXES DE LAYOUT: VIEW-PARQUES SIN SCROLL Y BOTON NUEVA CARRERA --- */
#view-parques.active {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 14px;
  height: 100%;
  overflow-y: auto;
  box-sizing: border-box;
}

.chart-bill-slot.bill-pop {
  animation: billPop 0.16s ease-out;
}

@keyframes billPop {
  0% { transform: scale(1.28) translateY(-2px); }
  100% { transform: scale(1) translateY(-1px); }
}

.pnl-box {
  transition: transform 0.09s ease;
}

/* --- DINERO TOTAL DE LA CUENTA EN GRANDE EN TODAS PARTES --- */

#menu-money {
  font-size: 22px !important;
  font-weight: 700 !important;
  color: #fef08a !important;
  text-shadow: 2px 2px 0 var(--ink);
  letter-spacing: 0.4px;
}

/* --- REWORK SIMPLE DE #view-parques: LISTA Z->A + CUADRADO DE EQUIPO --- */
#view-parques.active {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 16px;
  height: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.mp-top {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* --- MII MAKER TUNER BAR (SEPARAR / JUNTAR / MOVER / AGRANDAR) --- */
.mii-tuner-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.mii-tuner-ctrl {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 6px;
  background: #e5dec9;
  border: 2px solid var(--ink);
}

.mii-tuner-lbl {
  font-size: 10px;
  font-weight: 700;
  color: var(--ink);
  margin-right: 2px;
}

.mii-tuner-val {
  min-width: 18px;
  text-align: center;
  font-size: 11px;
  color: #1e40af;
}

.chart-bill-slot.bill-pop {
  animation: billPop 0.16s ease-out;
}

@keyframes billPop {
  0% { transform: scale(1.28) translateY(-2px); }
  100% { transform: scale(1) translateY(-1px); }
}

.pnl-box {
  transition: transform 0.09s ease;
}

