/* Styles specific to the Level 3 demos. Shared demo chrome is in ../demos.css */

.controls {
  display: flex; flex-wrap: wrap; gap: .5rem;
  justify-content: center; margin-top: .9rem;
}

.btn {
  padding: .55rem 1rem; min-height: 40px;
  font-size: .88rem; font-weight: 650;
  border: 1px solid var(--accent); border-radius: 99px;
  background: transparent; color: var(--accent);
  cursor: pointer;
}
.btn:hover { background: var(--accent-soft); }
.btn.solid { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn:disabled { opacity: .4; cursor: default; }

@media (prefers-color-scheme: dark) { .btn.solid { color: #14201a; } }
@media (pointer: coarse) { .btn { min-height: 44px; } }

.hint { font-size: .8rem; color: var(--muted); text-align: center; margin: .6rem 0 0; }

.readout {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: .82rem; color: var(--muted);
  text-align: center; margin-top: .5rem; min-height: 1.2em;
}

/* 1 — first person maze */
.fps-wrap { display: flex; flex-direction: column; align-items: center; width: 100%; }
#fps { border-radius: 10px; background: #000; }
.dpad {
  display: grid;
  grid-template-columns: repeat(3, 3rem);
  grid-template-rows: repeat(2, 3rem);
  gap: .35rem; margin-top: .8rem;
}
.dpad button {
  border: 1px solid var(--accent); background: transparent;
  color: var(--accent); border-radius: 9px;
  font-size: 1.1rem; font-weight: 700; cursor: pointer;
  touch-action: manipulation; user-select: none;
}
.dpad button:active { background: var(--accent-soft); }
.dpad .up { grid-column: 2; grid-row: 1; }
.dpad .left { grid-column: 1; grid-row: 2; }
.dpad .down { grid-column: 2; grid-row: 2; }
.dpad .right { grid-column: 3; grid-row: 2; }

/* 2 — fractal */
#fractal { cursor: zoom-in; }

/* 9 — breakout */
#brk { background: #14100c; border-radius: 10px; touch-action: none; }

/* 10 — neural net */
#brain { cursor: crosshair; }

/* shared canvas sizing */
.stage canvas { max-width: 100%; }
