.hg-layout {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  flex-wrap: wrap;
}

.hg-wrap {
  position: relative;
  flex: 1 1 560px;
  min-width: 300px;
  max-width: 720px;
  border-radius: 10px;
  overflow: hidden;
  background: #05050a;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

#hgCanvas {
  display: block;
  width: 100%;
  height: 560px;
  cursor: crosshair;
  touch-action: none;
}

.hg-hud {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  gap: 1rem;
  background: rgba(0, 0, 0, 0.55);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.85em;
  pointer-events: none;
  border-left: 3px solid #5588ff;
}

.hg-toast {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(85, 136, 255, 0.85);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.85em;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.hg-toast[hidden] {
  display: none;
}

.hg-panel {
  flex: 0 0 300px;
  min-width: 260px;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.hg-panel h3 {
  margin: 0.6rem 0 0.2rem;
  font-size: 0.95em;
  opacity: 0.85;
}

.hg-panel h3:first-child {
  margin-top: 0;
}

.hg-control label {
  display: block;
  font-size: 0.8rem;
  margin-bottom: 3px;
  opacity: 0.85;
}

.hg-control input[type="range"],
.hg-control select {
  width: 100%;
}

.hg-checkbox label {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hg-checkbox input {
  width: auto;
}

.hg-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.6rem;
}

.hg-stats {
  margin-top: 0.6rem;
  font-size: 0.85em;
  opacity: 0.85;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
