body {
  padding-bottom: 76px;
}

.reactor-header {
  width: 100%;
  max-width: none;
  min-height: 64px;
  margin: 0;
  padding: .75rem 1rem;
  border-bottom: 1px solid #1e4256;
  background: rgba(6, 19, 29, .95);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(8px);
}

.mission-header-identity {
  display: flex;
  align-items: center;
  gap: .8rem;
  min-width: 0;
}

.mission-header-identity strong,
.mission-header-identity .subtitle {
  display: block;
}

.mission-header-identity strong {
  letter-spacing: .09em;
}

.reactor-header .status {
  min-width: max-content;
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: .55rem;
  flex-wrap: wrap;
}

.reactor-game-footer {
  width: 100%;
  min-height: 68px;
  padding: 7px max(12px, calc((100vw - 1060px) / 2));
  border-top: 1px solid #1e4256;
  background: rgba(6, 19, 29, .96);
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 25;
  backdrop-filter: blur(8px);
}

.reactor-game-footer .hud {
  margin: 0;
  grid-template-columns: repeat(7, minmax(82px, 1fr));
}

.reactor-game-footer .hud .box {
  padding: 5px 8px;
  border-color: #2c5266;
  border-radius: 10px;
  background: #0a202d;
}

.reactor-game-footer .hud b {
  font-size: 14px;
}

canvas {
  max-height: calc(100vh - 250px);
}

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

  .reactor-game-footer {
    overflow-x: auto;
    padding-inline: 8px;
  }

  .reactor-game-footer .hud {
    min-width: max-content;
    display: flex;
    gap: 6px;
  }

  .reactor-game-footer .hud .box {
    width: 96px;
    flex: 0 0 96px;
  }
}

@media (max-width: 520px) {
  .reactor-header {
    min-height: 58px;
    padding: .55rem .7rem;
    gap: .45rem;
  }

  .mission-header-identity {
    gap: .45rem;
  }

  .mission-header-identity .subtitle {
    display: none;
  }

  .mission-header-identity strong {
    font-size: 13px;
  }
}
