:root {
  --bg: #0f1115;
  --panel: #181b22;
  --panel-2: #20242d;
  --text: #e8eaf0;
  --muted: #8b92a3;
  --accent: #4f8cff;
  --accent-text: #ffffff;
  --ok: #3ecf8e;
  --warn: #f5a524;
  --danger: #f05252;
}

* { box-sizing: border-box; }

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

a { color: var(--accent); }

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  touch-action: manipulation;
}

/* --- Slajd ----------------------------------------------------------------
   Framework odpowiada tylko za ramkę: .stage-frame ma określony rozmiar i jest
   kontenerem (cqw/cqh). Slajd montuje w niej mountStage() z common.js, w shadow DOM
   z motywem /assets/theme.css; proporcje, skalowanie i wygląd slajdu definiuje motyw. */

.stage-frame {
  container-type: size;
  position: relative;
  overflow: hidden;
}

/* --- Elementy wspólne ---------------------------------------------------- */

.status-dot {
  display: inline-block;
  width: 0.6em;
  height: 0.6em;
  border-radius: 50%;
  background: var(--warn);
  vertical-align: middle;
}
.status-dot.open { background: var(--ok); }
.status-dot.gone { background: var(--danger); }

.overlay {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  text-align: center;
  padding: 16px;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  z-index: 10;
}
.overlay.visible { display: grid; }
.overlay h1 { margin: 0 0 0.4em; }
.overlay p { color: var(--muted); margin: 0 0 1em; }

.card {
  max-width: 460px;
  width: 100%;
  background: var(--panel);
  border-radius: 14px;
  padding: 24px;
}

.btn {
  display: inline-block;
  border: 0;
  border-radius: 10px;
  padding: 12px 18px;
  background: var(--panel-2);
  text-decoration: none;
  color: var(--text);
}
.btn.primary { background: var(--accent); color: var(--accent-text); }
/* Akcje drugorzędne, np. zamknięcie pokoju: widoczne, ale nie przyciągają uwagi. */
.btn.quiet { background: none; border: 1px solid var(--panel-2); color: var(--muted); }
.btn.quiet:hover { color: var(--text); }
