.dungeon-view {
  position: relative;
  width: 100%;
  height: 100%;
}

.dungeon-canvas {
  display: block;
  width: 100%;
  height: 100%;
  background: rgb(31, 28, 26);
  touch-action: none;
}

/* Temporaere Debug-Steuerung (Issue #8/#31): funktional, zurueckhaltend,
   keine grelle Standard-Game-UI (docs/art/HUD_RULES.md). */
.touch-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 0 calc(var(--safe-right) + 16px) calc(var(--safe-bottom) + 16px) calc(var(--safe-left) + 16px);
  pointer-events: none;
}

.touch-controls-group {
  display: flex;
  gap: 10px;
  pointer-events: auto;
}

.touch-button {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid rgba(243, 235, 221, 0.6);
  background: rgba(56, 66, 63, 0.55);
  color: var(--paper-light);
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  -webkit-user-select: none;
}

.touch-button-jump {
  width: 84px;
  height: 84px;
  font-size: 15px;
  pointer-events: auto;
}

.debug-toggle {
  position: absolute;
  top: calc(var(--safe-top) + 12px);
  right: calc(var(--safe-right) + 12px);
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid var(--paper-shadow);
  background: rgba(231, 216, 197, 0.9);
  color: var(--ink-primary);
  font-size: 14px;
}

.debug-toggle[aria-pressed="true"] {
  background: var(--magic-cyan);
  color: var(--ink-primary);
}

/* Sichtbarer Debug-Umschalter fuer richtige/falsche Torergebnisse (Issue
   #31, Reviewbefund BLOCKER B, zweite Reviewrunde auf PR #32). Funktional,
   zurueckhaltend, keine finale HUD-Gestaltung. */
.gate-debug-panel {
  position: absolute;
  top: calc(var(--safe-top) + 12px);
  left: calc(var(--safe-left) + 12px);
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--paper-shadow);
  background: rgba(231, 216, 197, 0.9);
  color: var(--ink-primary);
  font-size: 13px;
}

.gate-debug-title {
  font-weight: 600;
}

.gate-debug-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.gate-debug-label {
  min-width: 52px;
}

.gate-debug-button {
  min-height: 32px;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid var(--paper-shadow);
  background: var(--paper-warm);
  color: var(--ink-primary);
  font-size: 12px;
}

.gate-debug-button[aria-pressed="true"] {
  background: var(--magic-cyan);
}

@media (max-width: 640px) {
  .touch-button {
    width: 48px;
    height: 48px;
  }

  .touch-button-jump {
    width: 64px;
    height: 64px;
  }
}
