/* Cinematic SPICA Launch Show Stylesheet */

#page-launch {
  padding: 0;
  margin: 0;
  width: 100%;
  height: 100%;
  background: #000000;
  overflow: hidden;
  position: relative;
}

.launch-show-viewport {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Cinematic Space Backdrop */
.launch-cinematic-layer {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  overflow: hidden;
}

.launch-stars-skybox {
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(15, 23, 42, 0.4) 0%, #000000 100%);
  position: relative;
}

/* Star field simulation nodes */
.launch-stars-skybox::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  right: -50%;
  bottom: -50%;
  background-image: 
    radial-gradient(1px 1px at 20px 30px, #ffffff, rgba(0,0,0,0)),
    radial-gradient(1.5px 1.5px at 100px 150px, rgba(255,255,255,0.8), rgba(0,0,0,0)),
    radial-gradient(1px 1px at 200px 80px, #ffffff, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 350px 280px, rgba(255,255,255,0.9), rgba(0,0,0,0)),
    radial-gradient(1px 1px at 450px 180px, #ffffff, rgba(0,0,0,0)),
    radial-gradient(1.5px 1.5px at 600px 380px, rgba(255,255,255,0.7), rgba(0,0,0,0)),
    radial-gradient(1px 1px at 750px 480px, #ffffff, rgba(0,0,0,0));
  background-size: 800px 600px;
  opacity: 0.55;
  animation: rotation-stellar 240s linear infinite;
  transform-origin: center center;
}

@keyframes rotation-stellar {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.launch-earth-mesh {
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(56, 189, 248, 0.25) 0%, rgba(15, 23, 42, 0.8) 70%, #000000 100%);
  box-shadow: 0 0 40px rgba(56, 189, 248, 0.15);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: all 4s cubic-bezier(0.25, 1, 0.5, 1);
}

.launch-constellation-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 680px;
  height: 90%;
  max-height: 520px;
  z-index: 2;
  pointer-events: none;
}

.launch-constellation-overlay path {
  animation: line-draw 4s ease-out forwards;
}

@keyframes line-draw {
  to {
    stroke-dashoffset: 0;
  }
}

.target-glow-ring {
  animation: pulse-ring 2.5s infinite;
  transform-origin: 420px 380px;
}

@keyframes pulse-ring {
  0% { transform: scale(0.9); opacity: 0.3; }
  50% { transform: scale(1.15); opacity: 0.8; }
  100% { transform: scale(0.9); opacity: 0.3; }
}

.launch-cinematic-light-burst {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #ffffff;
  z-index: 5;
  mix-blend-mode: screen;
  transition: opacity 1.5s ease-in-out;
}

/* Narrative Overlay Text */
.launch-overlay-panel {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  text-align: center;
  max-width: 600px;
  padding: var(--space-md);
  pointer-events: none;
}

.launch-narrative-title {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-main);
  margin-bottom: var(--space-xs);
  text-transform: uppercase;
  animation: text-slide 2.5s ease-out;
}

.launch-narrative-body {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  letter-spacing: 0.05em;
  animation: text-fade 3s ease-out;
}

@keyframes text-slide {
  from { transform: translateY(15px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes text-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Brand Reveal Panel */
.launch-reveal-panel {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 20;
  text-align: center;
  animation: reveal-scale 2s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal-logo {
  font-size: 3.5rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--text-main);
  text-shadow: 0 0 30px rgba(56, 189, 248, 0.2);
  margin-bottom: var(--space-xxs);
}

.reveal-subtitle {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--color-primary);
  margin-bottom: var(--space-md);
}

.reveal-motto {
  font-size: 0.75rem;
  color: var(--text-muted-dark);
  letter-spacing: 0.08em;
  font-style: italic;
}

@keyframes reveal-scale {
  from { transform: translate(-50%, -50%) scale(0.92); opacity: 0; filter: blur(4px); }
  to { transform: translate(-50%, -50%) scale(1); opacity: 1; filter: blur(0); }
}

/* Architecture Panel */
.launch-architecture-panel {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 25;
  width: 90%;
  max-width: 600px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: var(--space-md) var(--space-lg);
  backdrop-filter: blur(10px);
  animation: overlay-fade 1s ease-out;
}

@keyframes overlay-fade {
  from { opacity: 0; transform: translate(-50%, -46%); }
  to { opacity: 1; transform: translate(-50%, -50%); }
}

.arch-cap-card {
  transition: all 0.3s ease;
}

.arch-cap-card.active {
  border-color: var(--color-primary) !important;
  background: rgba(56, 189, 248, 0.05) !important;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.1);
}

.arch-cap-card.planned {
  opacity: 0.35;
}

/* Terminal Panel styling */
.launch-terminal-panel {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 30;
  width: 90%;
  max-width: 580px;
  background: rgba(10, 15, 25, 0.85);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  box-shadow: 0 15px 40px rgba(0,0,0,0.5);
  overflow: hidden;
  backdrop-filter: blur(12px);
  animation: overlay-fade 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.terminal-header {
  background: rgba(15, 23, 42, 0.9);
  padding: var(--space-xs) var(--space-md);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.terminal-dot.red { background: #ef4444; }
.terminal-dot.yellow { background: #f59e0b; }
.terminal-dot.green { background: #10b981; }

.terminal-title {
  font-family: monospace;
  font-size: 0.7rem;
  color: var(--text-muted-dark);
  margin-left: var(--space-xs);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.terminal-body {
  padding: var(--space-md);
  min-height: 220px;
}

.prompt-template-option-btn {
  width: 100%;
  text-align: left;
  transition: all 0.2s ease;
}

.prompt-template-option-btn:hover {
  border-color: var(--color-primary);
  background: rgba(56, 189, 248, 0.05);
}

.terminal-cursor {
  display: inline-block;
  width: 8px;
  height: 14px;
  background: var(--color-primary);
  vertical-align: middle;
  margin-left: 2px;
  animation: blink-cursor 0.8s step-end infinite;
}

@keyframes blink-cursor {
  from, to { background: transparent; }
  50% { background: var(--color-primary); }
}

.countdown-timer-digits {
  text-shadow: 0 0 15px rgba(56, 189, 248, 0.15);
}

.terminal-response-card {
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: var(--space-xs);
  background: rgba(255, 255, 255, 0.01);
  transition: border-color 0.2s ease;
}

.terminal-response-card:hover {
  border-color: rgba(56, 189, 248, 0.2);
}

/* Work Receipt Panel styling */
.launch-receipt-panel {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 35;
  animation: overlay-fade 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Presenter controls HUD */
.presenter-only-hud button {
  font-weight: 700;
  color: var(--text-main);
  border-color: var(--border-color);
  background: var(--bg-body);
}

.presenter-only-hud button:hover {
  border-color: var(--color-primary);
  background: rgba(56, 189, 248, 0.05);
}

.presenter-only-hud button.btn-danger:hover {
  border-color: var(--color-danger);
  background: rgba(239, 68, 68, 0.05);
}
