:root {
  --bg: #0a0a0b;
  --ink: #f4f1ea;
  --muted: #9a958c;
  --accent: #e0a458;
  --panel: #16161a;
  --line: #2a2a30;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Segoe UI", Roboto, system-ui, -apple-system, sans-serif;
  overflow: hidden;
}

/* ---------- Login ---------- */
.login-wrap {
  position: fixed; inset: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 6vh 5vw;
  background: radial-gradient(120% 120% at 50% -10%, #1c1c22 0%, var(--bg) 60%);
}
.login-card { width: min(380px, 100%); text-align: center; }
.eyebrow {
  color: var(--accent); font-size: 13px; letter-spacing: .28em;
  text-transform: uppercase; margin-bottom: 14px;
}
.login-card h1 {
  font-size: clamp(30px, 7vw, 46px); font-weight: 300;
  letter-spacing: -.02em; margin-bottom: 6px;
}
.login-card h1 b { font-weight: 600; }
.login-card p.sub { color: var(--muted); font-size: 15px; margin-bottom: 28px; }
.login-card input {
  width: 100%; text-align: center;
  background: var(--panel); border: 1px solid var(--line); color: var(--ink);
  font-size: 18px; letter-spacing: .04em;
  padding: 14px 16px; border-radius: 10px; margin-bottom: 14px;
}
.login-card input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.btn {
  appearance: none; border: none; cursor: pointer; width: 100%;
  background: var(--accent); color: #1a1205;
  font-size: 17px; font-weight: 600; padding: 14px; border-radius: 10px;
  transition: filter .12s ease, transform .12s ease;
}
.btn:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.error {
  color: #f0b8b8; background: rgba(200,80,80,.12);
  border: 1px solid rgba(200,80,80,.4); border-radius: 8px;
  padding: 10px 12px; font-size: 14px; margin-bottom: 16px;
}

/* ---------- Diavoorstelling ---------- */
#stage { position: fixed; inset: 0; background: #000; }
.slide {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity var(--fade, 800ms) ease;
}
.slide.active { opacity: 1; }
.slide img, .slide video {
  max-width: 100%; max-height: 100%; width: auto; height: auto;
  object-fit: contain;
}
body.playing { cursor: none; }

#status {
  position: fixed; top: 24px; left: 50%; transform: translateX(-50%);
  background: rgba(0,0,0,.6); padding: 8px 18px; border-radius: 999px;
  font-size: 14px; letter-spacing: .04em; opacity: 0;
  transition: opacity .25s; pointer-events: none; backdrop-filter: blur(6px);
}
#status.show { opacity: 1; }

#intro {
  position: fixed; inset: 0; z-index: 10;
  display: flex; align-items: center; justify-content: center; padding: 6vh 5vw;
  background: radial-gradient(120% 120% at 50% -10%, #1c1c22 0%, var(--bg) 60%);
}
#intro.hidden { display: none; }
.intro-card { width: min(560px, 100%); text-align: center; }
.intro-card h1 {
  font-size: clamp(34px, 6vw, 54px); font-weight: 300;
  letter-spacing: -.02em; margin-bottom: 8px;
}
.intro-card h1 b { font-weight: 600; }
.lead { color: var(--muted); font-size: 16px; margin-bottom: 30px; }
.count { color: var(--muted); font-size: 14px; margin-top: 14px; }
.keys {
  margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: center;
  color: #cfcabf; font-size: 13.5px;
}
kbd {
  display: inline-block; min-width: 20px; text-align: center;
  background: var(--panel); border: 1px solid var(--line); border-bottom-width: 2px;
  border-radius: 5px; padding: 2px 7px; font-size: 12px; color: var(--ink);
}
.start[disabled] { background: var(--line); color: var(--muted); cursor: not-allowed; }
