/* ============================================
   FROM EGO TO I AM — INITIATION EXPERIENCE
   Design System
   ============================================ */

:root {
  --black: #000000;
  --cosmic-black: #05000f;
  --deep-purple: #1a0033;
  --purple-mid: #2d0060;
  --purple-vivid: #4a0090;
  --purple-glow: rgba(74, 0, 144, 0.35);
  --gold: #d4af37;
  --gold-dim: #a08828;
  --gold-glow: rgba(212, 175, 55, 0.25);
  --white: #ffffff;
  --white-glow: rgba(255, 255, 255, 0.85);
  --text-dim: rgba(255, 255, 255, 0.55);
  --font-serif: 'Cormorant Garamond', 'Georgia', serif;
  --font-sans: 'Montserrat', 'Helvetica Neue', sans-serif;
  --transition-slow: 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-med: 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

html, body {
  width: 100%;
  height: 100%;
  background: var(--cosmic-black);
  color: var(--white);
  font-family: var(--font-sans);
  overflow: hidden;
  cursor: default;
  user-select: none;
}

/* ============================================
   CANVAS — PARTICLE LAYER
   ============================================ */

#particle-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.75;
}

/* ============================================
   SCREENS
   ============================================ */

.screen {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-slow);
  text-align: center;
}

.screen.active {
  opacity: 1;
  pointer-events: all;
}

.screen.exit {
  opacity: 0;
  pointer-events: none;
}

/* ============================================
   SCREEN 1 — LANDING
   ============================================ */

#screen-landing {
  background:
    radial-gradient(ellipse at 50% 40%, #4a0090 0%, #2d0060 30%, #1a0033 60%, #05000f 100%);
}

.sacred-geometry {
  position: absolute;
  width: min(500px, 90vw);
  height: min(500px, 90vw);
  opacity: 0.07;
  animation: rotate-slow 60s linear infinite;
}

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

.landing-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.8rem;
}

.eyemark {
  width: 60px;
  opacity: 0;
  animation: fade-in-up 2s ease forwards 0.5s;
}

.headline {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 7vw, 4.5rem);
  font-weight: 300;
  letter-spacing: 0.04em;
  line-height: 1.15;
  color: var(--white);
  opacity: 0;
  animation: fade-in-up 2s ease forwards 1s;
}

.subheadline {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 3vw, 1.6rem);
  font-weight: 300;
  color: var(--gold);
  letter-spacing: 0.12em;
  opacity: 0;
  animation: fade-in-up 2s ease forwards 1.6s;
}

.divider-gold {
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  animation: fade-in 2s ease forwards 2s;
}

/* Continue Watching — returning user button on landing */
.btn-continue {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  background: transparent;
  border: 1px solid rgba(212,175,55,0.3);
  color: rgba(212,175,55,0.8);
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.75rem 2rem;
  cursor: pointer;
  opacity: 0;
  animation: fade-in-up 2s ease forwards 2.8s;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.btn-continue:hover {
  background: rgba(212,175,55,0.07);
  border-color: rgba(212,175,55,0.6);
}

.continue-sub {
  font-family: var(--font-serif);
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  text-transform: none;
  color: rgba(255,255,255,0.45);
  font-style: italic;
}

.btn-primary {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--black);
  background: var(--gold);
  border: none;
  padding: 1rem 2.8rem;
  cursor: pointer;
  opacity: 0;
  animation: fade-in-up 2s ease forwards 2.4s;
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  clip-path: polygon(0 0, 100% 0, 100% 75%, 96% 100%, 0 100%);
}

.btn-primary:hover {
  background: #e8c84a;
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(212, 175, 55, 0.3);
}

.btn-primary:active {
  transform: translateY(0);
}

/* ============================================
   SCREEN 2 — SAFETY LAYER
   ============================================ */

#screen-safety {
  background:
    radial-gradient(ellipse at center, #2d0060 0%, #1a0033 45%, #05000f 100%);
}

.safety-container {
  max-width: 560px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.lock-icon {
  width: 48px;
  height: 48px;
  opacity: 0.9;
  filter: drop-shadow(0 0 12px rgba(212, 175, 55, 0.4));
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 5vw, 2.8rem);
  font-weight: 300;
  letter-spacing: 0.06em;
  color: var(--white);
}

.safety-text {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  font-weight: 300;
  color: var(--text-dim);
  line-height: 1.9;
  text-align: center;
}

