/* EP31: 투투의 보석 점수 게임 스타일 */

.ep31-game-wrap {
  position: absolute;
  right: 20px;
  bottom: 20px;
  max-width: 440px;
  width: calc(100% - 40px);
  z-index: 20;
  display: flex;
  flex-direction: column;
}

.ep31-game-panel {
  background: rgba(10, 30, 20, 0.94);
  border: 2px solid #22c55e;
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ep31-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ep31-badge {
  font-size: 13px;
  font-weight: 800;
  color: #4ade80;
}

.ep31-score-tag {
  font-size: 12px;
  background: #facc15;
  color: #000;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 12px;
}

.ep31-gems-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}

.ep31-gem-btn {
  height: 38px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid #22c55e;
  border-radius: 8px;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.ep31-gem-btn:hover:not(:disabled) {
  background: rgba(34, 197, 94, 0.3);
  transform: scale(1.1);
}

.ep31-gem-btn.collected {
  opacity: 0.25;
  border-color: #555;
  cursor: default;
  transform: scale(0.9);
}

.ep31-action-row {
  display: flex;
}

.ep31-btn-result {
  width: 100%;
  background: linear-gradient(135deg, #16a34a, #4ade80);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-weight: bold;
  font-size: 13px;
  padding: 8px 12px;
  cursor: pointer;
}

.ep31-btn-result:disabled {
  background: #334155;
  color: #94a3b8;
  cursor: not-allowed;
}

.ep31-status-msg {
  font-size: 11px;
  color: #cbd5e1;
  text-align: center;
}

/* 완료 카드 */
.ep31-complete-wrap {
  width: 100%;
  max-width: 980px;
  margin: 16px auto 0;
}

.ep31-cert-card {
  background: linear-gradient(135deg, rgba(15, 35, 20, 0.95), rgba(10, 20, 15, 0.98));
  border: 2px solid #22c55e;
  border-radius: 18px;
  padding: 20px 24px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
}

.ep31-cert-header h3 {
  font-size: 20px;
  color: #4ade80;
  margin: 6px 0 4px;
}

.ep31-cert-desc {
  font-size: 14px;
  color: #cbd5e1;
  margin: 10px 0 16px;
}

.ep31-btn-replay {
  background: #475569;
  border: none;
  border-radius: 20px;
  color: #fff;
  padding: 8px 20px;
  font-weight: bold;
  cursor: pointer;
}

@media (max-width: 768px) {
  .ep31-game-wrap {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    max-width: 100%;
    margin-top: 12px;
  }
}
