.mr-sub {
  opacity: 0.72;
  font-weight: 400;
  margin-left: 4px;
}

.mr-custom-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  margin-bottom: 10px;
  border-radius: 8px;
  background: var(--bg);
  border: 1px solid var(--border);
}

.mr-board-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mr-stage {
  display: inline-block;
  user-select: none;
}

.mr-outer {
  display: inline-grid;
  align-items: center;
  justify-items: center;
  gap: 3px;
}

.mr-coord {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  text-align: center;
}

.mr-board-box {
  position: relative;
  display: grid;
  gap: 3px;
  padding: 3px;
  border-radius: 10px;
  background: #14120f;
}

.mr-beam-svg {
  position: absolute;
  inset: 3px;
  width: calc(100% - 6px);
  height: calc(100% - 6px);
  pointer-events: none;
  z-index: 3;
}

.mr-cell {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 7px;
  border: 1px solid #2b2620;
  background: #1d1a16;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: border-color 0.12s ease, background 0.12s ease;
}

.mr-cell:hover {
  border-color: var(--primary);
}

.mr-cell.is-wall {
  background: linear-gradient(145deg, #3a342d 0%, #2a2520 100%);
  border-color: #4a433a;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.mr-cell.is-emitter {
  background: radial-gradient(circle, rgba(232, 95, 74, 0.35), #221714);
  border-color: #ef6a56;
}

.mr-cell.is-target {
  background: radial-gradient(circle, rgba(168, 118, 232, 0.25), #1f1926);
  border-color: #a876e8;
}

.mr-cell.is-target.is-lit {
  background: radial-gradient(circle, rgba(110, 200, 160, 0.42), #182721);
  border-color: var(--accent);
  box-shadow: 0 0 14px rgba(110, 200, 160, 0.45);
}

.mr-cell.is-changed {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(232, 160, 74, 0.42);
  background: rgba(232, 160, 74, 0.12);
}

.mr-cell.is-focus {
  box-shadow: 0 0 0 3px #fff2d6, 0 0 16px rgba(232, 160, 74, 0.65);
  z-index: 4;
}

.mr-mirror-svg,
.mr-icon-svg {
  width: 30px;
  height: 30px;
  position: relative;
  z-index: 4;
  pointer-events: none;
}

.mr-step-tag {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 17px;
  height: 17px;
  padding: 0 3px;
  border-radius: 999px;
  background: var(--primary);
  color: #12110e;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

@media (max-width: 560px) {
  .mr-cell {
    width: 32px;
    height: 32px;
  }
  .mr-mirror-svg,
  .mr-icon-svg {
    width: 22px;
    height: 22px;
  }
}