.safety-text em {
  color: var(--white);
  font-style: normal;
}

.glow-line {
  width: 120px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212,175,55,0.5), transparent);
  box-shadow: 0 0 10px rgba(212,175,55,0.2);
}

/* ============================================
   SCREEN 3 — TRANSITION
   ============================================ */

#screen-transition {
  background: radial-gradient(ellipse at center, #1a0033 0%, #05000f 80%);
}

.transition-text {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 3.5vw, 1.8rem);
  font-weight: 300;
  color: var(--text-dim);
  line-height: 1.8;
  max-width: 520px;
  text-align: center;
}

.transition-text strong {
  color: var(--white);
  font-weight: 400;
}

/* ============================================
   SCREEN 4 — TRUTH SIGNATURE
   ============================================ */

#screen-signature {
  background:
    radial-gradient(ellipse at center, #2d0060 0%, #1a0033 50%, #05000f 100%);
}

.signature-container {
  max-width: 520px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.signature-subtitle {
  font-family: var(--font-serif);
  font-size: clamp(0.95rem, 2.5vw, 1.15rem);
  color: var(--text-dim);
  line-height: 1.7;
  font-weight: 300;
}

.signature-subtitle span {
  color: var(--gold);
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  text-align: left;
  cursor: pointer;
  padding: 1rem 1.2rem;
  border: 1px solid rgba(212,175,55,0.2);
  width: 100%;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.checkbox-group:hover {
  border-color: rgba(212,175,55,0.5);
  background: rgba(212,175,55,0.03);
}

.checkbox-group input[type="checkbox"] {
  appearance: none;
  width: 20px;
  height: 20px;
  border: 1px solid var(--gold-dim);
  flex-shrink: 0;
  margin-top: 2px;
  cursor: pointer;
  transition: background 0.3s, border-color 0.3s;
  position: relative;
}

.checkbox-group input[type="checkbox"]:checked {
  background: var(--gold);
  border-color: var(--gold);
}

.checkbox-group input[type="checkbox"]:checked::after {
  content: '✓';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  color: var(--black);
  font-size: 14px;
  font-weight: bold;
}

.checkbox-label {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--white-glow);
  line-height: 1.6;
  font-weight: 300;
}

.signature-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(212,175,55,0.4);
  color: var(--white);
  font-family: 'Pinyon Script', 'Brush Script MT', cursive;
  font-size: 1.8rem;
  padding: 0.6rem 0.2rem;
  text-align: center;
  outline: none;
  transition: border-color 0.3s ease;
  letter-spacing: 0.05em;
}

.signature-input::placeholder {
  color: rgba(255,255,255,0.2);
  font-size: 1.2rem;
  font-family: var(--font-serif);
  font-style: italic;
}

.signature-input:focus {
  border-bottom-color: var(--gold);
}

.btn-primary:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ============================================
   SCREEN 5 — SIGNATURE CONFIRMATION
   ============================================ */

#screen-sig-confirm {
  background: radial-gradient(ellipse at center, #2d0060 0%, #05000f 80%);
}

.confirm-text {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 3.5vw, 1.8rem);
  font-weight: 300;
  color: var(--gold);
  letter-spacing: 0.1em;
}

.confirm-sub {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--text-dim);
  margin-top: 0.5rem;
  letter-spacing: 0.05em;
}

/* ============================================
   SCREEN 6 — QUESTIONNAIRE
   ============================================ */

#screen-questionnaire {
  background:
    radial-gradient(ellipse at 50% 20%, #2d0060 0%, #1a0033 40%, #05000f 100%);
  overflow-y: auto;
}

.progress-bar-container {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: rgba(255,255,255,0.05);
  z-index: 100;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-dim), var(--gold));
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 8px rgba(212,175,55,0.5);
}

.question-wrapper {
  max-width: 540px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  padding: 4rem 0;
}

.question-block-label {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-dim);
}

.question-text {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 4vw, 2rem);
  font-weight: 300;
  color: var(--white);
  line-height: 1.4;
  text-align: center;
}

/* Options */
.options-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
}

.option-btn {
  width: 100%;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--text-dim);
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 300;
  padding: 0.9rem 1.4rem;
  cursor: pointer;
  text-align: left;
  transition: all 0.3s ease;
  letter-spacing: 0.02em;
}

