/* 단체 가위바위보 */
.rp-call {
  margin: 0; min-height: 2.7em; display: flex; align-items: center; justify-content: center; text-align: center;
  font-size: clamp(18px, 4.6vw, 24px); font-weight: 900; letter-spacing: -0.02em; line-height: 1.35;
}
.rp-cards { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
.rp-cards.is-many { grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); }
.rp-card {
  --c: var(--primary);
  display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0;
  padding: 12px 6px 8px; border-radius: 16px; background: var(--surface);
  border: 2px solid var(--border); box-shadow: inset 0 4px 0 var(--c);
  transition: opacity .3s, filter .3s, border-color .2s, background .2s;
}
.rp-hand { display: inline-block; font-size: 42px; line-height: 1.1; transform-origin: 50% 80%; }
.rp-cards.is-many .rp-hand { font-size: 34px; }
.rp-name { font-weight: 800; font-size: 14px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rp-tag { font-size: 11.5px; font-weight: 700; color: var(--text-3); min-height: 1.3em; }
.rp-card.is-shaking .rp-hand { animation: rp-pump .4s ease-in-out infinite; }
.rp-card.is-revealed .rp-hand { animation: bb-pop .3s cubic-bezier(.2, 1.4, .4, 1); }
.rp-card.is-win { border-color: var(--green); }
.rp-card.is-lose { border-color: var(--red); }
.rp-card.is-out { opacity: .42; filter: grayscale(1); border-style: dashed; }
.rp-card.is-final { border-color: var(--primary); background: var(--primary-soft); }
.rp-card.is-final .rp-hand { animation: bb-bounce .6s ease-in-out infinite; }
.rp-log { margin: 0; padding-left: 1.3em; display: grid; gap: 4px; font-size: 14px; line-height: 1.5; max-height: 240px; overflow: auto; color: var(--text-2); }
.rp-log li:first-child { color: var(--text); font-weight: 700; }

/* 나 vs 컴퓨터 */
.rp-score { display: flex; align-items: center; justify-content: center; gap: 14px; font-weight: 800; color: var(--text-2); }
.rp-score-side { display: inline-flex; align-items: center; gap: 10px; }
.rp-score-n { font-size: 40px; font-family: var(--font-num); color: var(--text); min-width: 1.2em; text-align: center; }
.rp-score-sep { font-size: 30px; color: var(--text-3); }
.rp-arena {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px;
  background: var(--surface-2); border-radius: var(--radius-lg); padding: 18px 8px; min-height: 170px;
}
.rp-side { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.rp-side-label { font-weight: 800; color: var(--text-2); font-size: 14px; }
.rp-big-hand { display: inline-block; font-size: clamp(58px, 18vw, 96px); line-height: 1; transform-origin: 50% 85%; transition: filter .3s; }
.rp-hand-in { display: inline-block; }
.rp-mirror { transform: scaleX(-1); }
.rp-vs { font-weight: 900; font-size: 20px; color: var(--text-3); font-family: var(--font-num); }
.rp-arena.is-shaking .rp-big-hand { animation: rp-pump .36s ease-in-out infinite; }
.rp-arena.is-win .rp-me .rp-big-hand,
.rp-arena.is-lose .rp-cpu .rp-big-hand { filter: drop-shadow(0 0 14px color-mix(in srgb, var(--green) 70%, transparent)); animation: bb-pop .35s cubic-bezier(.2, 1.4, .4, 1); }
.rp-arena.is-win .rp-cpu .rp-big-hand,
.rp-arena.is-lose .rp-me .rp-big-hand { opacity: .55; filter: grayscale(.6); }
.rp-arena.is-draw .rp-big-hand { animation: bb-pop .35s ease-out; }
.rp-result { margin: 0; text-align: center; font-weight: 800; font-size: clamp(16px, 4.2vw, 19px); min-height: 1.5em; }
.rp-choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.rp-choice {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  min-height: 92px; border-radius: 18px; border: 2px solid var(--border-strong); background: var(--surface);
  color: var(--text); cursor: pointer; transition: transform .08s, border-color .15s, background .15s;
  -webkit-tap-highlight-color: transparent;
}
.rp-choice:hover:not(:disabled) { border-color: var(--primary); background: var(--primary-soft); }
.rp-choice:active:not(:disabled) { transform: scale(.96); }
.rp-choice:disabled { cursor: default; opacity: .55; }
.rp-choice.is-picked { opacity: 1; border-color: var(--primary); background: var(--primary-soft); }
.rp-choice-e { font-size: 40px; line-height: 1.1; }
.rp-choice-n { font-weight: 800; font-size: 15px; }
.rp-recent { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; min-height: 28px; }
.rp-dot {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  font-size: 12px; font-weight: 800; background: var(--surface-3); color: var(--text-2);
}
.rp-dot.is-win { background: var(--green); color: #fff; }
.rp-dot.is-lose { background: var(--red); color: #fff; }

@keyframes rp-pump {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-12px) rotate(-10deg); }
}
