﻿:root {
  --c-black: #000000;
  --c-red: #ff0000;
  --c-white: #ffffff;
  --c-blue: #06163e;
  --c-gray: #d0dbd7;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

body {
  margin: 0;
  min-height: 100%;
  background: var(--c-black);
  color: var(--c-white);
  font-family: "Courier New", monospace;
}

.shell {
  width: 100vw;
  height: 100vh;
  background: var(--c-black);
  padding: 10px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 8px;
}

.hud {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 2px solid var(--c-red);
  padding: 8px 10px;
  font-size: 14px;
  color: var(--c-gray);
  background: var(--c-black);
}

.hud strong {
  color: var(--c-white);
  font-size: 16px;
}

.progress-wrap {
  flex: 1;
  max-width: 520px;
  height: 16px;
  border: 2px solid var(--c-white);
  background: var(--c-blue);
  position: relative;
  overflow: hidden;
}

.progress-bar {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  background: var(--c-red);
}

.stage {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 2px solid var(--c-white);
  background: var(--c-blue);
  overflow: hidden;
}

.stage canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  display: block;
}

#hydraBg {
  z-index: 1;
  opacity: 0;
  pointer-events: none;
  transition: opacity 260ms ease;
}

#hydraBg.active {
  opacity: 1;
}

#game {
  z-index: 2;
  background: transparent;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.help {
  font-size: 12px;
  color: var(--c-gray);
  border: 2px solid var(--c-red);
  padding: 6px 8px;
  background: var(--c-black);
}

@media (max-width: 900px) {
  .hud {
    flex-wrap: wrap;
    gap: 8px;
  }

  .hud strong {
    width: 100%;
  }

  .progress-wrap {
    max-width: none;
  }
}
