/* 🛡️ 팀 대결(3대3 · 5대5) 꾸미기 */

.판 select { margin: 4px; }

/* 팀 고르는 칸 여러 개 */
.선수고르기판 {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px;
}

.선수고르기판 select { max-width: 220px; }

/* 대기 중인 쿠키 줄 */
.대기줄판 {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin: 14px auto;
}

.대기줄 {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 20px;
  padding: 10px 14px;
  min-width: 260px;
  max-width: 420px;
}

.대기줄 h4 {
  font-size: 17px;
  margin: 0 0 8px;
  color: #b5477a;
}

.대기칸 {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.대기쿠키 {
  display: inline-block;
  background: #fff6ef;
  border: 3px solid #ffd0b0;
  border-radius: 14px;
  padding: 8px 12px;
  margin: 0;
  font-size: 15px;
  font-weight: bold;
  color: #3a2214;
  box-shadow: none;
  line-height: 1.4;
}

button.대기쿠키 { cursor: default; }

.대기쿠키.싸우는중 {
  border-color: #b5477a;
  background: #ffe0f0;
}

.대기쿠키.바꿀수있음 {
  border-color: #2c9e5b;
  background: #eaffef;
  cursor: pointer;
  animation: 살짝콩 1.4s infinite;
}

.대기쿠키.바꿀수있음:hover { transform: scale(1.08); }

@keyframes 살짝콩 {
  0%, 100% { box-shadow: 0 0 0 rgba(44, 158, 91, 0); }
  50% { box-shadow: 0 0 12px rgba(44, 158, 91, 0.7); }
}

.대기쿠키.쓰러진쿠키 {
  opacity: 0.45;
  text-decoration: line-through;
  animation: none;
  cursor: default;
}

.교체안내 {
  font-size: 15px;
  color: #6b5344;
  margin: 8px 0 0;
}

/* 🎮 행동 고르는 판 */
.행동판 {
  background: rgba(255, 255, 255, 0.96);
  border: 5px solid #ffd93d;
  border-radius: 24px;
  max-width: 600px;
  margin: 14px auto;
  padding: 14px 18px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
  animation: 뿅등장 0.4s ease-out;
}

/* 상대팀 차례일 때는 빨간 테두리 */
.행동판.상대차례 { border-color: #e0567a; }

.행동안내 {
  font-size: 20px;
  font-weight: bold;
  color: #b5477a;
  margin: 4px 0 10px;
}

.행동버튼판 {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.행동버튼 {
  font-size: 20px;
  padding: 14px 22px;
  margin: 0;
  background: #e0567a;
}

.행동버튼.필살 { background: #ff8c00; }
.행동버튼.방어 { background: #2f8fe0; }

.행동버튼:disabled {
  background: #b8b8c4;
  cursor: not-allowed;
  font-size: 17px;
}

.행동버튼:disabled:hover { transform: none; }

/* 방어 자세일 때 반짝 */
.방어자세 { box-shadow: 0 0 22px #6bd0ff; }

/* 새 선수가 등장할 때 */
.등장 { animation: 뿅등장 0.5s ease-out; }

@keyframes 뿅등장 {
  0% { opacity: 0; transform: translateY(30px) scale(0.7); }
  60% { opacity: 1; transform: translateY(-6px) scale(1.08); }
  100% { transform: translateY(0) scale(1); }
}

.기록판 p.교체글 {
  background: #e8f6e2;
  font-weight: bold;
}

.기록판 p.팀승리글 {
  background: linear-gradient(90deg, #ffd93d, #ff9f68);
  font-size: 24px;
  font-weight: bold;
  text-align: center;
}
