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

.cr-mode-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}

.cr-mode-tabs .tb-brush {
  justify-content: center;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
}

.cr-ico {
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 6px;
  vertical-align: -2px;
  flex-shrink: 0;
}
.cr-ico-G {
  background: #69d96f;
  clip-path: polygon(50% 4%, 94% 38%, 50% 96%, 6% 38%);
}
.cr-ico-B {
  background: #9cd6ff;
  clip-path: polygon(30% 4%, 70% 4%, 96% 30%, 96% 70%, 70% 96%, 30% 96%, 4% 70%, 4% 30%);
}
.cr-ico-R {
  background: #eb5e5e;
  clip-path: polygon(50% 2%, 96% 50%, 50% 98%, 4% 50%);
}
.cr-ico-H {
  background: #6c8cff;
  border-radius: 50% 50% 10% 50%;
  transform: rotate(45deg) scale(0.85);
}

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

.cr-stage {
  display: inline-grid;
  gap: 8px;
  align-items: center;
  justify-items: center;
  user-select: none;
}

.cr-col-label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}

.cr-cell {
  width: 78px;
  height: 86px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  background: linear-gradient(180deg, #25211c 0%, #181512 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 9px 6px 7px;
  cursor: pointer;
  position: relative;
  transition: border-color 0.14s ease, transform 0.12s ease, box-shadow 0.14s ease;
}

.cr-cell:hover {
  border-color: var(--primary);
  transform: translateY(-1px);
}

.cr-cell.is-matched {
  border-color: rgba(110, 200, 160, 0.72);
  box-shadow: inset 0 0 0 1px rgba(110, 200, 160, 0.28), 0 0 14px rgba(110, 200, 160, 0.12);
}

.cr-cell.is-moved {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(232, 160, 74, 0.45);
}

.cr-float-svg {
  width: 40px;
  height: 40px;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.45));
}

.cr-ground-row {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(18, 17, 14, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.cr-ground-svg {
  width: 15px;
  height: 15px;
}

.cr-match-dot {
  position: absolute;
  top: 5px;
  right: 6px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.cr-arrow-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(232, 160, 74, 0.35);
  background: rgba(232, 160, 74, 0.1);
  color: var(--primary);
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.14s ease, transform 0.12s ease, box-shadow 0.14s ease;
}

.cr-arrow-btn:hover {
  background: rgba(232, 160, 74, 0.24);
  border-color: var(--primary);
  transform: scale(1.06);
}

.cr-arrow-btn.is-next-step {
  background: var(--primary);
  color: var(--bg);
  border-color: #fff2d6;
  box-shadow: 0 0 0 3px rgba(232, 160, 74, 0.4), 0 0 18px rgba(232, 160, 74, 0.55);
  animation: crPulse 1.1s ease-in-out infinite;
}

@keyframes crPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

@media (max-width: 520px) {
  .cr-cell {
    width: 62px;
    height: 72px;
    padding: 6px 4px;
  }
  .cr-float-svg {
    width: 30px;
    height: 30px;
  }
  .cr-arrow-btn {
    width: 34px;
    height: 34px;
    font-size: 15px;
  }
}
