:root {
  --bg: #0b0b0d;
  --fg: #f2f2f2;
  --muted: rgba(242, 242, 242, 0.75);
  --panel: rgba(0, 0, 0, 0.55);
  --panel-border: rgba(255, 255, 255, 0.15);
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}

.stage {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
}

/* Default: interactive layout leaves room for controls */
body:not(.kiosk) .stage {
  padding-bottom: 72px;
}

#slide {
  width: 100vw;
  height: 100vh;
  object-fit: contain;    /* preserve aspect ratio */
  object-position: center;
  background: var(--bg);
  user-select: none;
  -webkit-user-drag: none;
}

/* In interactive mode, reduce height to make room for controls */
body:not(.kiosk) #slide {
  height: calc(100vh - 72px);
}

.controls {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 72px;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background: linear-gradient(to top, rgba(0,0,0,0.65), rgba(0,0,0,0.25));
  backdrop-filter: blur(6px);
  border-top: 1px solid var(--panel-border);
}

.btn {
  min-width: 120px;
  padding: 12px 18px;
  font-size: 16px;
  border-radius: 12px;
  border: 1px solid var(--panel-border);
  background: var(--panel);
  color: var(--fg);
  cursor: pointer;
}

.btn:active { transform: translateY(1px); }
.btn:focus { outline: 2px solid rgba(255,255,255,0.35); outline-offset: 2px; }

.hud {
  position: fixed;
  top: 12px;
  left: 12px;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
}

.counter {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.2px;
}

/* Kiosk mode: no UI at all */
body.kiosk .controls,
body.kiosk .hud {
  display: none !important;
}

/* Optional: hide mouse cursor in kiosk mode */
body.kiosk {
  cursor: none;
}