/* =========================================================================
   MENU PRINCIPAL RPG MODERNO / PORTATIL 32-BIT SOBRE ESCENARIO VIVO
   ========================================================================= */
#view-menu.active {
  display: flex;
  position: relative;
  z-index: 2;
  padding: 0;
  overflow: hidden;
  background: transparent !important;
  font-family: var(--font-pixel);
}

.menu-bg-panorama {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
  display: block;
  z-index: 1;
}

.rpg-menu-shell {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  padding: 20px 32px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  font-family: var(--font-pixel);
  letter-spacing: 0;
}

.rpg-menu-shell .px-btn {
  font-family: var(--font-pixel);
  letter-spacing: 0;
}

/* Cabecera Flotante sin barra opaca ni solapamientos */
.rpg-floating-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.rpg-logo-cluster {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rpg-logo-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rpg-logo-title {
  font-family: var(--font-pixel);
  font-weight: 700;
  font-size: clamp(20px, 2.5vw, 28px);
  line-height: 1.1;
  letter-spacing: 0;
  margin: 0;
  color: #fee761;
  background: none;
  -webkit-background-clip: border-box;
  -webkit-text-fill-color: #fee761;
  -webkit-text-stroke: 0;
  text-shadow:
    3px 0 0 var(--ink),
    -3px 0 0 var(--ink),
    0 3px 0 var(--ink),
    0 -3px 0 var(--ink),
    5px 5px 0 var(--ink);
}

.rpg-logo-sub-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 2px;
}

.rpg-subtitle {
  font-family: 'Silkscreen', monospace;
  font-size: 11px;
  line-height: 1;
  color: #e8f0ff;
  background: rgba(20, 34, 68, 0.92);
  border: 2px solid #4f74bd;
  padding: 4px 8px;
  box-shadow: 0 2px 0 #0b132b;
}

.rpg-splash-text {
  font-family: 'Silkscreen', monospace;
  font-size: 10px;
  line-height: 1.2;
  color: #ffd447;
  text-shadow: 1px 1px 0 #1a1026;
  display: inline-block;
  transform: rotate(-2.5deg);
  animation: splashBob 1.8s steps(4) infinite;
}

@keyframes splashBob {
  0%, 100% { transform: rotate(-2.5deg); }
  50% { transform: rotate(-1.5deg) translateY(-1px); }
}

.rpg-top-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  flex-shrink: 0;
}

.rpg-pill-stat {
  height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 11px;
  background: rgba(20, 34, 68, 0.92);
  border: 2px solid #4f74bd;
  box-shadow: 0 3px 0 #0b132b;
  font-family: 'Silkscreen', monospace;
  font-size: 10px;
  line-height: 1;
  color: #a8c0f0;
  white-space: nowrap;
}

.rpg-pill-stat strong {
  color: #8cf57a;
  font-size: 11px;
  font-weight: 700;
}

.rpg-top-pills .px-btn {
  height: 36px;
  min-width: 36px;
  padding: 0 10px;
  background: rgba(20, 34, 68, 0.92);
  border: 2px solid #4f74bd;
  color: #e8f0ff;
  font-size: 10px;
  line-height: 1;
  box-shadow: 0 3px 0 #0b132b;
}

.rpg-top-pills .px-btn.btn-icon-sq {
  width: 36px;
  padding: 0;
}

.rpg-top-pills .px-btn:hover:not(:disabled) {
  background: #29437a;
  border-color: #7ca0e8;
}

.rpg-top-pills .px-btn:active:not(:disabled) {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #0b132b;
}

/* Dos Paneles Flotantes Unificados (misma altura superior e inferior) */
.rpg-panels-stage {
  flex: 1;
  min-height: 0;
  max-height: 416px;
  margin: auto 0;
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 24px;
}

