/* Bomberman — moninpeli */

.bm-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
}

.bm-hud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
  width: 100%;
}

.bm-player-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(20, 30, 48, 0.55);
  border: 2px solid transparent;
  font-size: 0.88rem;
}

.bm-player-chip.dead {
  opacity: 0.45;
  text-decoration: line-through;
}

.bm-player-chip.you {
  box-shadow: 0 0 0 2px rgba(240, 193, 75, 0.35);
}

.bm-dot {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
}

.bm-board {
  display: grid;
  gap: 1px;
  padding: 4px;
  background: #0a1220;
  border-radius: 10px;
  border: 2px solid rgba(200, 220, 245, 0.15);
  max-width: min(96vw, 520px);
  width: 100%;
  aspect-ratio: 13 / 11;
  touch-action: none;
  user-select: none;
}

.bm-cell {
  position: relative;
  border-radius: 2px;
  background: #1a2840;
  min-width: 0;
  min-height: 0;
}

.bm-cell.hard {
  background: #3a4a62;
  box-shadow: inset 0 0 0 1px #55667e;
}

.bm-cell.soft {
  background: linear-gradient(145deg, #8b5a3c, #6b4030);
  box-shadow: inset 0 0 0 1px #a07050;
}

.bm-cell.blast {
  background: #ff8a4c !important;
  box-shadow: 0 0 8px #ff6a20;
}

.bm-bomb {
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  background: #1a1a22;
  border: 2px solid #555;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.5);
}

.bm-bomb::after {
  content: "";
  position: absolute;
  top: -25%;
  right: 20%;
  width: 25%;
  height: 35%;
  background: #f0c14b;
  border-radius: 2px;
}

.bm-power {
  position: absolute;
  inset: 22%;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(0.55rem, 2.2vw, 0.85rem);
  font-weight: 800;
  color: #0a1220;
}

.bm-power.bomb {
  background: #7ddea2;
}

.bm-power.fire {
  background: #f45b9d;
}

.bm-player {
  position: absolute;
  inset: 15%;
  border-radius: 40% 40% 35% 35%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  z-index: 2;
}

.bm-player.you-outline {
  box-shadow: 0 0 0 2px #f0c14b;
}

.bm-controls {
  display: grid;
  grid-template-columns: repeat(3, 3.2rem);
  grid-template-rows: repeat(3, 3.2rem);
  gap: 0.35rem;
  justify-content: center;
  margin-top: 0.25rem;
}

.bm-controls button {
  font-size: 1.1rem;
  padding: 0;
}

.bm-controls .bm-btn-up {
  grid-column: 2;
  grid-row: 1;
}

.bm-controls .bm-btn-left {
  grid-column: 1;
  grid-row: 2;
}

.bm-controls .bm-btn-bomb {
  grid-column: 2;
  grid-row: 2;
  font-size: 0.95rem;
}

.bm-controls .bm-btn-right {
  grid-column: 3;
  grid-row: 2;
}

.bm-controls .bm-btn-down {
  grid-column: 2;
  grid-row: 3;
}

.bm-status {
  text-align: center;
  min-height: 1.4em;
  font-weight: 600;
}

.bm-status.win {
  color: #86efac;
}

.bm-local-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.5rem 0;
}

.bm-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: rgba(200, 220, 245, 0.08);
  font-size: 0.85rem;
}

.bm-keys-hint {
  text-align: center;
  font-size: 0.85rem;
  color: #8899b0;
}
