/* ============================================================ */
/* ELNE REEL — CINEMA EXPERIENCE ENGINE (IMMERSION TOTALE 3D)   */
/* Effet d'Aspiration, Caméra Dolly-In, Film 35mm & Parallax     */
/* ============================================================ */

/* --- Film Screen Container --- */
.cinema-film-wrapper {
  position: relative;
  width: 100%;
  overflow-x: hidden;
  background: #14171d;
  color: #ffffff;
}

/* 35mm Film Grain & Atmospheric Noise Overlay */
.cinema-grain-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 99;
  opacity: 0.18;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Lens Vignette Cinema */
.cinema-vignette-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 98;
  background: radial-gradient(circle at 50% 50%, transparent 45%, rgba(10, 12, 16, 0.75) 85%, rgba(6, 8, 11, 0.95) 100%);
}

/* ============================================================ */
/* 1. WARP INTRO PORTAL (EFFET D'ASPIRATION INITIAL)            */
/* ============================================================ */
.warp-intro-curtain {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1000;
  background: #0d1015;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), visibility 1.2s;
}

.warp-intro-curtain.sucked-in {
  opacity: 0;
  transform: scale(2.8) translateZ(400px);
  visibility: hidden;
  pointer-events: none;
}

#warp-tunnel-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.warp-intro-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 780px;
  padding: 0 24px;
}

.warp-er-logo {
  font-family: var(--font-display);
  font-size: clamp(64px, 12vw, 130px);
  font-weight: 900;
  letter-spacing: 4px;
  background: linear-gradient(135deg, #ffffff 0%, var(--gold) 60%, #d97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 12px;
  filter: drop-shadow(0 0 45px rgba(245, 158, 11, 0.45));
  animation: warp-pulse-glow 2.5s infinite alternate;
}

@keyframes warp-pulse-glow {
  0% { filter: drop-shadow(0 0 25px rgba(245, 158, 11, 0.3)); transform: scale(1); }
  100% { filter: drop-shadow(0 0 60px rgba(245, 158, 11, 0.7)); transform: scale(1.02); }
}

.warp-tagline {
  font-family: var(--font-body);
  font-size: clamp(14px, 2.5vw, 20px);
  font-weight: 700;
  color: #cbd5e1;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 36px;
}

.btn-warp-enter {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 18px 42px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--gold) 0%, #b45309 100%);
  color: #000000;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  box-shadow: 0 0 35px var(--gold-glow), 0 10px 40px rgba(0, 0, 0, 0.6);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  animation: enter-btn-throb 1.8s infinite;
}

@keyframes enter-btn-throb {
  0% { transform: scale(1); box-shadow: 0 0 30px var(--gold-glow); }
  50% { transform: scale(1.04); box-shadow: 0 0 60px rgba(245, 158, 11, 0.85); }
  100% { transform: scale(1); box-shadow: 0 0 30px var(--gold-glow); }
}

.btn-warp-enter:hover {
  transform: scale(1.08);
  box-shadow: 0 0 70px rgba(245, 158, 11, 0.95);
}

