/* Lormark Garden Chase - a maze chase in a hedge garden.
   Shared shell, buttons and colours come from kids-common.css. */

/* A wider stage than the other children's games: the maze is the game. */
#app {
  max-width: 960px;
}

.lm-logo {
  width: 64px;
  height: auto;
}

/* ===================== Menu ===================== */

.hero-pick {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.hero-card {
  width: 130px;
  border: 3px solid var(--kids-border);
  border-radius: 18px;
  background: var(--kids-card);
  padding: 8px 6px 10px;
  font-family: inherit;
  font-weight: 900;
  font-size: 1.05rem;
  color: var(--kids-ink);
  cursor: pointer;
}

.hero-card canvas {
  display: block;
  margin: 0 auto 4px;
  width: 84px;
  height: 84px;
}

.hero-card.on {
  border-color: var(--kids-green);
  background: #e8f7ef;
  box-shadow: 0 0 0 3px #bfe8d6;
}

.play-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.best-line {
  font-weight: 800;
  color: var(--kids-amber);
  font-size: 0.95rem;
}

.cast {
  width: 100%;
  max-width: 460px;
  background: var(--kids-card);
  border: 3px solid var(--kids-border);
  border-radius: 18px;
  padding: 8px 12px;
  text-align: left;
}

.cast-title {
  font-size: 0.85rem;
  font-weight: 900;
  color: var(--kids-ink-soft);
  margin-bottom: 4px;
}

.cast-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 3px 0;
}

.cast-row canvas {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.cast-row b {
  color: var(--kids-ink);
}

.cast-row small {
  display: block;
  color: var(--kids-muted);
  font-weight: 700;
}

/* ===================== Play ===================== */

.hud {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-bottom: 8px;
}

.hud .pill {
  background: var(--kids-card);
  border: 2px solid var(--kids-border);
  border-radius: 20px;
  padding: 4px 10px;
  font-weight: 900;
  color: var(--kids-ink);
  font-size: 0.95rem;
  white-space: nowrap;
}

.hud .pill.score {
  background: var(--kids-amber-pale);
  border-color: #f0d49c;
  color: var(--kids-amber);
}

.hud .spacer {
  flex: 1;
}

.icon-btn {
  border: none;
  border-radius: 12px;
  background: var(--kids-lilac-pale);
  color: var(--kids-ink-soft);
  font-family: inherit;
  font-weight: 900;
  font-size: 0.95rem;
  padding: 7px 12px;
  cursor: pointer;
}

.board {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(30, 60, 30, 0.25);
  background: #2c6b34;
}

#maze {
  display: block;
  width: 100%;
  height: auto;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.banner {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.94);
  border-radius: 18px;
  padding: 14px 22px;
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--kids-ink);
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  pointer-events: none;
  max-width: 85%;
}

.banner small {
  display: block;
  font-size: 0.9rem;
  color: var(--kids-muted);
  margin-top: 4px;
}

.keys-hint {
  text-align: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--kids-muted);
  margin-top: 8px;
}

/* On-screen controls for tablets and phones. */
.pad {
  display: none;
  justify-content: center;
  align-items: center;
  gap: 26px;
  margin-top: 12px;
}

.coarse .pad {
  display: flex;
}

.coarse .keys-hint {
  display: none;
}

.dpad {
  display: grid;
  grid-template-columns: repeat(3, 62px);
  grid-template-rows: repeat(3, 62px);
  gap: 4px;
}

.dpad button,
.bubble-btn {
  border: none;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 3px 0 #cfcae8;
  font-size: 1.6rem;
  color: var(--kids-ink-soft);
  cursor: pointer;
  touch-action: manipulation;
}

.dpad button:active,
.bubble-btn:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #cfcae8;
}

.dpad .up { grid-column: 2; grid-row: 1; }
.dpad .left { grid-column: 1; grid-row: 2; }
.dpad .right { grid-column: 3; grid-row: 2; }
.dpad .down { grid-column: 2; grid-row: 3; }

.bubble-btn {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  font-size: 2.3rem;
  background: radial-gradient(circle at 35% 30%, #ffffff, #cdeffd 70%);
  box-shadow: 0 3px 0 #9fd3ea;
}

.end-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.end-score {
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--kids-amber);
  margin-bottom: 10px;
}