.rpg-frame-panel {
  background: rgba(27, 46, 89, 0.92);
  border: 5px solid transparent;
  border-image-source: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15' shape-rendering='crispEdges'%3E%3Crect x='2' y='0' width='11' height='3' fill='%23e8f0ff'/%3E%3Crect x='2' y='12' width='11' height='3' fill='%23e8f0ff'/%3E%3Crect x='0' y='2' width='3' height='11' fill='%23e8f0ff'/%3E%3Crect x='12' y='2' width='3' height='11' fill='%23e8f0ff'/%3E%3Crect x='3' y='3' width='1' height='1' fill='%23e8f0ff'/%3E%3Crect x='11' y='3' width='1' height='1' fill='%23e8f0ff'/%3E%3Crect x='3' y='11' width='1' height='1' fill='%23e8f0ff'/%3E%3Crect x='11' y='11' width='1' height='1' fill='%23e8f0ff'/%3E%3Crect x='4' y='4' width='7' height='1' fill='%233a5896'/%3E%3Crect x='4' y='10' width='7' height='1' fill='%233a5896'/%3E%3Crect x='4' y='4' width='1' height='7' fill='%233a5896'/%3E%3Crect x='10' y='4' width='1' height='7' fill='%233a5896'/%3E%3C/svg%3E");
  border-image-slice: 5;
  border-image-width: 5px;
  border-image-repeat: stretch;
  clip-path: polygon(
    2px 0, calc(100% - 2px) 0,
    calc(100% - 2px) 2px, 100% 2px,
    100% calc(100% - 2px), calc(100% - 2px) calc(100% - 2px),
    calc(100% - 2px) 100%, 2px 100%,
    2px calc(100% - 2px), 0 calc(100% - 2px),
    0 2px, 2px 2px
  );
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}

.rpg-bento-panel {
  width: min(670px, 61%);
}

.rpg-operator-panel {
  width: min(350px, 33%);
}

.bento-top-grid {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 1.02fr 1fr;
  gap: 12px;
  align-items: stretch;
}

/* Tarjetas internas unificadas (#29437a, hover #345496, borde #4f74bd) */
.bento-card-btn {
  background: #29437a;
  border: 3px solid #4f74bd;
  color: #ffffff;
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.14),
    inset 0 -3px 0 #1b2d54,
    0 4px 0 #0e1833;
  transition: background 0.08s linear, transform 0.05s steps(2), box-shadow 0.05s steps(2);
}

.bento-card-btn:hover:not(:disabled) {
  background: #345496;
  border-color: #6b91db;
}

.bento-card-btn:active:not(:disabled) {
  transform: translateY(3px);
  box-shadow:
    inset 0 2px 0 #1b2d54,
    0 1px 0 #0e1833;
}

.bento-hero-btn {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px 16px;
  height: 100%;
  min-height: 220px;
}

.bento-hero-btn .px-icon {
  margin-bottom: 2px;
}

.bento-hero-title {
  font-family: var(--font-pixel);
  font-weight: 700;
  font-size: 28px;
  line-height: 1.1;
  color: #ffd447;
  text-shadow: 2px 2px 0 #0e1833;
}

.bento-hero-sub {
  font-family: 'Silkscreen', monospace;
  font-size: 11px;
  line-height: 1.2;
  color: #a8c0f0;
  text-shadow: 1px 1px 0 #0e1833;
}

.bento-side-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
}

.bento-side-btn {
  flex: 1;
  justify-content: flex-start;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  text-align: left;
  min-height: 104px;
}

.bento-side-btn .px-icon {
  width: 36px !important;
  height: 36px !important;
  flex-shrink: 0;
}

.bento-side-txt {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bento-side-title {
  font-family: 'Silkscreen', monospace;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.15;
  color: #ffffff;
  text-shadow: 1px 1px 0 #0e1833;
}

.bento-side-sub {
  font-family: 'Silkscreen', monospace;
  font-size: 10.5px;
  line-height: 1.2;
  color: #a8c0f0;
  text-transform: none;
}

/* Franja inferior oculta para despejar el fondo de la oficina */
.bento-stats-footer {
  display: none !important;
}

.bento-stat-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 3px;
  padding: 2px 6px;
  border-right: 1px solid #3a5896;
}

.bento-stat-cell:last-child {
  border-right: none;
}

.bento-stat-cell span {
  font-family: 'Silkscreen', monospace;
  font-size: 9px;
  line-height: 1.1;
  color: #a8c0f0;
}

.bento-stat-cell strong {
  font-family: 'Silkscreen', monospace;
  font-size: 12px;
  line-height: 1.15;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* B) Tarjeta Flotante del Operador */
.operator-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.operator-head-title {
  font-family: 'Silkscreen', monospace;
  font-weight: 700;
  font-size: 13px;
  color: #ffd447;
  text-shadow: 1px 1px 0 #0e1833;
}

.operator-head #btn-menu-profile {
  font-size: 10px;
  padding: 4px 10px;
  border-width: 2px;
}