.warp-hint-scroll {
  margin-top: 24px;
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* --- Floating Vortex Space 3D (CD, Bande Musicale, Livre, Crayon, Avion, Textes) --- */
.warp-floating-space {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  perspective: 1000px;
  overflow: hidden;
}

/* Floating 3D Vector Artifacts */
.warp-artifact {
  position: absolute;
  pointer-events: none;
  filter: drop-shadow(0 12px 30px rgba(0, 0, 0, 0.85));
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s ease;
}

.artifact-cd {
  top: 16%;
  left: 15%;
  width: 90px;
  height: 90px;
  animation: warp-float-cd 6s linear infinite;
}

@keyframes warp-float-cd {
  0% { transform: rotate(0deg) scale(0.95) translateY(0); }
  50% { transform: rotate(180deg) scale(1.08) translateY(-15px); }
  100% { transform: rotate(360deg) scale(0.95) translateY(0); }
}

.artifact-tape {
  bottom: 18%;
  left: 14%;
  width: 105px;
  height: 75px;
  animation: warp-float-tape 7s ease-in-out infinite alternate;
}

@keyframes warp-float-tape {
  0% { transform: rotate(-8deg) translateY(0); }
  100% { transform: rotate(6deg) translateY(-20px); }
}

.artifact-book {
  top: 18%;
  right: 15%;
  width: 95px;
  height: 80px;
  animation: warp-float-book 5.5s ease-in-out infinite alternate;
}

@keyframes warp-float-book {
  0% { transform: rotate(6deg) translateY(0); }
  100% { transform: rotate(-6deg) translateY(-18px); }
}

.artifact-pencil {
  bottom: 20%;
  right: 16%;
  width: 85px;
  height: 85px;
  animation: warp-float-pencil 6.5s ease-in-out infinite alternate;
}

@keyframes warp-float-pencil {
  0% { transform: rotate(-25deg) translateY(0); }
  100% { transform: rotate(-10deg) translateY(-18px); }
}

.artifact-plane {
  top: 13%;
  left: 47%;
  width: 90px;
  height: 90px;
  animation: warp-float-plane 9s ease-in-out infinite alternate;
}

@keyframes warp-float-plane {
  0% { transform: translate(-25px, 0) rotate(15deg); }
  100% { transform: translate(35px, -30px) rotate(24deg); }
}

/* Ingestion Explosion on Click / Scroll */
.warp-intro-curtain.sucked-in .warp-artifact {
  transform: scale(3.5) translateZ(800px);
  opacity: 0;
  transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s ease;
}

@media (max-width: 850px) {
  .artifact-cd { width: 65px; height: 65px; left: 6%; }
  .artifact-book { width: 70px; height: 60px; right: 6%; }
  .artifact-tape { width: 75px; height: 55px; left: 6%; }
  .artifact-pencil { width: 65px; height: 65px; right: 6%; }
  .artifact-plane { width: 65px; height: 65px; top: 6%; left: 45%; }
}

/* ============================================================ */
/* 2. SCÈNE I : LE STUDIO CINÉMA EN IMMERSION TOTALE (HERO)     */
/* ============================================================ */
.scene-studio-hero {
  position: relative;
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 120px 20px 80px;
}

.studio-backdrop-wrapper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

.studio-backdrop-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transform: scale(1.06);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  filter: brightness(0.65) contrast(1.15);
  animation: ken-burns-slow 24s ease-in-out infinite alternate;
}

@keyframes ken-burns-slow {
  0% { transform: scale(1.05) translate(0, 0); }
  50% { transform: scale(1.12) translate(-1%, 1%); }
  100% { transform: scale(1.08) translate(1%, -1%); }
}

/* Studio Ambient Gradients & Neon Glow */
.studio-backdrop-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(20, 23, 29, 0.7) 0%,
    rgba(20, 23, 29, 0.3) 40%,
    rgba(20, 23, 29, 0.85) 85%,
    #14171d 100%
  );
}

.scene-studio-content {
  position: relative;
  z-index: 3;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  text-align: center;
}

.studio-pulse-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 24px;
  border-radius: var(--radius-pill);
  background: rgba(20, 23, 29, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-gold);
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 24px;
  box-shadow: 0 0 25px rgba(245, 158, 11, 0.25);
}

.studio-hero-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 9vw, 110px);
  font-weight: 900;
  letter-spacing: 2px;
  line-height: 1.02;
  margin-bottom: 20px;
  text-transform: uppercase;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.85);
}

.studio-hero-quote {
  font-size: clamp(18px, 3vw, 28px);
  font-weight: 800;
  color: #f8fafc;
  line-height: 1.4;
  max-width: 860px;
  margin: 0 auto 36px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.9);
}

.studio-hero-quote span {
  color: var(--gold);
}

/* Glass Monolith Bio Card with 3D Depth */
.studio-glass-monolith {
  background: rgba(23, 27, 34, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  padding: 36px 42px;
  max-width: 920px;
  margin: 0 auto 40px;
  text-align: left;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.65), 0 0 30px rgba(245, 158, 11, 0.08);
}

.studio-glass-monolith p {
  font-size: clamp(15px, 2vw, 17px);
  line-height: 1.8;
  color: #e2e8f0;
  margin-bottom: 16px;
}

.studio-glass-monolith p:last-child {
  margin-bottom: 0;
}

/* Studio Fast Stats Grid */
.studio-stats-ribbon {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 40px;
}

.studio-stat-capsule {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(23, 27, 34, 0.85);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-pill);
  padding: 12px 28px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.studio-stat-val {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 900;
  color: var(--gold);
}

