﻿* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at top, rgba(92, 15, 15, 0.25), transparent 35%),
    linear-gradient(180deg, #15171d 0%, #090a0d 100%);
  color: #d7d5d0;
  font-family: "Courier New", monospace;
}

body {
  display: grid;
  place-items: center;
  padding: 24px;
}

.shell {
  width: min(1120px, 100%);
  display: grid;
  gap: 18px;
}

.hud-panel {
  padding: 18px 20px;
  border: 1px solid rgba(185, 44, 44, 0.3);
  background: linear-gradient(180deg, rgba(28, 32, 40, 0.92), rgba(10, 12, 16, 0.5));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.hud-panel h1 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.subtitle {
  margin: 8px 0 0;
  color: #a2a6ae;
}

.controls {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: #c8cbd1;
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.controls p {
  margin: 0;
}

.game-frame {
  position: relative;
  border: 1px solid rgba(185, 44, 44, 0.4);
  background: #040507;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}

canvas {
  display: block;
  width: 100%;
  height: auto;
  background: #0b0d11;
  image-rendering: pixelated;
}

.scanlines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.03) 0,
      rgba(255, 255, 255, 0.03) 1px,
      transparent 2px,
      transparent 4px
    );
  opacity: 0.35;
}

@media (max-width: 800px) {
  body {
    padding: 12px;
  }

  .controls {
    display: grid;
    gap: 8px;
  }
}



.action-button {
  margin-top: 14px;
  border: 1px solid rgba(185, 44, 44, 0.55);
  background: linear-gradient(180deg, #262b33 0%, #12161b 100%);
  color: #d7d5d0;
  font: bold 0.9rem "Courier New", monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 10px 14px;
  cursor: pointer;
  image-rendering: pixelated;
}

.action-button:hover {
  background: linear-gradient(180deg, #313844 0%, #171b21 100%);
}

.action-button:active {
  transform: translateY(1px);
}
