/*
  overlays.css — стили оверлеев игры (старт + финал).
  Подключается <link> в index.html. DOM оверлеев создаёт модуль overlays.js;
  здесь только оформление. Базовые стили страницы — в index.html.
  (Перенесено из inline <style> index.html; источник — reference-demo/assets/css.)
*/

.overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  background: rgba(28,30,42,.72);
  border-radius: 4px;
  color: #fff;
  text-align: center;
  padding: 120px 24px;
  box-sizing: border-box;
}
.overlay[hidden] { display: none; }
.overlay .head { margin-bottom: auto; }
.overlay .title {
  font-size: 38px; font-weight: 800;
  margin: 0 0 8px;
  letter-spacing: -0.5px;
}
.overlay .subtitle {
  font-size: 17px; opacity: .85;
  margin: 0 auto;
  max-width: 520px;
}
.overlay .play {
  font-size: 22px; font-weight: 700;
  padding: 14px 40px;
  background: #ffd86b; color: #2a2a3a;
  border: none; border-radius: 999px;
  cursor: pointer;
  margin: 0 0 28px;
}
.overlay .play:hover { transform: translateY(-1px); }
.overlay .controls {
  font-size: 13px; opacity: .9;
  display: flex; gap: 18px; align-items: center; flex-wrap: wrap;
  justify-content: center;
}
.overlay .controls .group { display: inline-flex; align-items: center; }
.overlay .controls .label { margin-left: 8px; }
.overlay .k {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 26px; height: 26px;
  background: rgba(255,255,255,.14);
  border-radius: 5px;
  margin: 0 2px;
  font-weight: 700;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 14px;
  line-height: 1;
}