.option-btn:hover {
  border-color: rgba(212,175,55,0.5);
  color: var(--white);
  background: rgba(212,175,55,0.04);
}

.option-btn.selected {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(212,175,55,0.06);
}

/* Scale */
.scale-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: 100%;
}

.scale-track {
  display: flex;
  gap: 0.5rem;
  width: 100%;
  justify-content: center;
}

.scale-btn {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,0.15);
  background: transparent;
  color: var(--text-dim);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.scale-btn:hover {
  border-color: var(--gold);
  color: var(--white);
}

.scale-btn.selected {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--black);
  font-weight: 600;
}

.scale-labels {
  display: flex;
  justify-content: space-between;
  width: 100%;
  font-size: 0.7rem;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  font-family: var(--font-sans);
}

/* Text area */
.q-textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  color: var(--white);
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 300;
  padding: 0.8rem 0.2rem;
  resize: none;
  outline: none;
  line-height: 1.6;
  transition: border-color 0.3s ease;
  min-height: 80px;
}

.q-textarea::placeholder {
  color: rgba(255,255,255,0.2);
  font-style: italic;
}

.q-textarea:focus {
  border-bottom-color: var(--gold);
}

/* Select */
.q-select {
  width: 100%;
  background: rgba(0,0,0,0.8);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 0;
  color: var(--white);
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 300;
  padding: 0.9rem 1rem;
  outline: none;
  cursor: pointer;
  appearance: none;
  transition: border-color 0.3s ease;
}

.q-select:focus {
  border-color: var(--gold);
}

.q-select option {
  background: #0d001a;
  color: var(--white);
}

.btn-next {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--black);
  background: var(--gold);
  border: none;
  padding: 0.9rem 2.4rem;
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0;
  animation: fade-in 0.5s ease forwards 0.3s;
}

.btn-next:hover {
  background: #e8c84a;
  box-shadow: 0 0 20px rgba(212,175,55,0.3);
}

.btn-next:disabled {
  opacity: 0.25;
  cursor: not-allowed;
  box-shadow: none;
}

/* ============================================
   SCREEN 7 — COMPLETION
   ============================================ */

#screen-completion {
  background:
    radial-gradient(ellipse at 50% 35%, #4a0090 0%, #2d0060 35%, #1a0033 65%, #05000f 100%);
  overflow-y: auto;
  justify-content: flex-start;
  padding-top: 3rem;
  padding-bottom: 4rem;
}

.completion-container {
  max-width: 560px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.completion-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 300;
  color: var(--white);
  letter-spacing: 0.05em;
  line-height: 1.3;
}

.completion-body {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  font-weight: 300;
  color: var(--text-dim);
  line-height: 1.85;
}

/* ---- ARCHETYPE REVEAL ---- */
.archetype-reveal {
  --arc-color: #4a0090;
  --arc-glow: rgba(74,0,144,0.8);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: 100%;
}

.archetype-symbol-wrap {
  position: relative;
  width: 110px;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.archetype-symbol-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--arc-color);
  box-shadow: 0 0 30px var(--arc-glow), inset 0 0 20px rgba(0,0,0,0.5);
  animation: ring-pulse 3s ease-in-out infinite;
}

.archetype-symbol-ring::before {
  content: '';
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.08);
}

@keyframes ring-pulse {
  0%, 100% { box-shadow: 0 0 30px var(--arc-glow), inset 0 0 20px rgba(0,0,0,0.5); }
  50%       { box-shadow: 0 0 55px var(--arc-glow), inset 0 0 20px rgba(0,0,0,0.5); }
}

.archetype-symbol {
  font-size: 2.8rem;
  color: var(--arc-color);
  filter: drop-shadow(0 0 12px var(--arc-glow));
  position: relative;
  z-index: 1;
  animation: symbol-float 4s ease-in-out infinite;
  line-height: 1;
}

@keyframes symbol-float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-5px); }
}

.archetype-rank {
  font-family: var(--font-sans);
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--arc-color);
  opacity: 0.9;
  text-align: center;
}

.archetype-name {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 6vw, 3.2rem);
  font-weight: 300;
  color: var(--white);
  letter-spacing: 0.06em;
  text-align: center;
  line-height: 1.1;
}

.archetype-divider {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--arc-color), transparent);
  margin: 0.2rem 0;
}

.archetype-attrs {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  width: 100%;
  max-width: 400px;
}

