/* AJPuzzle standalone UI; no remote assets */
.ajp { box-sizing: border-box; width: min(100%, 340px); margin: 0 auto; padding: 14px; border: 1px solid #d7dce4; border-radius: 14px; background: #fff; color: #15253a; font: 14px/1.45 system-ui, -apple-system, Segoe UI, sans-serif; box-shadow: 0 8px 28px rgba(15, 23, 42, .08); }
.ajp * { box-sizing: border-box; }
.ajp-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.ajp-title { font-size: 15px; }
.ajp-refresh { border: 0; border-radius: 8px; width: 34px; height: 34px; cursor: pointer; background: #f1f5f9; color: #334155; font-size: 23px; line-height: 1; }
.ajp-refresh:hover { background: #dbeafe; }
.ajp-stage { position: relative; width: 100%; aspect-ratio: 2 / 1; overflow: hidden; border-radius: 8px; background: #e7ebf0; }
.ajp-back { display: block; width: 100%; height: 100%; object-fit: fill; }
.ajp-piece { position: absolute; top: 0; left: 0; width: 15.16129032%; height: 100%; object-fit: fill; pointer-events: none; }
.ajp-track { position: relative; margin-top: 12px; width: 100%; height: 43px; border: 1px solid #cbd5e1; border-radius: 8px; background: #f8fafc; overflow: hidden; }
.ajp-fill { height: 100%; width: 0; background: #dbeafe; border-radius: 7px 0 0 7px; pointer-events: none; }
.ajp-instruction { position: absolute; left: 50px; right: 6px; top: 0; bottom: 0; display: flex; align-items: center; justify-content: center; font-size: 12px; color: #475569; text-align: center; pointer-events: none; }
.ajp-handle { position: absolute; left: 0; top: 0; width: 43px; height: 41px; border: 0; border-right: 1px solid #bfdbfe; border-radius: 7px; background: #2563eb; color: #fff; font-size: 23px; cursor: grab; touch-action: none; user-select: none; }
.ajp-handle:active { cursor: grabbing; }
.ajp-handle:focus-visible, .ajp-refresh:focus-visible { outline: 3px solid #fb923c; outline-offset: 2px; }
.ajp-handle:disabled { opacity: .65; cursor: default; }
.ajp-status { min-height: 21px; margin-top: 9px; font-size: 12px; color: #475569; }
.ajp-ok .ajp-track { border-color: #16a34a; }
.ajp-ok .ajp-handle { background: #16a34a; }
.ajp-ok .ajp-status { color: #15803d; font-weight: 600; }
@media (max-width: 370px) { .ajp { padding: 8px; } .ajp-instruction { font-size: 11px; } }