.studio-stat-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #94a3b8;
  text-transform: uppercase;
}

/* Action Buttons */
.studio-actions-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

/* ============================================================ */
/* 3. SCÈNE II : LA VÉRITÉ NUE & LE PORTRAIT SOLAIRE             */
/* ============================================================ */
.scene-truth-portrait {
  position: relative;
  padding: 120px 0;
  background: #111419;
  overflow: hidden;
}

.scene-truth-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 56px;
  align-items: center;
}

/* Portrait Showcase Column */
.portrait-cinema-frame {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 35px 80px -15px rgba(0, 0, 0, 0.85), 0 0 50px rgba(245, 158, 11, 0.2);
  border: 2px solid rgba(245, 158, 11, 0.4);
}

.portrait-cinema-img {
  width: 100%;
  height: auto;
  display: block;
  filter: contrast(1.1) brightness(0.95);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.portrait-cinema-frame:hover .portrait-cinema-img {
  transform: scale(1.03);
}

/* Light Streaks across portrait */
.portrait-cinema-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(245, 158, 11, 0.15) 0%,
    transparent 50%,
    rgba(6, 182, 212, 0.1) 100%
  );
  pointer-events: none;
}

/* Truth Story Column */
.truth-story-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.truth-story-tag {
  font-family: monospace;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 3px;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.truth-story-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 900;
  line-height: 1.12;
  margin-bottom: 24px;
  color: #ffffff;
}

.truth-manifesto-box {
  background: rgba(23, 27, 34, 0.7);
  border-left: 4px solid var(--gold);
  padding: 24px 28px;
  border-radius: 0 18px 18px 0;
  margin-bottom: 28px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.truth-manifesto-box p {
  font-size: 16px;
  line-height: 1.8;
  color: #e2e8f0;
  margin-bottom: 14px;
}

.truth-manifesto-box p:last-child {
  margin-bottom: 0;
}

/* Story Highlights Pills */
.truth-highlights-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.truth-pill-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
  font-weight: 700;
  color: #cbd5e1;
}

.truth-pill-item span.icon {
  color: var(--gold);
}

/* ============================================================ */
/* 4. SCÈNE III : LES 3 MONOLITHES DIMENSIONNELS (PORTAILS)     */
/* ============================================================ */
.scene-portals-dimension {
  position: relative;
  padding: 120px 0 140px;
  background: #14171d;
  overflow: hidden;
}

.portals-cinema-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.portal-monolith-card {
  position: relative;
  background: #1a1e27;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.4s ease, 
              box-shadow 0.4s ease;
}

.portal-monolith-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.portal-monolith-card:hover {
  transform: translateY(-12px) scale(1.02);
  border-color: var(--gold);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.7), 0 0 35px var(--gold-glow);
}

.portal-monolith-card:hover::before {
  opacity: 1;
}

.portal-icon-giant {
  font-size: 42px;
  margin-bottom: 20px;
  display: inline-block;
  filter: drop-shadow(0 0 15px rgba(245, 158, 11, 0.3));
}

.portal-category-tag {
  font-family: monospace;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.portal-card-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 14px;
  color: #ffffff;
}

.portal-card-desc {
  font-size: 14px;
  line-height: 1.7;
  color: #94a3b8;
  margin-bottom: 28px;
}

.portal-card-action {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 1px;
  color: var(--gold);
  text-transform: uppercase;
}

.portal-card-action span.arrow {
  transition: transform 0.3s ease;
}

.portal-monolith-card:hover .portal-card-action span.arrow {
  transform: translateX(6px);
}

/* Responsive */
@media (max-width: 980px) {
  .scene-truth-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .portrait-cinema-frame {
    max-width: 380px;
  }
  .portals-cinema-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .scene-studio-hero {
    padding-top: 100px;
  }
}

/* ============================================================ */
/* 5. MOTEUR 3D DEEP SPACE COUNTDOWN (LES CHIFFRES VENUS DE LOIN) */
/* ============================================================ */
.countdown-monumental-stage {
  position: relative;
  width: 100%;
  max-width: 1100px;
  margin: 20px auto 60px;
  perspective: 1600px;
  perspective-origin: center center;
  transform-style: preserve-3d;
  text-align: center;
}