.archetype-attr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.archetype-attr-label {
  font-family: var(--font-sans);
  font-size: 0.52rem;
  font-weight: 600;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(212,175,55,0.5);
}

.archetype-attr-value {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 300;
  color: rgba(255,255,255,0.65);
  text-align: center;
  font-style: italic;
  letter-spacing: 0.02em;
  line-height: 1.4;
}

.btn-group {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  width: 100%;
}

.btn-secondary {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  background: transparent;
  border: 1px solid rgba(212,175,55,0.5);
  padding: 0.9rem 2rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: rgba(212,175,55,0.06);
  border-color: var(--gold);
}

/* Scroll hint arrow on completion screen */
.scroll-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  opacity: 0;
  animation: scroll-hint-pulse 2.5s ease-in-out infinite 2.5s;
}
.scroll-hint-text {
  font-family: var(--font-sans);
  font-size: 0.55rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(212,175,55,0.5);
}
@keyframes scroll-hint-pulse {
  0%, 100% { opacity: 0; transform: translateY(0); }
  30%       { opacity: 1; }
  60%       { opacity: 1; transform: translateY(5px); }
}

/* ============================================
   SCREEN 8 — DOCUMENTARY
   ============================================ */

#screen-documentary {
  background:
    radial-gradient(ellipse at 50% 0%, #2d0060 0%, #1a0033 40%, #05000f 100%);
}

.doc-container {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 5rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

/* Header */
.doc-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.doc-label {
  font-family: var(--font-sans);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(212,175,55,0.6);
}

.doc-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 300;
  color: var(--white);
  letter-spacing: 0.06em;
  line-height: 1.1;
}

.doc-subtitle {
  font-family: var(--font-serif);
  font-size: clamp(0.9rem, 2.5vw, 1.05rem);
  font-weight: 300;
  color: var(--text-dim);
  font-style: italic;
  line-height: 1.7;
}

/* Episode Cards */
.episode-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  border: 1px solid rgba(212,175,55,0.15);
  border-radius: 2px;
  padding: 1.5rem 1.5rem 1.75rem;
  background: rgba(255,255,255,0.02);
  transition: border-color 0.3s ease;
}

.episode-card:not(.ep-locked):hover {
  border-color: rgba(212,175,55,0.3);
}

.ep-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.ep-number {
  font-family: var(--font-sans);
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(212,175,55,0.7);
}

.ep-duration {
  font-family: var(--font-sans);
  font-size: 0.55rem;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.25);
}

.ep-title {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 4vw, 1.7rem);
  font-weight: 300;
  color: var(--white);
  letter-spacing: 0.04em;
  text-align: left;
}

.ep-locked .ep-title {
  color: rgba(255,255,255,0.3);
}

.ep-description {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  font-weight: 300;
  color: rgba(255,255,255,0.4);
  font-style: italic;
  line-height: 1.6;
  text-align: left;
}

/* Video Player */
.ep-player {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
  background: #000;
  border-radius: 2px;
  overflow: hidden;
  margin-top: 0.5rem;
}

.ep-player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Locked state */
.ep-player-locked {
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(212,175,55,0.08);
}

.ep-lock-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.ep-lock-text {
  font-family: var(--font-sans);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(212,175,55,0.35);
}

/* Back button */
.doc-back-btn {
  align-self: center;
  margin-top: 0.5rem;
  font-size: 0.65rem;
}

/* Portal CTA at bottom of documentary */
.doc-portal-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  padding: 1rem 0 0.5rem;
}

.doc-portal-label {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 3vw, 1.2rem);
  font-weight: 300;
  font-style: italic;
  color: rgba(255,255,255,0.55);
  text-align: center;
  letter-spacing: 0.03em;
}

.doc-portal-btn {
  display: inline-block;
  text-decoration: none;
  opacity: 1 !important;
  animation: none !important;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--black);
  background: var(--gold);
  border: none;
  padding: 1rem 2.8rem;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  clip-path: polygon(0 0, 100% 0, 100% 75%, 96% 100%, 0 100%);
  box-shadow: 0 0 30px rgba(212,175,55,0.3);
}

.doc-portal-btn:hover {
  background: #e8c84a;
  transform: translateY(-2px);
  box-shadow: 0 0 45px rgba(212,175,55,0.5);
}

/* ---- CUSTOM VIDEO PLAYER ---- */

