/* ============================================================
   AUTOPLAY chip — js/autoplay-system.js
   A small status strip pinned bottom-left while the bot plays:
   state, last move, STOP. Paper palette; red when stuck.
   ============================================================ */
#autoplayChip {
  position: fixed;
  left: 14px;
  bottom: 14px;
  z-index: 2000000;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: min(640px, 80vw);
  padding: 7px 12px;
  background: rgba(58, 50, 56, 0.94);
  color: #EBE6D8;
  border: 1px solid #8E7F7F;
  font-family: 'Courier New', Courier, monospace;
  font-size: 11px;
  letter-spacing: 1.5px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
  pointer-events: auto;
}
#autoplayChip .ap-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: #8E7F7F;
  flex: 0 0 9px;
}
#autoplayChip.running .ap-dot {
  background: #6b8e3d;
  animation: apBlink 1.2s ease-in-out infinite;
}
#autoplayChip.stuck { border-color: #8B0000; }
#autoplayChip.stuck .ap-dot { background: #8B0000; animation: apBlink 0.5s steps(2) infinite; }
@keyframes apBlink { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
#autoplayChip .ap-title { color: #c4a87a; font-weight: bold; }
#autoplayChip .ap-state { color: #EBE6D8; }
#autoplayChip.stuck .ap-state { color: #ff9c9c; }
#autoplayChip .ap-last {
  color: rgba(235, 230, 216, 0.72);
  font-style: italic;
  letter-spacing: 0.5px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  flex: 1 1 auto;
  min-width: 0;
}
#autoplayChip .ap-btn {
  background: transparent;
  color: #EBE6D8;
  border: 1px solid #c4a87a;
  padding: 3px 10px;
  font-family: inherit;
  font-size: 10px;
  letter-spacing: 2px;
  cursor: pointer;
}
#autoplayChip .ap-btn:hover { background: rgba(196, 168, 122, 0.18); }

/* Debug console panel */
.debug-controls.ap-row label { margin-right: 10px; }
.debug-controls.ap-row select { font-family: 'Courier New', monospace; font-size: 11px; }
