/* EP24 Season 3 Finale Styles */
.ep24-station-wrap {
  position: absolute; right: 20px; bottom: 20px; z-index: 100;
  display: flex; flex-direction: column; max-width: 440px; width: calc(100% - 40px);
  pointer-events: auto; animation: ep24FadeIn 0.3s ease;
}
@keyframes ep24FadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.ep24-panel {
  background: rgba(15, 23, 42, 0.92); backdrop-filter: blur(16px);
  border: 1px solid rgba(56, 189, 248, 0.4); border-radius: 18px; padding: 16px;
  display: flex; flex-direction: column; gap: 12px; box-shadow: 0 16px 36px rgba(0,0,0,0.5);
}
.ep24-title-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.ep24-badge { background: linear-gradient(135deg, #0284c7, #38bdf8); color: white; font-size: 13px; font-weight: 800; padding: 4px 10px; border-radius: 20px; }
.ep24-hint { font-size: 12px; color: #bae6fd; font-weight: 600; }
.ep24-switches-row { display: flex; gap: 8px; }
.ep24-switch-btn {
  flex: 1; padding: 10px 6px; font-size: 12px; font-weight: 700; border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.15); background: rgba(30,41,59,0.8); color: #f8fafc; cursor: pointer;
  min-height: 48px; transition: all 0.2s ease; display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.ep24-switch-btn.active {
  background: rgba(56, 189, 248, 0.25); border-color: #38bdf8; color: #38bdf8;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.5); transform: translateY(-2px);
}
.ep24-modules-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.ep24-mod-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 6px 4px; background: rgba(30,41,59,0.8); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px; opacity: 0.5; transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.ep24-mod-card.active {
  opacity: 1; transform: translateY(-2px) scale(1.05);
  background: rgba(56, 189, 248, 0.25); border-color: #38bdf8; box-shadow: 0 0 12px rgba(56,189,248,0.5);
}
.ep24-mod-icon { font-size: 20px; }
.ep24-mod-name { font-size: 10px; color: #f8fafc; font-weight: 700; margin-top: 2px; }
.ep24-btn-launch {
  width: 100%; padding: 12px; font-size: 14px; font-weight: 800; border: none; border-radius: 12px;
  background: linear-gradient(135deg, #0284c7, #38bdf8); color: white; cursor: pointer; min-height: 48px;
  transition: all 0.2s ease;
}
.ep24-btn-launch:hover:not(:disabled) { filter: brightness(1.1); transform: translateY(-1px); }
.ep24-btn-launch.launching { background: #10b981; }
.ep24-status-msg { font-size: 12px; font-weight: 700; color: #bae6fd; text-align: center; min-height: 18px; }

@media (min-width: 769px) {
  .screen-container.ep24-split-screen .cinema-cut { width: calc(100% - 470px); }
  .screen-container.ep24-split-screen .cinema-cut.active { animation: none; transform: none; }
  .screen-container.ep24-split-screen .ep24-station-wrap {
    right: 10px; bottom: 10px; width: 450px; max-width: 450px;
  }
  .screen-container.ep24-split-screen .ep24-panel { padding: 10px; gap: 7px; }
  .screen-container.ep24-split-screen .ep24-missions-container { gap: 5px !important; margin-bottom: 4px !important; }
  .screen-container.ep24-split-screen .ep24-sub-mission { padding: 5px 8px !important; }
  .screen-container.ep24-split-screen .ep24-modules-grid { display: none; }
  .screen-container.ep24-split-screen .ep24-hint { font-size: 11px; }
  .screen-container.ep24-result-screen .cinema-cut { width: calc(100% - 470px); }
  .screen-container.ep24-result-screen .cinema-cut.active { animation: none; transform: none; }
  .screen-container.ep24-result-screen .ep24-complete-wrap {
    position: absolute; z-index: 100; right: 10px; bottom: 12px;
    width: 450px; max-width: 450px; margin: 0;
  }
  .screen-container.ep24-result-screen .ep24-cert-card { padding: 12px; }
  .screen-container.ep24-result-screen .ep24-cert-header { gap: 6px; margin-bottom: 5px; }
  .screen-container.ep24-result-screen .ep24-cert-seal { font-size: 25px; }
  .screen-container.ep24-result-screen .ep24-cert-header h2 { font-size: 16px; margin: 0; }
  .screen-container.ep24-result-screen .ep24-cert-desc { font-size: 12px; margin-bottom: 7px; }
  .screen-container.ep24-result-screen .ep24-cert-badges { margin-bottom: 8px; }
  .screen-container.ep24-result-screen .ep24-cert-footer { gap: 6px; }
  .screen-container.ep24-result-screen .ep24-btn-print,
  .screen-container.ep24-result-screen .ep24-btn-replay { padding: 9px 10px; font-size: 12px; }
}

/* Season 3 Master Certificate Card Under Canvas */
.ep24-complete-wrap { width: 100%; max-width: 900px; margin: 16px auto 0; animation: ep24FadeIn 0.4s ease; }
.ep24-cert-card {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(12, 74, 110, 0.95));
  border: 2px solid #38bdf8; border-radius: 20px; padding: 24px 28px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.5), 0 0 30px rgba(56, 189, 248, 0.3); text-align: center;
}
.ep24-cert-header { display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 14px; flex-wrap: wrap; }
.ep24-cert-seal { font-size: 48px; }
.ep24-cert-header h2 { font-size: 20px; color: #38bdf8; margin-bottom: 4px; }
.ep24-cert-header p { font-size: 13px; color: #94a3b8; }
.ep24-cert-desc { font-size: 14px; color: #e2e8f0; line-height: 1.6; margin-bottom: 16px; }
.ep24-cert-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 20px; }
.ep24-cert-badges span {
  background: rgba(56, 189, 248, 0.15); border: 1px solid rgba(56, 189, 248, 0.4);
  color: #bae6fd; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 16px;
}
.ep24-cert-footer { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.ep24-btn-print {
  background: linear-gradient(135deg, #0284c7, #38bdf8); color: white; font-weight: 800;
  padding: 12px 24px; border-radius: 12px; border: none; cursor: pointer; min-height: 48px;
}
.ep24-btn-replay {
  background: rgba(30, 41, 59, 0.85); border: 1px solid rgba(255, 255, 255, 0.2);
  color: #f8fafc; font-weight: 700; padding: 12px 20px; border-radius: 12px; cursor: pointer; min-height: 48px;
}

.ep24-silent-next-wrap {
  width: 100%; max-width: 900px; margin: 12px auto 0; text-align: center;
}
.ep24-silent-next-btn {
  background: linear-gradient(135deg, #0284c7, #0369a1);
  color: white; border: none; padding: 12px 24px; border-radius: 14px;
  font-size: 14px; font-weight: 800; cursor: pointer;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.4);
}

@media (max-width: 768px) {
  .ep24-station-wrap { position: relative; right: auto; bottom: auto; width: 100%; max-width: 100%; margin: 12px auto 0; }
  .ep24-panel { padding: 10px; gap: 6px; }
  .ep24-missions-container { gap: 5px !important; margin-bottom: 4px !important; }
  .ep24-sub-mission { padding: 5px 8px !important; }
  .ep24-modules-grid { display: none; }
}
