/* Doom program — retro FPS styles scoped to the doom window. */

.window--doom {
  --bg-doom: #0a0a0a;
  --doom-red: #ff3b2f;
  --doom-orange: #ff9a1f;
  --doom-green: #39ff14;
  --text-dim: #8a8a8a;
  --font-heading: 'Press Start 2P', monospace;
  --font-body: 'VT323', monospace;
  max-width: 720px;
}

.window--doom .window-body {
  padding: 20px;
  background: var(--bg-doom);
}

.doom-stage {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
}

#doom-screen {
  display: block;
  width: 100%;
  border: 2px solid rgba(255, 59, 47, 0.35);
  border-radius: 4px;
  image-rendering: pixelated;
  background: #000;
  cursor: crosshair;
  touch-action: none;
}

.doom-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: rgba(10, 10, 10, 0.9);
  border-radius: 4px;
  text-align: center;
  padding: 16px;
}

.doom-overlay.is-hidden {
  display: none;
}

.doom-overlay-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--doom-red);
  text-shadow: 0 0 12px #ff3b2f, 0 0 28px #ff3b2f55;
  line-height: 1.5;
}

.doom-overlay-msg {
  font-family: var(--font-body);
  font-size: 1.2rem;
  color: var(--text-dim);
  line-height: 1.5;
}

.doom-btn {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  color: var(--bg-doom);
  background: var(--doom-red);
  border: none;
  border-radius: 6px;
  padding: 12px 22px;
  cursor: pointer;
  box-shadow: 0 0 12px rgba(255, 59, 47, 0.5);
}

.doom-btn:hover {
  filter: brightness(1.15);
}

/* Touch controls — hidden unless the device has a coarse pointer. */
.doom-touch {
  display: none;
  margin-top: 14px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

@media (pointer: coarse) {
  .doom-touch {
    display: flex;
  }
}

.doom-touch-pad {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.doom-touch-row {
  display: flex;
  gap: 6px;
}

.doom-touch-btn {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  min-width: 52px;
  min-height: 52px;
  color: var(--doom-red);
  background: #161616;
  border: 1px solid rgba(255, 59, 47, 0.4);
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}

.doom-touch-btn:active {
  background: #2a1210;
}

.doom-touch-btn--fire {
  font-size: 0.7rem;
  min-width: 84px;
  min-height: 84px;
  border-radius: 50%;
  color: var(--bg-doom);
  background: var(--doom-red);
  box-shadow: 0 0 12px rgba(255, 59, 47, 0.5);
}
