/* ============================================
   CYBERSOUL — Awakening Experience
   Full-screen cinematic storytelling
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;600;700;800;900&family=JetBrains+Mono:wght@300;400;500&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --cyan: #00f0ff;
  --purple: #b026ff;
  --magenta: #ff2d7b;
}

body {
  background: #000;
  color: #e0e0e8;
  font-family: 'JetBrains Mono', monospace;
  overflow: hidden;
  width: 100vw;
  height: 100vh;
  cursor: default;
}

/* Canvas background */
#soul-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* Story overlay */
.story-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
}

/* Start screen */
.start-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  cursor: pointer;
}

.start-orb {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.3) 0%, transparent 70%);
  border: 1px solid rgba(0, 240, 255, 0.2);
  animation: orb-pulse 3s ease-in-out infinite;
}

@keyframes orb-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 30px rgba(0, 240, 255, 0.1); }
  50% { transform: scale(1.1); box-shadow: 0 0 60px rgba(0, 240, 255, 0.3); }
}

.start-text {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 4px;
  text-transform: uppercase;
  animation: fade-pulse 2s ease-in-out infinite;
}

@keyframes fade-pulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.7; }
}

/* Act container */
.act {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.5s ease;
}

.act.active {
  opacity: 1;
  pointer-events: auto;
}

/* Act label */
.act-label {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 6px;
  color: rgba(0, 240, 255, 0.4);
  margin-bottom: 40px;
  opacity: 0;
  animation: label-in 1s ease 0.3s forwards;
}

@keyframes label-in {
  to { opacity: 1; }
}

/* Story text */
.act-text {
  font-size: clamp(1.1rem, 3vw, 1.6rem);
  line-height: 1.8;
  max-width: 700px;
  color: rgba(255, 255, 255, 0);
  animation: text-reveal 2s ease 0.8s forwards;
  font-weight: 300;
}

@keyframes text-reveal {
  to { color: rgba(255, 255, 255, 0.85); }
}

.act-text em {
  color: var(--cyan);
  font-style: normal;
  text-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
}

.act-text strong {
  color: var(--magenta);
  font-weight: 500;
  text-shadow: 0 0 20px rgba(255, 45, 123, 0.3);
}

/* Progress dots */
.progress-dots {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 20;
}

.progress-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  transition: all 0.5s ease;
}

.progress-dot.active {
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

.progress-dot.done {
  background: rgba(0, 240, 255, 0.3);
}

/* Click hint */
.click-hint {
  position: fixed;
  bottom: 70px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.15);
  letter-spacing: 3px;
  text-transform: uppercase;
  z-index: 20;
  animation: fade-pulse 3s ease-in-out infinite;
}

/* Act 5 — Finale */
.finale-title {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 900;
  background: linear-gradient(135deg, var(--cyan), var(--purple), var(--magenta));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 20px;
  opacity: 0;
  transform: scale(0.8);
  animation: finale-reveal 2s ease 1s forwards;
  text-shadow: none;
}

@keyframes finale-reveal {
  to { opacity: 1; transform: scale(1); }
}

.finale-subtitle {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0);
  margin-bottom: 50px;
  max-width: 500px;
  line-height: 1.8;
  animation: text-reveal 2s ease 2.5s forwards;
}

.enter-btn {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  color: #000;
  background: var(--cyan);
  border: none;
  padding: 14px 36px;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  opacity: 0;
  animation: text-reveal 1.5s ease 3.5s forwards;
  transition: all 0.3s ease;
  font-weight: 600;
  letter-spacing: 1px;
}

.enter-btn:hover {
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.4);
  transform: translateY(-2px);
  color: #000;
}

/* Mute button */
.mute-btn {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 30;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.4);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.mute-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--cyan);
}

/* Glitch overlay for Act 4 */
.glitch-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  pointer-events: none;
  opacity: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 240, 255, 0.03) 2px,
    rgba(0, 240, 255, 0.03) 4px
  );
  transition: opacity 1s;
}

.glitch-overlay.active {
  opacity: 1;
  animation: glitch-scan 0.1s steps(2) infinite;
}

@keyframes glitch-scan {
  0% { transform: translateY(0); }
  100% { transform: translateY(4px); }
}

/* Vignette */
.vignette {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 50%, rgba(0,0,0,0.6) 100%);
}

@media (max-width: 600px) {
  .act-text { font-size: 1rem; line-height: 1.7; }
  .finale-title { font-size: 2.2rem; }
  .progress-dots { bottom: 24px; }
  .click-hint { bottom: 50px; }
}
