.screenshot-panel {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(var(--screenshot-inverse, 1));
  transform-origin: center;
  width: min(480px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow: auto;
  box-sizing: border-box;
  padding: 20px;
  border: 1px solid #cba869;
  border-radius: 12px;
  background: #172127;
  color: #f5ead5;
  box-shadow: 0 12px 48px #000a;
  font: 16px/1.4 Signika, sans-serif;
  pointer-events: auto;
}
.screenshot-panel h2 { margin: 0 0 10px; font: 700 23px/1.2 Signika, sans-serif; color: #f3d49b; }
.screenshot-panel p { margin: 0 0 14px; }
.screenshot-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.screenshot-panel .screenshot-actions button.btn { min-height: 44px; font: 600 15px/1.2 Signika, sans-serif; padding: 8px 10px; }
.screenshot-panel .screenshot-status:empty { display: none; }
.screenshot-panel .screenshot-status { margin: 12px 0 0; color: #f3d49b; }

/* Keep capture reachable on touch while a window covers the ordinary HUD controls. */
#screenshotbtn.screenshot-floating {
  position: fixed;
  right: 12px;
  bottom: 12px;
  width: 44px;
  height: 44px;
  transform: none;
  z-index: 100;
}