/* Hidden YT iframe wrapper — API needs it in DOM but we cover it */
.ep-yt-wrap {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.ep-yt-wrap > div,
.ep-yt-wrap iframe {
  width: 100% !important;
  height: 100% !important;
  border: none;
}

/* Our custom UI layer */
.ep-custom-player {
  position: absolute;
  inset: 0;
  z-index: 5;
  cursor: pointer;
  user-select: none;
  overflow: hidden;
}

/* Thumbnail */
.ep-thumb {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: opacity 0.6s ease;
  z-index: 1;
}
.ep-thumb-grad {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
    rgba(5,0,15,0.25) 0%,
    rgba(5,0,15,0.05) 40%,
    rgba(5,0,15,0.75) 100%);
}

/* Big center play button */
.ep-play-big {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  background: none;
  border: none;
  cursor: pointer;
  width: 76px;
  height: 76px;
  transition: opacity 0.35s ease, transform 0.25s ease;
  filter: drop-shadow(0 0 18px rgba(212,175,55,0.45));
}
.ep-play-big:hover {
  transform: translate(-50%, -50%) scale(1.12);
  filter: drop-shadow(0 0 30px rgba(212,175,55,0.75));
}
.ep-play-big svg { width: 100%; height: 100%; }

/* Controls bar */
.ep-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
  padding: 1.5rem 0.9rem 0.7rem;
  background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, transparent 100%);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  transition: opacity 0.4s ease;
  opacity: 1;
}

/* Auto-hide during playback */
.ep-custom-player.is-playing .ep-controls { opacity: 0; }
.ep-custom-player.is-playing .ep-controls.visible { opacity: 1; }

/* Progress bar */
.ep-progress-wrap {
  padding: 0.35rem 0;
  cursor: pointer;
}
.ep-progress-track {
  position: relative;
  height: 2px;
  background: rgba(255,255,255,0.18);
  border-radius: 2px;
  transition: height 0.15s ease;
}
.ep-progress-wrap:hover .ep-progress-track { height: 3px; }
.ep-progress-fill {
  position: absolute;
  inset: 0;
  width: 0%;
  background: var(--gold);
  border-radius: 2px;
}
.ep-progress-dot {
  position: absolute;
  top: 50%;
  left: 0%;
  transform: translate(-50%, -50%);
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px rgba(212,175,55,0.9);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.ep-progress-wrap:hover .ep-progress-dot { opacity: 1; }

/* Bottom row */
.ep-controls-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.ep-pp-btn,
.ep-fs-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255,255,255,0.85);
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
  flex-shrink: 0;
}
.ep-pp-btn:hover,
.ep-fs-btn:hover { color: var(--gold); }
.ep-pp-btn svg { width: 18px; height: 18px; }
.ep-fs-btn { margin-left: auto; }
.ep-fs-btn svg { width: 15px; height: 15px; }

.ep-time-display {
  font-family: var(--font-sans);
  font-size: 0.58rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.65);
  flex-shrink: 0;
}

/* ---- PSEUDO-FULLSCREEN ---- */
.feti-fs-body { overflow: hidden !important; }
.ep-player.feti-fullscreen {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100dvh !important;
  padding-top: 0 !important;
  z-index: 9999 !important;
  background: #000 !important;
  border-radius: 0 !important;
  margin: 0 !important;
}

/* ---- EPISODE UNLOCK ANIMATION ---- */
@keyframes ep-unlock-pulse {
  0%   { box-shadow: 0 0 0 rgba(212,175,55,0); border-color: rgba(212,175,55,0.15); }
  40%  { box-shadow: 0 0 40px rgba(212,175,55,0.35); border-color: rgba(212,175,55,0.8); }
  100% { box-shadow: 0 0 0 rgba(212,175,55,0); border-color: rgba(212,175,55,0.3); }
}

.ep-unlocking {
  animation: ep-unlock-pulse 0.9s ease forwards;
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 10px rgba(212,175,55,0.2); }
  50%       { box-shadow: 0 0 25px rgba(212,175,55,0.5); }
}

/* ============================================
   MOBILE
   ============================================ */

@media (max-width: 480px) {
  .scale-btn {
    width: 36px;
    height: 36px;
    font-size: 0.8rem;
  }

  .scale-track {
    gap: 0.3rem;
  }

  .btn-group {
    padding: 0 1rem;
  }
}
