/* Required Notice: Copyright 2026 Petr Balvín <opensource@petrbalvin.org> (https://petrbalvin.org) */
/* SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0 */
/* Labyrint's own chrome. The maze canvas is as tall as it needs to be:
   the wrapper takes the canvas's own ratio (aspect-ratio: auto) and the
   canvas keeps its intrinsic shape instead of filling a fixed frame. */
.game-canvas {
  height: auto;
}

.ui-overlay {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  pointer-events: none;
  z-index: 10;
}

.dash-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(96, 239, 255, 0.3);
  border-radius: 12px;
}

.ui-text {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  color: #ffd700;
}

.ui-text svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Dash energy reads in the house cyan against the gold identity: the
   meter is the game's one cold signal. */
.dash-bar-bg {
  width: 80px;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.dash-bar-fill {
  height: 100%;
  background: #60efff;
  border-radius: 2px;
  transition: width 0.1s linear;
}

.mobile-btn.dash-btn {
  border-color: rgba(96, 239, 255, 0.5);
  color: #60efff;
  background: rgba(96, 239, 255, 0.1);
}

.mobile-btn.dash-btn.pressed {
  background: rgba(96, 239, 255, 0.4);
  box-shadow: 0 0 20px rgba(96, 239, 255, 0.5);
  border-color: #60efff;
  transform: scale(0.9);
}

.dash-btn.cooldown {
  opacity: 0.4;
  border-color: rgba(96, 239, 255, 0.2);
  color: rgba(96, 239, 255, 0.4);
  background: rgba(96, 239, 255, 0.05);
}
