.sm_box {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  background: #f3f3f3;
  border-radius: 10px;
  padding: 30px 0;
}

.sm_container {
  width: auto;
  display: flex;
  flex-direction: column;
  margin: 10px 0;
}

.sm_slip {
  margin-bottom: 20px;
  white-space: nowrap;
  border: 1px dashed #666;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.07);
  padding: 8px 5px;
  cursor: move;
  font-size: 21px;
  overflow: hidden;
  border-radius: 0;
  transition: all 0.2s ease;
  user-select: none;
  width: auto;
  min-width: 240px;
  flex-shrink: 0;
}

.sm_leftCol {
  text-align: right;
}

.sm_leftCol .sm_slip {
  margin-left: auto;
  margin-right: 0;
}

.sm_container:not(.sm_leftCol) .sm_slip {
  margin-left: 0;
  margin-right: auto;
}

.swap-highlight {
  background-color: #cce6ff !important;
  border: 2px solid #2196f3 !important;
}

.sm_slip.over {
  border: 3px dotted #666;
}

.sm_slip.slip-reordering {
  background-color: #ddd;
  border: 3px dotted #666;
  transform: rotate(1deg);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.sm_slip.green {
  background: #d4edda;
  border-color: #28a745;
  color: #155724;
}

.sm_slip.unselectable {
  cursor: default;
  opacity: 0.8;
}

.sm_spacer {
  visibility: hidden;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  pointer-events: none;
}

#checkDiv {
  text-align: center;
  margin: 32px 0 0 0;
}

.centerAlign {
  text-align: center;
}

.congrats {
  color: #222;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  margin: 24px 0 0 0;
  padding: 0;
  background: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
  display: none;
  position: static;
}

@keyframes flashRed {
  0% { background: #fff; }
  20% { background: #f8d7da; }
  80% { background: #f8d7da; }
  100% { background: #fff; }
}

@keyframes jiggle {
  0% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
  100% { transform: translateX(0); }
}

.flash-red {
  animation: flashRed 0.4s, jiggle 0.4s !important;
}

@media (max-width: 800px) {
  .sm_slip {
    font-size: 17px;
  }
  .sm_box {
    flex-direction: column;
    align-items: center;
  }
  .sm_container {
    width: 100%;
    margin: 10px auto;
  }
}