/* --display-* are set from js/gfx.js (Type.init) once it knows which condensed face is installed */
:root {
  --display-font: Impact, Haettenschweiler, "Arial Narrow", sans-serif;
  --display-weight: normal;
  --display-squeeze: 1;
  --mono: "Courier New", Courier, "Liberation Mono", "DejaVu Sans Mono", monospace;
  --blood: #d11;
}
html, body {
  margin: 0; height: 100%; background: #000; color: #ddd; overflow: hidden;
  font-family: var(--mono);
}
#stage {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
}
#c {
  width: min(100vw, calc(100vh * 16 / 9));
  height: min(100vh, calc(100vw * 9 / 16));
  background: #000; display: block;
}

/* ---------- start card (sits over the film's opening frame) ---------- */
#overlay {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(ellipse at center, rgba(40, 0, 0, .35), rgba(0, 0, 0, .9) 75%),
    rgba(6, 0, 4, .45);
  z-index: 2; padding: 16px; box-sizing: border-box;
}
#overlay.hidden { display: none; }
.ov-inner { text-align: center; max-width: 900px; }
.kicker { letter-spacing: .5em; color: #c44; font-size: 13px; margin-bottom: 10px; text-indent: .5em; }
h1, button {
  font-family: var(--display-font); font-weight: var(--display-weight);
}
h1 {
  font-size: clamp(28px, 6vw, 64px); margin: 0 0 12px; color: #eee; letter-spacing: .05em; line-height: 1.05;
  text-shadow: 0 0 18px rgba(255, 0, 0, .4), 0 2px 0 #000;
  transform: scaleX(var(--display-squeeze));
}
h1 span { color: var(--blood); display: inline-block; }
p { color: #b8b0aa; margin: 0 0 26px; font-size: 15px; text-shadow: 0 1px 2px #000; }
small { display: block; margin-top: 22px; color: #8a8480; font-size: 12px; }
kbd {
  font-family: inherit; font-size: 11px; color: #c9c2bc;
  border: 1px solid #5a5450; border-radius: 3px; padding: 0 4px; background: rgba(0, 0, 0, .4);
}
button {
  font-size: 26px; letter-spacing: .14em; text-indent: .14em;
  background: #b00; color: #fff; border: 2px solid #f33; padding: 12px 40px; cursor: pointer;
  box-shadow: 0 0 24px rgba(255, 0, 0, .4);
  transition: background .12s, box-shadow .12s, transform .12s;
}
button:hover { background: #d00; box-shadow: 0 0 36px rgba(255, 0, 0, .6); }
button:active { transform: translateY(1px); }
button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
#replay {
  position: absolute; right: 24px; bottom: 24px; z-index: 3; font-size: 18px; padding: 8px 22px;
}