.operator-showcase-box {
  position: relative;
  flex: 1;
  min-height: 0;
  background: #0d1936;
  border: 3px solid #3a5896;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.operator-showcase-box #menu-scene {
  width: 100%;
  height: 100%;
  max-height: 220px;
  object-fit: contain;
  display: block;
  image-rendering: pixelated;
}

.operator-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.operator-id-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  text-align: center;
}

.operator-name {
  font-family: var(--font-pixel);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.15;
  color: #ffffff;
  text-shadow: 1px 1px 0 #0e1833;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.operator-rank-pill {
  font-family: 'Silkscreen', monospace;
  font-weight: 700;
  font-size: 10px;
  line-height: 1;
  padding: 4px 10px;
  background: #ffd447;
  color: #1a1026;
  border: 2px solid #1a1026;
  box-shadow: 0 2px 0 #0e1833;
}

.operator-xp-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
}

.operator-xp-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
}

.operator-xp-lbl {
  font-family: 'Silkscreen', monospace;
  font-size: 9px;
  color: #a8c0f0;
}

.operator-xp-track {
  width: 100%;
  height: 10px;
  background: #0d1936;
  border: 2px solid #3a5896;
  overflow: hidden;
}

.operator-xp-fill {
  height: 100%;
  width: 10%;
  background: #38c96b;
}

.operator-xp-txt {
  font-family: 'Silkscreen', monospace;
  font-size: 9px;
  color: #e8f0ff;
  white-space: nowrap;
}

.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) {
  .rpg-menu-shell {
    padding: 12px;
    gap: 10px;
    overflow-y: auto;
    justify-content: flex-start;
  }
  .rpg-floating-header {
    flex-direction: column;
    align-items: flex-start;
    flex-shrink: 0;
    gap: 8px;
  }
  .rpg-top-pills {
    flex-wrap: wrap;
  }
  .rpg-logo-title {
    font-size: 26px;
  }
  .rpg-panels-stage {
    flex: 0 0 auto;
    max-height: none;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .rpg-bento-panel,
  .rpg-operator-panel {
    width: 100%;
  }
  .bento-top-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .bento-hero-btn {
    min-height: 100px;
    padding: 14px;
  }
  .bento-stats-footer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 0;
  }
  .bento-stat-cell:nth-child(2) {
    border-right: none;
  }
}

/* =========================================================================
   RAPID-FIRE ARCADE: FX CANVAS 60 FPS, COMBO, FASE Y SQUISH TACTIL
   ========================================================================= */
#view-game {
  position: relative;
}

.fx-overlay-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 40;
  image-rendering: pixelated;
}

.phase-alert-pill {
  font-family: var(--font-pixel);
  font-size: 7.5px;
  padding: 3px 8px;
  background: #1b243d;
  color: #b8c3d4;
  border: 2px solid var(--ink);
}

.phase-alert-pill.dip {
  background: #9e222e;
  color: #ffffff;
}

.phase-alert-pill.surge {
  background: #1f8f47;
  color: #fee761;
}

.phase-alert-pill.euphoria {
  background: #c96f14;
  color: #ffffff;
  animation: pulsePeak 0.4s steps(2) infinite;
}

.phase-alert-pill.crash {
  background: #5c141d;
  color: #ff858d;
}

@keyframes pulsePeak {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

.combo-badge {
  font-family: var(--font-pixel);
  font-size: 9px;
  padding: 3px 9px;
  background: var(--gold);
  color: var(--ink);
  border: 2px solid var(--ink);
  box-shadow: 0 3px 0 var(--ink);
}

.btn-squish {
  transform: translateY(3px) scale(0.97) !important;
}

/* =========================================================================
   TRANSICION ANIMADA EN BENTO (UN JUGADOR) + SELECTOR COMPACTO DE PARQUES
   ========================================================================= */
.bento-mode-view {
  display: none;
}

.bento-mode-view.active {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  animation: bentoSwapIn 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes bentoSwapIn {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Selector de donde invertir (#view-parques) mucho mas compacto */
#view-parques.active {
  max-width: 980px;
  max-height: 540px;
  margin: auto;
  padding: 14px 18px;
  gap: 10px;
  border: 3px solid var(--cream);
  box-shadow: 0 8px 0 var(--ink);
  background: rgba(20, 27, 54, 0.96);
}

@media (max-width: 850px) {
  
  
  #view-parques.active {
    max-width: 100%;
    max-height: 100%;
    padding: 10px;
  }
}

