/* ===== はんだんマシン 見た目 ===== */

.jg-rule {
  text-align: center;
  font-size: 1.15rem;
  line-height: 1.9;
  background: #fff;
  border-radius: 14px;
  padding: 14px 18px;
  margin: 10px auto;
  max-width: 680px;
  box-shadow: var(--shadow);
}

.jg-rule-title {
  font-weight: bold;
  font-size: 1.3rem;
  color: var(--primary-dark);
}

.jg-tag {
  display: inline-block;
  border-radius: 999px;
  padding: 2px 14px;
  color: #fff;
  font-weight: bold;
}

.jg-tag.yes { background: #2ecc71; }
.jg-tag.no { background: #e74c3c; }

.jg-machine {
  max-width: 680px;
  margin: 0 auto;
  background: #fff;
  border-radius: 18px;
  padding: 20px;
  box-shadow: var(--shadow);
}

.jg-queue {
  text-align: center;
  margin-bottom: 12px;
  font-size: 0.95rem;
  color: #777;
}

.jg-queue-item {
  display: inline-block;
  width: 28px;
  height: 28px;
  line-height: 28px;
  text-align: center;
  border-radius: 8px;
  background: #eee;
  margin: 0 3px;
}

.jg-queue-item.done { background: #d4f7dc; }
.jg-queue-item.now { background: #fff3b0; transform: scale(1.15); }

.jg-current-wrap {
  text-align: center;
  min-height: 130px;
}

.jg-current {
  display: inline-block;
  min-width: 160px;
  background: linear-gradient(135deg, #fffbe6, #fff3b0);
  border: 4px solid #ffc300;
  border-radius: 18px;
  padding: 18px 28px;
  font-size: 1.7rem;
  font-weight: bold;
  box-shadow: var(--shadow);
}

.jg-current.shake {
  animation: jg-shake 0.4s;
}

@keyframes jg-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-8px); }
  75% { transform: translateX(8px); }
}

.jg-note {
  margin-top: 10px;
  min-height: 2.6em;
  font-size: 1rem;
  line-height: 1.6;
}

.jg-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin: 14px 0 20px;
}

.jg-yes, .jg-no {
  font-family: inherit;
  font-size: 1.3rem;
  font-weight: bold;
  border: none;
  border-radius: 16px;
  padding: 14px 34px;
  cursor: pointer;
  color: #fff;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.2);
}

.jg-yes { background: #2ecc71; }
.jg-no { background: #e74c3c; }

.jg-yes:active, .jg-no:active {
  transform: translateY(4px);
  box-shadow: none;
}

.jg-boxes {
  display: flex;
  gap: 14px;
}

.jg-box {
  flex: 1;
  border-radius: 14px;
  padding: 12px;
  min-height: 110px;
}

.jg-box.yes { background: #e9f9ef; border: 3px solid #2ecc71; }
.jg-box.no { background: #fdeeec; border: 3px solid #e74c3c; }

.jg-box-label {
  font-weight: bold;
  text-align: center;
  margin-bottom: 8px;
}

.jg-box-items {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}

.jg-sorted {
  background: #fff;
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 0.95rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  animation: pop 0.3s;
}

@media (max-width: 600px) {
  .jg-boxes { flex-direction: column; }
}