/* Stargate Orbital Rings Background */
.portal-rings-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 680px;
  height: 680px;
  transform: translate(-50%, -50%) translateZ(-350px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

.ring-orbit {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px dashed rgba(245, 158, 11, 0.35);
  filter: drop-shadow(0 0 25px rgba(245, 158, 11, 0.3));
}

.ring-1 {
  width: 100%;
  height: 100%;
  animation: ringSpinClockwise 40s linear infinite;
  border-top-color: #f59e0b;
  border-bottom-color: #38bdf8;
}

.ring-2 {
  width: 80%;
  height: 80%;
  top: 10%;
  left: 10%;
  border-style: dotted;
  border-width: 2px;
  border-color: rgba(56, 189, 248, 0.45);
  animation: ringSpinCounter 28s linear infinite;
}

.ring-3 {
  width: 60%;
  height: 60%;
  top: 20%;
  left: 20%;
  border: 1px solid rgba(245, 158, 11, 0.65);
  animation: ringSpinClockwise 18s linear infinite;
}

.portal-core-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 280px;
  height: 280px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(245, 158, 11, 0.3) 0%, rgba(56, 189, 248, 0.15) 50%, transparent 70%);
  filter: blur(45px);
  animation: portalPulseGlow 3.5s ease-in-out infinite alternate;
}

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

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

@keyframes portalPulseGlow {
  0% { transform: translate(-50%, -50%) scale(0.85); opacity: 0.5; }
  100% { transform: translate(-50%, -50%) scale(1.25); opacity: 0.95; }
}

/* 3D Perspective Grid Container */
.countdown-grid-wrap-3d {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin: 30px auto 25px;
  transform-style: preserve-3d;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Deep Space Fly-In Animation ("les chiffres qui viennent de loin") */
.deep-space-entry {
  opacity: 0;
  animation: flyFromDeepSpace 2.0s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  will-change: transform, opacity, filter;
}

@keyframes flyFromDeepSpace {
  0% {
    opacity: 0;
    transform: translateZ(-3000px) translateY(180px) rotateX(65deg) scale(0.03);
    filter: blur(45px) brightness(4);
  }
  62% {
    opacity: 1;
    transform: translateZ(95px) translateY(-20px) rotateX(-12deg) scale(1.12);
    filter: blur(0px) brightness(1.3);
  }
  82% {
    transform: translateZ(-25px) translateY(8px) rotateX(4deg) scale(0.97);
  }
  100% {
    opacity: 1;
    transform: translateZ(0) translateY(0) rotateX(0deg) scale(1);
    filter: blur(0px) brightness(1);
  }
}

.delay-days    { animation-delay: 0.1s; }
.delay-sep1    { animation-delay: 0.3s; }
.delay-hours   { animation-delay: 0.45s; }
.delay-sep2    { animation-delay: 0.65s; }
.delay-minutes { animation-delay: 0.8s; }
.delay-sep3    { animation-delay: 1.0s; }
.delay-seconds { animation-delay: 1.15s; }

/* 3D Time Monolith Card */
.cd-time-card-3d {
  position: relative;
  min-width: 165px;
  padding: 34px 22px 26px;
  background: linear-gradient(155deg, rgba(30, 36, 48, 0.94) 0%, rgba(13, 16, 23, 0.98) 100%);
  border: 1.5px solid rgba(245, 158, 11, 0.5);
  border-radius: 22px;
  text-align: center;
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  box-shadow: 
    0 35px 80px rgba(0, 0, 0, 0.9),
    0 0 50px rgba(245, 158, 11, 0.25),
    inset 0 1px 2px rgba(255, 255, 255, 0.35);
  transform-style: preserve-3d;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.cd-time-card-3d:hover {
  transform: translateZ(40px) scale(1.05);
  border-color: var(--gold);
  box-shadow: 
    0 45px 95px rgba(0, 0, 0, 0.95),
    0 0 75px rgba(245, 158, 11, 0.55),
    inset 0 1px 3px rgba(255, 255, 255, 0.5);
}

/* Glass Scanline & Shimmer */
.card-glass-shine {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 48%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0) 100%);
  border-radius: 21px 21px 0 0;
  pointer-events: none;
}

/* High-tech Corner Brackets */
.card-corner-tech {
  position: absolute;
  width: 10px;
  height: 10px;
  border-color: var(--gold);
  border-style: solid;
  pointer-events: none;
  opacity: 0.85;
}

