* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #04070f;
  color: #eef2ff;
  font-family: Outfit, "Segoe UI", sans-serif;
}

[hidden] {
  display: none !important;
}

.boot,
.game {
  position: fixed;
  inset: 0;
}

.art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}

.veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(4, 7, 15, 0.22) 0%, rgba(4, 7, 15, 0.08) 40%, rgba(4, 7, 15, 0.82) 100%);
}

.copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2rem 1.4rem 2.2rem;
  text-align: center;
}

.mark {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: #ffd27a;
}

h1 {
  margin: 0.3rem 0 0.5rem;
  font-family: Orbitron, sans-serif;
  font-size: clamp(2.4rem, 8vw, 4.4rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-shadow: 0 2px 28px rgba(255, 196, 80, 0.35);
}

.line {
  margin: 0 auto 0.85rem;
  max-width: 28rem;
  font-size: 1.12rem;
  line-height: 1.45;
  color: #e8eeff;
}

.how {
  margin: 0 auto 1.15rem;
  padding: 0;
  max-width: 28rem;
  list-style: none;
  color: #c5d0ea;
  font-size: 0.92rem;
  line-height: 1.55;
}

#boot-start,
.win button {
  border: 0;
  background: #ffd27a;
  color: #1a1204;
  font: inherit;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.7rem 1.6rem;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 0 28px rgba(255, 196, 80, 0.35);
}

#boot-start:hover,
.win button:hover {
  background: #ffe6a8;
}

.back {
  display: block;
  margin-top: 0.95rem;
  color: #9ecbff;
  text-decoration: none;
  letter-spacing: 0.04em;
}

.back:hover {
  color: #fff;
}

#cv {
  display: block;
  width: 100%;
  height: 100%;
}

.hud {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 6;
  padding: 1rem 1.1rem;
}

.brand {
  margin: 0;
  font-family: Orbitron, sans-serif;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 1.05rem;
  color: #ffe7b0;
  text-shadow: 0 0 18px rgba(255, 196, 80, 0.45);
}

.mission {
  position: absolute;
  left: 50%;
  top: 1rem;
  transform: translateX(-50%);
  margin: 0;
  padding: 0.4rem 0.85rem;
  max-width: min(90vw, 30rem);
  background: rgba(6, 10, 20, 0.55);
  border: 1px solid rgba(255, 210, 122, 0.28);
  border-radius: 999px;
  font-size: 0.95rem;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.readouts {
  position: absolute;
  left: 1.1rem;
  bottom: 1.1rem;
  display: flex;
  gap: 0.45rem;
}

.stat {
  margin: 0;
  padding: 0.32rem 0.65rem;
  background: rgba(6, 10, 20, 0.55);
  border: 1px solid rgba(158, 203, 255, 0.22);
  border-radius: 999px;
  font-family: Orbitron, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.hint {
  position: absolute;
  right: 1.1rem;
  bottom: 1.1rem;
  margin: 0;
  font-size: 0.88rem;
  color: #c5d0ea;
}

kbd {
  display: inline-block;
  padding: 0 0.28rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 4px;
  font: inherit;
}

.pause,
.win {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0.55rem;
  background: rgba(4, 7, 15, 0.62);
  z-index: 20;
  pointer-events: auto;
  text-align: center;
}

.pause h2,
.win h2 {
  margin: 0;
  font-family: Orbitron, sans-serif;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: clamp(2.2rem, 8vw, 3.6rem);
  color: #ffd27a;
}

.pause p,
.win p {
  margin: 0;
  font-size: 1.1rem;
  color: #e8eeff;
}
