/* EP32: 코디 유니버스 32강 축제 미션 스타일 */

.ep32-finale-wrap {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin-top: 12px;
  display: flex;
  flex-direction: column;
}

@media (min-width: 769px) {
  .screen-container.ep32-split-screen .cinema-cut,
  .screen-container.ep32-result-screen .cinema-cut { width: calc(100% - 440px); }
  .screen-container.ep32-split-screen .cinema-cut.active,
  .screen-container.ep32-result-screen .cinema-cut.active { animation: none; transform: none; }
  .screen-container.ep32-split-screen .ep32-finale-wrap {
    position: absolute; z-index: 100; right: 10px; bottom: 12px;
    width: 420px; max-width: 420px; margin: 0;
  }
  .screen-container.ep32-result-screen .ep32-complete-wrap {
    position: absolute; z-index: 100; right: 10px; bottom: 12px;
    width: 420px; max-width: 420px; margin: 0;
  }
  .screen-container.ep32-result-screen .ep32-cert-card { padding: 12px; }
  .screen-container.ep32-result-screen .ep32-cert-desc { margin: 5px 0; font-size: 12px; }
  .screen-container.ep32-result-screen .ep32-cert-header h3 { font-size: 16px; }
  .screen-container.ep32-result-screen .ep32-created-scene { padding: 6px; margin: 5px auto; }
}

.ep32-finale-panel {
  background: rgba(25, 10, 45, 0.94);
  border: 2px solid #a855f7;
  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;
}

.ep32-title-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ep32-badge {
  font-size: 13px;
  font-weight: 800;
  color: #c084fc;
}

.ep32-hint {
  font-size: 11px;
  color: #94a3b8;
}

.section-label {
  font-size: 11px;
  font-weight: bold;
  color: #cbd5e1;
  margin-bottom: 4px;
}

.theme-buttons-row {
  display: flex;
  gap: 6px;
}

.ep32-btn-opt {
  flex: 1;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: #fff;
  font-size: 11px;
  font-weight: bold;
  padding: 7px 4px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.ep32-btn-opt:hover {
  background: rgba(168, 85, 247, 0.3);
  border-color: #a855f7;
}

.ep32-btn-opt.active {
  background: #a855f7;
  border-color: #c084fc;
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.6);
}

.ep32-action-area {
  display: flex;
}

.ep32-btn-launch {
  width: 100%;
  background: linear-gradient(135deg, #a855f7, #ec4899);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-weight: bold;
  font-size: 13px;
  padding: 9px 12px;
  cursor: pointer;
}

.ep32-btn-launch:disabled {
  background: #334155;
  color: #94a3b8;
  cursor: not-allowed;
}

.ep32-status-msg {
  font-size: 11px;
  color: #cbd5e1;
  text-align: center;
}

/* 완료 카드 */
.ep32-complete-wrap {
  width: 100%;
  max-width: 980px;
  margin: 16px auto 0;
}

.ep32-cert-card {
  background: linear-gradient(135deg, rgba(35, 15, 55, 0.95), rgba(15, 10, 30, 0.98));
  border: 2px solid #a855f7;
  border-radius: 18px;
  padding: 20px 24px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
}

.ep32-cert-header h3 {
  font-size: 20px;
  color: #c084fc;
  margin: 6px 0 4px;
}

.ep32-cert-desc {
  font-size: 14px;
  color: #cbd5e1;
  margin: 10px 0 16px;
}

.ep32-created-scene {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin: 10px auto;
  padding: 12px;
  max-width: 520px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.5);
  color: white;
}
.ep32-theme-space { background: linear-gradient(120deg,#11154a,#7033aa); }
.ep32-theme-garden { background: linear-gradient(120deg,#17542c,#bb4284); }
.ep32-theme-ice { background: linear-gradient(120deg,#104f80,#8ecbea); }
.ep32-created-place,.ep32-created-action { font-size: clamp(24px,5vw,40px); line-height: 1.3; }
.ep32-created-label { font-size: 13px; font-weight: 800; }
.ep32-action-fireworks { animation: ep32-flash 1.3s ease-in-out infinite alternate; }
.ep32-action-music { animation: ep32-sway 1s ease-in-out infinite alternate; }
.ep32-action-jump { animation: ep32-jump .7s ease-in-out infinite alternate; }
@keyframes ep32-flash { to { opacity: .45; transform: scale(1.1); } }
@keyframes ep32-sway { to { transform: rotate(7deg); } }
@keyframes ep32-jump { to { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) {
  .ep32-created-action { animation: none; }
}

.ep32-btn-replay {
  background: #475569;
  border: none;
  border-radius: 20px;
  color: #fff;
  padding: 8px 20px;
  font-weight: bold;
  cursor: pointer;
}