.card-corner-tech.tl { top: 8px; left: 8px; border-width: 2px 0 0 2px; }
.card-corner-tech.tr { top: 8px; right: 8px; border-width: 2px 2px 0 0; }
.card-corner-tech.bl { bottom: 8px; left: 8px; border-width: 0 0 2px 2px; }
.card-corner-tech.br { bottom: 8px; right: 8px; border-width: 0 2px 2px 0; }

/* Giant 3D Numeral */
.digit-value-wrapper {
  position: relative;
  display: block;
  perspective: 600px;
}

.cd-digit-3d {
  display: block;
  font-family: 'Syne', sans-serif;
  font-size: clamp(52px, 7vw, 92px);
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(180deg, #FFFFFF 0%, #FBBF24 45%, #D97706 75%, #B45309 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 25px rgba(245, 158, 11, 0.55));
  letter-spacing: -1px;
  transition: transform 0.2s ease, filter 0.2s ease;
}

/* Tick Micro-Shockwave Animation */
.cd-digit-3d.digit-tick {
  animation: digitTickShock 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes digitTickShock {
  0% {
    transform: scale(1) translateZ(0);
    filter: drop-shadow(0 0 50px rgba(245, 158, 11, 1));
  }
  35% {
    transform: scale(1.15) translateZ(60px);
    filter: drop-shadow(0 0 85px rgba(245, 158, 11, 1));
  }
  100% {
    transform: scale(1) translateZ(0);
    filter: drop-shadow(0 0 25px rgba(245, 158, 11, 0.55));
  }
}

.cd-unit-3d {
  display: block;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 3px;
  color: #e2e8f0;
  text-transform: uppercase;
  margin-top: 14px;
}

.card-led-bar {
  width: 44px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 12px auto 0;
  border-radius: 2px;
  box-shadow: 0 0 12px var(--gold);
}

/* Glowing 3D Separator */
.cd-sep-3d {
  font-family: 'Syne', sans-serif;
  font-size: 52px;
  font-weight: 900;
  color: var(--gold);
  text-shadow: 0 0 30px var(--gold-glow);
  align-self: center;
  padding-bottom: 24px;
  opacity: 0.9;
  animation: sepNeonBlink 2s ease-in-out infinite alternate;
}

@keyframes sepNeonBlink {
  0% { opacity: 0.45; filter: drop-shadow(0 0 10px rgba(245, 158, 11, 0.4)); }
  100% { opacity: 1; filter: drop-shadow(0 0 35px rgba(245, 158, 11, 1)); }
}

/* Replay Flight Trigger */
.countdown-replay-wrap {
  margin-top: 16px;
}

.btn-replay-flight {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 22px;
  border-radius: var(--radius-pill);
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.35s ease;
}

.btn-replay-flight:hover {
  background: rgba(245, 158, 11, 0.3);
  border-color: var(--gold);
  box-shadow: 0 0 25px var(--gold-glow);
  transform: translateY(-2px);
}

/* Cyber Vault Keypad Upgrade */
.cyber-vault-card {
  max-width: 460px;
  margin: 0 auto 50px;
  background: linear-gradient(155deg, rgba(25, 30, 42, 0.92) 0%, rgba(11, 14, 20, 0.96) 100%);
  border: 1.5px solid rgba(245, 158, 11, 0.45);
  border-radius: 22px;
  padding: 36px 32px;
  text-align: center;
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.8), 0 0 40px rgba(245, 158, 11, 0.2);
}

.pin-slots-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 20px 0 16px;
}

.pin-slot-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(245, 158, 11, 0.4);
  background: rgba(15, 23, 42, 0.8);
  transition: all 0.25s ease;
}

.pin-slot-dot.filled {
  background: var(--gold);
  border-color: #fef08a;
  box-shadow: 0 0 16px var(--gold);
  transform: scale(1.15);
}

/* Responsive Countdown 3D */
@media (max-width: 860px) {
  .countdown-grid-wrap-3d {
    gap: 12px;
    flex-wrap: wrap;
  }
  .cd-sep-3d {
    display: none;
  }
  .cd-time-card-3d {
    min-width: 135px;
    padding: 24px 14px 20px;
  }
  .cd-digit-3d {
    font-size: 48px;
  }
  .portal-rings-bg {
    width: 420px;
    height: 420px;
  }
}
