/* ===== 공 무게 게임 전용 스타일 ===== */

.hint {
  text-align: center; color: var(--muted); font-size: 13px;
  margin: 6px 0 14px; min-height: 20px;
}
.order-guide { text-align: center; font-size: 14px; color: var(--text); font-weight: 600; margin-bottom: 16px; }

/* ---- 저울 ---- */
.scale {
  position: relative;
  height: 180px;
  margin: 10px auto 6px;
  max-width: 340px;
}
.beam {
  position: absolute;
  top: 34px; left: 50%;
  width: 280px; height: 10px;
  margin-left: -140px;
  background: linear-gradient(180deg, #7c86b5, #5b6489);
  border-radius: 6px;
  transform-origin: center center;
  transition: transform .7s cubic-bezier(.34,1.4,.5,1);
  z-index: 3;
}
.scale.tilt-l .beam { transform: rotate(-9deg); }
.scale.tilt-r .beam { transform: rotate(9deg); }

.arm { position: absolute; top: 6px; width: 2px; height: 34px; background: #8b93bd; }
.arm-l { left: 8px; }
.arm-r { right: 8px; }

.pan {
  position: absolute; top: 40px;
  width: 74px; height: 44px; margin-left: -37px;
  border-radius: 0 0 40px 40px / 0 0 30px 30px;
  background: linear-gradient(180deg, #eef0fb, #d7dbf3);
  border: 2px solid #b9c0e6; border-top: none;
  display: grid; place-items: center;
  box-shadow: inset 0 -3px 6px rgba(0,0,0,.05);
}
.pan-l { left: 8px; }
.pan-r { left: 272px; }
.pan.lit { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(91,108,255,.2); }

.pivot {
  position: absolute; top: 28px; left: 50%; margin-left: -12px;
  width: 0; height: 0;
  border-left: 12px solid transparent; border-right: 12px solid transparent;
  border-bottom: 22px solid #5b6489; z-index: 2;
}
.stand {
  position: absolute; top: 48px; left: 50%; margin-left: -4px;
  width: 8px; height: 110px; background: #5b6489; border-radius: 4px;
}
.base {
  position: absolute; bottom: 6px; left: 50%; margin-left: -55px;
  width: 110px; height: 12px; background: #5b6489; border-radius: 6px;
}

/* ---- 공 ---- */
.ball-pool {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px;
  margin: 8px 0; min-height: 54px;
}
.ball {
  width: 50px; height: 50px; border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 800; font-size: 18px; color: #fff;
  cursor: pointer; user-select: none;
  box-shadow: inset 0 -4px 8px rgba(0,0,0,.18), 0 3px 6px rgba(0,0,0,.15);
  transition: transform .12s ease, opacity .2s;
  border: 2px solid rgba(255,255,255,.5);
}
.ball:active { transform: scale(.9); }
.ball.on-pan { width: 40px; height: 40px; font-size: 15px; cursor: default; }
.ball.placed { opacity: .25; pointer-events: none; }
.ball.sm { width: 40px; height: 40px; font-size: 15px; }

/* ---- 비교 기록 ---- */
.history {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
  margin: 12px 0 2px; min-height: 10px;
}
.hchip {
  display: inline-flex; align-items: center; gap: 6px;
  background: #f3f4fb; border: 1px solid var(--line);
  border-radius: 999px; padding: 4px 10px; font-size: 13px; font-weight: 700;
}
.hchip .dot { width: 14px; height: 14px; border-radius: 50%; }
.hchip .lt { color: var(--muted); font-weight: 800; }

/* ---- 순서 슬롯 ---- */
.slots {
  display: flex; justify-content: center; gap: 10px; flex-wrap: wrap;
  margin-bottom: 18px;
}
.slot {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.slot .drop {
  width: 54px; height: 54px; border-radius: 50%;
  border: 2px dashed #c2c8e6; background: #fafbff;
  display: grid; place-items: center; cursor: pointer;
}
.slot .drop.filled { border-style: solid; }
.slot .idx { font-size: 11px; color: var(--muted); font-weight: 700; }
/* 슬롯 라벨(가벼움/무거움)은 balance.js에서 i18n으로 설정 */

/* ---- 결과 공개 ---- */
.reveal { margin: 14px 0 4px; }
.reveal .rrow { margin-bottom: 14px; }
.reveal .rlabel { font-size: 12px; color: var(--muted); font-weight: 700; margin-bottom: 6px; text-align: center; }
.reveal .rline { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.reveal .cell { position: relative; }
.reveal .mark {
  position: absolute; top: -6px; right: -6px;
  width: 20px; height: 20px; border-radius: 50%;
  display: grid; place-items: center; font-size: 12px; color: #fff;
}
.reveal .mark.ok { background: var(--good); }
.reveal .mark.no { background: var(--bad); }
