*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  background: #fff;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

/* ── Blurred background image ── */
.bg {
  position: fixed;
  inset: 0;
  background: url('bg.png') center center / cover no-repeat;
  filter: blur(18px);
  transform: scale(1.05); /* hide blur edges */
  opacity: 0.55;
  z-index: 0;
}

/* ── Center widget ── */
.center {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

/* ── Error ── */
.error-msg {
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(220,38,38,0.3);
  color: #b91c1c;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 0.85rem;
  max-width: 320px;
  text-align: center;
}

[hidden] { display: none !important; }
